create-valaxy 0.12.9 → 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/package.json +1 -1
- package/template/_gitignore +3 -0
- package/template/package.json +2 -2
- package/template/site.config.ts +120 -0
- package/template/valaxy.config.ts +7 -119
- package/template-addon/README.md +20 -0
- package/template-addon/index.ts +1 -0
- package/template-addon/node/index.ts +8 -0
- package/template-addon/package.json +12 -0
package/package.json
CHANGED
package/template/_gitignore
CHANGED
package/template/package.json
CHANGED
@@ -0,0 +1,120 @@
|
|
1
|
+
import { defineSiteConfig } from 'valaxy'
|
2
|
+
|
3
|
+
export default defineSiteConfig({
|
4
|
+
url: 'https://valaxy.site/',
|
5
|
+
lang: 'zh-CN',
|
6
|
+
title: 'Valaxy Theme Yun',
|
7
|
+
author: {
|
8
|
+
name: '云游君',
|
9
|
+
},
|
10
|
+
description: 'Valaxy Theme Yun Preview.',
|
11
|
+
social: [
|
12
|
+
{
|
13
|
+
name: 'RSS',
|
14
|
+
link: '/atom.xml',
|
15
|
+
icon: 'i-ri-rss-line',
|
16
|
+
color: 'orange',
|
17
|
+
},
|
18
|
+
{
|
19
|
+
name: 'QQ 群 1050458482',
|
20
|
+
link: 'https://qm.qq.com/cgi-bin/qm/qr?k=kZJzggTTCf4SpvEQ8lXWoi5ZjhAx0ILZ&jump_from=webapi',
|
21
|
+
icon: 'i-ri-qq-line',
|
22
|
+
color: '#12B7F5',
|
23
|
+
},
|
24
|
+
{
|
25
|
+
name: 'GitHub',
|
26
|
+
link: 'https://github.com/YunYouJun',
|
27
|
+
icon: 'i-ri-github-line',
|
28
|
+
color: '#6e5494',
|
29
|
+
},
|
30
|
+
{
|
31
|
+
name: '微博',
|
32
|
+
link: 'https://weibo.com/jizhideyunyoujun',
|
33
|
+
icon: 'i-ri-weibo-line',
|
34
|
+
color: '#E6162D',
|
35
|
+
},
|
36
|
+
{
|
37
|
+
name: '豆瓣',
|
38
|
+
link: 'https://www.douban.com/people/yunyoujun/',
|
39
|
+
icon: 'i-ri-douban-line',
|
40
|
+
color: '#007722',
|
41
|
+
},
|
42
|
+
{
|
43
|
+
name: '网易云音乐',
|
44
|
+
link: 'https://music.163.com/#/user/home?id=247102977',
|
45
|
+
icon: 'i-ri-netease-cloud-music-line',
|
46
|
+
color: '#C20C0C',
|
47
|
+
},
|
48
|
+
{
|
49
|
+
name: '知乎',
|
50
|
+
link: 'https://www.zhihu.com/people/yunyoujun/',
|
51
|
+
icon: 'i-ri-zhihu-line',
|
52
|
+
color: '#0084FF',
|
53
|
+
},
|
54
|
+
{
|
55
|
+
name: '哔哩哔哩',
|
56
|
+
link: 'https://space.bilibili.com/1579790',
|
57
|
+
icon: 'i-ri-bilibili-line',
|
58
|
+
color: '#FF8EB3',
|
59
|
+
},
|
60
|
+
{
|
61
|
+
name: '微信公众号',
|
62
|
+
link: 'https://cdn.yunyoujun.cn/img/about/white-qrcode-and-search.jpg',
|
63
|
+
icon: 'i-ri-wechat-2-line',
|
64
|
+
color: '#1AAD19',
|
65
|
+
},
|
66
|
+
{
|
67
|
+
name: 'Twitter',
|
68
|
+
link: 'https://twitter.com/YunYouJun',
|
69
|
+
icon: 'i-ri-twitter-line',
|
70
|
+
color: '#1da1f2',
|
71
|
+
},
|
72
|
+
{
|
73
|
+
name: 'Telegram Channel',
|
74
|
+
link: 'https://t.me/elpsycn',
|
75
|
+
icon: 'i-ri-telegram-line',
|
76
|
+
color: '#0088CC',
|
77
|
+
},
|
78
|
+
{
|
79
|
+
name: 'E-Mail',
|
80
|
+
link: 'mailto:me@yunyoujun.cn',
|
81
|
+
icon: 'i-ri-mail-line',
|
82
|
+
color: '#8E71C1',
|
83
|
+
},
|
84
|
+
{
|
85
|
+
name: 'Travelling',
|
86
|
+
link: 'https://www.travellings.cn/go.html',
|
87
|
+
icon: 'i-ri-train-line',
|
88
|
+
color: 'var(--va-c-text)',
|
89
|
+
},
|
90
|
+
],
|
91
|
+
|
92
|
+
search: {
|
93
|
+
enable: false,
|
94
|
+
},
|
95
|
+
|
96
|
+
sponsor: {
|
97
|
+
enable: true,
|
98
|
+
title: '我很可爱,请给我钱!',
|
99
|
+
methods: [
|
100
|
+
{
|
101
|
+
name: '支付宝',
|
102
|
+
url: 'https://cdn.yunyoujun.cn/img/donate/alipay-qrcode.jpg',
|
103
|
+
color: '#00A3EE',
|
104
|
+
icon: 'i-ri-alipay-line',
|
105
|
+
},
|
106
|
+
{
|
107
|
+
name: 'QQ 支付',
|
108
|
+
url: 'https://cdn.yunyoujun.cn/img/donate/qqpay-qrcode.png',
|
109
|
+
color: '#12B7F5',
|
110
|
+
icon: 'i-ri-qq-line',
|
111
|
+
},
|
112
|
+
{
|
113
|
+
name: '微信支付',
|
114
|
+
url: 'https://cdn.yunyoujun.cn/img/donate/wechatpay-qrcode.jpg',
|
115
|
+
color: '#2DC100',
|
116
|
+
icon: 'i-ri-wechat-pay-line',
|
117
|
+
},
|
118
|
+
],
|
119
|
+
},
|
120
|
+
})
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import type {
|
1
|
+
import { defineValaxyConfig } from 'valaxy'
|
2
|
+
import type { UserThemeConfig } from 'valaxy-theme-yun'
|
3
3
|
|
4
4
|
// add icons what you will need
|
5
5
|
const safelist = [
|
@@ -9,123 +9,8 @@ const safelist = [
|
|
9
9
|
/**
|
10
10
|
* User Config
|
11
11
|
*/
|
12
|
-
export default
|
13
|
-
|
14
|
-
lang: 'zh-CN',
|
15
|
-
title: 'Valaxy Theme Yun',
|
16
|
-
author: {
|
17
|
-
name: '云游君',
|
18
|
-
},
|
19
|
-
description: 'Valaxy Theme Yun Preview.',
|
20
|
-
social: [
|
21
|
-
{
|
22
|
-
name: 'RSS',
|
23
|
-
link: '/atom.xml',
|
24
|
-
icon: 'i-ri-rss-line',
|
25
|
-
color: 'orange',
|
26
|
-
},
|
27
|
-
{
|
28
|
-
name: 'QQ 群 1050458482',
|
29
|
-
link: 'https://qm.qq.com/cgi-bin/qm/qr?k=kZJzggTTCf4SpvEQ8lXWoi5ZjhAx0ILZ&jump_from=webapi',
|
30
|
-
icon: 'i-ri-qq-line',
|
31
|
-
color: '#12B7F5',
|
32
|
-
},
|
33
|
-
{
|
34
|
-
name: 'GitHub',
|
35
|
-
link: 'https://github.com/YunYouJun',
|
36
|
-
icon: 'i-ri-github-line',
|
37
|
-
color: '#6e5494',
|
38
|
-
},
|
39
|
-
{
|
40
|
-
name: '微博',
|
41
|
-
link: 'https://weibo.com/jizhideyunyoujun',
|
42
|
-
icon: 'i-ri-weibo-line',
|
43
|
-
color: '#E6162D',
|
44
|
-
},
|
45
|
-
{
|
46
|
-
name: '豆瓣',
|
47
|
-
link: 'https://www.douban.com/people/yunyoujun/',
|
48
|
-
icon: 'i-ri-douban-line',
|
49
|
-
color: '#007722',
|
50
|
-
},
|
51
|
-
{
|
52
|
-
name: '网易云音乐',
|
53
|
-
link: 'https://music.163.com/#/user/home?id=247102977',
|
54
|
-
icon: 'i-ri-netease-cloud-music-line',
|
55
|
-
color: '#C20C0C',
|
56
|
-
},
|
57
|
-
{
|
58
|
-
name: '知乎',
|
59
|
-
link: 'https://www.zhihu.com/people/yunyoujun/',
|
60
|
-
icon: 'i-ri-zhihu-line',
|
61
|
-
color: '#0084FF',
|
62
|
-
},
|
63
|
-
{
|
64
|
-
name: '哔哩哔哩',
|
65
|
-
link: 'https://space.bilibili.com/1579790',
|
66
|
-
icon: 'i-ri-bilibili-line',
|
67
|
-
color: '#FF8EB3',
|
68
|
-
},
|
69
|
-
{
|
70
|
-
name: '微信公众号',
|
71
|
-
link: 'https://cdn.yunyoujun.cn/img/about/white-qrcode-and-search.jpg',
|
72
|
-
icon: 'i-ri-wechat-2-line',
|
73
|
-
color: '#1AAD19',
|
74
|
-
},
|
75
|
-
{
|
76
|
-
name: 'Twitter',
|
77
|
-
link: 'https://twitter.com/YunYouJun',
|
78
|
-
icon: 'i-ri-twitter-line',
|
79
|
-
color: '#1da1f2',
|
80
|
-
},
|
81
|
-
{
|
82
|
-
name: 'Telegram Channel',
|
83
|
-
link: 'https://t.me/elpsycn',
|
84
|
-
icon: 'i-ri-telegram-line',
|
85
|
-
color: '#0088CC',
|
86
|
-
},
|
87
|
-
{
|
88
|
-
name: 'E-Mail',
|
89
|
-
link: 'mailto:me@yunyoujun.cn',
|
90
|
-
icon: 'i-ri-mail-line',
|
91
|
-
color: '#8E71C1',
|
92
|
-
},
|
93
|
-
{
|
94
|
-
name: 'Travelling',
|
95
|
-
link: 'https://www.travellings.cn/go.html',
|
96
|
-
icon: 'i-ri-train-line',
|
97
|
-
color: 'var(--va-c-text)',
|
98
|
-
},
|
99
|
-
],
|
100
|
-
|
101
|
-
search: {
|
102
|
-
enable: false,
|
103
|
-
},
|
104
|
-
|
105
|
-
sponsor: {
|
106
|
-
enable: true,
|
107
|
-
title: '我很可爱,请给我钱!',
|
108
|
-
methods: [
|
109
|
-
{
|
110
|
-
name: '支付宝',
|
111
|
-
url: 'https://cdn.yunyoujun.cn/img/donate/alipay-qrcode.jpg',
|
112
|
-
color: '#00A3EE',
|
113
|
-
icon: 'i-ri-alipay-line',
|
114
|
-
},
|
115
|
-
{
|
116
|
-
name: 'QQ 支付',
|
117
|
-
url: 'https://cdn.yunyoujun.cn/img/donate/qqpay-qrcode.png',
|
118
|
-
color: '#12B7F5',
|
119
|
-
icon: 'i-ri-qq-line',
|
120
|
-
},
|
121
|
-
{
|
122
|
-
name: '微信支付',
|
123
|
-
url: 'https://cdn.yunyoujun.cn/img/donate/wechatpay-qrcode.jpg',
|
124
|
-
color: '#2DC100',
|
125
|
-
icon: 'i-ri-wechat-pay-line',
|
126
|
-
},
|
127
|
-
],
|
128
|
-
},
|
12
|
+
export default defineValaxyConfig<UserThemeConfig>({
|
13
|
+
// site config see site.config.ts
|
129
14
|
|
130
15
|
theme: 'yun',
|
131
16
|
|
@@ -133,6 +18,9 @@ export default defineConfig<ThemeConfig>({
|
|
133
18
|
banner: {
|
134
19
|
enable: true,
|
135
20
|
title: '云游君的小站',
|
21
|
+
cloud: {
|
22
|
+
enable: true,
|
23
|
+
},
|
136
24
|
},
|
137
25
|
|
138
26
|
pages: [
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# valaxy-addon-template
|
2
|
+
|
3
|
+
## Usage
|
4
|
+
|
5
|
+
```bash
|
6
|
+
npm i valaxy-addon-template
|
7
|
+
```
|
8
|
+
|
9
|
+
### 加载插件
|
10
|
+
|
11
|
+
```ts
|
12
|
+
import { defineValaxyConfig } from 'valaxy'
|
13
|
+
import { addonTemplate } from 'valaxy-addon-template'
|
14
|
+
|
15
|
+
export default defineValaxyConfig({
|
16
|
+
addons: [
|
17
|
+
addonTemplate(),
|
18
|
+
],
|
19
|
+
})
|
20
|
+
```
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './node'
|