valaxy 0.19.1 → 0.19.3
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/App.vue +1 -95
- package/client/components/ValaxyApp.vue +98 -0
- package/client/composables/categories.ts +12 -1
- package/client/composables/outline/headers.ts +8 -100
- package/client/composables/tags.ts +9 -0
- package/client/index.ts +3 -0
- package/client/locales/en.yml +2 -2
- package/client/main.ts +1 -0
- package/client/setup/mermaid.ts +7 -0
- package/client/setups.ts +15 -0
- package/client/types/index.ts +3 -0
- package/client/utils/router.ts +18 -0
- package/client/utils/time.ts +8 -0
- package/dist/{chunk-I6UPHJXQ.cjs → chunk-AFNVTV2C.cjs} +1 -1
- package/dist/chunk-HR5LED6E.cjs +156 -0
- package/dist/chunk-YCKEDOLI.mjs +157 -0
- package/dist/{config-Bz-Xbvue.d.cts → config-BuLv3zWm.d.cts} +0 -7
- package/dist/{config-Bz-Xbvue.d.ts → config-BuLv3zWm.d.ts} +0 -7
- 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 +3 -3
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +4 -31
- package/dist/types/index.d.ts +4 -31
- package/dist/types/index.mjs +1 -1
- package/package.json +14 -14
- package/shims.d.ts +1 -1
- package/types/config.ts +0 -7
- package/types/data.ts +1 -28
- package/dist/chunk-O2T7UBQW.cjs +0 -156
- package/dist/chunk-W2X2FWTK.mjs +0 -157
- /package/dist/{chunk-7VTZAWDO.mjs → chunk-GYSOLAXM.mjs} +0 -0
|
@@ -386,13 +386,6 @@ interface SiteConfig {
|
|
|
386
386
|
* @see https://ogp.me/#optional
|
|
387
387
|
*/
|
|
388
388
|
languages: string[];
|
|
389
|
-
/**
|
|
390
|
-
* @see https://day.js.org/docs/en/plugin/timezone
|
|
391
|
-
* @zh_CN 时区 'Asia/Shanghai' Recommended
|
|
392
|
-
* @en_US timezone
|
|
393
|
-
* @default '' Your Computer Timezone
|
|
394
|
-
*/
|
|
395
|
-
timezone: string;
|
|
396
389
|
/**
|
|
397
390
|
* You site url in web, required for ssg & rss
|
|
398
391
|
* @description 站点的完整 URL,SSG & RSS 需要(譬如生成版权处文章永久链接)
|
|
@@ -386,13 +386,6 @@ interface SiteConfig {
|
|
|
386
386
|
* @see https://ogp.me/#optional
|
|
387
387
|
*/
|
|
388
388
|
languages: string[];
|
|
389
|
-
/**
|
|
390
|
-
* @see https://day.js.org/docs/en/plugin/timezone
|
|
391
|
-
* @zh_CN 时区 'Asia/Shanghai' Recommended
|
|
392
|
-
* @en_US timezone
|
|
393
|
-
* @default '' Your Computer Timezone
|
|
394
|
-
*/
|
|
395
|
-
timezone: string;
|
|
396
389
|
/**
|
|
397
390
|
* You site url in web, required for ssg & rss
|
|
398
391
|
* @description 站点的完整 URL,SSG & RSS 需要(譬如生成版权处文章永久链接)
|
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 _chunkHR5LED6Ecjs = require('../../chunk-HR5LED6E.cjs');require('../../chunk-AFNVTV2C.cjs');exports.cli = _chunkHR5LED6Ecjs.T; exports.run = _chunkHR5LED6Ecjs.U;
|
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{T as a,U as b}from"../../chunk-
|
|
2
|
+
import{T as a,U as b}from"../../chunk-YCKEDOLI.mjs";import"../../chunk-GYSOLAXM.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 _chunkHR5LED6Ecjs = require('../chunk-HR5LED6E.cjs');require('../chunk-AFNVTV2C.cjs');exports.ALL_ROUTE = _chunkHR5LED6Ecjs.e; exports.EXCERPT_SEPARATOR = _chunkHR5LED6Ecjs.b; exports.EXTERNAL_URL_RE = _chunkHR5LED6Ecjs.c; exports.PATHNAME_PROTOCOL_RE = _chunkHR5LED6Ecjs.d; exports.ViteValaxyPlugins = _chunkHR5LED6Ecjs.N; exports.build = _chunkHR5LED6Ecjs.O; exports.cli = _chunkHR5LED6Ecjs.T; exports.createServer = _chunkHR5LED6Ecjs.S; exports.createValaxyLoader = _chunkHR5LED6Ecjs.M; exports.customElements = _chunkHR5LED6Ecjs.f; exports.defaultSiteConfig = _chunkHR5LED6Ecjs.p; exports.defaultValaxyConfig = _chunkHR5LED6Ecjs.t; exports.defineAddon = _chunkHR5LED6Ecjs.A; exports.defineConfig = _chunkHR5LED6Ecjs.v; exports.defineSiteConfig = _chunkHR5LED6Ecjs.q; exports.defineTheme = _chunkHR5LED6Ecjs.F; exports.defineUnoSetup = _chunkHR5LED6Ecjs.G; exports.defineValaxyAddon = _chunkHR5LED6Ecjs.z; exports.defineValaxyConfig = _chunkHR5LED6Ecjs.u; exports.defineValaxyTheme = _chunkHR5LED6Ecjs.E; exports.ensurePrefix = _chunkHR5LED6Ecjs.j; exports.generateClientRedirects = _chunkHR5LED6Ecjs.R; exports.getGitTimestamp = _chunkHR5LED6Ecjs.a; exports.getIndexHtml = _chunkHR5LED6Ecjs.L; exports.isExternal = _chunkHR5LED6Ecjs.h; exports.isPath = _chunkHR5LED6Ecjs.l; exports.loadConfig = _chunkHR5LED6Ecjs.n; exports.loadConfigFromFile = _chunkHR5LED6Ecjs.o; exports.mergeValaxyConfig = _chunkHR5LED6Ecjs.x; exports.mergeViteConfigs = _chunkHR5LED6Ecjs.K; exports.postProcessForSSG = _chunkHR5LED6Ecjs.Q; exports.processValaxyOptions = _chunkHR5LED6Ecjs.H; exports.resolveAddonsConfig = _chunkHR5LED6Ecjs.B; exports.resolveImportPath = _chunkHR5LED6Ecjs.g; exports.resolveOptions = _chunkHR5LED6Ecjs.I; exports.resolveSiteConfig = _chunkHR5LED6Ecjs.s; exports.resolveSiteConfigFromRoot = _chunkHR5LED6Ecjs.r; exports.resolveThemeConfigFromRoot = _chunkHR5LED6Ecjs.C; exports.resolveThemeValaxyConfig = _chunkHR5LED6Ecjs.J; exports.resolveUserThemeConfig = _chunkHR5LED6Ecjs.D; exports.resolveValaxyConfig = _chunkHR5LED6Ecjs.y; exports.resolveValaxyConfigFromRoot = _chunkHR5LED6Ecjs.w; exports.run = _chunkHR5LED6Ecjs.U; exports.slash = _chunkHR5LED6Ecjs.i; exports.ssgBuild = _chunkHR5LED6Ecjs.P; exports.toAtFS = _chunkHR5LED6Ecjs.k; exports.transformObject = _chunkHR5LED6Ecjs.m;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -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-
|
|
26
|
+
import { P as PartialDeep$1 } from '../config-BuLv3zWm.cjs';
|
|
27
27
|
import 'yargs';
|
|
28
28
|
import 'medium-zoom';
|
|
29
29
|
import '@vueuse/integrations/useFuse';
|
|
@@ -80,7 +80,7 @@ interface MarkdownOptions {
|
|
|
80
80
|
/**
|
|
81
81
|
* markdown-it options
|
|
82
82
|
*/
|
|
83
|
-
options?: MarkdownIt
|
|
83
|
+
options?: MarkdownIt['options'];
|
|
84
84
|
/**
|
|
85
85
|
* config markdown-it
|
|
86
86
|
*/
|
|
@@ -410,7 +410,7 @@ interface ResolvedConfig<T extends UserInputConfig = UserInputConfig> {
|
|
|
410
410
|
declare function loadConfig<T extends UserInputConfig = UserInputConfig>(options: {
|
|
411
411
|
name: string;
|
|
412
412
|
cwd: string;
|
|
413
|
-
}): ResolvedConfig<T
|
|
413
|
+
}): Promise<ResolvedConfig<T>>;
|
|
414
414
|
declare function loadConfigFromFile<T extends UserInputConfig>(file: string, options?: LoadConfigFromFileOptions): Promise<ResolvedConfig<T>>;
|
|
415
415
|
|
|
416
416
|
declare const defaultValaxyConfig: ValaxyNodeConfig;
|
package/dist/node/index.d.ts
CHANGED
|
@@ -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-
|
|
26
|
+
import { P as PartialDeep$1 } from '../config-BuLv3zWm.js';
|
|
27
27
|
import 'yargs';
|
|
28
28
|
import 'medium-zoom';
|
|
29
29
|
import '@vueuse/integrations/useFuse';
|
|
@@ -80,7 +80,7 @@ interface MarkdownOptions {
|
|
|
80
80
|
/**
|
|
81
81
|
* markdown-it options
|
|
82
82
|
*/
|
|
83
|
-
options?: MarkdownIt
|
|
83
|
+
options?: MarkdownIt['options'];
|
|
84
84
|
/**
|
|
85
85
|
* config markdown-it
|
|
86
86
|
*/
|
|
@@ -410,7 +410,7 @@ interface ResolvedConfig<T extends UserInputConfig = UserInputConfig> {
|
|
|
410
410
|
declare function loadConfig<T extends UserInputConfig = UserInputConfig>(options: {
|
|
411
411
|
name: string;
|
|
412
412
|
cwd: string;
|
|
413
|
-
}): ResolvedConfig<T
|
|
413
|
+
}): Promise<ResolvedConfig<T>>;
|
|
414
414
|
declare function loadConfigFromFile<T extends UserInputConfig>(file: string, options?: LoadConfigFromFileOptions): Promise<ResolvedConfig<T>>;
|
|
415
415
|
|
|
416
416
|
declare const defaultValaxyConfig: ValaxyNodeConfig;
|
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,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-YCKEDOLI.mjs";import"../chunk-GYSOLAXM.mjs";export{e as ALL_ROUTE,b as EXCERPT_SEPARATOR,c as EXTERNAL_URL_RE,d as PATHNAME_PROTOCOL_RE,N as ViteValaxyPlugins,O as build,T as cli,S as createServer,M as createValaxyLoader,f 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,g as resolveImportPath,I as resolveOptions,s as resolveSiteConfig,r as resolveSiteConfigFromRoot,C as resolveThemeConfigFromRoot,J as resolveThemeValaxyConfig,D as resolveUserThemeConfig,y as resolveValaxyConfig,w as resolveValaxyConfigFromRoot,U as run,i as slash,P as ssgBuild,k as toAtFS,m as transformObject};
|
package/dist/types/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var _chunkAFNVTV2Ccjs = require('../chunk-AFNVTV2C.cjs');_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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-BuLv3zWm.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-BuLv3zWm.cjs';
|
|
3
|
+
import { Header } from '@valaxyjs/utils';
|
|
3
4
|
import 'medium-zoom';
|
|
4
5
|
import '@vueuse/integrations/useFuse';
|
|
5
6
|
import 'vanilla-lazyload';
|
|
@@ -11,34 +12,6 @@ type Page = Partial<PageFrontMatter>;
|
|
|
11
12
|
type Post = Partial<PostFrontMatter>;
|
|
12
13
|
|
|
13
14
|
type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
|
|
14
|
-
interface Header {
|
|
15
|
-
/**
|
|
16
|
-
* The level of the header
|
|
17
|
-
*
|
|
18
|
-
* `1` to `6` for `<h1>` to `<h6>`
|
|
19
|
-
*/
|
|
20
|
-
level: number;
|
|
21
|
-
/**
|
|
22
|
-
* The title of the header
|
|
23
|
-
*/
|
|
24
|
-
title: string;
|
|
25
|
-
/**
|
|
26
|
-
* The slug of the header
|
|
27
|
-
*
|
|
28
|
-
* Typically the `id` attr of the header anchor
|
|
29
|
-
*/
|
|
30
|
-
slug: string;
|
|
31
|
-
/**
|
|
32
|
-
* Link of the header
|
|
33
|
-
*
|
|
34
|
-
* Typically using `#${slug}` as the anchor hash
|
|
35
|
-
*/
|
|
36
|
-
link: string;
|
|
37
|
-
/**
|
|
38
|
-
* i18n
|
|
39
|
-
*/
|
|
40
|
-
lang?: string;
|
|
41
|
-
}
|
|
42
15
|
interface PageData {
|
|
43
16
|
path: string;
|
|
44
17
|
relativePath: string;
|
|
@@ -55,4 +28,4 @@ interface PageDataPayload {
|
|
|
55
28
|
}
|
|
56
29
|
type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
|
|
57
30
|
|
|
58
|
-
export { type CleanUrlsMode, type HeadConfig, type
|
|
31
|
+
export { type CleanUrlsMode, type HeadConfig, type Page, type PageData, type PageDataPayload, PageFrontMatter, type Post, PostFrontMatter };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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-BuLv3zWm.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-BuLv3zWm.js';
|
|
3
|
+
import { Header } from '@valaxyjs/utils';
|
|
3
4
|
import 'medium-zoom';
|
|
4
5
|
import '@vueuse/integrations/useFuse';
|
|
5
6
|
import 'vanilla-lazyload';
|
|
@@ -11,34 +12,6 @@ type Page = Partial<PageFrontMatter>;
|
|
|
11
12
|
type Post = Partial<PostFrontMatter>;
|
|
12
13
|
|
|
13
14
|
type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
|
|
14
|
-
interface Header {
|
|
15
|
-
/**
|
|
16
|
-
* The level of the header
|
|
17
|
-
*
|
|
18
|
-
* `1` to `6` for `<h1>` to `<h6>`
|
|
19
|
-
*/
|
|
20
|
-
level: number;
|
|
21
|
-
/**
|
|
22
|
-
* The title of the header
|
|
23
|
-
*/
|
|
24
|
-
title: string;
|
|
25
|
-
/**
|
|
26
|
-
* The slug of the header
|
|
27
|
-
*
|
|
28
|
-
* Typically the `id` attr of the header anchor
|
|
29
|
-
*/
|
|
30
|
-
slug: string;
|
|
31
|
-
/**
|
|
32
|
-
* Link of the header
|
|
33
|
-
*
|
|
34
|
-
* Typically using `#${slug}` as the anchor hash
|
|
35
|
-
*/
|
|
36
|
-
link: string;
|
|
37
|
-
/**
|
|
38
|
-
* i18n
|
|
39
|
-
*/
|
|
40
|
-
lang?: string;
|
|
41
|
-
}
|
|
42
15
|
interface PageData {
|
|
43
16
|
path: string;
|
|
44
17
|
relativePath: string;
|
|
@@ -55,4 +28,4 @@ interface PageDataPayload {
|
|
|
55
28
|
}
|
|
56
29
|
type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
|
|
57
30
|
|
|
58
|
-
export { type CleanUrlsMode, type HeadConfig, type
|
|
31
|
+
export { type CleanUrlsMode, type HeadConfig, type Page, type PageData, type PageDataPayload, PageFrontMatter, type Post, PostFrontMatter };
|
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-GYSOLAXM.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.3",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"@intlify/unplugin-vue-i18n": "^4.0.0",
|
|
65
65
|
"@types/js-yaml": "^4.0.9",
|
|
66
66
|
"@types/katex": "^0.16.7",
|
|
67
|
-
"@unhead/addons": "^1.9.
|
|
68
|
-
"@unhead/schema-org": "^1.9.
|
|
69
|
-
"@unhead/vue": "^1.9.
|
|
67
|
+
"@unhead/addons": "^1.9.16",
|
|
68
|
+
"@unhead/schema-org": "^1.9.16",
|
|
69
|
+
"@unhead/vue": "^1.9.16",
|
|
70
70
|
"@vitejs/plugin-vue": "^5.0.5",
|
|
71
|
-
"@vue/devtools-api": "^7.3.
|
|
71
|
+
"@vue/devtools-api": "^7.3.6",
|
|
72
72
|
"@vueuse/core": "^10.11.0",
|
|
73
73
|
"@vueuse/integrations": "^10.11.0",
|
|
74
74
|
"consola": "^3.2.3",
|
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
"cross-spawn": "^7.0.3",
|
|
77
77
|
"css-i18n": "^0.0.2",
|
|
78
78
|
"date-fns": "^3.6.0",
|
|
79
|
-
"date-fns-tz": "^3.1.3",
|
|
80
79
|
"debug": "^4.3.5",
|
|
81
80
|
"defu": "^6.1.4",
|
|
82
81
|
"ejs": "^3.1.10",
|
|
@@ -92,7 +91,7 @@
|
|
|
92
91
|
"js-base64": "^3.7.7",
|
|
93
92
|
"js-yaml": "^4.1.0",
|
|
94
93
|
"katex": "^0.16.11",
|
|
95
|
-
"lru-cache": "^
|
|
94
|
+
"lru-cache": "^11.0.0",
|
|
96
95
|
"markdown-it": "^14.1.0",
|
|
97
96
|
"markdown-it-anchor": "^9.0.1",
|
|
98
97
|
"markdown-it-attrs": "^4.1.6",
|
|
@@ -111,24 +110,25 @@
|
|
|
111
110
|
"pathe": "^1.1.2",
|
|
112
111
|
"pinia": "^2.1.7",
|
|
113
112
|
"qrcode": "^1.5.3",
|
|
114
|
-
"sass": "^1.77.
|
|
113
|
+
"sass": "^1.77.8",
|
|
115
114
|
"shiki": "^1.10.3",
|
|
116
115
|
"star-markdown-css": "^0.5.1",
|
|
117
|
-
"unocss": "^0.61.
|
|
118
|
-
"unplugin-vue-components": "^0.27.
|
|
116
|
+
"unocss": "^0.61.5",
|
|
117
|
+
"unplugin-vue-components": "^0.27.3",
|
|
119
118
|
"unplugin-vue-markdown": "^0.26.2",
|
|
120
119
|
"unplugin-vue-router": "^0.10.0",
|
|
121
120
|
"vanilla-lazyload": "^19.1.3",
|
|
122
|
-
"vite": "^5.3.
|
|
123
|
-
"vite-plugin-vue-devtools": "^7.3.
|
|
121
|
+
"vite": "^5.3.4",
|
|
122
|
+
"vite-plugin-vue-devtools": "^7.3.6",
|
|
124
123
|
"vite-plugin-vue-layouts": "0.11.0",
|
|
125
124
|
"vite-ssg": "0.23.7",
|
|
126
125
|
"vite-ssg-sitemap": "0.6.1",
|
|
127
|
-
"vue": "^3.4.
|
|
126
|
+
"vue": "^3.4.33",
|
|
128
127
|
"vue-i18n": "^9.13.1",
|
|
129
128
|
"vue-router": "^4.4.0",
|
|
130
129
|
"yargs": "^17.7.2",
|
|
131
|
-
"@valaxyjs/devtools": "0.19.
|
|
130
|
+
"@valaxyjs/devtools": "0.19.3",
|
|
131
|
+
"@valaxyjs/utils": "0.19.3"
|
|
132
132
|
},
|
|
133
133
|
"devDependencies": {
|
|
134
134
|
"@mdit-vue/plugin-component": "^2.1.3",
|
package/shims.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import 'vue-router'
|
|
|
3
3
|
// import './client/typed-router'
|
|
4
4
|
|
|
5
5
|
import type { Ref } from 'vue'
|
|
6
|
+
import type { Header } from '@valaxyjs/utils'
|
|
6
7
|
import type { Post } from './types'
|
|
7
|
-
import type { Header } from './node/plugins/markdown'
|
|
8
8
|
|
|
9
9
|
declare module 'valaxy-addon-*'
|
|
10
10
|
declare module '@docsearch/js' {
|
package/types/config.ts
CHANGED
|
@@ -59,13 +59,6 @@ export interface SiteConfig {
|
|
|
59
59
|
* @see https://ogp.me/#optional
|
|
60
60
|
*/
|
|
61
61
|
languages: string[]
|
|
62
|
-
/**
|
|
63
|
-
* @see https://day.js.org/docs/en/plugin/timezone
|
|
64
|
-
* @zh_CN 时区 'Asia/Shanghai' Recommended
|
|
65
|
-
* @en_US timezone
|
|
66
|
-
* @default '' Your Computer Timezone
|
|
67
|
-
*/
|
|
68
|
-
timezone: string
|
|
69
62
|
/**
|
|
70
63
|
* You site url in web, required for ssg & rss
|
|
71
64
|
* @description 站点的完整 URL,SSG & RSS 需要(譬如生成版权处文章永久链接)
|
package/types/data.ts
CHANGED
|
@@ -1,37 +1,10 @@
|
|
|
1
|
+
import type { Header } from '@valaxyjs/utils'
|
|
1
2
|
import type { Post } from './posts'
|
|
2
3
|
|
|
3
4
|
export type CleanUrlsMode =
|
|
4
5
|
| 'disabled'
|
|
5
6
|
| 'without-subfolders'
|
|
6
7
|
| 'with-subfolders'
|
|
7
|
-
export interface Header {
|
|
8
|
-
/**
|
|
9
|
-
* The level of the header
|
|
10
|
-
*
|
|
11
|
-
* `1` to `6` for `<h1>` to `<h6>`
|
|
12
|
-
*/
|
|
13
|
-
level: number
|
|
14
|
-
/**
|
|
15
|
-
* The title of the header
|
|
16
|
-
*/
|
|
17
|
-
title: string
|
|
18
|
-
/**
|
|
19
|
-
* The slug of the header
|
|
20
|
-
*
|
|
21
|
-
* Typically the `id` attr of the header anchor
|
|
22
|
-
*/
|
|
23
|
-
slug: string
|
|
24
|
-
/**
|
|
25
|
-
* Link of the header
|
|
26
|
-
*
|
|
27
|
-
* Typically using `#${slug}` as the anchor hash
|
|
28
|
-
*/
|
|
29
|
-
link: string
|
|
30
|
-
/**
|
|
31
|
-
* i18n
|
|
32
|
-
*/
|
|
33
|
-
lang?: string
|
|
34
|
-
}
|
|
35
8
|
|
|
36
9
|
export interface PageData {
|
|
37
10
|
path: string
|