chore: update

This commit is contained in:
Anthony Fu 2021-01-21 05:57:32 +08:00
parent 0902d9a625
commit ef401a357b
6 changed files with 36 additions and 36 deletions

View File

@ -32,10 +32,10 @@
"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.34", "vite": "2.0.0-beta.35",
"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.3.0", "vite-plugin-md": "^0.4.0",
"vite-plugin-pages": "^0.1.4", "vite-plugin-pages": "^0.1.4",
"vite-plugin-pwa": "^0.3.9", "vite-plugin-pwa": "^0.3.9",
"vite-ssg": "^0.4.1", "vite-ssg": "^0.4.1",

View File

@ -25,13 +25,13 @@ devDependencies:
postcss-nested: 5.0.3_postcss@8.2.4 postcss-nested: 5.0.3_postcss@8.2.4
tailwindcss: 2.0.2_d337930ac9ab3cde8278bf6b015e1ea7 tailwindcss: 2.0.2_d337930ac9ab3cde8278bf6b015e1ea7
typescript: 4.1.3 typescript: 4.1.3
vite: 2.0.0-beta.34 vite: 2.0.0-beta.35
vite-plugin-components: 0.6.6 vite-plugin-components: 0.6.6
vite-plugin-icons: 0.2.1_e5c88c3c0e28b872685c1cd2aa188e9a vite-plugin-icons: 0.2.1_e5c88c3c0e28b872685c1cd2aa188e9a
vite-plugin-md: 0.3.0_e6a368fc0bebe9c82eba059b82b82f92 vite-plugin-md: 0.4.0_vite@2.0.0-beta.35
vite-plugin-pages: 0.1.4_vue@3.0.5 vite-plugin-pages: 0.1.4_vue@3.0.5
vite-plugin-pwa: 0.3.9 vite-plugin-pwa: 0.3.9
vite-ssg: 0.4.1_f86d2656254d747d8a8d89ded79424e0 vite-ssg: 0.4.1_03c565c87c45009742312717860d5a53
voie-pages: 0.4.0_vue@3.0.5 voie-pages: 0.4.0_vue@3.0.5
lockfileVersion: 5.2 lockfileVersion: 5.2
packages: packages:
@ -5309,18 +5309,16 @@ packages:
'@vue/compiler-sfc': ^3.0.2 '@vue/compiler-sfc': ^3.0.2
resolution: resolution:
integrity: sha512-ZIJ8G2AHwEDt4oDST46E6Uy7W2EtVyoe1hzmJMkutbq3esUkcYVoYydT6Y12lhq1ppnVnShkbc0XzfKqolfCSg== integrity: sha512-ZIJ8G2AHwEDt4oDST46E6Uy7W2EtVyoe1hzmJMkutbq3esUkcYVoYydT6Y12lhq1ppnVnShkbc0XzfKqolfCSg==
/vite-plugin-md/0.3.0_e6a368fc0bebe9c82eba059b82b82f92: /vite-plugin-md/0.4.0_vite@2.0.0-beta.35:
dependencies: dependencies:
'@vue/compiler-sfc': 3.0.5_vue@3.0.5
gray-matter: 4.0.2 gray-matter: 4.0.2
markdown-it: 12.0.4 markdown-it: 12.0.4
vite: 2.0.0-beta.34 vite: 2.0.0-beta.35
dev: true dev: true
peerDependencies: peerDependencies:
'@vue/compiler-sfc': ^3.0.5
vite: ^2.0.0-beta.1 vite: ^2.0.0-beta.1
resolution: resolution:
integrity: sha512-GU8wrwJ/gSZcUCFHt7XNspfEPPBrcQcFnXCgPBY5ME+WOk0mtGPvlBg+JCD4iJgCrdkY0zOS8DZKJ9NB6v3rwQ== integrity: sha512-V/0P2DYAKKxyTP03IW781gt7BIuwYLMwatCl4/+vw0KNpiPWOZHAZ8D6PPCVm3Z3gdsr44ZGp/j9Zmg53+bkFA==
/vite-plugin-pages/0.1.4_vue@3.0.5: /vite-plugin-pages/0.1.4_vue@3.0.5:
dependencies: dependencies:
debug: 4.3.2 debug: 4.3.2
@ -5342,7 +5340,7 @@ packages:
dev: true dev: true
resolution: resolution:
integrity: sha512-7UwG/jmBBzmmwFllc6fUmEpXyMYlBZsLBpjBfteHPp4lVptNrXVRT6Ou/ggVjPK2vlJqlh3GzvSo1sCNUxecgw== integrity: sha512-7UwG/jmBBzmmwFllc6fUmEpXyMYlBZsLBpjBfteHPp4lVptNrXVRT6Ou/ggVjPK2vlJqlh3GzvSo1sCNUxecgw==
/vite-ssg/0.4.1_f86d2656254d747d8a8d89ded79424e0: /vite-ssg/0.4.1_03c565c87c45009742312717860d5a53:
dependencies: dependencies:
'@vue/compiler-sfc': 3.0.5_vue@3.0.5 '@vue/compiler-sfc': 3.0.5_vue@3.0.5
'@vue/server-renderer': 3.0.5_vue@3.0.5 '@vue/server-renderer': 3.0.5_vue@3.0.5
@ -5350,7 +5348,7 @@ packages:
chalk: 4.1.0 chalk: 4.1.0
fs-extra: 9.1.0 fs-extra: 9.1.0
jsdom: 16.4.0 jsdom: 16.4.0
vite: 2.0.0-beta.34 vite: 2.0.0-beta.35
vue: 3.0.5 vue: 3.0.5
vue-router: 4.0.3_vue@3.0.5 vue-router: 4.0.3_vue@3.0.5
yargs: 16.2.0 yargs: 16.2.0
@ -5366,7 +5364,7 @@ packages:
vue-router: ^4.0.1 vue-router: ^4.0.1
resolution: resolution:
integrity: sha512-/RyTOXeEGgLVuy/RChz0acE5aNRyieYqy34VqlF+TVTsEG0t/KZD9u6Ma7VmytcQ+8n3PZh91vTs/XR9pzWOLA== integrity: sha512-/RyTOXeEGgLVuy/RChz0acE5aNRyieYqy34VqlF+TVTsEG0t/KZD9u6Ma7VmytcQ+8n3PZh91vTs/XR9pzWOLA==
/vite/2.0.0-beta.34: /vite/2.0.0-beta.35:
dependencies: dependencies:
esbuild: 0.8.31 esbuild: 0.8.31
postcss: 8.2.4 postcss: 8.2.4
@ -5379,7 +5377,7 @@ packages:
optionalDependencies: optionalDependencies:
fsevents: 2.1.3 fsevents: 2.1.3
resolution: resolution:
integrity: sha512-D4/2WBf219mZBgDRiKfMwK/07UGiP+d56W2a2SEqf21iMOfM3yNBf3cfTY7qrHoi28EUo8l1LVwkSFPNbFlV2w== integrity: sha512-22+MuR3fvy5GmGdjIXHXcUbfVS8P2DK8C2wdcDcdZnugCTd+4XySF2xeRt+VFPyhqq+/KSbdOuA2r47F+VMwig==
/voie-pages/0.4.0_vue@3.0.5: /voie-pages/0.4.0_vue@3.0.5:
dependencies: dependencies:
vue-router: 4.0.2_vue@3.0.5 vue-router: 4.0.2_vue@3.0.5
@ -5832,10 +5830,10 @@ specifiers:
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.34 vite: 2.0.0-beta.35
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.3.0 vite-plugin-md: ^0.4.0
vite-plugin-pages: ^0.1.4 vite-plugin-pages: ^0.1.4
vite-plugin-pwa: ^0.3.9 vite-plugin-pwa: ^0.3.9
vite-ssg: ^0.4.1 vite-ssg: ^0.4.1

View File

@ -2,7 +2,7 @@
* https://raw.githubusercontent.com/PrismJS/prism-themes/master/themes/prism-vsc-dark-plus.css * https://raw.githubusercontent.com/PrismJS/prism-themes/master/themes/prism-vsc-dark-plus.css
*/ */
html.dark .prose { html.dark {
pre[class*='language-'], pre[class*='language-'],
code[class*='language-'] { code[class*='language-'] {
color: #d4d4d4; color: #d4d4d4;
@ -34,7 +34,7 @@ html.dark .prose {
.token.comment, .token.comment,
.token.prolog { .token.prolog {
color: #6a9955; color: #707c70;
font-style: italic; font-style: italic;
} }
@ -98,7 +98,7 @@ html.dark .prose {
} }
.token.keyword { .token.keyword {
color: #569cd6; color: #38a776;
} }
.token.keyword.module, .token.keyword.module,
@ -232,8 +232,8 @@ html.dark .prose {
color: #808080; color: #808080;
} }
/********************************************************* /*********************************************************
* Line highlighting * Line highlighting
*/ */
pre[data-line] { pre[data-line] {
position: relative; position: relative;
} }
@ -256,8 +256,4 @@ html.dark .prose {
line-height: inherit; line-height: inherit;
white-space: pre; white-space: pre;
} }
code, a code {
color: #eee;
}
} }

View File

@ -5,7 +5,7 @@
* https://raw.githubusercontent.com/PrismJS/prism-themes/master/themes/prism-vs.css * https://raw.githubusercontent.com/PrismJS/prism-themes/master/themes/prism-vs.css
*/ */
html:not(.dark) .prose { html:not(.dark) {
code[class*='language-'], code[class*='language-'],
pre[class*='language-'] { pre[class*='language-'] {
color: #393a34; color: #393a34;
@ -27,7 +27,7 @@ html:not(.dark) .prose {
/* Code blocks */ /* Code blocks */
pre[class*='language-'] { pre[class*='language-'] {
background-color: #f8f8f8; background-color: #f8f8f8 !important;
} }
/* Inline code */ /* Inline code */
@ -39,7 +39,7 @@ html:not(.dark) .prose {
.token.prolog, .token.prolog,
.token.doctype, .token.doctype,
.token.cdata { .token.cdata {
color: #008000; color: #758575;
font-style: italic; font-style: italic;
} }
@ -73,11 +73,11 @@ html:not(.dark) .prose {
.language-json .token.boolean, .language-json .token.boolean,
.language-json .token.number, .language-json .token.number,
code[class*='language-css'] { code[class*='language-css'] {
color: #0000ff; color: #248459;
} }
.token.function { .token.function {
color: #393a34; color: #849145;
} }
.token.deleted, .token.deleted,
@ -87,7 +87,7 @@ html:not(.dark) .prose {
.token.selector, .token.selector,
.language-autohotkey .token.keyword { .language-autohotkey .token.keyword {
color: #00009f; color: #248459;
} }
.token.important, .token.important,
@ -105,6 +105,7 @@ html:not(.dark) .prose {
} }
.token.tag, .token.tag,
.token.builtin,
.token.selector { .token.selector {
color: #800000; color: #800000;
} }
@ -113,7 +114,7 @@ html:not(.dark) .prose {
.token.property, .token.property,
.token.regex, .token.regex,
.token.entity { .token.entity {
color: #ff0000; color: #ce9178;
} }
.token.directive.tag .tag { .token.directive.tag .tag {

8
src/vue-shim.d.ts vendored
View File

@ -1,5 +1,11 @@
import { defineComponent } from 'vue'
declare module '*.vue' { declare module '*.vue' {
import { defineComponent } from 'vue' const Component: ReturnType<typeof defineComponent>
export default Component
}
declare module '*.md' {
const Component: ReturnType<typeof defineComponent> const Component: ReturnType<typeof defineComponent>
export default Component export default Component
} }

View File

@ -5,9 +5,9 @@ import Pages from 'vite-plugin-pages'
import ViteIcons, { ViteIconsResolver } from 'vite-plugin-icons' import ViteIcons, { ViteIconsResolver } from 'vite-plugin-icons'
import ViteComponents from 'vite-plugin-components' import ViteComponents from 'vite-plugin-components'
import Markdown from 'vite-plugin-md' import Markdown from 'vite-plugin-md'
import Prism from 'markdown-it-prism'
import { VitePWA } from 'vite-plugin-pwa' import { VitePWA } from 'vite-plugin-pwa'
import VueI18n from '@intlify/vite-plugin-vue-i18n' import VueI18n from '@intlify/vite-plugin-vue-i18n'
import Prism from 'markdown-it-prism'
const config: UserConfig = { const config: UserConfig = {
alias: { alias: {
@ -15,7 +15,7 @@ const config: UserConfig = {
}, },
plugins: [ plugins: [
Vue({ Vue({
ssr: !!process.env.SSG, include: [/\.vue$/, /\.md$/],
}), }),
// https://github.com/hannoeru/vite-plugin-pages // https://github.com/hannoeru/vite-plugin-pages
@ -30,7 +30,6 @@ const config: UserConfig = {
// https://github.com/antfu/vite-plugin-md // https://github.com/antfu/vite-plugin-md
Markdown({ Markdown({
// for https://github.com/tailwindlabs/tailwindcss-typography
wrapperClasses: 'prose prose-sm m-auto', wrapperClasses: 'prose prose-sm m-auto',
headEnabled: true, headEnabled: true,
markdownItSetup(md) { markdownItSetup(md) {