valaxy 0.18.6 → 0.18.8

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.
@@ -268,6 +268,9 @@ interface FuseListItem {
268
268
  content?: string;
269
269
  }
270
270
 
271
+ /**
272
+ * @zh 社交链接
273
+ */
271
274
  interface SocialLink {
272
275
  /**
273
276
  * The title of your link
@@ -279,6 +282,9 @@ interface SocialLink {
279
282
  * https://icones.js.org/
280
283
  */
281
284
  icon: string;
285
+ /**
286
+ * @zh 图标颜色
287
+ */
282
288
  color: string;
283
289
  }
284
290
  interface RedirectRule {
@@ -297,7 +303,7 @@ interface SiteConfig {
297
303
  mode: 'light' | 'dark' | 'auto';
298
304
  /**
299
305
  * Default language
300
- * @description 默认语言
306
+ * @description 默认语言,设置 `zh-CN` 以改变默认语言为中文
301
307
  * @default 'en'
302
308
  */
303
309
  lang: string;
@@ -493,12 +499,19 @@ interface SiteConfig {
493
499
  * @url https://github.com/francoischalifour/medium-zoom
494
500
  */
495
501
  mediumZoom: {
502
+ /**
503
+ * @zh 启用图片预览
504
+ */
496
505
  enable: boolean;
497
506
  /**
498
507
  * For example: '.markdown-body img'
499
508
  * @default '' content.value querySelectorAll('img')
500
509
  */
501
510
  selector: string | HTMLElement | HTMLElement[];
511
+ /**
512
+ * @zh 配置项
513
+ * @see https://github.com/francoischalifour/medium-zoom#options
514
+ */
502
515
  options: ZoomOptions;
503
516
  };
504
517
  /**
@@ -268,6 +268,9 @@ interface FuseListItem {
268
268
  content?: string;
269
269
  }
270
270
 
271
+ /**
272
+ * @zh 社交链接
273
+ */
271
274
  interface SocialLink {
272
275
  /**
273
276
  * The title of your link
@@ -279,6 +282,9 @@ interface SocialLink {
279
282
  * https://icones.js.org/
280
283
  */
281
284
  icon: string;
285
+ /**
286
+ * @zh 图标颜色
287
+ */
282
288
  color: string;
283
289
  }
284
290
  interface RedirectRule {
@@ -297,7 +303,7 @@ interface SiteConfig {
297
303
  mode: 'light' | 'dark' | 'auto';
298
304
  /**
299
305
  * Default language
300
- * @description 默认语言
306
+ * @description 默认语言,设置 `zh-CN` 以改变默认语言为中文
301
307
  * @default 'en'
302
308
  */
303
309
  lang: string;
@@ -493,12 +499,19 @@ interface SiteConfig {
493
499
  * @url https://github.com/francoischalifour/medium-zoom
494
500
  */
495
501
  mediumZoom: {
502
+ /**
503
+ * @zh 启用图片预览
504
+ */
496
505
  enable: boolean;
497
506
  /**
498
507
  * For example: '.markdown-body img'
499
508
  * @default '' content.value querySelectorAll('img')
500
509
  */
501
510
  selector: string | HTMLElement | HTMLElement[];
511
+ /**
512
+ * @zh 配置项
513
+ * @see https://github.com/francoischalifour/medium-zoom#options
514
+ */
502
515
  options: ZoomOptions;
503
516
  };
504
517
  /**
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ6VKLD6Ecjs = require('../../chunk-Z6VKLD6E.cjs');require('../../chunk-TA326ETE.cjs');exports.cli = _chunkZ6VKLD6Ecjs.T; exports.run = _chunkZ6VKLD6Ecjs.U;
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,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-VQ75V4CX.mjs";import"../../chunk-NC2VW3FJ.mjs";export{a as cli,b as run};
2
+ import{T as a,U as b}from"../../chunk-66YLAOXO.mjs";import"../../chunk-CZRL2G4O.mjs";export{a as cli,b as run};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ6VKLD6Ecjs = require('../chunk-Z6VKLD6E.cjs');require('../chunk-TA326ETE.cjs');exports.ALL_ROUTE = _chunkZ6VKLD6Ecjs.f; exports.EXCERPT_SEPARATOR = _chunkZ6VKLD6Ecjs.c; exports.EXTERNAL_URL_RE = _chunkZ6VKLD6Ecjs.d; exports.PATHNAME_PROTOCOL_RE = _chunkZ6VKLD6Ecjs.e; exports.ViteValaxyPlugins = _chunkZ6VKLD6Ecjs.N; exports.build = _chunkZ6VKLD6Ecjs.O; exports.cli = _chunkZ6VKLD6Ecjs.T; exports.createServer = _chunkZ6VKLD6Ecjs.S; exports.createValaxyLoader = _chunkZ6VKLD6Ecjs.M; exports.customElements = _chunkZ6VKLD6Ecjs.g; exports.defaultSiteConfig = _chunkZ6VKLD6Ecjs.p; exports.defaultValaxyConfig = _chunkZ6VKLD6Ecjs.t; exports.defineAddon = _chunkZ6VKLD6Ecjs.A; exports.defineConfig = _chunkZ6VKLD6Ecjs.v; exports.defineSiteConfig = _chunkZ6VKLD6Ecjs.q; exports.defineTheme = _chunkZ6VKLD6Ecjs.F; exports.defineUnoSetup = _chunkZ6VKLD6Ecjs.G; exports.defineValaxyAddon = _chunkZ6VKLD6Ecjs.z; exports.defineValaxyConfig = _chunkZ6VKLD6Ecjs.u; exports.defineValaxyTheme = _chunkZ6VKLD6Ecjs.E; exports.ensurePrefix = _chunkZ6VKLD6Ecjs.j; exports.generateClientRedirects = _chunkZ6VKLD6Ecjs.R; exports.getGitTimestamp = _chunkZ6VKLD6Ecjs.a; exports.getIndexHtml = _chunkZ6VKLD6Ecjs.L; exports.isExternal = _chunkZ6VKLD6Ecjs.h; exports.isPath = _chunkZ6VKLD6Ecjs.l; exports.loadConfig = _chunkZ6VKLD6Ecjs.n; exports.loadConfigFromFile = _chunkZ6VKLD6Ecjs.o; exports.mergeValaxyConfig = _chunkZ6VKLD6Ecjs.x; exports.mergeViteConfigs = _chunkZ6VKLD6Ecjs.K; exports.postProcessForSSG = _chunkZ6VKLD6Ecjs.Q; exports.processValaxyOptions = _chunkZ6VKLD6Ecjs.H; exports.resolveAddonsConfig = _chunkZ6VKLD6Ecjs.B; exports.resolveImportPath = _chunkZ6VKLD6Ecjs.b; exports.resolveOptions = _chunkZ6VKLD6Ecjs.I; exports.resolveSiteConfig = _chunkZ6VKLD6Ecjs.s; exports.resolveSiteConfigFromRoot = _chunkZ6VKLD6Ecjs.r; exports.resolveThemeConfigFromRoot = _chunkZ6VKLD6Ecjs.C; exports.resolveThemeValaxyConfig = _chunkZ6VKLD6Ecjs.J; exports.resolveUserThemeConfig = _chunkZ6VKLD6Ecjs.D; exports.resolveValaxyConfig = _chunkZ6VKLD6Ecjs.y; exports.resolveValaxyConfigFromRoot = _chunkZ6VKLD6Ecjs.w; exports.run = _chunkZ6VKLD6Ecjs.U; exports.slash = _chunkZ6VKLD6Ecjs.i; exports.ssgBuild = _chunkZ6VKLD6Ecjs.P; exports.toAtFS = _chunkZ6VKLD6Ecjs.k; exports.transformObject = _chunkZ6VKLD6Ecjs.m;
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;
@@ -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-BqkMQ-w8.cjs';
26
+ import { P as PartialDeep$1 } from '../config-Kdq8Mya1.cjs';
27
27
  import 'yargs';
28
28
  import 'medium-zoom';
29
29
  import '@vueuse/integrations/useFuse';
@@ -67,6 +67,10 @@ type ThemeOptions = ThemeRegistration | BuiltinTheme | {
67
67
  light: ThemeRegistration | BuiltinTheme;
68
68
  dark: ThemeRegistration | BuiltinTheme;
69
69
  };
70
+ /**
71
+ * Extend Markdown options
72
+ * @zh 扩展 Markdown 配置,包含代码高亮、Markdown-it 和插件配置
73
+ */
70
74
  interface MarkdownOptions {
71
75
  /**
72
76
  * Setup markdown-it instance before applying plugins
@@ -382,8 +386,8 @@ declare const PATHNAME_PROTOCOL_RE: RegExp;
382
386
  declare const ALL_ROUTE = "/:all(.*)*";
383
387
  declare const customElements: Set<string>;
384
388
 
385
- declare function build(options: ResolvedValaxyOptions, viteConfig?: InlineConfig): Promise<void>;
386
- declare function ssgBuild(options: ResolvedValaxyOptions, viteConfig?: InlineConfig): Promise<void>;
389
+ declare function build(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
390
+ declare function ssgBuild(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
387
391
  /**
388
392
  * post process for ssg fix extra string like `/html>` `ml>` `l>`
389
393
  * handle tasks after ssg build
@@ -501,9 +505,9 @@ declare function defineUnoSetup(fn: UnoSetup): UnoSetup;
501
505
  */
502
506
  declare function createValaxyLoader(options: ResolvedValaxyOptions, serverOptions?: ValaxyServerOptions): Promise<Plugin[]>;
503
507
 
504
- declare function ViteValaxyPlugins(options: ResolvedValaxyOptions, serverOptions?: ValaxyServerOptions): Promise<(PluginOption | PluginOption[])[]>;
508
+ declare function ViteValaxyPlugins(valaxyApp: ValaxyNode, serverOptions?: ValaxyServerOptions): Promise<(PluginOption | PluginOption[])[]>;
505
509
 
506
- declare function createServer(options: ResolvedValaxyOptions, viteConfig?: InlineConfig, serverOptions?: ValaxyServerOptions): Promise<vite.ViteDevServer>;
510
+ declare function createServer(valaxyApp: ValaxyNode, viteConfig?: InlineConfig, serverOptions?: ValaxyServerOptions): Promise<vite.ViteDevServer>;
507
511
 
508
512
  declare function getGitTimestamp(file: string, type?: 'created' | 'updated'): Promise<number>;
509
513
 
@@ -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-BqkMQ-w8.js';
26
+ import { P as PartialDeep$1 } from '../config-Kdq8Mya1.js';
27
27
  import 'yargs';
28
28
  import 'medium-zoom';
29
29
  import '@vueuse/integrations/useFuse';
@@ -67,6 +67,10 @@ type ThemeOptions = ThemeRegistration | BuiltinTheme | {
67
67
  light: ThemeRegistration | BuiltinTheme;
68
68
  dark: ThemeRegistration | BuiltinTheme;
69
69
  };
70
+ /**
71
+ * Extend Markdown options
72
+ * @zh 扩展 Markdown 配置,包含代码高亮、Markdown-it 和插件配置
73
+ */
70
74
  interface MarkdownOptions {
71
75
  /**
72
76
  * Setup markdown-it instance before applying plugins
@@ -382,8 +386,8 @@ declare const PATHNAME_PROTOCOL_RE: RegExp;
382
386
  declare const ALL_ROUTE = "/:all(.*)*";
383
387
  declare const customElements: Set<string>;
384
388
 
385
- declare function build(options: ResolvedValaxyOptions, viteConfig?: InlineConfig): Promise<void>;
386
- declare function ssgBuild(options: ResolvedValaxyOptions, viteConfig?: InlineConfig): Promise<void>;
389
+ declare function build(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
390
+ declare function ssgBuild(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
387
391
  /**
388
392
  * post process for ssg fix extra string like `/html>` `ml>` `l>`
389
393
  * handle tasks after ssg build
@@ -501,9 +505,9 @@ declare function defineUnoSetup(fn: UnoSetup): UnoSetup;
501
505
  */
502
506
  declare function createValaxyLoader(options: ResolvedValaxyOptions, serverOptions?: ValaxyServerOptions): Promise<Plugin[]>;
503
507
 
504
- declare function ViteValaxyPlugins(options: ResolvedValaxyOptions, serverOptions?: ValaxyServerOptions): Promise<(PluginOption | PluginOption[])[]>;
508
+ declare function ViteValaxyPlugins(valaxyApp: ValaxyNode, serverOptions?: ValaxyServerOptions): Promise<(PluginOption | PluginOption[])[]>;
505
509
 
506
- declare function createServer(options: ResolvedValaxyOptions, viteConfig?: InlineConfig, serverOptions?: ValaxyServerOptions): Promise<vite.ViteDevServer>;
510
+ declare function createServer(valaxyApp: ValaxyNode, viteConfig?: InlineConfig, serverOptions?: ValaxyServerOptions): Promise<vite.ViteDevServer>;
507
511
 
508
512
  declare function getGitTimestamp(file: string, type?: 'created' | 'updated'): Promise<number>;
509
513
 
@@ -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-VQ75V4CX.mjs";import"../chunk-NC2VW3FJ.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-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};
@@ -1 +1 @@
1
- "use strict";var _chunkTA326ETEcjs = require('../chunk-TA326ETE.cjs');_chunkTA326ETEcjs.e.call(void 0, );_chunkTA326ETEcjs.e.call(void 0, );_chunkTA326ETEcjs.e.call(void 0, );_chunkTA326ETEcjs.e.call(void 0, );_chunkTA326ETEcjs.e.call(void 0, );_chunkTA326ETEcjs.e.call(void 0, );_chunkTA326ETEcjs.e.call(void 0, );
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,5 +1,5 @@
1
- import { a as Post } from '../config-BqkMQ-w8.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-BqkMQ-w8.cjs';
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';
3
3
  import 'medium-zoom';
4
4
  import '@vueuse/integrations/useFuse';
5
5
  import 'vanilla-lazyload';
@@ -1,5 +1,5 @@
1
- import { a as Post } from '../config-BqkMQ-w8.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-BqkMQ-w8.js';
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';
3
3
  import 'medium-zoom';
4
4
  import '@vueuse/integrations/useFuse';
5
5
  import 'vanilla-lazyload';
@@ -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-NC2VW3FJ.mjs";e();e();e();e();e();e();e();
2
+ import{d as e}from"../chunk-CZRL2G4O.mjs";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.6",
4
+ "version": "0.18.8",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -57,27 +57,26 @@
57
57
  "node": "^14.18.0 || >=16.0.0"
58
58
  },
59
59
  "dependencies": {
60
- "@antfu/utils": "^0.7.7",
60
+ "@antfu/utils": "^0.7.8",
61
61
  "@ctrl/tinycolor": "^4.1.0",
62
- "@iconify-json/carbon": "^1.1.31",
63
- "@iconify-json/ri": "^1.1.20",
62
+ "@iconify-json/carbon": "^1.1.35",
63
+ "@iconify-json/ri": "^1.1.21",
64
64
  "@intlify/unplugin-vue-i18n": "^4.0.0",
65
- "@types/body-scroll-lock": "^3.1.2",
66
65
  "@types/katex": "^0.16.7",
67
- "@unhead/addons": "^1.9.5",
68
- "@unhead/schema-org": "^1.9.5",
69
- "@unhead/vue": "^1.9.5",
70
- "@vitejs/plugin-vue": "^5.0.4",
71
- "@vue/devtools-api": "^7.0.27",
72
- "@vueuse/core": "^10.9.0",
73
- "@vueuse/integrations": "^10.9.0",
74
- "body-scroll-lock": "4.0.0-beta.0",
66
+ "@unhead/addons": "^1.9.13",
67
+ "@unhead/schema-org": "^1.9.13",
68
+ "@unhead/vue": "^1.9.13",
69
+ "@vitejs/plugin-vue": "^5.0.5",
70
+ "@vue/devtools-api": "^7.3.0",
71
+ "@vueuse/core": "^10.11.0",
72
+ "@vueuse/integrations": "^10.11.0",
75
73
  "consola": "^3.2.3",
76
74
  "critters": "^0.0.22",
77
75
  "cross-spawn": "^7.0.3",
78
76
  "css-i18n": "^0.0.2",
79
- "dayjs": "^1.11.10",
80
- "debug": "^4.3.4",
77
+ "date-fns": "^3.6.0",
78
+ "date-fns-tz": "^3.1.3",
79
+ "debug": "^4.3.5",
81
80
  "defu": "^6.1.4",
82
81
  "ejs": "^3.1.10",
83
82
  "escape-html": "^1.0.3",
@@ -88,19 +87,21 @@
88
87
  "hookable": "^5.5.3",
89
88
  "html-to-text": "^9.0.5",
90
89
  "is-installed-globally": "^1.0.0",
91
- "jiti": "^1.21.0",
90
+ "jiti": "^1.21.6",
92
91
  "js-base64": "^3.7.7",
93
92
  "katex": "^0.16.10",
94
- "lru-cache": "^10.2.0",
93
+ "lru-cache": "^10.2.2",
95
94
  "markdown-it": "^14.1.0",
96
- "markdown-it-anchor": "^8.6.7",
95
+ "markdown-it-anchor": "^9.0.1",
97
96
  "markdown-it-attrs": "^4.1.6",
98
97
  "markdown-it-container": "^4.0.0",
99
98
  "markdown-it-emoji": "^3.0.0",
99
+ "markdown-it-footnote": "^4.0.0",
100
+ "markdown-it-image-figures": "^2.1.1",
100
101
  "markdown-it-table-of-contents": "^0.6.0",
101
102
  "markdown-it-task-lists": "^2.1.1",
102
103
  "medium-zoom": "^1.1.0",
103
- "mermaid": "^10.9.0",
104
+ "mermaid": "^10.9.1",
104
105
  "nprogress": "^0.2.0",
105
106
  "open": "10.1.0",
106
107
  "ora": "^8.0.1",
@@ -108,44 +109,44 @@
108
109
  "pathe": "^1.1.2",
109
110
  "pinia": "^2.1.7",
110
111
  "qrcode": "^1.5.3",
111
- "sass": "^1.75.0",
112
- "shiki": "^1.3.0",
112
+ "sass": "^1.77.5",
113
+ "shiki": "^1.6.5",
113
114
  "star-markdown-css": "^0.4.2",
114
- "unocss": "^0.59.3",
115
- "unplugin-vue-components": "^0.26.0",
116
- "unplugin-vue-markdown": "^0.26.1",
117
- "unplugin-vue-router": "^0.8.6",
115
+ "unocss": "^0.61.0",
116
+ "unplugin-vue-components": "^0.27.0",
117
+ "unplugin-vue-markdown": "^0.26.2",
118
+ "unplugin-vue-router": "^0.9.1",
118
119
  "vanilla-lazyload": "^19.1.3",
119
- "vite": "^5.2.9",
120
- "vite-plugin-vue-devtools": "^7.0.27",
120
+ "vite": "^5.3.1",
121
+ "vite-plugin-vue-devtools": "^7.3.0",
121
122
  "vite-plugin-vue-layouts": "0.11.0",
122
- "vite-ssg": "0.23.6",
123
+ "vite-ssg": "0.23.7",
123
124
  "vite-ssg-sitemap": "0.6.1",
124
- "vue": "^3.4.23",
125
- "vue-i18n": "^9.12.1",
126
- "vue-router": "^4.3.0",
125
+ "vue": "^3.4.29",
126
+ "vue-i18n": "^9.13.1",
127
+ "vue-router": "^4.3.3",
127
128
  "yargs": "^17.7.2",
128
- "@valaxyjs/devtools": "0.18.6"
129
+ "@valaxyjs/devtools": "0.18.8"
129
130
  },
130
131
  "devDependencies": {
131
- "@mdit-vue/plugin-component": "^2.1.2",
132
- "@mdit-vue/plugin-frontmatter": "^2.1.2",
133
- "@mdit-vue/plugin-headers": "^2.1.2",
134
- "@mdit-vue/plugin-sfc": "^2.1.2",
135
- "@mdit-vue/plugin-title": "^2.1.2",
136
- "@mdit-vue/plugin-toc": "^2.1.2",
137
- "@mdit-vue/shared": "^2.1.2",
132
+ "@mdit-vue/plugin-component": "^2.1.3",
133
+ "@mdit-vue/plugin-frontmatter": "^2.1.3",
134
+ "@mdit-vue/plugin-headers": "^2.1.3",
135
+ "@mdit-vue/plugin-sfc": "^2.1.3",
136
+ "@mdit-vue/plugin-title": "^2.1.3",
137
+ "@mdit-vue/plugin-toc": "^2.1.3",
138
+ "@mdit-vue/shared": "^2.1.3",
138
139
  "@types/cross-spawn": "^6.0.6",
139
140
  "@types/ejs": "^3.1.5",
140
141
  "@types/html-to-text": "^9.0.4",
141
- "@types/markdown-it": "^14.0.1",
142
+ "@types/markdown-it": "^14.1.1",
143
+ "@types/markdown-it-footnote": "^3.0.4",
142
144
  "@types/nprogress": "^0.2.3",
143
145
  "@types/pascalcase": "^1.0.3",
144
146
  "@types/qrcode": "^1.5.5",
145
147
  "@types/yargs": "^17.0.32",
146
148
  "diacritics": "^1.3.0",
147
- "https-localhost": "^4.7.1",
148
- "markdown-it-image-figures": "^2.1.1"
149
+ "https-localhost": "^4.7.1"
149
150
  },
150
151
  "scripts": {
151
152
  "build": "rimraf dist && tsup --splitting",
package/types/config.ts CHANGED
@@ -9,6 +9,9 @@ import type { FuseListItem } from './node'
9
9
 
10
10
  import './default-theme'
11
11
 
12
+ /**
13
+ * @zh 社交链接
14
+ */
12
15
  export interface SocialLink {
13
16
  /**
14
17
  * The title of your link
@@ -20,6 +23,9 @@ export interface SocialLink {
20
23
  * https://icones.js.org/
21
24
  */
22
25
  icon: string
26
+ /**
27
+ * @zh 图标颜色
28
+ */
23
29
  color: string
24
30
  }
25
31
 
@@ -42,7 +48,7 @@ export interface SiteConfig {
42
48
  mode: 'light' | 'dark' | 'auto'
43
49
  /**
44
50
  * Default language
45
- * @description 默认语言
51
+ * @description 默认语言,设置 `zh-CN` 以改变默认语言为中文
46
52
  * @default 'en'
47
53
  */
48
54
  lang: string
@@ -250,12 +256,19 @@ export interface SiteConfig {
250
256
  * @url https://github.com/francoischalifour/medium-zoom
251
257
  */
252
258
  mediumZoom: {
259
+ /**
260
+ * @zh 启用图片预览
261
+ */
253
262
  enable: boolean
254
263
  /**
255
264
  * For example: '.markdown-body img'
256
265
  * @default '' content.value querySelectorAll('img')
257
266
  */
258
267
  selector: string | HTMLElement | HTMLElement[]
268
+ /**
269
+ * @zh 配置项
270
+ * @see https://github.com/francoischalifour/medium-zoom#options
271
+ */
259
272
  options: ZoomOptions
260
273
  }
261
274
 
@@ -1,17 +0,0 @@
1
- import { clearAllBodyScrollLocks, disableBodyScroll } from 'body-scroll-lock'
2
- import type { Ref } from 'vue'
3
-
4
- export function useBodyScrollLock(screenRef?: Ref<HTMLElement | undefined>) {
5
- function lockBodyScroll() {
6
- disableBodyScroll((screenRef && screenRef.value) || document.body, { reserveScrollBarGap: true })
7
- }
8
-
9
- function unlockBodyScroll() {
10
- clearAllBodyScrollLocks()
11
- }
12
-
13
- return {
14
- lockBodyScroll,
15
- unlockBodyScroll,
16
- }
17
- }