️ 不允许低于 UIGF v2.3 版本的数据导入

This commit is contained in:
目棃
2024-07-18 18:04:12 +08:00
parent 41ee27c74e
commit 5bf2521938
13 changed files with 778 additions and 719 deletions

374
src-tauri/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,15 +10,15 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { version = "2.0.0-beta.18", features = [] }
tauri-build = { version = "2.0.0-beta.19", features = [] }
[dependencies]
chrono = "0.4.38"
log = "0.4.22"
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.120"
tauri = { version = "2.0.0-beta.23", features = [] }
tauri-utils = "2.0.0-beta.18"
tauri = { version = "2.0.0-beta.24", features = [] }
tauri-utils = "2.0.0-beta.19"
url = "2.5.2"
walkdir = "2.5.0"

View File

@@ -3257,6 +3257,11 @@
"description": "Enables the set_title command without any pre-configured scope.",
"commands": { "allow": ["set_title"], "deny": [] }
},
"allow-set-title-bar-style": {
"identifier": "allow-set-title-bar-style",
"description": "Enables the set_title_bar_style command without any pre-configured scope.",
"commands": { "allow": ["set_title_bar_style"], "deny": [] }
},
"allow-set-visible-on-all-workspaces": {
"identifier": "allow-set-visible-on-all-workspaces",
"description": "Enables the set_visible_on_all_workspaces command without any pre-configured scope.",
@@ -3572,6 +3577,11 @@
"description": "Denies the set_title command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["set_title"] }
},
"deny-set-title-bar-style": {
"identifier": "deny-set-title-bar-style",
"description": "Denies the set_title_bar_style command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["set_title_bar_style"] }
},
"deny-set-visible-on-all-workspaces": {
"identifier": "deny-set-visible-on-all-workspaces",
"description": "Denies the set_visible_on_all_workspaces command without any pre-configured scope.",

View File

@@ -4643,6 +4643,11 @@
"type": "string",
"enum": ["window:allow-set-title"]
},
{
"description": "window:allow-set-title-bar-style -> Enables the set_title_bar_style command without any pre-configured scope.",
"type": "string",
"enum": ["window:allow-set-title-bar-style"]
},
{
"description": "window:allow-set-visible-on-all-workspaces -> Enables the set_visible_on_all_workspaces command without any pre-configured scope.",
"type": "string",
@@ -4958,6 +4963,11 @@
"type": "string",
"enum": ["window:deny-set-title"]
},
{
"description": "window:deny-set-title-bar-style -> Denies the set_title_bar_style command without any pre-configured scope.",
"type": "string",
"enum": ["window:deny-set-title-bar-style"]
},
{
"description": "window:deny-set-visible-on-all-workspaces -> Denies the set_visible_on_all_workspaces command without any pre-configured scope.",
"type": "string",

View File

@@ -4643,6 +4643,11 @@
"type": "string",
"enum": ["window:allow-set-title"]
},
{
"description": "window:allow-set-title-bar-style -> Enables the set_title_bar_style command without any pre-configured scope.",
"type": "string",
"enum": ["window:allow-set-title-bar-style"]
},
{
"description": "window:allow-set-visible-on-all-workspaces -> Enables the set_visible_on_all_workspaces command without any pre-configured scope.",
"type": "string",
@@ -4958,6 +4963,11 @@
"type": "string",
"enum": ["window:deny-set-title"]
},
{
"description": "window:deny-set-title-bar-style -> Denies the set_title_bar_style command without any pre-configured scope.",
"type": "string",
"enum": ["window:deny-set-title-bar-style"]
},
{
"description": "window:deny-set-visible-on-all-workspaces -> Denies the set_visible_on_all_workspaces command without any pre-configured scope.",
"type": "string",

View File

@@ -1,8 +1,8 @@
//! @file src/commands.rs
//! @desc 命令模块,负责处理命令
//! @since Beta v0.5.0
//! @since Beta v0.5.1
use tauri::{AppHandle, Manager, WebviewWindowBuilder};
use tauri::{AppHandle, Emitter, Manager, WebviewWindowBuilder};
use tauri_utils::config::{WebviewUrl, WindowConfig};
// 放一个常数,用来判断应用是否初始化

View File

@@ -1,11 +1,11 @@
//! @file src/main.rs
//! @desc 主模块,用于启动应用
//! @since Beta v0.5.0
//! @since Beta v0.5.1
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use tauri::Manager;
use tauri::{Emitter, Manager};
mod client;
mod commands;
mod plugins;