chore: update deps

This commit is contained in:
Mr.Hope
2023-12-30 17:30:24 +08:00
parent aeddb1242a
commit 4750e5610e
11 changed files with 528 additions and 501 deletions

View File

@@ -1,8 +1,7 @@
import { viteBundler } from "@vuepress/bundler-vite";
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics"; import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics";
import { defineUserConfig } from "vuepress"; import { defineUserConfig } from "vuepress";
import { redirectPlugin } from "vuepress-plugin-redirect"; import { redirectPlugin } from "vuepress-plugin-redirect";
import { addCustomElement, addViteConfig } from "vuepress-shared/node";
import theme from "./theme.js"; import theme from "./theme.js";
@@ -54,177 +53,6 @@ export default defineUserConfig({
}, },
plugins: [ plugins: [
docsearchPlugin({
appId: "28CTGDOOQD",
apiKey: "72d7a9a0f9f0466218ea19988886dce8",
indexName: "hutao",
locales: {
"/zh/": {
placeholder: "搜索文档",
translations: {
button: {
buttonText: "搜索文档",
buttonAriaLabel: "搜索文档",
},
modal: {
searchBox: {
resetButtonTitle: "清除查询条件",
resetButtonAriaLabel: "清除查询条件",
cancelButtonText: "取消",
cancelButtonAriaLabel: "取消",
},
startScreen: {
recentSearchesTitle: "搜索历史",
noRecentSearchesText: "没有搜索历史",
saveRecentSearchButtonTitle: "保存至搜索历史",
removeRecentSearchButtonTitle: "从搜索历史中移除",
favoriteSearchesTitle: "收藏",
removeFavoriteSearchButtonTitle: "从收藏中移除",
},
errorScreen: {
titleText: "无法获取结果",
helpText: "你可能需要检查你的网络连接",
},
footer: {
selectText: "选择",
navigateText: "切换",
closeText: "关闭",
searchByText: "搜索提供者",
},
noResultsScreen: {
noResultsText: "无法找到相关结果",
suggestedQueryText: "你可以尝试查询",
reportMissingResultsText: "你认为该查询应该有结果?",
reportMissingResultsLinkText: "点击反馈",
},
},
},
},
"/ru/": {
placeholder: "Поиск",
translations: {
button: {
buttonText: "Поиск",
buttonAriaLabel: "Поиск",
},
modal: {
searchBox: {
resetButtonTitle: "Четкие критерии запроса",
resetButtonAriaLabel: "Четкие критерии запроса",
cancelButtonText: "Назад",
cancelButtonAriaLabel: "Назад",
},
startScreen: {
recentSearchesTitle: "История поиска",
noRecentSearchesText: "Нету истории поиска",
saveRecentSearchButtonTitle: "Сохранить в историю поиска",
removeRecentSearchButtonTitle: "Удалить из истории поиска",
favoriteSearchesTitle: "Закладки",
removeFavoriteSearchButtonTitle: "Удалить из закладок",
},
errorScreen: {
titleText: "Не удалось получить результат",
helpText: "Проверте свое подключение к Интернету, а так-же запрашиваемый ресурс",
},
footer: {
selectText: "Выбрать",
navigateText: "Переключить",
closeText: "Закрыть",
searchByText: "Поиск",
},
noResultsScreen: {
noResultsText: "Не удалось ничего найти по вашему запросу :",
suggestedQueryText: "Вы можете попробовать запрос",
reportMissingResultsText: "Как вы думаете, должен ли этот запрос давать какой-то результат :> ?",
reportMissingResultsLinkText: "Связаться с нами",
},
},
},
},
"/en/": {
placeholder: "Search documentation",
translations: {
button: {
buttonText: "Search documentation",
buttonAriaLabel: "Search documentation",
},
modal: {
searchBox: {
resetButtonTitle: "Clear search query",
resetButtonAriaLabel: "Clear search query",
cancelButtonText: "Cancel",
cancelButtonAriaLabel: "Cancel",
},
startScreen: {
recentSearchesTitle: "Search History",
noRecentSearchesText: "No recent searches",
saveRecentSearchButtonTitle: "Save to search history",
removeRecentSearchButtonTitle: "Remove from search history",
favoriteSearchesTitle: "Favorites",
removeFavoriteSearchButtonTitle: "Remove from favorites",
},
errorScreen: {
titleText: "Unable to retrieve results",
helpText: "You may need to check your network connection",
},
footer: {
selectText: "Select",
navigateText: "Switch",
closeText: "Close",
searchByText: "Search provider",
},
noResultsScreen: {
noResultsText: "No relevant results found",
suggestedQueryText: "You can try searching for",
reportMissingResultsText: "Do you think there should be results for this query?",
reportMissingResultsLinkText: "Click here to provide feedback",
},
},
},
},
"/id/": {
placeholder: "Cari dokumentasi",
translations: {
button: {
buttonText: "Cari dokumentasi",
buttonAriaLabel: "Cari dokumentasi",
},
modal: {
searchBox: {
resetButtonTitle: "Hapus kueri pencarian",
resetButtonAriaLabel: "Hapus kueri pencarian",
cancelButtonText: "Batal",
cancelButtonAriaLabel: "Batal",
},
startScreen: {
recentSearchesTitle: "Riwayat Pencarian",
noRecentSearchesText: "Tidak ada pencarian terbaru",
saveRecentSearchButtonTitle: "Simpan ke riwayat pencarian",
removeRecentSearchButtonTitle: "Hapus dari riwayat pencarian",
favoriteSearchesTitle: "Favorit",
removeFavoriteSearchButtonTitle: "Hapus dari favorit",
},
errorScreen: {
titleText: "Tidak dapat mengambil hasil",
helpText: "Anda mungkin perlu memeriksa koneksi internet Anda",
},
footer: {
selectText: "Pilih",
navigateText: "Alih",
closeText: "Tutup",
searchByText: "Penyedia pencarian",
},
noResultsScreen: {
noResultsText: "Tidak ditemukan hasil yang relevan",
suggestedQueryText: "Anda bisa mencoba mencari",
reportMissingResultsText: "Apakah Anda pikir harus ada hasil untuk kueri ini?",
reportMissingResultsLinkText: "Klik di sini untuk memberikan masukan",
},
},
},
},
},
}),
googleAnalyticsPlugin({ googleAnalyticsPlugin({
id: "G-F3LFJCE3RM", id: "G-F3LFJCE3RM",
}), }),
@@ -235,7 +63,16 @@ export default defineUserConfig({
localeConfig: { localeConfig: {
"/en/": ["en-US", "en-UK", "en"], "/en/": ["en-US", "en-UK", "en"],
"/zh/": ["zh-CN", "zh-TW", "zh"], "/zh/": ["zh-CN", "zh-TW", "zh"],
"/ru/": ["ru-RU", "ru-KZ", "ru-BY", "ru-UA", "ru-MD", "ru-LV", "tt-RU", "ru"], "/ru/": [
"ru-RU",
"ru-KZ",
"ru-BY",
"ru-UA",
"ru-MD",
"ru-LV",
"tt-RU",
"ru",
],
"/id/": ["id-ID", "id"], "/id/": ["id-ID", "id"],
}, },
}), }),
@@ -245,11 +82,12 @@ export default defineUserConfig({
shouldPrefetch: false, shouldPrefetch: false,
bundler: viteBundler({ extendsBundlerOptions: (config, app) => {
viteOptions: { addViteConfig(config, app, {
build: { build: {
chunkSizeWarningLimit: 1500, chunkSizeWarningLimit: 1500,
}, },
}, });
}), addCustomElement(config, app, "ms-store-badge");
},
}); });

View File

@@ -1,5 +1,2 @@
<script type="module" src="https://get.microsoft.com/badge/ms-store-badge.bundled.js"></script> <script type="module" src="https://get.microsoft.com/badge/ms-store-badge.bundled.js"></script>
<ms-store-badge <ms-store-badge productid="9PH4NXJ2JN52" theme="auto"></ms-store-badge>
productid="9PH4NXJ2JN52"
theme="auto">
</ms-store-badge>

View File

@@ -105,16 +105,187 @@ export default hopeTheme({
category: "Announcements", category: "Announcements",
categoryId: "DIC_kwDOKySqhs4CbRrr", categoryId: "DIC_kwDOKySqhs4CbRrr",
mapping: "pathname", mapping: "pathname",
inputPosition: "bottom" inputPosition: "bottom",
}, },
copyCode: {},
components: { components: {
components: ["Badge", "BiliBili", "VPCard", "VPBanner"], components: ["Badge", "BiliBili", "VPCard", "VPBanner"],
rootComponents: { },
notice: [
], docsearch: {
appId: "28CTGDOOQD",
apiKey: "72d7a9a0f9f0466218ea19988886dce8",
indexName: "hutao",
locales: {
"/zh/": {
placeholder: "搜索文档",
translations: {
button: {
buttonText: "搜索文档",
buttonAriaLabel: "搜索文档",
},
modal: {
searchBox: {
resetButtonTitle: "清除查询条件",
resetButtonAriaLabel: "清除查询条件",
cancelButtonText: "取消",
cancelButtonAriaLabel: "取消",
},
startScreen: {
recentSearchesTitle: "搜索历史",
noRecentSearchesText: "没有搜索历史",
saveRecentSearchButtonTitle: "保存至搜索历史",
removeRecentSearchButtonTitle: "从搜索历史中移除",
favoriteSearchesTitle: "收藏",
removeFavoriteSearchButtonTitle: "从收藏中移除",
},
errorScreen: {
titleText: "无法获取结果",
helpText: "你可能需要检查你的网络连接",
},
footer: {
selectText: "选择",
navigateText: "切换",
closeText: "关闭",
searchByText: "搜索提供者",
},
noResultsScreen: {
noResultsText: "无法找到相关结果",
suggestedQueryText: "你可以尝试查询",
reportMissingResultsText: "你认为该查询应该有结果?",
reportMissingResultsLinkText: "点击反馈",
},
},
},
},
"/ru/": {
placeholder: "Поиск",
translations: {
button: {
buttonText: "Поиск",
buttonAriaLabel: "Поиск",
},
modal: {
searchBox: {
resetButtonTitle: "Четкие критерии запроса",
resetButtonAriaLabel: "Четкие критерии запроса",
cancelButtonText: "Назад",
cancelButtonAriaLabel: "Назад",
},
startScreen: {
recentSearchesTitle: "История поиска",
noRecentSearchesText: "Нету истории поиска",
saveRecentSearchButtonTitle: "Сохранить в историю поиска",
removeRecentSearchButtonTitle: "Удалить из истории поиска",
favoriteSearchesTitle: "Закладки",
removeFavoriteSearchButtonTitle: "Удалить из закладок",
},
errorScreen: {
titleText: "Не удалось получить результат",
helpText:
"Проверте свое подключение к Интернету, а так-же запрашиваемый ресурс",
},
footer: {
selectText: "Выбрать",
navigateText: "Переключить",
closeText: "Закрыть",
searchByText: "Поиск",
},
noResultsScreen: {
noResultsText: "Не удалось ничего найти по вашему запросу :",
suggestedQueryText: "Вы можете попробовать запрос",
reportMissingResultsText:
"Как вы думаете, должен ли этот запрос давать какой-то результат :> ?",
reportMissingResultsLinkText: "Связаться с нами",
},
},
},
},
"/en/": {
placeholder: "Search documentation",
translations: {
button: {
buttonText: "Search documentation",
buttonAriaLabel: "Search documentation",
},
modal: {
searchBox: {
resetButtonTitle: "Clear search query",
resetButtonAriaLabel: "Clear search query",
cancelButtonText: "Cancel",
cancelButtonAriaLabel: "Cancel",
},
startScreen: {
recentSearchesTitle: "Search History",
noRecentSearchesText: "No recent searches",
saveRecentSearchButtonTitle: "Save to search history",
removeRecentSearchButtonTitle: "Remove from search history",
favoriteSearchesTitle: "Favorites",
removeFavoriteSearchButtonTitle: "Remove from favorites",
},
errorScreen: {
titleText: "Unable to retrieve results",
helpText: "You may need to check your network connection",
},
footer: {
selectText: "Select",
navigateText: "Switch",
closeText: "Close",
searchByText: "Search provider",
},
noResultsScreen: {
noResultsText: "No relevant results found",
suggestedQueryText: "You can try searching for",
reportMissingResultsText:
"Do you think there should be results for this query?",
reportMissingResultsLinkText: "Click here to provide feedback",
},
},
},
},
"/id/": {
placeholder: "Cari dokumentasi",
translations: {
button: {
buttonText: "Cari dokumentasi",
buttonAriaLabel: "Cari dokumentasi",
},
modal: {
searchBox: {
resetButtonTitle: "Hapus kueri pencarian",
resetButtonAriaLabel: "Hapus kueri pencarian",
cancelButtonText: "Batal",
cancelButtonAriaLabel: "Batal",
},
startScreen: {
recentSearchesTitle: "Riwayat Pencarian",
noRecentSearchesText: "Tidak ada pencarian terbaru",
saveRecentSearchButtonTitle: "Simpan ke riwayat pencarian",
removeRecentSearchButtonTitle: "Hapus dari riwayat pencarian",
favoriteSearchesTitle: "Favorit",
removeFavoriteSearchButtonTitle: "Hapus dari favorit",
},
errorScreen: {
titleText: "Tidak dapat mengambil hasil",
helpText: "Anda mungkin perlu memeriksa koneksi internet Anda",
},
footer: {
selectText: "Pilih",
navigateText: "Alih",
closeText: "Tutup",
searchByText: "Penyedia pencarian",
},
noResultsScreen: {
noResultsText: "Tidak ditemukan hasil yang relevan",
suggestedQueryText: "Anda bisa mencoba mencari",
reportMissingResultsText:
"Apakah Anda pikir harus ada hasil untuk kueri ini?",
reportMissingResultsLinkText:
"Klik di sini untuk memberikan masukan",
},
},
},
},
}, },
}, },

View File

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

View File

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

View File

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

View File

@@ -35,7 +35,9 @@ order: 5
**Независимо от того, каким методом установки вы пользуетесь, исходный источник пакетов и регистрация всегда обрабатываются через Microsoft Store.** **Независимо от того, каким методом установки вы пользуетесь, исходный источник пакетов и регистрация всегда обрабатываются через Microsoft Store.**
::: tabs ::: tabs
@tab Microsoft Store @tab Microsoft Store
<ms-store-badge <ms-store-badge
productid="9PH4NXJ2JN52" productid="9PH4NXJ2JN52"
theme="auto"> theme="auto">

View File

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

View File

@@ -18,19 +18,20 @@
"@vuepress/plugin-google-analytics": "2.0.0-rc.0", "@vuepress/plugin-google-analytics": "2.0.0-rc.0",
"husky": "8.0.3", "husky": "8.0.3",
"nano-staged": "0.8.0", "nano-staged": "0.8.0",
"prettier": "3.0.3", "prettier": "3.1.1",
"vue": "^3.3.12", "vue": "^3.4.1",
"vuepress": "2.0.0-rc.0", "vuepress": "2.0.0-rc.0",
"vuepress-plugin-redirect": "2.0.0-rc.5", "vuepress-plugin-feed2": "2.0.0-rc.10",
"vuepress-theme-hope": "2.0.0-rc.5" "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"
}, },
"engines": { "engines": {
"node": ">=18.12.0" "node": ">=18.16.0"
}, },
"nano-staged": { "nano-staged": {
"*.md": [ "*.md": "prettier --write"
"prettier --write"
]
}, },
"packageManager": "pnpm@8.9.2" "packageManager": "pnpm@8.13.1"
} }

593
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

7
tsconfig.json Normal file
View File

@@ -0,0 +1,7 @@
{
"compilerOptions": {
"module": "NodeNext",
"moduleResolution": "NodeNext"
},
"include": ["docs/.vuepress/**/*"]
}