Compare commits

...

1 Commits

Author SHA1 Message Date
Anthony Fu
d72b450149 chore: update deps 2023-04-06 10:31:51 +02:00
7 changed files with 2060 additions and 1955 deletions

View File

@ -11,5 +11,6 @@
"files.associations": {
"*.css": "postcss"
},
"editor.formatOnSave": false
"editor.formatOnSave": false,
"typescript.tsdk": "node_modules/typescript/lib"
}

View File

@ -1,7 +1,7 @@
{
"type": "module",
"private": true,
"packageManager": "pnpm@7.30.3",
"packageManager": "pnpm@8.1.1",
"scripts": {
"build": "vite-ssg build",
"dev": "vite --port 3333 --open",
@ -28,47 +28,47 @@
"vue-router": "^4.1.6"
},
"devDependencies": {
"@antfu/eslint-config": "^0.37.0",
"@antfu/eslint-config": "^0.38.4",
"@iconify-json/carbon": "^1.1.16",
"@intlify/unplugin-vue-i18n": "^0.10.0",
"@types/markdown-it-link-attributes": "^3.0.1",
"@types/nprogress": "^0.2.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",
"critters": "^0.0.16",
"cross-env": "^7.0.3",
"cypress": "^12.8.1",
"cypress": "^12.9.0",
"cypress-vite": "^1.3.1",
"eslint": "^8.36.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint": "^8.37.0",
"eslint-plugin-cypress": "^2.13.2",
"https-localhost": "^4.7.1",
"lint-staged": "^13.2.0",
"markdown-it-link-attributes": "^4.0.1",
"markdown-it-shiki": "^0.8.0",
"pnpm": "^7.30.3",
"pnpm": "^8.1.1",
"shiki": "^0.14.1",
"simple-git-hooks": "^2.8.1",
"taze": "^0.9.1",
"typescript": "^4.9.5",
"typescript": "^4.9.3",
"unocss": "^0.50.6",
"unplugin-auto-import": "^0.15.2",
"unplugin-vue-components": "^0.24.1",
"unplugin-vue-macros": "^1.11.2",
"unplugin-vue-macros": "^2.0.0",
"vite": "^4.2.1",
"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-pwa": "^0.14.6",
"vite-plugin-pwa": "^0.14.7",
"vite-plugin-vue-component-preview": "^1.1.5",
"vite-plugin-vue-inspector": "^3.4.0",
"vite-plugin-vue-layouts": "^0.8.0",
"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-sitemap": "^0.4.3",
"vitest": "^0.29.7",
"vue-tsc": "^1.2.0"
"vitest": "^0.29.8",
"vue-tsc": "^1.3.8"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@ import { availableLocales, loadLanguageAsync } from '~/modules/i18n'
const { t, locale } = useI18n()
const toggleLocales = async () => {
async function toggleLocales() {
// change to some real logic
const locales = availableLocales
const newLocale = locales[(locales.indexOf(locale.value) + 1) % locales.length]
@ -14,8 +14,8 @@ const toggleLocales = async () => {
<template>
<nav text-xl mt-6>
<RouterLink class="icon-btn mx-2" to="/" :title="t('button.home')">
<div i-carbon-campsite />
<RouterLink class="icon-btn mx-2" to="/">
<div i-carbon-campsite :title="t('button.home')" />
</RouterLink>
<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 />
</a>
<RouterLink class="icon-btn mx-2" to="/about" :title="t('button.about')">
<div i-carbon-dicom-overlay />
<RouterLink class="icon-btn mx-2" to="/about">
<div i-carbon-dicom-overlay :title="t('button.about')" />
</RouterLink>
<a class="icon-btn mx-2" rel="noreferrer" href="https://github.com/antfu/vitesse" target="_blank" title="GitHub">

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
const { modelValue } = defineModel<{
const { modelValue } = defineModels<{
modelValue: string
}>()
</script>

View File

@ -3,12 +3,12 @@ defineOptions({
name: 'IndexPage',
})
const user = useUserStore()
const name = $ref(user.savedName)
const name = ref(user.savedName)
const router = useRouter()
const go = () => {
function go() {
if (name)
router.push(`/hi/${encodeURIComponent(name)}`)
router.push(`/hi/${encodeURIComponent(name.value)}`)
}
const { t } = useI18n()

View File

@ -30,7 +30,7 @@
},
"vueCompilerOptions": {
"plugins": [
"@vue-macros/volar/define-model",
"@vue-macros/volar/define-models",
"@vue-macros/volar/define-slots"
]
},