[feat] use heroui + setup persistore + setup toast

todo: fix launchoption problem
This commit is contained in:
Purp1e
2025-03-12 11:22:32 +08:00
parent 2ef6d2c298
commit 9103150562
27 changed files with 745 additions and 264 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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"]}}

View File

@@ -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"
}
]
},

View File

@@ -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"
}
]
},