valaxy-theme-yun 0.13.0-0 → 0.13.0
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 +1 -1
- package/package.json +3 -3
- package/types/index.d.ts +1 -1
- package/valaxy.config.ts +8 -2
package/layouts/home.vue
CHANGED
@@ -17,7 +17,7 @@ const themeConfig = useThemeConfig()
|
|
17
17
|
|
18
18
|
<YunBanner />
|
19
19
|
<YunSay v-if="themeConfig.say.enable" w="full" />
|
20
|
-
<YunCloud v-if="themeConfig.banner.cloud
|
20
|
+
<YunCloud v-if="themeConfig.banner.cloud?.enable" />
|
21
21
|
<YunNotice
|
22
22
|
v-if="themeConfig.notice.enable"
|
23
23
|
: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.13.0
|
3
|
+
"version": "0.13.0",
|
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.4",
|
21
21
|
"@iconify-json/simple-icons": "^1.1.41",
|
22
|
-
"valaxy-addon-waline": "0.0.
|
22
|
+
"valaxy-addon-waline": "0.0.9"
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
|
-
"valaxy": "0.13.0
|
25
|
+
"valaxy": "0.13.0"
|
26
26
|
}
|
27
27
|
}
|
package/types/index.d.ts
CHANGED
package/valaxy.config.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ResolvedValaxyOptions } from 'valaxy'
|
2
|
-
import {
|
2
|
+
import { defineValaxyTheme } from 'valaxy'
|
3
3
|
import type { Plugin } from 'vite'
|
4
4
|
import type { ThemeConfig } from './types'
|
5
5
|
import { defaultThemeConfig, generateSafelist } from './node'
|
@@ -27,10 +27,16 @@ function ThemeVitePlugin(options: ResolvedValaxyOptions<ThemeConfig>): Plugin {
|
|
27
27
|
}
|
28
28
|
}
|
29
29
|
|
30
|
-
export default
|
30
|
+
export default defineValaxyTheme<ThemeConfig>((options) => {
|
31
31
|
return {
|
32
32
|
themeConfig: defaultThemeConfig,
|
33
33
|
vite: {
|
34
|
+
build: {
|
35
|
+
rollupOptions: {
|
36
|
+
// add on demand external
|
37
|
+
external: ['valaxy-addon-twikoo', 'valaxy-addon-waline'],
|
38
|
+
},
|
39
|
+
},
|
34
40
|
plugins: [ThemeVitePlugin(options)],
|
35
41
|
},
|
36
42
|
unocss: {
|