create-valaxy 0.6.3 → 0.7.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/package.json +1 -1
- package/template/package.json +2 -2
- package/template/valaxy.config.ts +25 -14
- package/template/vite.config.ts +22 -0
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -97,6 +97,31 @@ const config: UserConfig<ThemeUserConfig> = {
|
|
|
97
97
|
enable: false,
|
|
98
98
|
},
|
|
99
99
|
|
|
100
|
+
sponsor: {
|
|
101
|
+
enable: true,
|
|
102
|
+
title: '我很可爱,请给我钱!',
|
|
103
|
+
methods: [
|
|
104
|
+
{
|
|
105
|
+
name: '支付宝',
|
|
106
|
+
url: 'https://cdn.jsdelivr.net/gh/YunYouJun/cdn/img/donate/alipay-qrcode.jpg',
|
|
107
|
+
color: '#00A3EE',
|
|
108
|
+
icon: 'i-ri-alipay-line',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'QQ 支付',
|
|
112
|
+
url: 'https://cdn.jsdelivr.net/gh/YunYouJun/cdn/img/donate/qqpay-qrcode.png',
|
|
113
|
+
color: '#12B7F5',
|
|
114
|
+
icon: 'i-ri-qq-line',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: '微信支付',
|
|
118
|
+
url: 'https://cdn.jsdelivr.net/gh/YunYouJun/cdn/img/donate/wechatpay-qrcode.jpg',
|
|
119
|
+
color: '#2DC100',
|
|
120
|
+
icon: 'i-ri-wechat-pay-line',
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
|
|
100
125
|
theme: 'yun',
|
|
101
126
|
|
|
102
127
|
themeConfig: {
|
|
@@ -128,20 +153,6 @@ const config: UserConfig<ThemeUserConfig> = {
|
|
|
128
153
|
},
|
|
129
154
|
},
|
|
130
155
|
},
|
|
131
|
-
|
|
132
|
-
unocss: {
|
|
133
|
-
safelist: [
|
|
134
|
-
'i-ri-home-line',
|
|
135
|
-
],
|
|
136
|
-
},
|
|
137
156
|
}
|
|
138
157
|
|
|
139
|
-
/**
|
|
140
|
-
* add your icon to safelist
|
|
141
|
-
* if your theme is not yun, so you can add it by yourself
|
|
142
|
-
*/
|
|
143
|
-
config.themeConfig?.pages?.forEach((item) => {
|
|
144
|
-
config.unocss?.safelist?.push(item?.icon)
|
|
145
|
-
})
|
|
146
|
-
|
|
147
158
|
export default config
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import config from './valaxy.config'
|
|
3
|
+
|
|
4
|
+
const safelist = [
|
|
5
|
+
'i-ri-home-line',
|
|
6
|
+
]
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* add your icon to safelist
|
|
10
|
+
* if your theme is not yun, so you can add it by yourself
|
|
11
|
+
*/
|
|
12
|
+
config.themeConfig?.pages?.forEach((item) => {
|
|
13
|
+
item?.icon && safelist?.push(item?.icon)
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
export default defineConfig({
|
|
17
|
+
valaxy: {
|
|
18
|
+
unocss: {
|
|
19
|
+
safelist,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
})
|