Skip to content

Commit

Permalink
perf: update vuepress deps to latest (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo authored Sep 21, 2024
1 parent e86b8d8 commit 533898e
Show file tree
Hide file tree
Showing 9 changed files with 126 additions and 137 deletions.
6 changes: 3 additions & 3 deletions plugins/plugin-md-power/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
"vuepress": "2.0.0-rc.15"
},
"dependencies": {
"@vuepress/helper": "2.0.0-rc.42",
"@vuepress/helper": "2.0.0-rc.46",
"@vueuse/core": "^11.1.0",
"image-size": "^1.1.1",
"markdown-it-container": "^4.0.0",
"nanoid": "^5.0.7",
"shiki": "^1.18.0",
"tm-grammars": "^1.17.23",
"tm-themes": "^1.8.2",
"tm-grammars": "^1.17.24",
"tm-themes": "^1.8.3",
"vue": "^3.5.7"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"vuepress": "2.0.0-rc.15"
},
"dependencies": {
"@vuepress/helper": "2.0.0-rc.42",
"@vuepress/helper": "2.0.0-rc.46",
"@vueuse/core": "^11.1.0",
"@vueuse/integrations": "^11.1.0",
"chokidar": "3.6.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-shikiji/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@shikijs/transformers": "^1.18.0",
"@shikijs/twoslash": "^1.18.0",
"@types/hast": "^3.0.4",
"@vuepress/helper": "2.0.0-rc.42",
"@vuepress/helper": "2.0.0-rc.46",
"@vueuse/core": "^11.1.0",
"floating-vue": "^5.2.2",
"mdast-util-from-markdown": "^2.0.1",
Expand Down
203 changes: 105 additions & 98 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,19 @@
"@vuepress-plume/plugin-fonts": "workspace:*",
"@vuepress-plume/plugin-search": "workspace:*",
"@vuepress-plume/plugin-shikiji": "workspace:*",
"@vuepress/helper": "2.0.0-rc.42",
"@vuepress/plugin-active-header-links": "2.0.0-rc.42",
"@vuepress/helper": "2.0.0-rc.46",
"@vuepress/plugin-active-header-links": "2.0.0-rc.46",
"@vuepress/plugin-cache": "2.0.0-rc.42",
"@vuepress/plugin-comment": "2.0.0-rc.42",
"@vuepress/plugin-docsearch": "2.0.0-rc.42",
"@vuepress/plugin-git": "2.0.0-rc.42",
"@vuepress/plugin-markdown-container": "2.0.0-rc.42",
"@vuepress/plugin-nprogress": "2.0.0-rc.42",
"@vuepress/plugin-photo-swipe": "2.0.0-rc.42",
"@vuepress/plugin-reading-time": "2.0.0-rc.42",
"@vuepress/plugin-seo": "2.0.0-rc.42",
"@vuepress/plugin-sitemap": "2.0.0-rc.42",
"@vuepress/plugin-watermark": "2.0.0-rc.42",
"@vuepress/plugin-comment": "2.0.0-rc.46",
"@vuepress/plugin-docsearch": "2.0.0-rc.46",
"@vuepress/plugin-git": "2.0.0-rc.44",
"@vuepress/plugin-markdown-container": "2.0.0-rc.43",
"@vuepress/plugin-nprogress": "2.0.0-rc.46",
"@vuepress/plugin-photo-swipe": "2.0.0-rc.46",
"@vuepress/plugin-reading-time": "2.0.0-rc.46",
"@vuepress/plugin-seo": "2.0.0-rc.46",
"@vuepress/plugin-sitemap": "2.0.0-rc.46",
"@vuepress/plugin-watermark": "2.0.0-rc.46",
"@vueuse/core": "^11.1.0",
"bcrypt-ts": "^5.0.2",
"chokidar": "3.6.0",
Expand Down
2 changes: 1 addition & 1 deletion theme/src/client/components/Nav/VPNavBarSearch.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="vp-navbar-search">
<DocSearch />
<SearchBox />
</div>
</template>
2 changes: 1 addition & 1 deletion theme/src/client/components/VPDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ watch(
<slot name="doc-footer-before" />
</template>
</VPDocFooter>
<PageComment v-if="hasComments" :darkmode="isDark" />
<CommentService v-if="hasComments" :darkmode="isDark" />
<slot name="doc-after" />
</div>
</div>
Expand Down
18 changes: 0 additions & 18 deletions theme/src/client/globalComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import VPImageCard from '@theme/global/VPImageCard.vue'
import VPLinkCard from '@theme/global/VPLinkCard.vue'
import VPHomeBox from '@theme/Home/VPHomeBox.vue'
import VPIcon from '@theme/VPIcon.vue'
import { h } from 'vue'

export function globalComponents(app: App) {
app.component('Badge', VPBadge)
Expand All @@ -24,23 +23,6 @@ export function globalComponents(app: App) {
app.component('VPImageCard', VPImageCard)
app.component('ImageCard', VPImageCard)

app.component('DocSearch', () => {
const SearchComponent
= app.component('Docsearch') || app.component('SearchBox')
if (SearchComponent)
return h(SearchComponent)

return null
})

app.component('PageComment', (props) => {
const CommentService = app.component('CommentService')
if (CommentService)
return h(CommentService, props)

return null
})

app.component('Icon', VPIcon)
app.component('VPIcon', VPIcon)

Expand Down
4 changes: 2 additions & 2 deletions theme/src/shared/options/plugins.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CommentPluginOptions } from '@vuepress/plugin-comment'
import type { DocsearchOptions } from '@vuepress/plugin-docsearch'
import type { DocSearchOptions } from '@vuepress/plugin-docsearch'
import type { ReadingTimePluginOptions } from '@vuepress/plugin-reading-time'
import type { WatermarkPluginOptions } from '@vuepress/plugin-watermark'
import type { SearchPluginOptions } from '@vuepress-plume/plugin-search'
Expand All @@ -23,7 +23,7 @@ export interface PlumeThemePluginOptions {
/**
* plugin-docsearch 配置
*/
docsearch?: false | DocsearchOptions
docsearch?: false | DocSearchOptions

/**
* @deprecated move to `shiki`
Expand Down

0 comments on commit 533898e

Please sign in to comment.