valaxy 0.16.2 → 0.16.4

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.
@@ -275,6 +275,10 @@ interface SocialLink {
275
275
  icon: string;
276
276
  color: string;
277
277
  }
278
+ interface RedirectRule {
279
+ to: string;
280
+ from: string | string[];
281
+ }
278
282
  interface SiteConfig {
279
283
  /**
280
284
  * enable auto (light/dark mode)
@@ -544,6 +548,11 @@ interface SiteConfig {
544
548
  * @description:zh-CN 限制代码块的高度,单位是 px
545
549
  */
546
550
  codeHeightLimit?: number;
551
+ /**
552
+ * @description:en-US client redirect rules
553
+ * @description:zh-CN 客户端重定向规则
554
+ */
555
+ redirects?: RedirectRule[];
547
556
  }
548
557
  type PartialDeep<T> = {
549
558
  [P in keyof T]?: T[P] extends object ? PartialDeep<T[P]> : T[P];
@@ -594,4 +603,4 @@ type UserSiteConfig = PartialDeep<SiteConfig>;
594
603
  */
595
604
  type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
596
605
 
597
- export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type RuntimeConfig as R, type SiteConfig as S, type UserSiteConfig as U, type ValaxyConfig as V, type ValaxyAddon as a, type Post as b, type SocialLink as c, type UserValaxyConfig as d, type Photo as e, type PageFrontMatter as f, type PostFrontMatter as g, type Page as h };
606
+ export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type RuntimeConfig as R, type SiteConfig as S, type UserSiteConfig as U, type ValaxyConfig as V, type ValaxyAddon as a, type Post as b, type SocialLink as c, type RedirectRule as d, type UserValaxyConfig as e, type Photo as f, type PageFrontMatter as g, type PostFrontMatter as h, type Page as i };
@@ -275,6 +275,10 @@ interface SocialLink {
275
275
  icon: string;
276
276
  color: string;
277
277
  }
278
+ interface RedirectRule {
279
+ to: string;
280
+ from: string | string[];
281
+ }
278
282
  interface SiteConfig {
279
283
  /**
280
284
  * enable auto (light/dark mode)
@@ -544,6 +548,11 @@ interface SiteConfig {
544
548
  * @description:zh-CN 限制代码块的高度,单位是 px
545
549
  */
546
550
  codeHeightLimit?: number;
551
+ /**
552
+ * @description:en-US client redirect rules
553
+ * @description:zh-CN 客户端重定向规则
554
+ */
555
+ redirects?: RedirectRule[];
547
556
  }
548
557
  type PartialDeep<T> = {
549
558
  [P in keyof T]?: T[P] extends object ? PartialDeep<T[P]> : T[P];
@@ -594,4 +603,4 @@ type UserSiteConfig = PartialDeep<SiteConfig>;
594
603
  */
595
604
  type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
596
605
 
597
- export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type RuntimeConfig as R, type SiteConfig as S, type UserSiteConfig as U, type ValaxyConfig as V, type ValaxyAddon as a, type Post as b, type SocialLink as c, type UserValaxyConfig as d, type Photo as e, type PageFrontMatter as f, type PostFrontMatter as g, type Page as h };
606
+ export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type RuntimeConfig as R, type SiteConfig as S, type UserSiteConfig as U, type ValaxyConfig as V, type ValaxyAddon as a, type Post as b, type SocialLink as c, type RedirectRule as d, type UserValaxyConfig as e, type Photo as f, type PageFrontMatter as g, type PostFrontMatter as h, type Page as i };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSB3V2W4Qcjs = require('../../chunk-SB3V2W4Q.cjs');require('../../chunk-R6EC3UMQ.cjs');exports.cli = _chunkSB3V2W4Qcjs.F; exports.run = _chunkSB3V2W4Qcjs.G;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk262FIKDLcjs = require('../../chunk-262FIKDL.cjs');require('../../chunk-GXMNHGBP.cjs');exports.cli = _chunk262FIKDLcjs.G; exports.run = _chunk262FIKDLcjs.H;
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{F as a,G as b}from"../../chunk-2NB5YEWA.mjs";import"../../chunk-YTQABADX.mjs";export{a as cli,b as run};
2
+ import{G as a,H as b}from"../../chunk-XWKIRAYV.mjs";import"../../chunk-WSC7UAH5.mjs";export{a as cli,b as run};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSB3V2W4Qcjs = require('../chunk-SB3V2W4Q.cjs');require('../chunk-R6EC3UMQ.cjs');exports.build = _chunkSB3V2W4Qcjs.B; exports.cli = _chunkSB3V2W4Qcjs.F; exports.createServer = _chunkSB3V2W4Qcjs.E; exports.defaultSiteConfig = _chunkSB3V2W4Qcjs.t; exports.defaultValaxyConfig = _chunkSB3V2W4Qcjs.u; exports.defineAddon = _chunkSB3V2W4Qcjs.n; exports.defineConfig = _chunkSB3V2W4Qcjs.s; exports.defineSiteConfig = _chunkSB3V2W4Qcjs.q; exports.defineTheme = _chunkSB3V2W4Qcjs.p; exports.defineUnoSetup = _chunkSB3V2W4Qcjs.v; exports.defineValaxyAddon = _chunkSB3V2W4Qcjs.m; exports.defineValaxyConfig = _chunkSB3V2W4Qcjs.r; exports.defineValaxyTheme = _chunkSB3V2W4Qcjs.o; exports.ensurePrefix = _chunkSB3V2W4Qcjs.d; exports.getGitTimestamp = _chunkSB3V2W4Qcjs.a; exports.getIndexHtml = _chunkSB3V2W4Qcjs.A; exports.isExternal = _chunkSB3V2W4Qcjs.b; exports.isPath = _chunkSB3V2W4Qcjs.f; exports.mergeValaxyConfig = _chunkSB3V2W4Qcjs.g; exports.mergeViteConfigs = _chunkSB3V2W4Qcjs.z; exports.postProcessForSSG = _chunkSB3V2W4Qcjs.D; exports.processValaxyOptions = _chunkSB3V2W4Qcjs.w; exports.resolveAddonConfig = _chunkSB3V2W4Qcjs.j; exports.resolveImportPath = _chunkSB3V2W4Qcjs.l; exports.resolveOptions = _chunkSB3V2W4Qcjs.x; exports.resolveThemeValaxyConfig = _chunkSB3V2W4Qcjs.y; exports.resolveValaxyConfig = _chunkSB3V2W4Qcjs.i; exports.resolveValaxyConfigFromRoot = _chunkSB3V2W4Qcjs.h; exports.run = _chunkSB3V2W4Qcjs.G; exports.slash = _chunkSB3V2W4Qcjs.c; exports.ssgBuild = _chunkSB3V2W4Qcjs.C; exports.toAtFS = _chunkSB3V2W4Qcjs.e; exports.transformObject = _chunkSB3V2W4Qcjs.k;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk262FIKDLcjs = require('../chunk-262FIKDL.cjs');require('../chunk-GXMNHGBP.cjs');exports.build = _chunk262FIKDLcjs.B; exports.cli = _chunk262FIKDLcjs.G; exports.createServer = _chunk262FIKDLcjs.F; exports.defaultSiteConfig = _chunk262FIKDLcjs.t; exports.defaultValaxyConfig = _chunk262FIKDLcjs.u; exports.defineAddon = _chunk262FIKDLcjs.n; exports.defineConfig = _chunk262FIKDLcjs.s; exports.defineSiteConfig = _chunk262FIKDLcjs.q; exports.defineTheme = _chunk262FIKDLcjs.p; exports.defineUnoSetup = _chunk262FIKDLcjs.v; exports.defineValaxyAddon = _chunk262FIKDLcjs.m; exports.defineValaxyConfig = _chunk262FIKDLcjs.r; exports.defineValaxyTheme = _chunk262FIKDLcjs.o; exports.ensurePrefix = _chunk262FIKDLcjs.d; exports.generateClientRedirects = _chunk262FIKDLcjs.E; exports.getGitTimestamp = _chunk262FIKDLcjs.a; exports.getIndexHtml = _chunk262FIKDLcjs.A; exports.isExternal = _chunk262FIKDLcjs.b; exports.isPath = _chunk262FIKDLcjs.f; exports.mergeValaxyConfig = _chunk262FIKDLcjs.g; exports.mergeViteConfigs = _chunk262FIKDLcjs.z; exports.postProcessForSSG = _chunk262FIKDLcjs.D; exports.processValaxyOptions = _chunk262FIKDLcjs.w; exports.resolveAddonConfig = _chunk262FIKDLcjs.j; exports.resolveImportPath = _chunk262FIKDLcjs.l; exports.resolveOptions = _chunk262FIKDLcjs.x; exports.resolveThemeValaxyConfig = _chunk262FIKDLcjs.y; exports.resolveValaxyConfig = _chunk262FIKDLcjs.i; exports.resolveValaxyConfigFromRoot = _chunk262FIKDLcjs.h; exports.run = _chunk262FIKDLcjs.H; exports.slash = _chunk262FIKDLcjs.c; exports.ssgBuild = _chunk262FIKDLcjs.C; exports.toAtFS = _chunk262FIKDLcjs.e; exports.transformObject = _chunk262FIKDLcjs.k;
@@ -2,7 +2,7 @@ import { ViteSSGOptions } from 'vite-ssg';
2
2
  export { cli, run } from './cli/index.cjs';
3
3
  import * as vite from 'vite';
4
4
  import { UserConfig, InlineConfig } from 'vite';
5
- import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-tjZfKSoC.cjs';
5
+ import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-OaNeBI1c.cjs';
6
6
  import Vue from '@vitejs/plugin-vue';
7
7
  import Components from 'unplugin-vue-components/vite';
8
8
  import { VitePluginConfig } from 'unocss/vite';
@@ -292,10 +292,12 @@ declare function build(options: ResolvedValaxyOptions, viteConfig?: InlineConfig
292
292
  declare function ssgBuild(options: ResolvedValaxyOptions, viteConfig?: InlineConfig): Promise<void>;
293
293
  /**
294
294
  * post process for ssg fix extra string like `/html>` `ml>` `l>`
295
+ * handle tasks after ssg build
295
296
  * todo find why
296
297
  * @param options
297
298
  */
298
299
  declare function postProcessForSSG(options: ResolvedValaxyOptions): Promise<void>;
300
+ declare function generateClientRedirects(options: ResolvedValaxyOptions): Promise<void>;
299
301
 
300
302
  declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
301
303
  setup?: ValaxyAddonResolver['setup'];
@@ -383,4 +385,4 @@ declare function resolveAddonConfig(addons: ValaxyAddonResolver[], options?: Res
383
385
  declare function transformObject(obj: any): string;
384
386
  declare function resolveImportPath(importName: string, ensure?: true): string;
385
387
 
386
- export { type HookResult, type ResolvedValaxyOptions, type UnoSetup, type UserValaxyNodeConfig, type ValaxyAddonExport, type ValaxyAddonFn, type ValaxyAddonLike, type ValaxyAddonResolver, type ValaxyAddons, type ValaxyConfigExport, type ValaxyConfigExtendKey, type ValaxyConfigFn, type ValaxyEntryOptions, type ValaxyExtendConfig, type ValaxyHooks, type ValaxyNode, type ValaxyNodeConfig, type ValaxyPickConfig, type ValaxyServerOptions, type ValaxyTheme, build, createServer, defaultSiteConfig, defaultValaxyConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, getGitTimestamp, getIndexHtml, isExternal, isPath, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonConfig, resolveImportPath, resolveOptions, resolveThemeValaxyConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
388
+ export { type HookResult, type ResolvedValaxyOptions, type UnoSetup, type UserValaxyNodeConfig, type ValaxyAddonExport, type ValaxyAddonFn, type ValaxyAddonLike, type ValaxyAddonResolver, type ValaxyAddons, type ValaxyConfigExport, type ValaxyConfigExtendKey, type ValaxyConfigFn, type ValaxyEntryOptions, type ValaxyExtendConfig, type ValaxyHooks, type ValaxyNode, type ValaxyNodeConfig, type ValaxyPickConfig, type ValaxyServerOptions, type ValaxyTheme, build, createServer, defaultSiteConfig, defaultValaxyConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, generateClientRedirects, getGitTimestamp, getIndexHtml, isExternal, isPath, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonConfig, resolveImportPath, resolveOptions, resolveThemeValaxyConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
@@ -2,7 +2,7 @@ import { ViteSSGOptions } from 'vite-ssg';
2
2
  export { cli, run } from './cli/index.js';
3
3
  import * as vite from 'vite';
4
4
  import { UserConfig, InlineConfig } from 'vite';
5
- import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-tjZfKSoC.js';
5
+ import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-OaNeBI1c.js';
6
6
  import Vue from '@vitejs/plugin-vue';
7
7
  import Components from 'unplugin-vue-components/vite';
8
8
  import { VitePluginConfig } from 'unocss/vite';
@@ -292,10 +292,12 @@ declare function build(options: ResolvedValaxyOptions, viteConfig?: InlineConfig
292
292
  declare function ssgBuild(options: ResolvedValaxyOptions, viteConfig?: InlineConfig): Promise<void>;
293
293
  /**
294
294
  * post process for ssg fix extra string like `/html>` `ml>` `l>`
295
+ * handle tasks after ssg build
295
296
  * todo find why
296
297
  * @param options
297
298
  */
298
299
  declare function postProcessForSSG(options: ResolvedValaxyOptions): Promise<void>;
300
+ declare function generateClientRedirects(options: ResolvedValaxyOptions): Promise<void>;
299
301
 
300
302
  declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
301
303
  setup?: ValaxyAddonResolver['setup'];
@@ -383,4 +385,4 @@ declare function resolveAddonConfig(addons: ValaxyAddonResolver[], options?: Res
383
385
  declare function transformObject(obj: any): string;
384
386
  declare function resolveImportPath(importName: string, ensure?: true): string;
385
387
 
386
- export { type HookResult, type ResolvedValaxyOptions, type UnoSetup, type UserValaxyNodeConfig, type ValaxyAddonExport, type ValaxyAddonFn, type ValaxyAddonLike, type ValaxyAddonResolver, type ValaxyAddons, type ValaxyConfigExport, type ValaxyConfigExtendKey, type ValaxyConfigFn, type ValaxyEntryOptions, type ValaxyExtendConfig, type ValaxyHooks, type ValaxyNode, type ValaxyNodeConfig, type ValaxyPickConfig, type ValaxyServerOptions, type ValaxyTheme, build, createServer, defaultSiteConfig, defaultValaxyConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, getGitTimestamp, getIndexHtml, isExternal, isPath, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonConfig, resolveImportPath, resolveOptions, resolveThemeValaxyConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
388
+ export { type HookResult, type ResolvedValaxyOptions, type UnoSetup, type UserValaxyNodeConfig, type ValaxyAddonExport, type ValaxyAddonFn, type ValaxyAddonLike, type ValaxyAddonResolver, type ValaxyAddons, type ValaxyConfigExport, type ValaxyConfigExtendKey, type ValaxyConfigFn, type ValaxyEntryOptions, type ValaxyExtendConfig, type ValaxyHooks, type ValaxyNode, type ValaxyNodeConfig, type ValaxyPickConfig, type ValaxyServerOptions, type ValaxyTheme, build, createServer, defaultSiteConfig, defaultValaxyConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, generateClientRedirects, getGitTimestamp, getIndexHtml, isExternal, isPath, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonConfig, resolveImportPath, resolveOptions, resolveThemeValaxyConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{A,B,C,D,E,F,G,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-2NB5YEWA.mjs";import"../chunk-YTQABADX.mjs";export{B as build,F as cli,E as createServer,t as defaultSiteConfig,u as defaultValaxyConfig,n as defineAddon,s as defineConfig,q as defineSiteConfig,p as defineTheme,v as defineUnoSetup,m as defineValaxyAddon,r as defineValaxyConfig,o as defineValaxyTheme,d as ensurePrefix,a as getGitTimestamp,A as getIndexHtml,b as isExternal,f as isPath,g as mergeValaxyConfig,z as mergeViteConfigs,D as postProcessForSSG,w as processValaxyOptions,j as resolveAddonConfig,l as resolveImportPath,x as resolveOptions,y as resolveThemeValaxyConfig,i as resolveValaxyConfig,h as resolveValaxyConfigFromRoot,G as run,c as slash,C as ssgBuild,e as toAtFS,k as transformObject};
2
+ import{A,B,C,D,E,F,G,H,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-XWKIRAYV.mjs";import"../chunk-WSC7UAH5.mjs";export{B as build,G as cli,F as createServer,t as defaultSiteConfig,u as defaultValaxyConfig,n as defineAddon,s as defineConfig,q as defineSiteConfig,p as defineTheme,v as defineUnoSetup,m as defineValaxyAddon,r as defineValaxyConfig,o as defineValaxyTheme,d as ensurePrefix,E as generateClientRedirects,a as getGitTimestamp,A as getIndexHtml,b as isExternal,f as isPath,g as mergeValaxyConfig,z as mergeViteConfigs,D as postProcessForSSG,w as processValaxyOptions,j as resolveAddonConfig,l as resolveImportPath,x as resolveOptions,y as resolveThemeValaxyConfig,i as resolveValaxyConfig,h as resolveValaxyConfigFromRoot,H as run,c as slash,C as ssgBuild,e as toAtFS,k as transformObject};
@@ -1 +1 @@
1
- "use strict";var _chunkR6EC3UMQcjs = require('../chunk-R6EC3UMQ.cjs');_chunkR6EC3UMQcjs.d.call(void 0, );_chunkR6EC3UMQcjs.d.call(void 0, );_chunkR6EC3UMQcjs.d.call(void 0, );_chunkR6EC3UMQcjs.d.call(void 0, );_chunkR6EC3UMQcjs.d.call(void 0, );_chunkR6EC3UMQcjs.d.call(void 0, );_chunkR6EC3UMQcjs.d.call(void 0, );
1
+ "use strict";var _chunkGXMNHGBPcjs = require('../chunk-GXMNHGBP.cjs');_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );
@@ -1,5 +1,5 @@
1
- import { b as Post } from '../config-tjZfKSoC.cjs';
2
- export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, h as Page, f as PageFrontMatter, P as PartialDeep, e as Photo, g as PostFrontMatter, R as RuntimeConfig, S as SiteConfig, c as SocialLink, U as UserSiteConfig, d as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-tjZfKSoC.cjs';
1
+ import { b as Post } from '../config-OaNeBI1c.cjs';
2
+ export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, i as Page, g as PageFrontMatter, P as PartialDeep, f as Photo, h as PostFrontMatter, d as RedirectRule, R as RuntimeConfig, S as SiteConfig, c as SocialLink, U as UserSiteConfig, e as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-OaNeBI1c.cjs';
3
3
  import 'medium-zoom';
4
4
  import '@vueuse/integrations/useFuse';
5
5
  import 'vanilla-lazyload';
@@ -1,5 +1,5 @@
1
- import { b as Post } from '../config-tjZfKSoC.js';
2
- export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, h as Page, f as PageFrontMatter, P as PartialDeep, e as Photo, g as PostFrontMatter, R as RuntimeConfig, S as SiteConfig, c as SocialLink, U as UserSiteConfig, d as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-tjZfKSoC.js';
1
+ import { b as Post } from '../config-OaNeBI1c.js';
2
+ export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, i as Page, g as PageFrontMatter, P as PartialDeep, f as Photo, h as PostFrontMatter, d as RedirectRule, R as RuntimeConfig, S as SiteConfig, c as SocialLink, U as UserSiteConfig, e as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-OaNeBI1c.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{e}from"../chunk-YTQABADX.mjs";e();e();e();e();e();e();e();
2
+ import{d as e}from"../chunk-WSC7UAH5.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.16.2",
4
+ "version": "0.16.4",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -65,16 +65,16 @@
65
65
  "@unhead/addons": "^1.8.9",
66
66
  "@unhead/schema-org": "^1.8.9",
67
67
  "@unhead/vue": "^1.8.9",
68
- "@vitejs/plugin-vue": "^4.5.2",
69
- "@vueuse/core": "^10.7.0",
70
- "@vueuse/integrations": "^10.7.0",
68
+ "@vitejs/plugin-vue": "^5.0.3",
69
+ "@vueuse/core": "^10.7.1",
70
+ "@vueuse/integrations": "^10.7.1",
71
71
  "body-scroll-lock": "4.0.0-beta.0",
72
72
  "consola": "^3.2.3",
73
73
  "critters": "^0.0.20",
74
74
  "cross-spawn": "^7.0.3",
75
75
  "css-i18n": "^0.0.2",
76
76
  "dayjs": "^1.11.10",
77
- "defu": "^6.1.3",
77
+ "defu": "^6.1.4",
78
78
  "ejs": "^3.1.9",
79
79
  "escape-html": "^1.0.3",
80
80
  "feed": "^4.2.2",
@@ -97,25 +97,25 @@
97
97
  "markdown-it-task-lists": "^2.1.1",
98
98
  "medium-zoom": "^1.1.0",
99
99
  "nprogress": "^0.2.0",
100
- "open": "10.0.1",
101
- "ora": "^7.0.1",
100
+ "open": "10.0.3",
101
+ "ora": "^8.0.1",
102
102
  "pascalcase": "^2.0.0",
103
103
  "pinia": "^2.1.7",
104
104
  "qrcode": "^1.5.3",
105
- "sass": "^1.69.5",
105
+ "sass": "^1.69.7",
106
106
  "shiki": "^0.14.7",
107
107
  "star-markdown-css": "^0.4.2",
108
108
  "unconfig": "^0.3.11",
109
- "unocss": "^0.58.0",
109
+ "unocss": "^0.58.3",
110
110
  "unplugin-vue-components": "^0.26.0",
111
111
  "vanilla-lazyload": "^17.8.5",
112
- "vite": "^5.0.10",
112
+ "vite": "^5.0.11",
113
113
  "vite-plugin-pages": "^0.32.0",
114
- "vite-plugin-vue-layouts": "0.9.1",
115
- "vite-ssg": "0.23.5",
114
+ "vite-plugin-vue-layouts": "0.11.0",
115
+ "vite-ssg": "0.23.6",
116
116
  "vite-ssg-sitemap": "0.6.1",
117
- "vue": "^3.3.13",
118
- "vue-i18n": "^9.8.0",
117
+ "vue": "^3.4.13",
118
+ "vue-i18n": "^9.9.0",
119
119
  "vue-router": "^4.2.5",
120
120
  "yargs": "^17.7.2"
121
121
  },
package/types/config.ts CHANGED
@@ -22,6 +22,11 @@ export interface SocialLink {
22
22
  color: string
23
23
  }
24
24
 
25
+ export interface RedirectRule {
26
+ to: string
27
+ from: string | string[]
28
+ }
29
+
25
30
  // shared with valaxy node and client
26
31
  export interface SiteConfig {
27
32
  /**
@@ -313,6 +318,12 @@ export interface SiteConfig {
313
318
  * @description:zh-CN 限制代码块的高度,单位是 px
314
319
  */
315
320
  codeHeightLimit?: number
321
+
322
+ /**
323
+ * @description:en-US client redirect rules
324
+ * @description:zh-CN 客户端重定向规则
325
+ */
326
+ redirects?: RedirectRule[]
316
327
  }
317
328
 
318
329
  export type PartialDeep<T> = {