mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-05-06 00:05:55 +08:00
✨ 扫码登录
This commit is contained in:
486
src-tauri/Cargo.lock
generated
486
src-tauri/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -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.3", features = [] }
|
||||
tauri-build = { version = "2.0.4", features = [] }
|
||||
|
||||
[dependencies]
|
||||
chrono = "0.4.39"
|
||||
log = "0.4.22"
|
||||
serde = { version = "1.0.217", features = ["derive"] }
|
||||
serde_json = "1.0.134"
|
||||
tauri = { version = "2.1.1", features = [] }
|
||||
tauri-utils = "2.1.0"
|
||||
serde_json = "1.0.135"
|
||||
tauri = { version = "2.2.0", features = [] }
|
||||
tauri-utils = "2.1.1"
|
||||
url = "2.5.4"
|
||||
walkdir = "2.5.0"
|
||||
|
||||
|
||||
@@ -37,97 +37,28 @@
|
||||
"core:window:allow-set-focus",
|
||||
"core:window:allow-show",
|
||||
"core:window:allow-unminimize",
|
||||
{
|
||||
"identifier": "fs:allow-exists",
|
||||
"allow": [
|
||||
{
|
||||
"path": "**"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifier": "fs:allow-mkdir",
|
||||
"allow": [
|
||||
{
|
||||
"path": "**"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifier": "fs:allow-read-dir",
|
||||
"allow": [
|
||||
{
|
||||
"path": "**"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifier": "fs:allow-read-text-file",
|
||||
"allow": [
|
||||
{
|
||||
"path": "**"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifier": "fs:allow-remove",
|
||||
"allow": [
|
||||
{
|
||||
"path": "**"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifier": "fs:allow-write-file",
|
||||
"allow": [
|
||||
{
|
||||
"path": "**"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifier": "fs:allow-write-text-file",
|
||||
"allow": [
|
||||
{
|
||||
"path": "**"
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "identifier": "fs:allow-exists", "allow": [{ "path": "**" }] },
|
||||
{ "identifier": "fs:allow-mkdir", "allow": [{ "path": "**" }] },
|
||||
{ "identifier": "fs:allow-read-dir", "allow": [{ "path": "**" }] },
|
||||
{ "identifier": "fs:allow-read-text-file", "allow": [{ "path": "**" }] },
|
||||
{ "identifier": "fs:allow-remove", "allow": [{ "path": "**" }] },
|
||||
{ "identifier": "fs:allow-write-file", "allow": [{ "path": "**" }] },
|
||||
{ "identifier": "fs:allow-write-text-file", "allow": [{ "path": "**" }] },
|
||||
{
|
||||
"identifier": "http:default",
|
||||
"allow": [
|
||||
{
|
||||
"url": "https://*.miyoushe.com/*"
|
||||
},
|
||||
{
|
||||
"url": "https://*.mihoyo.com/*"
|
||||
},
|
||||
{
|
||||
"url": "https://homa.snapgenshin.com/*"
|
||||
},
|
||||
{
|
||||
"url": "https://*.hoyoverse.com/*"
|
||||
}
|
||||
{ "url": "https://*.miyoushe.com/*" },
|
||||
{ "url": "https://*.mihoyo.com/*" },
|
||||
{ "url": "https://homa.snapgenshin.com/*" },
|
||||
{ "url": "https://*.hoyoverse.com/*" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifier": "shell:allow-execute",
|
||||
"allow": [
|
||||
{
|
||||
"name": "win_open",
|
||||
"cmd": "explorer",
|
||||
"args": true
|
||||
},
|
||||
{
|
||||
"name": "mac_open",
|
||||
"cmd": "open",
|
||||
"args": true
|
||||
},
|
||||
{
|
||||
"name": "exec-sh",
|
||||
"cmd": "powershell",
|
||||
"args": true
|
||||
}
|
||||
{ "name": "win_open", "cmd": "explorer", "args": true },
|
||||
{ "name": "mac_open", "cmd": "open", "args": true },
|
||||
{ "name": "exec-sh", "cmd": "powershell", "args": true }
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
@@ -773,6 +773,11 @@
|
||||
"description": "Enables the reparent command without any pre-configured scope.",
|
||||
"commands": { "allow": ["reparent"], "deny": [] }
|
||||
},
|
||||
"allow-set-webview-background-color": {
|
||||
"identifier": "allow-set-webview-background-color",
|
||||
"description": "Enables the set_webview_background_color command without any pre-configured scope.",
|
||||
"commands": { "allow": ["set_webview_background_color"], "deny": [] }
|
||||
},
|
||||
"allow-set-webview-focus": {
|
||||
"identifier": "allow-set-webview-focus",
|
||||
"description": "Enables the set_webview_focus command without any pre-configured scope.",
|
||||
@@ -853,6 +858,11 @@
|
||||
"description": "Denies the reparent command without any pre-configured scope.",
|
||||
"commands": { "allow": [], "deny": ["reparent"] }
|
||||
},
|
||||
"deny-set-webview-background-color": {
|
||||
"identifier": "deny-set-webview-background-color",
|
||||
"description": "Denies the set_webview_background_color command without any pre-configured scope.",
|
||||
"commands": { "allow": [], "deny": ["set_webview_background_color"] }
|
||||
},
|
||||
"deny-set-webview-focus": {
|
||||
"identifier": "deny-set-webview-focus",
|
||||
"description": "Denies the set_webview_focus command without any pre-configured scope.",
|
||||
@@ -1100,6 +1110,21 @@
|
||||
"description": "Enables the set_always_on_top command without any pre-configured scope.",
|
||||
"commands": { "allow": ["set_always_on_top"], "deny": [] }
|
||||
},
|
||||
"allow-set-background-color": {
|
||||
"identifier": "allow-set-background-color",
|
||||
"description": "Enables the set_background_color command without any pre-configured scope.",
|
||||
"commands": { "allow": ["set_background_color"], "deny": [] }
|
||||
},
|
||||
"allow-set-badge-count": {
|
||||
"identifier": "allow-set-badge-count",
|
||||
"description": "Enables the set_badge_count command without any pre-configured scope.",
|
||||
"commands": { "allow": ["set_badge_count"], "deny": [] }
|
||||
},
|
||||
"allow-set-badge-label": {
|
||||
"identifier": "allow-set-badge-label",
|
||||
"description": "Enables the set_badge_label command without any pre-configured scope.",
|
||||
"commands": { "allow": ["set_badge_label"], "deny": [] }
|
||||
},
|
||||
"allow-set-closable": {
|
||||
"identifier": "allow-set-closable",
|
||||
"description": "Enables the set_closable command without any pre-configured scope.",
|
||||
@@ -1185,6 +1210,11 @@
|
||||
"description": "Enables the set_minimizable command without any pre-configured scope.",
|
||||
"commands": { "allow": ["set_minimizable"], "deny": [] }
|
||||
},
|
||||
"allow-set-overlay-icon": {
|
||||
"identifier": "allow-set-overlay-icon",
|
||||
"description": "Enables the set_overlay_icon command without any pre-configured scope.",
|
||||
"commands": { "allow": ["set_overlay_icon"], "deny": [] }
|
||||
},
|
||||
"allow-set-position": {
|
||||
"identifier": "allow-set-position",
|
||||
"description": "Enables the set_position command without any pre-configured scope.",
|
||||
@@ -1445,6 +1475,21 @@
|
||||
"description": "Denies the set_always_on_top command without any pre-configured scope.",
|
||||
"commands": { "allow": [], "deny": ["set_always_on_top"] }
|
||||
},
|
||||
"deny-set-background-color": {
|
||||
"identifier": "deny-set-background-color",
|
||||
"description": "Denies the set_background_color command without any pre-configured scope.",
|
||||
"commands": { "allow": [], "deny": ["set_background_color"] }
|
||||
},
|
||||
"deny-set-badge-count": {
|
||||
"identifier": "deny-set-badge-count",
|
||||
"description": "Denies the set_badge_count command without any pre-configured scope.",
|
||||
"commands": { "allow": [], "deny": ["set_badge_count"] }
|
||||
},
|
||||
"deny-set-badge-label": {
|
||||
"identifier": "deny-set-badge-label",
|
||||
"description": "Denies the set_badge_label command without any pre-configured scope.",
|
||||
"commands": { "allow": [], "deny": ["set_badge_label"] }
|
||||
},
|
||||
"deny-set-closable": {
|
||||
"identifier": "deny-set-closable",
|
||||
"description": "Denies the set_closable command without any pre-configured scope.",
|
||||
@@ -1530,6 +1575,11 @@
|
||||
"description": "Denies the set_minimizable command without any pre-configured scope.",
|
||||
"commands": { "allow": [], "deny": ["set_minimizable"] }
|
||||
},
|
||||
"deny-set-overlay-icon": {
|
||||
"identifier": "deny-set-overlay-icon",
|
||||
"description": "Denies the set_overlay_icon command without any pre-configured scope.",
|
||||
"commands": { "allow": [], "deny": ["set_overlay_icon"] }
|
||||
},
|
||||
"deny-set-position": {
|
||||
"identifier": "deny-set-position",
|
||||
"description": "Denies the set_position command without any pre-configured scope.",
|
||||
|
||||
@@ -2626,6 +2626,11 @@
|
||||
"type": "string",
|
||||
"const": "core:webview:allow-reparent"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_webview_background_color command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:webview:allow-set-webview-background-color"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_webview_focus command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -2706,6 +2711,11 @@
|
||||
"type": "string",
|
||||
"const": "core:webview:deny-reparent"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_webview_background_color command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:webview:deny-set-webview-background-color"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_webview_focus command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -2921,6 +2931,21 @@
|
||||
"type": "string",
|
||||
"const": "core:window:allow-set-always-on-top"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_background_color command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:allow-set-background-color"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_badge_count command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:allow-set-badge-count"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_badge_label command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:allow-set-badge-label"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_closable command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -3006,6 +3031,11 @@
|
||||
"type": "string",
|
||||
"const": "core:window:allow-set-minimizable"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_overlay_icon command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:allow-set-overlay-icon"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_position command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -3266,6 +3296,21 @@
|
||||
"type": "string",
|
||||
"const": "core:window:deny-set-always-on-top"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_background_color command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:deny-set-background-color"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_badge_count command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:deny-set-badge-count"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_badge_label command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:deny-set-badge-label"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_closable command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -3351,6 +3396,11 @@
|
||||
"type": "string",
|
||||
"const": "core:window:deny-set-minimizable"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_overlay_icon command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:deny-set-overlay-icon"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_position command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
|
||||
@@ -2626,6 +2626,11 @@
|
||||
"type": "string",
|
||||
"const": "core:webview:allow-reparent"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_webview_background_color command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:webview:allow-set-webview-background-color"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_webview_focus command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -2706,6 +2711,11 @@
|
||||
"type": "string",
|
||||
"const": "core:webview:deny-reparent"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_webview_background_color command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:webview:deny-set-webview-background-color"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_webview_focus command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -2921,6 +2931,21 @@
|
||||
"type": "string",
|
||||
"const": "core:window:allow-set-always-on-top"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_background_color command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:allow-set-background-color"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_badge_count command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:allow-set-badge-count"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_badge_label command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:allow-set-badge-label"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_closable command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -3006,6 +3031,11 @@
|
||||
"type": "string",
|
||||
"const": "core:window:allow-set-minimizable"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_overlay_icon command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:allow-set-overlay-icon"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_position command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -3266,6 +3296,21 @@
|
||||
"type": "string",
|
||||
"const": "core:window:deny-set-always-on-top"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_background_color command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:deny-set-background-color"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_badge_count command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:deny-set-badge-count"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_badge_label command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:deny-set-badge-label"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_closable command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -3351,6 +3396,11 @@
|
||||
"type": "string",
|
||||
"const": "core:window:deny-set-minimizable"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_overlay_icon command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "core:window:deny-set-overlay-icon"
|
||||
},
|
||||
{
|
||||
"description": "Denies the set_position command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//! @file src/client/mod.rs
|
||||
//! @desc 客户端模块,负责操作米游社客户端
|
||||
//! @since Beta v0.6.7
|
||||
//! @since Beta v0.6.8
|
||||
|
||||
mod menu;
|
||||
mod utils;
|
||||
@@ -8,7 +8,7 @@ mod utils;
|
||||
use tauri::{AppHandle, Manager, WebviewWindowBuilder};
|
||||
use tauri_utils::config::WebviewUrl;
|
||||
|
||||
static BBS_VERSION: &'static str = "2.79.1";
|
||||
static BBS_VERSION: &'static str = "2.80.1";
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn create_mhy_client(handle: AppHandle, func: String, url: String) {
|
||||
|
||||
Reference in New Issue
Block a user