chore: update deps (#108)

* chore: update deps

* style: update linter

* fix: fix catalog

* chore: tweaks navbar config

(cherry picked from commit 7ac010e072)
This commit is contained in:
Mr.Hope
2024-02-22 16:16:02 +08:00
committed by 目棃
parent 8f829c3f71
commit 820060e3a3
65 changed files with 1798 additions and 2156 deletions

1
.gitignore vendored
View File

@@ -5,3 +5,4 @@ docs/.vuepress/.temp/
docs/.vuepress/dist/
dist/
.idea/
.npmrc

View File

@@ -1,8 +1,6 @@
import { viteBundler } from "@vuepress/bundler-vite";
import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics";
import { defineUserConfig } from "vuepress";
// https://ecosystem.vuejs.press/zh/plugins/redirect.html
import { redirectPlugin } from "vuepress-plugin-redirect";
import { addCustomElement, addViteConfig } from "vuepress-shared/node";
import theme from "./theme.js";
@@ -57,38 +55,23 @@ export default defineUserConfig({
googleAnalyticsPlugin({
id: "G-F3LFJCE3RM",
}),
redirectPlugin({
defaultLocale: "/en/",
autoLocale: true,
switchLocale: "modal",
localeConfig: {
"/en/": ["en-US", "en-UK", "en"],
"/zh/": ["zh-CN", "zh-TW", "zh"],
"/ru/": [
"ru-RU",
"ru-KZ",
"ru-BY",
"ru-UA",
"ru-MD",
"ru-LV",
"tt-RU",
"ru",
],
"/id/": ["id-ID", "id"],
},
}),
],
theme,
shouldPrefetch: false,
extendsBundlerOptions: (config, app) => {
addViteConfig(config, app, {
bundler: viteBundler({
viteOptions: {
build: {
chunkSizeWarningLimit: 1500,
},
});
addCustomElement(config, app, "ms-store-badge");
},
vuePluginOptions: {
template: {
compilerOptions: {
isCustomElement: (tag) => tag === "ms-store-badge",
},
},
},
}),
theme,
shouldPrefetch: false,
});

View File

@@ -2,11 +2,15 @@ import { navbar } from "vuepress-theme-hope";
export const enNavbar = navbar([
"/en/",
{ text: "Document", icon: "iconfont icon-article", link: "/en/menu.html" },
{
text: "Document",
icon: "iconfont icon-article",
link: "/en/menu",
},
{
text: "Download",
icon: "iconfont icon-install",
link: "/en/quick-start.html",
link: "/en/quick-start",
},
{
text: "Community",
@@ -16,11 +20,12 @@ export const enNavbar = navbar([
{
text: "Help & Support",
icon: "iconfont icon-define",
prefix: "/en/",
children: [
{
text: "Update Log",
icon: "iconfont icon-update",
link: "/en/statements/update-log.html"
link: "statements/update-log",
},
{
text: "Service Availability",
@@ -34,25 +39,24 @@ export const enNavbar = navbar([
text: "Uptime Kuma",
icon: "/images/202312/uptime-kuma.svg",
link: "https://status.snapgenshin.cn/status",
}
]
},
],
},
{
text: "Question & Feedback",
children:[
children: [
{
text: "FAQ",
icon: "iconfont icon-ask",
link: "/en/advanced/FAQ.html"
link: "advanced/FAQ",
},
{
text: "Report Bug",
icon: "iconfont icon-debug",
link: "/en/statements/bug-report.html"
link: "statements/bug-report",
},
]
}
]
],
},
],
},
]);

View File

@@ -2,7 +2,11 @@ import { navbar } from "vuepress-theme-hope";
export const idNavbar = navbar([
"/id/",
{ text: "Document", icon: "iconfont icon-article", link: "/id/menu.html" },
{
text: "Document",
icon: "iconfont icon-article",
link: "/id/menu",
},
{
text: "Unduh",
icon: "iconfont icon-install",
@@ -26,7 +30,7 @@ export const idNavbar = navbar([
text: "Uptime Kuma",
icon: "/images/202312/uptime-kuma.svg",
link: "https://status.snapgenshin.cn/status",
}
]
},
],
},
]);

View File

@@ -2,7 +2,11 @@ import { navbar } from "vuepress-theme-hope";
export const ruNavbar = navbar([
"/ru/",
{ text: "Документация", icon: "iconfont icon-article", link: "/ru/menu.html" },
{
text: "Документация",
icon: "iconfont icon-article",
link: "/ru/menu",
},
{
text: "Скачать",
icon: "iconfont icon-install",
@@ -26,7 +30,7 @@ export const ruNavbar = navbar([
text: "Uptime Kuma",
icon: "/images/202312/uptime-kuma.svg",
link: "https://status.snapgenshin.cn/status",
}
]
},
],
},
]);

View File

@@ -2,11 +2,15 @@ import { navbar } from "vuepress-theme-hope";
export const zhNavbar = navbar([
"/zh/",
{ text: "文档", icon: "iconfont icon-article", link: "/zh/menu.html" },
{
text: "文档",
icon: "iconfont icon-article",
link: "/zh/menu",
},
{
text: "下载",
icon: "iconfont icon-install",
link: "/zh/quick-start.html",
link: "/zh/quick-start",
},
{
text: "支持我们",
@@ -21,11 +25,12 @@ export const zhNavbar = navbar([
{
text: "帮助与支持",
icon: "iconfont icon-define",
prefix: "/zh/",
children: [
{
text: "更新日志",
icon: "iconfont icon-update",
link: "/zh/statements/update-log.html"
link: "statements/update-log",
},
{
text: "服务可用性",
@@ -39,25 +44,24 @@ export const zhNavbar = navbar([
text: "Uptime Kuma",
icon: "/images/202312/uptime-kuma.svg",
link: "https://status.snapgenshin.cn/status",
}
]
},
],
},
{
text: "问题与反馈",
children:[
children: [
{
text: "常见问题",
icon: "iconfont icon-ask",
link: "/zh/advanced/FAQ.html"
link: "advanced/FAQ.html",
},
{
text: "反馈问题",
icon: "iconfont icon-debug",
link: "/zh/statements/bug-report.html"
link: "statements/bug-report.html",
},
]
}
]
],
},
],
},
]);

View File

@@ -15,33 +15,25 @@ export const enSidebar = sidebar({
icon: "iconfont icon-module",
text: "Game Tools",
children: [
"dashboard.md",
"game-launcher.md",
"wish-export.md",
"achievements.md",
"real-time-notes.md",
"character-data.md",
"hutao-API.md",
"develop-plan.md"
]
"dashboard",
"game-launcher",
"wish-export",
"achievements",
"real-time-notes",
"character-data",
"hutao-API",
"develop-plan",
],
},
{
icon: "iconfont icon-study",
text: "Game WIKI",
children: [
"character-wiki.md",
"weapon-wiki.md",
"monster-wiki.md"
]
children: ["character-wiki", "weapon-wiki", "monster-wiki"],
},
{
icon: "iconfont icon-setting",
text: "Snap Hutao Features",
children: [
"feedback-center.md",
"hutao-passport.md",
"hutao-settings.md"
]
children: ["feedback-center", "hutao-passport", "hutao-settings"],
},
],
},
@@ -68,6 +60,6 @@ export const enSidebar = sidebar({
text: "Dev Logs",
prefix: "blog/",
children: "structure",
}
},
],
});

View File

@@ -35,6 +35,6 @@ export const idSidebar = sidebar({
text: "Dev Logs",
prefix: "blog/",
children: "structure",
}
},
],
});

View File

@@ -35,6 +35,6 @@ export const ruSidebar = sidebar({
text: "Dev Logs",
prefix: "blog/",
children: "structure",
}
},
],
});

View File

@@ -15,35 +15,27 @@ export const zhSidebar = sidebar({
icon: "iconfont icon-module",
text: "游戏工具",
children: [
"dashboard.md",
"game-launcher.md",
"wish-export.md",
"achievements.md",
"real-time-notes.md",
"character-data.md",
"hutao-API.md",
"develop-plan.md"
]
"dashboard",
"game-launcher",
"wish-export",
"achievements",
"real-time-notes",
"character-data",
"hutao-API",
"develop-plan",
],
},
{
icon: "iconfont icon-study",
text: "游戏 WIKI",
children: [
"character-wiki.md",
"weapon-wiki.md",
"monster-wiki.md"
]
children: ["character-wiki", "weapon-wiki", "monster-wiki"],
},
{
icon: "iconfont icon-setting",
text: "软件功能",
children: [
"feedback-center.md",
"hutao-passport.md",
"hutao-settings.md"
]
children: ["feedback-center", "hutao-passport", "hutao-settings"],
},
]
],
},
{
icon: "iconfont icon-advance",
@@ -68,6 +60,6 @@ export const zhSidebar = sidebar({
text: "开发日志",
prefix: "blog/",
children: "structure",
}
},
],
});

View File

@@ -91,20 +91,3 @@ html[data-theme="dark"] {
color: #bbbbbb;
}
}
.sponsor-diy-card{
.vp-tabs{
border: None;
}
.vp-tabs-nav{
background: None;
border-radius: 0 0 0;
//display: None;
}
.vp-tab-nav{
background: None;
border-radius: 0 0 0;
}
}

View File

@@ -311,12 +311,14 @@ export default hopeTheme({
},
pwa: {
appendBase: true,
favicon: "/favicon.ico",
cacheHTML: false,
cachePic: true,
appendBase: true,
cacheImage: true,
themeColor: "#f26d6d",
update: "hint",
apple: {
icon: "/favicon.ico",
statusBarColor: "black",
@@ -325,6 +327,7 @@ export default hopeTheme({
image: "/favicon.ico",
color: "#ffffff",
},
manifest: {
icons: [
{
@@ -360,5 +363,26 @@ export default hopeTheme({
],
},
},
redirect: {
defaultLocale: "/en/",
autoLocale: true,
switchLocale: "modal",
localeConfig: {
"/en/": ["en-US", "en-UK", "en"],
"/zh/": ["zh-CN", "zh-TW", "zh"],
"/ru/": [
"ru-RU",
"ru-KZ",
"ru-BY",
"ru-UA",
"ru-MD",
"ru-LV",
"tt-RU",
"ru",
],
"/id/": ["id-ID", "id"],
},
},
},
});

View File

@@ -9,4 +9,4 @@ dir:
# Advanced
<AutoCatalog />
<Catalog />

View File

@@ -9,4 +9,4 @@ dir:
# Dev Logs
<AutoCatalog />
<Catalog />

View File

@@ -10,4 +10,4 @@ dir:
# Open Source Development
<AutoCatalog />
<Catalog />

View File

@@ -10,4 +10,4 @@ dir:
# Features
<AutoCatalog />
<Catalog />

View File

@@ -8,4 +8,4 @@ icon: iconfont icon-workingDirectory
# Site Menu
<AutoCatalog base="/en/" :level="3" />
<Catalog base="/en/" :level="3" />

View File

@@ -12,4 +12,4 @@ dir:
**Snap Hutao project does NOT support, participate in, or cooperate with any project related to Genshin Impact's private server and cheating program.**
<AutoCatalog />
<Catalog />

View File

@@ -9,4 +9,4 @@ dir:
# Lanjutan
<AutoCatalog />
<Catalog />

View File

@@ -11,7 +11,7 @@ order: 3
Anda dapat melihat semua masalah di [Halaman Issue GitHub](https://github.com/DGP-Studio/Snap.Hutao/issues?q=is%3Aissue)
| Kategori | Tanda |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [Semua Masalah BUG yang Dibuka](https://github.com/DGP-Studio/Snap.Hutao/issues?q=is%3Aissue+label%3ABUG+is%3Aopen) | Diberi label `BUG` |
| [Semua Masalah Permintaan Fitur yang Dibuka](https://github.com/DGP-Studio/Snap.Hutao/issues?q=is%3Aopen+is%3Aissue+label%3A%E5%8A%9F%E8%83%BD) | Diberi label `功能` (Fitur) |
| [Masalah yang Telah Diperbaiki dan Diselesaikan](https://github.com/DGP-Studio/Snap.Hutao/issues?q=is%3Aissue+label%3A%E5%B7%B2%E4%BF%AE%E5%A4%8D) | Diberi label `已修复` (Diperbaiki) |

View File

@@ -9,4 +9,4 @@ dir:
# Dev Logs
<AutoCatalog />
<Catalog />

View File

@@ -31,7 +31,7 @@ Snap Hutao versi 1.9.0 dijadwalkan akan rilis pada akhir pekan sebelum Natal 202
Langsung menginstal paket ini akan menyebabkan masalah tergantung pada versi sistem Anda karena konflik nama paket dan tanda tangan.
| Versi Sistem | Masalah yang Diharapkan |
| :----------: | :--------------------------------------------------------------------------------------------------------------------------------------: |
| :----------: | :----------------------------------------------------------------------------------------------------------------------------------: |
| Windows 10 | Tidak dapat diinstal; konflik tanda tangan dan nama paket |
| Windows 11 | Instalasi berhasil;<br/>Koeksistensi dengan versi Snap Hutao lama dengan nama yang sama menyebabkan kesalahan waktu jalannya program |

View File

@@ -10,4 +10,4 @@ dir:
# Open Source Development
<AutoCatalog />
<Catalog />

View File

@@ -10,4 +10,4 @@ dir:
# Fitur
<AutoCatalog />
<Catalog />

View File

@@ -115,5 +115,4 @@ link: https://yuanshen.xin/
[^first]: Ketika karakter yang sama muncul di lantai yang sama tetapi berbeda level, waktu penampilan hanya dihitung sekali.
[^first-2]: Ketika karakter yang sama muncul di lantai yang sama tetapi berbeda level, waktu penampilan hanya dihitung sekali.
[^second]: Data konstelasi karakter adalah set data terpisah dari database catatan Spiral Abyss
[^third]:
Setelah memiliki karakter ini, karakter akan dihitung ke dalam database bahkan jika tidak muncul di Spiral Abyss; Setelah mengunggah statistik Abyss Anda, semua karakter yang dikumpulkan akan disertakan
[^third]: Setelah memiliki karakter ini, karakter akan dihitung ke dalam database bahkan jika tidak muncul di Spiral Abyss; Setelah mengunggah statistik Abyss Anda, semua karakter yang dikumpulkan akan disertakan

View File

@@ -8,4 +8,4 @@ icon: iconfont icon-workingDirectory
# Site Menu
<AutoCatalog base="/id/" :level="3" />
<Catalog base="/id/" :level="3" />

View File

@@ -12,4 +12,4 @@ dir:
**Snap Hutao project does NOT support, participate in, or cooperate with any project related to Genshin Impact's private server and cheating program.**
<AutoCatalog />
<Catalog />

View File

@@ -9,4 +9,4 @@ dir:
# Advanced
<AutoCatalog />
<Catalog />

View File

@@ -9,4 +9,4 @@ dir:
# Dev Logs
<AutoCatalog />
<Catalog />

View File

@@ -10,4 +10,4 @@ dir:
# Open Source Development
<AutoCatalog />
<Catalog />

View File

@@ -10,4 +10,4 @@ dir:
# Features
<AutoCatalog />
<Catalog />

View File

@@ -28,6 +28,7 @@ comment: false
- Данные включают в себя детали артефактов, данные оружия, данные талантов
- Витрина персонажей позволяет отображать до 8 персонажей одновременно
:::
- В игре поместите **персонажей, для которых вам нужны подробные данные**, в витрину
@@ -45,6 +46,7 @@ comment: false
- Этот метод не содержит данных об артефактах
- Этот метод может синхронизировать все данные персонажей одновременно
:::
- Войдите в раздел `My Characters` в Snap Hutao, нажмите кнопку «Синхронизация данных персонажа» в верхнем правом углу
@@ -58,6 +60,7 @@ comment: false
- Этот метод синхронизирует данные уровня талантов
- Этот метод может синхронизировать все данные персонажей одновременно
:::
- Войдите в раздел `My Characters` в Snap Hutao, нажмите кнопку «Синхронизация данных персонажа» в верхнем правом углу

View File

@@ -8,4 +8,4 @@ icon: iconfont icon-workingDirectory
# Меню сайта
<AutoCatalog base="/ru/" :level="3" />
<Catalog base="/ru/" :level="3" />

View File

@@ -12,4 +12,4 @@ dir:
**Snap Hutao project does NOT support, participate in, or cooperate with any project related to Genshin Impact's private server and cheating program.**
<AutoCatalog />
<Catalog />

View File

@@ -9,4 +9,4 @@ dir:
# 高级
<AutoCatalog />
<Catalog />

View File

@@ -9,4 +9,4 @@ dir:
# 开发日志
<AutoCatalog />
<Catalog />

View File

@@ -10,4 +10,4 @@ dir:
# 开源开发
<AutoCatalog />
<Catalog />

View File

@@ -10,4 +10,4 @@ dir:
# 功能指南
<AutoCatalog />
<Catalog />

View File

@@ -8,4 +8,4 @@ icon: iconfont icon-workingDirectory
# 全站目录
<AutoCatalog base="/zh/" :level="4" />
<Catalog base="/zh/" :level="4" />

View File

@@ -12,4 +12,4 @@ dir:
**Snap Hutao 项目不支持、不参与、不合作任何与原神相关的私服和外挂项目**
<AutoCatalog />
<Catalog />

View File

@@ -9,29 +9,27 @@
"docs:clean-dev": "vuepress dev docs --clean-cache",
"docs:dev": "vuepress dev docs",
"lint": "prettier --check --write .",
"prepare": "husky install"
"prepare": "husky"
},
"devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.0",
"@vuepress/client": "2.0.0-rc.0",
"@vuepress/plugin-docsearch": "2.0.0-rc.0",
"@vuepress/plugin-google-analytics": "2.0.0-rc.0",
"husky": "8.0.3",
"@vuepress/bundler-vite": "2.0.0-rc.8",
"@vuepress/plugin-docsearch": "2.0.0-rc.15",
"@vuepress/plugin-feed": "2.0.0-rc.15",
"@vuepress/plugin-google-analytics": "2.0.0-rc.15",
"@vuepress/plugin-pwa": "2.0.0-rc.16",
"@vuepress/plugin-redirect": "2.0.0-rc.15",
"husky": "9.0.11",
"nano-staged": "0.8.0",
"prettier": "3.1.1",
"vue": "^3.4.3",
"vuepress": "2.0.0-rc.0",
"vuepress-plugin-feed2": "2.0.0-rc.10",
"vuepress-plugin-pwa2": "2.0.0-rc.10",
"vuepress-plugin-redirect": "2.0.0-rc.10",
"vuepress-shared": "2.0.0-rc.10",
"vuepress-theme-hope": "2.0.0-rc.10"
"prettier": "3.2.5",
"vue": "^3.4.19",
"vuepress": "2.0.0-rc.8",
"vuepress-theme-hope": "2.0.0-rc.25"
},
"engines": {
"node": ">=18.16.0"
"node": ">=18.18.0"
},
"nano-staged": {
"*.md": "prettier --write"
},
"packageManager": "pnpm@8.13.1"
"packageManager": "pnpm@8.15.3"
}

3555
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff