create-valaxy 0.7.5 → 0.7.8
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/index.js +2 -2
- package/package.json +1 -1
- package/template/package.json +2 -2
- package/template/valaxy.config.ts +4 -4
- package/template/vite.config.ts +1 -9
package/index.js
CHANGED
|
@@ -43,8 +43,8 @@ async function init() {
|
|
|
43
43
|
if (existing.length) {
|
|
44
44
|
console.log(yellow(` Target directory "${targetDir}" is not empty.`))
|
|
45
45
|
/**
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
* @type {{ yes: boolean }}
|
|
47
|
+
*/
|
|
48
48
|
const { yes } = await prompts({
|
|
49
49
|
type: 'confirm',
|
|
50
50
|
name: 'yes',
|
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -63,7 +63,7 @@ const config: UserConfig<ThemeUserConfig> = {
|
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
name: '微信公众号',
|
|
66
|
-
link: 'https://cdn.
|
|
66
|
+
link: 'https://cdn.yunyoujun.cn/img/about/white-qrcode-and-search.jpg',
|
|
67
67
|
icon: 'i-ri-wechat-2-line',
|
|
68
68
|
color: '#1AAD19',
|
|
69
69
|
},
|
|
@@ -103,19 +103,19 @@ const config: UserConfig<ThemeUserConfig> = {
|
|
|
103
103
|
methods: [
|
|
104
104
|
{
|
|
105
105
|
name: '支付宝',
|
|
106
|
-
url: 'https://cdn.
|
|
106
|
+
url: 'https://cdn.yunyoujun.cn/img/donate/alipay-qrcode.jpg',
|
|
107
107
|
color: '#00A3EE',
|
|
108
108
|
icon: 'i-ri-alipay-line',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
name: 'QQ 支付',
|
|
112
|
-
url: 'https://cdn.
|
|
112
|
+
url: 'https://cdn.yunyoujun.cn/img/donate/qqpay-qrcode.png',
|
|
113
113
|
color: '#12B7F5',
|
|
114
114
|
icon: 'i-ri-qq-line',
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
name: '微信支付',
|
|
118
|
-
url: 'https://cdn.
|
|
118
|
+
url: 'https://cdn.yunyoujun.cn/img/donate/wechatpay-qrcode.jpg',
|
|
119
119
|
color: '#2DC100',
|
|
120
120
|
icon: 'i-ri-wechat-pay-line',
|
|
121
121
|
},
|
package/template/vite.config.ts
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
import { defineConfig } from 'vite'
|
|
2
|
-
import config from './valaxy.config'
|
|
3
2
|
|
|
3
|
+
// add icons what you will need
|
|
4
4
|
const safelist = [
|
|
5
5
|
'i-ri-home-line',
|
|
6
6
|
]
|
|
7
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
8
|
export default defineConfig({
|
|
17
9
|
valaxy: {
|
|
18
10
|
unocss: {
|