valaxy 0.15.14 → 0.16.1
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/App.vue +2 -2
- package/client/composables/dark.ts +1 -1
- package/client/composables/features/copy-code.ts +1 -1
- package/client/main.ts +8 -1
- package/client/modules/valaxy.ts +5 -8
- package/client/scaffolds/post.md +0 -1
- package/client/setup/main.ts +10 -2
- package/dist/chunk-VAGXCK43.cjs +134 -0
- package/dist/{chunk-G2HMAIG3.mjs → chunk-W4ERA5UC.mjs} +43 -43
- package/dist/{config-a1820a44.d.ts → config-tjZfKSoC.d.cts} +1 -1
- package/dist/config-tjZfKSoC.d.ts +597 -0
- 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 +5 -2
- package/dist/node/index.d.ts +5 -2
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.mjs +1 -1
- package/package.json +43 -40
- package/dist/chunk-Q624MH4A.cjs +0 -134
- /package/dist/{chunk-YDNPXS5U.cjs → chunk-R6EC3UMQ.cjs} +0 -0
- /package/dist/{chunk-GY4S4RDR.mjs → chunk-YTQABADX.mjs} +0 -0
|
@@ -594,4 +594,4 @@ type UserSiteConfig = PartialDeep<SiteConfig>;
|
|
|
594
594
|
*/
|
|
595
595
|
type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
|
|
596
596
|
|
|
597
|
-
export { Album as A, DefaultTheme as D, ExcerptType as E, FuseListItem as F, PartialDeep as P, RuntimeConfig as R, SiteConfig as S, UserSiteConfig as U, ValaxyConfig as V, ValaxyAddon as a, Post as b, SocialLink as c, UserValaxyConfig as d, Photo as e, PageFrontMatter as f, PostFrontMatter as g, Page as h };
|
|
597
|
+
export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type RuntimeConfig as R, type SiteConfig as S, type UserSiteConfig as U, type ValaxyConfig as V, type ValaxyAddon as a, type Post as b, type SocialLink as c, type UserValaxyConfig as d, type Photo as e, type PageFrontMatter as f, type PostFrontMatter as g, type Page as h };
|
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
import { ZoomOptions } from 'medium-zoom';
|
|
2
|
+
import { FuseOptions } from '@vueuse/integrations/useFuse';
|
|
3
|
+
import { ILazyLoadOptions } from 'vanilla-lazyload';
|
|
4
|
+
import { NodeRelations, ImageObject } from '@unhead/schema-org';
|
|
5
|
+
|
|
6
|
+
interface ValaxyAddon<AddonOptions = Record<string, any>> {
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* be global component
|
|
10
|
+
*/
|
|
11
|
+
global?: boolean;
|
|
12
|
+
props?: Record<string, any>;
|
|
13
|
+
options?: AddonOptions;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare namespace DefaultTheme {
|
|
17
|
+
interface Config {
|
|
18
|
+
/**
|
|
19
|
+
* Custom header levels of outline in the aside component.
|
|
20
|
+
*
|
|
21
|
+
* @default 2
|
|
22
|
+
*/
|
|
23
|
+
outline?: number | [number, number] | 'deep' | false;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface Album {
|
|
28
|
+
/**
|
|
29
|
+
* @description:en-US Album Link
|
|
30
|
+
*/
|
|
31
|
+
url: string;
|
|
32
|
+
/**
|
|
33
|
+
* @description:en-US Album cover
|
|
34
|
+
* url
|
|
35
|
+
*/
|
|
36
|
+
cover: string;
|
|
37
|
+
/**
|
|
38
|
+
* @description:en-US Album caption
|
|
39
|
+
*/
|
|
40
|
+
caption: string;
|
|
41
|
+
/**
|
|
42
|
+
* @description:en-US Album description
|
|
43
|
+
*/
|
|
44
|
+
desc: string;
|
|
45
|
+
}
|
|
46
|
+
interface Photo {
|
|
47
|
+
src: string;
|
|
48
|
+
caption: string;
|
|
49
|
+
desc: string;
|
|
50
|
+
}
|
|
51
|
+
type ExcerptType = 'md' | 'html' | 'text' | 'ai';
|
|
52
|
+
interface PageFrontMatter extends Record<string, any> {
|
|
53
|
+
/**
|
|
54
|
+
* Path of post
|
|
55
|
+
* route.path
|
|
56
|
+
* @description 路径
|
|
57
|
+
*/
|
|
58
|
+
path: string;
|
|
59
|
+
/**
|
|
60
|
+
* Title
|
|
61
|
+
* @description 文章标题
|
|
62
|
+
*/
|
|
63
|
+
title: string;
|
|
64
|
+
date: string | number | Date;
|
|
65
|
+
/**
|
|
66
|
+
* Updated Time
|
|
67
|
+
*/
|
|
68
|
+
updated: string | number | Date;
|
|
69
|
+
/**
|
|
70
|
+
* i18n
|
|
71
|
+
*/
|
|
72
|
+
lang: string;
|
|
73
|
+
/**
|
|
74
|
+
* TODO
|
|
75
|
+
* Read Time
|
|
76
|
+
* @description 阅读时长
|
|
77
|
+
*/
|
|
78
|
+
duration: string;
|
|
79
|
+
/**
|
|
80
|
+
* @description Author
|
|
81
|
+
* @description:zh-CN 作者
|
|
82
|
+
*/
|
|
83
|
+
author: string;
|
|
84
|
+
/**
|
|
85
|
+
* Display sponsor info
|
|
86
|
+
* @description 是否开启赞助
|
|
87
|
+
*/
|
|
88
|
+
sponsor: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Copyright
|
|
91
|
+
* @description 是否显示文章底部版权信息
|
|
92
|
+
*/
|
|
93
|
+
copyright: boolean;
|
|
94
|
+
image: NodeRelations<ImageObject | string>;
|
|
95
|
+
/**
|
|
96
|
+
* cover
|
|
97
|
+
* @description 封面图片
|
|
98
|
+
*/
|
|
99
|
+
cover: string;
|
|
100
|
+
/**
|
|
101
|
+
* display toc
|
|
102
|
+
* @description 是否显示目录
|
|
103
|
+
*/
|
|
104
|
+
toc: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* display right sidebar
|
|
107
|
+
* @description 是否显示右侧侧边栏
|
|
108
|
+
*/
|
|
109
|
+
aside: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* enable markdown-body class
|
|
112
|
+
* @description 是否启用默认的 markdown 样式
|
|
113
|
+
*/
|
|
114
|
+
markdown: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* icon before title
|
|
117
|
+
*/
|
|
118
|
+
icon: string;
|
|
119
|
+
/**
|
|
120
|
+
* title color
|
|
121
|
+
*/
|
|
122
|
+
color: string;
|
|
123
|
+
/**
|
|
124
|
+
* display comment
|
|
125
|
+
*/
|
|
126
|
+
comment: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* post is end
|
|
129
|
+
* @description 是否完结,将在末尾添加衬线字体 Q.E.D.
|
|
130
|
+
*/
|
|
131
|
+
end: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* use aplayer
|
|
134
|
+
*/
|
|
135
|
+
aplayer: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* use katex
|
|
138
|
+
*/
|
|
139
|
+
katex: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* use codepen
|
|
142
|
+
*/
|
|
143
|
+
codepen: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* use medium-zoom
|
|
146
|
+
* @url https://github.com/francoischalifour/medium-zoom
|
|
147
|
+
*/
|
|
148
|
+
medium_zoom: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* @description:en-US Albums
|
|
151
|
+
* @description:zh-CN 相册
|
|
152
|
+
*/
|
|
153
|
+
albums: Album[];
|
|
154
|
+
/**
|
|
155
|
+
* For layout Gallery
|
|
156
|
+
* @description:en-US Photos
|
|
157
|
+
*/
|
|
158
|
+
photos: Photo[];
|
|
159
|
+
/**
|
|
160
|
+
* @description:zh-CN 是否启用加密,password 存在时默认为 true
|
|
161
|
+
*/
|
|
162
|
+
encrypt: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* @description:zh-CN 加密密码
|
|
165
|
+
*/
|
|
166
|
+
password?: string;
|
|
167
|
+
/**
|
|
168
|
+
* @description:zh-CN 相册密码
|
|
169
|
+
*/
|
|
170
|
+
gallery_password?: string;
|
|
171
|
+
/**
|
|
172
|
+
* @description:zh-CN 加密后的内容
|
|
173
|
+
*/
|
|
174
|
+
encryptedContent?: string;
|
|
175
|
+
/**
|
|
176
|
+
* @description:zh-CN 部分加密的内容
|
|
177
|
+
*/
|
|
178
|
+
partiallyEncryptedContents?: string[];
|
|
179
|
+
/**
|
|
180
|
+
* @description:zh-CN 加密后的相册
|
|
181
|
+
*/
|
|
182
|
+
encryptedPhotos?: string;
|
|
183
|
+
/**
|
|
184
|
+
* @description:en-US Limit the height of the code block in px
|
|
185
|
+
* @description:zh-CN 限制代码块的高度,单位是 px
|
|
186
|
+
*/
|
|
187
|
+
codeHeightLimit?: number;
|
|
188
|
+
}
|
|
189
|
+
interface PostFrontMatter extends PageFrontMatter {
|
|
190
|
+
/**
|
|
191
|
+
* post card type, can be bilibili/yuque/...
|
|
192
|
+
*/
|
|
193
|
+
type: string;
|
|
194
|
+
/**
|
|
195
|
+
* override url, and jump directly
|
|
196
|
+
*/
|
|
197
|
+
url: string;
|
|
198
|
+
/**
|
|
199
|
+
* @description 摘要
|
|
200
|
+
*/
|
|
201
|
+
excerpt: string;
|
|
202
|
+
/**
|
|
203
|
+
* @default 'html'
|
|
204
|
+
* render type of excerpt
|
|
205
|
+
* - md: render as raw markdown
|
|
206
|
+
* - html: render as html
|
|
207
|
+
* - text: render as text
|
|
208
|
+
*/
|
|
209
|
+
excerpt_type: 'md' | 'text' | 'html' | 'ai';
|
|
210
|
+
/**
|
|
211
|
+
* Category
|
|
212
|
+
* @description 分类,若为数组,则按顺序代表多层文件夹
|
|
213
|
+
*/
|
|
214
|
+
categories: string | string[];
|
|
215
|
+
/**
|
|
216
|
+
* Tags
|
|
217
|
+
* @description 标签,可以有多个
|
|
218
|
+
*/
|
|
219
|
+
tags: string[];
|
|
220
|
+
/**
|
|
221
|
+
* display prev next
|
|
222
|
+
* @description 是否显示前一篇、后一篇导航
|
|
223
|
+
*/
|
|
224
|
+
nav: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* 置顶
|
|
227
|
+
*/
|
|
228
|
+
top: number;
|
|
229
|
+
/**
|
|
230
|
+
* is draft
|
|
231
|
+
* @description 是否为草稿
|
|
232
|
+
*/
|
|
233
|
+
draft: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* hide in index
|
|
236
|
+
* - true/`all`: hide in index & archive
|
|
237
|
+
* - `index`: hide in index
|
|
238
|
+
* @description 是否隐藏
|
|
239
|
+
*/
|
|
240
|
+
hide: 'index' | boolean;
|
|
241
|
+
/**
|
|
242
|
+
* when the post is updated more than 30 days ago, show a warning
|
|
243
|
+
* default 30 days, you can set `time_warning` in frontmatter to change it
|
|
244
|
+
*
|
|
245
|
+
* @zh
|
|
246
|
+
* 当文章更新时间超过 30 天时,显示一个警告
|
|
247
|
+
* 默认 30 天,你可以在 frontmatter 中设置 `time_warning` (数字)来修改,单位 ms
|
|
248
|
+
* @example 3600000
|
|
249
|
+
*/
|
|
250
|
+
time_warning: boolean | number;
|
|
251
|
+
}
|
|
252
|
+
type Page = Partial<PageFrontMatter>;
|
|
253
|
+
type Post = Partial<PostFrontMatter>;
|
|
254
|
+
|
|
255
|
+
interface FuseListItem {
|
|
256
|
+
title: string;
|
|
257
|
+
excerpt?: string;
|
|
258
|
+
author: string;
|
|
259
|
+
tags: string[];
|
|
260
|
+
categories: string[];
|
|
261
|
+
link: string;
|
|
262
|
+
content?: string;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
interface SocialLink {
|
|
266
|
+
/**
|
|
267
|
+
* The title of your link
|
|
268
|
+
*/
|
|
269
|
+
name: string;
|
|
270
|
+
link: string;
|
|
271
|
+
/**
|
|
272
|
+
* 图标名称
|
|
273
|
+
* https://icones.js.org/
|
|
274
|
+
*/
|
|
275
|
+
icon: string;
|
|
276
|
+
color: string;
|
|
277
|
+
}
|
|
278
|
+
interface SiteConfig {
|
|
279
|
+
/**
|
|
280
|
+
* enable auto (light/dark mode)
|
|
281
|
+
* @default 'auto'
|
|
282
|
+
*/
|
|
283
|
+
mode: 'light' | 'dark' | 'auto';
|
|
284
|
+
/**
|
|
285
|
+
* Default language
|
|
286
|
+
* @description 默认语言
|
|
287
|
+
* @default 'en'
|
|
288
|
+
*/
|
|
289
|
+
lang: string;
|
|
290
|
+
/**
|
|
291
|
+
* alternative languages
|
|
292
|
+
* @description 可选语言
|
|
293
|
+
* @default ['en', 'zh-CN']
|
|
294
|
+
* @see https://ogp.me/#optional
|
|
295
|
+
*/
|
|
296
|
+
languages: string[];
|
|
297
|
+
/**
|
|
298
|
+
* @see https://day.js.org/docs/en/plugin/timezone
|
|
299
|
+
* @zh_CN 时区 'Asia/Shanghai' Recommended
|
|
300
|
+
* @en_US timezone
|
|
301
|
+
* @default '' Your Computer Timezone
|
|
302
|
+
*/
|
|
303
|
+
timezone: string;
|
|
304
|
+
/**
|
|
305
|
+
* You site url in web, required for ssg & rss
|
|
306
|
+
* @description 站点的完整 URL,SSG & RSS 需要(譬如生成版权处文章永久链接)
|
|
307
|
+
* @example 'https://valaxy.site'
|
|
308
|
+
* @default '/'
|
|
309
|
+
*/
|
|
310
|
+
url: string;
|
|
311
|
+
/**
|
|
312
|
+
* Site title
|
|
313
|
+
* @description 站点标题
|
|
314
|
+
*/
|
|
315
|
+
title: string;
|
|
316
|
+
/**
|
|
317
|
+
* 副标题
|
|
318
|
+
*/
|
|
319
|
+
subtitle: string;
|
|
320
|
+
/**
|
|
321
|
+
* 站点描述
|
|
322
|
+
*/
|
|
323
|
+
description: string;
|
|
324
|
+
/**
|
|
325
|
+
* The owner of this blog
|
|
326
|
+
* @description 博客作者
|
|
327
|
+
*/
|
|
328
|
+
author: {
|
|
329
|
+
/**
|
|
330
|
+
* Your name
|
|
331
|
+
* @description 你的名字
|
|
332
|
+
*/
|
|
333
|
+
name: string;
|
|
334
|
+
email: string;
|
|
335
|
+
link: string;
|
|
336
|
+
avatar: string;
|
|
337
|
+
/**
|
|
338
|
+
* The status of you
|
|
339
|
+
* @description 状态
|
|
340
|
+
*/
|
|
341
|
+
status: {
|
|
342
|
+
emoji: string;
|
|
343
|
+
/**
|
|
344
|
+
* show when hover emoji
|
|
345
|
+
* @description 当鼠标悬浮在图标上时显示
|
|
346
|
+
*/
|
|
347
|
+
message: string;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* show last updated time by git/mtime
|
|
352
|
+
*/
|
|
353
|
+
lastUpdated: boolean;
|
|
354
|
+
/**
|
|
355
|
+
* icon for your website
|
|
356
|
+
*/
|
|
357
|
+
favicon: string;
|
|
358
|
+
feed: {
|
|
359
|
+
/**
|
|
360
|
+
* name: feed -> feed.xml / feed.atom / feed.json
|
|
361
|
+
* @default '' -> feed.xml / atom.xml / feed.json
|
|
362
|
+
*/
|
|
363
|
+
name: string;
|
|
364
|
+
favicon: string;
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* 社交链接
|
|
368
|
+
*/
|
|
369
|
+
social: SocialLink[];
|
|
370
|
+
/**
|
|
371
|
+
* search
|
|
372
|
+
*/
|
|
373
|
+
search: {
|
|
374
|
+
enable: boolean;
|
|
375
|
+
/**
|
|
376
|
+
* Search Type
|
|
377
|
+
* - algolia: Algolia Search
|
|
378
|
+
* - engine: Engine Search, like Google/Baidu
|
|
379
|
+
* - fuse: Local Search by fuse.js
|
|
380
|
+
*/
|
|
381
|
+
type: 'algolia' | 'engine' | 'fuse';
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
*
|
|
385
|
+
* fuse search
|
|
386
|
+
* @see https://fusejs.io/
|
|
387
|
+
* @description 本地搜索
|
|
388
|
+
* Please set search.type to 'fuse'
|
|
389
|
+
*/
|
|
390
|
+
fuse: {
|
|
391
|
+
/**
|
|
392
|
+
* @default 'valaxy-fuse-list.json'
|
|
393
|
+
* @description 搜索结果列表数据所在路径
|
|
394
|
+
*/
|
|
395
|
+
dataPath: string;
|
|
396
|
+
/**
|
|
397
|
+
* @see https://fusejs.io/api/options.html
|
|
398
|
+
*/
|
|
399
|
+
options: FuseOptions<FuseListItem> & {
|
|
400
|
+
/**
|
|
401
|
+
* @default ['title', 'tags', 'categories', 'excerpt']
|
|
402
|
+
* @description 搜索的字段
|
|
403
|
+
* @see https://fusejs.io/api/options.html#keys
|
|
404
|
+
*/
|
|
405
|
+
keys: FuseOptions<FuseListItem>['keys'];
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
/**
|
|
409
|
+
* set post default frontmatter
|
|
410
|
+
*/
|
|
411
|
+
frontmatter: Partial<PostFrontMatter>;
|
|
412
|
+
/**
|
|
413
|
+
* comment: waline/...
|
|
414
|
+
*/
|
|
415
|
+
comment: {
|
|
416
|
+
enable: boolean;
|
|
417
|
+
};
|
|
418
|
+
/**
|
|
419
|
+
* third-party plugin need cdn
|
|
420
|
+
* aplayer, twikoo
|
|
421
|
+
* @default 'https://unpkg.com/'
|
|
422
|
+
*/
|
|
423
|
+
cdn: {
|
|
424
|
+
prefix: string;
|
|
425
|
+
};
|
|
426
|
+
/**
|
|
427
|
+
* The license of your posts
|
|
428
|
+
* @description 文章所使用的协议,默认使用 Creative Commons
|
|
429
|
+
* @default https://creativecommons.org/licenses/
|
|
430
|
+
*/
|
|
431
|
+
license: {
|
|
432
|
+
/**
|
|
433
|
+
* Whether to show at the bottom of the article
|
|
434
|
+
* @description 是否显示在文章底部
|
|
435
|
+
* @default true
|
|
436
|
+
*/
|
|
437
|
+
enabled: boolean;
|
|
438
|
+
/**
|
|
439
|
+
* Creative License Language, same with your config.lang
|
|
440
|
+
* when lang === 'zh-CN', use 'zh'
|
|
441
|
+
* @description 默认与站点语言相同
|
|
442
|
+
* @default 'en'
|
|
443
|
+
*/
|
|
444
|
+
language: string;
|
|
445
|
+
/**
|
|
446
|
+
* Type of license
|
|
447
|
+
* @description 证书类型
|
|
448
|
+
* @default 'by-nc-sa'
|
|
449
|
+
*/
|
|
450
|
+
type: 'zero' | 'by-sa' | 'by-nd' | 'by-nc' | 'by-nc-sa' | 'by-nc-nd';
|
|
451
|
+
};
|
|
452
|
+
/**
|
|
453
|
+
* donate for author
|
|
454
|
+
* @description 打赏/赞助
|
|
455
|
+
*/
|
|
456
|
+
sponsor: {
|
|
457
|
+
enable: boolean;
|
|
458
|
+
/**
|
|
459
|
+
* Donate button title attribute
|
|
460
|
+
* @description 打赏按钮的 title 属性
|
|
461
|
+
* @default zh:'打赏' en:'Donate'
|
|
462
|
+
*/
|
|
463
|
+
title?: string;
|
|
464
|
+
/**
|
|
465
|
+
* Donate content description
|
|
466
|
+
* @description 打赏的描述内容,在按钮下方所有图片上方,与图片一起折叠
|
|
467
|
+
* @default undefined 不显示内容
|
|
468
|
+
*/
|
|
469
|
+
description?: string;
|
|
470
|
+
methods: {
|
|
471
|
+
name: string;
|
|
472
|
+
url: string;
|
|
473
|
+
color: string;
|
|
474
|
+
icon: string;
|
|
475
|
+
}[];
|
|
476
|
+
};
|
|
477
|
+
/**
|
|
478
|
+
* image preview by medium-zoom
|
|
479
|
+
* @url https://github.com/francoischalifour/medium-zoom
|
|
480
|
+
*/
|
|
481
|
+
mediumZoom: {
|
|
482
|
+
enable: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* For example: '.markdown-body img'
|
|
485
|
+
* @default '' content.value querySelectorAll('img')
|
|
486
|
+
*/
|
|
487
|
+
selector: string | HTMLElement | HTMLElement[];
|
|
488
|
+
options: ZoomOptions;
|
|
489
|
+
};
|
|
490
|
+
/**
|
|
491
|
+
* lazyload by vanilla-lazyload and markdown-it-image-figures
|
|
492
|
+
* when vanillaLazyLoad.enable is true, imageFigures removeSrc is true, classes is 'lazy'
|
|
493
|
+
* @see https://github.com/verlok/vanilla-lazyload
|
|
494
|
+
*/
|
|
495
|
+
vanillaLazyload: {
|
|
496
|
+
enable: boolean;
|
|
497
|
+
options: ILazyLoadOptions;
|
|
498
|
+
};
|
|
499
|
+
/**
|
|
500
|
+
* displayed posts length in every page
|
|
501
|
+
* @default 7
|
|
502
|
+
*/
|
|
503
|
+
pageSize: number;
|
|
504
|
+
/**
|
|
505
|
+
* statistics readingTime and wordCount
|
|
506
|
+
* @description 统计阅读时间和字数
|
|
507
|
+
*/
|
|
508
|
+
statistics: {
|
|
509
|
+
enable: boolean;
|
|
510
|
+
readTime: {
|
|
511
|
+
speed: {
|
|
512
|
+
/**
|
|
513
|
+
* Chinese word count speed
|
|
514
|
+
* @description 中文每分钟阅读字数
|
|
515
|
+
* @default 300 (300 字/分钟)
|
|
516
|
+
*/
|
|
517
|
+
cn: number;
|
|
518
|
+
/**
|
|
519
|
+
* English word count speed
|
|
520
|
+
* @description 英文每分钟阅读字数
|
|
521
|
+
* @default 100 (200 字/分钟)
|
|
522
|
+
*/
|
|
523
|
+
en: number;
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
/**
|
|
528
|
+
* @description Encrypt article
|
|
529
|
+
* @description:zh-CN 加密文章
|
|
530
|
+
* default algorithm: AES-CBC
|
|
531
|
+
*/
|
|
532
|
+
encrypt: {
|
|
533
|
+
enable: boolean;
|
|
534
|
+
/**
|
|
535
|
+
* [encrypt](https://developer.mozilla.org/zh-CN/docs/Web/API/SubtleCrypto/encrypt#%E6%94%AF%E6%8C%81%E7%9A%84%E7%AE%97%E6%B3%95)
|
|
536
|
+
* @default AES-CBC
|
|
537
|
+
*/
|
|
538
|
+
algorithm: string;
|
|
539
|
+
iv: Uint8Array;
|
|
540
|
+
salt: Uint8Array;
|
|
541
|
+
};
|
|
542
|
+
/**
|
|
543
|
+
* @description:en-US Limit the height of the code block in px
|
|
544
|
+
* @description:zh-CN 限制代码块的高度,单位是 px
|
|
545
|
+
*/
|
|
546
|
+
codeHeightLimit?: number;
|
|
547
|
+
}
|
|
548
|
+
type PartialDeep<T> = {
|
|
549
|
+
[P in keyof T]?: T[P] extends object ? PartialDeep<T[P]> : T[P];
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* config generated by runtime
|
|
553
|
+
*/
|
|
554
|
+
interface RuntimeConfig {
|
|
555
|
+
addons: Record<string, ValaxyAddon>;
|
|
556
|
+
}
|
|
557
|
+
interface ValaxyConfig<ThemeConfig = DefaultTheme.Config> {
|
|
558
|
+
siteConfig: SiteConfig;
|
|
559
|
+
/**
|
|
560
|
+
* The name of theme
|
|
561
|
+
* @description 主题名称
|
|
562
|
+
*/
|
|
563
|
+
theme: string;
|
|
564
|
+
/**
|
|
565
|
+
* The config of theme
|
|
566
|
+
* @description 主题配置
|
|
567
|
+
*/
|
|
568
|
+
themeConfig: ThemeConfig & {
|
|
569
|
+
pkg: {
|
|
570
|
+
name: string;
|
|
571
|
+
version: string;
|
|
572
|
+
homepage?: string;
|
|
573
|
+
[key: string]: any;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
/**
|
|
577
|
+
* generated by runtime
|
|
578
|
+
*/
|
|
579
|
+
runtimeConfig: RuntimeConfig;
|
|
580
|
+
/**
|
|
581
|
+
* Don't fail builds due to dead links.
|
|
582
|
+
*
|
|
583
|
+
* @default true
|
|
584
|
+
*/
|
|
585
|
+
ignoreDeadLinks: boolean;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* user site config
|
|
589
|
+
*/
|
|
590
|
+
type UserSiteConfig = PartialDeep<SiteConfig>;
|
|
591
|
+
/**
|
|
592
|
+
* Valaxy User Config
|
|
593
|
+
* @description Valaxy 用户配置
|
|
594
|
+
*/
|
|
595
|
+
type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
|
|
596
|
+
|
|
597
|
+
export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type RuntimeConfig as R, type SiteConfig as S, type UserSiteConfig as U, type ValaxyConfig as V, type ValaxyAddon as a, type Post as b, type SocialLink as c, type UserValaxyConfig as d, type Photo as e, type PageFrontMatter as f, type PostFrontMatter as g, type Page as h };
|
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 _chunkVAGXCK43cjs = require('../../chunk-VAGXCK43.cjs');require('../../chunk-R6EC3UMQ.cjs');exports.cli = _chunkVAGXCK43cjs.F; exports.run = _chunkVAGXCK43cjs.G;
|
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{F as a,G as b}from"../../chunk-
|
|
2
|
+
import{F as a,G as b}from"../../chunk-W4ERA5UC.mjs";import"../../chunk-YTQABADX.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 _chunkVAGXCK43cjs = require('../chunk-VAGXCK43.cjs');require('../chunk-R6EC3UMQ.cjs');exports.build = _chunkVAGXCK43cjs.B; exports.cli = _chunkVAGXCK43cjs.F; exports.createServer = _chunkVAGXCK43cjs.E; exports.defaultSiteConfig = _chunkVAGXCK43cjs.t; exports.defaultValaxyConfig = _chunkVAGXCK43cjs.u; exports.defineAddon = _chunkVAGXCK43cjs.n; exports.defineConfig = _chunkVAGXCK43cjs.s; exports.defineSiteConfig = _chunkVAGXCK43cjs.q; exports.defineTheme = _chunkVAGXCK43cjs.p; exports.defineUnoSetup = _chunkVAGXCK43cjs.v; exports.defineValaxyAddon = _chunkVAGXCK43cjs.m; exports.defineValaxyConfig = _chunkVAGXCK43cjs.r; exports.defineValaxyTheme = _chunkVAGXCK43cjs.o; exports.ensurePrefix = _chunkVAGXCK43cjs.d; exports.getGitTimestamp = _chunkVAGXCK43cjs.a; exports.getIndexHtml = _chunkVAGXCK43cjs.A; exports.isExternal = _chunkVAGXCK43cjs.b; exports.isPath = _chunkVAGXCK43cjs.f; exports.mergeValaxyConfig = _chunkVAGXCK43cjs.g; exports.mergeViteConfigs = _chunkVAGXCK43cjs.z; exports.postProcessForSSG = _chunkVAGXCK43cjs.D; exports.processValaxyOptions = _chunkVAGXCK43cjs.w; exports.resolveAddonConfig = _chunkVAGXCK43cjs.j; exports.resolveImportPath = _chunkVAGXCK43cjs.l; exports.resolveOptions = _chunkVAGXCK43cjs.x; exports.resolveThemeValaxyConfig = _chunkVAGXCK43cjs.y; exports.resolveValaxyConfig = _chunkVAGXCK43cjs.i; exports.resolveValaxyConfigFromRoot = _chunkVAGXCK43cjs.h; exports.run = _chunkVAGXCK43cjs.G; exports.slash = _chunkVAGXCK43cjs.c; exports.ssgBuild = _chunkVAGXCK43cjs.C; exports.toAtFS = _chunkVAGXCK43cjs.e; exports.transformObject = _chunkVAGXCK43cjs.k;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { ViteSSGOptions } from 'vite-ssg';
|
|
|
2
2
|
export { cli, run } from './cli/index.cjs';
|
|
3
3
|
import * as vite from 'vite';
|
|
4
4
|
import { UserConfig, InlineConfig } from 'vite';
|
|
5
|
-
import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-
|
|
5
|
+
import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-tjZfKSoC.cjs';
|
|
6
6
|
import Vue from '@vitejs/plugin-vue';
|
|
7
7
|
import Components from 'unplugin-vue-components/vite';
|
|
8
8
|
import { VitePluginConfig } from 'unocss/vite';
|
|
@@ -85,6 +85,9 @@ interface MarkdownOptions {
|
|
|
85
85
|
classes: string;
|
|
86
86
|
};
|
|
87
87
|
lineNumbers?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* @see https://katex.org/docs/options.html
|
|
90
|
+
*/
|
|
88
91
|
katex?: KatexOptions;
|
|
89
92
|
/**
|
|
90
93
|
* shiki
|
|
@@ -370,4 +373,4 @@ declare function resolveAddonConfig(addons: ValaxyAddonResolver[], options?: Res
|
|
|
370
373
|
declare function transformObject(obj: any): string;
|
|
371
374
|
declare function resolveImportPath(importName: string, ensure?: true): string;
|
|
372
375
|
|
|
373
|
-
export { HookResult, ResolvedValaxyOptions, UnoSetup, UserValaxyNodeConfig, ValaxyAddonExport, ValaxyAddonFn, ValaxyAddonLike, ValaxyAddonResolver, ValaxyAddons, ValaxyConfigExport, ValaxyConfigExtendKey, ValaxyConfigFn, ValaxyEntryOptions, ValaxyExtendConfig, ValaxyHooks, ValaxyNode, ValaxyNodeConfig, ValaxyPickConfig, ValaxyServerOptions, ValaxyTheme, build, createServer, defaultSiteConfig, defaultValaxyConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, getGitTimestamp, getIndexHtml, isExternal, isPath, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonConfig, resolveImportPath, resolveOptions, resolveThemeValaxyConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
|
|
376
|
+
export { type HookResult, type ResolvedValaxyOptions, type UnoSetup, type UserValaxyNodeConfig, type ValaxyAddonExport, type ValaxyAddonFn, type ValaxyAddonLike, type ValaxyAddonResolver, type ValaxyAddons, type ValaxyConfigExport, type ValaxyConfigExtendKey, type ValaxyConfigFn, type ValaxyEntryOptions, type ValaxyExtendConfig, type ValaxyHooks, type ValaxyNode, type ValaxyNodeConfig, type ValaxyPickConfig, type ValaxyServerOptions, type ValaxyTheme, build, createServer, defaultSiteConfig, defaultValaxyConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, getGitTimestamp, getIndexHtml, isExternal, isPath, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonConfig, resolveImportPath, resolveOptions, resolveThemeValaxyConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ViteSSGOptions } from 'vite-ssg';
|
|
|
2
2
|
export { cli, run } from './cli/index.js';
|
|
3
3
|
import * as vite from 'vite';
|
|
4
4
|
import { UserConfig, InlineConfig } from 'vite';
|
|
5
|
-
import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-
|
|
5
|
+
import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-tjZfKSoC.js';
|
|
6
6
|
import Vue from '@vitejs/plugin-vue';
|
|
7
7
|
import Components from 'unplugin-vue-components/vite';
|
|
8
8
|
import { VitePluginConfig } from 'unocss/vite';
|
|
@@ -85,6 +85,9 @@ interface MarkdownOptions {
|
|
|
85
85
|
classes: string;
|
|
86
86
|
};
|
|
87
87
|
lineNumbers?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* @see https://katex.org/docs/options.html
|
|
90
|
+
*/
|
|
88
91
|
katex?: KatexOptions;
|
|
89
92
|
/**
|
|
90
93
|
* shiki
|
|
@@ -370,4 +373,4 @@ declare function resolveAddonConfig(addons: ValaxyAddonResolver[], options?: Res
|
|
|
370
373
|
declare function transformObject(obj: any): string;
|
|
371
374
|
declare function resolveImportPath(importName: string, ensure?: true): string;
|
|
372
375
|
|
|
373
|
-
export { HookResult, ResolvedValaxyOptions, UnoSetup, UserValaxyNodeConfig, ValaxyAddonExport, ValaxyAddonFn, ValaxyAddonLike, ValaxyAddonResolver, ValaxyAddons, ValaxyConfigExport, ValaxyConfigExtendKey, ValaxyConfigFn, ValaxyEntryOptions, ValaxyExtendConfig, ValaxyHooks, ValaxyNode, ValaxyNodeConfig, ValaxyPickConfig, ValaxyServerOptions, ValaxyTheme, build, createServer, defaultSiteConfig, defaultValaxyConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, getGitTimestamp, getIndexHtml, isExternal, isPath, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonConfig, resolveImportPath, resolveOptions, resolveThemeValaxyConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
|
|
376
|
+
export { type HookResult, type ResolvedValaxyOptions, type UnoSetup, type UserValaxyNodeConfig, type ValaxyAddonExport, type ValaxyAddonFn, type ValaxyAddonLike, type ValaxyAddonResolver, type ValaxyAddons, type ValaxyConfigExport, type ValaxyConfigExtendKey, type ValaxyConfigFn, type ValaxyEntryOptions, type ValaxyExtendConfig, type ValaxyHooks, type ValaxyNode, type ValaxyNodeConfig, type ValaxyPickConfig, type ValaxyServerOptions, type ValaxyTheme, build, createServer, defaultSiteConfig, defaultValaxyConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, getGitTimestamp, getIndexHtml, isExternal, isPath, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonConfig, resolveImportPath, resolveOptions, resolveThemeValaxyConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
|
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,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,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-W4ERA5UC.mjs";import"../chunk-YTQABADX.mjs";export{B as build,F as cli,E as createServer,t as defaultSiteConfig,u as defaultValaxyConfig,n as defineAddon,s as defineConfig,q as defineSiteConfig,p as defineTheme,v as defineUnoSetup,m as defineValaxyAddon,r as defineValaxyConfig,o as defineValaxyTheme,d as ensurePrefix,a as getGitTimestamp,A as getIndexHtml,b as isExternal,f as isPath,g as mergeValaxyConfig,z as mergeViteConfigs,D as postProcessForSSG,w as processValaxyOptions,j as resolveAddonConfig,l as resolveImportPath,x as resolveOptions,y as resolveThemeValaxyConfig,i as resolveValaxyConfig,h as resolveValaxyConfigFromRoot,G as run,c as slash,C as ssgBuild,e as toAtFS,k as transformObject};
|
package/dist/types/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var _chunkR6EC3UMQcjs = require('../chunk-R6EC3UMQ.cjs');_chunkR6EC3UMQcjs.d.call(void 0, );_chunkR6EC3UMQcjs.d.call(void 0, );_chunkR6EC3UMQcjs.d.call(void 0, );_chunkR6EC3UMQcjs.d.call(void 0, );_chunkR6EC3UMQcjs.d.call(void 0, );_chunkR6EC3UMQcjs.d.call(void 0, );_chunkR6EC3UMQcjs.d.call(void 0, );
|