valaxy-theme-yun 0.20.0 → 0.20.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,9 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import { useMotion } from '@vueuse/motion'
3
3
  import Popover from 'primevue/popover'
4
+ import type { ComponentInstance } from 'vue'
4
5
  import { onMounted, ref } from 'vue'
5
6
 
6
- const op = ref<typeof Popover>()
7
+ const op = ref<ComponentInstance<typeof Popover>>()
7
8
 
8
9
  const pContentRef = ref<HTMLElement>()
9
10
  const motion = useMotion(pContentRef, {
@@ -42,12 +42,13 @@ useMotion(itemRef, {
42
42
  }"
43
43
  >
44
44
  <a
45
- class="yun-link-url" p="x-4 y-2" :href="link.url" :title="link.name"
45
+ class="yun-link-url" p="x-4 y-2"
46
+ :href="link.url" :title="link.name"
46
47
  alt="portrait" rel="friend" target="_blank"
47
48
  >
48
49
  <div class="yun-link-left">
49
50
  <img
50
- class="yun-link-avatar" width="64" height="64" w="16" h="16"
51
+ class="yun-link-avatar w-16 h-16 aspect-ratio-1" width="64" height="64"
51
52
  loading="lazy"
52
53
  :src="link.avatar" :alt="link.name"
53
54
  @error="onError"
package/layouts/home.vue CHANGED
@@ -41,7 +41,6 @@ const showNotice = computed(() => {
41
41
  <slot>
42
42
  <RouterView />
43
43
  </slot>
44
-
45
- <YunFooter />
46
44
  </YunLayoutWrapper>
45
+ <YunFooter />
47
46
  </template>
package/node/config.ts CHANGED
@@ -4,6 +4,8 @@ import type { ThemeConfig, UserThemeConfig } from '../types'
4
4
  * Default Config
5
5
  */
6
6
  export const defaultThemeConfig: ThemeConfig = {
7
+ type: 'nimbo',
8
+
7
9
  valaxyDarkOptions: {
8
10
  circleTransition: true,
9
11
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
3
  "type": "module",
4
- "version": "0.20.0",
4
+ "version": "0.20.1",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
7
7
  "name": "YunYouJun",
@@ -24,17 +24,17 @@
24
24
  "@ctrl/tinycolor": "^4.1.0",
25
25
  "@explosions/fireworks": "^0.1.0",
26
26
  "@iconify-json/ant-design": "^1.2.2",
27
- "@iconify-json/simple-icons": "^1.2.7",
28
- "@vueuse/motion": "^2.2.5",
27
+ "@iconify-json/simple-icons": "^1.2.10",
28
+ "@vueuse/motion": "^2.2.6",
29
29
  "animejs": "^3.2.2",
30
30
  "gsap": "^3.12.5",
31
- "primevue": "^4.1.0",
32
- "radix-vue": "^1.9.7"
31
+ "primevue": "^4.1.1",
32
+ "radix-vue": "^1.9.8"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/animejs": "^3.1.12",
36
- "valaxy-addon-waline": "0.2.0",
37
- "valaxy": "0.20.0"
36
+ "valaxy": "0.20.1",
37
+ "valaxy-addon-waline": "0.2.0"
38
38
  },
39
39
  "scripts": {
40
40
  "release": "bumpp && npm publish"
package/types/index.d.ts CHANGED
@@ -50,6 +50,17 @@ export interface PageProps {
50
50
  * Theme Config
51
51
  */
52
52
  export interface ThemeConfig extends DefaultTheme.Config {
53
+ /**
54
+ * Theme Type
55
+ * - v1 strato 层云 Legacy
56
+ * - v2 nimbo 雨云
57
+ * - cirro 卷云 (未来)
58
+ * - cumulo 积云 (未来)
59
+ * - alto 高云 (未来)
60
+ * @default 'nimbo'
61
+ */
62
+ type: 'strato' | 'nimbo'
63
+
53
64
  /**
54
65
  * toc title
55
66
  * @default 'On this page'
package/valaxy.config.ts CHANGED
@@ -20,7 +20,7 @@ function ThemeVitePlugin(options: ResolvedValaxyOptions<ThemeConfig>): Plugin {
20
20
  },
21
21
 
22
22
  optimizeDeps: {
23
- include: ['gsap/dist/ScrollToPlugin'],
23
+ include: ['@ctrl/tinycolor', 'gsap/dist/ScrollToPlugin'],
24
24
  exclude: ['@docsearch/js'],
25
25
  },
26
26
  }