chore: update deps
This commit is contained in:
parent
786168abdb
commit
d72b450149
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -11,5 +11,6 @@
|
|||||||
"files.associations": {
|
"files.associations": {
|
||||||
"*.css": "postcss"
|
"*.css": "postcss"
|
||||||
},
|
},
|
||||||
"editor.formatOnSave": false
|
"editor.formatOnSave": false,
|
||||||
|
"typescript.tsdk": "node_modules/typescript/lib"
|
||||||
}
|
}
|
||||||
|
28
package.json
28
package.json
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@7.30.3",
|
"packageManager": "pnpm@8.1.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite-ssg build",
|
"build": "vite-ssg build",
|
||||||
"dev": "vite --port 3333 --open",
|
"dev": "vite --port 3333 --open",
|
||||||
@ -28,47 +28,47 @@
|
|||||||
"vue-router": "^4.1.6"
|
"vue-router": "^4.1.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^0.37.0",
|
"@antfu/eslint-config": "^0.38.4",
|
||||||
"@iconify-json/carbon": "^1.1.16",
|
"@iconify-json/carbon": "^1.1.16",
|
||||||
"@intlify/unplugin-vue-i18n": "^0.10.0",
|
"@intlify/unplugin-vue-i18n": "^0.10.0",
|
||||||
"@types/markdown-it-link-attributes": "^3.0.1",
|
"@types/markdown-it-link-attributes": "^3.0.1",
|
||||||
"@types/nprogress": "^0.2.0",
|
"@types/nprogress": "^0.2.0",
|
||||||
"@vitejs/plugin-vue": "^4.1.0",
|
"@vitejs/plugin-vue": "^4.1.0",
|
||||||
"@vue-macros/volar": "^0.9.4",
|
"@vue-macros/volar": "^0.9.5",
|
||||||
"@vue/test-utils": "^2.3.2",
|
"@vue/test-utils": "^2.3.2",
|
||||||
"critters": "^0.0.16",
|
"critters": "^0.0.16",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"cypress": "^12.8.1",
|
"cypress": "^12.9.0",
|
||||||
"cypress-vite": "^1.3.1",
|
"cypress-vite": "^1.3.1",
|
||||||
"eslint": "^8.36.0",
|
"eslint": "^8.37.0",
|
||||||
"eslint-plugin-cypress": "^2.12.1",
|
"eslint-plugin-cypress": "^2.13.2",
|
||||||
"https-localhost": "^4.7.1",
|
"https-localhost": "^4.7.1",
|
||||||
"lint-staged": "^13.2.0",
|
"lint-staged": "^13.2.0",
|
||||||
"markdown-it-link-attributes": "^4.0.1",
|
"markdown-it-link-attributes": "^4.0.1",
|
||||||
"markdown-it-shiki": "^0.8.0",
|
"markdown-it-shiki": "^0.8.0",
|
||||||
"pnpm": "^7.30.3",
|
"pnpm": "^8.1.1",
|
||||||
"shiki": "^0.14.1",
|
"shiki": "^0.14.1",
|
||||||
"simple-git-hooks": "^2.8.1",
|
"simple-git-hooks": "^2.8.1",
|
||||||
"taze": "^0.9.1",
|
"taze": "^0.9.1",
|
||||||
"typescript": "^4.9.5",
|
"typescript": "^4.9.3",
|
||||||
"unocss": "^0.50.6",
|
"unocss": "^0.50.6",
|
||||||
"unplugin-auto-import": "^0.15.2",
|
"unplugin-auto-import": "^0.15.2",
|
||||||
"unplugin-vue-components": "^0.24.1",
|
"unplugin-vue-components": "^0.24.1",
|
||||||
"unplugin-vue-macros": "^1.11.2",
|
"unplugin-vue-macros": "^2.0.0",
|
||||||
"vite": "^4.2.1",
|
"vite": "^4.2.1",
|
||||||
"vite-bundle-visualizer": "^0.6.0",
|
"vite-bundle-visualizer": "^0.6.0",
|
||||||
"vite-plugin-inspect": "^0.7.18",
|
"vite-plugin-inspect": "^0.7.19",
|
||||||
"vite-plugin-pages": "^0.29.0",
|
"vite-plugin-pages": "^0.29.0",
|
||||||
"vite-plugin-pwa": "^0.14.6",
|
"vite-plugin-pwa": "^0.14.7",
|
||||||
"vite-plugin-vue-component-preview": "^1.1.5",
|
"vite-plugin-vue-component-preview": "^1.1.5",
|
||||||
"vite-plugin-vue-inspector": "^3.4.0",
|
"vite-plugin-vue-inspector": "^3.4.0",
|
||||||
"vite-plugin-vue-layouts": "^0.8.0",
|
"vite-plugin-vue-layouts": "^0.8.0",
|
||||||
"vite-plugin-vue-markdown": "^0.22.4",
|
"vite-plugin-vue-markdown": "^0.22.4",
|
||||||
"vite-plugin-webfont-dl": "^3.6.4",
|
"vite-plugin-webfont-dl": "^3.7.0",
|
||||||
"vite-ssg": "^0.22.1",
|
"vite-ssg": "^0.22.1",
|
||||||
"vite-ssg-sitemap": "^0.4.3",
|
"vite-ssg-sitemap": "^0.4.3",
|
||||||
"vitest": "^0.29.7",
|
"vitest": "^0.29.8",
|
||||||
"vue-tsc": "^1.2.0"
|
"vue-tsc": "^1.3.8"
|
||||||
},
|
},
|
||||||
"simple-git-hooks": {
|
"simple-git-hooks": {
|
||||||
"pre-commit": "pnpm lint-staged"
|
"pre-commit": "pnpm lint-staged"
|
||||||
|
3964
pnpm-lock.yaml
3964
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,7 @@ import { availableLocales, loadLanguageAsync } from '~/modules/i18n'
|
|||||||
|
|
||||||
const { t, locale } = useI18n()
|
const { t, locale } = useI18n()
|
||||||
|
|
||||||
const toggleLocales = async () => {
|
async function toggleLocales() {
|
||||||
// change to some real logic
|
// change to some real logic
|
||||||
const locales = availableLocales
|
const locales = availableLocales
|
||||||
const newLocale = locales[(locales.indexOf(locale.value) + 1) % locales.length]
|
const newLocale = locales[(locales.indexOf(locale.value) + 1) % locales.length]
|
||||||
@ -14,8 +14,8 @@ const toggleLocales = async () => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<nav text-xl mt-6>
|
<nav text-xl mt-6>
|
||||||
<RouterLink class="icon-btn mx-2" to="/" :title="t('button.home')">
|
<RouterLink class="icon-btn mx-2" to="/">
|
||||||
<div i-carbon-campsite />
|
<div i-carbon-campsite :title="t('button.home')" />
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
|
|
||||||
<button class="icon-btn mx-2 !outline-none" :title="t('button.toggle_dark')" @click="toggleDark()">
|
<button class="icon-btn mx-2 !outline-none" :title="t('button.toggle_dark')" @click="toggleDark()">
|
||||||
@ -26,8 +26,8 @@ const toggleLocales = async () => {
|
|||||||
<div i-carbon-language />
|
<div i-carbon-language />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<RouterLink class="icon-btn mx-2" to="/about" :title="t('button.about')">
|
<RouterLink class="icon-btn mx-2" to="/about">
|
||||||
<div i-carbon-dicom-overlay />
|
<div i-carbon-dicom-overlay :title="t('button.about')" />
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
|
|
||||||
<a class="icon-btn mx-2" rel="noreferrer" href="https://github.com/antfu/vitesse" target="_blank" title="GitHub">
|
<a class="icon-btn mx-2" rel="noreferrer" href="https://github.com/antfu/vitesse" target="_blank" title="GitHub">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const { modelValue } = defineModel<{
|
const { modelValue } = defineModels<{
|
||||||
modelValue: string
|
modelValue: string
|
||||||
}>()
|
}>()
|
||||||
</script>
|
</script>
|
||||||
|
@ -3,12 +3,12 @@ defineOptions({
|
|||||||
name: 'IndexPage',
|
name: 'IndexPage',
|
||||||
})
|
})
|
||||||
const user = useUserStore()
|
const user = useUserStore()
|
||||||
const name = $ref(user.savedName)
|
const name = ref(user.savedName)
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const go = () => {
|
function go() {
|
||||||
if (name)
|
if (name)
|
||||||
router.push(`/hi/${encodeURIComponent(name)}`)
|
router.push(`/hi/${encodeURIComponent(name.value)}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
},
|
},
|
||||||
"vueCompilerOptions": {
|
"vueCompilerOptions": {
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@vue-macros/volar/define-model",
|
"@vue-macros/volar/define-models",
|
||||||
"@vue-macros/volar/define-slots"
|
"@vue-macros/volar/define-slots"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user