🍱 添加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": {
"@mdi/font": "7.4.47",
"@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-fs": "^2.0.2",
"@tauri-apps/plugin-fs": "^2.0.3",
"@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-process": "^2.0.0",
"@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",
"artplayer": "^5.2.1",
"clipboard": "^2.0.11",
@@ -85,51 +85,51 @@
"html2canvas": "^1.4.1",
"js-md5": "^0.8.3",
"jsencrypt": "^3.3.2",
"pinia": "^2.2.6",
"pinia": "^2.2.8",
"pinia-plugin-persistedstate": "^4.1.3",
"uuid": "^11.0.3",
"vue": "^3.5.13",
"vue-echarts": "^7.0.3",
"vue-json-viewer": "^3.0.4",
"vue-router": "^4.4.5",
"vuetify": "^3.7.4",
"vue-router": "^4.5.0",
"vuetify": "^3.7.5",
"wcag-color": "^1.1.1",
"xml-js": "^1.6.11"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.15.0",
"@eslint/js": "^9.16.0",
"@tauri-apps/cli": "2.1.0",
"@types/color-convert": "^2.0.4",
"@types/js-md5": "^0.7.2",
"@types/node": "^22.9.0",
"@types/node": "^22.10.1",
"@types/uuid": "^10.0.0",
"@typescript-eslint/parser": "^8.15.0",
"@vitejs/plugin-vue": "^5.2.0",
"@typescript-eslint/parser": "^8.17.0",
"@vitejs/plugin-vue": "^5.2.1",
"concurrently": "^9.1.0",
"eslint": "^9.15.0",
"eslint": "^9.16.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsonc": "^2.18.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^9.31.0",
"eslint-plugin-yml": "^1.15.0",
"globals": "^15.12.0",
"eslint-plugin-vue": "^9.32.0",
"eslint-plugin-yml": "^1.16.0",
"globals": "^15.13.0",
"husky": "^9.1.7",
"jsonc-eslint-parser": "^2.4.0",
"lint-staged": "^15.2.10",
"oxlint": "^0.11.1",
"prettier": "3.3.3",
"stylelint": "^16.10.0",
"oxlint": "^0.14.0",
"prettier": "3.4.1",
"stylelint": "^16.11.0",
"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.10.0",
"stylelint-order": "^6.0.4",
"stylelint-prettier": "^5.0.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.15.0",
"vite": "^5.4.11",
"vite-plugin-vue-devtools": "^7.6.4",
"typescript": "^5.7.2",
"typescript-eslint": "^8.17.0",
"vite": "^6.0.2",
"vite-plugin-vue-devtools": "^7.6.7",
"vite-plugin-vuetify": "^2.0.4",
"vue-eslint-parser": "^9.4.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]]
name = "tauri-plugin-deep-link"
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 = [
"dunce",
"rust-ini",
@@ -4968,7 +4968,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-dialog"
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 = [
"log",
"raw-window-handle",
@@ -4985,7 +4985,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-fs"
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 = [
"anyhow",
"dunce",
@@ -5007,7 +5007,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-http"
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 = [
"data-url",
"http",
@@ -5028,7 +5028,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-log"
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 = [
"android_logger",
"byte-unit",
@@ -5049,7 +5049,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-os"
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 = [
"gethostname",
"log",
@@ -5066,7 +5066,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-process"
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 = [
"tauri",
"tauri-plugin",
@@ -5075,7 +5075,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-shell"
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 = [
"encoding_rs",
"log",
@@ -5095,7 +5095,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-single-instance"
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 = [
"serde",
"serde_json",
@@ -5109,7 +5109,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-sql"
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 = [
"futures-core",
"indexmap 2.6.0",
@@ -5669,9 +5669,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]]
name = "url"
version = "2.5.3"
version = "2.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d157f1b96d14500ffdc1f10ba712e780825526c03d9a49b4d0324b0d9113ada"
checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60"
dependencies = [
"form_urlencoded",
"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
[build-dependencies]
tauri-build = { version = "2.0.2", features = [] }
tauri-build = { version = "2.0.3", features = [] }
[dependencies]
chrono = "0.4.38"
@@ -19,68 +19,68 @@ serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.133"
tauri = { version = "2.1.1", features = [] }
tauri-utils = "2.1.0"
url = "2.5.3"
url = "2.5.4"
walkdir = "2.5.0"
# deep link 插件
[dependencies.tauri-plugin-deep-link]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://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"
branch = "v2"
# dialog 插件
[dependencies.tauri-plugin-dialog]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://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"
branch = "v2"
# fs 插件
[dependencies.tauri-plugin-fs]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://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"
branch = "v2"
# http 插件
[dependencies.tauri-plugin-http]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://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"
branch = "v2"
features = ["unsafe-headers"]
# log 插件
[dependencies.tauri-plugin-log]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://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"
branch = "v2"
# os 插件
[dependencies.tauri-plugin-os]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://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"
branch = "v2"
# process 插件
[dependencies.tauri-plugin-process]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://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"
branch = "v2"
# shell 插件
[dependencies.tauri-plugin-shell]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://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"
branch = "v2"
# single-instance 插件
[dependencies.tauri-plugin-single-instance]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://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"
branch = "v2"
# sqlite 插件
[dependencies.tauri-plugin-sql]
#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git"
git = "https://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"
branch = "v2"
features = ["sqlite"]

View File

@@ -1,6 +1,6 @@
//! @file src/client/mod.rs
//! @desc 客户端模块,负责操作米游社客户端
//! @since Beta v0.6.2
//! @since Beta v0.6.5
mod menu;
mod utils;
@@ -12,7 +12,7 @@ use tauri_utils::config::WebviewUrl;
pub async fn create_mhy_client(handle: AppHandle, func: String, url: String) {
let mut win_width = 400.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;
if url != "" {
url_parse = WebviewUrl::External(url.parse().unwrap());

View File

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

View File

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

View File

@@ -1,22 +1,22 @@
/**
* @file web/constant/bbs.ts
* @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_MOBILE = `Mozilla/5.0 (Linux; Android 12) Mobile miHoYoBBS/${BBS_VERSION}`;
export const BBS_APP_ID = "bll8iq97cem8";
/**
* @description salt 值
* @version 2.77.2
* @since Beta v0.6.3
* @version 2.78.1
* @since Beta v0.6.5
*/
export const BBS_SALT = {
K2: "TKAsNctXTFctUMIgTfkHncRKJjvvRuOf",
LK2: "LfWCPiYcIZyzGUgeFUbuJZNOyqpLoNlv",
K2: "GuODIETRPuJxpiUQoZairQxHtmzZKYFl",
LK2: "ACDpsiiEFSqqLiEpzXMuXNsLNqGkrIQc",
X4: "xV8v4Qu54lUKrEYFZkJhB8cuOh9Asafs",
X6: "t0qEgfub6cvueAPgR5m9aQWWVciEer7v",
PROD: "t0qEgfub6cvueAPgR5m9aQWWVciEer7v",