chore: upgrade vitepress

This commit is contained in:
Dsaquel
2026-02-21 12:06:20 +01:00
parent e303b9dfe0
commit 6ce6444604
8 changed files with 970 additions and 1057 deletions

View File

@@ -2,13 +2,15 @@
import '@docsearch/css'
import { getCurrentInstance, onMounted, watch } from 'vue'
import { useRoute, useRouter, withBase } from 'vitepress'
//@ts-expect-error
import docsearch from '@docsearch/js'
import { isClient } from '@vueuse/core'
import { useLang } from '../../composables/lang'
import searchLocale from '../../../i18n/component/search.json'
import type { DocSearchHit } from '@docsearch/react/dist/esm/types'
interface DocSearchHit {
url: string
[key: string]: unknown
}
const props = defineProps<{
options: any

View File

@@ -56,7 +56,7 @@ div {
}
}
@include respond-to('xs') {
@include respond-to('sm') {
width: 196px;
}
}

View File

@@ -24,7 +24,7 @@ $breakpoints: (
) !default;
@mixin respond-to($breakpoint) {
@if #{map.has-key($breakpoints, $breakpoint)} {
@if map.has-key($breakpoints, $breakpoint) {
@media screen and (min-width: #{map.get($breakpoints, $breakpoint)}) {
@content;
}

View File

@@ -10,7 +10,7 @@
"crowdin-credentials": "tsx .vitepress/build/crowdin-credentials.ts"
},
"dependencies": {
"@docsearch/js": "^3.1.0",
"@docsearch/js": "^4.5.3",
"@element-plus/icons-vue": "^2.3.2",
"@element-plus/metadata": "workspace:*",
"@vue/shared": "catalog:",
@@ -32,12 +32,13 @@
"consola": "^2.15.3",
"tinyglobby": "^0.2.15",
"markdown-it-container": "^4.0.0",
"oxc-minify": "^0.116.0",
"unocss": "^66.5.6",
"unplugin-icons": "^0.14.15",
"unplugin-vue-components": "^0.27.4",
"vite-plugin-inspect": "^0.8.7",
"vite-plugin-inspect": "^11.3.3",
"vite-plugin-mkcert": "^1.17.6",
"vitepress": "^1.2.3",
"vitepress": "2.0.0-alpha.16",
"vitepress-plugin-group-icons": "^1.7.1",
"vue": "catalog:"
}

View File

@@ -15,8 +15,7 @@
"@vitejs/plugin-vue": "catalog:",
"@vitejs/plugin-vue-jsx": "catalog:",
"unplugin-vue-components": "0.27.4",
"vite": "^5.4.10",
"vite-plugin-inspect": "^0.8.7",
"vite-plugin-inspect": "^11.3.3",
"vite-plugin-mkcert": "^1.17.6"
}
}

View File

@@ -51,6 +51,7 @@ export default defineConfig(async ({ mode }) => {
},
build: {
sourcemap: true,
target: 'chrome64',
},
plugins: [
vue(),
@@ -70,8 +71,5 @@ export default defineConfig(async ({ mode }) => {
optimizeDeps: {
include: ['vue', '@vue/shared', ...dependencies, ...optimizeDeps],
},
esbuild: {
target: 'chrome64',
},
}
})

1998
pnpm-lock.yaml generated
View File

File diff suppressed because it is too large Load Diff

View File

@@ -9,8 +9,8 @@ catalog:
'@element-plus/icons-vue': ^2.3.2
'@floating-ui/dom': ^1.0.1
'@popperjs/core': npm:@sxzz/popperjs-es@^2.11.7
'@vitejs/plugin-vue': ^5.1.4
'@vitejs/plugin-vue-jsx': ^4.0.1
'@vitejs/plugin-vue': ^6.0.4
'@vitejs/plugin-vue-jsx': ^5.1.4
'@vue/server-renderer': ^3.5.22
'@vue/shared': ^3.5.22
'@vue/test-utils': ^2.4.6
@@ -26,6 +26,7 @@ onlyBuiltDependencies:
- esbuild
- fsevents
- puppeteer
- rolldown
- vue-demi
overrides: