🍱 添加contentId

This commit is contained in:
目棃
2024-12-04 10:07:10 +08:00
parent 1e47b4fd29
commit 2a83fcbcb8
8 changed files with 772 additions and 678 deletions

View File

@@ -68,15 +68,15 @@
"dependencies": { "dependencies": {
"@mdi/font": "7.4.47", "@mdi/font": "7.4.47",
"@tauri-apps/api": "^2.1.1", "@tauri-apps/api": "^2.1.1",
"@tauri-apps/plugin-deep-link": "^2.0.0", "@tauri-apps/plugin-deep-link": "^2.0.1",
"@tauri-apps/plugin-dialog": "^2.0.1", "@tauri-apps/plugin-dialog": "^2.0.1",
"@tauri-apps/plugin-fs": "^2.0.2", "@tauri-apps/plugin-fs": "^2.0.3",
"@tauri-apps/plugin-http": "^2.0.1", "@tauri-apps/plugin-http": "^2.0.1",
"@tauri-apps/plugin-log": "^2.0.0", "@tauri-apps/plugin-log": "^2.0.1",
"@tauri-apps/plugin-os": "^2.0.0", "@tauri-apps/plugin-os": "^2.0.0",
"@tauri-apps/plugin-process": "^2.0.0", "@tauri-apps/plugin-process": "^2.0.0",
"@tauri-apps/plugin-shell": "^2.0.1", "@tauri-apps/plugin-shell": "^2.0.1",
"@tauri-apps/plugin-sql": "^2.0.1", "@tauri-apps/plugin-sql": "^2.0.2",
"ajv": "^8.17.1", "ajv": "^8.17.1",
"artplayer": "^5.2.1", "artplayer": "^5.2.1",
"clipboard": "^2.0.11", "clipboard": "^2.0.11",
@@ -85,51 +85,51 @@
"html2canvas": "^1.4.1", "html2canvas": "^1.4.1",
"js-md5": "^0.8.3", "js-md5": "^0.8.3",
"jsencrypt": "^3.3.2", "jsencrypt": "^3.3.2",
"pinia": "^2.2.6", "pinia": "^2.2.8",
"pinia-plugin-persistedstate": "^4.1.3", "pinia-plugin-persistedstate": "^4.1.3",
"uuid": "^11.0.3", "uuid": "^11.0.3",
"vue": "^3.5.13", "vue": "^3.5.13",
"vue-echarts": "^7.0.3", "vue-echarts": "^7.0.3",
"vue-json-viewer": "^3.0.4", "vue-json-viewer": "^3.0.4",
"vue-router": "^4.4.5", "vue-router": "^4.5.0",
"vuetify": "^3.7.4", "vuetify": "^3.7.5",
"wcag-color": "^1.1.1", "wcag-color": "^1.1.1",
"xml-js": "^1.6.11" "xml-js": "^1.6.11"
}, },
"devDependencies": { "devDependencies": {
"@eslint/eslintrc": "^3.2.0", "@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.15.0", "@eslint/js": "^9.16.0",
"@tauri-apps/cli": "2.1.0", "@tauri-apps/cli": "2.1.0",
"@types/color-convert": "^2.0.4", "@types/color-convert": "^2.0.4",
"@types/js-md5": "^0.7.2", "@types/js-md5": "^0.7.2",
"@types/node": "^22.9.0", "@types/node": "^22.10.1",
"@types/uuid": "^10.0.0", "@types/uuid": "^10.0.0",
"@typescript-eslint/parser": "^8.15.0", "@typescript-eslint/parser": "^8.17.0",
"@vitejs/plugin-vue": "^5.2.0", "@vitejs/plugin-vue": "^5.2.1",
"concurrently": "^9.1.0", "concurrently": "^9.1.0",
"eslint": "^9.15.0", "eslint": "^9.16.0",
"eslint-plugin-import": "^2.31.0", "eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsonc": "^2.18.2", "eslint-plugin-jsonc": "^2.18.2",
"eslint-plugin-prettier": "^5.2.1", "eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^9.31.0", "eslint-plugin-vue": "^9.32.0",
"eslint-plugin-yml": "^1.15.0", "eslint-plugin-yml": "^1.16.0",
"globals": "^15.12.0", "globals": "^15.13.0",
"husky": "^9.1.7", "husky": "^9.1.7",
"jsonc-eslint-parser": "^2.4.0", "jsonc-eslint-parser": "^2.4.0",
"lint-staged": "^15.2.10", "lint-staged": "^15.2.10",
"oxlint": "^0.11.1", "oxlint": "^0.14.0",
"prettier": "3.3.3", "prettier": "3.4.1",
"stylelint": "^16.10.0", "stylelint": "^16.11.0",
"stylelint-config-idiomatic-order": "^10.0.0", "stylelint-config-idiomatic-order": "^10.0.0",
"stylelint-config-standard-vue": "^1.0.0", "stylelint-config-standard-vue": "^1.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.8.0", "stylelint-declaration-block-no-ignored-properties": "^2.8.0",
"stylelint-high-performance-animation": "^1.10.0", "stylelint-high-performance-animation": "^1.10.0",
"stylelint-order": "^6.0.4", "stylelint-order": "^6.0.4",
"stylelint-prettier": "^5.0.2", "stylelint-prettier": "^5.0.2",
"typescript": "^5.6.3", "typescript": "^5.7.2",
"typescript-eslint": "^8.15.0", "typescript-eslint": "^8.17.0",
"vite": "^5.4.11", "vite": "^6.0.2",
"vite-plugin-vue-devtools": "^7.6.4", "vite-plugin-vue-devtools": "^7.6.7",
"vite-plugin-vuetify": "^2.0.4", "vite-plugin-vuetify": "^2.0.4",
"vue-eslint-parser": "^9.4.3", "vue-eslint-parser": "^9.4.3",
"yaml-eslint-parser": "^1.2.3" "yaml-eslint-parser": "^1.2.3"

1306
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

24
src-tauri/Cargo.lock generated
View File

@@ -4949,7 +4949,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-deep-link" name = "tauri-plugin-deep-link"
version = "2.0.2" version = "2.0.2"
source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#715a0477be8f6f77af0377f4eca2b649554446be"
dependencies = [ dependencies = [
"dunce", "dunce",
"rust-ini", "rust-ini",
@@ -4968,7 +4968,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-dialog" name = "tauri-plugin-dialog"
version = "2.0.4" version = "2.0.4"
source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#715a0477be8f6f77af0377f4eca2b649554446be"
dependencies = [ dependencies = [
"log", "log",
"raw-window-handle", "raw-window-handle",
@@ -4985,7 +4985,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-fs" name = "tauri-plugin-fs"
version = "2.1.0" version = "2.1.0"
source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#715a0477be8f6f77af0377f4eca2b649554446be"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"dunce", "dunce",
@@ -5007,7 +5007,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-http" name = "tauri-plugin-http"
version = "2.0.4" version = "2.0.4"
source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#715a0477be8f6f77af0377f4eca2b649554446be"
dependencies = [ dependencies = [
"data-url", "data-url",
"http", "http",
@@ -5028,7 +5028,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-log" name = "tauri-plugin-log"
version = "2.0.3" version = "2.0.3"
source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#715a0477be8f6f77af0377f4eca2b649554446be"
dependencies = [ dependencies = [
"android_logger", "android_logger",
"byte-unit", "byte-unit",
@@ -5049,7 +5049,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-os" name = "tauri-plugin-os"
version = "2.0.1" version = "2.0.1"
source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#715a0477be8f6f77af0377f4eca2b649554446be"
dependencies = [ dependencies = [
"gethostname", "gethostname",
"log", "log",
@@ -5066,7 +5066,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-process" name = "tauri-plugin-process"
version = "2.0.1" version = "2.0.1"
source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#715a0477be8f6f77af0377f4eca2b649554446be"
dependencies = [ dependencies = [
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
@@ -5075,7 +5075,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-shell" name = "tauri-plugin-shell"
version = "2.0.2" version = "2.0.2"
source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#715a0477be8f6f77af0377f4eca2b649554446be"
dependencies = [ dependencies = [
"encoding_rs", "encoding_rs",
"log", "log",
@@ -5095,7 +5095,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-single-instance" name = "tauri-plugin-single-instance"
version = "2.0.2" version = "2.0.2"
source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#715a0477be8f6f77af0377f4eca2b649554446be"
dependencies = [ dependencies = [
"serde", "serde",
"serde_json", "serde_json",
@@ -5109,7 +5109,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-plugin-sql" name = "tauri-plugin-sql"
version = "2.0.3" version = "2.0.3"
source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#715a0477be8f6f77af0377f4eca2b649554446be"
dependencies = [ dependencies = [
"futures-core", "futures-core",
"indexmap 2.6.0", "indexmap 2.6.0",
@@ -5669,9 +5669,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]] [[package]]
name = "url" name = "url"
version = "2.5.3" version = "2.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d157f1b96d14500ffdc1f10ba712e780825526c03d9a49b4d0324b0d9113ada" checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60"
dependencies = [ dependencies = [
"form_urlencoded", "form_urlencoded",
"idna", "idna",

View File

@@ -10,7 +10,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies] [build-dependencies]
tauri-build = { version = "2.0.2", features = [] } tauri-build = { version = "2.0.3", features = [] }
[dependencies] [dependencies]
chrono = "0.4.38" chrono = "0.4.38"
@@ -19,68 +19,68 @@ serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.133" serde_json = "1.0.133"
tauri = { version = "2.1.1", features = [] } tauri = { version = "2.1.1", features = [] }
tauri-utils = "2.1.0" tauri-utils = "2.1.0"
url = "2.5.3" url = "2.5.4"
walkdir = "2.5.0" walkdir = "2.5.0"
# deep link 插件 # deep link 插件
[dependencies.tauri-plugin-deep-link] [dependencies.tauri-plugin-deep-link]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://github.com/tauri-apps/plugins-workspace.git" #git = "https://github.com/tauri-apps/plugins-workspace.git"
branch = "v2" branch = "v2"
# dialog 插件 # dialog 插件
[dependencies.tauri-plugin-dialog] [dependencies.tauri-plugin-dialog]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://github.com/tauri-apps/plugins-workspace.git" #git = "https://github.com/tauri-apps/plugins-workspace.git"
branch = "v2" branch = "v2"
# fs 插件 # fs 插件
[dependencies.tauri-plugin-fs] [dependencies.tauri-plugin-fs]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://github.com/tauri-apps/plugins-workspace.git" #git = "https://github.com/tauri-apps/plugins-workspace.git"
branch = "v2" branch = "v2"
# http 插件 # http 插件
[dependencies.tauri-plugin-http] [dependencies.tauri-plugin-http]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://github.com/tauri-apps/plugins-workspace.git" #git = "https://github.com/tauri-apps/plugins-workspace.git"
branch = "v2" branch = "v2"
features = ["unsafe-headers"] features = ["unsafe-headers"]
# log 插件 # log 插件
[dependencies.tauri-plugin-log] [dependencies.tauri-plugin-log]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://github.com/tauri-apps/plugins-workspace.git" #git = "https://github.com/tauri-apps/plugins-workspace.git"
branch = "v2" branch = "v2"
# os 插件 # os 插件
[dependencies.tauri-plugin-os] [dependencies.tauri-plugin-os]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://github.com/tauri-apps/plugins-workspace.git" #git = "https://github.com/tauri-apps/plugins-workspace.git"
branch = "v2" branch = "v2"
# process 插件 # process 插件
[dependencies.tauri-plugin-process] [dependencies.tauri-plugin-process]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://github.com/tauri-apps/plugins-workspace.git" #git = "https://github.com/tauri-apps/plugins-workspace.git"
branch = "v2" branch = "v2"
# shell 插件 # shell 插件
[dependencies.tauri-plugin-shell] [dependencies.tauri-plugin-shell]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://github.com/tauri-apps/plugins-workspace.git" #git = "https://github.com/tauri-apps/plugins-workspace.git"
branch = "v2" branch = "v2"
# single-instance 插件 # single-instance 插件
[dependencies.tauri-plugin-single-instance] [dependencies.tauri-plugin-single-instance]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://github.com/tauri-apps/plugins-workspace.git" #git = "https://github.com/tauri-apps/plugins-workspace.git"
branch = "v2" branch = "v2"
# sqlite 插件 # sqlite 插件
[dependencies.tauri-plugin-sql] [dependencies.tauri-plugin-sql]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://github.com/tauri-apps/plugins-workspace.git" #git = "https://github.com/tauri-apps/plugins-workspace.git"
branch = "v2" branch = "v2"
features = ["sqlite"] features = ["sqlite"]

View File

@@ -1,6 +1,6 @@
//! @file src/client/mod.rs //! @file src/client/mod.rs
//! @desc 客户端模块,负责操作米游社客户端 //! @desc 客户端模块,负责操作米游社客户端
//! @since Beta v0.6.2 //! @since Beta v0.6.5
mod menu; mod menu;
mod utils; mod utils;
@@ -12,7 +12,7 @@ use tauri_utils::config::WebviewUrl;
pub async fn create_mhy_client(handle: AppHandle, func: String, url: String) { pub async fn create_mhy_client(handle: AppHandle, func: String, url: String) {
let mut win_width = 400.0; let mut win_width = 400.0;
let mut win_height = 800.0; let mut win_height = 800.0;
let win_ua = "Mozilla/5.0 (Linux; Android 12) Mobile miHoYoBBS/2.77.2"; let win_ua = "Mozilla/5.0 (Linux; Android 12) Mobile miHoYoBBS/2.78.1";
let url_parse; let url_parse;
if url != "" { if url != "" {
url_parse = WebviewUrl::External(url.parse().unwrap()); url_parse = WebviewUrl::External(url.parse().unwrap());

View File

@@ -5491,7 +5491,7 @@
}, },
{ {
"id": 15514, "id": 15514,
"contentId": 0, "contentId": 503390,
"dropDays": [3, 6, 7], "dropDays": [3, 6, 7],
"name": "星鹫赤羽", "name": "星鹫赤羽",
"itemType": "weapon", "itemType": "weapon",
@@ -7888,7 +7888,7 @@
}, },
{ {
"id": 11432, "id": 11432,
"contentId": 0, "contentId": 503608,
"dropDays": [2, 5, 7], "dropDays": [2, 5, 7],
"name": "厄水之祸", "name": "厄水之祸",
"itemType": "weapon", "itemType": "weapon",
@@ -10285,7 +10285,7 @@
}, },
{ {
"id": 15430, "id": 15430,
"contentId": 0, "contentId": 503391,
"dropDays": [3, 6, 7], "dropDays": [3, 6, 7],
"name": "缀花之翎", "name": "缀花之翎",
"itemType": "weapon", "itemType": "weapon",
@@ -11407,7 +11407,7 @@
}, },
{ {
"id": 14430, "id": 14430,
"contentId": 0, "contentId": 503389,
"dropDays": [1, 4, 7], "dropDays": [1, 4, 7],
"name": "乘浪的回旋", "name": "乘浪的回旋",
"itemType": "weapon", "itemType": "weapon",

View File

@@ -1,7 +1,7 @@
[ [
{ {
"id": 15514, "id": 15514,
"contentId": 0, "contentId": 503390,
"name": "星鹫赤羽", "name": "星鹫赤羽",
"star": 5, "star": 5,
"bg": "/icon/bg/5-Star.webp", "bg": "/icon/bg/5-Star.webp",
@@ -478,7 +478,7 @@
}, },
{ {
"id": 15430, "id": 15430,
"contentId": 0, "contentId": 503391,
"name": "缀花之翎", "name": "缀花之翎",
"star": 4, "star": 4,
"bg": "/icon/bg/4-Star.webp", "bg": "/icon/bg/4-Star.webp",
@@ -703,7 +703,7 @@
}, },
{ {
"id": 14430, "id": 14430,
"contentId": 0, "contentId": 503389,
"name": "乘浪的回旋", "name": "乘浪的回旋",
"star": 4, "star": 4,
"bg": "/icon/bg/4-Star.webp", "bg": "/icon/bg/4-Star.webp",
@@ -1279,7 +1279,7 @@
}, },
{ {
"id": 11432, "id": 11432,
"contentId": 0, "contentId": 503608,
"name": "厄水之祸", "name": "厄水之祸",
"star": 4, "star": 4,
"bg": "/icon/bg/4-Star.webp", "bg": "/icon/bg/4-Star.webp",

View File

@@ -1,22 +1,22 @@
/** /**
* @file web/constant/bbs.ts * @file web/constant/bbs.ts
* @description 常量-应用数据 * @description 常量-应用数据
* @since Beta v0.6.3 * @since Beta v0.6.5
*/ */
export const BBS_VERSION = "2.77.2"; export const BBS_VERSION = "2.78.1";
export const BBS_UA_PC = `Mozilla/5.0 (Windows NT 10.0; Win64; x64) miHoYoBBS/${BBS_VERSION}`; export const BBS_UA_PC = `Mozilla/5.0 (Windows NT 10.0; Win64; x64) miHoYoBBS/${BBS_VERSION}`;
export const BBS_UA_MOBILE = `Mozilla/5.0 (Linux; Android 12) Mobile miHoYoBBS/${BBS_VERSION}`; export const BBS_UA_MOBILE = `Mozilla/5.0 (Linux; Android 12) Mobile miHoYoBBS/${BBS_VERSION}`;
export const BBS_APP_ID = "bll8iq97cem8"; export const BBS_APP_ID = "bll8iq97cem8";
/** /**
* @description salt 值 * @description salt 值
* @version 2.77.2 * @version 2.78.1
* @since Beta v0.6.3 * @since Beta v0.6.5
*/ */
export const BBS_SALT = { export const BBS_SALT = {
K2: "TKAsNctXTFctUMIgTfkHncRKJjvvRuOf", K2: "GuODIETRPuJxpiUQoZairQxHtmzZKYFl",
LK2: "LfWCPiYcIZyzGUgeFUbuJZNOyqpLoNlv", LK2: "ACDpsiiEFSqqLiEpzXMuXNsLNqGkrIQc",
X4: "xV8v4Qu54lUKrEYFZkJhB8cuOh9Asafs", X4: "xV8v4Qu54lUKrEYFZkJhB8cuOh9Asafs",
X6: "t0qEgfub6cvueAPgR5m9aQWWVciEer7v", X6: "t0qEgfub6cvueAPgR5m9aQWWVciEer7v",
PROD: "t0qEgfub6cvueAPgR5m9aQWWVciEer7v", PROD: "t0qEgfub6cvueAPgR5m9aQWWVciEer7v",