valaxy-theme-yun 0.26.0 → 0.26.1

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,12 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import { useAppStore, useSiteConfig, useValaxyI18n } from 'valaxy'
3
3
  import { onMounted, ref, watch } from 'vue'
4
- import { useI18n } from 'vue-i18n'
5
4
  import { useRoute } from 'vue-router'
6
5
  import { useThemeConfig } from '../../../composables'
7
6
  import { useYunAppStore } from '../../../stores'
8
7
 
9
- const { t } = useI18n()
10
8
  const { $t } = useValaxyI18n()
11
9
 
12
10
  // const app = useAppStore()
@@ -62,11 +60,6 @@ const app = useAppStore()
62
60
  />
63
61
  <YunNavMenuItem icon="i-ri-home-4-line" to="/" />
64
62
  <template v-if="yunApp.size.isLg">
65
- <YunNavMenuItem
66
- icon="i-ri-article-line" to="/posts/"
67
- :title="t('menu.posts')"
68
- />
69
-
70
63
  <YunNavMenuItem
71
64
  v-for="item, i in themeConfig.nav"
72
65
  :key="i"
package/node/config.ts CHANGED
@@ -47,6 +47,9 @@ export const defaultThemeConfig: ThemeConfig = {
47
47
  content: '',
48
48
  },
49
49
 
50
+ nav: [
51
+ { text: 'menu.posts', link: '/posts/', icon: 'i-ri-article-line' },
52
+ ],
50
53
  pages: [],
51
54
 
52
55
  sidebar: null,
package/node/unocss.ts CHANGED
@@ -26,5 +26,11 @@ export function generateSafelist(options: ResolvedValaxyOptions<UserThemeConfig>
26
26
  })
27
27
  }
28
28
 
29
+ if (themeConfig.nav) {
30
+ themeConfig.nav?.forEach((item) => {
31
+ item.icon && safelist.push(item.icon)
32
+ })
33
+ }
34
+
29
35
  return safelist
30
36
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
3
  "type": "module",
4
- "version": "0.26.0",
4
+ "version": "0.26.1",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
7
7
  "name": "YunYouJun",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/animejs": "^3.1.13",
35
- "valaxy-addon-waline": "0.2.1",
36
- "valaxy": "0.26.0"
35
+ "valaxy": "0.26.1",
36
+ "valaxy-addon-waline": "0.2.1"
37
37
  },
38
38
  "scripts": {
39
39
  "release": "bumpp && pnpm publish"
package/tsconfig.json CHANGED
@@ -11,8 +11,7 @@
11
11
  "resolveJsonModule": true,
12
12
  "types": [
13
13
  "vite/client",
14
- "vite-plugin-vue-layouts/client",
15
- "valaxy/client"
14
+ "vite-plugin-vue-layouts/client"
16
15
  ],
17
16
  "allowJs": true,
18
17
  "strict": true,
package/theme.config.ts DELETED
@@ -1,3 +0,0 @@
1
- import { defaultThemeConfig, defineThemeConfig } from './node'
2
-
3
- export default defineThemeConfig(defaultThemeConfig)