valaxy 0.19.2 → 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 -99
- package/client/components/ValaxyApp.vue +98 -0
- package/client/composables/outline/headers.ts +8 -111
- package/client/index.ts +3 -0
- package/client/main.ts +1 -0
- package/dist/{chunk-I6UPHJXQ.cjs → chunk-AFNVTV2C.cjs} +1 -1
- package/dist/{chunk-RVKKZQ6C.cjs → chunk-HR5LED6E.cjs} +35 -35
- package/dist/{chunk-PTYUKZAG.mjs → chunk-YCKEDOLI.mjs} +35 -35
- 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 +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +2 -29
- package/dist/types/index.d.ts +2 -29
- package/dist/types/index.mjs +1 -1
- package/package.json +13 -12
- package/shims.d.ts +1 -1
- package/types/data.ts +1 -28
- /package/dist/{chunk-7VTZAWDO.mjs → chunk-GYSOLAXM.mjs} +0 -0
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
|
@@ -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
|
@@ -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
1
|
import { a as PageFrontMatter, b as PostFrontMatter } from '../config-BuLv3zWm.cjs';
|
|
2
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
1
|
import { a as PageFrontMatter, b as PostFrontMatter } from '../config-BuLv3zWm.js';
|
|
2
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",
|
|
@@ -110,24 +110,25 @@
|
|
|
110
110
|
"pathe": "^1.1.2",
|
|
111
111
|
"pinia": "^2.1.7",
|
|
112
112
|
"qrcode": "^1.5.3",
|
|
113
|
-
"sass": "^1.77.
|
|
113
|
+
"sass": "^1.77.8",
|
|
114
114
|
"shiki": "^1.10.3",
|
|
115
115
|
"star-markdown-css": "^0.5.1",
|
|
116
|
-
"unocss": "^0.61.
|
|
117
|
-
"unplugin-vue-components": "^0.27.
|
|
116
|
+
"unocss": "^0.61.5",
|
|
117
|
+
"unplugin-vue-components": "^0.27.3",
|
|
118
118
|
"unplugin-vue-markdown": "^0.26.2",
|
|
119
119
|
"unplugin-vue-router": "^0.10.0",
|
|
120
120
|
"vanilla-lazyload": "^19.1.3",
|
|
121
|
-
"vite": "^5.3.
|
|
122
|
-
"vite-plugin-vue-devtools": "^7.3.
|
|
121
|
+
"vite": "^5.3.4",
|
|
122
|
+
"vite-plugin-vue-devtools": "^7.3.6",
|
|
123
123
|
"vite-plugin-vue-layouts": "0.11.0",
|
|
124
124
|
"vite-ssg": "0.23.7",
|
|
125
125
|
"vite-ssg-sitemap": "0.6.1",
|
|
126
|
-
"vue": "^3.4.
|
|
126
|
+
"vue": "^3.4.33",
|
|
127
127
|
"vue-i18n": "^9.13.1",
|
|
128
128
|
"vue-router": "^4.4.0",
|
|
129
129
|
"yargs": "^17.7.2",
|
|
130
|
-
"@valaxyjs/devtools": "0.19.
|
|
130
|
+
"@valaxyjs/devtools": "0.19.3",
|
|
131
|
+
"@valaxyjs/utils": "0.19.3"
|
|
131
132
|
},
|
|
132
133
|
"devDependencies": {
|
|
133
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/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
|
|
File without changes
|