valaxy-theme-yun 0.15.9 → 0.15.10

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,25 +1,14 @@
1
1
  <script lang="ts" setup>
2
2
  import { useRuntimeConfig } from 'valaxy'
3
- import { defineAsyncComponent } from 'vue'
4
3
 
5
4
  const runtimeConfig = useRuntimeConfig()
6
-
7
- // not import from 'valaxy-addon-waline' to judge
8
- const AsyncYunWaline = runtimeConfig.value.addons['valaxy-addon-waline']
9
- ? defineAsyncComponent(() => import('./third/YunWaline.vue'))
10
- : () => null
11
-
12
- // todo: refactor
13
- const AsyncYunTwikoo = runtimeConfig.value.addons['valaxy-addon-twikoo']
14
- ? defineAsyncComponent(() => import('./third/YunTwikoo.vue'))
15
- : () => null
16
5
  </script>
17
6
 
18
7
  <template>
19
8
  <YunCard w="full" p="4" class="comment sm:p-6 lg:px-12 xl:px-16">
20
9
  <ClientOnly>
21
- <AsyncYunWaline />
22
- <AsyncYunTwikoo />
10
+ <YunWaline v-if="runtimeConfig.addons['valaxy-addon-waline']" />
11
+ <YunTwikoo v-if="runtimeConfig.addons['valaxy-addon-twikoo']" />
23
12
  </ClientOnly>
24
13
  </YunCard>
25
14
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
- "version": "0.15.9",
3
+ "version": "0.15.10",
4
4
  "author": {
5
5
  "email": "me@yunyoujun.cn",
6
6
  "name": "YunYouJun",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/animejs": "^3.1.10",
27
- "valaxy": "0.15.9",
27
+ "valaxy": "0.15.10",
28
28
  "valaxy-addon-waline": "0.1.1"
29
29
  }
30
30
  }