From 35fedc493412fa0d74db4bd30e499dbfa01fae6b Mon Sep 17 00:00:00 2001 From: Jisu-Woniu <31986081+Jisu-Woniu@users.noreply.github.com> Date: Sat, 25 Nov 2023 19:35:10 +0800 Subject: [PATCH] refactor: :lipstick: Refresh UI. --- src-tauri/Cargo.toml | 25 ++++++++++++------------- src-tauri/Tauri.toml | 2 -- src/App.vue | 36 ++++++++++++++++++++---------------- taplo.toml | 2 +- 4 files changed, 33 insertions(+), 32 deletions(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 76c85ae..66b6faf 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -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!! @@ -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"] } diff --git a/src-tauri/Tauri.toml b/src-tauri/Tauri.toml index 918e4e1..854b173 100644 --- a/src-tauri/Tauri.toml +++ b/src-tauri/Tauri.toml @@ -14,8 +14,6 @@ version = "1.1.0" [tauri.allowlist] [tauri.allowlist.dialog] -ask = true -confirm = true message = true open = true diff --git a/src/App.vue b/src/App.vue index 734fb63..5db2944 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,10 @@