Compare commits
416 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d44be02f9b | ||
|
|
7df84a2cb8 | ||
|
|
789b388a6f | ||
|
|
47029ce802 | ||
|
|
70bafa9ca2 | ||
|
|
110a6687f4 | ||
|
|
cc71ab05fb | ||
|
|
0c41ce4725 | ||
|
|
09211c8b7f | ||
|
|
87782187d7 | ||
|
|
120abe7a17 | ||
|
|
fe6d0b423d | ||
|
|
31f13caa1e | ||
|
|
1944f2c55b | ||
|
|
24ff9b8018 | ||
|
|
188dda4a1b | ||
|
|
e01c6cf474 | ||
|
|
99a87cc2ac | ||
|
|
2807ce48a6 | ||
|
|
f9b64c5c6a | ||
|
|
1038c9cdb7 | ||
|
|
87f9df80a5 | ||
|
|
d8f4a4c2bf | ||
|
|
3537751d65 | ||
|
|
66f77da754 | ||
|
|
7da01c117d | ||
|
|
722b5598fe | ||
|
|
ba962ae4c6 | ||
|
|
f121644bc4 | ||
|
|
1d810117b0 | ||
|
|
be7c294f7e | ||
|
|
0e1bcdaffe | ||
|
|
51d47c7ca6 | ||
|
|
28f05a757d | ||
|
|
c2db42d9f7 | ||
|
|
49855ea118 | ||
|
|
f5da601620 | ||
|
|
9f707db9f7 | ||
|
|
d30a70d4aa | ||
|
|
036b3c47a7 | ||
|
|
77c513b516 | ||
|
|
69f40cd495 | ||
|
|
9c79e0b822 | ||
|
|
c56b05b4f1 | ||
|
|
b5c7c6e8b1 | ||
|
|
480f1739f5 | ||
|
|
b0a480d65b | ||
|
|
d7aee50cc5 | ||
|
|
fe176ad418 | ||
|
|
5c2556a0c3 | ||
|
|
320e53b567 | ||
|
|
21698dc728 | ||
|
|
9b4b6fb7ab | ||
|
|
8c8f8e3a2d | ||
|
|
5e6e7ee047 | ||
|
|
2872d0f983 | ||
|
|
67e242308e | ||
|
|
a2df7b2d22 | ||
|
|
7b8be1adf9 | ||
|
|
9c73290033 | ||
|
|
6aaf9ea7d9 | ||
|
|
ada60d0d3b | ||
|
|
bbe329d677 | ||
|
|
47ed849f70 | ||
|
|
0d65ba7168 | ||
|
|
da2285a8d0 | ||
|
|
572180234f | ||
|
|
1497533f14 | ||
|
|
3b6970d8c3 | ||
|
|
8fc90d7144 | ||
|
|
c716cf79ed | ||
|
|
9057e613c7 | ||
|
|
a929e2cbe8 | ||
|
|
2d321aad9c | ||
|
|
43de734884 | ||
|
|
b3997815e1 | ||
|
|
52cbfb9f6b | ||
|
|
6d2d2b18d1 | ||
|
|
f7df9ec804 | ||
|
|
3f2ea530fe | ||
|
|
240356da0a | ||
|
|
57de268f06 | ||
|
|
3c238a0f0b | ||
|
|
d6dbddaf87 | ||
|
|
2a84e25f4a | ||
|
|
d1a4b6e97d | ||
|
|
f4a9069ea4 | ||
|
|
7cfd47c36b | ||
|
|
fcc5d3db15 | ||
|
|
2f19691a57 | ||
|
|
83ddadd451 | ||
|
|
b965cccbf1 | ||
|
|
8b60a7f8dd | ||
|
|
04c9907490 | ||
|
|
adef358534 | ||
|
|
fcdad22d94 | ||
|
|
bbc142ac2d | ||
|
|
7169bc202e | ||
|
|
5eb8eb8e3b | ||
|
|
40ffb41f39 | ||
|
|
fe8960687e | ||
|
|
37882ab4bc | ||
|
|
5d892684b8 | ||
|
|
9b5f30ed22 | ||
|
|
564a0c173a | ||
|
|
60a171f1ca | ||
|
|
e0a74b0e58 | ||
|
|
d2ebcca18a | ||
|
|
a096bdcae4 | ||
|
|
e5b360b457 | ||
|
|
608c7834a1 | ||
|
|
79e935b869 | ||
|
|
9de79611c3 | ||
|
|
a4b4232671 | ||
|
|
f42e6d4c8a | ||
|
|
07c45ea9ca | ||
|
|
6363d8d1a2 | ||
|
|
e3ffbb7ffb | ||
|
|
8664d46938 | ||
|
|
6e40784682 | ||
|
|
eb4061748e | ||
|
|
a1fe5823da | ||
|
|
765320168d | ||
|
|
98ebeebf26 | ||
|
|
6293c633b4 | ||
|
|
0f607cea94 | ||
|
|
2defb5740f | ||
|
|
f2fc45204f | ||
|
|
be48c32d0d | ||
|
|
c071538ecc | ||
|
|
f89c008a5c | ||
|
|
512aae14c6 | ||
|
|
7ab35ea4b9 | ||
|
|
09589995ad | ||
|
|
bf1711fa77 | ||
|
|
ed0bc96f97 | ||
|
|
1b2b6ad490 | ||
|
|
5617ba8637 | ||
|
|
fcd6a6160a | ||
|
|
451b0b2762 | ||
|
|
15a402d6ea | ||
|
|
0494700d54 | ||
|
|
a748945628 | ||
|
|
435b1a81db | ||
|
|
7f815d2452 | ||
|
|
b0e0593f65 | ||
|
|
4d581243ef | ||
|
|
8dd8635c04 | ||
|
|
b7d875b0d0 | ||
|
|
1ff37b2918 | ||
|
|
f05a983caa | ||
|
|
a472f2577c | ||
|
|
1f49ddea0c | ||
|
|
ba6efd1529 | ||
|
|
75ba8faf9b | ||
|
|
b1e2ace554 | ||
|
|
9be8c78deb | ||
|
|
b5562a0fce | ||
|
|
0fecfb430c | ||
|
|
bf70161000 | ||
|
|
d23302706b | ||
|
|
7fa17b3b3b | ||
|
|
e8616332d4 | ||
|
|
54fae5e481 | ||
|
|
6804b35043 | ||
|
|
397f1b09a1 | ||
|
|
63e1c98e5d | ||
|
|
ae01e4e8ac | ||
|
|
46efb8fa7d | ||
|
|
3098581235 | ||
|
|
faa6cfe8ea | ||
|
|
e70c658608 | ||
|
|
daeabec99f | ||
|
|
d1f4432a92 | ||
|
|
48fd6cb1b0 | ||
|
|
a78921a9b1 | ||
|
|
855ddace77 | ||
|
|
c9e548ff57 | ||
|
|
77c333383c | ||
|
|
f62e13a26d | ||
|
|
f959b69ea3 | ||
|
|
68c2d1cfcb | ||
|
|
3cb0c423a5 | ||
|
|
a52d573094 | ||
|
|
19b2615d6a | ||
|
|
88bdccec43 | ||
|
|
a7bb92df0c | ||
|
|
1eb36bd606 | ||
|
|
f7eb293ae5 | ||
|
|
0159ee38f3 | ||
|
|
cc930912dc | ||
|
|
40cf7edb6a | ||
|
|
9b48df759a | ||
|
|
b8ff71d71c | ||
|
|
24e46706ab | ||
|
|
6cc025cfb2 | ||
|
|
f5372b8e05 | ||
|
|
c1ce2def26 | ||
|
|
1bd2fa34d3 | ||
|
|
9f7763afd9 | ||
|
|
b136a93464 | ||
|
|
6db1ab0a45 | ||
|
|
83de5beff8 | ||
|
|
9003921f23 | ||
|
|
10000f4aba | ||
|
|
50201fbbc8 | ||
|
|
eaa61e665a | ||
|
|
3a08234a78 | ||
|
|
728dfe45d3 | ||
|
|
484d95790d | ||
|
|
f8933c7ca1 | ||
|
|
75b6ba40e9 | ||
|
|
734b01706f | ||
|
|
4302c179d5 | ||
|
|
4d9b456b9d | ||
|
|
fb8a6fdc4c | ||
|
|
9c1c665964 | ||
|
|
d966fb2f82 | ||
|
|
422f6231c8 | ||
|
|
a2f0a532a8 | ||
|
|
d9f24dccaf | ||
|
|
87eddb7e87 | ||
|
|
e3f3a038f4 | ||
|
|
79ead78eaf | ||
|
|
00381a092e | ||
|
|
5715030114 | ||
|
|
e269719e4f | ||
|
|
2e4171cced | ||
|
|
5cd4b120f4 | ||
|
|
d2b5fcd416 | ||
|
|
7dcbd8204a | ||
|
|
bd54e86f5b | ||
|
|
1facdb9cec | ||
|
|
a95c9479cd | ||
|
|
859ddc3d8d | ||
|
|
7b5a57fd5c | ||
|
|
ed4adf20e9 | ||
|
|
21315cab58 | ||
|
|
1975b989e0 | ||
|
|
fd2e80f0b5 | ||
|
|
882ea9b071 | ||
|
|
2847042933 | ||
|
|
aaf30d0df5 | ||
|
|
f2c5051a23 | ||
|
|
4fc29950b4 | ||
|
|
d9940e5a37 | ||
|
|
5f0ce85fdf | ||
|
|
3380ac265e | ||
|
|
e4e64cb6b8 | ||
|
|
c27a4683ea | ||
|
|
f0aadbff17 | ||
|
|
ee85738bba | ||
|
|
74fec031d7 | ||
|
|
ecbc8fd7cd | ||
|
|
43be304d24 | ||
|
|
d373a4e0e0 | ||
|
|
8a05e4ed07 | ||
|
|
219256d542 | ||
|
|
ca0209e40a | ||
|
|
1d82ecd319 | ||
|
|
44dd81463b | ||
|
|
2a9c0ab552 | ||
|
|
507c6c88ab | ||
|
|
6c3c11c077 | ||
|
|
d306286c06 | ||
|
|
62052d126f | ||
|
|
8d541891ae | ||
|
|
bd081e2dee | ||
|
|
16f6289b15 | ||
|
|
49afdfc2b0 | ||
|
|
2b13f29a02 | ||
|
|
00664d5fb8 | ||
|
|
113f1686df | ||
|
|
c8d6df5b69 | ||
|
|
1cbcdbb31d | ||
|
|
5834eee6fc | ||
|
|
2c451c3c01 | ||
|
|
f0c78a3b03 | ||
|
|
0aae714455 | ||
|
|
a7344388ea | ||
|
|
edb7088846 | ||
|
|
1fa1f2b780 | ||
|
|
837651542d | ||
|
|
c3d6997e0f | ||
|
|
a2a40ab29f | ||
|
|
1ff8a6185e | ||
|
|
b020638b99 | ||
|
|
288fa91106 | ||
|
|
12b9d2a3a0 | ||
|
|
f90d11c7a0 | ||
|
|
ff040fa490 | ||
|
|
051c300a34 | ||
|
|
ea89503761 | ||
|
|
7b3596d226 | ||
|
|
a520d378a6 | ||
|
|
96ca483ca7 | ||
|
|
d23ba4af76 | ||
|
|
63779ec3c7 | ||
|
|
b42b13f79a | ||
|
|
1f05b0d97c | ||
|
|
5f7bdc1c8c | ||
|
|
4b6104f956 | ||
|
|
cb806642e3 | ||
|
|
2608833516 | ||
|
|
786d1af753 | ||
|
|
fba568ead4 | ||
|
|
27d1083181 | ||
|
|
a3c6232e9c | ||
|
|
0d37a86883 | ||
|
|
7ed9e6c17e | ||
|
|
94d8a80745 | ||
|
|
f485a040cc | ||
|
|
2136f676c7 | ||
|
|
3a9610af7c | ||
|
|
0288e38c95 | ||
|
|
03136c4864 | ||
|
|
6d03c22b17 | ||
|
|
dc33c0a259 | ||
|
|
15e0a60bb6 | ||
|
|
3e31bae751 | ||
|
|
8677a5ccb4 | ||
|
|
50a40e1f3d | ||
|
|
2936cc5dd1 | ||
|
|
5894c46c1d | ||
|
|
b29c94bf02 | ||
|
|
587393c3d1 | ||
|
|
fc7f132700 | ||
|
|
087ab2e42d | ||
|
|
71b1d97944 | ||
|
|
305427978d | ||
|
|
55a35471b6 | ||
|
|
7423f6f2b8 | ||
|
|
a78f3aaa55 | ||
|
|
42e557055a | ||
|
|
292e75da8c | ||
|
|
5030af2366 | ||
|
|
92e5aabbb0 | ||
|
|
7c55637f1a | ||
|
|
a2098347eb | ||
|
|
e06b96dcd9 | ||
|
|
25a813d3f7 | ||
|
|
c3f7d01b55 | ||
|
|
f112e79b47 | ||
|
|
2cdb0c5278 | ||
|
|
fb8a0eee1d | ||
|
|
692e6ccc94 | ||
|
|
d50dcc34c6 | ||
|
|
0c8eda3f74 | ||
|
|
5f5af48ce0 | ||
|
|
e865c80c74 | ||
|
|
780181019c | ||
|
|
10202a919d | ||
|
|
ab115726bd | ||
|
|
cc8723c619 | ||
|
|
01cda62231 | ||
|
|
41987a9a58 | ||
|
|
cc3655a700 | ||
|
|
66b54dfc5e | ||
|
|
cfea47f11c | ||
|
|
e247c6a058 | ||
|
|
41c467d285 | ||
|
|
6e73747a80 | ||
|
|
9cc9918d87 | ||
|
|
f30e396c03 | ||
|
|
e779467034 | ||
|
|
bfab4a6ac6 | ||
|
|
aa74818c47 | ||
|
|
8ef9132506 | ||
|
|
280b0e6423 | ||
|
|
8a8087d8e1 | ||
|
|
bf512b93fa | ||
|
|
5ff0d96760 | ||
|
|
5ecb46f1da | ||
|
|
002fb63df3 | ||
|
|
2316bb1fe8 | ||
|
|
6611bb64d2 | ||
|
|
c7c666579a | ||
|
|
720ca76466 | ||
|
|
37a47205b1 | ||
|
|
a929572ef5 | ||
|
|
dfc60d8645 | ||
|
|
600149f99b | ||
|
|
8b2a7f2dd3 | ||
|
|
90eb4facf9 | ||
|
|
ff49d3175a | ||
|
|
7013f2ea18 | ||
|
|
b7ffbf8270 | ||
|
|
715b53ba82 | ||
|
|
972a9a5a99 | ||
|
|
b910496477 | ||
|
|
e4cafcf6e5 | ||
|
|
6e3ca9f6cd | ||
|
|
651a89145f | ||
|
|
8500668213 | ||
|
|
41f561a5ac | ||
|
|
b301d2393d | ||
|
|
e780db9936 | ||
|
|
88cd657525 | ||
|
|
faacc856de | ||
|
|
4467c7686d | ||
|
|
869965ff85 | ||
|
|
1a0bdb7b6d | ||
|
|
3a8e235186 | ||
|
|
605efacf67 | ||
|
|
a2ff92d00a | ||
|
|
06ff32d47d | ||
|
|
86b2dfa184 | ||
|
|
35851532a5 | ||
|
|
bd8ee19b79 | ||
|
|
4b3625527f | ||
|
|
f8b9500def | ||
|
|
26d7df66d3 | ||
|
|
7b596a83f7 | ||
|
|
c562424af9 | ||
|
|
8adedada19 | ||
|
|
696ca40f7f |
3
.env.production
Normal file
@@ -0,0 +1,3 @@
|
||||
VITE_SENTRY_RELEASE=TeyvatGuide@0.9.8
|
||||
VITE_COMMIT_HASH=1d810117
|
||||
VITE_BUILD_TIME=1773380800
|
||||
16
.github/ISSUE_TEMPLATE/bug.yml
vendored
@@ -12,6 +12,14 @@ body:
|
||||
- 你所遇到的问题
|
||||
- 当前使用版本
|
||||
- 复现流程
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: 当前使用版本
|
||||
description: 请填写当前使用版本
|
||||
placeholder: 如 Beta v0.9.1,**如果是微软应用商店下载的请注明**
|
||||
validations:
|
||||
required: true
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Issue Check
|
||||
@@ -30,14 +38,6 @@ body:
|
||||
placeholder: 请详细描述你所遇到的问题
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: 当前使用版本
|
||||
description: 请填写当前使用版本
|
||||
placeholder: 如 Beta v0.3.7
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: reproduce
|
||||
attributes:
|
||||
|
||||
16
.github/ISSUE_TEMPLATE/enhancement.yml
vendored
@@ -21,6 +21,14 @@ body:
|
||||
required: false
|
||||
- label: 我阅读过[提问的艺术](https://github.com/betaseeker/How-To-Ask-Questions)
|
||||
required: false
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: 当前使用版本
|
||||
description: 请填写当前使用版本
|
||||
placeholder: 如 Beta v0.9.1,**如果是微软应用商店下载的请注明**
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
@@ -29,14 +37,6 @@ body:
|
||||
placeholder: 请详细描述新功能的内容
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: 当前使用版本
|
||||
description: 请填写当前使用版本
|
||||
placeholder: 如 Beta v0.3.7
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: additional
|
||||
attributes:
|
||||
|
||||
8
.github/workflows/build.yml
vendored
@@ -27,6 +27,9 @@ jobs:
|
||||
args: "--target aarch64-apple-darwin"
|
||||
target: "macos-arm"
|
||||
runs-on: ${{ matrix.settings.platform }}
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
APP_VERSION: ${{ github.sha }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -42,7 +45,6 @@ jobs:
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
- name: Test SSH connection
|
||||
run: ssh -T git@github.com || true
|
||||
|
||||
- name: Rust setup
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Rust cache
|
||||
@@ -67,9 +69,11 @@ jobs:
|
||||
- name: setup pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 10.23.0
|
||||
version: 10.32.1
|
||||
- name: Install frontend dependencies
|
||||
run: pnpm install
|
||||
- name: Setup sentry-cli
|
||||
run: npm install -g @sentry/cli
|
||||
|
||||
- name: Build app
|
||||
uses: tauri-apps/tauri-action@dev
|
||||
|
||||
26
.github/workflows/qodana_code_quality.yml
vendored
@@ -1,26 +0,0 @@
|
||||
name: Qodana
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# push:
|
||||
# branches:
|
||||
# - master
|
||||
|
||||
jobs:
|
||||
qodana:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 24.8.0
|
||||
- name: setup pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 10.16.1
|
||||
- name: Install dependencies
|
||||
run: pnpm install --no-frozen-lockfile
|
||||
- name: "Qodana Scan"
|
||||
uses: JetBrains/qodana-action@v2023.3
|
||||
env:
|
||||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
|
||||
@@ -1,7 +1,17 @@
|
||||
name: Build Debug for Mac
|
||||
name: Test Build
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
build-mac:
|
||||
description: "Build for Mac"
|
||||
required: true
|
||||
default: true
|
||||
type: boolean
|
||||
build-win:
|
||||
description: "Build for Win"
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
build-debug:
|
||||
description: "Build debug version"
|
||||
required: true
|
||||
@@ -13,7 +23,8 @@ on:
|
||||
default: false
|
||||
type: boolean
|
||||
jobs:
|
||||
build-debug-mac:
|
||||
build-mac:
|
||||
if: inputs.build-mac
|
||||
permissions:
|
||||
contents: write
|
||||
strategy:
|
||||
@@ -29,6 +40,9 @@ jobs:
|
||||
target: "macos-arm"
|
||||
artifact: "debug-build-macos-arm"
|
||||
runs-on: ${{ matrix.settings.platform }}
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
COMMIT_HASH: ${{ github.sha }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -73,10 +87,6 @@ jobs:
|
||||
version: 10.23.0
|
||||
- name: Install frontend dependencies
|
||||
run: pnpm install
|
||||
# 获取commit hash,后续用这个做文件命名
|
||||
- name: Get Commit Hash
|
||||
id: get_commit_hash
|
||||
run: echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||
|
||||
# Build Debug
|
||||
- name: Build debug app
|
||||
@@ -130,3 +140,93 @@ jobs:
|
||||
with:
|
||||
name: release-macos-arm
|
||||
path: TeyvatGuide_${{ env.COMMIT_HASH }}_arm-release.dmg
|
||||
|
||||
build-win:
|
||||
if: inputs.build-win
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
COMMIT_HASH: ${{ github.sha }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup SSH
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" | tr -d '\r' > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
- name: Add Github RSA
|
||||
run: |
|
||||
echo "${{ secrets.KNOWN_GITHUB_RSA }}" >> ~/.ssh/known_hosts
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
- name: Test SSH connection
|
||||
run: ssh -T git@github.com || true
|
||||
|
||||
- name: Rust setup
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Rust cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: "./src-tauri -> target"
|
||||
|
||||
- name: Add Offset Conf
|
||||
run: echo '${{ secrets.YAE_CONF }}' | jq -c . > ./src-tauri/lib/conf.json
|
||||
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 24.8.0
|
||||
- name: setup pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 10.23.0
|
||||
- name: Setup sentry-cli
|
||||
run: npm install -g @sentry/cli
|
||||
- name: Install frontend dependencies
|
||||
run: pnpm install
|
||||
|
||||
# Build Debug
|
||||
- name: Build debug app
|
||||
if: github.event.inputs.build-debug == 'true'
|
||||
uses: tauri-apps/tauri-action@dev
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
args: --debug
|
||||
- name: Move Debug
|
||||
if: github.event.inputs.build-debug == 'true'
|
||||
run: mv src-tauri/target/debug/bundle/msi/*.msi TeyvatGuide_${{ env.COMMIT_HASH }}_win-debug.msi
|
||||
- name: Upload Debug
|
||||
if: github.event.inputs.build-debug == 'true'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: debug-win
|
||||
path: TeyvatGuide_${{ env.COMMIT_HASH }}_win-debug.msi
|
||||
# Build Release
|
||||
- name: Build app
|
||||
if: github.event.inputs.build-release == 'true'
|
||||
uses: tauri-apps/tauri-action@dev
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Move Release
|
||||
if: github.event.inputs.build-release == 'true'
|
||||
run: mv src-tauri/target/release/bundle/msi/*.msi TeyvatGuide_${{ env.COMMIT_HASH }}_win-release.msi
|
||||
- name: Upload Release
|
||||
if: github.event.inputs.build-release
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: release-win
|
||||
path: TeyvatGuide_${{ env.COMMIT_HASH }}_win-release.msi
|
||||
- name: Upload Sentry Pdb
|
||||
if: matrix.settings.target == 'windows'
|
||||
run: |
|
||||
echo "Uploading release: $SENTRY_RELEASE"
|
||||
sentry-cli releases new "$SENTRY_RELEASE"
|
||||
sentry-cli upload-dif src-tauri/target/release/TeyvatGuide.pdb
|
||||
sentry-cli releases finalize "$SENTRY_RELEASE"
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
SENTRY_RELEASE: ${{ env.VITE_SENTRY_RELEASE }}
|
||||
4
.gitignore
vendored
@@ -8,3 +8,7 @@ dist
|
||||
.env.sh
|
||||
# vue-tsc --noEmit
|
||||
*.tsbuildinfo
|
||||
|
||||
# Sentry Config File
|
||||
.env.development.local
|
||||
package-lock.json
|
||||
|
||||
@@ -7,8 +7,6 @@ dist
|
||||
src-tauri/target
|
||||
# Pnpm
|
||||
pnpm-lock.yaml
|
||||
# Qodana
|
||||
qodana.yaml
|
||||
# sourse
|
||||
*.webp
|
||||
*.png
|
||||
|
||||
3
.sentryclirc
Normal file
@@ -0,0 +1,3 @@
|
||||
[defaults]
|
||||
org = teyvat-guide
|
||||
project = teyvat-guide
|
||||
@@ -37,7 +37,7 @@ rules:
|
||||
prettier/prettier: true
|
||||
property-no-vendor-prefix:
|
||||
- true
|
||||
- ignoreProperties: [backdrop-filter]
|
||||
- ignoreProperties: [-webkit-backdrop-filter]
|
||||
rule-empty-line-before:
|
||||
- always
|
||||
- except: ["first-nested"]
|
||||
|
||||
50
.trae/rules/git-commit-rules.md
Normal file
@@ -0,0 +1,50 @@
|
||||
# Git Commit 规则
|
||||
|
||||
## 核心规则
|
||||
|
||||
1. **分步提交**:分步执行 `git add <文件路径>` 再 `git commit -m "<emoji> <描述>"`
|
||||
2. **单一 emoji**:每条提交只使用一个 emoji,位于开头
|
||||
3. **Unicode 格式**:使用 Unicode emoji 图标(如 ✨),不要纯文本(如 `:sparkles:`)
|
||||
4. **中文描述**:以动词开头,一行不超过 100 字符
|
||||
5. **禁止 type: 声明**:不要使用 `✨ feat: xxx` 格式
|
||||
|
||||
## 提交格式
|
||||
|
||||
```
|
||||
<emoji> <描述>
|
||||
```
|
||||
|
||||
## Emoji 速查
|
||||
|
||||
| 类别 | Emoji | 场景 |
|
||||
|------|-------|------|
|
||||
| 新增 | ✨ | 新功能 |
|
||||
| 新增 | 🎨 | 代码结构/格式 |
|
||||
| 新增 | 📝 | 文档 |
|
||||
| 修改 | 🐛 | Bug 修复 |
|
||||
| 修改 | 🩹 | 小修复/补丁 |
|
||||
| 修改 | ⚡️ | 性能优化 |
|
||||
| 修改 | ♻️ | 重构 |
|
||||
| 修改 | 💄 | UI/样式 |
|
||||
| 删除 | 🔥 | 删除代码/文件 |
|
||||
| 删除 | ⚰️ | 删除死代码 |
|
||||
| 依赖 | ➕ | 添加依赖 |
|
||||
| 依赖 | ➖ | 删除依赖 |
|
||||
| 依赖 | ⬆️ | 升级依赖 |
|
||||
| 部署 | 🚀 | 部署 |
|
||||
| 部署 | 📦 | 编译/打包 |
|
||||
| 数据库 | 🗃️ | 数据库变更 |
|
||||
| 安全 | 🔒 | 安全问题 |
|
||||
| 架构 | 🏗️ | 架构变更 |
|
||||
| 体验 | 🧑💻 | 开发体验 |
|
||||
| 进行中 | 🚧 | 进行中工作 |
|
||||
|
||||
## 示例
|
||||
|
||||
```
|
||||
✨ 添加用户个人页面跳转功能
|
||||
🐛 修复角色生日判断逻辑
|
||||
🩹 补充首页mini参数处理
|
||||
♻️ 重构数据库操作为事务模式
|
||||
⚡️ 优化角色列表渲染性能
|
||||
```
|
||||
62
.trae/rules/sqlite-rules.md
Normal file
@@ -0,0 +1,62 @@
|
||||
# SQLite 数据库操作规则
|
||||
|
||||
## 参数占位符
|
||||
|
||||
使用 `$1, $2, $3...` 作为参数占位符,**禁止使用 `?`**:
|
||||
|
||||
```typescript
|
||||
// 正确
|
||||
await db.execute(
|
||||
"INSERT INTO Table(key, value) VALUES ($1, $2)",
|
||||
[key, value]
|
||||
);
|
||||
|
||||
// 错误
|
||||
await db.execute(
|
||||
"INSERT INTO Table(key, value) VALUES (?, ?)",
|
||||
[key, value]
|
||||
);
|
||||
```
|
||||
|
||||
## 异步模式
|
||||
|
||||
所有数据库操作返回 Promise,必须使用 `await`:
|
||||
|
||||
```typescript
|
||||
// 正确
|
||||
const result = await db.execute(sql, params);
|
||||
|
||||
// 错误 - 不处理 Promise
|
||||
db.execute(sql, params);
|
||||
```
|
||||
|
||||
## 插入/更新模式
|
||||
|
||||
使用 `ON CONFLICT` 处理插入或更新:
|
||||
|
||||
```typescript
|
||||
await db.execute(
|
||||
`INSERT INTO Table(key, value, updated)
|
||||
VALUES ($1, $2, datetime('now', 'localtime'))
|
||||
ON CONFLICT(key) DO UPDATE SET value = $2, updated = datetime('now', 'localtime');`,
|
||||
[key, value],
|
||||
);
|
||||
```
|
||||
|
||||
## 查询模式
|
||||
|
||||
```typescript
|
||||
const rows = await db.select<RowType>(
|
||||
"SELECT * FROM Table WHERE id = $1",
|
||||
[id],
|
||||
);
|
||||
```
|
||||
|
||||
## 路径别名
|
||||
|
||||
数据库相关代码使用以下别名:
|
||||
|
||||
| 别名 | 路径 |
|
||||
|------|------|
|
||||
| `@Sql/*` | `./src/plugins/Sqlite/*` |
|
||||
| `@Sqlm/*` | `./src/plugins/Sqlite/modules/*` |
|
||||
79
.trae/rules/typescript-rules.md
Normal file
@@ -0,0 +1,79 @@
|
||||
# TypeScript 开发规则
|
||||
|
||||
## 禁止使用原生 enum
|
||||
|
||||
使用 `const` 对象模式替代原生 `enum`:
|
||||
|
||||
```typescript
|
||||
// 正确
|
||||
const GameServerEnum = <const>{
|
||||
CN_GF01: "cn_gf01",
|
||||
CN_QD01: "cn_qd01",
|
||||
};
|
||||
```
|
||||
|
||||
## 类型定义
|
||||
|
||||
类型定义放在 `src/types/<Module>/<Module>.d.ts` 或 `types/<Module>/<Module>.d.ts`
|
||||
|
||||
Enum 常量放在 `src/enum/<Module>.ts`
|
||||
|
||||
```typescript
|
||||
declare namespace TGApp.BBS.Post {
|
||||
const NewsType = <const>{
|
||||
NOTICE: 1,
|
||||
ACTIVITY: 2,
|
||||
NEWS: 3,
|
||||
};
|
||||
|
||||
type NewsTypeEnum = (typeof NewsType)[keyof typeof NewsType];
|
||||
}
|
||||
```
|
||||
|
||||
枚举常量引用 `const` 对象类型,而非 union type:
|
||||
|
||||
```typescript
|
||||
// 正确
|
||||
const PostNewsTypeEnum: typeof TGApp.BBS.Post.NewsType = { ... };
|
||||
|
||||
// 错误
|
||||
const PostNewsTypeEnum: TGApp.BBS.Post.NewsTypeEnum = { ... };
|
||||
```
|
||||
|
||||
## 命名规范
|
||||
|
||||
| 类型 | 规范 | 示例 |
|
||||
|------|------|------|
|
||||
| Interface/Type | PascalCase | `UserProfile` |
|
||||
| const 对象 | PascalCase | `NewsType` |
|
||||
| type alias | PascalCase + Enum | `NewsTypeEnum` |
|
||||
| enum 常量 | PascalCase + Enum | `PostNewsTypeEnum` |
|
||||
| readonly 列表 | PascalCase + List | `PostNewsTypeList` |
|
||||
| 描述函数 | camelCase + Desc | `getPostNewsTypeDesc` |
|
||||
| 常量 | UPPER_SNAKE_CASE | `MAX_RETRY_COUNT` |
|
||||
|
||||
## JSDoc 注释
|
||||
|
||||
所有导出函数必须包含 `@since` 标签:
|
||||
|
||||
```typescript
|
||||
/**
|
||||
* 获取角色信息
|
||||
* @since Beta v0.9.6
|
||||
* @param id - 角色 ID
|
||||
*/
|
||||
function getCharacter(id: number): Character;
|
||||
```
|
||||
|
||||
常用标签:`@param` `@returns` `@remarks` `@see` `@example` `@deprecated`
|
||||
|
||||
## 类型注解
|
||||
|
||||
- 函数参数和返回值必须显式类型注解
|
||||
- 优先用 `type` 而非 `interface`
|
||||
- 用 `unknown` 而非 `any`
|
||||
- 避免类型断言 (`as`)
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [typescript-standards skill](./skills/typescript-standards/)
|
||||
164
.trae/skills/git-commit-skill/SKILL.md
Normal file
@@ -0,0 +1,164 @@
|
||||
---
|
||||
name: "git-commit-skill"
|
||||
description: "Git commit 规范参考。Invoke when user wants to make commits, including selective file staging, proper gitmoji usage, and commit message format."
|
||||
---
|
||||
|
||||
# Gitmoji Commit 规范
|
||||
|
||||
本文档定义了项目提交信息的格式规范,确保提交历史清晰可读。
|
||||
|
||||
## 提交格式
|
||||
|
||||
```
|
||||
<emoji> <描述>
|
||||
```
|
||||
|
||||
- **emoji**:使用 Unicode emoji 图标,放在提交信息开头
|
||||
- **描述**:使用中文,以动词开头,简短明了
|
||||
- **一行不超过 100 字符**
|
||||
- **禁止括号声明**:不要使用 `✨ feat(xxx)` 或 `✨ feat` 这种格式,仅保留图标
|
||||
|
||||
## Emoji 选择指南
|
||||
|
||||
根据变更类型选择对应的 emoji:
|
||||
|
||||
### 🆕 新增内容
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| ✨ | 新功能 | `✨ 添加用户个人页面跳转功能` |
|
||||
| 🎨 | 代码结构/格式 | `🎨 重构角色卡片组件` |
|
||||
| 📝 | 文档 | `📝 更新 README` |
|
||||
| 🎉 | 初始项目 | `🎉 初始化项目` |
|
||||
| ✅ | 测试 | `✅ 添加角色查询单元测试` |
|
||||
|
||||
### 🔧 修改内容
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| 🐛 | Bug 修复 | `🐛 修复角色生日判断逻辑` |
|
||||
| 🩹 | 小修复/补丁 | `🩹 补充首页mini参数处理` |
|
||||
| ⚡️ | 性能优化 | `⚡️ 优化角色列表渲染性能` |
|
||||
| ♻️ | 重构 | `♻️ 重构数据库操作层` |
|
||||
| 💄 | UI/样式 | `💄 调整首页卡片布局` |
|
||||
| ✏️ | 拼写错误 | `✏️ 修复注释拼写` |
|
||||
| 💡 | 注释/解释 | `💡 添加关键逻辑注释` |
|
||||
|
||||
### 🗑️ 删除/清理
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| 🔥 | 删除代码/文件 | `🔥 移除废弃组件` |
|
||||
| ⚰️ | 删除死代码 | `⚰️ 清理未使用的导入` |
|
||||
| 🗑️ | 代码弃用 | `🗑️ 弃用旧版API` |
|
||||
|
||||
### 📦 依赖/配置
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| ➕ | 添加依赖 | `➕ 添加图表库依赖` |
|
||||
| ➖ | 删除依赖 | `➖ 移除冗余依赖` |
|
||||
| ⬆️ | 升级依赖 | `⬆️ 升级 Vue 版本` |
|
||||
| ⬇️ | 降级依赖 | `⬇️ 降级兼容版本` |
|
||||
| 📌 | 锁定版本 | `📌 锁定构建工具版本` |
|
||||
| 🔧 | 配置文件 | `🔧 更新 vite 配置` |
|
||||
| 🔨 | 开发脚本 | `🔨 添加自动化脚本` |
|
||||
|
||||
### 🚀 部署/构建
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| 🚀 | 部署 | `🚀 部署生产环境` |
|
||||
| 📦 | 编译/打包 | `📦 更新构建产物` |
|
||||
| 👷 | CI/CD | `👷 优化 GitHub Actions` |
|
||||
|
||||
### 🗄️ 数据/存储
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| 🗃️ | 数据库 | `🗃️ 添加角色收藏表` |
|
||||
| 🌱 | 种子数据 | `🌱 初始化角色数据` |
|
||||
|
||||
### 🌐 国际化/本地化
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| 🌐 | 国际化 | `🌐 添加多语言支持` |
|
||||
|
||||
### 🔒 安全/权限
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| 🔒 | 安全问题 | `🔒 修复XSS漏洞` |
|
||||
| 🔐 | 密钥/凭证 | `🔐 更新API密钥配置` |
|
||||
|
||||
### 📊 分析/监控
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| 📈 | 分析/跟踪 | `📈 添加埋点统计` |
|
||||
| 🔊 | 添加日志 | `🔊 添加操作日志` |
|
||||
| 🔇 | 删除日志 | `🔇 清理调试日志` |
|
||||
|
||||
### 🏗️ 架构/基础设施
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| 🏗️ | 架构变更 | `🏗️ 引入状态管理` |
|
||||
| 🧱 | 基础设施 | `🧱 优化 Docker 配置` |
|
||||
|
||||
### 🧑💻 开发体验
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| 🧑💻 | 开发体验 | `🧑💻 优化热更新速度` |
|
||||
| 🚸 | 用户体验 | `🚸 统一导出交互流程` |
|
||||
| 💫 | 动画/过渡 | `💫 添加页面转场动画` |
|
||||
|
||||
### 🔀 分支/版本
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| 🔀 | 合并分支 | `🔀 合并功能分支` |
|
||||
| ⏪ | 回滚 | `⏪ 回滚错误提交` |
|
||||
| 🔖 | 版本标签 | `🔖 发布 v1.0.0` |
|
||||
|
||||
### 其他
|
||||
| Emoji | 场景 | 示例 |
|
||||
|-------|------|------|
|
||||
| 🚧 | 进行中 | `🚧 实现角色对比功能` |
|
||||
| 💚 | CI 修复 | `💚 修复构建失败` |
|
||||
| 🚨 | 警告修复 | `🚨 消除编译器警告` |
|
||||
| 👔 | 业务逻辑 | `👔 添加抽卡概率计算` |
|
||||
| 🩺 | 健康检查 | `🩺 添加服务监控` |
|
||||
| 🧐 | 数据检查 | `🧐 审查数据一致性` |
|
||||
| 🛂 | 权限/授权 | `🛂 添加角色权限校验` |
|
||||
| 🦺 | 验证 | `🦺 添加参数校验` |
|
||||
| 🧵 | 多线程/并发 | `🧵 优化异步任务处理` |
|
||||
| ✈️ | 离线支持 | `✈️ 提升离线体验` |
|
||||
| 🦖 | 向后兼容 | `🦖 添加兼容性处理` |
|
||||
| 💸 | 金钱相关 | `💸 优化资源加载成本` |
|
||||
| 👽 | API 变更 | `👽 适配新版API` |
|
||||
| 🚚 | 移动/重命名 | `🚚 迁移文件到新目录` |
|
||||
| 📄 | 许可证 | `📄 添加 MIT 许可证` |
|
||||
| 💥 | 重大变更 | `💥 重构核心模块` |
|
||||
| 🍱 | 静态资源 | `🍱 更新应用图标` |
|
||||
| ♿️ | 无障碍 | `♿️ 添加ARIA标签` |
|
||||
| 🏷️ | 类型定义 | `🏷️ 完善类型定义` |
|
||||
| 🚩 | 功能开关 | `🚩 添加灰度开关` |
|
||||
| ⚗️ | 实验 | `⚗️ 尝试新方案` |
|
||||
| 🔍 | SEO | `🔍 优化页面索引` |
|
||||
| 🙈 | .gitignore | `🙈 更新gitignore规则` |
|
||||
| 📸 | 快照 | `📸 添加截图` |
|
||||
| 🥚 | 彩蛋 | `🥚 添加开发者彩蛋` |
|
||||
| 🤡 | Mock | `🤡 添加mock数据` |
|
||||
| 🍻 | 酒后代码 | `🍻 修复奇怪bug` |
|
||||
| 💬 | 文本更新 | `💬 更新界面文案` |
|
||||
| 👥 | 贡献者 | `👥 更新贡献者列表` |
|
||||
|
||||
## 提交示例
|
||||
|
||||
```
|
||||
✨ 添加用户个人页面跳转功能
|
||||
🐛 修复角色生日判断逻辑,优化返回结果
|
||||
🩹 补充首页mini参数&组件参数处理
|
||||
♻️ 重构数据库操作为事务模式
|
||||
⚡️ 优化角色列表渲染性能
|
||||
💄 调整深色模式配色方案
|
||||
📝 添加组件使用文档
|
||||
⬆️ 更新依赖版本,修复安全警告
|
||||
🔧 更新 vite 配置以支持新插件
|
||||
🚸 统一UIGF导出交互,导出前选择导出路径
|
||||
💫 添加页面转场动画效果
|
||||
🐛 修复抽卡记录导出为空的问题
|
||||
🏗️ 引入 Pinia 状态管理
|
||||
🧑💻 优化热更新加载速度
|
||||
```
|
||||
125
.trae/skills/teyvat-guide/SKILL.md
Normal file
@@ -0,0 +1,125 @@
|
||||
---
|
||||
name: teyvat-guide
|
||||
description: TeyvatGuide 项目 SKILL。处理 Vue+Tauri+TypeScript 项目开发,包括组件开发、API 集成、SQLite 操作或代码规范。
|
||||
---
|
||||
|
||||
# TeyvatGuide 项目规范
|
||||
|
||||
## 技术栈
|
||||
|
||||
- **前端**: Vue 3 (Composition API), TypeScript 6, Vuetify 4
|
||||
- **桌面运行时**: Tauri 2 (Rust backend)
|
||||
- **构建工具**: Vite 8
|
||||
- **状态管理**: Pinia + persistedstate
|
||||
- **数据库**: SQLite (via @tauri-apps/plugin-sql)
|
||||
- **包管理器**: pnpm 10
|
||||
|
||||
## 代码风格
|
||||
|
||||
### 通用规则
|
||||
|
||||
| 规则 | 要求 |
|
||||
|------|------|
|
||||
| 语言 | 中文注释,英文代码 |
|
||||
| 缩进 | 2 空格 |
|
||||
| 引号 | 字符串用双引号,Vue 模板用单引号 |
|
||||
| 分号 | 必须 |
|
||||
| 尾逗号 | ES5 风格 |
|
||||
| 行长度 | ≤100 字符 |
|
||||
|
||||
### TypeScript 规范
|
||||
|
||||
> 详见 [typescript-standards skill](../typescript-standards/SKILL.md)
|
||||
|
||||
**枚举**: 使用 `const` 对象模式,禁止原生 `enum`
|
||||
|
||||
```typescript
|
||||
// 正确
|
||||
const GameServerEnum = <const>{
|
||||
CN_GF01: "cn_gf01",
|
||||
CN_QD01: "cn_qd01",
|
||||
};
|
||||
|
||||
// 错误
|
||||
enum GameServerEnum { ... }
|
||||
```
|
||||
|
||||
**JSDoc**: 导出函数必须包含 `@since` 标签
|
||||
|
||||
```typescript
|
||||
/**
|
||||
* 函数描述
|
||||
* @since Beta v0.9.6
|
||||
* @param param - 参数描述
|
||||
* @returns 返回描述
|
||||
*/
|
||||
```
|
||||
|
||||
**Import 顺序**: 1. 内置模块 2. 外部包 3. 别名 (@/*) 4. 相对导入
|
||||
|
||||
### Vue 规范
|
||||
|
||||
- 组件结构: Template → script → style
|
||||
- 使用 `<script lang="ts" setup>` 语法
|
||||
- 组件名用 PascalCase
|
||||
- 样式用 SCSS,遵循 stylelint 配置
|
||||
|
||||
## 路径别名
|
||||
|
||||
| 别名 | 路径 |
|
||||
|------|------|
|
||||
| `@/*` | `./src/*` |
|
||||
| `@styles/*` | `./src/assets/styles/*` |
|
||||
| `@comp/*` | `./src/components/*` |
|
||||
| `@enum/*` | `./src/enum/*` |
|
||||
| `@hooks/*` | `./src/hooks/*` |
|
||||
| `@Bili/*` | `./src/plugins/Bili/*` |
|
||||
| `@Hutao/*` | `./src/plugins/Hutao/*` |
|
||||
| `@Mys/*` | `./src/plugins/Mys/*` |
|
||||
| `@Sql/*` | `./src/plugins/Sqlite/*` |
|
||||
| `@Sqlm/*` | `./src/plugins/Sqlite/modules/*` |
|
||||
| `@req/*` | `./src/request/*` |
|
||||
| `@store/*` | `./src/store/modules/*` |
|
||||
| `@utils/*` | `./src/utils/*` |
|
||||
|
||||
## 数据库 (SQLite)
|
||||
|
||||
- 参数占位符: `$1, $2, $3...`(禁止 `?`)
|
||||
- 异步模式: 所有操作返回 Promise
|
||||
|
||||
```typescript
|
||||
await db.execute(
|
||||
`INSERT INTO Table(key, value, updated)
|
||||
VALUES ($1, $2, datetime('now', 'localtime'))
|
||||
ON CONFLICT(key) DO UPDATE SET value = $2, updated = datetime('now', 'localtime');`,
|
||||
[key, value],
|
||||
);
|
||||
```
|
||||
|
||||
## 代码检查
|
||||
|
||||
```bash
|
||||
pnpm lint # 运行所有检查
|
||||
pnpm lint:fix # 自动修复
|
||||
pnpm lint:vue # Vue 类型检查
|
||||
pnpm lint:style # 样式检查
|
||||
pnpm lint:rust:fix # Rust fmt
|
||||
```
|
||||
|
||||
## Git 提交规范
|
||||
|
||||
> 详见 [git-commit-skill](../git-commit-skill/SKILL.md)
|
||||
|
||||
**格式**: `<emoji> <描述>`(一行 ≤100 字符,禁止 type: 声明)
|
||||
|
||||
```bash
|
||||
git add <文件路径>
|
||||
git commit -m "✨ 添加新功能"
|
||||
```
|
||||
|
||||
## 注意事项
|
||||
|
||||
1. **禁止原生 enum** - 使用 const 对象模式
|
||||
2. **erasableSyntaxOnly** - 应为 `true` 或移除
|
||||
3. **jsx: preserve** - Vue 项目不需要 tsc 处理 jsx
|
||||
4. **提交规范** - 每次修改后使用 gitmoji 风格提交
|
||||
46
.trae/skills/typescript-standards/SKILL.md
Normal file
@@ -0,0 +1,46 @@
|
||||
---
|
||||
name: "typescript-standards"
|
||||
description: "TypeScript 开发规范,包含 Enum 定义和 TSDoc 注释规范。编写 TypeScript 代码时调用此技能。"
|
||||
---
|
||||
|
||||
# TypeScript 开发规范
|
||||
|
||||
## 目录结构
|
||||
|
||||
```
|
||||
src/types/<Module>/<Module>.d.ts # 类型定义 (.d.ts)
|
||||
types/<Module>/<Module>.d.ts # 根目录类型定义
|
||||
src/enum/<Module>.ts # 枚举常量 (.ts)
|
||||
```
|
||||
|
||||
## 命名规范
|
||||
|
||||
| 类型 | 规范 | 示例 |
|
||||
|------|------|------|
|
||||
| Interface/Type | PascalCase | `UserProfile` |
|
||||
| const 对象 | PascalCase | `NewsType` |
|
||||
| type alias | PascalCase + Enum | `NewsTypeEnum` |
|
||||
| enum 常量 | PascalCase + Enum | `PostNewsTypeEnum` |
|
||||
| readonly 列表 | PascalCase + List | `PostNewsTypeList` |
|
||||
| 描述函数 | camelCase + Desc | `getPostNewsTypeDesc` |
|
||||
| 常量 | UPPER_SNAKE_CASE | `MAX_RETRY_COUNT` |
|
||||
|
||||
## 核心规则
|
||||
|
||||
1. **禁止原生 enum** - 使用 `const` 对象模式
|
||||
2. **使用 `<const>` 断言** - 确保 readonly
|
||||
3. **类型派生** - `(typeof Type)[keyof typeof Type]`
|
||||
4. **JSDoc 注释** - 必须包含 `@since`,枚举还需 `@see`
|
||||
5. **聚合导出** - 相关枚举分组在 default export 对象中
|
||||
|
||||
## 类型注解
|
||||
|
||||
- 函数参数和返回值必须显式类型注解
|
||||
- 优先用 `type` 而非 `interface`
|
||||
- 用 `unknown` 而非 `any`
|
||||
- 避免类型断言 (`as`)
|
||||
|
||||
## 详细规范
|
||||
|
||||
- Enum 定义:见 [enum.md](./enum.md)
|
||||
- TSDoc 注释:见 [tsdoc.md](./tsdoc.md)
|
||||
67
.trae/skills/typescript-standards/enum.md
Normal file
@@ -0,0 +1,67 @@
|
||||
# Enum 定义规范
|
||||
|
||||
## 类型定义 (.d.ts)
|
||||
|
||||
```typescript
|
||||
declare namespace TGApp.BBS.Post {
|
||||
const NewsType = <const>{
|
||||
NOTICE: 1,
|
||||
ACTIVITY: 2,
|
||||
NEWS: 3,
|
||||
};
|
||||
|
||||
type NewsTypeEnum = (typeof NewsType)[keyof typeof NewsType];
|
||||
}
|
||||
```
|
||||
|
||||
## 枚举常量 (.ts)
|
||||
|
||||
```typescript
|
||||
const PostNewsTypeEnum: typeof TGApp.BBS.Post.NewsType = {
|
||||
NOTICE: 1,
|
||||
ACTIVITY: 2,
|
||||
NEWS: 3,
|
||||
};
|
||||
```
|
||||
|
||||
注意:引用 `const` 对象类型 (`typeof TGApp.BBS.Post.NewsType`),而非 union type (`NewsTypeEnum`)
|
||||
|
||||
## 辅助工具
|
||||
|
||||
```typescript
|
||||
// 只读列表
|
||||
const PostNewsTypeList: ReadonlyArray<TGApp.BBS.Post.NewsTypeEnum> = [
|
||||
PostNewsTypeEnum.NOTICE,
|
||||
PostNewsTypeEnum.ACTIVITY,
|
||||
PostNewsTypeEnum.NEWS,
|
||||
];
|
||||
|
||||
// 描述函数
|
||||
function getPostNewsTypeDesc(newsType: TGApp.BBS.Post.NewsTypeEnum): string {
|
||||
switch (newsType) {
|
||||
case PostNewsTypeEnum.NOTICE: return "公告";
|
||||
case PostNewsTypeEnum.ACTIVITY: return "活动";
|
||||
case PostNewsTypeEnum.NEWS: return "资讯";
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## 聚合导出
|
||||
|
||||
```typescript
|
||||
const bbsEnum = {
|
||||
post: {
|
||||
viewType: PostViewTypeEnum,
|
||||
newsType: PostNewsTypeEnum,
|
||||
},
|
||||
};
|
||||
|
||||
export default bbsEnum;
|
||||
```
|
||||
|
||||
## 核心规则
|
||||
|
||||
1. 使用 `<const>` 断言确保 readonly
|
||||
2. 类型派生:`(typeof Type)[keyof typeof Type]`
|
||||
3. JSDoc 必须包含 `@since` 和 `@see`
|
||||
4. 枚举常量名与 .d.ts 中的 const 对象名一致
|
||||
75
.trae/skills/typescript-standards/tsdoc.md
Normal file
@@ -0,0 +1,75 @@
|
||||
# TSDoc 注释规范
|
||||
|
||||
## 支持的标签
|
||||
|
||||
`@example` `@link` `@param` `@remarks` `@returns` `@see` `@since` `@typeParam` `@deprecated`
|
||||
|
||||
## 必须标签
|
||||
|
||||
### `@since` - 版本信息
|
||||
|
||||
所有导出类型、函数、枚举必须包含:
|
||||
|
||||
```typescript
|
||||
/**
|
||||
* @since Beta v0.9.6
|
||||
*/
|
||||
function getCharacter(id: number): Character;
|
||||
```
|
||||
|
||||
## 常用标签
|
||||
|
||||
| 标签 | 用途 |
|
||||
|------|------|
|
||||
| `@param name - 描述` | 参数说明 |
|
||||
| `@returns 描述` | 返回值说明 |
|
||||
| `@remarks 备注` | 备注说明 |
|
||||
| `@see TGApp.BBS.Post.NewsType` | 参考引用 |
|
||||
| `@example` | 用法示例 |
|
||||
| `@deprecated` | 废弃标记 |
|
||||
|
||||
## 示例
|
||||
|
||||
```typescript
|
||||
/**
|
||||
* 获取角色信息
|
||||
* @since Beta v0.9.6
|
||||
* @param id - 角色 ID
|
||||
* @returns 角色信息对象
|
||||
* @throws {NotFoundError} 当角色不存在时
|
||||
*/
|
||||
function getCharacter(id: number): Character { ... }
|
||||
|
||||
/**
|
||||
* 搜索结果返回数据
|
||||
* @remarks token_list 和 databox 目前用途不明
|
||||
*/
|
||||
type SearchRes = { ... };
|
||||
```
|
||||
|
||||
## 类型定义文件 (.d.ts)
|
||||
|
||||
```typescript
|
||||
declare namespace TGApp.BBS.Post {
|
||||
/**
|
||||
* 咨讯类型
|
||||
* @since Beta v0.9.1
|
||||
*/
|
||||
const NewsType = <const>{
|
||||
NOTICE: 1,
|
||||
ACTIVITY: 2,
|
||||
NEWS: 3,
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## 内联成员注释
|
||||
|
||||
```typescript
|
||||
type TGHttpParams = {
|
||||
/** 请求方法 */
|
||||
method: "GET" | "POST";
|
||||
/** 请求头 */
|
||||
headers?: Record<string, string>;
|
||||
};
|
||||
```
|
||||
160
CHANGELOG.md
@@ -2,12 +2,166 @@
|
||||
Author: 目棃
|
||||
Description: CHANGELOG
|
||||
Date: 2025-09-09
|
||||
Update: 2025-12-20
|
||||
Update: 2026-03-13
|
||||
---
|
||||
|
||||
> 本文档 [`Frontmatter`](https://github.com/BTMuli/MuCli#Frontmatter) 由 [MuCli](https://github.com/BTMuli/Mucli) 自动生成于 `2025-09-09 14:30:56`
|
||||
>
|
||||
> 更新于 `2025-12-20 16:14:28`
|
||||
> 更新于 `2026-03-13 13:41:58`
|
||||
|
||||
## [0.9.8](https://github.com/BTMuli/TeyvatGuide/releases/v0.9.8) (2026-03-13)
|
||||
|
||||
- 🍱 更新下半卡池数据
|
||||
- 🐛 处理UI框架升级导致的分享图生成异常
|
||||
- 🐛 修复采用ck登录后本地ck未同步更新
|
||||
- ✏️ 修正深渊最深抵达描述计算逻辑
|
||||
- ⚡️大幅提升UIGF导入速度 [`#222`](https://github.com/BTMuli/TeyvatGuide/issues/222)
|
||||
- ✨ 角色列表页展示当前筛选&排序
|
||||
- ✨ 定时检测版本更新并提醒 [`#231`](https://github.com/BTMuli/TeyvatGuide/issues/231)
|
||||
- 🔒️ 调整用户数据目录选取&旧目录删除处理,增加子目录检测&二次确认 [`#228`](https://github.com/BTMuli/TeyvatGuide/issues/228)
|
||||
- 🚸 导入胡桃深渊/剧诗/危战数据前进行提示
|
||||
- 🚸 设置页刷新信息允许仅刷新Cookie而不刷新游戏账号
|
||||
- 🚸 搜索框增加清空按钮,并进行对应适配处理
|
||||
- 🚸 完善非回正模式下的窗口位置&大小处理 [`#199`](https://github.com/BTMuli/TeyvatGuide/pull/199) [`#223`](https://github.com/BTMuli/TeyvatGuide/pull/223)
|
||||
- 🚸 实用脚本支持一键执行多账号 by [HLFromZ](https://github.com/BTMuli/TeyvatGuide/pull/227)
|
||||
- 🚸 角色列表页新增`等级>=70`筛选 [`#229`](https://github.com/BTMuli/TeyvatGuide/issues/229)
|
||||
- 🚸 角色列表页新增满好感筛选
|
||||
- 🚸 处理帖子标题为空时的渲染&事件
|
||||
- 🚸 调整部分图片缓存策略
|
||||
- 🚸 增加个人主页&合集主页的外部跳转
|
||||
- 💄 优化调整多处样式 [`#221`](https://github.com/BTMuli/TeyvatGuide/issues/221)
|
||||
- 💄 调整展开后的侧边栏宽度
|
||||
- 💄 自定义表情:调整浮窗信息显示逻辑,优化自定义表情label显示判断
|
||||
|
||||
## [0.9.7](https://github.com/BTMuli/TeyvatGuide/releases/v0.9.7) (2026-02-26)
|
||||
|
||||
- 🐛 修复脚本页面账号切换异常
|
||||
- 🚸 调整游戏安装目录选取逻辑,调整大小写处理 [`#219`](https://github.com/BTMuli/TeyvatGuide/issues/219)
|
||||
- 💄 替换部分侧边栏图标
|
||||
- 💄 调整浅色模式下滚动条可见度
|
||||
- 💄 调整部分页面UI
|
||||
|
||||
## [0.9.6](https://github.com/BTMuli/TeyvatGuide/releases/v0.9.6) (2026-02-26)
|
||||
|
||||
- 🍱 更新6.4版本资源
|
||||
- ✨ 剧诗页新增绘想游迹&月谕圣牌浮窗
|
||||
- 👽️ 升级 UI 框架至 Vuetify4
|
||||
- ♻️ 重构多页面用户数据加载&刷新逻辑,大幅提升多账号用户体验
|
||||
- 🐛 修复浮窗高度异常抖动导致的子回复加载异常
|
||||
- 🐛 修复特定条件下的渲染异常
|
||||
- 🐛 完善分享设置输入校验,剔除非正整数输入
|
||||
- 🚸 版本更新后重置反馈按钮显示
|
||||
- 🚸 调用内置YAE时检测游戏本体是否启动
|
||||
- 🚸 更换祈愿字典数据源,由Hakushi变更为Yatta
|
||||
- 🚸 替换帖子卡片版块图标数据源,修复可能出现的版块图标渲染异常
|
||||
- 🚸 优化回正相关处理
|
||||
- 💄 调整侧边栏,溢出滚动
|
||||
- 💄 帖子详情显示 `vod` 组件占位
|
||||
- 💄 当存在战绩数据时角色列表用户信息采用对应数据进行渲染
|
||||
- 💄 首页限时祈愿组件卡池角色超过4个时采用Swiper进行轮播
|
||||
- 💄 调整 Snackbar 层级 [`#218`](https://github.com/BTMuli/TeyvatGuide/issues/218)
|
||||
|
||||
## [0.9.5](https://github.com/BTMuli/TeyvatGuide/releases/v0.9.5) (2026-02-08)
|
||||
|
||||
- ✨ 重构UIGF导入导出备份恢复,支持UIGF4.2
|
||||
- 🍱 精简颂愿元数据
|
||||
- 🐛 由于Gt4配置变更,修复验证码登录时极验未正确触发
|
||||
- 🐛 保存用户信息采用参数绑定,修复特殊数据导致的sql拼接异常
|
||||
- 🐛 将ck更新逻辑移至首页,修复ck自动更新异常
|
||||
- 🐛 修正剧诗概况星章计算逻辑
|
||||
- 💄 调整战绩数据总览样式,更为紧凑
|
||||
- 💄 处理特定武器没有副属性时的渲染
|
||||
- 💄 修复集录祈愿卡池渲染异常
|
||||
- 💄 调整剧诗详情布局,统一比例 2/1
|
||||
- 💄 调整签到组件额外奖励样式,处理额外奖励点击
|
||||
- 🚸 暴露成就系列完成百分比,1位小数
|
||||
- 🚸 优化当前选中成就系列区分度
|
||||
- 🚸 深渊上传成功后自动刷新胡桃云用户信息
|
||||
- 🚸 修复图片质量调整特定条件下浮窗异常关闭 [`#207`](https://github.com/BTMuli/TeyvatGuide/issues/207)
|
||||
- 🚸 自定义表情加载失败点击重新加载
|
||||
- 🚸 优化祈愿垫数展示UI
|
||||
|
||||
## [0.9.4](https://github.com/BTMuli/TeyvatGuide/releases/v0.9.4) (2026-01-22)
|
||||
|
||||
- 🐛 修复`msi`版本导入`dll`调用路径异常,捕获`dll`路径异常错误
|
||||
- 🎨 调整商店版本`dll`检测逻辑,存在时不复制
|
||||
- 🚸 调整导入相关提示文本
|
||||
|
||||
## [0.9.3](https://github.com/BTMuli/TeyvatGuide/releases/v0.9.3) (2026-01-19)
|
||||
|
||||
- 🐛 修复导入调用参数异常
|
||||
- 🚸 设置页胡桃云用户信息刷新防抖处理
|
||||
|
||||
## [0.9.2](https://github.com/BTMuli/TeyvatGuide/releases/v0.9.2) (2026-01-18)
|
||||
|
||||
- 🍱 增加旅行者衣装相关资源
|
||||
- ✨ WIKI新增 `{LINK#xx}{/LINK}` 数据支持 [`#156`](https://github.com/BTMuli/TeyvatGuide/issues/156)
|
||||
- ✨ 自动更新 Cookie [`#197`](https://github.com/BTMuli/TeyvatGuide/issues/197)
|
||||
- 🐛 修复祈愿页面检测数据更新异常
|
||||
- 🐛 修复特定情况下生成剧诗分享图时应用白屏
|
||||
- 🐛 修复首页活动奖励点击异常
|
||||
- 🐛 上传深渊记录时更新角色列表,以修复 `511001` 异常
|
||||
- 🐛 调整五星 UP 判断逻辑,修复特定数据 UP 判断异常
|
||||
- 🐛 修复微软应用商店版本材料&成就导入异常 [`#206`](https://github.com/BTMuli/TeyvatGuide/issues/206)
|
||||
- 🚸 `loading` 组件随机加载图标
|
||||
- 🚸 隐藏完成成就支持隐藏成就系列 [`#205`](https://github.com/BTMuli/TeyvatGuide/issues/205)
|
||||
- 🚸 调整首页部分图片缓存策略
|
||||
- 🚸 调整成就排序&搜索逻辑
|
||||
- 🚸 添加用户反馈显示控制入口
|
||||
- 🥅 修复文本放缩比读取异常,注册表不存在时返回 1.0
|
||||
- ♻️ 祈愿页面导入功能合并,仅显示一个导入按钮
|
||||
- 💄 深渊支持单楼层分享,剧诗支持单幕分享
|
||||
|
||||
## [0.9.1](https://github.com/BTMuli/TeyvatGuide/releases/v0.9.1) (2026-01-14)
|
||||
|
||||
- 🍱 元数据:更新6.3版本资源
|
||||
- 🍱 元数据:精简部分材料来源描述
|
||||
- 🍱 元数据:增加元素描述,如 `丝柯克` 为 `蛇之七变 冰`(修改前为`神之眼 冰`)
|
||||
- 🍱 元数据:增加 `埃洛伊` `奇偶` 的红色背景并进行相应处理 [`#198`](https://github.com/BTMuli/TeyvatGuide/issues/198)
|
||||
- ✏️ 修正文本,`咨讯` → `资讯`,感谢 [`@LuoYunXi0407`](https://github.com/LuoYunXi0407)
|
||||
- ✨ 祈愿页面:过往祈愿支持查看抽卡记录,更新图源以提升加载速度 [`#188`](https://github.com/BTMuli/TeyvatGuide/issues/188)
|
||||
- ✨ 背包物品:新增货币数据获取,支持删除记录
|
||||
- ✨ 角色列表页面:重构筛选逻辑,增加 `等级`/`好感`/`命座` 排序
|
||||
- ✨ 窗口回正增加文本放缩处理 [`#192`](https://github.com/BTMuli/TeyvatGuide/issues/192)
|
||||
- ✨ 引入 [Sentry](https://sentry.io) 用于分析应用崩溃/异常,同步更新隐私政策
|
||||
- ✨ 增加衣装相关资源 [`#190`](https://github.com/BTMuli/TeyvatGuide/issues/190)并在 `角色列表`/`角色图鉴` 进行展示。
|
||||
- ✨ 胡桃深渊数据库回归,剧诗概览回归
|
||||
- ✨ 支持通过命令行调用 [`#195`](https://github.com/BTMuli/TeyvatGuide/issues/195)
|
||||
- ✨ 支持胡桃云账号 `登录`/`密码重置` 等操作,支持胡桃云祈愿记录 `上传`/`下载`/`删除` [`#202`](https://github.com/BTMuli/TeyvatGuide/issues/202)
|
||||
- 🐛 修复程序最小化时托盘点击异常
|
||||
- 🐛 修复 wcag-color 无法对比 keyword 导致的渲染异常
|
||||
- 🐛 修复特定情况下管理员模式判断异常 [`#189`](https://github.com/BTMuli/TeyvatGuide/issues/189)
|
||||
- 🐛 修复从网络图更新到本地图导致的渲染异常
|
||||
- 🐛 尝试修复托盘图标初始化异常
|
||||
- 🐛 重构首页组件加载逻辑,存储中间值,增加登录态判断 [`#200`](https://github.com/BTMuli/TeyvatGuide/issues/200)
|
||||
- 🐛 修复通过 ck 登录没有即时刷新登录态
|
||||
- 🐛 修复特定情况下 UAC 调用异常
|
||||
- 🐛 补充缺失权限,修复浏览器跳转异常
|
||||
- 🐛 修复数据库重置异常
|
||||
- 🐛 修复部分帖子获取内容异常
|
||||
- 🐛 修复修改分享阈值点击取消时的取值异常 [`#203`](https://github.com/BTMuli/TeyvatGuide/issues/203)
|
||||
- 🐛 尝试修复调用内置 YAE 时特定条件下的匹配异常
|
||||
- 🚸 重构侧边栏账号切换逻辑,降低交互次数
|
||||
- 🚸 移除ck复制的确认浮窗
|
||||
- 🚸 管理员模式下侧边栏启动使用YAE导入
|
||||
- 🚸 背包物品页面:新增 `最近更新`/`最多数量`/`最少数量` 排序,调整默认排序逻辑,优化搜索处理 [`#196`](https://github.com/BTMuli/TeyvatGuide/issues/196)
|
||||
- 🚸 修正月谕圣牌下的星章计算逻辑
|
||||
- 🚸 调整Hakushi获取逻辑
|
||||
- 🚸 首页组件:已完成活动置后,调整完成判断逻辑
|
||||
- 🚸 调整部分弹窗提示 [`#201`](https://github.com/BTMuli/TeyvatGuide/issues/201)
|
||||
- 🚸 调用内置 YAE 时检测本地游戏版本
|
||||
- 💄 帖子详情:调整投票组件样式
|
||||
- 💄 首页组件:调整首页生日组件交互
|
||||
- 💄 首页签到组件:根据签到状态调整图标&文本
|
||||
- 💄 角色列表页面:角色卡片显示等级
|
||||
- 💄 幽境危战页面:调整顶部布局
|
||||
- 💄 帖子组件:增加自定义表情 tag 在浅色模式下的清晰度
|
||||
- 💄 设置页面:调整 `刷新页面设备信息` 交互
|
||||
- 🌐 公告页面:处理国际化
|
||||
- ♻️ 重构留影叙佳期页面,处理部分文本加载异常
|
||||
- ♻️ 统一 UID 选取逻辑
|
||||
- ♻️ 重构 WIKI 筛选组件筛选逻辑
|
||||
- ♻️ 重构游戏启动逻辑,修复特定条件下的启动失败
|
||||
|
||||
## [0.9.0](https://github.com/BTMuli/TeyvatGuide/releases/v0.9.0) (2025-12-20)
|
||||
|
||||
@@ -35,4 +189,4 @@ Update: 2025-12-20
|
||||
- 💄 多页面顶部样式调整,更为统一
|
||||
- 💄 首页近期活动组件奖励支持查看角色/武器奖励
|
||||
- 💄 首页近期活动组件奖励材料奖励支持查看已有数量
|
||||
- 💄 材料图鉴 UI 改版
|
||||
- 💄 材料图鉴 UI 改版
|
||||
|
||||
28
README.md
@@ -2,18 +2,18 @@
|
||||
Author: 目棃
|
||||
Description: 说明文档
|
||||
Date: 2023-03-05
|
||||
Update: 2025-12-03
|
||||
Update: 2026-03-13
|
||||
---
|
||||
|
||||
> 本文档 [`Frontmatter`](https://github.com/BTMuli/MuCli#Frontmatter) 由 [MuCli](https://github.com/BTMuli/Mucli) 自动生成于 `2023-03-05 14:41:55`
|
||||
>
|
||||
> 更新于 `2025-12-03 10:22:51`
|
||||
> 更新于 `2026-03-13 13:46:30`
|
||||
|
||||
[](https://deepwiki.com/BTMuli/TeyvatGuide)
|
||||
[](https://deepwiki.com/BTMuli/TeyvatGuide) [](https://app.fossa.com/projects/git%2Bgithub.com%2FBTMuli%2FTeyvatGuide?ref=badge_shield)
|
||||
|
||||
[](https://github.com/BTMuli/TeyvatGuide/commits) [](https://github.com/BTMuli/TeyvatGuide/commits)
|
||||
|
||||
[](./docs/standards/UIAF.md) [](./docs/standards/UIGF3.md) [](./docs/standards/UIGF.md)
|
||||
[](./docs/standards/UIAF.md) [](./docs/standards/UIGF3.md) [](./docs/standards/UIGF.md)
|
||||
|
||||
[](./LICENSE)
|
||||
|
||||
@@ -54,7 +54,8 @@ Game Tool for Genshin Impact player, supports Windows and macOS.
|
||||
- [x] 米游社各分区帖子获取(支持通过 ID 获取)
|
||||
- [x] 米游社话题帖子获取(通过话题点击跳转)
|
||||
- [x] 成就管理(UIAF v1.1),支持 [`Yae`](https://github.com/HolographicHat/Yae) 导入 & 自动导入(内置Yae)
|
||||
- [x] 祈愿管理(UIGF v3.0,UIGF v4.1)
|
||||
- [x] 祈愿管理(UIGF v3.0,UIGF v4.2)
|
||||
- [x] 背包物品获取(内置YAE)
|
||||
- [x] 留影叙佳期画片查看
|
||||
- [x] 帖子收藏
|
||||
- [x] 帖子评论查看&分享
|
||||
@@ -63,13 +64,12 @@ Game Tool for Genshin Impact player, supports Windows and macOS.
|
||||
|
||||
> 支持 扫码/验证码/Cookie 登陆,支持多账号管理
|
||||
- [x] 近期活动(首页组件)
|
||||
- [x] 游戏签到(首页组件)
|
||||
- [x] 原神战绩
|
||||
- [x] 角色详情
|
||||
- [x] 螺旋深渊
|
||||
- [x] 真境剧诗
|
||||
- [x] 幽境危战
|
||||
- [x] 高难挑战(深境螺旋/真境剧诗/幽境危战)
|
||||
- [x] 祈愿数据获取(近一年)
|
||||
- [x] 千星奇域祈愿数据获取(近一年)
|
||||
- [x] 千星奇域颂愿数据获取(近一年)
|
||||
- [x] 用户收藏帖子获取
|
||||
- [x] 用户关注帖子获取
|
||||
- [x] 一键完成米游币每日任务
|
||||
@@ -84,13 +84,12 @@ Game Tool for Genshin Impact player, supports Windows and macOS.
|
||||
- 应用功能:
|
||||
- [x] 浅色/深色主题切换
|
||||
- [x] 米游社 JSBridge
|
||||
- [x] 终端命令行调用
|
||||
- [x] 支持胡桃云
|
||||
|
||||
## 贡献者 / Contributors
|
||||
|
||||
- [BTMuli](https://github.com/BTMuli)
|
||||
- [舰队的偶像岛风酱!](https://github.com/frg2089)
|
||||
- [jerry765](https://github.com/jerry765)
|
||||
- [AuroraZiling](https://github.com/AuroraZiling)
|
||||
[Contributors](https://github.com/BTMuli/TeyvatGuide/graphs/contributors)
|
||||
|
||||
## UI 参考 / UI Reference
|
||||
|
||||
@@ -127,6 +126,7 @@ Game Tool for Genshin Impact player, supports Windows and macOS.
|
||||
- [Artplayer](https://artplayer.org/):用于米游社帖子视频播放解析
|
||||
- [Echarts](https://echarts.apache.org/zh/index.html):用于祈愿概览图生成
|
||||
- [Html2Canvas](https://github.com/niklasvh/html2canvas):用于分享图生成
|
||||
- [Sentry](https://github.com/getsentry/sentry):用于收集应用崩溃信息
|
||||
|
||||
## 协议 / License
|
||||
|
||||
@@ -136,6 +136,8 @@ Game Tool for Genshin Impact player, supports Windows and macOS.
|
||||
|
||||
隐私政策:[Privacy](https://app.btmuli.ink/docs/TeyvatGuide/privacy.html)
|
||||
|
||||
[](https://app.fossa.com/projects/git%2Bgithub.com%2FBTMuli%2FTeyvatGuide?ref=badge_large)
|
||||
|
||||
## 鸣谢 / Thanks
|
||||
|
||||
本项目在开发过程中参考了诸多相关开源项目,特此鸣谢。
|
||||
|
||||
@@ -1,22 +1,24 @@
|
||||
#!/bin/bash
|
||||
printf '\e[8;45;65t'
|
||||
clear
|
||||
BLACK="\033[0;30m"
|
||||
DARK_GRAY="\033[1;30m"
|
||||
BLUE="\033[0;34m"
|
||||
|
||||
# Color
|
||||
#BLACK="\033[0;30m"
|
||||
#DARK_GRAY="\033[1;30m"
|
||||
#BLUE="\033[0;34m"
|
||||
LIGHT_BLUE="\033[1;34m"
|
||||
GREEN="\033[0;32m"
|
||||
#GREEN="\033[0;32m"
|
||||
LIGHT_GREEN="\033[1;32m"
|
||||
CYAN="\033[0;36m"
|
||||
LIGHT_CYAN="\033[1;36m"
|
||||
#CYAN="\033[0;36m"
|
||||
#LIGHT_CYAN="\033[1;36m"
|
||||
RED="\033[0;31m"
|
||||
LIGHT_RED="\033[1;31m"
|
||||
PURPLE="\033[0;35m"
|
||||
LIGHT_PURPLE="\033[1;35m"
|
||||
BROWN="\033[0;33m"
|
||||
YELLOW="\033[0;33m"
|
||||
LIGHT_GRAY="\033[0;37m"
|
||||
WHITE="\033[1;37m"
|
||||
#PURPLE="\033[0;35m"
|
||||
#LIGHT_PURPLE="\033[1;35m"
|
||||
#BROWN="\033[0;33m"
|
||||
#YELLOW="\033[0;33m"
|
||||
#LIGHT_GRAY="\033[0;37m"
|
||||
#WHITE="\033[1;37m"
|
||||
NC="\033[0m"
|
||||
|
||||
appName="TeyvatGuide.app"
|
||||
|
||||
@@ -2,18 +2,18 @@
|
||||
Author: 目棃
|
||||
Description: UIGF v4 Backup
|
||||
Date: 2024-11-11
|
||||
Update: 2024-11-11
|
||||
Update: 2026-02-07
|
||||
---
|
||||
|
||||
> 本文档 [`Frontmatter`](https://github.com/BTMuli/MuCli#Frontmatter) 由 [MuCli](https://github.com/BTMuli/Mucli) 自动生成于 `2024-11-11 11:57:27`
|
||||
>
|
||||
> 更新于 `2024-11-11 11:57:27`
|
||||
> 更新于 `2026-02-07 21:29:27`
|
||||
|
||||
> 本文档为 [UIGF v4.0](https://github.com/UIGF-org/UIGF-org.github.io/blob/main/docs/zh/standards/uigf.md) 的备份,仅供参考。
|
||||
> 本文档为 [UIGF v4.2](https://github.com/UIGF-org/UIGF-org.github.io/blob/main/docs/zh/standards/uigf.md) 的备份,仅供参考。
|
||||
|
||||
# 统一可交换抽卡记录标准 v4.0
|
||||
# 统一可交换抽卡记录标准 v4.2
|
||||
|
||||
> Uniformed Interchangeable GachaLog Format standard (UIGF) v4.0 <Badge text="Current" type="message" />
|
||||
> Uniformed Interchangeable GachaLog Format standard (UIGF) v4.2 <Badge text="Current" type="message" />
|
||||
|
||||
::: warning 中断性更新警告
|
||||
`UIGF v4.0 及更高版本` 对于 `UIGF v3.0 及更低版本` 和 `SRGF v1.0` **不具备向下兼容性**。UIGF/SRGF 合作项目如需适配,需重新认证。
|
||||
@@ -21,10 +21,14 @@ Update: 2024-11-11
|
||||
|
||||
## 更新记录
|
||||
|
||||
| 版本 | 说明 | 兼容 |
|
||||
| ------ | --------------------------------- | --------------- |
|
||||
| `v3.0` | 低版本的更新日志请查看历史版本 | v3.0 及更低版本 |
|
||||
| `v4.0` | 合并 SRGF,新增绝区零抽卡格式支持 | v4.0 |
|
||||
| 版本 | 说明 | 兼容 |
|
||||
| ------ | ------------------------------------------------ | --------------- |
|
||||
| `v3.0` | 低版本的更新日志请查看历史版本 | v3.0 及更低版本 |
|
||||
| `v4.0` | 合并 SRGF,新增绝区零抽卡格式支持 | v4.0 |
|
||||
| `v4.1` | 新增对星穹铁道 v3.4 版所引入的新的卡池类型的支持 | v4.1/v4.0\* |
|
||||
| `v4.2` | 新增对于千星奇域的支持 | v4.1 |
|
||||
|
||||
- 对于无需处理星穹铁道的应用,v4.1 与 v4.0 兼容。
|
||||
|
||||
## 前言
|
||||
|
||||
@@ -77,11 +81,11 @@ Update: 2024-11-11
|
||||
},
|
||||
"export_app": {
|
||||
"type": "string",
|
||||
"description": "导出档案的 App 名称"
|
||||
"description": "导出档案的应用名称"
|
||||
},
|
||||
"export_app_version": {
|
||||
"type": "string",
|
||||
"description": "导出档案的 App 版本"
|
||||
"description": "导出档案的应用版本"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
@@ -157,7 +161,8 @@ Update: 2024-11-11
|
||||
},
|
||||
"time": {
|
||||
"type": "string",
|
||||
"description": "抽取物品时对应时区(timezone)下的当地时间"
|
||||
"description": "抽取物品时对应时区(timezone)下的当地时间",
|
||||
"pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
@@ -173,7 +178,10 @@ Update: 2024-11-11
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "记录内部 ID,米哈游 API 返回"
|
||||
"description": "记录内部 ID,米哈游 API 返回",
|
||||
"maxLength": 19,
|
||||
"minLength": 1,
|
||||
"pattern": "^[0-9]+$"
|
||||
}
|
||||
},
|
||||
"required": ["uigf_gacha_type", "gacha_type", "item_id", "time", "id"]
|
||||
@@ -231,12 +239,12 @@ Update: 2024-11-11
|
||||
"properties": {
|
||||
"gacha_id": {
|
||||
"type": "string",
|
||||
"description": "卡池 Id"
|
||||
"description": "卡池 ID"
|
||||
},
|
||||
"gacha_type": {
|
||||
"type": "string",
|
||||
"description": "卡池类型",
|
||||
"enum": ["1", "2", "11", "12"]
|
||||
"enum": ["1", "2", "11", "12", "21", "22"]
|
||||
},
|
||||
"item_id": {
|
||||
"type": "string",
|
||||
@@ -248,7 +256,8 @@ Update: 2024-11-11
|
||||
},
|
||||
"time": {
|
||||
"type": "string",
|
||||
"description": "抽取物品时对应时区(timezone)下的当地时间"
|
||||
"description": "抽取物品时对应时区(timezone)下的当地时间",
|
||||
"pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
@@ -264,7 +273,10 @@ Update: 2024-11-11
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "记录内部 ID,米哈游 API 返回"
|
||||
"description": "记录内部 ID,米哈游 API 返回",
|
||||
"maxLength": 19,
|
||||
"minLength": 1,
|
||||
"pattern": "^[0-9]+$"
|
||||
}
|
||||
},
|
||||
"required": ["gacha_type", "gacha_id", "time", "item_id", "id"]
|
||||
@@ -322,7 +334,7 @@ Update: 2024-11-11
|
||||
"properties": {
|
||||
"gacha_id": {
|
||||
"type": "string",
|
||||
"description": "卡池 Id"
|
||||
"description": "卡池 ID"
|
||||
},
|
||||
"gacha_type": {
|
||||
"type": "string",
|
||||
@@ -339,7 +351,8 @@ Update: 2024-11-11
|
||||
},
|
||||
"time": {
|
||||
"type": "string",
|
||||
"description": "抽取物品时对应时区(timezone)下的当地时间"
|
||||
"description": "抽取物品时对应时区(timezone)下的当地时间",
|
||||
"pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
@@ -355,7 +368,10 @@ Update: 2024-11-11
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "记录内部 ID,米哈游 API 返回"
|
||||
"description": "记录内部 ID,米哈游 API 返回",
|
||||
"maxLength": 19,
|
||||
"minLength": 1,
|
||||
"pattern": "^[0-9]+$"
|
||||
}
|
||||
},
|
||||
"required": ["gacha_type", "item_id", "time", "id"]
|
||||
@@ -364,6 +380,109 @@ Update: 2024-11-11
|
||||
},
|
||||
"required": ["uid", "timezone", "list"]
|
||||
}
|
||||
},
|
||||
"hk4e_ugc": {
|
||||
"type": "array",
|
||||
"properties": {
|
||||
"uid": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
],
|
||||
"description": "UID"
|
||||
},
|
||||
"timezone": {
|
||||
"type": "integer",
|
||||
"description": "时区偏移,由米哈游 API 返回,若与服务器时区不同请注意 list 中 time 的转换"
|
||||
},
|
||||
"lang": {
|
||||
"type": "string",
|
||||
"description": "语言代码",
|
||||
"enum": [
|
||||
"de-de",
|
||||
"en-us",
|
||||
"es-es",
|
||||
"fr-fr",
|
||||
"id-id",
|
||||
"it-it",
|
||||
"ja-jp",
|
||||
"ko-kr",
|
||||
"pt-pt",
|
||||
"ru-ru",
|
||||
"th-th",
|
||||
"tr-tr",
|
||||
"vi-vn",
|
||||
"zh-cn",
|
||||
"zh-tw"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "记录内部 ID,米哈游 API 返回",
|
||||
"maxLength": 19,
|
||||
"minLength": 1,
|
||||
"pattern": "^[0-9]+$"
|
||||
},
|
||||
"schedule_id": {
|
||||
"type": "string",
|
||||
"description": "卡池排期 ID,米哈游 API 返回",
|
||||
"minLength": 1,
|
||||
"pattern": "^[0-9]+$"
|
||||
},
|
||||
"item_type": {
|
||||
"type": "string",
|
||||
"description": "物品类型,米哈游 API 返回"
|
||||
},
|
||||
"item_id": {
|
||||
"type": "string",
|
||||
"description": "物品 ID,米哈游 API 返回",
|
||||
"minLength": 1,
|
||||
"pattern": "^[0-9]+$"
|
||||
},
|
||||
"item_name": {
|
||||
"type": "string",
|
||||
"description": "物品名称,米哈游 API 返回"
|
||||
},
|
||||
"rank_type": {
|
||||
"type": "string",
|
||||
"description": "物品等级,米哈游 API 返回",
|
||||
"minLength": 1,
|
||||
"pattern": "^[0-9]+$"
|
||||
},
|
||||
"time": {
|
||||
"type": "string",
|
||||
"description": "抽取物品时对应时区(timezone)下的当地时间",
|
||||
"pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
|
||||
},
|
||||
"op_gacha_type": {
|
||||
"type": "string",
|
||||
"description": "卡池类型,米哈游 API 返回",
|
||||
"enum": ["1000", "2000", "20011", "20012", "20021", "20022"]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"schedule_id",
|
||||
"item_type",
|
||||
"item_id",
|
||||
"item_name",
|
||||
"rank_type",
|
||||
"time",
|
||||
"op_gacha_type"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["uid", "timezone", "list"]
|
||||
}
|
||||
},
|
||||
"required": ["info"]
|
||||
|
||||
@@ -22,7 +22,7 @@ Update: 2025-11-19
|
||||
- 顶部收缩按钮:`mdi:chevron-right` `mdi:chevron-left`
|
||||
- 首页:米游社网页活动图标
|
||||
- 公告:个人绘制 SVG
|
||||
- 咨讯:[米游社](https://www.miyoushe.com)
|
||||
- 资讯:[米游社](https://www.miyoushe.com)
|
||||
- 成就:个人绘制 SVG
|
||||
- 原神战绩:Hoyolab
|
||||
- 我的角色:Hoyolab
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* @file eslint.config.mjs
|
||||
* @description ESLint配置文件
|
||||
* @since 2025-05-29
|
||||
* ESLint 配置文件
|
||||
* @since Beta v0.9.3
|
||||
*/
|
||||
import { defineConfig } from "eslint/config";
|
||||
import eslintPluginJsonc from "eslint-plugin-jsonc";
|
||||
import eslintPluginJs from "@eslint/js";
|
||||
import eslintPluginTs from "typescript-eslint";
|
||||
@@ -12,14 +12,14 @@ import eslintConfigJson from "./eslint/jsonEslint.js";
|
||||
import eslintConfigVue from "./eslint/vueEslint.js";
|
||||
import eslintConfigYml from "./eslint/ymlEslint.js";
|
||||
|
||||
export default [
|
||||
export default defineConfig([
|
||||
eslintPluginJs.configs.recommended,
|
||||
...eslintPluginJsonc.configs["flat/recommended-with-jsonc"],
|
||||
...eslintPluginTs.configs.recommended,
|
||||
...eslintPluginVue.configs["flat/essential"],
|
||||
...eslintConfigJson,
|
||||
...eslintConfigVue,
|
||||
eslintConfigYml,
|
||||
...eslintConfigYml,
|
||||
{
|
||||
ignores: [
|
||||
"dist",
|
||||
@@ -28,8 +28,8 @@ export default [
|
||||
"src/data/**/*.json",
|
||||
"src-tauri/tauri.conf.json",
|
||||
"src-tauri/**/*.json",
|
||||
"qodana.yaml",
|
||||
"node_modules",
|
||||
".github",
|
||||
],
|
||||
},
|
||||
];
|
||||
]);
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
/**
|
||||
* @file eslint/jsonEslint.js
|
||||
* @description JSON相关的ESLint配置
|
||||
* @since Beta v0.7.7
|
||||
* JSON 文件的 ESLint 配置
|
||||
* @since Beta v0.9.6
|
||||
*/
|
||||
|
||||
import pluginJsonc from "eslint-plugin-jsonc";
|
||||
import parserJsonc from "jsonc-eslint-parser";
|
||||
import * as parserJsonc from "jsonc-eslint-parser";
|
||||
|
||||
const pkgJsonConfig = {
|
||||
files: ["package.json"],
|
||||
@@ -63,7 +62,7 @@ const tscJsonConfig = {
|
||||
};
|
||||
|
||||
const jsoncConfig = {
|
||||
files: ["source/data/out/**/*.json", ".vscode/**/*.json"],
|
||||
files: ["source/data/out/**/*.json", ".vscode/**/*.json", "./tsdoc.json"],
|
||||
plugins: { jsonc: pluginJsonc },
|
||||
languageOptions: { parser: parserJsonc },
|
||||
rules: {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/**
|
||||
* @file eslint/vueEslint.js
|
||||
* @description Vue相关的ESLint配置
|
||||
* @since Beta v0.8.0
|
||||
* Vue & Typescript 文件的 Eslint 配置
|
||||
* @since Beta v0.9.1
|
||||
*/
|
||||
import pluginImport from "eslint-plugin-import";
|
||||
import pluginPrettier from "eslint-plugin-prettier";
|
||||
import pluginVue from "eslint-plugin-vue";
|
||||
import pluginTsDoc from "eslint-plugin-tsdoc";
|
||||
import globals from "globals";
|
||||
import eslintTs from "typescript-eslint";
|
||||
import parserVue from "vue-eslint-parser";
|
||||
@@ -17,6 +17,8 @@ const tsConfigRules = {
|
||||
"@typescript-eslint/strict-boolean-expressions": "off",
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/no-unused-expressions": ["error", { allowShortCircuit: false }],
|
||||
"@typescript-eslint/array-type": ["error", { default: "generic" }],
|
||||
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
|
||||
"import/order": [
|
||||
"error",
|
||||
{
|
||||
@@ -30,19 +32,33 @@ const tsConfigRules = {
|
||||
|
||||
const tsConfig = {
|
||||
files: ["*.ts", "*.d.ts", "src/**/*.ts", "src/**/*.d.ts"],
|
||||
plugins: { typescript: eslintTs, import: pluginImport, prettier: pluginPrettier },
|
||||
plugins: {
|
||||
typescript: eslintTs,
|
||||
import: pluginImport,
|
||||
prettier: pluginPrettier,
|
||||
tsdoc: pluginTsDoc,
|
||||
},
|
||||
languageOptions: {
|
||||
parser: eslintTs.parser,
|
||||
parserOptions: { project: "tsconfig.json", tsconfigRootDir: appRootPath.path },
|
||||
},
|
||||
rules: tsConfigRules,
|
||||
rules: {
|
||||
...tsConfigRules,
|
||||
"tsdoc/syntax": "warn",
|
||||
},
|
||||
};
|
||||
|
||||
const vueConfig = {
|
||||
files: ["src/**/*.vue", "src/App.vue"],
|
||||
plugins: { vue: pluginVue, import: pluginImport, prettier: pluginPrettier },
|
||||
languageOptions: {
|
||||
globals: { ...globals.browser, ...globals.es2021, TGApp: "readonly", window: "readonly" },
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.es2021,
|
||||
TGApp: "readonly",
|
||||
window: "readonly",
|
||||
proEnv: "readonly",
|
||||
},
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "module",
|
||||
parser: parserVue,
|
||||
|
||||
@@ -1,24 +1,25 @@
|
||||
/**
|
||||
* @file eslint/ymlEslint.js
|
||||
* @description YAML相关的ESLint配置
|
||||
* @since Beta v0.7.7
|
||||
* YAML 文件的 ESLint 配置
|
||||
* @since Beta v0.9.3
|
||||
*/
|
||||
import pluginYml from "eslint-plugin-yml";
|
||||
import parserYml from "yaml-eslint-parser";
|
||||
import * as ymlParser from "yaml-eslint-parser";
|
||||
|
||||
const eslintConfigYml = {
|
||||
files: ["**/*.yml", "**/*.yaml"],
|
||||
plugins: { yml: pluginYml },
|
||||
languageOptions: {
|
||||
parser: parserYml,
|
||||
parserOptions: { defaultYAMLVersion: "1.2", extraFileExtensions: [".yaml", ".yml"] },
|
||||
const eslintConfigYml = [
|
||||
{
|
||||
files: ["**/*.yml", "**/*.yaml"],
|
||||
plugins: { yml: pluginYml },
|
||||
languageOptions: {
|
||||
parser: ymlParser,
|
||||
parserOptions: { defaultYAMLVersion: "1.2", extraFileExtensions: [".yaml", ".yml"] },
|
||||
},
|
||||
rules: {
|
||||
"yml/indent": ["error", 2],
|
||||
"yml/key-spacing": ["error"],
|
||||
"yml/quotes": ["error", { prefer: "double", avoidEscape: true }],
|
||||
"yml/sort-keys": ["error", "asc"],
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"yml/indent": ["error", 2],
|
||||
"yml/key-spacing": ["error"],
|
||||
"yml/quotes": ["error", { prefer: "double", avoidEscape: true }],
|
||||
"yml/sort-keys": ["error", "asc"],
|
||||
},
|
||||
};
|
||||
];
|
||||
|
||||
export default eslintConfigYml;
|
||||
|
||||
126
package.json
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "teyvatguide",
|
||||
"version": "0.9.0",
|
||||
"version": "0.9.8",
|
||||
"description": "Game Tool for GenshinImpact player",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@10.26.0",
|
||||
"packageManager": "pnpm@10.32.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tauri build",
|
||||
"debug": "tauri build --debug",
|
||||
"dev": "tauri dev --exit-on-panic",
|
||||
"build": "tsx scripts/auto-build.ts",
|
||||
"debug": "tsx scripts/auto-build.ts su --debug",
|
||||
"dev": "tsx scripts/auto-dev.ts",
|
||||
"eslint:pre": "pnpx @eslint/config-inspector@latest",
|
||||
"oxlint": "oxlint",
|
||||
"lint": "concurrently \"pnpm:lint:*(!fix)\"",
|
||||
@@ -70,82 +70,94 @@
|
||||
"doc": "docs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@date-fns/tz": "^1.4.1",
|
||||
"@mdi/font": "7.4.47",
|
||||
"@tauri-apps/api": "^2.9.1",
|
||||
"@tauri-apps/plugin-deep-link": "^2.4.5",
|
||||
"@tauri-apps/plugin-dialog": "^2.4.2",
|
||||
"@tauri-apps/plugin-fs": "^2.4.4",
|
||||
"@tauri-apps/plugin-http": "github:tauri-apps/tauri-plugin-http",
|
||||
"@tauri-apps/plugin-log": "^2.7.1",
|
||||
"@tauri-apps/plugin-opener": "^2.5.2",
|
||||
"@sentry/core": "^10.45.0",
|
||||
"@sentry/vite-plugin": "^5.1.1",
|
||||
"@sentry/vue": "^10.45.0",
|
||||
"@skipperndt/plugin-machine-uid": "^0.1.3",
|
||||
"@tauri-apps/api": "^2.10.1",
|
||||
"@tauri-apps/plugin-cli": "^2.4.1",
|
||||
"@tauri-apps/plugin-deep-link": "^2.4.7",
|
||||
"@tauri-apps/plugin-dialog": "^2.6.0",
|
||||
"@tauri-apps/plugin-fs": "^2.4.5",
|
||||
"@tauri-apps/plugin-http": "^2.5.7",
|
||||
"@tauri-apps/plugin-log": "^2.8.0",
|
||||
"@tauri-apps/plugin-notification": "^2.3.3",
|
||||
"@tauri-apps/plugin-opener": "^2.5.3",
|
||||
"@tauri-apps/plugin-os": "^2.3.2",
|
||||
"@tauri-apps/plugin-process": "^2.3.1",
|
||||
"@tauri-apps/plugin-shell": "^2.3.3",
|
||||
"@tauri-apps/plugin-sql": "^2.3.1",
|
||||
"ajv": "^8.17.1",
|
||||
"artplayer": "^5.3.0",
|
||||
"@tauri-apps/plugin-sql": "^2.3.2",
|
||||
"ajv": "^8.18.0",
|
||||
"artplayer": "^5.4.0",
|
||||
"colord": "^2.9.3",
|
||||
"date-fns": "^4.1.0",
|
||||
"echarts": "^6.0.0",
|
||||
"html2canvas": "^1.4.1",
|
||||
"js-md5": "^0.8.3",
|
||||
"jsencrypt": "^3.5.4",
|
||||
"json-bigint": "^1.0.0",
|
||||
"pinia": "^3.0.4",
|
||||
"pinia-plugin-persistedstate": "^4.7.1",
|
||||
"qrcode.vue": "^3.6.0",
|
||||
"sass-embedded": "^1.97.0",
|
||||
"swiper": "^12.0.3",
|
||||
"qrcode.vue": "^3.8.0",
|
||||
"rsa-oaep-encryption": "^1.1.0",
|
||||
"sass-embedded": "^1.98.0",
|
||||
"swiper": "^12.1.3",
|
||||
"uuid": "^13.0.0",
|
||||
"vue": "^3.5.26",
|
||||
"vue": "^3.5.30",
|
||||
"vue-echarts": "^8.0.1",
|
||||
"vue-json-pretty": "^2.6.0",
|
||||
"vue-router": "^4.6.4",
|
||||
"vuetify": "^3.11.4",
|
||||
"wcag-color": "^1.1.1",
|
||||
"xml-js": "^1.6.11"
|
||||
"vue-router": "^5.0.4",
|
||||
"vuetify": "^4.0.4",
|
||||
"wcag-color": "^1.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@btmuli/stylelint-plugin-color": "^0.1.0",
|
||||
"@eslint/eslintrc": "^3.3.3",
|
||||
"@eslint/js": "^9.39.2",
|
||||
"@tauri-apps/cli": "2.9.6",
|
||||
"@eslint/eslintrc": "^3.3.5",
|
||||
"@eslint/js": "9.39.2",
|
||||
"@microsoft/tsdoc": "^0.16.0",
|
||||
"@tauri-apps/cli": "2.10.1",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/js-md5": "^0.8.0",
|
||||
"@types/node": "^25.0.3",
|
||||
"@typescript-eslint/parser": "^8.50.0",
|
||||
"@typescript/native-preview": "7.0.0-dev.20251218.1",
|
||||
"@vitejs/plugin-vue": "^6.0.3",
|
||||
"@types/json-bigint": "^1.0.4",
|
||||
"@types/node": "^25.5.0",
|
||||
"@typescript-eslint/parser": "^8.57.2",
|
||||
"@vitejs/plugin-vue": "^6.0.5",
|
||||
"app-root-path": "^3.1.0",
|
||||
"concurrently": "^9.2.1",
|
||||
"eslint": "^9.39.2",
|
||||
"envfile": "^7.1.0",
|
||||
"eslint": "9.39.2",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"eslint-plugin-jsonc": "^2.21.0",
|
||||
"eslint-plugin-prettier": "^5.5.4",
|
||||
"eslint-plugin-vue": "^10.6.2",
|
||||
"eslint-plugin-yml": "^1.19.1",
|
||||
"fs-extra": "^11.3.3",
|
||||
"globals": "^16.5.0",
|
||||
"eslint-plugin-jsonc": "^3.1.2",
|
||||
"eslint-plugin-prettier": "^5.5.5",
|
||||
"eslint-plugin-tsdoc": "^0.5.2",
|
||||
"eslint-plugin-vue": "^10.8.0",
|
||||
"eslint-plugin-yml": "^3.3.1",
|
||||
"fs-extra": "^11.3.4",
|
||||
"globals": "^17.4.0",
|
||||
"husky": "^9.1.7",
|
||||
"jsonc-eslint-parser": "^2.4.2",
|
||||
"lint-staged": "^16.2.7",
|
||||
"oxlint": "^1.34.0",
|
||||
"postcss-preset-env": "^10.5.0",
|
||||
"prettier": "3.7.4",
|
||||
"stylelint": "^16.26.1",
|
||||
"jsonc-eslint-parser": "^3.1.0",
|
||||
"lint-staged": "16.4.0",
|
||||
"oxlint": "^1.57.0",
|
||||
"postcss-preset-env": "^11.2.0",
|
||||
"prettier": "3.8.1",
|
||||
"stylelint": "^17.5.0",
|
||||
"stylelint-config-idiomatic-order": "^10.0.0",
|
||||
"stylelint-config-standard-scss": "^16.0.0",
|
||||
"stylelint-config-standard-scss": "^17.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": "^7.0.0",
|
||||
"stylelint-declaration-block-no-ignored-properties": "^3.0.0",
|
||||
"stylelint-high-performance-animation": "^2.0.0",
|
||||
"stylelint-order": "^8.1.1",
|
||||
"stylelint-prettier": "^5.0.3",
|
||||
"stylelint-scss": "^6.13.0",
|
||||
"stylelint-scss": "^7.0.0",
|
||||
"tsx": "^4.21.0",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.50.0",
|
||||
"vite": "npm:rolldown-vite@^7.3.0",
|
||||
"vite-plugin-vue-devtools": "^8.0.5",
|
||||
"vite-plugin-vuetify": "^2.1.2",
|
||||
"vue-eslint-parser": "^10.2.0",
|
||||
"vue-tsc": "^3.1.8",
|
||||
"yaml-eslint-parser": "^1.3.2"
|
||||
"typescript": "^6.0.2",
|
||||
"typescript-eslint": "^8.57.2",
|
||||
"vite": "^8.0.2",
|
||||
"vite-plugin-vue-devtools": "^8.1.1",
|
||||
"vite-plugin-vuetify": "^2.1.3",
|
||||
"vue-eslint-parser": "^10.4.0",
|
||||
"vue-tsc": "^3.2.6",
|
||||
"yaml-eslint-parser": "^2.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
5879
pnpm-lock.yaml
generated
BIN
public/UI/app/empty.webp
Normal file
|
After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 896 B After Width: | Height: | Size: 896 B |
|
Before Width: | Height: | Size: 556 B After Width: | Height: | Size: 556 B |
BIN
public/UI/app/loading.webp
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
public/UI/combat/charBg.webp
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
public/UI/combat/charFinish.webp
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
public/UI/combat/charFront.webp
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
public/UI/combat/charLock.webp
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
public/UI/combat/charMaster.webp
Normal file
|
After Width: | Height: | Size: 638 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
public/UI/combat/tarotDefault.webp
Normal file
|
After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 776 B After Width: | Height: | Size: 776 B |
BIN
public/UI/nav/subRecord.webp
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
public/UI/nav/subSign.webp
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
BIN
public/UI/nav/userBag.webp
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 704 B After Width: | Height: | Size: 704 B |
|
Before Width: | Height: | Size: 1010 B After Width: | Height: | Size: 1010 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 786 B After Width: | Height: | Size: 786 B |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 476 B After Width: | Height: | Size: 476 B |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
BIN
public/WIKI/character/10000125.webp
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/WIKI/character/10000126.webp
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/WIKI/character/10000127.webp
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/WIKI/character/10000128.webp
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/WIKI/costume/200201.webp
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/WIKI/costume/200201_full.webp
Normal file
|
After Width: | Height: | Size: 99 KiB |
BIN
public/WIKI/costume/200201_side.webp
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
public/WIKI/costume/200301.webp
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/WIKI/costume/200301_full.webp
Normal file
|
After Width: | Height: | Size: 122 KiB |
BIN
public/WIKI/costume/200301_side.webp
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
public/WIKI/costume/200302.webp
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
public/WIKI/costume/200302_full.webp
Normal file
|
After Width: | Height: | Size: 212 KiB |
BIN
public/WIKI/costume/200302_side.webp
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
public/WIKI/costume/200501.webp
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/WIKI/costume/200501_full.webp
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
public/WIKI/costume/200501_side.webp
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
public/WIKI/costume/200601.webp
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
public/WIKI/costume/200601_full.webp
Normal file
|
After Width: | Height: | Size: 135 KiB |
BIN
public/WIKI/costume/200601_side.webp
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
public/WIKI/costume/200701.webp
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
public/WIKI/costume/200701_full.webp
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
public/WIKI/costume/200701_side.webp
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
public/WIKI/costume/201401.webp
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
public/WIKI/costume/201401_full.webp
Normal file
|
After Width: | Height: | Size: 124 KiB |
BIN
public/WIKI/costume/201401_side.webp
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
public/WIKI/costume/201501.webp
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/WIKI/costume/201501_full.webp
Normal file
|
After Width: | Height: | Size: 148 KiB |
BIN
public/WIKI/costume/201501_side.webp
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
public/WIKI/costume/201601.webp
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/WIKI/costume/201601_full.webp
Normal file
|
After Width: | Height: | Size: 276 KiB |
BIN
public/WIKI/costume/201601_side.webp
Normal file
|
After Width: | Height: | Size: 3.5 KiB |