chore: update

This commit is contained in:
Anthony Fu 2020-08-11 18:41:21 +08:00
parent f281990f38
commit dbd1a9fe43
8 changed files with 25 additions and 9 deletions

View File

@ -8,5 +8,6 @@
"dynamic-route": "Demo of dynamic route",
"hi": "Hi, {name}!",
"whats-your-name": "What's your name?"
}
},
"not-found": "Not found"
}

View File

@ -8,5 +8,6 @@
"dynamic-route": "Démo de dynamic route",
"hi": "Salut, {name}!",
"whats-your-name": "Comment tu t'appelles?"
}
},
"not-found": "Pas trouvé"
}

View File

@ -8,5 +8,6 @@
"dynamic-route": "动态路由演示",
"hi": "你好,{name}",
"whats-your-name": "输入你的名字"
}
},
"not-found": "未找到页面"
}

View File

@ -4,7 +4,7 @@
[build]
publish = "dist"
command = "npx pnpm@5.4 i --store=node_modules/.pnpm-store && npm run build"
command = "npx pnpm i --store=node_modules/.pnpm-store && npm run build"
[[redirects]]
from = "/*"

View File

@ -39,7 +39,8 @@ onMounted(update)
span.iconify {
background: #5551;
border-radius: 100%;
min-width: 10px;
min-width: 1em;
min-height: 1em;
display: block;
}
</style>

12
src/pages/[...all].vue Executable file
View File

@ -0,0 +1,12 @@
<template>
<div>
{{ t('not-found') }}
</div>
</template>
<script setup lang='ts'>
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
export { t }
</script>

View File

@ -35,7 +35,7 @@
</div>
</template>
<script setup='props' lang='ts'>
<script setup lang='ts'>
import { ref } from 'vue'
import { useRouter } from 'vue-router'
import { useI18n } from 'vue-i18n'

View File

@ -9,10 +9,10 @@ module.exports = {
'./src/**/*.js',
'./src/**/*.ts',
],
options: {
whitelist: [
'schema-dark',
],
options: {
extractors: [
{
extractor,