chore: update deps
This commit is contained in:
parent
e01131ea1b
commit
559a7751a1
28
package.json
28
package.json
@ -5,39 +5,39 @@
|
|||||||
"build": "cross-env NODE_ENV=production vite-ssg build --script async"
|
"build": "cross-env NODE_ENV=production vite-ssg build --script async"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vueuse/core": "^4.0.5",
|
"@vueuse/core": "^4.0.8",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"vue": "^3.0.5",
|
"vue": "^3.0.5",
|
||||||
"vue-i18n": "9.0.0-rc.1",
|
"vue-i18n": "^9.0.0-rc.3",
|
||||||
"vue-router": "^4.0.2"
|
"vue-router": "^4.0.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config-vue": "^0.4.3",
|
"@antfu/eslint-config-vue": "^0.4.3",
|
||||||
"@iconify/json": "^1.1.284",
|
"@iconify/json": "^1.1.288",
|
||||||
"@intlify/vite-plugin-vue-i18n": "^1.0.0-beta.12",
|
"@intlify/vite-plugin-vue-i18n": "^1.0.0-beta.12",
|
||||||
"@tailwindcss/typography": "^0.3.1",
|
"@tailwindcss/typography": "^0.4.0",
|
||||||
"@types/nprogress": "^0.2.0",
|
"@types/nprogress": "^0.2.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.12.0",
|
"@typescript-eslint/eslint-plugin": "^4.14.0",
|
||||||
"@vitejs/plugin-vue": "^1.0.5",
|
"@vitejs/plugin-vue": "^1.1.0",
|
||||||
"@vue/compiler-sfc": "^3.0.5",
|
"@vue/compiler-sfc": "^3.0.5",
|
||||||
"@vue/server-renderer": "^3.0.5",
|
"@vue/server-renderer": "^3.0.5",
|
||||||
"@vuedx/typescript-plugin-vue": "^0.4.1",
|
"@vuedx/typescript-plugin-vue": "^0.6.0",
|
||||||
"autoprefixer": "^10.2.1",
|
"autoprefixer": "^10.2.3",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^7.17.0",
|
"eslint": "^7.18.0",
|
||||||
"markdown-it-prism": "^2.1.4",
|
"markdown-it-prism": "^2.1.4",
|
||||||
"pnpm": "^5.14.3",
|
"pnpm": "^5.15.1",
|
||||||
"postcss": "^8.2.4",
|
"postcss": "^8.2.4",
|
||||||
"postcss-nested": "^5.0.3",
|
"postcss-nested": "^5.0.3",
|
||||||
"tailwindcss": "^2.0.2",
|
"tailwindcss": "^2.0.2",
|
||||||
"typescript": "^4.1.3",
|
"typescript": "^4.1.3",
|
||||||
"vite": "^2.0.0-beta.19",
|
"vite": "2.0.0-beta.31",
|
||||||
"vite-plugin-components": "^0.6.6",
|
"vite-plugin-components": "^0.6.6",
|
||||||
"vite-plugin-icons": "^0.2.1",
|
"vite-plugin-icons": "^0.2.1",
|
||||||
"vite-plugin-md": "^0.2.1",
|
"vite-plugin-md": "^0.2.1",
|
||||||
"vite-plugin-pwa": "^0.3.4",
|
"vite-plugin-pwa": "^0.3.9",
|
||||||
"vite-plugin-voie": "^0.7.3",
|
"vite-plugin-voie": "^0.7.3",
|
||||||
"vite-ssg": "^0.3.1",
|
"vite-ssg": "^0.4.0",
|
||||||
"voie-pages": "^0.4.0"
|
"voie-pages": "^0.4.0"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
|
599
pnpm-lock.yaml
599
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -7,6 +7,7 @@ import { ViteSSG } from 'vite-ssg'
|
|||||||
import installPlugins from './plugins'
|
import installPlugins from './plugins'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
|
|
||||||
|
// https://github.com/antfu/vite-ssg
|
||||||
export const createApp = ViteSSG(
|
export const createApp = ViteSSG(
|
||||||
App,
|
App,
|
||||||
{ routes },
|
{ routes },
|
||||||
|
@ -9,9 +9,9 @@ import es from '../../locales/es.json'
|
|||||||
import vi from '../../locales/vi.json'
|
import vi from '../../locales/vi.json'
|
||||||
import ja from '../../locales/ja.json'
|
import ja from '../../locales/ja.json'
|
||||||
|
|
||||||
|
|
||||||
export default (app: App) => {
|
export default (app: App) => {
|
||||||
const i18n = createI18n({
|
const i18n = createI18n({
|
||||||
|
legacy: false,
|
||||||
locale: 'en',
|
locale: 'en',
|
||||||
messages: {
|
messages: {
|
||||||
en,
|
en,
|
||||||
@ -20,7 +20,7 @@ export default (app: App) => {
|
|||||||
es,
|
es,
|
||||||
vi,
|
vi,
|
||||||
ja
|
ja
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
app.use(i18n)
|
app.use(i18n)
|
||||||
|
@ -82,8 +82,8 @@ const config: UserConfig = {
|
|||||||
|
|
||||||
// https://github.com/intlify/vite-plugin-vue-i18n
|
// https://github.com/intlify/vite-plugin-vue-i18n
|
||||||
VueI18n({
|
VueI18n({
|
||||||
include: [path.resolve(__dirname, 'locales/**')]
|
include: [path.resolve(__dirname, 'locales/**')],
|
||||||
})
|
}),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user