valaxy 0.19.9 → 0.19.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/components/ValaxyApp.vue +3 -0
- package/client/components/ValaxyFootnoteTooltip.vue +19 -0
- package/client/composables/collections.ts +28 -0
- package/client/composables/common.ts +21 -4
- package/client/composables/dark.ts +0 -2
- package/client/composables/global.ts +16 -0
- package/client/composables/index.ts +1 -0
- package/client/define/collection.ts +27 -0
- package/client/define/index.ts +1 -0
- package/client/index.ts +3 -0
- package/client/modules/floating-vue.ts +10 -0
- package/client/modules/valaxy.ts +8 -7
- package/client/setup/main.ts +2 -0
- package/client/styles/css/css-vars.css +1 -1
- package/client/styles/palette.scss +2 -1
- package/client/utils/time.ts +5 -6
- package/dist/chunk-6H6IDGZO.mjs +157 -0
- package/dist/chunk-ZYUVBLR3.cjs +156 -0
- package/dist/{config-_Vh4V6Lh.d.cts → config-BNXiUUii.d.cts} +5 -5
- package/dist/{config-_Vh4V6Lh.d.ts → config-BNXiUUii.d.ts} +5 -5
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +23 -2
- package/dist/node/index.d.ts +23 -2
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +1 -1
- package/package.json +37 -31
- package/types/config.ts +6 -0
- package/types/frontmatter/page.ts +0 -6
- package/dist/chunk-ELKBAUEC.cjs +0 -156
- package/dist/chunk-MVWDJMOK.mjs +0 -157
- /package/dist/{chunk-FDUDFMUS.mjs → chunk-LIAYL4DV.mjs} +0 -0
- /package/dist/{chunk-635QRI6N.cjs → chunk-LUUQ46JJ.cjs} +0 -0
|
@@ -167,11 +167,6 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
167
167
|
* @description 是否完结,将在末尾添加衬线字体 Q.E.D.
|
|
168
168
|
*/
|
|
169
169
|
end: boolean;
|
|
170
|
-
/**
|
|
171
|
-
* use aplayer
|
|
172
|
-
* @url https://aplayer.js.org/
|
|
173
|
-
*/
|
|
174
|
-
aplayer: boolean;
|
|
175
170
|
/**
|
|
176
171
|
* use katex
|
|
177
172
|
* @url https://katex.org/
|
|
@@ -601,6 +596,11 @@ interface SiteConfig {
|
|
|
601
596
|
enable: boolean;
|
|
602
597
|
options: ILazyLoadOptions;
|
|
603
598
|
};
|
|
599
|
+
/**
|
|
600
|
+
* Floating Vue configuration for floating footnote tooltips.
|
|
601
|
+
* @see https://floating-vue.starpad.dev/guide/config
|
|
602
|
+
*/
|
|
603
|
+
floatingVue: any;
|
|
604
604
|
/**
|
|
605
605
|
* displayed posts length in every page
|
|
606
606
|
* @default 7
|
|
@@ -167,11 +167,6 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
167
167
|
* @description 是否完结,将在末尾添加衬线字体 Q.E.D.
|
|
168
168
|
*/
|
|
169
169
|
end: boolean;
|
|
170
|
-
/**
|
|
171
|
-
* use aplayer
|
|
172
|
-
* @url https://aplayer.js.org/
|
|
173
|
-
*/
|
|
174
|
-
aplayer: boolean;
|
|
175
170
|
/**
|
|
176
171
|
* use katex
|
|
177
172
|
* @url https://katex.org/
|
|
@@ -601,6 +596,11 @@ interface SiteConfig {
|
|
|
601
596
|
enable: boolean;
|
|
602
597
|
options: ILazyLoadOptions;
|
|
603
598
|
};
|
|
599
|
+
/**
|
|
600
|
+
* Floating Vue configuration for floating footnote tooltips.
|
|
601
|
+
* @see https://floating-vue.starpad.dev/guide/config
|
|
602
|
+
*/
|
|
603
|
+
floatingVue: any;
|
|
604
604
|
/**
|
|
605
605
|
* displayed posts length in every page
|
|
606
606
|
* @default 7
|
package/dist/node/cli/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZYUVBLR3cjs = require('../../chunk-ZYUVBLR3.cjs');require('../../chunk-LUUQ46JJ.cjs');exports.cli = _chunkZYUVBLR3cjs.U; exports.run = _chunkZYUVBLR3cjs.V;
|
package/dist/node/cli/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
import{
|
|
2
|
+
import{U as a,V as b}from"../../chunk-6H6IDGZO.mjs";import"../../chunk-LIAYL4DV.mjs";export{a as cli,b as run};
|
package/dist/node/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZYUVBLR3cjs = require('../chunk-ZYUVBLR3.cjs');require('../chunk-LUUQ46JJ.cjs');exports.ALL_ROUTE = _chunkZYUVBLR3cjs.e; exports.EXCERPT_SEPARATOR = _chunkZYUVBLR3cjs.b; exports.EXTERNAL_URL_RE = _chunkZYUVBLR3cjs.c; exports.PATHNAME_PROTOCOL_RE = _chunkZYUVBLR3cjs.d; exports.ViteValaxyPlugins = _chunkZYUVBLR3cjs.O; exports.build = _chunkZYUVBLR3cjs.P; exports.cli = _chunkZYUVBLR3cjs.U; exports.createServer = _chunkZYUVBLR3cjs.T; exports.createValaxyLoader = _chunkZYUVBLR3cjs.N; exports.customElements = _chunkZYUVBLR3cjs.f; exports.defaultSiteConfig = _chunkZYUVBLR3cjs.q; exports.defaultValaxyConfig = _chunkZYUVBLR3cjs.u; exports.defaultViteConfig = _chunkZYUVBLR3cjs.g; exports.defineAddon = _chunkZYUVBLR3cjs.B; exports.defineConfig = _chunkZYUVBLR3cjs.w; exports.defineSiteConfig = _chunkZYUVBLR3cjs.r; exports.defineTheme = _chunkZYUVBLR3cjs.G; exports.defineUnoSetup = _chunkZYUVBLR3cjs.H; exports.defineValaxyAddon = _chunkZYUVBLR3cjs.A; exports.defineValaxyConfig = _chunkZYUVBLR3cjs.v; exports.defineValaxyTheme = _chunkZYUVBLR3cjs.F; exports.ensurePrefix = _chunkZYUVBLR3cjs.k; exports.generateClientRedirects = _chunkZYUVBLR3cjs.S; exports.getGitTimestamp = _chunkZYUVBLR3cjs.a; exports.getIndexHtml = _chunkZYUVBLR3cjs.M; exports.isExternal = _chunkZYUVBLR3cjs.i; exports.isPath = _chunkZYUVBLR3cjs.m; exports.loadConfig = _chunkZYUVBLR3cjs.o; exports.loadConfigFromFile = _chunkZYUVBLR3cjs.p; exports.mergeValaxyConfig = _chunkZYUVBLR3cjs.y; exports.mergeViteConfigs = _chunkZYUVBLR3cjs.L; exports.postProcessForSSG = _chunkZYUVBLR3cjs.R; exports.processValaxyOptions = _chunkZYUVBLR3cjs.I; exports.resolveAddonsConfig = _chunkZYUVBLR3cjs.C; exports.resolveImportPath = _chunkZYUVBLR3cjs.h; exports.resolveOptions = _chunkZYUVBLR3cjs.J; exports.resolveSiteConfig = _chunkZYUVBLR3cjs.t; exports.resolveSiteConfigFromRoot = _chunkZYUVBLR3cjs.s; exports.resolveThemeConfigFromRoot = _chunkZYUVBLR3cjs.D; exports.resolveThemeValaxyConfig = _chunkZYUVBLR3cjs.K; exports.resolveUserThemeConfig = _chunkZYUVBLR3cjs.E; exports.resolveValaxyConfig = _chunkZYUVBLR3cjs.z; exports.resolveValaxyConfigFromRoot = _chunkZYUVBLR3cjs.x; exports.run = _chunkZYUVBLR3cjs.V; exports.slash = _chunkZYUVBLR3cjs.j; exports.ssgBuild = _chunkZYUVBLR3cjs.Q; exports.toAtFS = _chunkZYUVBLR3cjs.l; exports.transformObject = _chunkZYUVBLR3cjs.n;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -14,6 +14,7 @@ import { VitePluginConfig } from 'unocss/vite';
|
|
|
14
14
|
import { EditableTreeNode } from 'unplugin-vue-router';
|
|
15
15
|
import { presetUno, presetAttributify, presetIcons, presetTypography } from 'unocss';
|
|
16
16
|
import { Hookable } from 'hookable';
|
|
17
|
+
import { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
|
|
17
18
|
import MarkdownIt from 'markdown-it';
|
|
18
19
|
import { LanguageInput, ShikiTransformer, Highlighter, ThemeRegistration, BuiltinTheme } from 'shiki';
|
|
19
20
|
import anchorPlugin from 'markdown-it-anchor';
|
|
@@ -23,7 +24,7 @@ import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';
|
|
|
23
24
|
import { TocPluginOptions } from '@mdit-vue/plugin-toc';
|
|
24
25
|
import { Awaitable } from '@antfu/utils';
|
|
25
26
|
import * as defu from 'defu';
|
|
26
|
-
import { P as PartialDeep$1 } from '../config-
|
|
27
|
+
import { P as PartialDeep$1 } from '../config-BNXiUUii.cjs';
|
|
27
28
|
import 'yargs';
|
|
28
29
|
import 'medium-zoom';
|
|
29
30
|
import '@vueuse/integrations/useFuse';
|
|
@@ -223,6 +224,17 @@ interface ValaxyExtendConfig {
|
|
|
223
224
|
*/
|
|
224
225
|
ssgForPagination: boolean;
|
|
225
226
|
};
|
|
227
|
+
/**
|
|
228
|
+
* @experimental
|
|
229
|
+
* Deploy to gh-pages/remote server
|
|
230
|
+
*/
|
|
231
|
+
deploy: {
|
|
232
|
+
/**
|
|
233
|
+
* @zh 部署类型
|
|
234
|
+
* @en deploy type
|
|
235
|
+
*/
|
|
236
|
+
type?: 'gh-pages' | 'remote';
|
|
237
|
+
};
|
|
226
238
|
/**
|
|
227
239
|
* internal modules
|
|
228
240
|
*/
|
|
@@ -261,6 +273,11 @@ interface ValaxyExtendConfig {
|
|
|
261
273
|
layouts?: Parameters<typeof Layouts>[0];
|
|
262
274
|
router?: Parameters<typeof Router>[0];
|
|
263
275
|
unocss?: VitePluginConfig;
|
|
276
|
+
/**
|
|
277
|
+
* rollup-plugin-visualizer
|
|
278
|
+
* @see https://github.com/btd/rollup-plugin-visualizer
|
|
279
|
+
*/
|
|
280
|
+
visualizer?: PluginVisualizerOptions;
|
|
264
281
|
/**
|
|
265
282
|
* unocss presets
|
|
266
283
|
*/
|
|
@@ -408,6 +425,10 @@ declare const EXTERNAL_URL_RE: RegExp;
|
|
|
408
425
|
declare const PATHNAME_PROTOCOL_RE: RegExp;
|
|
409
426
|
declare const ALL_ROUTE = "/:all(.*)*";
|
|
410
427
|
declare const customElements: Set<string>;
|
|
428
|
+
/**
|
|
429
|
+
* @see https://vitejs.dev/config/shared-options.html#css-preprocessoroptions for sass@2
|
|
430
|
+
*/
|
|
431
|
+
declare const defaultViteConfig: UserConfig;
|
|
411
432
|
|
|
412
433
|
declare function build(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
|
|
413
434
|
declare function ssgBuild(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
|
|
@@ -555,4 +576,4 @@ declare function isPath(name: string): boolean;
|
|
|
555
576
|
*/
|
|
556
577
|
declare function transformObject(obj: any): string;
|
|
557
578
|
|
|
558
|
-
export { ALL_ROUTE, EXCERPT_SEPARATOR, EXTERNAL_URL_RE, type HookResult, type LoadConfigFromFileOptions, PATHNAME_PROTOCOL_RE, type ResolvedConfig, type ResolvedValaxyOptions, type UnoSetup, type UserInputConfig, 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, ViteValaxyPlugins, build, createServer, createValaxyLoader, customElements, defaultSiteConfig, defaultValaxyConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, generateClientRedirects, getGitTimestamp, getIndexHtml, isExternal, isPath, loadConfig, loadConfigFromFile, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonsConfig, resolveImportPath, resolveOptions, resolveSiteConfig, resolveSiteConfigFromRoot, resolveThemeConfigFromRoot, resolveThemeValaxyConfig, resolveUserThemeConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
|
|
579
|
+
export { ALL_ROUTE, EXCERPT_SEPARATOR, EXTERNAL_URL_RE, type HookResult, type LoadConfigFromFileOptions, PATHNAME_PROTOCOL_RE, type ResolvedConfig, type ResolvedValaxyOptions, type UnoSetup, type UserInputConfig, 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, ViteValaxyPlugins, build, createServer, createValaxyLoader, customElements, defaultSiteConfig, defaultValaxyConfig, defaultViteConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, generateClientRedirects, getGitTimestamp, getIndexHtml, isExternal, isPath, loadConfig, loadConfigFromFile, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonsConfig, resolveImportPath, resolveOptions, resolveSiteConfig, resolveSiteConfigFromRoot, resolveThemeConfigFromRoot, resolveThemeValaxyConfig, resolveUserThemeConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { VitePluginConfig } from 'unocss/vite';
|
|
|
14
14
|
import { EditableTreeNode } from 'unplugin-vue-router';
|
|
15
15
|
import { presetUno, presetAttributify, presetIcons, presetTypography } from 'unocss';
|
|
16
16
|
import { Hookable } from 'hookable';
|
|
17
|
+
import { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
|
|
17
18
|
import MarkdownIt from 'markdown-it';
|
|
18
19
|
import { LanguageInput, ShikiTransformer, Highlighter, ThemeRegistration, BuiltinTheme } from 'shiki';
|
|
19
20
|
import anchorPlugin from 'markdown-it-anchor';
|
|
@@ -23,7 +24,7 @@ import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';
|
|
|
23
24
|
import { TocPluginOptions } from '@mdit-vue/plugin-toc';
|
|
24
25
|
import { Awaitable } from '@antfu/utils';
|
|
25
26
|
import * as defu from 'defu';
|
|
26
|
-
import { P as PartialDeep$1 } from '../config-
|
|
27
|
+
import { P as PartialDeep$1 } from '../config-BNXiUUii.js';
|
|
27
28
|
import 'yargs';
|
|
28
29
|
import 'medium-zoom';
|
|
29
30
|
import '@vueuse/integrations/useFuse';
|
|
@@ -223,6 +224,17 @@ interface ValaxyExtendConfig {
|
|
|
223
224
|
*/
|
|
224
225
|
ssgForPagination: boolean;
|
|
225
226
|
};
|
|
227
|
+
/**
|
|
228
|
+
* @experimental
|
|
229
|
+
* Deploy to gh-pages/remote server
|
|
230
|
+
*/
|
|
231
|
+
deploy: {
|
|
232
|
+
/**
|
|
233
|
+
* @zh 部署类型
|
|
234
|
+
* @en deploy type
|
|
235
|
+
*/
|
|
236
|
+
type?: 'gh-pages' | 'remote';
|
|
237
|
+
};
|
|
226
238
|
/**
|
|
227
239
|
* internal modules
|
|
228
240
|
*/
|
|
@@ -261,6 +273,11 @@ interface ValaxyExtendConfig {
|
|
|
261
273
|
layouts?: Parameters<typeof Layouts>[0];
|
|
262
274
|
router?: Parameters<typeof Router>[0];
|
|
263
275
|
unocss?: VitePluginConfig;
|
|
276
|
+
/**
|
|
277
|
+
* rollup-plugin-visualizer
|
|
278
|
+
* @see https://github.com/btd/rollup-plugin-visualizer
|
|
279
|
+
*/
|
|
280
|
+
visualizer?: PluginVisualizerOptions;
|
|
264
281
|
/**
|
|
265
282
|
* unocss presets
|
|
266
283
|
*/
|
|
@@ -408,6 +425,10 @@ declare const EXTERNAL_URL_RE: RegExp;
|
|
|
408
425
|
declare const PATHNAME_PROTOCOL_RE: RegExp;
|
|
409
426
|
declare const ALL_ROUTE = "/:all(.*)*";
|
|
410
427
|
declare const customElements: Set<string>;
|
|
428
|
+
/**
|
|
429
|
+
* @see https://vitejs.dev/config/shared-options.html#css-preprocessoroptions for sass@2
|
|
430
|
+
*/
|
|
431
|
+
declare const defaultViteConfig: UserConfig;
|
|
411
432
|
|
|
412
433
|
declare function build(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
|
|
413
434
|
declare function ssgBuild(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
|
|
@@ -555,4 +576,4 @@ declare function isPath(name: string): boolean;
|
|
|
555
576
|
*/
|
|
556
577
|
declare function transformObject(obj: any): string;
|
|
557
578
|
|
|
558
|
-
export { ALL_ROUTE, EXCERPT_SEPARATOR, EXTERNAL_URL_RE, type HookResult, type LoadConfigFromFileOptions, PATHNAME_PROTOCOL_RE, type ResolvedConfig, type ResolvedValaxyOptions, type UnoSetup, type UserInputConfig, 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, ViteValaxyPlugins, build, createServer, createValaxyLoader, customElements, defaultSiteConfig, defaultValaxyConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, generateClientRedirects, getGitTimestamp, getIndexHtml, isExternal, isPath, loadConfig, loadConfigFromFile, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonsConfig, resolveImportPath, resolveOptions, resolveSiteConfig, resolveSiteConfigFromRoot, resolveThemeConfigFromRoot, resolveThemeValaxyConfig, resolveUserThemeConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
|
|
579
|
+
export { ALL_ROUTE, EXCERPT_SEPARATOR, EXTERNAL_URL_RE, type HookResult, type LoadConfigFromFileOptions, PATHNAME_PROTOCOL_RE, type ResolvedConfig, type ResolvedValaxyOptions, type UnoSetup, type UserInputConfig, 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, ViteValaxyPlugins, build, createServer, createValaxyLoader, customElements, defaultSiteConfig, defaultValaxyConfig, defaultViteConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, generateClientRedirects, getGitTimestamp, getIndexHtml, isExternal, isPath, loadConfig, loadConfigFromFile, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonsConfig, resolveImportPath, resolveOptions, resolveSiteConfig, resolveSiteConfigFromRoot, resolveThemeConfigFromRoot, resolveThemeValaxyConfig, resolveUserThemeConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
import{A,B,C,D,E,F,G,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-
|
|
2
|
+
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,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-6H6IDGZO.mjs";import"../chunk-LIAYL4DV.mjs";export{e as ALL_ROUTE,b as EXCERPT_SEPARATOR,c as EXTERNAL_URL_RE,d as PATHNAME_PROTOCOL_RE,O as ViteValaxyPlugins,P as build,U as cli,T as createServer,N as createValaxyLoader,f as customElements,q as defaultSiteConfig,u as defaultValaxyConfig,g as defaultViteConfig,B as defineAddon,w as defineConfig,r as defineSiteConfig,G as defineTheme,H as defineUnoSetup,A as defineValaxyAddon,v as defineValaxyConfig,F as defineValaxyTheme,k as ensurePrefix,S as generateClientRedirects,a as getGitTimestamp,M as getIndexHtml,i as isExternal,m as isPath,o as loadConfig,p as loadConfigFromFile,y as mergeValaxyConfig,L as mergeViteConfigs,R as postProcessForSSG,I as processValaxyOptions,C as resolveAddonsConfig,h as resolveImportPath,J as resolveOptions,t as resolveSiteConfig,s as resolveSiteConfigFromRoot,D as resolveThemeConfigFromRoot,K as resolveThemeValaxyConfig,E as resolveUserThemeConfig,z as resolveValaxyConfig,x as resolveValaxyConfigFromRoot,V as run,j as slash,Q as ssgBuild,l as toAtFS,n as transformObject};
|
package/dist/types/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var _chunkLUUQ46JJcjs = require('../chunk-LUUQ46JJ.cjs');_chunkLUUQ46JJcjs.e.call(void 0, );_chunkLUUQ46JJcjs.e.call(void 0, );_chunkLUUQ46JJcjs.e.call(void 0, );_chunkLUUQ46JJcjs.e.call(void 0, );_chunkLUUQ46JJcjs.e.call(void 0, );_chunkLUUQ46JJcjs.e.call(void 0, );_chunkLUUQ46JJcjs.e.call(void 0, );_chunkLUUQ46JJcjs.e.call(void 0, );_chunkLUUQ46JJcjs.e.call(void 0, );_chunkLUUQ46JJcjs.e.call(void 0, );
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as PageFrontMatter, b as PostFrontMatter } from '../config-
|
|
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-
|
|
1
|
+
import { a as PageFrontMatter, b as PostFrontMatter } from '../config-BNXiUUii.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-BNXiUUii.cjs';
|
|
3
3
|
import { Header } from '@valaxyjs/utils';
|
|
4
4
|
import 'medium-zoom';
|
|
5
5
|
import '@vueuse/integrations/useFuse';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as PageFrontMatter, b as PostFrontMatter } from '../config-
|
|
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-
|
|
1
|
+
import { a as PageFrontMatter, b as PostFrontMatter } from '../config-BNXiUUii.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-BNXiUUii.js';
|
|
3
3
|
import { Header } from '@valaxyjs/utils';
|
|
4
4
|
import 'medium-zoom';
|
|
5
5
|
import '@vueuse/integrations/useFuse';
|
package/dist/types/index.mjs
CHANGED
|
@@ -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-
|
|
2
|
+
import{d as e}from"../chunk-LIAYL4DV.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.19.
|
|
4
|
+
"version": "0.19.11",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -56,30 +56,33 @@
|
|
|
56
56
|
"node": "^14.18.0 || >=16.0.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
+
"@antfu/install-pkg": "^0.4.1",
|
|
59
60
|
"@antfu/utils": "^0.7.10",
|
|
61
|
+
"@clack/prompts": "^0.7.0",
|
|
60
62
|
"@ctrl/tinycolor": "^4.1.0",
|
|
61
|
-
"@iconify-json/ri": "^1.
|
|
62
|
-
"@intlify/unplugin-vue-i18n": "
|
|
63
|
+
"@iconify-json/ri": "^1.2.0",
|
|
64
|
+
"@intlify/unplugin-vue-i18n": "4",
|
|
63
65
|
"@types/katex": "^0.16.7",
|
|
64
66
|
"@types/luxon": "^3.4.2",
|
|
65
|
-
"@unhead/addons": "^1.
|
|
66
|
-
"@unhead/schema-org": "^1.
|
|
67
|
-
"@unhead/vue": "^1.
|
|
68
|
-
"@vitejs/plugin-vue": "^5.1.
|
|
69
|
-
"@vue/devtools-api": "^7.
|
|
70
|
-
"@vueuse/core": "^11.
|
|
71
|
-
"@vueuse/integrations": "^11.
|
|
67
|
+
"@unhead/addons": "^1.11.6",
|
|
68
|
+
"@unhead/schema-org": "^1.11.6",
|
|
69
|
+
"@unhead/vue": "^1.11.6",
|
|
70
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
71
|
+
"@vue/devtools-api": "^7.4.5",
|
|
72
|
+
"@vueuse/core": "^11.1.0",
|
|
73
|
+
"@vueuse/integrations": "^11.1.0",
|
|
72
74
|
"consola": "^3.2.3",
|
|
73
75
|
"critters": "^0.0.24",
|
|
74
76
|
"cross-spawn": "^7.0.3",
|
|
75
|
-
"css-i18n": "^0.0.
|
|
76
|
-
"date-fns": "^
|
|
77
|
+
"css-i18n": "^0.0.5",
|
|
78
|
+
"date-fns": "^4.1.0",
|
|
77
79
|
"date-fns-tz": "^3.1.3",
|
|
78
|
-
"debug": "^4.3.
|
|
80
|
+
"debug": "^4.3.7",
|
|
79
81
|
"defu": "^6.1.4",
|
|
80
82
|
"ejs": "^3.1.10",
|
|
81
83
|
"escape-html": "^1.0.3",
|
|
82
84
|
"feed": "^4.2.2",
|
|
85
|
+
"floating-vue": "^5.2.2",
|
|
83
86
|
"fs-extra": "^11.2.0",
|
|
84
87
|
"fuse.js": "^7.0.0",
|
|
85
88
|
"gray-matter": "^4.0.3",
|
|
@@ -90,45 +93,45 @@
|
|
|
90
93
|
"js-base64": "^3.7.7",
|
|
91
94
|
"js-yaml": "^4.1.0",
|
|
92
95
|
"katex": "^0.16.11",
|
|
93
|
-
"lru-cache": "^11.0.
|
|
96
|
+
"lru-cache": "^11.0.1",
|
|
94
97
|
"luxon": "^3.5.0",
|
|
95
98
|
"markdown-it": "^14.1.0",
|
|
96
|
-
"markdown-it-anchor": "^9.0
|
|
99
|
+
"markdown-it-anchor": "^9.2.0",
|
|
97
100
|
"markdown-it-attrs": "^4.2.0",
|
|
98
101
|
"markdown-it-container": "^4.0.0",
|
|
99
102
|
"markdown-it-emoji": "^3.0.0",
|
|
100
103
|
"markdown-it-footnote": "^4.0.0",
|
|
101
104
|
"markdown-it-image-figures": "^2.1.1",
|
|
102
|
-
"markdown-it-table-of-contents": "^0.
|
|
105
|
+
"markdown-it-table-of-contents": "^0.8.0",
|
|
103
106
|
"markdown-it-task-lists": "^2.1.1",
|
|
104
107
|
"medium-zoom": "^1.1.0",
|
|
105
|
-
"mermaid": "^
|
|
108
|
+
"mermaid": "^11.2.1",
|
|
106
109
|
"nprogress": "^0.2.0",
|
|
107
110
|
"open": "10.1.0",
|
|
108
|
-
"ora": "^8.0
|
|
111
|
+
"ora": "^8.1.0",
|
|
109
112
|
"pascalcase": "^2.0.0",
|
|
110
113
|
"pathe": "^1.1.2",
|
|
111
114
|
"pinia": "^2.2.2",
|
|
112
115
|
"qrcode": "^1.5.4",
|
|
113
|
-
"sass": "^1.
|
|
114
|
-
"shiki": "^1.
|
|
115
|
-
"star-markdown-css": "^0.5.
|
|
116
|
-
"unocss": "^0.62.
|
|
116
|
+
"sass": "^1.79.2",
|
|
117
|
+
"shiki": "^1.18.0",
|
|
118
|
+
"star-markdown-css": "^0.5.2",
|
|
119
|
+
"unocss": "^0.62.4",
|
|
117
120
|
"unplugin-vue-components": "^0.27.4",
|
|
118
121
|
"unplugin-vue-markdown": "^0.26.2",
|
|
119
|
-
"unplugin-vue-router": "^0.10.
|
|
122
|
+
"unplugin-vue-router": "^0.10.8",
|
|
120
123
|
"vanilla-lazyload": "^19.1.3",
|
|
121
|
-
"vite": "^5.4.
|
|
122
|
-
"vite-plugin-vue-devtools": "^7.
|
|
124
|
+
"vite": "^5.4.7",
|
|
125
|
+
"vite-plugin-vue-devtools": "^7.4.5",
|
|
123
126
|
"vite-plugin-vue-layouts": "0.11.0",
|
|
124
127
|
"vite-ssg": "0.23.7",
|
|
125
128
|
"vite-ssg-sitemap": "0.6.1",
|
|
126
|
-
"vue": "^3.
|
|
127
|
-
"vue-i18n": "^
|
|
128
|
-
"vue-router": "^4.4.
|
|
129
|
+
"vue": "^3.5.7",
|
|
130
|
+
"vue-i18n": "^10.0.1",
|
|
131
|
+
"vue-router": "^4.4.5",
|
|
129
132
|
"yargs": "^17.7.2",
|
|
130
|
-
"@valaxyjs/
|
|
131
|
-
"@valaxyjs/
|
|
133
|
+
"@valaxyjs/devtools": "0.19.11",
|
|
134
|
+
"@valaxyjs/utils": "0.19.11"
|
|
132
135
|
},
|
|
133
136
|
"devDependencies": {
|
|
134
137
|
"@mdit-vue/plugin-component": "^2.1.3",
|
|
@@ -140,6 +143,7 @@
|
|
|
140
143
|
"@mdit-vue/shared": "^2.1.3",
|
|
141
144
|
"@types/cross-spawn": "^6.0.6",
|
|
142
145
|
"@types/ejs": "^3.1.5",
|
|
146
|
+
"@types/gh-pages": "^6.1.0",
|
|
143
147
|
"@types/html-to-text": "^9.0.4",
|
|
144
148
|
"@types/js-yaml": "^4.0.9",
|
|
145
149
|
"@types/markdown-it": "^14.1.2",
|
|
@@ -149,7 +153,9 @@
|
|
|
149
153
|
"@types/qrcode": "^1.5.5",
|
|
150
154
|
"@types/yargs": "^17.0.33",
|
|
151
155
|
"diacritics": "^1.3.0",
|
|
152
|
-
"
|
|
156
|
+
"gh-pages": "^6.1.1",
|
|
157
|
+
"https-localhost": "^4.7.1",
|
|
158
|
+
"rollup-plugin-visualizer": "^5.12.0"
|
|
153
159
|
},
|
|
154
160
|
"scripts": {
|
|
155
161
|
"build": "rimraf dist && tsup --splitting",
|
package/types/config.ts
CHANGED
|
@@ -288,6 +288,12 @@ export interface SiteConfig {
|
|
|
288
288
|
options: ILazyLoadOptions
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
+
/**
|
|
292
|
+
* Floating Vue configuration for floating footnote tooltips.
|
|
293
|
+
* @see https://floating-vue.starpad.dev/guide/config
|
|
294
|
+
*/
|
|
295
|
+
floatingVue: any // FloatingVueConfig is an alias of any, consult the documentation for actual type
|
|
296
|
+
|
|
291
297
|
/**
|
|
292
298
|
* displayed posts length in every page
|
|
293
299
|
* @default 7
|
|
@@ -117,12 +117,6 @@ export interface PageFrontMatter extends Record<string, any> {
|
|
|
117
117
|
*/
|
|
118
118
|
end: boolean
|
|
119
119
|
|
|
120
|
-
// third-party features
|
|
121
|
-
/**
|
|
122
|
-
* use aplayer
|
|
123
|
-
* @url https://aplayer.js.org/
|
|
124
|
-
*/
|
|
125
|
-
aplayer: boolean
|
|
126
120
|
/**
|
|
127
121
|
* use katex
|
|
128
122
|
* @url https://katex.org/
|