valaxy-theme-yun 0.10.3 → 0.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,6 @@
1
1
  <script lang="ts" setup>
2
2
  import { useConfig } from 'valaxy'
3
- // we need import on demand
4
- import { useWaline } from 'valaxy/client/composables/comments/waline'
3
+ import { useWaline } from 'valaxy-addon-waline'
5
4
 
6
5
  const config = useConfig()
7
6
  useWaline(config.value.comment.waline, config.value.cdn.prefix)
package/layouts/tags.vue CHANGED
@@ -62,7 +62,7 @@ const title = usePostTitle(frontmatter)
62
62
  {{ t('counter.tags', Array.from(tags).length) }}
63
63
  </div>
64
64
 
65
- <div text="center">
65
+ <div text="center" class="break-words">
66
66
  <span v-for="[key, tag] in Array.from(tags).sort()" :key="key" class="post-tag cursor-pointer" :style="getTagStyle(tag.count)" p="1" @click="displayTag(key.toString())">
67
67
  #{{ key }}<span text="xs">[{{ tag.count }}]</span>
68
68
  </span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "author": {
5
5
  "email": "me@yunyoujun.cn",
6
6
  "name": "YunYouJun",
@@ -17,12 +17,13 @@
17
17
  "main": "node/index.ts",
18
18
  "types": "types/index.d.ts",
19
19
  "dependencies": {
20
- "@docsearch/css": "^3.1.1",
21
- "@docsearch/js": "^3.1.1",
20
+ "@docsearch/css": "^3.2.1",
21
+ "@docsearch/js": "^3.2.1",
22
22
  "@iconify-json/ant-design": "^1.1.3",
23
- "@iconify-json/simple-icons": "^1.1.19"
23
+ "@iconify-json/simple-icons": "^1.1.26",
24
+ "valaxy-addon-waline": "0.0.1"
24
25
  },
25
26
  "devDependencies": {
26
- "valaxy": "0.10.3"
27
+ "valaxy": "0.10.4"
27
28
  }
28
29
  }
package/valaxy.config.ts CHANGED
@@ -30,6 +30,7 @@ function ThemeVitePlugin(options: ResolvedValaxyOptions<ThemeConfig>): Plugin {
30
30
  export default defineTheme<ThemeConfig>((options) => {
31
31
  return {
32
32
  themeConfig: defaultThemeConfig,
33
+ addons: ['valaxy-addon-waline'],
33
34
  vite: {
34
35
  plugins: [ThemeVitePlugin(options)],
35
36
  },