Skip to content

Commit

Permalink
refactor: 💄 Refresh UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Nov 25, 2023
1 parent 6faef0e commit 35fedc4
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 32 deletions.
25 changes: 12 additions & 13 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,28 @@ tauri-build = { version = "1.5.0", features = [] }

[dependencies]
anyhow = { version = "1.0.75", features = ["backtrace"] }
digital-signature-crypto = { path = "crypto" }
futures = "0.3.29"
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
tokio = { version = "1.34.0", features = ["fs"] }

[dependencies.digital-signature-crypto]
path = "crypto"

[dependencies.tauri]
features = [
"config-toml",
"dialog-ask",
"dialog-confirm",
"dialog-message",
"dialog-open",
"icon-ico",
"icon-png",
"config-toml",
"dialog-message",
"dialog-open",
"icon-ico",
"icon-png",
]
version = "1.5.2"

[dev-dependencies]

[dev-dependencies.tokio]
features = ["macros", "rt-multi-thread"]
version = "1.34.0"

[features]
# this feature is used for production builds or when `devPath` points to the filesystem
# DO NOT REMOVE!!
Expand All @@ -53,6 +55,3 @@ codegen-units = 1
lto = true
panic = "abort"
strip = true

[dev-dependencies]
tokio = { version = "1.34.0", features = ["macros", "rt-multi-thread"] }
2 changes: 0 additions & 2 deletions src-tauri/Tauri.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ version = "1.1.0"
[tauri.allowlist]

[tauri.allowlist.dialog]
ask = true
confirm = true
message = true
open = true

Expand Down
36 changes: 20 additions & 16 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<script setup lang="ts">
import {
VApp,
VAppBar,
VMain,
VTab,
VTabs,
VToolbar,
VWindow,
VWindowItem,
} from "vuetify/components";
Expand All @@ -25,8 +26,10 @@ const tab = useSessionStorage("tab", Tab.sign);

<template>
<VApp>
<VToolbar title="签名工具">
<ColorSwitcher />
<VAppBar title="签名工具">
<template #append>
<ColorSwitcher />
</template>
<template #extension>
<VTabs v-model="tab" color="primary" align-tabs="center">
<VTab :value="Tab.sign" :prepend-icon="mdiFileKey"> 签名 </VTab>
Expand All @@ -36,18 +39,19 @@ const tab = useSessionStorage("tab", Tab.sign);
</VTab>
</VTabs>
</template>
</VToolbar>

<VWindow v-model="tab">
<VWindowItem :value="Tab.sign">
<SignView v-if="tab === Tab.sign" />
</VWindowItem>
<VWindowItem :value="Tab.validate">
<ValidateView v-if="tab === Tab.validate" />
</VWindowItem>
<VWindowItem :value="Tab.keygen">
<KeygenView v-if="tab === Tab.keygen" />
</VWindowItem>
</VWindow>
</VAppBar>
<VMain>
<VWindow v-model="tab">
<VWindowItem :value="Tab.sign">
<SignView v-if="tab === Tab.sign" />
</VWindowItem>
<VWindowItem :value="Tab.validate">
<ValidateView v-if="tab === Tab.validate" />
</VWindowItem>
<VWindowItem :value="Tab.keygen">
<KeygenView v-if="tab === Tab.keygen" />
</VWindowItem>
</VWindow>
</VMain>
</VApp>
</template>
2 changes: 1 addition & 1 deletion taplo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
reorder_keys = false
[[rule]]
include = ["**/Cargo.toml"]
keys = ["dependencies"]
keys = ["dependencies", "dev-dependencies"]
[rule.formatting]
reorder_keys = true

0 comments on commit 35fedc4

Please sign in to comment.