valaxy-theme-yun 0.25.11 → 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.
@@ -14,7 +14,7 @@ const { $tO } = useValaxyI18n()
14
14
 
15
15
  const { icon, styles, color } = usePostProperty(props.post.type)
16
16
 
17
- const gradientClasses = ref('bg-gradient-to-r gradient-text from-$va-c-primary to-$va-c-primary-lighter')
17
+ const gradientClasses = ref('bg-linear-to-r gradient-text from-$va-c-primary to-$va-c-primary-lighter')
18
18
  const postTitleClass = computed(() => {
19
19
  if (color) {
20
20
  return ''
@@ -91,8 +91,8 @@ const links = computed(() => [
91
91
  <div
92
92
  ref="cardRef"
93
93
  flex="~ col center"
94
- class="m-2 w-90 transform rounded shadow-md grayscale-30"
95
- bg="opacity-80 gradient-to-br"
94
+ class="m-2 w-90 transform rounded shadow-md grayscale-30 bg-linear-to-br"
95
+ bg="opacity-80"
96
96
  p="x-2 b-12"
97
97
  hover="shadow-lg grayscale-0"
98
98
  :style="cardStyle"
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { useMotion } from '@vueuse/motion'
3
- import { useValaxyI18n } from 'valaxy/client'
3
+ import { useValaxyI18n } from 'valaxy'
4
4
  import { computed, ref } from 'vue'
5
5
 
6
6
  const props = defineProps<{
@@ -8,7 +8,7 @@ const siteConfig = useSiteConfig()
8
8
  const themeConfig = useThemeConfig()
9
9
 
10
10
  const { $t } = useValaxyI18n()
11
- // bg-gradient-to-r gradient-text from-#1e3c72 to-dark dark:(from-#66a6ff to-blue-500)
11
+ // bg-linear-to-r gradient-text from-#1e3c72 to-dark dark:(from-#66a6ff to-blue-500)
12
12
  </script>
13
13
 
14
14
  <template>
@@ -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"
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
3
  w="full" h="30%"
4
- class="absolute bottom-0 bg-gradient-to-t from-$va-c-bg-light to-transparent z-1"
4
+ class="absolute bottom-0 bg-linear-to-t from-$va-c-bg-light to-transparent z-1"
5
5
  />
6
6
  </template>
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.25.11",
4
+ "version": "0.26.1",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
7
7
  "name": "YunYouJun",
@@ -24,16 +24,16 @@
24
24
  "@ctrl/tinycolor": "^4.1.0",
25
25
  "@explosions/fireworks": "^0.2.0",
26
26
  "@iconify-json/ant-design": "^1.2.5",
27
- "@iconify-json/simple-icons": "^1.2.44",
27
+ "@iconify-json/simple-icons": "^1.2.45",
28
28
  "@vueuse/motion": "^3.0.3",
29
- "animejs": "^4.0.2",
29
+ "animejs": "^4.1.2",
30
30
  "gsap": "^3.13.0",
31
- "primevue": "^4.3.6"
31
+ "primevue": "^4.3.7"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/animejs": "^3.1.13",
35
- "valaxy-addon-waline": "0.2.1",
36
- "valaxy": "0.25.11"
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)
File without changes