Skip to content

Commit 3acdf61

Browse files
authored
chore: bump dependencies (#318)
* chore: bump dependencies * fix: docs * fix: pages & rive --------- Signed-off-by: Neko Ayaka <neko@ayaka.moe>
1 parent 5a0b740 commit 3acdf61

104 files changed

Lines changed: 4007 additions & 3582 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/.vitepress/config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import { argv, cwd, env } from 'node:process'
22

3-
import { gray } from 'colorette'
4-
import { type DefaultTheme, defineConfig } from 'vitepress'
5-
import MarkdownItFootnote from 'markdown-it-footnote'
6-
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
7-
83
import { BiDirectionalLinks } from '@nolebase/markdown-it-bi-directional-links'
9-
import { InlineLinkPreviewElementTransform } from '@nolebase/vitepress-plugin-inline-link-preview/markdown-it'
10-
import { buildEndGenerateOpenGraphImages } from '@nolebase/vitepress-plugin-og-image/vitepress'
114
import { UnlazyImages } from '@nolebase/markdown-it-unlazy-img'
5+
import { InlineLinkPreviewElementTransform } from '@nolebase/vitepress-plugin-inline-link-preview/markdown-it'
126
import { transformHeadMeta } from '@nolebase/vitepress-plugin-meta/vitepress'
137

8+
import { buildEndGenerateOpenGraphImages } from '@nolebase/vitepress-plugin-og-image/vitepress'
9+
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
10+
import { gray } from 'colorette'
11+
import MarkdownItFootnote from 'markdown-it-footnote'
12+
import { type DefaultTheme, defineConfig } from 'vitepress'
13+
1414
import packageJSON from '../../package.json'
1515
import { compilerOptions } from './twoslashConfig'
1616

docs/.vitepress/theme/components/IntegrationCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { useData } from 'vitepress'
3-
import VitePressLogo from '../assets/vitepress-logo-large.webp'
43
import ObsidianLogo from '../assets/obsidian-logo.svg'
4+
import VitePressLogo from '../assets/vitepress-logo-large.webp'
55
66
const props = withDefaults(defineProps<{
77
type: IntegrationType

docs/.vitepress/theme/components/ThumbhashPreview.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
2-
import { computed, onMounted, ref, watch } from 'vue'
2+
import { useClipboard } from '@vueuse/core'
33
import { rgbaToThumbHash } from 'thumbhash'
44
import { createPngDataUri } from 'unlazy/thumbhash'
5-
import { useClipboard } from '@vueuse/core'
5+
import { computed, onMounted, ref, watch } from 'vue'
66
77
const props = withDefaults(defineProps<{
88
thumbhashText: string
@@ -12,7 +12,7 @@ const props = withDefaults(defineProps<{
1212
clearInputThumbhashText: string
1313
inputThumbhashPlaceholder: string
1414
previewThumbhashText: string
15-
demoImageUrl: string
15+
demoImageUrl?: string
1616
}>(), {
1717
thumbhashText: 'Select image to generate thumbhash',
1818
applyThumbhashText: 'Apply Thumbhash',
@@ -21,7 +21,7 @@ const props = withDefaults(defineProps<{
2121
clearInputThumbhashText: 'Clear thumbhash',
2222
inputThumbhashPlaceholder: 'Input Thumbhash base64...',
2323
previewThumbhashText: 'Input Thumbhash to preview',
24-
demoImageBase64Url: '',
24+
demoImageUrl: '',
2525
})
2626
2727
const thumbhash = ref('')
@@ -45,7 +45,7 @@ watch(() => thumbhash.value, async (val) => {
4545
dataUri.value = createPngDataUri(val)
4646
thumbhashErrored.value = false
4747
}
48-
catch (err) {
48+
catch {
4949
thumbhashErrored.value = true
5050
return ''
5151
}

docs/.vitepress/theme/components/VPHeroImageLogo.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script setup lang="ts">
2-
import { ref } from 'vue'
2+
import { useMediaQuery } from '@vueuse/core'
33
import { useMotion } from '@vueuse/motion'
44
5-
import { useMediaQuery } from '@vueuse/core'
6-
import VitePressLogo from '../assets/vitepress-logo-large.webp'
5+
import { ref } from 'vue'
76
import ObsidianLogo from '../assets/obsidian-logo.svg'
7+
import VitePressLogo from '../assets/vitepress-logo-large.webp'
88
import VPHeroImageLayer from './VPHeroImageLogoLayer.vue'
99
1010
const layer1Ref = ref<HTMLDivElement>()
@@ -97,7 +97,8 @@ refs.forEach((ref, index) => {
9797
initial: {
9898
scale: 1,
9999
y: ref[key].initial.y,
100-
transform: 'rotateX(50deg) rotateZ(-45deg)',
100+
rotateX: '50deg',
101+
rotateZ: '-45deg',
101102
},
102103
enter: {
103104
y: ref[key].enter.y,
@@ -125,15 +126,14 @@ refs.forEach((ref, index) => {
125126
</script>
126127

127128
<template>
128-
<div relative h="60 <lg:55 <md:50 <sm:45" w="60 <lg:55 <md:50 <sm:45" m-auto>
129+
<div relative class="h-60 w-60 <lg:h-55 <lg:w-55 <md:h-50 <md:w-50 <sm:h-45 <sm:w-45" m-auto>
129130
<ClientOnly>
130131
<VPHeroImageLayer ref="layer1Ref" class="layer-1" z="4" shadow-md>
131132
<div
132133
left="8 <md:7 <sm:7"
133134
top="<md:7 <sm:6"
134135
absolute
135-
h="44 <lg:40 <md:36 <sm:32"
136-
w="44 <lg:40 <md:36 <sm:32"
136+
class="h-44 w-44 <lg:h-40 <lg:w-40 <md:h-36 <md:w-36 <sm:h-32 <sm:w-32"
137137
z="1"
138138
>
139139
<div i-fluent-emoji:notebook-with-decorative-cover h-full w-full />

docs/.vitepress/theme/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { type Plugin, h } from 'vue'
2-
3-
import { MotionPlugin } from '@vueuse/motion'
4-
import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
5-
61
import { NuLazyTeleportRiveCanvas } from '@nolebase/ui-rive-canvas'
2+
73
import { defineThemeUnconfig } from '@nolebase/unconfig-vitepress'
84
import { NolebasePluginPreset } from '@nolebase/unconfig-vitepress/plugins'
95

10-
import VPHeroImageLogo from './components/VPHeroImageLogo.vue'
11-
import IntegrationCard from './components/IntegrationCard.vue'
6+
import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
7+
import { MotionPlugin } from '@vueuse/motion'
8+
import { h, type Plugin } from 'vue'
9+
1210
import HomeContent from './components/HomeContent.vue'
13-
import ThumbhashPreview from './components/ThumbhashPreview.vue'
11+
import IntegrationCard from './components/IntegrationCard.vue'
1412
import NavHeader from './components/NavHeader.vue'
13+
import ThumbhashPreview from './components/ThumbhashPreview.vue'
14+
import VPHeroImageLogo from './components/VPHeroImageLogo.vue'
1515

1616
import 'virtual:uno.css'
1717

docs/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"docs:preview": "vitepress preview"
1212
},
1313
"devDependencies": {
14-
"@iconify-json/carbon": "^1.1.36",
15-
"@iconify-json/fluent-emoji": "^1.1.18",
16-
"@iconify-json/icon-park-outline": "^1.1.15",
17-
"@iconify-json/octicon": "^1.1.56",
18-
"@iconify-json/svg-spinners": "^1.1.2",
14+
"@iconify-json/carbon": "^1.2.2",
15+
"@iconify-json/fluent-emoji": "^1.2.1",
16+
"@iconify-json/icon-park-outline": "^1.2.1",
17+
"@iconify-json/octicon": "^1.2.1",
18+
"@iconify-json/svg-spinners": "^1.2.1",
1919
"@nolebase/markdown-it-bi-directional-links": "workspace:^",
2020
"@nolebase/markdown-it-element-transform": "workspace:^",
2121
"@nolebase/markdown-it-unlazy-img": "workspace:^",
@@ -33,19 +33,19 @@
3333
"@nolebase/vitepress-plugin-og-image": "workspace:^",
3434
"@nolebase/vitepress-plugin-page-properties": "workspace:^",
3535
"@nolebase/vitepress-plugin-thumbnail-hash": "workspace:^",
36-
"@rive-app/canvas": "^2.19.6",
36+
"@rive-app/canvas": "^2.21.5",
3737
"@rollup/plugin-yaml": "^4.1.2",
38-
"@shikijs/vitepress-twoslash": "^1.12.0",
39-
"@types/markdown-it": "^14.1.1",
38+
"@shikijs/vitepress-twoslash": "^1.22.0",
39+
"@types/markdown-it": "^14.1.2",
4040
"@types/markdown-it-footnote": "^3.0.4",
41-
"@vueuse/motion": "^2.2.3",
42-
"asciinema-player": "^3.8.0",
41+
"@vueuse/motion": "^2.2.5",
42+
"asciinema-player": "^3.8.1",
4343
"colorette": "^2.0.20",
4444
"markdown-it": "^14.1.0",
4545
"markdown-it-footnote": "^4.0.0",
4646
"motion": "^10.18.0",
4747
"thumbhash": "^0.1.1",
4848
"unlazy": "^0.11.3",
49-
"vite-plugin-vue-devtools": "^7.3.7"
49+
"vite-plugin-vue-devtools": "^7.4.6"
5050
}
5151
}

docs/pages/en/integrations/vitepress-plugin-thumbnail-hash/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ It is ok to replace to your image, or try to edit the thumbhash base64.
2222
clear-input-thumbhash-text="Clear thumbhash"
2323
input-thumbhash-placeholder="Input Thumbhash base64..."
2424
preview-thumbhash-text="Input Thumbhash to preview"
25-
demo-image-url="/foxtail field.jpg"
25+
demo-image-url="/thumbhash-test-image.jpg"
2626
/>
2727

2828
The generated thumbhash base64 will be like this:

docs/pages/zh-CN/integrations/vitepress-plugin-thumbnail-hash/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import packageJSON from '~/packages/vitepress-plugin-thumbnail-hash/package.json
2222
clear-input-thumbhash-text="清空已输入的 Thumbhash"
2323
input-thumbhash-placeholder="输入 base64 编码的 Thumbhash..."
2424
preview-thumbhash-text="输入 Thumbhash 以预览"
25-
demo-image-url="/foxtail field.jpg"
25+
demo-image-url="/thumbhash-test-image.jpg"
2626
/>
2727

2828
生成的 Thumbhash base64 将如下所示:

docs/vite.config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1+
import type { Plugin } from 'vite'
12
import { dirname, join, resolve } from 'node:path'
2-
import { fileURLToPath } from 'node:url'
33
import { env } from 'node:process'
44

5-
import { defineConfig } from 'vite'
6-
import type { Plugin } from 'vite'
7-
import UnoCSS from 'unocss/vite'
8-
import Inspect from 'vite-plugin-inspect'
9-
import Yaml from '@rollup/plugin-yaml'
10-
import VueDevTools from 'vite-plugin-vue-devtools'
11-
5+
import { fileURLToPath } from 'node:url'
126
import { GitChangelog, GitChangelogMarkdownSection } from '@nolebase/vitepress-plugin-git-changelog/vite'
137
import { PageProperties, PagePropertiesMarkdownSection } from '@nolebase/vitepress-plugin-page-properties/vite'
148
import { ThumbnailHashImages } from '@nolebase/vitepress-plugin-thumbnail-hash/vite'
9+
import Yaml from '@rollup/plugin-yaml'
10+
import UnoCSS from 'unocss/vite'
11+
12+
import { defineConfig } from 'vite'
13+
import Inspect from 'vite-plugin-inspect'
14+
import VueDevTools from 'vite-plugin-vue-devtools'
1515

1616
function getVueProdHydrationMismatchDetailsFlag() {
1717
if (!env) {

0 commit comments

Comments
 (0)