⬆️ 更新依赖

This commit is contained in:
BTMuli
2025-05-05 21:45:44 +08:00
parent e98c7a580f
commit 27c79aec62
7 changed files with 1746 additions and 1347 deletions

View File

@@ -3,7 +3,7 @@
"version": "0.7.3",
"description": "Game Tool for GenshinImpact player",
"private": true,
"packageManager": "pnpm@10.8.0",
"packageManager": "pnpm@10.10.0",
"type": "module",
"scripts": {
"build": "tauri build",
@@ -70,19 +70,19 @@
},
"dependencies": {
"@mdi/font": "7.4.47",
"@tauri-apps/api": "^2.4.1",
"@tauri-apps/api": "^2.5.0",
"@tauri-apps/plugin-deep-link": "^2.2.1",
"@tauri-apps/plugin-dialog": "^2.2.1",
"@tauri-apps/plugin-fs": "^2.2.1",
"@tauri-apps/plugin-http": "^2.4.3",
"@tauri-apps/plugin-log": "^2.3.1",
"@tauri-apps/plugin-log": "^2.4.0",
"@tauri-apps/plugin-opener": "^2.2.6",
"@tauri-apps/plugin-os": "^2.2.1",
"@tauri-apps/plugin-process": "^2.2.1",
"@tauri-apps/plugin-shell": "^2.2.1",
"@tauri-apps/plugin-sql": "^2.2.0",
"ajv": "^8.17.1",
"artplayer": "^5.2.2",
"artplayer": "^5.2.3",
"clipboard": "^2.0.11",
"color-convert": "^3.0.1",
"echarts": "^5.6.0",
@@ -92,57 +92,57 @@
"pinia": "^3.0.2",
"pinia-plugin-persistedstate": "^4.2.0",
"qrcode.vue": "^3.6.0",
"sass-embedded": "^1.86.3",
"sass-embedded": "^1.87.0",
"uuid": "^11.1.0",
"vue": "^3.5.13",
"vue-echarts": "^7.0.3",
"vue-json-pretty": "^2.4.0",
"vue-router": "^4.5.0",
"vuetify": "^3.8.1",
"vue-router": "^4.5.1",
"vuetify": "^3.8.3",
"wcag-color": "^1.1.1",
"xml-js": "^1.6.11"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.24.0",
"@tauri-apps/cli": "2.4.1",
"@eslint/js": "^9.26.0",
"@tauri-apps/cli": "2.5.0",
"@types/color-convert": "^2.0.4",
"@types/fs-extra": "^11.0.4",
"@types/js-md5": "^0.7.2",
"@types/node": "^22.14.1",
"@types/node": "^22.15.3",
"@types/uuid": "^10.0.0",
"@typescript-eslint/parser": "^8.29.1",
"@typescript-eslint/parser": "^8.31.1",
"@vitejs/plugin-vue": "^5.2.3",
"concurrently": "^9.1.2",
"eslint": "^9.24.0",
"eslint": "^9.26.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsonc": "^2.20.0",
"eslint-plugin-prettier": "^5.2.6",
"eslint-plugin-vue": "^10.0.0",
"eslint-plugin-yml": "^1.17.0",
"eslint-plugin-prettier": "^5.4.0",
"eslint-plugin-vue": "^10.1.0",
"eslint-plugin-yml": "^1.18.0",
"fs-extra": "^11.3.0",
"globals": "^16.0.0",
"husky": "^9.1.7",
"jsonc-eslint-parser": "^2.4.0",
"lint-staged": "^15.5.1",
"oxlint": "^0.16.5",
"oxlint": "^0.16.9",
"prettier": "3.5.3",
"stylelint": "^16.18.0",
"stylelint": "^16.19.1",
"stylelint-config-idiomatic-order": "^10.0.0",
"stylelint-config-standard-vue": "^1.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
"stylelint-high-performance-animation": "^1.11.0",
"stylelint-order": "^6.0.4",
"stylelint-order": "^7.0.0",
"stylelint-prettier": "^5.0.3",
"stylelint-scss": "^6.11.1",
"tsx": "^4.19.3",
"tsx": "^4.19.4",
"typescript": "^5.8.3",
"typescript-eslint": "^8.29.1",
"vite": "^6.2.6",
"vite-plugin-vue-devtools": "^7.7.2",
"typescript-eslint": "^8.31.1",
"vite": "^6.3.5",
"vite-plugin-vue-devtools": "^7.7.6",
"vite-plugin-vuetify": "^2.1.1",
"vue-eslint-parser": "^10.1.3",
"vue-tsc": "^2.2.8",
"vue-tsc": "^2.2.10",
"yaml-eslint-parser": "^1.3.0"
}
}

2364
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

651
src-tauri/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -17,15 +17,15 @@ name = "teyvat_guide_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2.1.1", features = [] }
tauri-build = { version = "2.2.0", features = [] }
[dependencies]
chrono = "0.4.40"
log = "0.4.27"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"
tauri = { version = "2.4.1", features = [] }
tauri-utils = "2.3.1"
tauri = { version = "2.5.1", features = [] }
tauri-utils = "2.4.0"
url = "2.5.4"
walkdir = "2.5.0"

View File

@@ -1,6 +1,6 @@
//! @file src/client/menu.rs
//! @desc 客户端菜单模块,负责操作米游社客户端菜单
//! @since Beta v0.5.2
//! @since Beta v0.7.4
use crate::client::utils;
use tauri::menu::{Menu, MenuBuilder, MenuEvent, MenuItemBuilder, Submenu, SubmenuBuilder};
@@ -124,7 +124,7 @@ fn handle_menu_open_post(app_handle: &Window) {
await window.__TAURI__.event.emit('post_mhy_client',JSON.stringify(arg));
})()"#;
if window.is_some() {
window.unwrap().eval(&execute_js).ok().unwrap();
window.unwrap().eval(execute_js).ok().unwrap();
}
}
@@ -139,7 +139,7 @@ fn handle_menu_retry(app_handle: &Window) {
await window.__TAURI__.event.emit('post_mhy_client',JSON.stringify(arg));
})()"#;
if window.is_some() {
window.unwrap().eval(&execute_js).ok().unwrap();
window.unwrap().eval(execute_js).ok().unwrap();
}
}
@@ -154,7 +154,7 @@ fn handle_menu_mock_touch(app_handle: &Window) {
await window.__TAURI__.event.emit('post_mhy_client',JSON.stringify(arg));
})()"#;
if window.is_some() {
window.unwrap().eval(&execute_js).ok().unwrap();
window.unwrap().eval(execute_js).ok().unwrap();
}
}
@@ -169,7 +169,7 @@ fn handle_menu_remove_overlay(app_handle: &Window) {
await window.__TAURI__.event.emit('post_mhy_client',JSON.stringify(arg));
})()"#;
if window.is_some() {
window.unwrap().eval(&execute_js).ok().unwrap();
window.unwrap().eval(execute_js).ok().unwrap();
}
}

View File

@@ -1,6 +1,6 @@
//! @file src/commands.rs
//! @desc 命令模块,负责处理命令
//! @since Beta v0.7.2
//! @since Beta v0.7.4
use tauri::{AppHandle, Emitter, Manager, WebviewWindowBuilder};
use tauri_utils::config::{WebviewUrl, WindowConfig};
@@ -52,7 +52,7 @@ pub async fn create_window(
pub async fn execute_js(app_handle: AppHandle, label: String, js: String) {
let window = app_handle.get_webview_window(&label);
if window.is_some() {
window.unwrap().eval(&js).unwrap();
window.unwrap().eval(js).unwrap();
}
}

View File

@@ -1,7 +1,7 @@
/**
* @file utils/TGBbs.ts
* @description 关于 BBS 的工具函数
* @since Beta v0.7.3
* @since Beta v0.7.4
*/
/**
@@ -10,18 +10,18 @@
*/
export type SaltKey = "K2" | "LK2" | "X4" | "X6" | "PROD";
const BBS_VERSION: Readonly<string> = "2.85.1";
const BBS_VERSION: Readonly<string> = "2.86.0";
const BBS_UA_MOBILE: Readonly<string> = `Mozilla/5.0 (Linux; Android 12) Mobile miHoYoBBS/${BBS_VERSION}`;
const BBS_UA_PC: Readonly<string> = `Mozilla/5.0 (Windows NT 10.0; Win64; x64) miHoYoBBS/${BBS_VERSION}`;
/**
* @description salt 值
* @version 2.85.1
* @since Beta v0.7.3
* @version 2.86.0
* @since Beta v0.7.4
*/
const BBS_SALT: Readonly<Record<SaltKey, string>> = {
K2: "ss6ZUzUlaWv6iDe0SHPSdCZYr0RSKPdi",
LK2: "gW20AtTxpc0V5GR3SmsytCLhVBgXtW6I",
K2: "VXv8qbUf8WkYv9o3geqPOlZWKQHQ64KX",
LK2: "0y3QaJ0D4L4dCyF4hvcTeRhAM5rdxCzB",
X4: "xV8v4Qu54lUKrEYFZkJhB8cuOh9Asafs",
X6: "t0qEgfub6cvueAPgR5m9aQWWVciEer7v",
PROD: "t0qEgfub6cvueAPgR5m9aQWWVciEer7v",