valaxy 0.18.8 → 0.18.10
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/client/components/ValaxyMd.vue +1 -1
- package/client/utils/router.ts +48 -0
- package/dist/{chunk-66YLAOXO.mjs → chunk-57MNPFIN.mjs} +3 -3
- package/dist/{chunk-YGG6G3RK.cjs → chunk-KIFZXMGL.cjs} +18 -18
- package/dist/{config-Kdq8Mya1.d.cts → config-D40lUB2J.d.cts} +62 -26
- package/dist/{config-Kdq8Mya1.d.ts → config-D40lUB2J.d.ts} +62 -26
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +4 -4
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +6 -3
- package/dist/types/index.d.ts +6 -3
- package/dist/types/index.mjs +1 -1
- package/package.json +18 -18
- package/types/config.ts +1 -1
- package/types/frontmatter/index.ts +2 -0
- package/types/frontmatter/page.ts +191 -0
- package/types/frontmatter/post.ts +103 -0
- package/types/index.ts +1 -0
- package/types/posts.ts +1 -253
- /package/dist/{chunk-TQB6BKEE.cjs → chunk-EKEE6AAY.cjs} +0 -0
- /package/dist/{chunk-CZRL2G4O.mjs → chunk-OE2XGI4S.mjs} +0 -0
|
@@ -49,7 +49,6 @@ interface Photo {
|
|
|
49
49
|
caption: string;
|
|
50
50
|
desc: string;
|
|
51
51
|
}
|
|
52
|
-
type ExcerptType = 'md' | 'html' | 'text' | 'ai';
|
|
53
52
|
interface PageFrontMatter extends Record<string, any> {
|
|
54
53
|
/**
|
|
55
54
|
* Path of post
|
|
@@ -71,12 +70,6 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
71
70
|
* i18n
|
|
72
71
|
*/
|
|
73
72
|
lang: string;
|
|
74
|
-
/**
|
|
75
|
-
* TODO
|
|
76
|
-
* Read Time
|
|
77
|
-
* @description 阅读时长
|
|
78
|
-
*/
|
|
79
|
-
duration: string;
|
|
80
73
|
/**
|
|
81
74
|
* @description Author
|
|
82
75
|
* @description:zh-CN 作者
|
|
@@ -109,16 +102,24 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
109
102
|
*/
|
|
110
103
|
aside: boolean;
|
|
111
104
|
/**
|
|
112
|
-
*
|
|
113
|
-
* @description
|
|
105
|
+
* @description:en-US Custom Markdown class
|
|
106
|
+
* @description:zh-CN 自定义 Markdown 样式
|
|
107
|
+
* @default 'markdown-body'
|
|
114
108
|
*/
|
|
115
|
-
|
|
109
|
+
markdownClass: string;
|
|
110
|
+
/**
|
|
111
|
+
* @description:en-US Post title class
|
|
112
|
+
* @description:zh-CN 文章标题样式
|
|
113
|
+
*/
|
|
114
|
+
pageTitleClass: string;
|
|
116
115
|
/**
|
|
117
116
|
* icon before title
|
|
117
|
+
* @description 标题前的图标
|
|
118
118
|
*/
|
|
119
119
|
icon: string;
|
|
120
120
|
/**
|
|
121
121
|
* title color
|
|
122
|
+
* @deprecated Please use `pageTitleClass` | `postTitleClass` instead
|
|
122
123
|
*/
|
|
123
124
|
color: string;
|
|
124
125
|
/**
|
|
@@ -132,14 +133,17 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
132
133
|
end: boolean;
|
|
133
134
|
/**
|
|
134
135
|
* use aplayer
|
|
136
|
+
* @url https://aplayer.js.org/
|
|
135
137
|
*/
|
|
136
138
|
aplayer: boolean;
|
|
137
139
|
/**
|
|
138
140
|
* use katex
|
|
141
|
+
* @url https://katex.org/
|
|
139
142
|
*/
|
|
140
143
|
katex: boolean;
|
|
141
144
|
/**
|
|
142
145
|
* use codepen
|
|
146
|
+
* @url https://codepen.io/
|
|
143
147
|
*/
|
|
144
148
|
codepen: boolean;
|
|
145
149
|
/**
|
|
@@ -170,6 +174,9 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
170
174
|
*/
|
|
171
175
|
gallery_password?: string;
|
|
172
176
|
/**
|
|
177
|
+
* @en
|
|
178
|
+
* @description encrypted content
|
|
179
|
+
*
|
|
173
180
|
* @description:zh-CN 加密后的内容
|
|
174
181
|
*/
|
|
175
182
|
encryptedContent?: string;
|
|
@@ -192,20 +199,31 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
192
199
|
*/
|
|
193
200
|
from?: string | string[];
|
|
194
201
|
}
|
|
202
|
+
|
|
203
|
+
type ExcerptType = 'md' | 'html' | 'text' | 'ai';
|
|
195
204
|
interface PostFrontMatter extends PageFrontMatter {
|
|
196
205
|
/**
|
|
197
|
-
* post
|
|
206
|
+
* @description:en-US Custom post title class in post list
|
|
207
|
+
* @description:zh-CN 文章列表中 自定义标题样式
|
|
208
|
+
*/
|
|
209
|
+
postTitleClass: string;
|
|
210
|
+
/**
|
|
211
|
+
* @description:en-US Post Card Type, can be bilibili/yuque/... (need theme support)
|
|
212
|
+
* @description:zh-CN 卡片类型,可以是 bilibili/yuque/... (需主题支持)
|
|
198
213
|
*/
|
|
199
|
-
type: string;
|
|
214
|
+
type: 'bilibili' | 'yuque' | string;
|
|
200
215
|
/**
|
|
201
|
-
* override url, and jump directly
|
|
216
|
+
* @en override url, and jump directly
|
|
217
|
+
* @zh 覆盖 post url,直接跳转
|
|
202
218
|
*/
|
|
203
219
|
url: string;
|
|
204
220
|
/**
|
|
205
|
-
* @description
|
|
221
|
+
* @description:en-US custom excerpt, `excerpt_type` will be invalid
|
|
222
|
+
* @description 手动指定摘要,此时 `excerpt_type` 将会无效
|
|
206
223
|
*/
|
|
207
224
|
excerpt: string;
|
|
208
225
|
/**
|
|
226
|
+
* @description 摘要类型
|
|
209
227
|
* @default 'html'
|
|
210
228
|
* render type of excerpt
|
|
211
229
|
* - md: render as raw markdown
|
|
@@ -214,27 +232,28 @@ interface PostFrontMatter extends PageFrontMatter {
|
|
|
214
232
|
*/
|
|
215
233
|
excerpt_type: 'md' | 'text' | 'html' | 'ai';
|
|
216
234
|
/**
|
|
217
|
-
* Category
|
|
218
|
-
* @description 分类,若为数组,则按顺序代表多层文件夹
|
|
235
|
+
* @description:en-US Category, if it is an array, it represents multiple folders in order
|
|
236
|
+
* @description:zh-CN 分类,若为数组,则按顺序代表多层文件夹
|
|
219
237
|
*/
|
|
220
238
|
categories: string | string[];
|
|
221
239
|
/**
|
|
222
|
-
* Tags
|
|
223
|
-
* @description 标签,可以有多个
|
|
240
|
+
* @description:en-US Tags, can have multiple
|
|
241
|
+
* @description:zh-CN 标签,可以有多个
|
|
224
242
|
*/
|
|
225
243
|
tags: string[];
|
|
226
244
|
/**
|
|
227
|
-
* display
|
|
228
|
-
* @description 是否显示前一篇、后一篇导航
|
|
245
|
+
* @description:en-US Whether to display the previous and next navigation
|
|
246
|
+
* @description:zh-CN 是否显示前一篇、后一篇导航
|
|
229
247
|
*/
|
|
230
248
|
nav: boolean;
|
|
231
249
|
/**
|
|
232
|
-
*
|
|
250
|
+
* @description:en-US Pin to top, the larger the number, the closer to the front
|
|
251
|
+
* @description:zh-CN 置顶,数字越大越靠前
|
|
233
252
|
*/
|
|
234
253
|
top: number;
|
|
235
254
|
/**
|
|
236
|
-
* is draft
|
|
237
|
-
* @description
|
|
255
|
+
* @description:en-US Whether it is a draft, it will only be displayed during development
|
|
256
|
+
* @description:zh-CN 是否为草稿,将仅在开发时被展示
|
|
238
257
|
*/
|
|
239
258
|
draft: boolean;
|
|
240
259
|
/**
|
|
@@ -245,6 +264,7 @@ interface PostFrontMatter extends PageFrontMatter {
|
|
|
245
264
|
*/
|
|
246
265
|
hide: 'index' | boolean;
|
|
247
266
|
/**
|
|
267
|
+
* @en
|
|
248
268
|
* when the post is updated more than 30 days ago, show a warning
|
|
249
269
|
* default 30 days, you can set `time_warning` in frontmatter to change it
|
|
250
270
|
*
|
|
@@ -254,9 +274,25 @@ interface PostFrontMatter extends PageFrontMatter {
|
|
|
254
274
|
* @example 3600000
|
|
255
275
|
*/
|
|
256
276
|
time_warning: boolean | number;
|
|
277
|
+
/**
|
|
278
|
+
* @protected
|
|
279
|
+
* @see https://valaxy.site/guide/config/#%E9%98%85%E8%AF%BB%E7%BB%9F%E8%AE%A1
|
|
280
|
+
* @tutorial ⚠️ DO NOT SET MANUALLY (generated by `site.config.ts` -> `statistics.enable: true`)
|
|
281
|
+
* You can use `statistics.readTime.speed` to change the speed of reading time.
|
|
282
|
+
* @description:en-US Reading time
|
|
283
|
+
* @description:zh-CN 阅读时间
|
|
284
|
+
*/
|
|
285
|
+
readingTime: number;
|
|
286
|
+
/**
|
|
287
|
+
* @protected
|
|
288
|
+
* @see https://valaxy.site/guide/config/#%E9%98%85%E8%AF%BB%E7%BB%9F%E8%AE%A1
|
|
289
|
+
* @tutorial ⚠️ DO NOT SET MANUALLY (generated by `site.config.ts` -> `statistics.enable: true`)
|
|
290
|
+
* You need enable `statistics` in site config to use this feature.
|
|
291
|
+
* @description:en-US Word count
|
|
292
|
+
* @description:zh-CN 字数统计
|
|
293
|
+
*/
|
|
294
|
+
wordCount: string;
|
|
257
295
|
}
|
|
258
|
-
type Page = Partial<PageFrontMatter>;
|
|
259
|
-
type Post = Partial<PostFrontMatter>;
|
|
260
296
|
|
|
261
297
|
interface FuseListItem {
|
|
262
298
|
title: string;
|
|
@@ -628,4 +664,4 @@ type UserSiteConfig = PartialDeep<SiteConfig>;
|
|
|
628
664
|
*/
|
|
629
665
|
type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
|
|
630
666
|
|
|
631
|
-
export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type RedirectRule as R, type SocialLink as S, type UserSiteConfig as U, type ValaxyAddon as V, type
|
|
667
|
+
export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type RedirectRule as R, type SocialLink as S, type UserSiteConfig as U, type ValaxyAddon as V, type PageFrontMatter as a, type PostFrontMatter as b, type RedirectItem as c, type SiteConfig as d, type RuntimeConfig as e, type Pkg as f, type ValaxyConfig as g, type UserValaxyConfig as h, type Photo as i };
|
|
@@ -49,7 +49,6 @@ interface Photo {
|
|
|
49
49
|
caption: string;
|
|
50
50
|
desc: string;
|
|
51
51
|
}
|
|
52
|
-
type ExcerptType = 'md' | 'html' | 'text' | 'ai';
|
|
53
52
|
interface PageFrontMatter extends Record<string, any> {
|
|
54
53
|
/**
|
|
55
54
|
* Path of post
|
|
@@ -71,12 +70,6 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
71
70
|
* i18n
|
|
72
71
|
*/
|
|
73
72
|
lang: string;
|
|
74
|
-
/**
|
|
75
|
-
* TODO
|
|
76
|
-
* Read Time
|
|
77
|
-
* @description 阅读时长
|
|
78
|
-
*/
|
|
79
|
-
duration: string;
|
|
80
73
|
/**
|
|
81
74
|
* @description Author
|
|
82
75
|
* @description:zh-CN 作者
|
|
@@ -109,16 +102,24 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
109
102
|
*/
|
|
110
103
|
aside: boolean;
|
|
111
104
|
/**
|
|
112
|
-
*
|
|
113
|
-
* @description
|
|
105
|
+
* @description:en-US Custom Markdown class
|
|
106
|
+
* @description:zh-CN 自定义 Markdown 样式
|
|
107
|
+
* @default 'markdown-body'
|
|
114
108
|
*/
|
|
115
|
-
|
|
109
|
+
markdownClass: string;
|
|
110
|
+
/**
|
|
111
|
+
* @description:en-US Post title class
|
|
112
|
+
* @description:zh-CN 文章标题样式
|
|
113
|
+
*/
|
|
114
|
+
pageTitleClass: string;
|
|
116
115
|
/**
|
|
117
116
|
* icon before title
|
|
117
|
+
* @description 标题前的图标
|
|
118
118
|
*/
|
|
119
119
|
icon: string;
|
|
120
120
|
/**
|
|
121
121
|
* title color
|
|
122
|
+
* @deprecated Please use `pageTitleClass` | `postTitleClass` instead
|
|
122
123
|
*/
|
|
123
124
|
color: string;
|
|
124
125
|
/**
|
|
@@ -132,14 +133,17 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
132
133
|
end: boolean;
|
|
133
134
|
/**
|
|
134
135
|
* use aplayer
|
|
136
|
+
* @url https://aplayer.js.org/
|
|
135
137
|
*/
|
|
136
138
|
aplayer: boolean;
|
|
137
139
|
/**
|
|
138
140
|
* use katex
|
|
141
|
+
* @url https://katex.org/
|
|
139
142
|
*/
|
|
140
143
|
katex: boolean;
|
|
141
144
|
/**
|
|
142
145
|
* use codepen
|
|
146
|
+
* @url https://codepen.io/
|
|
143
147
|
*/
|
|
144
148
|
codepen: boolean;
|
|
145
149
|
/**
|
|
@@ -170,6 +174,9 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
170
174
|
*/
|
|
171
175
|
gallery_password?: string;
|
|
172
176
|
/**
|
|
177
|
+
* @en
|
|
178
|
+
* @description encrypted content
|
|
179
|
+
*
|
|
173
180
|
* @description:zh-CN 加密后的内容
|
|
174
181
|
*/
|
|
175
182
|
encryptedContent?: string;
|
|
@@ -192,20 +199,31 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
192
199
|
*/
|
|
193
200
|
from?: string | string[];
|
|
194
201
|
}
|
|
202
|
+
|
|
203
|
+
type ExcerptType = 'md' | 'html' | 'text' | 'ai';
|
|
195
204
|
interface PostFrontMatter extends PageFrontMatter {
|
|
196
205
|
/**
|
|
197
|
-
* post
|
|
206
|
+
* @description:en-US Custom post title class in post list
|
|
207
|
+
* @description:zh-CN 文章列表中 自定义标题样式
|
|
208
|
+
*/
|
|
209
|
+
postTitleClass: string;
|
|
210
|
+
/**
|
|
211
|
+
* @description:en-US Post Card Type, can be bilibili/yuque/... (need theme support)
|
|
212
|
+
* @description:zh-CN 卡片类型,可以是 bilibili/yuque/... (需主题支持)
|
|
198
213
|
*/
|
|
199
|
-
type: string;
|
|
214
|
+
type: 'bilibili' | 'yuque' | string;
|
|
200
215
|
/**
|
|
201
|
-
* override url, and jump directly
|
|
216
|
+
* @en override url, and jump directly
|
|
217
|
+
* @zh 覆盖 post url,直接跳转
|
|
202
218
|
*/
|
|
203
219
|
url: string;
|
|
204
220
|
/**
|
|
205
|
-
* @description
|
|
221
|
+
* @description:en-US custom excerpt, `excerpt_type` will be invalid
|
|
222
|
+
* @description 手动指定摘要,此时 `excerpt_type` 将会无效
|
|
206
223
|
*/
|
|
207
224
|
excerpt: string;
|
|
208
225
|
/**
|
|
226
|
+
* @description 摘要类型
|
|
209
227
|
* @default 'html'
|
|
210
228
|
* render type of excerpt
|
|
211
229
|
* - md: render as raw markdown
|
|
@@ -214,27 +232,28 @@ interface PostFrontMatter extends PageFrontMatter {
|
|
|
214
232
|
*/
|
|
215
233
|
excerpt_type: 'md' | 'text' | 'html' | 'ai';
|
|
216
234
|
/**
|
|
217
|
-
* Category
|
|
218
|
-
* @description 分类,若为数组,则按顺序代表多层文件夹
|
|
235
|
+
* @description:en-US Category, if it is an array, it represents multiple folders in order
|
|
236
|
+
* @description:zh-CN 分类,若为数组,则按顺序代表多层文件夹
|
|
219
237
|
*/
|
|
220
238
|
categories: string | string[];
|
|
221
239
|
/**
|
|
222
|
-
* Tags
|
|
223
|
-
* @description 标签,可以有多个
|
|
240
|
+
* @description:en-US Tags, can have multiple
|
|
241
|
+
* @description:zh-CN 标签,可以有多个
|
|
224
242
|
*/
|
|
225
243
|
tags: string[];
|
|
226
244
|
/**
|
|
227
|
-
* display
|
|
228
|
-
* @description 是否显示前一篇、后一篇导航
|
|
245
|
+
* @description:en-US Whether to display the previous and next navigation
|
|
246
|
+
* @description:zh-CN 是否显示前一篇、后一篇导航
|
|
229
247
|
*/
|
|
230
248
|
nav: boolean;
|
|
231
249
|
/**
|
|
232
|
-
*
|
|
250
|
+
* @description:en-US Pin to top, the larger the number, the closer to the front
|
|
251
|
+
* @description:zh-CN 置顶,数字越大越靠前
|
|
233
252
|
*/
|
|
234
253
|
top: number;
|
|
235
254
|
/**
|
|
236
|
-
* is draft
|
|
237
|
-
* @description
|
|
255
|
+
* @description:en-US Whether it is a draft, it will only be displayed during development
|
|
256
|
+
* @description:zh-CN 是否为草稿,将仅在开发时被展示
|
|
238
257
|
*/
|
|
239
258
|
draft: boolean;
|
|
240
259
|
/**
|
|
@@ -245,6 +264,7 @@ interface PostFrontMatter extends PageFrontMatter {
|
|
|
245
264
|
*/
|
|
246
265
|
hide: 'index' | boolean;
|
|
247
266
|
/**
|
|
267
|
+
* @en
|
|
248
268
|
* when the post is updated more than 30 days ago, show a warning
|
|
249
269
|
* default 30 days, you can set `time_warning` in frontmatter to change it
|
|
250
270
|
*
|
|
@@ -254,9 +274,25 @@ interface PostFrontMatter extends PageFrontMatter {
|
|
|
254
274
|
* @example 3600000
|
|
255
275
|
*/
|
|
256
276
|
time_warning: boolean | number;
|
|
277
|
+
/**
|
|
278
|
+
* @protected
|
|
279
|
+
* @see https://valaxy.site/guide/config/#%E9%98%85%E8%AF%BB%E7%BB%9F%E8%AE%A1
|
|
280
|
+
* @tutorial ⚠️ DO NOT SET MANUALLY (generated by `site.config.ts` -> `statistics.enable: true`)
|
|
281
|
+
* You can use `statistics.readTime.speed` to change the speed of reading time.
|
|
282
|
+
* @description:en-US Reading time
|
|
283
|
+
* @description:zh-CN 阅读时间
|
|
284
|
+
*/
|
|
285
|
+
readingTime: number;
|
|
286
|
+
/**
|
|
287
|
+
* @protected
|
|
288
|
+
* @see https://valaxy.site/guide/config/#%E9%98%85%E8%AF%BB%E7%BB%9F%E8%AE%A1
|
|
289
|
+
* @tutorial ⚠️ DO NOT SET MANUALLY (generated by `site.config.ts` -> `statistics.enable: true`)
|
|
290
|
+
* You need enable `statistics` in site config to use this feature.
|
|
291
|
+
* @description:en-US Word count
|
|
292
|
+
* @description:zh-CN 字数统计
|
|
293
|
+
*/
|
|
294
|
+
wordCount: string;
|
|
257
295
|
}
|
|
258
|
-
type Page = Partial<PageFrontMatter>;
|
|
259
|
-
type Post = Partial<PostFrontMatter>;
|
|
260
296
|
|
|
261
297
|
interface FuseListItem {
|
|
262
298
|
title: string;
|
|
@@ -628,4 +664,4 @@ type UserSiteConfig = PartialDeep<SiteConfig>;
|
|
|
628
664
|
*/
|
|
629
665
|
type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
|
|
630
666
|
|
|
631
|
-
export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type RedirectRule as R, type SocialLink as S, type UserSiteConfig as U, type ValaxyAddon as V, type
|
|
667
|
+
export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type RedirectRule as R, type SocialLink as S, type UserSiteConfig as U, type ValaxyAddon as V, type PageFrontMatter as a, type PostFrontMatter as b, type RedirectItem as c, type SiteConfig as d, type RuntimeConfig as e, type Pkg as f, type ValaxyConfig as g, type UserValaxyConfig as h, type Photo as i };
|
package/dist/node/cli/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKIFZXMGLcjs = require('../../chunk-KIFZXMGL.cjs');require('../../chunk-EKEE6AAY.cjs');exports.cli = _chunkKIFZXMGLcjs.T; exports.run = _chunkKIFZXMGLcjs.U;
|
package/dist/node/cli/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
import{T as a,U as b}from"../../chunk-
|
|
2
|
+
import{T as a,U as b}from"../../chunk-57MNPFIN.mjs";import"../../chunk-OE2XGI4S.mjs";export{a as cli,b as run};
|
package/dist/node/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKIFZXMGLcjs = require('../chunk-KIFZXMGL.cjs');require('../chunk-EKEE6AAY.cjs');exports.ALL_ROUTE = _chunkKIFZXMGLcjs.f; exports.EXCERPT_SEPARATOR = _chunkKIFZXMGLcjs.c; exports.EXTERNAL_URL_RE = _chunkKIFZXMGLcjs.d; exports.PATHNAME_PROTOCOL_RE = _chunkKIFZXMGLcjs.e; exports.ViteValaxyPlugins = _chunkKIFZXMGLcjs.N; exports.build = _chunkKIFZXMGLcjs.O; exports.cli = _chunkKIFZXMGLcjs.T; exports.createServer = _chunkKIFZXMGLcjs.S; exports.createValaxyLoader = _chunkKIFZXMGLcjs.M; exports.customElements = _chunkKIFZXMGLcjs.g; exports.defaultSiteConfig = _chunkKIFZXMGLcjs.p; exports.defaultValaxyConfig = _chunkKIFZXMGLcjs.t; exports.defineAddon = _chunkKIFZXMGLcjs.A; exports.defineConfig = _chunkKIFZXMGLcjs.v; exports.defineSiteConfig = _chunkKIFZXMGLcjs.q; exports.defineTheme = _chunkKIFZXMGLcjs.F; exports.defineUnoSetup = _chunkKIFZXMGLcjs.G; exports.defineValaxyAddon = _chunkKIFZXMGLcjs.z; exports.defineValaxyConfig = _chunkKIFZXMGLcjs.u; exports.defineValaxyTheme = _chunkKIFZXMGLcjs.E; exports.ensurePrefix = _chunkKIFZXMGLcjs.j; exports.generateClientRedirects = _chunkKIFZXMGLcjs.R; exports.getGitTimestamp = _chunkKIFZXMGLcjs.a; exports.getIndexHtml = _chunkKIFZXMGLcjs.L; exports.isExternal = _chunkKIFZXMGLcjs.h; exports.isPath = _chunkKIFZXMGLcjs.l; exports.loadConfig = _chunkKIFZXMGLcjs.n; exports.loadConfigFromFile = _chunkKIFZXMGLcjs.o; exports.mergeValaxyConfig = _chunkKIFZXMGLcjs.x; exports.mergeViteConfigs = _chunkKIFZXMGLcjs.K; exports.postProcessForSSG = _chunkKIFZXMGLcjs.Q; exports.processValaxyOptions = _chunkKIFZXMGLcjs.H; exports.resolveAddonsConfig = _chunkKIFZXMGLcjs.B; exports.resolveImportPath = _chunkKIFZXMGLcjs.b; exports.resolveOptions = _chunkKIFZXMGLcjs.I; exports.resolveSiteConfig = _chunkKIFZXMGLcjs.s; exports.resolveSiteConfigFromRoot = _chunkKIFZXMGLcjs.r; exports.resolveThemeConfigFromRoot = _chunkKIFZXMGLcjs.C; exports.resolveThemeValaxyConfig = _chunkKIFZXMGLcjs.J; exports.resolveUserThemeConfig = _chunkKIFZXMGLcjs.D; exports.resolveValaxyConfig = _chunkKIFZXMGLcjs.y; exports.resolveValaxyConfigFromRoot = _chunkKIFZXMGLcjs.w; exports.run = _chunkKIFZXMGLcjs.U; exports.slash = _chunkKIFZXMGLcjs.i; exports.ssgBuild = _chunkKIFZXMGLcjs.P; exports.toAtFS = _chunkKIFZXMGLcjs.k; exports.transformObject = _chunkKIFZXMGLcjs.m;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -23,7 +23,7 @@ import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';
|
|
|
23
23
|
import { TocPluginOptions } from '@mdit-vue/plugin-toc';
|
|
24
24
|
import { Awaitable } from '@antfu/utils';
|
|
25
25
|
import * as defu from 'defu';
|
|
26
|
-
import { P as PartialDeep$1 } from '../config-
|
|
26
|
+
import { P as PartialDeep$1 } from '../config-D40lUB2J.cjs';
|
|
27
27
|
import 'yargs';
|
|
28
28
|
import 'medium-zoom';
|
|
29
29
|
import '@vueuse/integrations/useFuse';
|
|
@@ -427,11 +427,11 @@ declare const mergeValaxyConfig: <Source extends {
|
|
|
427
427
|
[x: string]: any;
|
|
428
428
|
[x: number]: any;
|
|
429
429
|
[x: symbol]: any;
|
|
430
|
-
}, Defaults extends
|
|
430
|
+
}, Defaults extends Array<{
|
|
431
431
|
[x: string]: any;
|
|
432
432
|
[x: number]: any;
|
|
433
433
|
[x: symbol]: any;
|
|
434
|
-
} | (number | boolean | any[] | Record<never, any> | null | undefined)
|
|
434
|
+
} | (number | boolean | any[] | Record<never, any> | null | undefined)>>(source: Source, ...defaults: Defaults) => defu.Defu<Source, Defaults>;
|
|
435
435
|
/**
|
|
436
436
|
* resolve user valaxy config
|
|
437
437
|
* options only have userRoot
|
|
@@ -446,7 +446,7 @@ declare function resolveValaxyConfig(options: ValaxyEntryOptions): Promise<{
|
|
|
446
446
|
declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
|
|
447
447
|
setup?: ValaxyAddonResolver['setup'];
|
|
448
448
|
}): (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
|
|
449
|
-
setup?: ValaxyAddonResolver[
|
|
449
|
+
setup?: ValaxyAddonResolver["setup"];
|
|
450
450
|
};
|
|
451
451
|
declare const defineAddon: typeof defineValaxyAddon;
|
|
452
452
|
declare function resolveAddonsConfig(addons: ValaxyAddonResolver[], options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
|
package/dist/node/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';
|
|
|
23
23
|
import { TocPluginOptions } from '@mdit-vue/plugin-toc';
|
|
24
24
|
import { Awaitable } from '@antfu/utils';
|
|
25
25
|
import * as defu from 'defu';
|
|
26
|
-
import { P as PartialDeep$1 } from '../config-
|
|
26
|
+
import { P as PartialDeep$1 } from '../config-D40lUB2J.js';
|
|
27
27
|
import 'yargs';
|
|
28
28
|
import 'medium-zoom';
|
|
29
29
|
import '@vueuse/integrations/useFuse';
|
|
@@ -427,11 +427,11 @@ declare const mergeValaxyConfig: <Source extends {
|
|
|
427
427
|
[x: string]: any;
|
|
428
428
|
[x: number]: any;
|
|
429
429
|
[x: symbol]: any;
|
|
430
|
-
}, Defaults extends
|
|
430
|
+
}, Defaults extends Array<{
|
|
431
431
|
[x: string]: any;
|
|
432
432
|
[x: number]: any;
|
|
433
433
|
[x: symbol]: any;
|
|
434
|
-
} | (number | boolean | any[] | Record<never, any> | null | undefined)
|
|
434
|
+
} | (number | boolean | any[] | Record<never, any> | null | undefined)>>(source: Source, ...defaults: Defaults) => defu.Defu<Source, Defaults>;
|
|
435
435
|
/**
|
|
436
436
|
* resolve user valaxy config
|
|
437
437
|
* options only have userRoot
|
|
@@ -446,7 +446,7 @@ declare function resolveValaxyConfig(options: ValaxyEntryOptions): Promise<{
|
|
|
446
446
|
declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
|
|
447
447
|
setup?: ValaxyAddonResolver['setup'];
|
|
448
448
|
}): (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
|
|
449
|
-
setup?: ValaxyAddonResolver[
|
|
449
|
+
setup?: ValaxyAddonResolver["setup"];
|
|
450
450
|
};
|
|
451
451
|
declare const defineAddon: typeof defineValaxyAddon;
|
|
452
452
|
declare function resolveAddonsConfig(addons: ValaxyAddonResolver[], options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-
|
|
2
|
+
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-57MNPFIN.mjs";import"../chunk-OE2XGI4S.mjs";export{f as ALL_ROUTE,c as EXCERPT_SEPARATOR,d as EXTERNAL_URL_RE,e as PATHNAME_PROTOCOL_RE,N as ViteValaxyPlugins,O as build,T as cli,S as createServer,M as createValaxyLoader,g as customElements,p as defaultSiteConfig,t as defaultValaxyConfig,A as defineAddon,v as defineConfig,q as defineSiteConfig,F as defineTheme,G as defineUnoSetup,z as defineValaxyAddon,u as defineValaxyConfig,E as defineValaxyTheme,j as ensurePrefix,R as generateClientRedirects,a as getGitTimestamp,L as getIndexHtml,h as isExternal,l as isPath,n as loadConfig,o as loadConfigFromFile,x as mergeValaxyConfig,K as mergeViteConfigs,Q as postProcessForSSG,H as processValaxyOptions,B as resolveAddonsConfig,b as resolveImportPath,I as resolveOptions,s as resolveSiteConfig,r as resolveSiteConfigFromRoot,C as resolveThemeConfigFromRoot,J as resolveThemeValaxyConfig,D as resolveUserThemeConfig,y as resolveValaxyConfig,w as resolveValaxyConfigFromRoot,U as run,i as slash,P as ssgBuild,k as toAtFS,m as transformObject};
|
package/dist/types/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var _chunkEKEE6AAYcjs = require('../chunk-EKEE6AAY.cjs');_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem,
|
|
1
|
+
import { a as PageFrontMatter, b as PostFrontMatter } from '../config-D40lUB2J.cjs';
|
|
2
|
+
export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, P as PartialDeep, i as Photo, f as Pkg, c as RedirectItem, R as RedirectRule, e as RuntimeConfig, d as SiteConfig, S as SocialLink, U as UserSiteConfig, h as UserValaxyConfig, V as ValaxyAddon, g as ValaxyConfig } from '../config-D40lUB2J.cjs';
|
|
3
3
|
import 'medium-zoom';
|
|
4
4
|
import '@vueuse/integrations/useFuse';
|
|
5
5
|
import 'vanilla-lazyload';
|
|
6
6
|
import 'vue-router';
|
|
7
7
|
import '@unhead/schema-org';
|
|
8
8
|
|
|
9
|
+
type Page = Partial<PageFrontMatter>;
|
|
10
|
+
type Post = Partial<PostFrontMatter>;
|
|
11
|
+
|
|
9
12
|
type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
|
|
10
13
|
interface Header {
|
|
11
14
|
/**
|
|
@@ -51,4 +54,4 @@ interface PageDataPayload {
|
|
|
51
54
|
}
|
|
52
55
|
type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
|
|
53
56
|
|
|
54
|
-
export { type CleanUrlsMode, type HeadConfig, type Header, type PageData, type PageDataPayload, Post };
|
|
57
|
+
export { type CleanUrlsMode, type HeadConfig, type Header, type Page, type PageData, type PageDataPayload, PageFrontMatter, type Post, PostFrontMatter };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem,
|
|
1
|
+
import { a as PageFrontMatter, b as PostFrontMatter } from '../config-D40lUB2J.js';
|
|
2
|
+
export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, P as PartialDeep, i as Photo, f as Pkg, c as RedirectItem, R as RedirectRule, e as RuntimeConfig, d as SiteConfig, S as SocialLink, U as UserSiteConfig, h as UserValaxyConfig, V as ValaxyAddon, g as ValaxyConfig } from '../config-D40lUB2J.js';
|
|
3
3
|
import 'medium-zoom';
|
|
4
4
|
import '@vueuse/integrations/useFuse';
|
|
5
5
|
import 'vanilla-lazyload';
|
|
6
6
|
import 'vue-router';
|
|
7
7
|
import '@unhead/schema-org';
|
|
8
8
|
|
|
9
|
+
type Page = Partial<PageFrontMatter>;
|
|
10
|
+
type Post = Partial<PostFrontMatter>;
|
|
11
|
+
|
|
9
12
|
type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
|
|
10
13
|
interface Header {
|
|
11
14
|
/**
|
|
@@ -51,4 +54,4 @@ interface PageDataPayload {
|
|
|
51
54
|
}
|
|
52
55
|
type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
|
|
53
56
|
|
|
54
|
-
export { type CleanUrlsMode, type HeadConfig, type Header, type PageData, type PageDataPayload, Post };
|
|
57
|
+
export { type CleanUrlsMode, type HeadConfig, type Header, type Page, type PageData, type PageDataPayload, PageFrontMatter, type Post, PostFrontMatter };
|
package/dist/types/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
import{d as e}from"../chunk-
|
|
2
|
+
import{d as e}from"../chunk-OE2XGI4S.mjs";e();e();e();e();e();e();e();e();e();e();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.18.
|
|
4
|
+
"version": "0.18.10",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -57,21 +57,21 @@
|
|
|
57
57
|
"node": "^14.18.0 || >=16.0.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@antfu/utils": "^0.7.
|
|
60
|
+
"@antfu/utils": "^0.7.10",
|
|
61
61
|
"@ctrl/tinycolor": "^4.1.0",
|
|
62
|
-
"@iconify-json/carbon": "^1.1.
|
|
62
|
+
"@iconify-json/carbon": "^1.1.36",
|
|
63
63
|
"@iconify-json/ri": "^1.1.21",
|
|
64
64
|
"@intlify/unplugin-vue-i18n": "^4.0.0",
|
|
65
65
|
"@types/katex": "^0.16.7",
|
|
66
|
-
"@unhead/addons": "^1.9.
|
|
67
|
-
"@unhead/schema-org": "^1.9.
|
|
68
|
-
"@unhead/vue": "^1.9.
|
|
66
|
+
"@unhead/addons": "^1.9.14",
|
|
67
|
+
"@unhead/schema-org": "^1.9.14",
|
|
68
|
+
"@unhead/vue": "^1.9.14",
|
|
69
69
|
"@vitejs/plugin-vue": "^5.0.5",
|
|
70
|
-
"@vue/devtools-api": "^7.3.
|
|
70
|
+
"@vue/devtools-api": "^7.3.5",
|
|
71
71
|
"@vueuse/core": "^10.11.0",
|
|
72
72
|
"@vueuse/integrations": "^10.11.0",
|
|
73
73
|
"consola": "^3.2.3",
|
|
74
|
-
"critters": "^0.0.
|
|
74
|
+
"critters": "^0.0.24",
|
|
75
75
|
"cross-spawn": "^7.0.3",
|
|
76
76
|
"css-i18n": "^0.0.2",
|
|
77
77
|
"date-fns": "^3.6.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"jiti": "^1.21.6",
|
|
91
91
|
"js-base64": "^3.7.7",
|
|
92
92
|
"katex": "^0.16.10",
|
|
93
|
-
"lru-cache": "^10.
|
|
93
|
+
"lru-cache": "^10.3.0",
|
|
94
94
|
"markdown-it": "^14.1.0",
|
|
95
95
|
"markdown-it-anchor": "^9.0.1",
|
|
96
96
|
"markdown-it-attrs": "^4.1.6",
|
|
@@ -109,24 +109,24 @@
|
|
|
109
109
|
"pathe": "^1.1.2",
|
|
110
110
|
"pinia": "^2.1.7",
|
|
111
111
|
"qrcode": "^1.5.3",
|
|
112
|
-
"sass": "^1.77.
|
|
113
|
-
"shiki": "^1.
|
|
112
|
+
"sass": "^1.77.6",
|
|
113
|
+
"shiki": "^1.10.0",
|
|
114
114
|
"star-markdown-css": "^0.4.2",
|
|
115
115
|
"unocss": "^0.61.0",
|
|
116
|
-
"unplugin-vue-components": "^0.27.
|
|
116
|
+
"unplugin-vue-components": "^0.27.2",
|
|
117
117
|
"unplugin-vue-markdown": "^0.26.2",
|
|
118
|
-
"unplugin-vue-router": "^0.
|
|
118
|
+
"unplugin-vue-router": "^0.10.0",
|
|
119
119
|
"vanilla-lazyload": "^19.1.3",
|
|
120
|
-
"vite": "^5.3.
|
|
121
|
-
"vite-plugin-vue-devtools": "^7.3.
|
|
120
|
+
"vite": "^5.3.2",
|
|
121
|
+
"vite-plugin-vue-devtools": "^7.3.5",
|
|
122
122
|
"vite-plugin-vue-layouts": "0.11.0",
|
|
123
123
|
"vite-ssg": "0.23.7",
|
|
124
124
|
"vite-ssg-sitemap": "0.6.1",
|
|
125
|
-
"vue": "^3.4.
|
|
125
|
+
"vue": "^3.4.31",
|
|
126
126
|
"vue-i18n": "^9.13.1",
|
|
127
|
-
"vue-router": "^4.
|
|
127
|
+
"vue-router": "^4.4.0",
|
|
128
128
|
"yargs": "^17.7.2",
|
|
129
|
-
"@valaxyjs/devtools": "0.18.
|
|
129
|
+
"@valaxyjs/devtools": "0.18.10"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
132
|
"@mdit-vue/plugin-component": "^2.1.3",
|
package/types/config.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { ILazyLoadOptions } from 'vanilla-lazyload'
|
|
|
4
4
|
import type { RouteRecordRaw } from 'vue-router'
|
|
5
5
|
import type { ValaxyAddon } from '../types'
|
|
6
6
|
import type { DefaultTheme } from './default-theme'
|
|
7
|
-
import type { PostFrontMatter } from './
|
|
7
|
+
import type { PostFrontMatter } from './frontmatter'
|
|
8
8
|
import type { FuseListItem } from './node'
|
|
9
9
|
|
|
10
10
|
import './default-theme'
|