chore: update deps to latest
This commit is contained in:
parent
0871d47cee
commit
ddb6834a7c
@ -9,11 +9,11 @@
|
||||
"docs:serve": "anywhere -s -h localhost -d .vuepress/dist"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"@iconify/json": "^2.2.215",
|
||||
"@vuepress/bundler-vite": "2.0.0-rc.12",
|
||||
"@iconify/json": "^2.2.216",
|
||||
"@vuepress/bundler-vite": "2.0.0-rc.13",
|
||||
"anywhere": "^1.6.0",
|
||||
"chart.js": "^4.4.3",
|
||||
"echarts": "^5.5.0",
|
||||
|
||||
@ -41,8 +41,8 @@
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^19.3.0",
|
||||
"@commitlint/config-conventional": "^19.2.2",
|
||||
"@pengzhanbo/eslint-config-vue": "^1.10.0",
|
||||
"@pengzhanbo/stylelint-config": "^1.10.0",
|
||||
"@pengzhanbo/eslint-config-vue": "^1.11.0",
|
||||
"@pengzhanbo/stylelint-config": "^1.11.0",
|
||||
"@types/lodash.merge": "^4.6.9",
|
||||
"@types/node": "20.12.10",
|
||||
"@types/webpack-env": "^1.18.5",
|
||||
@ -52,7 +52,7 @@
|
||||
"conventional-changelog-cli": "^5.0.0",
|
||||
"cpx2": "^7.0.1",
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"eslint": "^9.3.0",
|
||||
"eslint": "^9.4.0",
|
||||
"husky": "^9.0.11",
|
||||
"lint-staged": "^15.2.5",
|
||||
"rimraf": "^5.0.7",
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pengzhanbo/utils": "^1.1.2",
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/devtools-api": "6.6.1",
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"markdown-it-container": "^4.0.0"
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^3.4.27"
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vuepress-plume/plugin-content-update": "workspace:~",
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"@iconify/vue": "^4.1.2",
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@iconify/json": "^2",
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@iconify/json": {
|
||||
@ -47,18 +47,18 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@iconify/utils": "^2.1.24",
|
||||
"@vuepress/helper": "2.0.0-rc.33",
|
||||
"@vuepress/helper": "2.0.0-rc.34",
|
||||
"@vueuse/core": "^10.10.0",
|
||||
"local-pkg": "^0.5.0",
|
||||
"markdown-it-container": "^4.0.0",
|
||||
"nanoid": "^5.0.7",
|
||||
"shiki": "^1.6.1",
|
||||
"tm-grammars": "^1.12.5",
|
||||
"shiki": "^1.6.2",
|
||||
"tm-grammars": "^1.12.7",
|
||||
"tm-themes": "^1.4.3",
|
||||
"vue": "^3.4.27"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@iconify/json": "^2.2.215",
|
||||
"@iconify/json": "^2.2.216",
|
||||
"@types/markdown-it": "^14.1.1"
|
||||
},
|
||||
"publishConfig": {
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"@iarna/toml": "^2.2.5",
|
||||
@ -56,7 +56,7 @@
|
||||
"portfinder": "^1.0.32"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.12.13"
|
||||
"@types/node": "^20.14.1"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/devtools-api": "6.6.1",
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"@netlify/functions": "^2.7.0",
|
||||
|
||||
@ -37,10 +37,10 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vuepress/helper": "2.0.0-rc.33",
|
||||
"@vuepress/helper": "2.0.0-rc.34",
|
||||
"@vueuse/core": "^10.10.0",
|
||||
"@vueuse/integrations": "^10.10.0",
|
||||
"chokidar": "^3.6.0",
|
||||
|
||||
@ -33,19 +33,19 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"@shikijs/transformers": "^1.6.1",
|
||||
"@shikijs/twoslash": "^1.6.1",
|
||||
"@shikijs/transformers": "^1.6.2",
|
||||
"@shikijs/twoslash": "^1.6.2",
|
||||
"@types/hast": "^3.0.4",
|
||||
"@vuepress/helper": "2.0.0-rc.33",
|
||||
"@vuepress/helper": "2.0.0-rc.34",
|
||||
"floating-vue": "^5.2.2",
|
||||
"mdast-util-from-markdown": "^2.0.1",
|
||||
"mdast-util-gfm": "^3.0.0",
|
||||
"mdast-util-to-hast": "^13.1.0",
|
||||
"nanoid": "^5.0.7",
|
||||
"shiki": "^1.6.1",
|
||||
"shiki": "^1.6.2",
|
||||
"twoslash": "^0.2.6",
|
||||
"twoslash-vue": "^0.2.6"
|
||||
},
|
||||
|
||||
1304
pnpm-lock.yaml
generated
1304
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -63,7 +63,7 @@
|
||||
"ts:watch": "tsc -b tsconfig.build.json --watch"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.12"
|
||||
"vuepress": "2.0.0-rc.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pengzhanbo/utils": "^1.1.2",
|
||||
@ -76,28 +76,29 @@
|
||||
"@vuepress-plume/plugin-notes-data": "workspace:*",
|
||||
"@vuepress-plume/plugin-search": "workspace:*",
|
||||
"@vuepress-plume/plugin-shikiji": "workspace:*",
|
||||
"@vuepress/helper": "2.0.0-rc.33",
|
||||
"@vuepress/plugin-active-header-links": "2.0.0-rc.33",
|
||||
"@vuepress/plugin-comment": "2.0.0-rc.33",
|
||||
"@vuepress/plugin-docsearch": "2.0.0-rc.33",
|
||||
"@vuepress/plugin-git": "2.0.0-rc.33",
|
||||
"@vuepress/plugin-markdown-container": "2.0.0-rc.33",
|
||||
"@vuepress/plugin-nprogress": "2.0.0-rc.33",
|
||||
"@vuepress/plugin-photo-swipe": "2.0.0-rc.33",
|
||||
"@vuepress/plugin-reading-time": "2.0.0-rc.33",
|
||||
"@vuepress/plugin-seo": "2.0.0-rc.33",
|
||||
"@vuepress/plugin-sitemap": "2.0.0-rc.33",
|
||||
"@vuepress/plugin-theme-data": "2.0.0-rc.33",
|
||||
"@vuepress/plugin-watermark": "2.0.0-rc.33",
|
||||
"@vueuse/core": "^10.9.0",
|
||||
"@vuepress/helper": "2.0.0-rc.34",
|
||||
"@vuepress/plugin-active-header-links": "2.0.0-rc.34",
|
||||
"@vuepress/plugin-comment": "2.0.0-rc.34",
|
||||
"@vuepress/plugin-docsearch": "2.0.0-rc.34",
|
||||
"@vuepress/plugin-git": "2.0.0-rc.34",
|
||||
"@vuepress/plugin-markdown-container": "2.0.0-rc.34",
|
||||
"@vuepress/plugin-nprogress": "2.0.0-rc.34",
|
||||
"@vuepress/plugin-photo-swipe": "2.0.0-rc.34",
|
||||
"@vuepress/plugin-reading-time": "2.0.0-rc.34",
|
||||
"@vuepress/plugin-seo": "2.0.0-rc.34",
|
||||
"@vuepress/plugin-sitemap": "2.0.0-rc.34",
|
||||
"@vuepress/plugin-theme-data": "2.0.0-rc.34",
|
||||
"@vuepress/plugin-watermark": "2.0.0-rc.34",
|
||||
"@vueuse/core": "^10.10.0",
|
||||
"bcrypt-ts": "^5.0.2",
|
||||
"chokidar": "^3.6.0",
|
||||
"date-fns": "^3.6.0",
|
||||
"katex": "^0.16.10",
|
||||
"lodash.merge": "^4.6.2",
|
||||
"nanoid": "^5.0.7",
|
||||
"vue": "^3.4.27",
|
||||
"vue-router": "^4.3.2",
|
||||
"vuepress-plugin-md-enhance": "2.0.0-rc.47",
|
||||
"vuepress-plugin-md-enhance": "2.0.0-rc.48",
|
||||
"vuepress-plugin-md-power": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue'
|
||||
import { useReadingTimeLocale } from '@vuepress/plugin-reading-time/client'
|
||||
import { useData, useExtraBlogData } from '../composables/index.js'
|
||||
import { useData, useTagColors } from '../composables/index.js'
|
||||
|
||||
const { page, frontmatter: matter } = useData<'post'>()
|
||||
|
||||
const extraData = useExtraBlogData()
|
||||
const colors = useTagColors()
|
||||
const readingTime = useReadingTimeLocale()
|
||||
|
||||
const createTime = computed(() => {
|
||||
@ -23,7 +23,7 @@ const tags = computed(() => {
|
||||
if (matter.value.tags) {
|
||||
return matter.value.tags.slice(0, 4).map(tag => ({
|
||||
name: tag,
|
||||
colors: extraData.value.tagsColorsPreset[extraData.value.tagsColors[tag]] ?? [],
|
||||
className: `vp-tag-${colors.value[tag]}`,
|
||||
}))
|
||||
}
|
||||
|
||||
@ -65,7 +65,7 @@ const hasMeta = computed(() => readingTime.value.time || tags.value.length || cr
|
||||
v-for="tag in tags"
|
||||
:key="tag.name"
|
||||
class="tag"
|
||||
:style="{ '--vp-tag-color': tag.colors[0], '--vp-tag-bg-color': tag.colors[2] }"
|
||||
:class="tag.className"
|
||||
>
|
||||
{{ tag.name }}
|
||||
</span>
|
||||
@ -151,7 +151,7 @@ const hasMeta = computed(() => readingTime.value.time || tags.value.length || cr
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
color: var(--vp-tag-color, var(--vp-c-text-3));
|
||||
background-color: var(--vp-tag-bg-color, var(--vp-c-default-soft));
|
||||
background-color: var(--vp-tag-bg, var(--vp-c-default-soft));
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user