valaxy-theme-yun 0.14.8 → 0.14.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.
package/layouts/home.vue CHANGED
@@ -1,10 +1,13 @@
1
1
  <script lang="ts" setup>
2
2
  import { useAppStore, useLayout } from 'valaxy'
3
+ import { useRoute } from 'vue-router'
3
4
  import { useThemeConfig } from '../composables'
4
5
 
5
6
  const app = useAppStore()
6
7
  const isHome = useLayout('home')
7
8
  const themeConfig = useThemeConfig()
9
+
10
+ const route = useRoute()
8
11
  </script>
9
12
 
10
13
  <template>
@@ -15,8 +18,11 @@ const themeConfig = useThemeConfig()
15
18
  </slot>
16
19
  </ValaxySidebar>
17
20
 
18
- <YunBanner v-if="themeConfig.banner.enable" />
19
- <YunSay v-if="themeConfig.say.enable" w="full" />
21
+ <template v-if="!route.path.startsWith('/page')">
22
+ <YunBanner v-if="themeConfig.banner.enable" />
23
+ <YunSay v-if="themeConfig.say.enable" w="full" />
24
+ </template>
25
+
20
26
  <YunNotice
21
27
  v-if="themeConfig.notice.enable"
22
28
  :content="themeConfig.notice.content" mt="4"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
- "version": "0.14.8",
3
+ "version": "0.14.10",
4
4
  "author": {
5
5
  "email": "me@yunyoujun.cn",
6
6
  "name": "YunYouJun",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@iconify-json/ant-design": "^1.1.5",
21
21
  "@iconify-json/simple-icons": "^1.1.44",
22
- "valaxy-addon-waline": "0.0.9"
22
+ "valaxy-addon-waline": "0.1.0"
23
23
  },
24
24
  "devDependencies": {
25
- "valaxy": "0.14.8"
25
+ "valaxy": "0.14.10"
26
26
  }
27
27
  }
package/setup/main.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { defineAppSetup } from 'valaxy'
2
+
3
+ export default defineAppSetup((_ctx) => {
4
+ // can do for setup
5
+ })