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.
@@ -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
- * enable markdown-body class
113
- * @description 是否启用默认的 markdown 样式
105
+ * @description:en-US Custom Markdown class
106
+ * @description:zh-CN 自定义 Markdown 样式
107
+ * @default 'markdown-body'
114
108
  */
115
- markdown: boolean;
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 card type, can be bilibili/yuque/...
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 prev next
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 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 };
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
- * enable markdown-body class
113
- * @description 是否启用默认的 markdown 样式
105
+ * @description:en-US Custom Markdown class
106
+ * @description:zh-CN 自定义 Markdown 样式
107
+ * @default 'markdown-body'
114
108
  */
115
- markdown: boolean;
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 card type, can be bilibili/yuque/...
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 prev next
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 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 };
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 };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYGG6G3RKcjs = require('../../chunk-YGG6G3RK.cjs');require('../../chunk-TQB6BKEE.cjs');exports.cli = _chunkYGG6G3RKcjs.T; exports.run = _chunkYGG6G3RKcjs.U;
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;
@@ -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-66YLAOXO.mjs";import"../../chunk-CZRL2G4O.mjs";export{a as cli,b as run};
2
+ import{T as a,U as b}from"../../chunk-57MNPFIN.mjs";import"../../chunk-OE2XGI4S.mjs";export{a as cli,b as run};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYGG6G3RKcjs = require('../chunk-YGG6G3RK.cjs');require('../chunk-TQB6BKEE.cjs');exports.ALL_ROUTE = _chunkYGG6G3RKcjs.f; exports.EXCERPT_SEPARATOR = _chunkYGG6G3RKcjs.c; exports.EXTERNAL_URL_RE = _chunkYGG6G3RKcjs.d; exports.PATHNAME_PROTOCOL_RE = _chunkYGG6G3RKcjs.e; exports.ViteValaxyPlugins = _chunkYGG6G3RKcjs.N; exports.build = _chunkYGG6G3RKcjs.O; exports.cli = _chunkYGG6G3RKcjs.T; exports.createServer = _chunkYGG6G3RKcjs.S; exports.createValaxyLoader = _chunkYGG6G3RKcjs.M; exports.customElements = _chunkYGG6G3RKcjs.g; exports.defaultSiteConfig = _chunkYGG6G3RKcjs.p; exports.defaultValaxyConfig = _chunkYGG6G3RKcjs.t; exports.defineAddon = _chunkYGG6G3RKcjs.A; exports.defineConfig = _chunkYGG6G3RKcjs.v; exports.defineSiteConfig = _chunkYGG6G3RKcjs.q; exports.defineTheme = _chunkYGG6G3RKcjs.F; exports.defineUnoSetup = _chunkYGG6G3RKcjs.G; exports.defineValaxyAddon = _chunkYGG6G3RKcjs.z; exports.defineValaxyConfig = _chunkYGG6G3RKcjs.u; exports.defineValaxyTheme = _chunkYGG6G3RKcjs.E; exports.ensurePrefix = _chunkYGG6G3RKcjs.j; exports.generateClientRedirects = _chunkYGG6G3RKcjs.R; exports.getGitTimestamp = _chunkYGG6G3RKcjs.a; exports.getIndexHtml = _chunkYGG6G3RKcjs.L; exports.isExternal = _chunkYGG6G3RKcjs.h; exports.isPath = _chunkYGG6G3RKcjs.l; exports.loadConfig = _chunkYGG6G3RKcjs.n; exports.loadConfigFromFile = _chunkYGG6G3RKcjs.o; exports.mergeValaxyConfig = _chunkYGG6G3RKcjs.x; exports.mergeViteConfigs = _chunkYGG6G3RKcjs.K; exports.postProcessForSSG = _chunkYGG6G3RKcjs.Q; exports.processValaxyOptions = _chunkYGG6G3RKcjs.H; exports.resolveAddonsConfig = _chunkYGG6G3RKcjs.B; exports.resolveImportPath = _chunkYGG6G3RKcjs.b; exports.resolveOptions = _chunkYGG6G3RKcjs.I; exports.resolveSiteConfig = _chunkYGG6G3RKcjs.s; exports.resolveSiteConfigFromRoot = _chunkYGG6G3RKcjs.r; exports.resolveThemeConfigFromRoot = _chunkYGG6G3RKcjs.C; exports.resolveThemeValaxyConfig = _chunkYGG6G3RKcjs.J; exports.resolveUserThemeConfig = _chunkYGG6G3RKcjs.D; exports.resolveValaxyConfig = _chunkYGG6G3RKcjs.y; exports.resolveValaxyConfigFromRoot = _chunkYGG6G3RKcjs.w; exports.run = _chunkYGG6G3RKcjs.U; exports.slash = _chunkYGG6G3RKcjs.i; exports.ssgBuild = _chunkYGG6G3RKcjs.P; exports.toAtFS = _chunkYGG6G3RKcjs.k; exports.transformObject = _chunkYGG6G3RKcjs.m;
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;
@@ -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-Kdq8Mya1.cjs';
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))[]>(source: Source, ...defaults: Defaults) => defu.Defu<Source, Defaults>;
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['setup'];
449
+ setup?: ValaxyAddonResolver["setup"];
450
450
  };
451
451
  declare const defineAddon: typeof defineValaxyAddon;
452
452
  declare function resolveAddonsConfig(addons: ValaxyAddonResolver[], options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
@@ -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-Kdq8Mya1.js';
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))[]>(source: Source, ...defaults: Defaults) => defu.Defu<Source, Defaults>;
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['setup'];
449
+ setup?: ValaxyAddonResolver["setup"];
450
450
  };
451
451
  declare const defineAddon: typeof defineValaxyAddon;
452
452
  declare function resolveAddonsConfig(addons: ValaxyAddonResolver[], options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
@@ -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-66YLAOXO.mjs";import"../chunk-CZRL2G4O.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-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};
@@ -1 +1 @@
1
- "use strict";var _chunkTQB6BKEEcjs = require('../chunk-TQB6BKEE.cjs');_chunkTQB6BKEEcjs.e.call(void 0, );_chunkTQB6BKEEcjs.e.call(void 0, );_chunkTQB6BKEEcjs.e.call(void 0, );_chunkTQB6BKEEcjs.e.call(void 0, );_chunkTQB6BKEEcjs.e.call(void 0, );_chunkTQB6BKEEcjs.e.call(void 0, );_chunkTQB6BKEEcjs.e.call(void 0, );
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, );
@@ -1,11 +1,14 @@
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-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 };
@@ -1,11 +1,14 @@
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-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 };
@@ -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-CZRL2G4O.mjs";e();e();e();e();e();e();e();
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.8",
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.8",
60
+ "@antfu/utils": "^0.7.10",
61
61
  "@ctrl/tinycolor": "^4.1.0",
62
- "@iconify-json/carbon": "^1.1.35",
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.13",
67
- "@unhead/schema-org": "^1.9.13",
68
- "@unhead/vue": "^1.9.13",
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.0",
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.22",
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.2.2",
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.5",
113
- "shiki": "^1.6.5",
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.0",
116
+ "unplugin-vue-components": "^0.27.2",
117
117
  "unplugin-vue-markdown": "^0.26.2",
118
- "unplugin-vue-router": "^0.9.1",
118
+ "unplugin-vue-router": "^0.10.0",
119
119
  "vanilla-lazyload": "^19.1.3",
120
- "vite": "^5.3.1",
121
- "vite-plugin-vue-devtools": "^7.3.0",
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.29",
125
+ "vue": "^3.4.31",
126
126
  "vue-i18n": "^9.13.1",
127
- "vue-router": "^4.3.3",
127
+ "vue-router": "^4.4.0",
128
128
  "yargs": "^17.7.2",
129
- "@valaxyjs/devtools": "0.18.8"
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 './posts'
7
+ import type { PostFrontMatter } from './frontmatter'
8
8
  import type { FuseListItem } from './node'
9
9
 
10
10
  import './default-theme'
@@ -0,0 +1,2 @@
1
+ export * from './page'
2
+ export * from './post'