[feat] use heroui + setup persistore + setup toast
todo: fix launchoption problem
This commit is contained in:
109
src-tauri/Cargo.lock
generated
109
src-tauri/Cargo.lock
generated
@@ -20,6 +20,7 @@ dependencies = [
|
||||
"tauri-plugin-process",
|
||||
"tauri-plugin-shell",
|
||||
"tauri-plugin-store",
|
||||
"tauri-plugin-valtio",
|
||||
"window-vibrancy",
|
||||
"winreg",
|
||||
]
|
||||
@@ -843,6 +844,20 @@ dependencies = [
|
||||
"syn 2.0.87",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dashmap"
|
||||
version = "6.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"crossbeam-utils",
|
||||
"hashbrown 0.14.5",
|
||||
"lock_api",
|
||||
"once_cell",
|
||||
"parking_lot_core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "data-url"
|
||||
version = "0.3.1"
|
||||
@@ -1015,6 +1030,12 @@ version = "1.0.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125"
|
||||
|
||||
[[package]]
|
||||
name = "either"
|
||||
version = "1.15.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
||||
|
||||
[[package]]
|
||||
name = "embed-resource"
|
||||
version = "2.5.0"
|
||||
@@ -1211,6 +1232,21 @@ dependencies = [
|
||||
"new_debug_unreachable",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "futures"
|
||||
version = "0.3.31"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876"
|
||||
dependencies = [
|
||||
"futures-channel",
|
||||
"futures-core",
|
||||
"futures-executor",
|
||||
"futures-io",
|
||||
"futures-sink",
|
||||
"futures-task",
|
||||
"futures-util",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "futures-channel"
|
||||
version = "0.3.31"
|
||||
@@ -1218,6 +1254,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
|
||||
dependencies = [
|
||||
"futures-core",
|
||||
"futures-sink",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -1285,6 +1322,7 @@ version = "0.3.31"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
|
||||
dependencies = [
|
||||
"futures-channel",
|
||||
"futures-core",
|
||||
"futures-io",
|
||||
"futures-macro",
|
||||
@@ -1652,6 +1690,12 @@ version = "0.12.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
|
||||
|
||||
[[package]]
|
||||
name = "hashbrown"
|
||||
version = "0.14.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
|
||||
|
||||
[[package]]
|
||||
name = "hashbrown"
|
||||
version = "0.15.0"
|
||||
@@ -1936,6 +1980,15 @@ dependencies = [
|
||||
"once_cell",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "itertools"
|
||||
version = "0.14.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
|
||||
dependencies = [
|
||||
"either",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "itoa"
|
||||
version = "0.4.8"
|
||||
@@ -4279,6 +4332,19 @@ dependencies = [
|
||||
"tokio",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-plugin-valtio"
|
||||
version = "1.1.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b04f9e001956ca4d4ab9cb57cb4f0d8fb0949ba1a03a13591d2215653b988691"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"tauri",
|
||||
"tauri-plugin",
|
||||
"tauri-store",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-runtime"
|
||||
version = "2.2.0"
|
||||
@@ -4324,6 +4390,49 @@ dependencies = [
|
||||
"wry",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-store"
|
||||
version = "0.8.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cb4e7c0776d9f8b54fd4788f4e471ce83b4c6cf62079799830a3735582a51fc4"
|
||||
dependencies = [
|
||||
"dashmap",
|
||||
"futures",
|
||||
"itertools",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"tauri",
|
||||
"tauri-store-macros",
|
||||
"tauri-store-utils",
|
||||
"thiserror 2.0.3",
|
||||
"tokio",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-store-macros"
|
||||
version = "0.8.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fabed02238bc887f75887b315c6a14d9571ab463c1a188cc27ec2f7e917b06c3"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.87",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-store-utils"
|
||||
version = "0.2.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b983a259b22d622ce74b957140efa161bd75c6bfd47b7bf621c98dd05b1a2474"
|
||||
dependencies = [
|
||||
"futures",
|
||||
"tauri",
|
||||
"thiserror 2.0.3",
|
||||
"tokio",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-utils"
|
||||
version = "2.1.0"
|
||||
|
||||
@@ -29,6 +29,7 @@ tauri-plugin-clipboard-manager = "2.0.2"
|
||||
tauri-plugin-shell = "2.0.2"
|
||||
tauri-plugin-http = "2.0.3"
|
||||
tauri-plugin-notification = "2.0.1"
|
||||
tauri-plugin-valtio = "1.1.1"
|
||||
tauri-plugin-store = "2.1.0"
|
||||
[target.'cfg(windows)'.dependencies] # Windows Only
|
||||
winreg = "0.52.0"
|
||||
|
||||
10
src-tauri/capabilities/valtio.json
Normal file
10
src-tauri/capabilities/valtio.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"identifier": "valtio",
|
||||
"windows": [
|
||||
"*"
|
||||
],
|
||||
"permissions": [
|
||||
"valtio:default",
|
||||
"core:event:default"
|
||||
]
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["global-shortcut:default","store:default","store:allow-set","store:allow-get-store","store:allow-has","store:allow-delete","store:allow-clear","store:allow-values","store:allow-save","store:allow-load","store:allow-reset","store:allow-entries"],"platforms":["macOS","windows","linux"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:default","fs:allow-read-file","fs:allow-write-file","fs:allow-read-dir","fs:allow-copy-file","fs:allow-mkdir","fs:allow-remove","fs:allow-remove","fs:allow-rename","fs:allow-exists","core:window:allow-create","core:window:allow-center","core:window:allow-request-user-attention","core:window:allow-set-resizable","core:window:allow-set-maximizable","core:window:allow-set-minimizable","core:window:allow-set-closable","core:window:allow-set-title","core:window:allow-maximize","core:window:allow-unmaximize","core:window:allow-minimize","core:window:allow-unminimize","core:window:allow-show","core:window:allow-hide","core:window:allow-close","core:window:allow-set-decorations","core:window:allow-set-always-on-top","core:window:allow-set-content-protected","core:window:allow-set-size","core:window:allow-set-min-size","core:window:allow-set-max-size","core:window:allow-set-position","core:window:allow-set-fullscreen","core:window:allow-set-focus","core:window:allow-set-icon","core:window:allow-set-skip-taskbar","core:window:allow-set-cursor-grab","core:window:allow-set-cursor-visible","core:window:allow-set-cursor-icon","core:window:allow-set-cursor-position","core:window:allow-set-ignore-cursor-events","core:window:allow-start-dragging","core:webview:allow-print","shell:allow-execute","shell:allow-open","dialog:allow-open","dialog:allow-save","dialog:allow-message","dialog:allow-ask","dialog:allow-confirm","http:default","notification:default","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-register-all","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","os:allow-platform","os:allow-version","os:allow-os-type","os:allow-family","os:allow-arch","os:allow-exe-extension","os:allow-locale","os:allow-hostname","process:allow-restart","process:allow-exit","clipboard-manager:allow-read-text","clipboard-manager:allow-write-text","core:app:allow-app-show","core:app:allow-app-hide","process:default","fs:default","dialog:default","os:default","clipboard-manager:default"]}}
|
||||
{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["global-shortcut:default","store:default","store:allow-set","store:allow-get-store","store:allow-has","store:allow-delete","store:allow-clear","store:allow-values","store:allow-save","store:allow-load","store:allow-reset","store:allow-entries"],"platforms":["macOS","windows","linux"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:default","fs:allow-read-file","fs:allow-write-file","fs:allow-read-dir","fs:allow-copy-file","fs:allow-mkdir","fs:allow-remove","fs:allow-remove","fs:allow-rename","fs:allow-exists","core:window:allow-create","core:window:allow-center","core:window:allow-request-user-attention","core:window:allow-set-resizable","core:window:allow-set-maximizable","core:window:allow-set-minimizable","core:window:allow-set-closable","core:window:allow-set-title","core:window:allow-maximize","core:window:allow-unmaximize","core:window:allow-minimize","core:window:allow-unminimize","core:window:allow-show","core:window:allow-hide","core:window:allow-close","core:window:allow-set-decorations","core:window:allow-set-always-on-top","core:window:allow-set-content-protected","core:window:allow-set-size","core:window:allow-set-min-size","core:window:allow-set-max-size","core:window:allow-set-position","core:window:allow-set-fullscreen","core:window:allow-set-focus","core:window:allow-set-icon","core:window:allow-set-skip-taskbar","core:window:allow-set-cursor-grab","core:window:allow-set-cursor-visible","core:window:allow-set-cursor-icon","core:window:allow-set-cursor-position","core:window:allow-set-ignore-cursor-events","core:window:allow-start-dragging","core:webview:allow-print","shell:allow-execute","shell:allow-open","dialog:allow-open","dialog:allow-save","dialog:allow-message","dialog:allow-ask","dialog:allow-confirm","http:default","notification:default","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-register-all","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","os:allow-platform","os:allow-version","os:allow-os-type","os:allow-family","os:allow-arch","os:allow-exe-extension","os:allow-locale","os:allow-hostname","process:allow-restart","process:allow-exit","clipboard-manager:allow-read-text","clipboard-manager:allow-write-text","core:app:allow-app-show","core:app:allow-app-hide","process:default","fs:default","dialog:default","os:default","clipboard-manager:default"]},"valtio":{"identifier":"valtio","description":"","local":true,"windows":["*"],"permissions":["valtio:default","core:event:default"]}}
|
||||
@@ -5598,6 +5598,211 @@
|
||||
"description": "Denies the values command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "store:deny-values"
|
||||
},
|
||||
{
|
||||
"description": "Default permissions for tauri-plugin-valtio.",
|
||||
"type": "string",
|
||||
"const": "valtio:default"
|
||||
},
|
||||
{
|
||||
"description": "Enables the clear_autosave command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-clear-autosave"
|
||||
},
|
||||
{
|
||||
"description": "Enables the get_default_save_strategy command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-get-default-save-strategy"
|
||||
},
|
||||
{
|
||||
"description": "Enables the get_save_strategy command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-get-save-strategy"
|
||||
},
|
||||
{
|
||||
"description": "Enables the get_store_ids command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-get-store-ids"
|
||||
},
|
||||
{
|
||||
"description": "Enables the get_store_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-get-store-path"
|
||||
},
|
||||
{
|
||||
"description": "Enables the get_store_state command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-get-store-state"
|
||||
},
|
||||
{
|
||||
"description": "Enables the get_valtio_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-get-valtio-path"
|
||||
},
|
||||
{
|
||||
"description": "Enables the load command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-load"
|
||||
},
|
||||
{
|
||||
"description": "Enables the patch command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-patch"
|
||||
},
|
||||
{
|
||||
"description": "Enables the save command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-save"
|
||||
},
|
||||
{
|
||||
"description": "Enables the save_all command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-save-all"
|
||||
},
|
||||
{
|
||||
"description": "Enables the save_all_now command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-save-all-now"
|
||||
},
|
||||
{
|
||||
"description": "Enables the save_now command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-save-now"
|
||||
},
|
||||
{
|
||||
"description": "Enables the save_some command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-save-some"
|
||||
},
|
||||
{
|
||||
"description": "Enables the save_some_now command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-save-some-now"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_autosave command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-set-autosave"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_save_strategy command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-set-save-strategy"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_store_options command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-set-store-options"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_valtio_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-set-valtio-path"
|
||||
},
|
||||
{
|
||||
"description": "Enables the unload command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-unload"
|
||||
},
|
||||
{
|
||||
"description": "Denies the clear_autosave command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-clear-autosave"
|
||||
},
|
||||
{
|
||||
"description": "Denies the get_default_save_strategy command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-get-default-save-strategy"
|
||||
},
|
||||
{
|
||||
"description": "Denies the get_save_strategy command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-get-save-strategy"
|
||||
},
|
||||
{
|
||||
"description": "Denies the get_store_ids command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-get-store-ids"
|
||||
},
|
||||
{
|
||||
"description": "Denies the get_store_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-get-store-path"
|
||||
},
|
||||
{
|
||||
"description": "Denies the get_store_state command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-get-store-state"
|
||||
},
|
||||
{
|
||||
"description": "Denies the get_valtio_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-get-valtio-path"
|
||||
},
|
||||
{
|
||||
"description": "Denies the load command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-load"
|
||||
},
|
||||
{
|
||||
"description": "Denies the patch command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-patch"
|
||||
},
|
||||
{
|
||||
"description": "Denies the save command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-save"
|
||||
},
|
||||
{
|
||||
"description": "Denies the save_all command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-save-all"
|
||||
},
|
||||
{
|
||||
"description": "Denies the save_all_now command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-save-all-now"
|
||||
},
|
||||
{
|
||||
"description": "Denies the save_now command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-save-now"
|
||||
},
|
||||
{
|
||||
"description": "Denies the save_some command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-save-some"
|
||||
},
|
||||
{
|
||||
"description": "Denies the save_some_now command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-save-some-now"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_autosave command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-set-autosave"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_save_strategy command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-set-save-strategy"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_store_options command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-set-store-options"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_valtio_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-set-valtio-path"
|
||||
},
|
||||
{
|
||||
"description": "Denies the unload command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-unload"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -5598,6 +5598,211 @@
|
||||
"description": "Denies the values command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "store:deny-values"
|
||||
},
|
||||
{
|
||||
"description": "Default permissions for tauri-plugin-valtio.",
|
||||
"type": "string",
|
||||
"const": "valtio:default"
|
||||
},
|
||||
{
|
||||
"description": "Enables the clear_autosave command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-clear-autosave"
|
||||
},
|
||||
{
|
||||
"description": "Enables the get_default_save_strategy command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-get-default-save-strategy"
|
||||
},
|
||||
{
|
||||
"description": "Enables the get_save_strategy command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-get-save-strategy"
|
||||
},
|
||||
{
|
||||
"description": "Enables the get_store_ids command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-get-store-ids"
|
||||
},
|
||||
{
|
||||
"description": "Enables the get_store_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-get-store-path"
|
||||
},
|
||||
{
|
||||
"description": "Enables the get_store_state command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-get-store-state"
|
||||
},
|
||||
{
|
||||
"description": "Enables the get_valtio_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-get-valtio-path"
|
||||
},
|
||||
{
|
||||
"description": "Enables the load command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-load"
|
||||
},
|
||||
{
|
||||
"description": "Enables the patch command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-patch"
|
||||
},
|
||||
{
|
||||
"description": "Enables the save command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-save"
|
||||
},
|
||||
{
|
||||
"description": "Enables the save_all command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-save-all"
|
||||
},
|
||||
{
|
||||
"description": "Enables the save_all_now command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-save-all-now"
|
||||
},
|
||||
{
|
||||
"description": "Enables the save_now command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-save-now"
|
||||
},
|
||||
{
|
||||
"description": "Enables the save_some command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-save-some"
|
||||
},
|
||||
{
|
||||
"description": "Enables the save_some_now command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-save-some-now"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_autosave command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-set-autosave"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_save_strategy command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-set-save-strategy"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_store_options command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-set-store-options"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_valtio_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-set-valtio-path"
|
||||
},
|
||||
{
|
||||
"description": "Enables the unload command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:allow-unload"
|
||||
},
|
||||
{
|
||||
"description": "Denies the clear_autosave command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-clear-autosave"
|
||||
},
|
||||
{
|
||||
"description": "Denies the get_default_save_strategy command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-get-default-save-strategy"
|
||||
},
|
||||
{
|
||||
"description": "Denies the get_save_strategy command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-get-save-strategy"
|
||||
},
|
||||
{
|
||||
"description": "Denies the get_store_ids command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-get-store-ids"
|
||||
},
|
||||
{
|
||||
"description": "Denies the get_store_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-get-store-path"
|
||||
},
|
||||
{
|
||||
"description": "Denies the get_store_state command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-get-store-state"
|
||||
},
|
||||
{
|
||||
"description": "Denies the get_valtio_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-get-valtio-path"
|
||||
},
|
||||
{
|
||||
"description": "Denies the load command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-load"
|
||||
},
|
||||
{
|
||||
"description": "Denies the patch command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-patch"
|
||||
},
|
||||
{
|
||||
"description": "Denies the save command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-save"
|
||||
},
|
||||
{
|
||||
"description": "Denies the save_all command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-save-all"
|
||||
},
|
||||
{
|
||||
"description": "Denies the save_all_now command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-save-all-now"
|
||||
},
|
||||
{
|
||||
"description": "Denies the save_now command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-save-now"
|
||||
},
|
||||
{
|
||||
"description": "Denies the save_some command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-save-some"
|
||||
},
|
||||
{
|
||||
"description": "Denies the save_some_now command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-save-some-now"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_autosave command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-set-autosave"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_save_strategy command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-set-save-strategy"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_store_options command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-set-store-options"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_valtio_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-set-valtio-path"
|
||||
},
|
||||
{
|
||||
"description": "Denies the unload command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "valtio:deny-unload"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -33,6 +33,7 @@ fn on_button_clicked() -> String {
|
||||
|
||||
fn main() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_valtio::init())
|
||||
.plugin(tauri_plugin_store::Builder::new().build())
|
||||
.plugin(tauri_plugin_notification::init())
|
||||
.plugin(tauri_plugin_http::init())
|
||||
|
||||
Reference in New Issue
Block a user