create-valaxy 0.7.7 → 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 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
- * @type {{ yes: boolean }}
47
- */
46
+ * @type {{ yes: boolean }}
47
+ */
48
48
  const { yes } = await prompts({
49
49
  type: 'confirm',
50
50
  name: 'yes',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-valaxy",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
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.7.7",
15
- "valaxy-theme-yun": "0.7.7"
14
+ "valaxy": "0.7.8",
15
+ "valaxy-theme-yun": "0.7.8"
16
16
  }
17
17
  }
@@ -63,7 +63,7 @@ const config: UserConfig<ThemeUserConfig> = {
63
63
  },
64
64
  {
65
65
  name: '微信公众号',
66
- link: 'https://cdn.jsdelivr.net/gh/YunYouJun/cdn/img/about/white-qrcode-and-search.jpg',
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.jsdelivr.net/gh/YunYouJun/cdn/img/donate/alipay-qrcode.jpg',
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.jsdelivr.net/gh/YunYouJun/cdn/img/donate/qqpay-qrcode.png',
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.jsdelivr.net/gh/YunYouJun/cdn/img/donate/wechatpay-qrcode.jpg',
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
  },
@@ -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: {