create-valaxy 0.6.2 → 0.7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-valaxy",
3
- "version": "0.6.2",
3
+ "version": "0.7.1",
4
4
  "description": "Create Starter Template for Valaxy",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
@@ -11,7 +11,7 @@
11
11
  "serve": "vite preview"
12
12
  },
13
13
  "dependencies": {
14
- "valaxy": "0.6.2",
15
- "valaxy-theme-yun": "0.6.2"
14
+ "valaxy": "0.7.1",
15
+ "valaxy-theme-yun": "0.7.1"
16
16
  }
17
17
  }
@@ -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
+ })