chore: update

This commit is contained in:
Anthony Fu 2020-12-23 02:48:47 +08:00
parent d20d67fd1b
commit 151bbf9ac9
4 changed files with 693 additions and 42 deletions

View File

@ -12,6 +12,14 @@
</head>
<body>
<div id="app"></div>
<script>
(function() {
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const setting = localStorage.getItem('color-schema') || 'auto'
if (setting === 'dark' || (prefersDark && setting !== 'light'))
document.documentElement.classList.toggle('dark', true)
})()
</script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

View File

@ -9,7 +9,7 @@
"@vueuse/core": "^4.0.0",
"nprogress": "^0.2.0",
"vue": "^3.0.4",
"vue-i18n": "9.0.0-beta.8",
"vue-i18n": "^9.0.0-beta.15",
"vue-router": "^4.0.1"
},
"devDependencies": {
@ -18,7 +18,7 @@
"@purge-icons/generated": "^0.4.1",
"@tailwindcss/typography": "^0.3.1",
"@types/nprogress": "^0.2.0",
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/eslint-plugin": "^4.11.0",
"@vue/compiler-sfc": "^3.0.4",
"@vue/server-renderer": "^3.0.4",
"@vuedx/typescript-plugin-vue": "^0.2.3",
@ -32,11 +32,11 @@
"typescript": "^4.1.3",
"vite": "^1.0.0-rc.13",
"vite-plugin-components": "^0.5.0",
"vite-plugin-md": "^0.1.4",
"vite-plugin-md": "^0.1.5",
"vite-plugin-purge-icons": "^0.4.5",
"vite-plugin-pwa": "^0.1.7",
"vite-plugin-voie": "^0.4.1",
"vite-ssg": "^0.0.7",
"vite-ssg": "^0.0.12",
"voie-pages": "^0.4.0"
},
"pnpm": {

File diff suppressed because it is too large Load Diff

View File

@ -17,5 +17,5 @@ export const createApp = ViteSSG(
router.beforeEach(() => { NProgress.start() })
router.afterEach(() => { NProgress.done() })
}
}
},
)