create-valaxy 0.12.9 → 0.13.0-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-valaxy",
3
- "version": "0.12.9",
3
+ "version": "0.13.0-0",
4
4
  "description": "Create Starter Template for Valaxy",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
@@ -1,3 +1,6 @@
1
+ # valaxy
2
+ fuse-list.json
3
+
1
4
  # vite-ssg
2
5
  .vite-ssg-dist
3
6
  .vite-ssg-temp
@@ -11,8 +11,8 @@
11
11
  "serve": "vite preview"
12
12
  },
13
13
  "dependencies": {
14
- "valaxy": "0.12.9",
15
- "valaxy-theme-yun": "0.12.9"
14
+ "valaxy": "0.13.0-0",
15
+ "valaxy-theme-yun": "0.13.0-0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "typescript": "^4.8.4"
@@ -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 { defineConfig } from 'valaxy'
2
- import type { ThemeConfig } from 'valaxy-theme-yun'
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 defineConfig<ThemeConfig>({
13
- url: 'https://valaxy.site/',
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'
@@ -0,0 +1,8 @@
1
+ import { defineValaxyAddon } from 'valaxy'
2
+ import pkg from '../package.json'
3
+
4
+ export const addonTemplate = defineValaxyAddon(options => ({
5
+ name: pkg.name,
6
+ enable: true,
7
+ options,
8
+ }))
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "valaxy-addon-template",
3
+ "version": "0.0.1",
4
+ "description": "Template for Valaxy Addon.",
5
+ "repository": "https://github.com/YunYouJun/valaxy",
6
+ "keywords": [
7
+ "valaxy",
8
+ "addon",
9
+ "template"
10
+ ],
11
+ "main": "index.ts"
12
+ }