Compare commits
31 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad3289ec5f | ||
|
|
ec73110a43 | ||
|
|
6dd5c89cd8 | ||
|
|
e79fdf607f | ||
|
|
9c736a0241 | ||
|
|
8fed953df0 | ||
|
|
b1520d8069 | ||
|
|
0c4a688535 | ||
|
|
3ba6584b1e | ||
|
|
a4e0e59172 | ||
|
|
0c561ff98f | ||
|
|
817ae298b1 | ||
|
|
92d2e847bd | ||
|
|
d0f12446a8 | ||
|
|
a07d673776 | ||
|
|
083381f2ec | ||
|
|
040f49a33e | ||
|
|
3cfa00a2f6 | ||
|
|
f6068e5bac | ||
|
|
557d68956e | ||
|
|
2f14405cab | ||
|
|
2803d06418 | ||
|
|
298096858f | ||
|
|
7e11b467d1 | ||
|
|
7cd66ffb2d | ||
|
|
5de9c0a76f | ||
|
|
9a3b2ff9b9 | ||
|
|
afa0ba190b | ||
|
|
6316cc42b2 | ||
|
|
abb0a6e751 | ||
|
|
c89dfae2f7 |
4
.github/workflows/build.yml
vendored
@@ -43,11 +43,11 @@ jobs:
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18.16.0
|
||||
node-version: 22.0.0
|
||||
- name: setup pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 9.0.5
|
||||
version: 9.1.0
|
||||
- name: remove lockfile
|
||||
run: rm pnpm-lock.yaml
|
||||
- name: Install frontend dependencies
|
||||
|
||||
4
.github/workflows/qodana_code_quality.yml
vendored
@@ -14,11 +14,11 @@ jobs:
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 21.4.0
|
||||
node-version: 22.0.0
|
||||
- name: setup pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 9.0.5
|
||||
version: 9.1.0
|
||||
- name: remove lockfile
|
||||
run: rm -f pnpm-lock.yaml
|
||||
- name: Install dependencies
|
||||
|
||||
25
CHANGELOG.md
@@ -2,12 +2,33 @@
|
||||
Author: 目棃
|
||||
Description: CHANGELOG
|
||||
Date: 2024-01-15
|
||||
Update: 2024-04-24
|
||||
Update: 2024-06-04
|
||||
---
|
||||
|
||||
> 本文档 [`Frontmatter`](https://github.com/BTMuli/MuCli#Frontmatter) 由 [MuCli](https://github.com/BTMuli/Mucli) 自动生成于 `2024-01-15 17:29:15`
|
||||
>
|
||||
> 更新于 `2024-04-24 15:36:42`
|
||||
> 更新于 `2024-06-04 20:07:53`
|
||||
|
||||
## [0.4.8](https://github.com/BTMuli/TeyvatGuide/releases/v0.4.8) (2024-06-04)
|
||||
|
||||
- 🐛 修复名片解析异常 [`#110`](https://github.com/BTMuli/TeyvatGuide/issues/110)
|
||||
- 💄 调整链接组件样式
|
||||
- 💄 调整首页生日组件样式
|
||||
- 🐛 修复版本搜索失效,未完成成就优先
|
||||
- 🍱 更新 4.7 版本资源 [`#112`](https://github.com/BTMuli/TeyvatGuide/issues/112)
|
||||
|
||||
## [0.4.7](https://github.com/BTMuli/TeyvatGuide/releases/v0.4.7) (2024-05-10)
|
||||
|
||||
- 🐛 修复 mention 类型渲染异常
|
||||
- ⚡️ 对签到链接跳转进行处理,优化部分网页活动打开
|
||||
- ♻️ 重构用户祈愿数据库相关处理
|
||||
- 🔥 隐藏网页登录模块 [`#108`](https://github.com/BTMuli/TeyvatGuide/issues/108)
|
||||
- ✨ 采用 ajv 验证 UIGF [`#109`](https://github.com/BTMuli/TeyvatGuide/issues/109)
|
||||
- 💄 完善公告`table`&`p`部分的渲染
|
||||
- 💄 调整帖子文本部分的样式
|
||||
- ♻️ UIAF重构,支持祈愿备份/恢复
|
||||
- ⚡️ 完善公告正则
|
||||
- ♻️ 名片组件抽离,wiki添加名片信息
|
||||
|
||||
## [0.4.6](https://github.com/BTMuli/TeyvatGuide/releases/v0.4.6) (2024-04-24)
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ const pkgJsonConfig = {
|
||||
"version",
|
||||
"description",
|
||||
"type",
|
||||
"packageManager",
|
||||
"scripts",
|
||||
"lint-staged",
|
||||
"keywords",
|
||||
|
||||
38
package.json
@@ -1,9 +1,8 @@
|
||||
{
|
||||
"name": "TeyvatGuide",
|
||||
"version": "0.4.6",
|
||||
"version": "0.4.8",
|
||||
"description": "Game Tool for Genshin Impact player",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.0.5",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tauri build",
|
||||
@@ -67,7 +66,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@mdi/font": "7.4.47",
|
||||
"@tauri-apps/api": "^1.5.4",
|
||||
"@tauri-apps/api": "^1.5.5",
|
||||
"ajv": "^8.13.0",
|
||||
"artplayer": "^5.1.1",
|
||||
"clipboard": "^2.0.11",
|
||||
"color-convert": "^2.0.1",
|
||||
@@ -80,42 +80,42 @@
|
||||
"tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log#v1",
|
||||
"tauri-plugin-sql-api": "github:tauri-apps/tauri-plugin-sql#v1",
|
||||
"uuid": "^9.0.1",
|
||||
"vue": "^3.4.24",
|
||||
"vue-echarts": "^6.7.0",
|
||||
"vue": "^3.4.27",
|
||||
"vue-echarts": "^6.7.2",
|
||||
"vue-json-viewer": "^3.0.4",
|
||||
"vue-router": "^4.3.2",
|
||||
"vuetify": "^3.5.16",
|
||||
"vuetify": "^3.6.6",
|
||||
"wcag-color": "^1.1.1",
|
||||
"xml-js": "^1.6.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/eslintrc": "^3.0.2",
|
||||
"@eslint/js": "^9.1.1",
|
||||
"@tauri-apps/cli": "^1.5.11",
|
||||
"@eslint/js": "^9.2.0",
|
||||
"@tauri-apps/cli": "^1.5.14",
|
||||
"@types/color-convert": "^2.0.3",
|
||||
"@types/js-md5": "^0.7.2",
|
||||
"@types/node": "^20.12.7",
|
||||
"@types/node": "^20.12.12",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@typescript-eslint/parser": "^7.7.1",
|
||||
"@typescript-eslint/parser": "^7.9.0",
|
||||
"@vitejs/plugin-vue": "^5.0.4",
|
||||
"concurrently": "^8.2.2",
|
||||
"eslint": "^9.1.1",
|
||||
"eslint": "^9.2.0",
|
||||
"eslint-config-love": "^47.0.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-jsonc": "^2.15.1",
|
||||
"eslint-plugin-n": "^17.2.1",
|
||||
"eslint-plugin-n": "^17.7.0",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"eslint-plugin-vue": "^9.25.0",
|
||||
"eslint-plugin-vue": "^9.26.0",
|
||||
"eslint-plugin-yml": "^1.14.0",
|
||||
"globals": "^15.0.0",
|
||||
"globals": "^15.2.0",
|
||||
"husky": "^9.0.11",
|
||||
"jsonc-eslint-parser": "^2.4.0",
|
||||
"lint-staged": "^15.2.2",
|
||||
"oxlint": "^0.3.1",
|
||||
"oxlint": "^0.3.4",
|
||||
"prettier": "3.2.5",
|
||||
"stylelint": "^16.3.1",
|
||||
"stylelint": "^16.5.0",
|
||||
"stylelint-config-idiomatic-order": "^10.0.0",
|
||||
"stylelint-config-standard-vue": "^1.0.0",
|
||||
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
|
||||
@@ -123,9 +123,9 @@
|
||||
"stylelint-order": "^6.0.4",
|
||||
"stylelint-prettier": "^5.0.0",
|
||||
"typescript": "^5.4.5",
|
||||
"typescript-eslint": "^7.7.1",
|
||||
"vite": "^5.2.10",
|
||||
"vite-plugin-vue-devtools": "^7.0.27",
|
||||
"typescript-eslint": "^7.9.0",
|
||||
"vite": "^5.2.11",
|
||||
"vite-plugin-vue-devtools": "^7.1.3",
|
||||
"vite-plugin-vuetify": "^2.0.3",
|
||||
"vue-eslint-parser": "^9.4.2",
|
||||
"yaml-eslint-parser": "^1.2.2"
|
||||
|
||||
936
pnpm-lock.yaml
generated
BIN
public/WIKI/GCG/normal/「诸君听我颂,共举爱之杯!」.webp
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
public/WIKI/GCG/normal/万千子嗣.webp
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
public/WIKI/GCG/normal/中央实验室遗址.webp
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
public/WIKI/GCG/normal/乐园遗落之花.webp
Normal file
|
After Width: | Height: | Size: 65 KiB |
BIN
public/WIKI/GCG/normal/予行恶者以惩惧.webp
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
public/WIKI/GCG/normal/云堇.webp
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
public/WIKI/GCG/normal/亚瑟先生.webp
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
public/WIKI/GCG/normal/亡雷凝蓄.webp
Normal file
|
After Width: | Height: | Size: 65 KiB |
BIN
public/WIKI/GCG/normal/亡风啸卷.webp
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
public/WIKI/GCG/normal/冰史莱姆.webp
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
public/WIKI/GCG/normal/卡维.webp
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
public/WIKI/GCG/normal/吞星之鲸.webp
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
public/WIKI/GCG/normal/圣骸毒蝎.webp
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
public/WIKI/GCG/normal/圣骸飞蛇.webp
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
public/WIKI/GCG/normal/地狱里摇摆.webp
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
public/WIKI/GCG/normal/大型水史莱姆.webp
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
public/WIKI/GCG/normal/幻戏倒计时:3.webp
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
public/WIKI/GCG/normal/庄谐并举.webp
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
public/WIKI/GCG/normal/无光鲸噬.webp
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
public/WIKI/GCG/normal/旧日鏖战.webp
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
public/WIKI/GCG/normal/森林王器.webp
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
public/WIKI/GCG/normal/水与正义.webp
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
public/WIKI/GCG/normal/竭泽.webp
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
public/WIKI/GCG/normal/芙宁娜.webp
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
public/WIKI/GCG/normal/苦舍桓.webp
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
public/WIKI/GCG/normal/莱欧斯利.webp
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
public/WIKI/GCG/normal/赤王陵.webp
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
public/WIKI/GCG/normal/辛焱.webp
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
public/WIKI/GCG/normal/逐影猎人.webp
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
public/WIKI/GCG/normal/金流监督.webp
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
public/WIKI/GCG/normal/阿佩普的绿洲守望者.webp
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
public/WIKI/GCG/normal/雷丘丘萨满.webp
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
public/WIKI/GCG/normal/静水流涌之辉.webp
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
public/WIKI/GCG/normal/预算师的技艺.webp
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
public/WIKI/GCG/normal/黄金剧团.webp
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
public/WIKI/character/10000095.webp
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/WIKI/character/10000097.webp
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
public/WIKI/character/10000098.webp
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/WIKI/weapon/11515.webp
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
public/WIKI/weapon/15426.webp
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
public/WIKI/weapon/15513.webp
Normal file
|
After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 20 KiB |
BIN
public/icon/achievement/UI_AchievementIcon_B006.webp
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
public/icon/constellations/UI_Talent_S_Clorinde_01.webp
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
public/icon/constellations/UI_Talent_S_Clorinde_02.webp
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
public/icon/constellations/UI_Talent_S_Clorinde_03.webp
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
public/icon/constellations/UI_Talent_S_Clorinde_04.webp
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
public/icon/constellations/UI_Talent_S_Sethos_01.webp
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
public/icon/constellations/UI_Talent_S_Sethos_02.webp
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
public/icon/constellations/UI_Talent_S_Sethos_03.webp
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
public/icon/constellations/UI_Talent_S_Sethos_04.webp
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
public/icon/constellations/UI_Talent_S_Sigewinne_01.webp
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/icon/constellations/UI_Talent_S_Sigewinne_02.webp
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
public/icon/constellations/UI_Talent_S_Sigewinne_03.webp
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
public/icon/constellations/UI_Talent_S_Sigewinne_04.webp
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
public/icon/constellations/UI_Talent_U_Clorinde_01.webp
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
public/icon/constellations/UI_Talent_U_Clorinde_02.webp
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
public/icon/constellations/UI_Talent_U_Sethos_01.webp
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
public/icon/constellations/UI_Talent_U_Sethos_02.webp
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
public/icon/constellations/UI_Talent_U_Sigewinne_01.webp
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
public/icon/constellations/UI_Talent_U_Sigewinne_02.webp
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
public/icon/talents/Skill_E_Clorinde_01.webp
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/icon/talents/Skill_E_Sethos_01.webp
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
public/icon/talents/Skill_E_Sigewinne_01.webp
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
public/icon/talents/Skill_S_Clorinde_01.webp
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
public/icon/talents/Skill_S_Sethos_01.webp
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
public/icon/talents/Skill_S_Sigewinne_01.webp
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
public/icon/talents/UI_Talent_S_Clorinde_05.webp
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
public/icon/talents/UI_Talent_S_Clorinde_06.webp
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/icon/talents/UI_Talent_S_Sethos_05.webp
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
public/icon/talents/UI_Talent_S_Sethos_06.webp
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
public/icon/talents/UI_Talent_S_Sigewinne_05.webp
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
public/icon/talents/UI_Talent_S_Sigewinne_06.webp
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
public/icon/talents/UI_Talent_S_Sigewinne_07.webp
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
public/source/nameCard/bg/克洛琳德·取人.webp
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/source/nameCard/bg/希格雯·疗法.webp
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
public/source/nameCard/bg/成就·诗页.webp
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
public/source/nameCard/bg/纪行·衍演.webp
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/source/nameCard/bg/赛索斯·跋灵.webp
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/source/nameCard/icon/克洛琳德·取人.webp
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
public/source/nameCard/icon/希格雯·疗法.webp
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
public/source/nameCard/icon/成就·诗页.webp
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/source/nameCard/icon/纪行·衍演.webp
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
public/source/nameCard/icon/赛索斯·跋灵.webp
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
public/source/nameCard/profile/克洛琳德·取人.webp
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
public/source/nameCard/profile/希格雯·疗法.webp
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/source/nameCard/profile/成就·诗页.webp
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
public/source/nameCard/profile/纪行·衍演.webp
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/source/nameCard/profile/赛索斯·跋灵.webp
Normal file
|
After Width: | Height: | Size: 40 KiB |
425
src-tauri/Cargo.lock
generated
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "TeyvatGuide"
|
||||
version = "0.4.6"
|
||||
version = "0.4.8"
|
||||
description = "Game Tool for Genshin Impact player"
|
||||
authors = ["BTMuli <bt-muli@outlook.com>"]
|
||||
license = "MIT"
|
||||
@@ -15,10 +15,10 @@ tauri-build = { version = "1.4", features = [] }
|
||||
[dependencies]
|
||||
chrono = "0.4.38"
|
||||
log = "0.4.21"
|
||||
serde = { version = "1.0.197", features = ["derive"] }
|
||||
serde_json = "1.0.116"
|
||||
tauri = { version = "1.6.1", features = [ "shell-execute", "shell-open", "window-set-always-on-top", "window-set-fullscreen", "dialog-message", "process-exit", "fs-read-dir", "window-hide", "os-all", "clipboard-all", "dialog-open", "dialog-save", "fs-create-dir", "fs-remove-dir", "fs-write-file", "fs-remove-file", "fs-read-file", "path-all", "fs-exists", "window-close", "window-set-title", "window-unminimize", "window-show", "window-set-focus", "http-request"] }
|
||||
tauri-utils = "1.5.3"
|
||||
serde = { version = "1.0.201", features = ["derive"] }
|
||||
serde_json = "1.0.117"
|
||||
tauri = { version = "1.6.7", features = [ "shell-execute", "shell-open", "window-set-always-on-top", "window-set-fullscreen", "dialog-message", "process-exit", "fs-read-dir", "window-hide", "os-all", "clipboard-all", "dialog-open", "dialog-save", "fs-create-dir", "fs-remove-dir", "fs-write-file", "fs-remove-file", "fs-read-file", "path-all", "fs-exists", "window-close", "window-set-title", "window-unminimize", "window-show", "window-set-focus", "http-request"] }
|
||||
tauri-utils = "1.5.4"
|
||||
url = "2.5.0"
|
||||
walkdir = "2.5.0"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"package": {
|
||||
"productName": "TeyvatGuide",
|
||||
"version": "0.4.6"
|
||||
"version": "0.4.8"
|
||||
},
|
||||
"tauri": {
|
||||
"allowlist": {
|
||||
|
||||
25
src/App.vue
@@ -189,13 +189,26 @@ async function getDeepLink(): Promise<UnlistenFn> {
|
||||
e.payload.startsWith("teyvatguide://import_uiaf")
|
||||
) {
|
||||
await toUIAF(e.payload);
|
||||
} else {
|
||||
showSnackbar({
|
||||
text: "无效的 deep link!",
|
||||
color: "error",
|
||||
timeout: 3000,
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (e.payload.startsWith("router?path=")) {
|
||||
const routerPath = e.payload.replace("router?path=", "");
|
||||
if (router.currentRoute.value.path === routerPath) {
|
||||
showSnackbar({
|
||||
text: "已在当前页面!",
|
||||
color: "warn",
|
||||
timeout: 3000,
|
||||
});
|
||||
return;
|
||||
}
|
||||
await router.push(routerPath);
|
||||
return;
|
||||
}
|
||||
showSnackbar({
|
||||
text: "无效的 deep link!",
|
||||
color: "error",
|
||||
timeout: 3000,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||