feat(tauri): 添加新功能并优化应用配置
- 新增 @solid-primitives/filesystem、@solid-primitives/scheduled 和 @solid-primitives/storage 依赖 - 添加 @tauri-apps/plugin-dialog、@tauri-apps/plugin-fs 和 @tauri-apps/plugin-store 插件 - 更新应用窗口配置,移除 titleBarStyle 设置 - 修改应用名称为 "Comfy Resource Downloader" - 更新 ESLint 配置,移除 Solid 相关规则
This commit is contained in:
@@ -22,4 +22,7 @@ tauri = { version = "2", features = [] }
|
||||
tauri-plugin-opener = "2"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
tauri-plugin-store = "2"
|
||||
tauri-plugin-fs = "2"
|
||||
tauri-plugin-dialog = "2"
|
||||
|
||||
|
@@ -8,6 +8,9 @@
|
||||
"permissions": [
|
||||
"core:default",
|
||||
"opener:default",
|
||||
"core:window:allow-start-dragging"
|
||||
"core:window:allow-start-dragging",
|
||||
"store:default",
|
||||
"fs:default",
|
||||
"dialog:default"
|
||||
]
|
||||
}
|
@@ -7,6 +7,9 @@ fn greet(name: &str) -> String {
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_dialog::init())
|
||||
.plugin(tauri_plugin_fs::init())
|
||||
.plugin(tauri_plugin_store::Builder::new().build())
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.invoke_handler(tauri::generate_handler![greet])
|
||||
.run(tauri::generate_context!())
|
||||
|
@@ -12,14 +12,13 @@
|
||||
"app": {
|
||||
"windows": [
|
||||
{
|
||||
"title": "comfy-downloader",
|
||||
"title": "Comfy Resource Downloader",
|
||||
"width": 1200,
|
||||
"height": 800,
|
||||
"minWidth": 1200,
|
||||
"minHeight": 800,
|
||||
"resizable": true,
|
||||
"hiddenTitle": true,
|
||||
"titleBarStyle": "Overlay",
|
||||
"hiddenTitle": false,
|
||||
"theme": "Dark"
|
||||
}
|
||||
],
|
||||
|
Reference in New Issue
Block a user