valaxy 0.18.9 → 0.19.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.
Files changed (44) hide show
  1. package/client/App.vue +1 -10
  2. package/client/components/ValaxyMd.vue +1 -1
  3. package/client/components/builtin/ValaxyMermaid.vue +4 -3
  4. package/client/composables/aside.ts +12 -5
  5. package/client/composables/dark.ts +77 -38
  6. package/client/composables/layout.ts +10 -2
  7. package/client/composables/sidebar.ts +41 -2
  8. package/client/locales/zh-CN.yml +1 -1
  9. package/client/main.ts +12 -10
  10. package/client/setup/main.ts +0 -2
  11. package/client/shims.d.ts +3 -0
  12. package/client/stores/app.ts +20 -4
  13. package/client/styles/css/css-vars.css +19 -0
  14. package/client/styles/{global/index.scss → css/main.css} +1 -1
  15. package/client/styles/css-vars.scss +1 -1
  16. package/client/styles/index.scss +0 -1
  17. package/client/styles/palette.scss +0 -18
  18. package/client/utils/router.ts +48 -0
  19. package/dist/chunk-O2T7UBQW.cjs +156 -0
  20. package/dist/chunk-W2X2FWTK.mjs +157 -0
  21. package/dist/{config-Kdq8Mya1.d.cts → config-Bz-Xbvue.d.cts} +102 -26
  22. package/dist/{config-Kdq8Mya1.d.ts → config-Bz-Xbvue.d.ts} +102 -26
  23. package/dist/node/cli/index.cjs +1 -1
  24. package/dist/node/cli/index.mjs +1 -1
  25. package/dist/node/index.cjs +1 -1
  26. package/dist/node/index.d.cts +2 -1
  27. package/dist/node/index.d.ts +2 -1
  28. package/dist/node/index.mjs +1 -1
  29. package/dist/types/index.cjs +1 -1
  30. package/dist/types/index.d.cts +7 -3
  31. package/dist/types/index.d.ts +7 -3
  32. package/dist/types/index.mjs +1 -1
  33. package/package.json +20 -18
  34. package/types/config.ts +5 -1
  35. package/types/default-theme.ts +38 -0
  36. package/types/frontmatter/index.ts +2 -0
  37. package/types/frontmatter/page.ts +191 -0
  38. package/types/frontmatter/post.ts +103 -0
  39. package/types/index.ts +1 -0
  40. package/types/posts.ts +1 -253
  41. package/dist/chunk-4B74DZJ5.cjs +0 -149
  42. package/dist/chunk-F2X3NOEJ.mjs +0 -150
  43. /package/dist/{chunk-42NDXDT3.mjs → chunk-7VTZAWDO.mjs} +0 -0
  44. /package/dist/{chunk-YO6XYYV3.cjs → chunk-I6UPHJXQ.cjs} +0 -0
@@ -2,6 +2,7 @@ import { ZoomOptions } from 'medium-zoom';
2
2
  import { FuseOptions } from '@vueuse/integrations/useFuse';
3
3
  import { ILazyLoadOptions } from 'vanilla-lazyload';
4
4
  import { RouteRecordRaw } from 'vue-router';
5
+ import { UseDarkOptions } from '@vueuse/core';
5
6
  import { NodeRelations, ImageObject } from '@unhead/schema-org';
6
7
 
7
8
  interface ValaxyAddon<AddonOptions = Record<string, any>> {
@@ -16,6 +17,41 @@ interface ValaxyAddon<AddonOptions = Record<string, any>> {
16
17
 
17
18
  declare namespace DefaultTheme {
18
19
  interface Config {
20
+ valaxyDarkOptions?: {
21
+ /**
22
+ * Options for `useDark`
23
+ * disableTransition default is `true`
24
+ * Its options are not computed, init when loaded.
25
+ * @see https://vueuse.org/core/useDark
26
+ * @url https://paco.me/writing/disable-theme-transitions
27
+ *
28
+ * @zh `useDark` 的选项
29
+ * disableTransition 默认为 `true`,不会进行渐变过渡,这是 VueUse 的默认行为
30
+ */
31
+ useDarkOptions?: UseDarkOptions;
32
+ /**
33
+ * Enable circle transition when toggling dark mode
34
+ * Then use `toggleDarkWithTransition` instead of `toggleDark`
35
+ * @zh 启用圆形过渡切换暗黑模式
36
+ */
37
+ circleTransition?: boolean;
38
+ /**
39
+ * Theme color
40
+ * @zh 主题色
41
+ */
42
+ themeColor?: {
43
+ /**
44
+ * Theme color for light mode
45
+ * @zh 亮色主题色
46
+ */
47
+ light?: string;
48
+ /**
49
+ * Theme color for dark mode
50
+ * @zh 暗色主题色
51
+ */
52
+ dark?: string;
53
+ };
54
+ };
19
55
  /**
20
56
  * Custom header levels of outline in the aside component.
21
57
  *
@@ -49,7 +85,6 @@ interface Photo {
49
85
  caption: string;
50
86
  desc: string;
51
87
  }
52
- type ExcerptType = 'md' | 'html' | 'text' | 'ai';
53
88
  interface PageFrontMatter extends Record<string, any> {
54
89
  /**
55
90
  * Path of post
@@ -71,12 +106,6 @@ interface PageFrontMatter extends Record<string, any> {
71
106
  * i18n
72
107
  */
73
108
  lang: string;
74
- /**
75
- * TODO
76
- * Read Time
77
- * @description 阅读时长
78
- */
79
- duration: string;
80
109
  /**
81
110
  * @description Author
82
111
  * @description:zh-CN 作者
@@ -109,16 +138,24 @@ interface PageFrontMatter extends Record<string, any> {
109
138
  */
110
139
  aside: boolean;
111
140
  /**
112
- * enable markdown-body class
113
- * @description 是否启用默认的 markdown 样式
141
+ * @description:en-US Custom Markdown class
142
+ * @description:zh-CN 自定义 Markdown 样式
143
+ * @default 'markdown-body'
144
+ */
145
+ markdownClass: string;
146
+ /**
147
+ * @description:en-US Post title class
148
+ * @description:zh-CN 文章标题样式
114
149
  */
115
- markdown: boolean;
150
+ pageTitleClass: string;
116
151
  /**
117
152
  * icon before title
153
+ * @description 标题前的图标
118
154
  */
119
155
  icon: string;
120
156
  /**
121
157
  * title color
158
+ * @deprecated Please use `pageTitleClass` | `postTitleClass` instead
122
159
  */
123
160
  color: string;
124
161
  /**
@@ -132,14 +169,17 @@ interface PageFrontMatter extends Record<string, any> {
132
169
  end: boolean;
133
170
  /**
134
171
  * use aplayer
172
+ * @url https://aplayer.js.org/
135
173
  */
136
174
  aplayer: boolean;
137
175
  /**
138
176
  * use katex
177
+ * @url https://katex.org/
139
178
  */
140
179
  katex: boolean;
141
180
  /**
142
181
  * use codepen
182
+ * @url https://codepen.io/
143
183
  */
144
184
  codepen: boolean;
145
185
  /**
@@ -170,6 +210,9 @@ interface PageFrontMatter extends Record<string, any> {
170
210
  */
171
211
  gallery_password?: string;
172
212
  /**
213
+ * @en
214
+ * @description encrypted content
215
+ *
173
216
  * @description:zh-CN 加密后的内容
174
217
  */
175
218
  encryptedContent?: string;
@@ -192,20 +235,31 @@ interface PageFrontMatter extends Record<string, any> {
192
235
  */
193
236
  from?: string | string[];
194
237
  }
238
+
239
+ type ExcerptType = 'md' | 'html' | 'text' | 'ai';
195
240
  interface PostFrontMatter extends PageFrontMatter {
196
241
  /**
197
- * post card type, can be bilibili/yuque/...
242
+ * @description:en-US Custom post title class in post list
243
+ * @description:zh-CN 文章列表中 自定义标题样式
244
+ */
245
+ postTitleClass: string;
246
+ /**
247
+ * @description:en-US Post Card Type, can be bilibili/yuque/... (need theme support)
248
+ * @description:zh-CN 卡片类型,可以是 bilibili/yuque/... (需主题支持)
198
249
  */
199
- type: string;
250
+ type: 'bilibili' | 'yuque' | string;
200
251
  /**
201
- * override url, and jump directly
252
+ * @en override url, and jump directly
253
+ * @zh 覆盖 post url,直接跳转
202
254
  */
203
255
  url: string;
204
256
  /**
205
- * @description 摘要
257
+ * @description:en-US custom excerpt, `excerpt_type` will be invalid
258
+ * @description 手动指定摘要,此时 `excerpt_type` 将会无效
206
259
  */
207
260
  excerpt: string;
208
261
  /**
262
+ * @description 摘要类型
209
263
  * @default 'html'
210
264
  * render type of excerpt
211
265
  * - md: render as raw markdown
@@ -214,27 +268,28 @@ interface PostFrontMatter extends PageFrontMatter {
214
268
  */
215
269
  excerpt_type: 'md' | 'text' | 'html' | 'ai';
216
270
  /**
217
- * Category
218
- * @description 分类,若为数组,则按顺序代表多层文件夹
271
+ * @description:en-US Category, if it is an array, it represents multiple folders in order
272
+ * @description:zh-CN 分类,若为数组,则按顺序代表多层文件夹
219
273
  */
220
274
  categories: string | string[];
221
275
  /**
222
- * Tags
223
- * @description 标签,可以有多个
276
+ * @description:en-US Tags, can have multiple
277
+ * @description:zh-CN 标签,可以有多个
224
278
  */
225
279
  tags: string[];
226
280
  /**
227
- * display prev next
228
- * @description 是否显示前一篇、后一篇导航
281
+ * @description:en-US Whether to display the previous and next navigation
282
+ * @description:zh-CN 是否显示前一篇、后一篇导航
229
283
  */
230
284
  nav: boolean;
231
285
  /**
232
- * 置顶
286
+ * @description:en-US Pin to top, the larger the number, the closer to the front
287
+ * @description:zh-CN 置顶,数字越大越靠前
233
288
  */
234
289
  top: number;
235
290
  /**
236
- * is draft
237
- * @description 是否为草稿
291
+ * @description:en-US Whether it is a draft, it will only be displayed during development
292
+ * @description:zh-CN 是否为草稿,将仅在开发时被展示
238
293
  */
239
294
  draft: boolean;
240
295
  /**
@@ -245,6 +300,7 @@ interface PostFrontMatter extends PageFrontMatter {
245
300
  */
246
301
  hide: 'index' | boolean;
247
302
  /**
303
+ * @en
248
304
  * when the post is updated more than 30 days ago, show a warning
249
305
  * default 30 days, you can set `time_warning` in frontmatter to change it
250
306
  *
@@ -254,9 +310,25 @@ interface PostFrontMatter extends PageFrontMatter {
254
310
  * @example 3600000
255
311
  */
256
312
  time_warning: boolean | number;
313
+ /**
314
+ * @protected
315
+ * @see https://valaxy.site/guide/config/#%E9%98%85%E8%AF%BB%E7%BB%9F%E8%AE%A1
316
+ * @tutorial ⚠️ DO NOT SET MANUALLY (generated by `site.config.ts` -> `statistics.enable: true`)
317
+ * You can use `statistics.readTime.speed` to change the speed of reading time.
318
+ * @description:en-US Reading time
319
+ * @description:zh-CN 阅读时间
320
+ */
321
+ readingTime: number;
322
+ /**
323
+ * @protected
324
+ * @see https://valaxy.site/guide/config/#%E9%98%85%E8%AF%BB%E7%BB%9F%E8%AE%A1
325
+ * @tutorial ⚠️ DO NOT SET MANUALLY (generated by `site.config.ts` -> `statistics.enable: true`)
326
+ * You need enable `statistics` in site config to use this feature.
327
+ * @description:en-US Word count
328
+ * @description:zh-CN 字数统计
329
+ */
330
+ wordCount: string;
257
331
  }
258
- type Page = Partial<PageFrontMatter>;
259
- type Post = Partial<PostFrontMatter>;
260
332
 
261
333
  interface FuseListItem {
262
334
  title: string;
@@ -359,6 +431,10 @@ interface SiteConfig {
359
431
  * @description 状态
360
432
  */
361
433
  status: {
434
+ /**
435
+ * Emoji representation of your status like '👨‍💻'
436
+ * @description 你的状态的 Emoji 表示,如 '👨‍💻'
437
+ */
362
438
  emoji: string;
363
439
  /**
364
440
  * show when hover emoji
@@ -628,4 +704,4 @@ type UserSiteConfig = PartialDeep<SiteConfig>;
628
704
  */
629
705
  type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
630
706
 
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 Post as a, type RedirectItem as b, type SiteConfig as c, type RuntimeConfig as d, type Pkg as e, type ValaxyConfig as f, type UserValaxyConfig as g, type Photo as h, type PageFrontMatter as i, type PostFrontMatter as j, type Page as k };
707
+ 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 };
@@ -2,6 +2,7 @@ import { ZoomOptions } from 'medium-zoom';
2
2
  import { FuseOptions } from '@vueuse/integrations/useFuse';
3
3
  import { ILazyLoadOptions } from 'vanilla-lazyload';
4
4
  import { RouteRecordRaw } from 'vue-router';
5
+ import { UseDarkOptions } from '@vueuse/core';
5
6
  import { NodeRelations, ImageObject } from '@unhead/schema-org';
6
7
 
7
8
  interface ValaxyAddon<AddonOptions = Record<string, any>> {
@@ -16,6 +17,41 @@ interface ValaxyAddon<AddonOptions = Record<string, any>> {
16
17
 
17
18
  declare namespace DefaultTheme {
18
19
  interface Config {
20
+ valaxyDarkOptions?: {
21
+ /**
22
+ * Options for `useDark`
23
+ * disableTransition default is `true`
24
+ * Its options are not computed, init when loaded.
25
+ * @see https://vueuse.org/core/useDark
26
+ * @url https://paco.me/writing/disable-theme-transitions
27
+ *
28
+ * @zh `useDark` 的选项
29
+ * disableTransition 默认为 `true`,不会进行渐变过渡,这是 VueUse 的默认行为
30
+ */
31
+ useDarkOptions?: UseDarkOptions;
32
+ /**
33
+ * Enable circle transition when toggling dark mode
34
+ * Then use `toggleDarkWithTransition` instead of `toggleDark`
35
+ * @zh 启用圆形过渡切换暗黑模式
36
+ */
37
+ circleTransition?: boolean;
38
+ /**
39
+ * Theme color
40
+ * @zh 主题色
41
+ */
42
+ themeColor?: {
43
+ /**
44
+ * Theme color for light mode
45
+ * @zh 亮色主题色
46
+ */
47
+ light?: string;
48
+ /**
49
+ * Theme color for dark mode
50
+ * @zh 暗色主题色
51
+ */
52
+ dark?: string;
53
+ };
54
+ };
19
55
  /**
20
56
  * Custom header levels of outline in the aside component.
21
57
  *
@@ -49,7 +85,6 @@ interface Photo {
49
85
  caption: string;
50
86
  desc: string;
51
87
  }
52
- type ExcerptType = 'md' | 'html' | 'text' | 'ai';
53
88
  interface PageFrontMatter extends Record<string, any> {
54
89
  /**
55
90
  * Path of post
@@ -71,12 +106,6 @@ interface PageFrontMatter extends Record<string, any> {
71
106
  * i18n
72
107
  */
73
108
  lang: string;
74
- /**
75
- * TODO
76
- * Read Time
77
- * @description 阅读时长
78
- */
79
- duration: string;
80
109
  /**
81
110
  * @description Author
82
111
  * @description:zh-CN 作者
@@ -109,16 +138,24 @@ interface PageFrontMatter extends Record<string, any> {
109
138
  */
110
139
  aside: boolean;
111
140
  /**
112
- * enable markdown-body class
113
- * @description 是否启用默认的 markdown 样式
141
+ * @description:en-US Custom Markdown class
142
+ * @description:zh-CN 自定义 Markdown 样式
143
+ * @default 'markdown-body'
144
+ */
145
+ markdownClass: string;
146
+ /**
147
+ * @description:en-US Post title class
148
+ * @description:zh-CN 文章标题样式
114
149
  */
115
- markdown: boolean;
150
+ pageTitleClass: string;
116
151
  /**
117
152
  * icon before title
153
+ * @description 标题前的图标
118
154
  */
119
155
  icon: string;
120
156
  /**
121
157
  * title color
158
+ * @deprecated Please use `pageTitleClass` | `postTitleClass` instead
122
159
  */
123
160
  color: string;
124
161
  /**
@@ -132,14 +169,17 @@ interface PageFrontMatter extends Record<string, any> {
132
169
  end: boolean;
133
170
  /**
134
171
  * use aplayer
172
+ * @url https://aplayer.js.org/
135
173
  */
136
174
  aplayer: boolean;
137
175
  /**
138
176
  * use katex
177
+ * @url https://katex.org/
139
178
  */
140
179
  katex: boolean;
141
180
  /**
142
181
  * use codepen
182
+ * @url https://codepen.io/
143
183
  */
144
184
  codepen: boolean;
145
185
  /**
@@ -170,6 +210,9 @@ interface PageFrontMatter extends Record<string, any> {
170
210
  */
171
211
  gallery_password?: string;
172
212
  /**
213
+ * @en
214
+ * @description encrypted content
215
+ *
173
216
  * @description:zh-CN 加密后的内容
174
217
  */
175
218
  encryptedContent?: string;
@@ -192,20 +235,31 @@ interface PageFrontMatter extends Record<string, any> {
192
235
  */
193
236
  from?: string | string[];
194
237
  }
238
+
239
+ type ExcerptType = 'md' | 'html' | 'text' | 'ai';
195
240
  interface PostFrontMatter extends PageFrontMatter {
196
241
  /**
197
- * post card type, can be bilibili/yuque/...
242
+ * @description:en-US Custom post title class in post list
243
+ * @description:zh-CN 文章列表中 自定义标题样式
244
+ */
245
+ postTitleClass: string;
246
+ /**
247
+ * @description:en-US Post Card Type, can be bilibili/yuque/... (need theme support)
248
+ * @description:zh-CN 卡片类型,可以是 bilibili/yuque/... (需主题支持)
198
249
  */
199
- type: string;
250
+ type: 'bilibili' | 'yuque' | string;
200
251
  /**
201
- * override url, and jump directly
252
+ * @en override url, and jump directly
253
+ * @zh 覆盖 post url,直接跳转
202
254
  */
203
255
  url: string;
204
256
  /**
205
- * @description 摘要
257
+ * @description:en-US custom excerpt, `excerpt_type` will be invalid
258
+ * @description 手动指定摘要,此时 `excerpt_type` 将会无效
206
259
  */
207
260
  excerpt: string;
208
261
  /**
262
+ * @description 摘要类型
209
263
  * @default 'html'
210
264
  * render type of excerpt
211
265
  * - md: render as raw markdown
@@ -214,27 +268,28 @@ interface PostFrontMatter extends PageFrontMatter {
214
268
  */
215
269
  excerpt_type: 'md' | 'text' | 'html' | 'ai';
216
270
  /**
217
- * Category
218
- * @description 分类,若为数组,则按顺序代表多层文件夹
271
+ * @description:en-US Category, if it is an array, it represents multiple folders in order
272
+ * @description:zh-CN 分类,若为数组,则按顺序代表多层文件夹
219
273
  */
220
274
  categories: string | string[];
221
275
  /**
222
- * Tags
223
- * @description 标签,可以有多个
276
+ * @description:en-US Tags, can have multiple
277
+ * @description:zh-CN 标签,可以有多个
224
278
  */
225
279
  tags: string[];
226
280
  /**
227
- * display prev next
228
- * @description 是否显示前一篇、后一篇导航
281
+ * @description:en-US Whether to display the previous and next navigation
282
+ * @description:zh-CN 是否显示前一篇、后一篇导航
229
283
  */
230
284
  nav: boolean;
231
285
  /**
232
- * 置顶
286
+ * @description:en-US Pin to top, the larger the number, the closer to the front
287
+ * @description:zh-CN 置顶,数字越大越靠前
233
288
  */
234
289
  top: number;
235
290
  /**
236
- * is draft
237
- * @description 是否为草稿
291
+ * @description:en-US Whether it is a draft, it will only be displayed during development
292
+ * @description:zh-CN 是否为草稿,将仅在开发时被展示
238
293
  */
239
294
  draft: boolean;
240
295
  /**
@@ -245,6 +300,7 @@ interface PostFrontMatter extends PageFrontMatter {
245
300
  */
246
301
  hide: 'index' | boolean;
247
302
  /**
303
+ * @en
248
304
  * when the post is updated more than 30 days ago, show a warning
249
305
  * default 30 days, you can set `time_warning` in frontmatter to change it
250
306
  *
@@ -254,9 +310,25 @@ interface PostFrontMatter extends PageFrontMatter {
254
310
  * @example 3600000
255
311
  */
256
312
  time_warning: boolean | number;
313
+ /**
314
+ * @protected
315
+ * @see https://valaxy.site/guide/config/#%E9%98%85%E8%AF%BB%E7%BB%9F%E8%AE%A1
316
+ * @tutorial ⚠️ DO NOT SET MANUALLY (generated by `site.config.ts` -> `statistics.enable: true`)
317
+ * You can use `statistics.readTime.speed` to change the speed of reading time.
318
+ * @description:en-US Reading time
319
+ * @description:zh-CN 阅读时间
320
+ */
321
+ readingTime: number;
322
+ /**
323
+ * @protected
324
+ * @see https://valaxy.site/guide/config/#%E9%98%85%E8%AF%BB%E7%BB%9F%E8%AE%A1
325
+ * @tutorial ⚠️ DO NOT SET MANUALLY (generated by `site.config.ts` -> `statistics.enable: true`)
326
+ * You need enable `statistics` in site config to use this feature.
327
+ * @description:en-US Word count
328
+ * @description:zh-CN 字数统计
329
+ */
330
+ wordCount: string;
257
331
  }
258
- type Page = Partial<PageFrontMatter>;
259
- type Post = Partial<PostFrontMatter>;
260
332
 
261
333
  interface FuseListItem {
262
334
  title: string;
@@ -359,6 +431,10 @@ interface SiteConfig {
359
431
  * @description 状态
360
432
  */
361
433
  status: {
434
+ /**
435
+ * Emoji representation of your status like '👨‍💻'
436
+ * @description 你的状态的 Emoji 表示,如 '👨‍💻'
437
+ */
362
438
  emoji: string;
363
439
  /**
364
440
  * show when hover emoji
@@ -628,4 +704,4 @@ type UserSiteConfig = PartialDeep<SiteConfig>;
628
704
  */
629
705
  type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
630
706
 
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 Post as a, type RedirectItem as b, type SiteConfig as c, type RuntimeConfig as d, type Pkg as e, type ValaxyConfig as f, type UserValaxyConfig as g, type Photo as h, type PageFrontMatter as i, type PostFrontMatter as j, type Page as k };
707
+ 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 };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4B74DZJ5cjs = require('../../chunk-4B74DZJ5.cjs');require('../../chunk-YO6XYYV3.cjs');exports.cli = _chunk4B74DZJ5cjs.T; exports.run = _chunk4B74DZJ5cjs.U;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkO2T7UBQWcjs = require('../../chunk-O2T7UBQW.cjs');require('../../chunk-I6UPHJXQ.cjs');exports.cli = _chunkO2T7UBQWcjs.T; exports.run = _chunkO2T7UBQWcjs.U;
@@ -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-F2X3NOEJ.mjs";import"../../chunk-42NDXDT3.mjs";export{a as cli,b as run};
2
+ import{T as a,U as b}from"../../chunk-W2X2FWTK.mjs";import"../../chunk-7VTZAWDO.mjs";export{a as cli,b as run};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4B74DZJ5cjs = require('../chunk-4B74DZJ5.cjs');require('../chunk-YO6XYYV3.cjs');exports.ALL_ROUTE = _chunk4B74DZJ5cjs.f; exports.EXCERPT_SEPARATOR = _chunk4B74DZJ5cjs.c; exports.EXTERNAL_URL_RE = _chunk4B74DZJ5cjs.d; exports.PATHNAME_PROTOCOL_RE = _chunk4B74DZJ5cjs.e; exports.ViteValaxyPlugins = _chunk4B74DZJ5cjs.N; exports.build = _chunk4B74DZJ5cjs.O; exports.cli = _chunk4B74DZJ5cjs.T; exports.createServer = _chunk4B74DZJ5cjs.S; exports.createValaxyLoader = _chunk4B74DZJ5cjs.M; exports.customElements = _chunk4B74DZJ5cjs.g; exports.defaultSiteConfig = _chunk4B74DZJ5cjs.p; exports.defaultValaxyConfig = _chunk4B74DZJ5cjs.t; exports.defineAddon = _chunk4B74DZJ5cjs.A; exports.defineConfig = _chunk4B74DZJ5cjs.v; exports.defineSiteConfig = _chunk4B74DZJ5cjs.q; exports.defineTheme = _chunk4B74DZJ5cjs.F; exports.defineUnoSetup = _chunk4B74DZJ5cjs.G; exports.defineValaxyAddon = _chunk4B74DZJ5cjs.z; exports.defineValaxyConfig = _chunk4B74DZJ5cjs.u; exports.defineValaxyTheme = _chunk4B74DZJ5cjs.E; exports.ensurePrefix = _chunk4B74DZJ5cjs.j; exports.generateClientRedirects = _chunk4B74DZJ5cjs.R; exports.getGitTimestamp = _chunk4B74DZJ5cjs.a; exports.getIndexHtml = _chunk4B74DZJ5cjs.L; exports.isExternal = _chunk4B74DZJ5cjs.h; exports.isPath = _chunk4B74DZJ5cjs.l; exports.loadConfig = _chunk4B74DZJ5cjs.n; exports.loadConfigFromFile = _chunk4B74DZJ5cjs.o; exports.mergeValaxyConfig = _chunk4B74DZJ5cjs.x; exports.mergeViteConfigs = _chunk4B74DZJ5cjs.K; exports.postProcessForSSG = _chunk4B74DZJ5cjs.Q; exports.processValaxyOptions = _chunk4B74DZJ5cjs.H; exports.resolveAddonsConfig = _chunk4B74DZJ5cjs.B; exports.resolveImportPath = _chunk4B74DZJ5cjs.b; exports.resolveOptions = _chunk4B74DZJ5cjs.I; exports.resolveSiteConfig = _chunk4B74DZJ5cjs.s; exports.resolveSiteConfigFromRoot = _chunk4B74DZJ5cjs.r; exports.resolveThemeConfigFromRoot = _chunk4B74DZJ5cjs.C; exports.resolveThemeValaxyConfig = _chunk4B74DZJ5cjs.J; exports.resolveUserThemeConfig = _chunk4B74DZJ5cjs.D; exports.resolveValaxyConfig = _chunk4B74DZJ5cjs.y; exports.resolveValaxyConfigFromRoot = _chunk4B74DZJ5cjs.w; exports.run = _chunk4B74DZJ5cjs.U; exports.slash = _chunk4B74DZJ5cjs.i; exports.ssgBuild = _chunk4B74DZJ5cjs.P; exports.toAtFS = _chunk4B74DZJ5cjs.k; exports.transformObject = _chunk4B74DZJ5cjs.m;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkO2T7UBQWcjs = require('../chunk-O2T7UBQW.cjs');require('../chunk-I6UPHJXQ.cjs');exports.ALL_ROUTE = _chunkO2T7UBQWcjs.d; exports.EXCERPT_SEPARATOR = _chunkO2T7UBQWcjs.a; exports.EXTERNAL_URL_RE = _chunkO2T7UBQWcjs.b; exports.PATHNAME_PROTOCOL_RE = _chunkO2T7UBQWcjs.c; exports.ViteValaxyPlugins = _chunkO2T7UBQWcjs.N; exports.build = _chunkO2T7UBQWcjs.O; exports.cli = _chunkO2T7UBQWcjs.T; exports.createServer = _chunkO2T7UBQWcjs.S; exports.createValaxyLoader = _chunkO2T7UBQWcjs.M; exports.customElements = _chunkO2T7UBQWcjs.e; exports.defaultSiteConfig = _chunkO2T7UBQWcjs.p; exports.defaultValaxyConfig = _chunkO2T7UBQWcjs.t; exports.defineAddon = _chunkO2T7UBQWcjs.A; exports.defineConfig = _chunkO2T7UBQWcjs.v; exports.defineSiteConfig = _chunkO2T7UBQWcjs.q; exports.defineTheme = _chunkO2T7UBQWcjs.F; exports.defineUnoSetup = _chunkO2T7UBQWcjs.G; exports.defineValaxyAddon = _chunkO2T7UBQWcjs.z; exports.defineValaxyConfig = _chunkO2T7UBQWcjs.u; exports.defineValaxyTheme = _chunkO2T7UBQWcjs.E; exports.ensurePrefix = _chunkO2T7UBQWcjs.j; exports.generateClientRedirects = _chunkO2T7UBQWcjs.R; exports.getGitTimestamp = _chunkO2T7UBQWcjs.f; exports.getIndexHtml = _chunkO2T7UBQWcjs.L; exports.isExternal = _chunkO2T7UBQWcjs.h; exports.isPath = _chunkO2T7UBQWcjs.l; exports.loadConfig = _chunkO2T7UBQWcjs.n; exports.loadConfigFromFile = _chunkO2T7UBQWcjs.o; exports.mergeValaxyConfig = _chunkO2T7UBQWcjs.x; exports.mergeViteConfigs = _chunkO2T7UBQWcjs.K; exports.postProcessForSSG = _chunkO2T7UBQWcjs.Q; exports.processValaxyOptions = _chunkO2T7UBQWcjs.H; exports.resolveAddonsConfig = _chunkO2T7UBQWcjs.B; exports.resolveImportPath = _chunkO2T7UBQWcjs.g; exports.resolveOptions = _chunkO2T7UBQWcjs.I; exports.resolveSiteConfig = _chunkO2T7UBQWcjs.s; exports.resolveSiteConfigFromRoot = _chunkO2T7UBQWcjs.r; exports.resolveThemeConfigFromRoot = _chunkO2T7UBQWcjs.C; exports.resolveThemeValaxyConfig = _chunkO2T7UBQWcjs.J; exports.resolveUserThemeConfig = _chunkO2T7UBQWcjs.D; exports.resolveValaxyConfig = _chunkO2T7UBQWcjs.y; exports.resolveValaxyConfigFromRoot = _chunkO2T7UBQWcjs.w; exports.run = _chunkO2T7UBQWcjs.U; exports.slash = _chunkO2T7UBQWcjs.i; exports.ssgBuild = _chunkO2T7UBQWcjs.P; exports.toAtFS = _chunkO2T7UBQWcjs.k; exports.transformObject = _chunkO2T7UBQWcjs.m;
@@ -23,12 +23,13 @@ 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-Kdq8Mya1.cjs';
26
+ import { P as PartialDeep$1 } from '../config-Bz-Xbvue.cjs';
27
27
  import 'yargs';
28
28
  import 'medium-zoom';
29
29
  import '@vueuse/integrations/useFuse';
30
30
  import 'vanilla-lazyload';
31
31
  import 'vue-router';
32
+ import '@vueuse/core';
32
33
  import '@unhead/schema-org';
33
34
 
34
35
  declare module 'vite' {
@@ -23,12 +23,13 @@ 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-Kdq8Mya1.js';
26
+ import { P as PartialDeep$1 } from '../config-Bz-Xbvue.js';
27
27
  import 'yargs';
28
28
  import 'medium-zoom';
29
29
  import '@vueuse/integrations/useFuse';
30
30
  import 'vanilla-lazyload';
31
31
  import 'vue-router';
32
+ import '@vueuse/core';
32
33
  import '@unhead/schema-org';
33
34
 
34
35
  declare module 'vite' {
@@ -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-F2X3NOEJ.mjs";import"../chunk-42NDXDT3.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};
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-W2X2FWTK.mjs";import"../chunk-7VTZAWDO.mjs";export{d as ALL_ROUTE,a as EXCERPT_SEPARATOR,b as EXTERNAL_URL_RE,c as PATHNAME_PROTOCOL_RE,N as ViteValaxyPlugins,O as build,T as cli,S as createServer,M as createValaxyLoader,e 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,f 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,g 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};
@@ -1 +1 @@
1
- "use strict";var _chunkYO6XYYV3cjs = require('../chunk-YO6XYYV3.cjs');_chunkYO6XYYV3cjs.e.call(void 0, );_chunkYO6XYYV3cjs.e.call(void 0, );_chunkYO6XYYV3cjs.e.call(void 0, );_chunkYO6XYYV3cjs.e.call(void 0, );_chunkYO6XYYV3cjs.e.call(void 0, );_chunkYO6XYYV3cjs.e.call(void 0, );_chunkYO6XYYV3cjs.e.call(void 0, );
1
+ "use strict";var _chunkI6UPHJXQcjs = require('../chunk-I6UPHJXQ.cjs');_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );
@@ -1,11 +1,15 @@
1
- import { a as Post } from '../config-Kdq8Mya1.cjs';
2
- export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, k as Page, i as PageFrontMatter, P as PartialDeep, h as Photo, e as Pkg, j as PostFrontMatter, b as RedirectItem, R as RedirectRule, d as RuntimeConfig, c as SiteConfig, S as SocialLink, U as UserSiteConfig, g as UserValaxyConfig, V as ValaxyAddon, f as ValaxyConfig } from '../config-Kdq8Mya1.cjs';
1
+ import { a as PageFrontMatter, b as PostFrontMatter } from '../config-Bz-Xbvue.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-Bz-Xbvue.cjs';
3
3
  import 'medium-zoom';
4
4
  import '@vueuse/integrations/useFuse';
5
5
  import 'vanilla-lazyload';
6
6
  import 'vue-router';
7
+ import '@vueuse/core';
7
8
  import '@unhead/schema-org';
8
9
 
10
+ type Page = Partial<PageFrontMatter>;
11
+ type Post = Partial<PostFrontMatter>;
12
+
9
13
  type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
10
14
  interface Header {
11
15
  /**
@@ -51,4 +55,4 @@ interface PageDataPayload {
51
55
  }
52
56
  type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
53
57
 
54
- export { type CleanUrlsMode, type HeadConfig, type Header, type PageData, type PageDataPayload, Post };
58
+ export { type CleanUrlsMode, type HeadConfig, type Header, type Page, type PageData, type PageDataPayload, PageFrontMatter, type Post, PostFrontMatter };
@@ -1,11 +1,15 @@
1
- import { a as Post } from '../config-Kdq8Mya1.js';
2
- export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, k as Page, i as PageFrontMatter, P as PartialDeep, h as Photo, e as Pkg, j as PostFrontMatter, b as RedirectItem, R as RedirectRule, d as RuntimeConfig, c as SiteConfig, S as SocialLink, U as UserSiteConfig, g as UserValaxyConfig, V as ValaxyAddon, f as ValaxyConfig } from '../config-Kdq8Mya1.js';
1
+ import { a as PageFrontMatter, b as PostFrontMatter } from '../config-Bz-Xbvue.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-Bz-Xbvue.js';
3
3
  import 'medium-zoom';
4
4
  import '@vueuse/integrations/useFuse';
5
5
  import 'vanilla-lazyload';
6
6
  import 'vue-router';
7
+ import '@vueuse/core';
7
8
  import '@unhead/schema-org';
8
9
 
10
+ type Page = Partial<PageFrontMatter>;
11
+ type Post = Partial<PostFrontMatter>;
12
+
9
13
  type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
10
14
  interface Header {
11
15
  /**
@@ -51,4 +55,4 @@ interface PageDataPayload {
51
55
  }
52
56
  type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
53
57
 
54
- export { type CleanUrlsMode, type HeadConfig, type Header, type PageData, type PageDataPayload, Post };
58
+ export { type CleanUrlsMode, type HeadConfig, type Header, type Page, type PageData, type PageDataPayload, PageFrontMatter, type Post, PostFrontMatter };
@@ -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-42NDXDT3.mjs";e();e();e();e();e();e();e();
2
+ import{d as e}from"../chunk-7VTZAWDO.mjs";e();e();e();e();e();e();e();e();e();e();