valaxy 0.15.6 → 0.15.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.
- package/client/components/ValaxyCopyright.vue +0 -1
- package/client/components/ValaxyLogo.vue +1 -0
- package/client/components/ValaxyMd.vue +1 -0
- package/client/components/ValaxyOverlay.vue +1 -5
- package/client/components/ValaxyPagination.vue +0 -2
- package/client/modules/schemaOrg.ts +1 -1
- package/client/styles/common/code.scss +16 -20
- package/client/styles/common/hamburger.scss +4 -1
- package/client/styles/common/markdown.scss +3 -6
- package/client/styles/common/scrollbar.scss +1 -0
- package/client/styles/components/code-group.scss +1 -1
- package/client/styles/components/custom-block.scss +6 -4
- package/client/styles/css-vars.scss +8 -4
- package/client/styles/global/index.scss +0 -1
- package/client/styles/index.scss +0 -1
- package/client/styles/mixins/variable.scss +6 -0
- package/client/styles/palette.scss +12 -21
- package/client/styles/vars.scss +0 -3
- package/dist/{chunk-43XYAG2L.cjs → chunk-KAYZAZRH.cjs} +33 -33
- package/dist/chunk-X2AVLWVM.mjs +130 -0
- package/dist/node/cli.cjs +1 -1
- package/dist/node/cli.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +21 -2
- package/dist/node/index.d.ts +21 -2
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.ts +3 -2
- package/dist/types/index.mjs +1 -1
- package/package.json +21 -20
- package/types/addon.ts +1 -0
- package/types/default-theme.d.ts +0 -1
- package/types/index.ts +0 -1
- package/types/posts.ts +3 -1
- package/dist/chunk-4TR5DCV6.mjs +0 -130
- /package/dist/{chunk-M4Y54B6H.mjs → chunk-GY4S4RDR.mjs} +0 -0
- /package/dist/{chunk-MHVZJPKO.cjs → chunk-YDNPXS5U.cjs} +0 -0
package/dist/node/cli.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKAYZAZRHcjs = require('../chunk-KAYZAZRH.cjs');require('../chunk-YDNPXS5U.cjs');exports.cli = _chunkKAYZAZRHcjs.F; exports.run = _chunkKAYZAZRHcjs.G;
|
package/dist/node/cli.mjs
CHANGED
|
@@ -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-
|
|
2
|
+
import{F as a,G as b}from"../chunk-X2AVLWVM.mjs";import"../chunk-GY4S4RDR.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 _chunkKAYZAZRHcjs = require('../chunk-KAYZAZRH.cjs');var _chunkYDNPXS5Ucjs = require('../chunk-YDNPXS5U.cjs');_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );exports.build = _chunkKAYZAZRHcjs.C; exports.cli = _chunkKAYZAZRHcjs.F; exports.createServer = _chunkKAYZAZRHcjs.B; exports.defaultSiteConfig = _chunkKAYZAZRHcjs.t; exports.defaultValaxyConfig = _chunkKAYZAZRHcjs.u; exports.defineAddon = _chunkKAYZAZRHcjs.n; exports.defineConfig = _chunkKAYZAZRHcjs.s; exports.defineSiteConfig = _chunkKAYZAZRHcjs.q; exports.defineTheme = _chunkKAYZAZRHcjs.p; exports.defineUnoSetup = _chunkKAYZAZRHcjs.v; exports.defineValaxyAddon = _chunkKAYZAZRHcjs.m; exports.defineValaxyConfig = _chunkKAYZAZRHcjs.r; exports.defineValaxyTheme = _chunkKAYZAZRHcjs.o; exports.ensurePrefix = _chunkKAYZAZRHcjs.d; exports.getGitTimestamp = _chunkKAYZAZRHcjs.a; exports.getIndexHtml = _chunkKAYZAZRHcjs.A; exports.isExternal = _chunkKAYZAZRHcjs.b; exports.isPath = _chunkKAYZAZRHcjs.f; exports.mergeValaxyConfig = _chunkKAYZAZRHcjs.g; exports.mergeViteConfigs = _chunkKAYZAZRHcjs.z; exports.postProcessForSSG = _chunkKAYZAZRHcjs.E; exports.processValaxyOptions = _chunkKAYZAZRHcjs.w; exports.resolveAddonConfig = _chunkKAYZAZRHcjs.j; exports.resolveImportPath = _chunkKAYZAZRHcjs.l; exports.resolveOptions = _chunkKAYZAZRHcjs.x; exports.resolveThemeValaxyConfig = _chunkKAYZAZRHcjs.y; exports.resolveValaxyConfig = _chunkKAYZAZRHcjs.i; exports.resolveValaxyConfigFromRoot = _chunkKAYZAZRHcjs.h; exports.run = _chunkKAYZAZRHcjs.G; exports.slash = _chunkKAYZAZRHcjs.c; exports.ssgBuild = _chunkKAYZAZRHcjs.D; exports.toAtFS = _chunkKAYZAZRHcjs.e; exports.transformObject = _chunkKAYZAZRHcjs.k;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -9,6 +9,7 @@ import Components from 'unplugin-vue-components/vite';
|
|
|
9
9
|
import { VitePluginConfig } from 'unocss/vite';
|
|
10
10
|
import Pages from 'vite-plugin-pages';
|
|
11
11
|
import { presetUno, presetAttributify, presetIcons, presetTypography } from 'unocss';
|
|
12
|
+
import { Hookable } from 'hookable';
|
|
12
13
|
import MarkdownIt from 'markdown-it';
|
|
13
14
|
import { ILanguageRegistration, IThemeRegistration } from 'shiki';
|
|
14
15
|
import anchorPlugin from 'markdown-it-anchor';
|
|
@@ -104,6 +105,18 @@ type UserValaxyNodeConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<Valax
|
|
|
104
105
|
*/
|
|
105
106
|
type ValaxyConfigFn<ThemeConfig = DefaultTheme.Config> = (options: ResolvedValaxyOptions<ThemeConfig>) => ValaxyNodeConfig | Promise<ValaxyNodeConfig>;
|
|
106
107
|
type ValaxyConfigExport<ThemeConfig = DefaultTheme.Config> = ValaxyNodeConfig<ThemeConfig> | ValaxyConfigFn<ThemeConfig>;
|
|
108
|
+
type HookResult = Promise<void> | void;
|
|
109
|
+
interface ValaxyHooks {
|
|
110
|
+
'options:resolved': () => HookResult;
|
|
111
|
+
'config:init': () => HookResult;
|
|
112
|
+
'build:before': () => HookResult;
|
|
113
|
+
'build:after': () => HookResult;
|
|
114
|
+
}
|
|
115
|
+
interface ValaxyNode {
|
|
116
|
+
version: string;
|
|
117
|
+
hooks: Hookable<ValaxyHooks>;
|
|
118
|
+
hook: ValaxyNode['hooks']['hook'];
|
|
119
|
+
}
|
|
107
120
|
interface ValaxyExtendConfig {
|
|
108
121
|
/**
|
|
109
122
|
* Markdown Feature
|
|
@@ -147,6 +160,7 @@ interface ValaxyExtendConfig {
|
|
|
147
160
|
path: string;
|
|
148
161
|
}) => void;
|
|
149
162
|
addons?: ValaxyAddons;
|
|
163
|
+
hooks?: Partial<ValaxyHooks>;
|
|
150
164
|
}
|
|
151
165
|
type ValaxyAddonLike = ValaxyAddon | false | null | undefined;
|
|
152
166
|
type ValaxyAddons = (ValaxyAddon | string)[] | Record<string, ValaxyAddonLike>;
|
|
@@ -161,6 +175,7 @@ interface ValaxyAddonResolver {
|
|
|
161
175
|
options: Record<string, any>;
|
|
162
176
|
configFile?: string;
|
|
163
177
|
pkg: Record<string, any>;
|
|
178
|
+
setup?: (node: ValaxyNode) => void;
|
|
164
179
|
}
|
|
165
180
|
|
|
166
181
|
interface ValaxyEntryOptions {
|
|
@@ -257,7 +272,11 @@ declare function ssgBuild(options: ResolvedValaxyOptions, viteConfig?: InlineCon
|
|
|
257
272
|
*/
|
|
258
273
|
declare function postProcessForSSG(options: ResolvedValaxyOptions): Promise<void>;
|
|
259
274
|
|
|
260
|
-
declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon
|
|
275
|
+
declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
|
|
276
|
+
setup?: ValaxyAddonResolver['setup'];
|
|
277
|
+
}): (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
|
|
278
|
+
setup?: ValaxyAddonResolver['setup'];
|
|
279
|
+
};
|
|
261
280
|
declare const defineAddon: typeof defineValaxyAddon;
|
|
262
281
|
type ValaxyConfigExtendKey = 'vite' | 'vue' | 'unocss' | 'unocssPresets' | 'markdown' | 'extendMd' | 'addons';
|
|
263
282
|
type ValaxyPickConfig = Pick<ValaxyNodeConfig, ValaxyConfigExtendKey>;
|
|
@@ -339,4 +358,4 @@ declare function resolveAddonConfig(addons: ValaxyAddonResolver[], options?: Res
|
|
|
339
358
|
declare function transformObject(obj: any): string;
|
|
340
359
|
declare function resolveImportPath(importName: string, ensure?: true): string;
|
|
341
360
|
|
|
342
|
-
export { ResolvedValaxyOptions, UnoSetup, UserValaxyNodeConfig, ValaxyAddonExport, ValaxyAddonFn, ValaxyAddonLike, ValaxyAddonResolver, ValaxyAddons, ValaxyConfigExport, ValaxyConfigExtendKey, ValaxyConfigFn, ValaxyEntryOptions, ValaxyExtendConfig, ValaxyNodeConfig, ValaxyPickConfig, ValaxyServerOptions, 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 };
|
|
361
|
+
export { HookResult, ResolvedValaxyOptions, UnoSetup, UserValaxyNodeConfig, ValaxyAddonExport, ValaxyAddonFn, ValaxyAddonLike, ValaxyAddonResolver, ValaxyAddons, ValaxyConfigExport, ValaxyConfigExtendKey, ValaxyConfigFn, ValaxyEntryOptions, ValaxyExtendConfig, ValaxyHooks, ValaxyNode, ValaxyNodeConfig, ValaxyPickConfig, ValaxyServerOptions, 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 };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import Components from 'unplugin-vue-components/vite';
|
|
|
9
9
|
import { VitePluginConfig } from 'unocss/vite';
|
|
10
10
|
import Pages from 'vite-plugin-pages';
|
|
11
11
|
import { presetUno, presetAttributify, presetIcons, presetTypography } from 'unocss';
|
|
12
|
+
import { Hookable } from 'hookable';
|
|
12
13
|
import MarkdownIt from 'markdown-it';
|
|
13
14
|
import { ILanguageRegistration, IThemeRegistration } from 'shiki';
|
|
14
15
|
import anchorPlugin from 'markdown-it-anchor';
|
|
@@ -104,6 +105,18 @@ type UserValaxyNodeConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<Valax
|
|
|
104
105
|
*/
|
|
105
106
|
type ValaxyConfigFn<ThemeConfig = DefaultTheme.Config> = (options: ResolvedValaxyOptions<ThemeConfig>) => ValaxyNodeConfig | Promise<ValaxyNodeConfig>;
|
|
106
107
|
type ValaxyConfigExport<ThemeConfig = DefaultTheme.Config> = ValaxyNodeConfig<ThemeConfig> | ValaxyConfigFn<ThemeConfig>;
|
|
108
|
+
type HookResult = Promise<void> | void;
|
|
109
|
+
interface ValaxyHooks {
|
|
110
|
+
'options:resolved': () => HookResult;
|
|
111
|
+
'config:init': () => HookResult;
|
|
112
|
+
'build:before': () => HookResult;
|
|
113
|
+
'build:after': () => HookResult;
|
|
114
|
+
}
|
|
115
|
+
interface ValaxyNode {
|
|
116
|
+
version: string;
|
|
117
|
+
hooks: Hookable<ValaxyHooks>;
|
|
118
|
+
hook: ValaxyNode['hooks']['hook'];
|
|
119
|
+
}
|
|
107
120
|
interface ValaxyExtendConfig {
|
|
108
121
|
/**
|
|
109
122
|
* Markdown Feature
|
|
@@ -147,6 +160,7 @@ interface ValaxyExtendConfig {
|
|
|
147
160
|
path: string;
|
|
148
161
|
}) => void;
|
|
149
162
|
addons?: ValaxyAddons;
|
|
163
|
+
hooks?: Partial<ValaxyHooks>;
|
|
150
164
|
}
|
|
151
165
|
type ValaxyAddonLike = ValaxyAddon | false | null | undefined;
|
|
152
166
|
type ValaxyAddons = (ValaxyAddon | string)[] | Record<string, ValaxyAddonLike>;
|
|
@@ -161,6 +175,7 @@ interface ValaxyAddonResolver {
|
|
|
161
175
|
options: Record<string, any>;
|
|
162
176
|
configFile?: string;
|
|
163
177
|
pkg: Record<string, any>;
|
|
178
|
+
setup?: (node: ValaxyNode) => void;
|
|
164
179
|
}
|
|
165
180
|
|
|
166
181
|
interface ValaxyEntryOptions {
|
|
@@ -257,7 +272,11 @@ declare function ssgBuild(options: ResolvedValaxyOptions, viteConfig?: InlineCon
|
|
|
257
272
|
*/
|
|
258
273
|
declare function postProcessForSSG(options: ResolvedValaxyOptions): Promise<void>;
|
|
259
274
|
|
|
260
|
-
declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon
|
|
275
|
+
declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
|
|
276
|
+
setup?: ValaxyAddonResolver['setup'];
|
|
277
|
+
}): (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
|
|
278
|
+
setup?: ValaxyAddonResolver['setup'];
|
|
279
|
+
};
|
|
261
280
|
declare const defineAddon: typeof defineValaxyAddon;
|
|
262
281
|
type ValaxyConfigExtendKey = 'vite' | 'vue' | 'unocss' | 'unocssPresets' | 'markdown' | 'extendMd' | 'addons';
|
|
263
282
|
type ValaxyPickConfig = Pick<ValaxyNodeConfig, ValaxyConfigExtendKey>;
|
|
@@ -339,4 +358,4 @@ declare function resolveAddonConfig(addons: ValaxyAddonResolver[], options?: Res
|
|
|
339
358
|
declare function transformObject(obj: any): string;
|
|
340
359
|
declare function resolveImportPath(importName: string, ensure?: true): string;
|
|
341
360
|
|
|
342
|
-
export { ResolvedValaxyOptions, UnoSetup, UserValaxyNodeConfig, ValaxyAddonExport, ValaxyAddonFn, ValaxyAddonLike, ValaxyAddonResolver, ValaxyAddons, ValaxyConfigExport, ValaxyConfigExtendKey, ValaxyConfigFn, ValaxyEntryOptions, ValaxyExtendConfig, ValaxyNodeConfig, ValaxyPickConfig, ValaxyServerOptions, 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 };
|
|
361
|
+
export { HookResult, ResolvedValaxyOptions, UnoSetup, UserValaxyNodeConfig, ValaxyAddonExport, ValaxyAddonFn, ValaxyAddonLike, ValaxyAddonResolver, ValaxyAddons, ValaxyConfigExport, ValaxyConfigExtendKey, ValaxyConfigFn, ValaxyEntryOptions, ValaxyExtendConfig, ValaxyHooks, ValaxyNode, ValaxyNodeConfig, ValaxyPickConfig, ValaxyServerOptions, 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 };
|
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 as
|
|
2
|
+
import{A as H,B as O,C as D,D as U,E as S,F,G as w,a as n,b as a,c as r,d as i,e as p,f as s,g as f,h as y,i as l,j as g,k as m,l as d,m as x,n as C,o as V,p as u,q as h,r as c,s as k,t as v,u as T,v as P,w as R,x as b,y as A,z as N}from"../chunk-X2AVLWVM.mjs";import{e}from"../chunk-GY4S4RDR.mjs";e();e();e();export{D as build,F as cli,O as createServer,v as defaultSiteConfig,T as defaultValaxyConfig,C as defineAddon,k as defineConfig,h as defineSiteConfig,u as defineTheme,P as defineUnoSetup,x as defineValaxyAddon,c as defineValaxyConfig,V as defineValaxyTheme,i as ensurePrefix,n as getGitTimestamp,H as getIndexHtml,a as isExternal,s as isPath,f as mergeValaxyConfig,N as mergeViteConfigs,S as postProcessForSSG,R as processValaxyOptions,g as resolveAddonConfig,d as resolveImportPath,b as resolveOptions,A as resolveThemeValaxyConfig,l as resolveValaxyConfig,y as resolveValaxyConfigFromRoot,w as run,r as slash,U as ssgBuild,p as toAtFS,m as transformObject};
|
package/dist/types/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var _chunkYDNPXS5Ucjs = require('../chunk-YDNPXS5U.cjs');_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );
|
package/dist/types/index.d.cts
CHANGED
|
@@ -29,6 +29,7 @@ interface Photo {
|
|
|
29
29
|
caption: string;
|
|
30
30
|
desc: string;
|
|
31
31
|
}
|
|
32
|
+
type ExcerptType = 'md' | 'html' | 'text' | 'ai';
|
|
32
33
|
interface PageFrontMatter extends Record<string, any> {
|
|
33
34
|
/**
|
|
34
35
|
* Path of post
|
|
@@ -176,7 +177,7 @@ interface PostFrontMatter extends PageFrontMatter {
|
|
|
176
177
|
* - html: render as html
|
|
177
178
|
* - text: render as text
|
|
178
179
|
*/
|
|
179
|
-
excerpt_type: 'md' | 'text' | 'html';
|
|
180
|
+
excerpt_type: 'md' | 'text' | 'html' | 'ai';
|
|
180
181
|
/**
|
|
181
182
|
* Category
|
|
182
183
|
* @description 分类,若为数组,则按顺序代表多层文件夹
|
|
@@ -267,4 +268,4 @@ interface PageDataPayload {
|
|
|
267
268
|
}
|
|
268
269
|
type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
|
|
269
270
|
|
|
270
|
-
export { Album, CleanUrlsMode, HeadConfig, Header, Page, PageData, PageDataPayload, PageFrontMatter, Photo, Post, PostFrontMatter };
|
|
271
|
+
export { Album, CleanUrlsMode, ExcerptType, HeadConfig, Header, Page, PageData, PageDataPayload, PageFrontMatter, Photo, Post, PostFrontMatter };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ interface Photo {
|
|
|
29
29
|
caption: string;
|
|
30
30
|
desc: string;
|
|
31
31
|
}
|
|
32
|
+
type ExcerptType = 'md' | 'html' | 'text' | 'ai';
|
|
32
33
|
interface PageFrontMatter extends Record<string, any> {
|
|
33
34
|
/**
|
|
34
35
|
* Path of post
|
|
@@ -176,7 +177,7 @@ interface PostFrontMatter extends PageFrontMatter {
|
|
|
176
177
|
* - html: render as html
|
|
177
178
|
* - text: render as text
|
|
178
179
|
*/
|
|
179
|
-
excerpt_type: 'md' | 'text' | 'html';
|
|
180
|
+
excerpt_type: 'md' | 'text' | 'html' | 'ai';
|
|
180
181
|
/**
|
|
181
182
|
* Category
|
|
182
183
|
* @description 分类,若为数组,则按顺序代表多层文件夹
|
|
@@ -267,4 +268,4 @@ interface PageDataPayload {
|
|
|
267
268
|
}
|
|
268
269
|
type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
|
|
269
270
|
|
|
270
|
-
export { Album, CleanUrlsMode, HeadConfig, Header, Page, PageData, PageDataPayload, PageFrontMatter, Photo, Post, PostFrontMatter };
|
|
271
|
+
export { Album, CleanUrlsMode, ExcerptType, HeadConfig, Header, Page, PageData, PageDataPayload, PageFrontMatter, Photo, 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{e}from"../chunk-
|
|
2
|
+
import{e}from"../chunk-GY4S4RDR.mjs";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.15.
|
|
4
|
+
"version": "0.15.8",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"@iconify-json/carbon": "^1.1.21",
|
|
58
58
|
"@iconify-json/ri": "^1.1.12",
|
|
59
59
|
"@intlify/unplugin-vue-i18n": "^1.4.0",
|
|
60
|
-
"@types/body-scroll-lock": "^3.1.
|
|
60
|
+
"@types/body-scroll-lock": "^3.1.1",
|
|
61
61
|
"@unhead/addons": "^1.7.4",
|
|
62
62
|
"@unhead/schema-org": "^1.7.4",
|
|
63
63
|
"@unhead/vue": "^1.7.4",
|
|
64
64
|
"@vitejs/plugin-vue": "^4.4.0",
|
|
65
|
-
"@vueuse/core": "^10.
|
|
66
|
-
"@vueuse/integrations": "^10.
|
|
65
|
+
"@vueuse/core": "^10.5.0",
|
|
66
|
+
"@vueuse/integrations": "^10.5.0",
|
|
67
67
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
68
68
|
"consola": "^3.2.3",
|
|
69
69
|
"critters": "^0.0.20",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"fuse.js": "^6.6.2",
|
|
79
79
|
"global-dirs": "^3.0.1",
|
|
80
80
|
"gray-matter": "^4.0.3",
|
|
81
|
+
"hookable": "^5.5.3",
|
|
81
82
|
"html-to-text": "^9.0.5",
|
|
82
83
|
"is-installed-globally": "^0.4.0",
|
|
83
84
|
"jiti": "^1.20.0",
|
|
@@ -96,21 +97,21 @@
|
|
|
96
97
|
"open": "9.1.0",
|
|
97
98
|
"ora": "^7.0.1",
|
|
98
99
|
"pascalcase": "^2.0.0",
|
|
99
|
-
"pinia": "^2.1.
|
|
100
|
+
"pinia": "^2.1.7",
|
|
100
101
|
"qrcode": "^1.5.3",
|
|
101
|
-
"sass": "^1.69.
|
|
102
|
-
"shiki": "^0.14.
|
|
102
|
+
"sass": "^1.69.4",
|
|
103
|
+
"shiki": "^0.14.5",
|
|
103
104
|
"star-markdown-css": "^0.4.2",
|
|
104
105
|
"unconfig": "^0.3.11",
|
|
105
106
|
"unocss": "^0.56.5",
|
|
106
107
|
"unplugin-vue-components": "^0.25.2",
|
|
107
|
-
"vanilla-lazyload": "^17.8.
|
|
108
|
-
"vite": "^4.
|
|
108
|
+
"vanilla-lazyload": "^17.8.5",
|
|
109
|
+
"vite": "^4.5.0",
|
|
109
110
|
"vite-plugin-pages": "^0.31.0",
|
|
110
111
|
"vite-plugin-vue-layouts": "^0.8.0",
|
|
111
112
|
"vite-ssg": "0.23.3",
|
|
112
|
-
"vite-ssg-sitemap": "0.
|
|
113
|
-
"vue": "^3.3.
|
|
113
|
+
"vite-ssg-sitemap": "0.6.0",
|
|
114
|
+
"vue": "^3.3.6",
|
|
114
115
|
"vue-i18n": "^9.5.0",
|
|
115
116
|
"vue-router": "^4.2.5",
|
|
116
117
|
"yargs": "^17.7.2"
|
|
@@ -123,15 +124,15 @@
|
|
|
123
124
|
"@mdit-vue/plugin-title": "^1.0.0",
|
|
124
125
|
"@mdit-vue/plugin-toc": "^1.0.0",
|
|
125
126
|
"@mdit-vue/shared": "^1.0.0",
|
|
126
|
-
"@types/cross-spawn": "^6.0.
|
|
127
|
-
"@types/ejs": "^3.1.
|
|
128
|
-
"@types/html-to-text": "^9.0.
|
|
129
|
-
"@types/katex": "^0.16.
|
|
130
|
-
"@types/markdown-it": "^13.0.
|
|
131
|
-
"@types/nprogress": "^0.2.
|
|
132
|
-
"@types/pascalcase": "^1.0.
|
|
133
|
-
"@types/qrcode": "^1.5.
|
|
134
|
-
"@types/yargs": "^17.0.
|
|
127
|
+
"@types/cross-spawn": "^6.0.4",
|
|
128
|
+
"@types/ejs": "^3.1.4",
|
|
129
|
+
"@types/html-to-text": "^9.0.3",
|
|
130
|
+
"@types/katex": "^0.16.5",
|
|
131
|
+
"@types/markdown-it": "^13.0.4",
|
|
132
|
+
"@types/nprogress": "^0.2.2",
|
|
133
|
+
"@types/pascalcase": "^1.0.2",
|
|
134
|
+
"@types/qrcode": "^1.5.4",
|
|
135
|
+
"@types/yargs": "^17.0.29",
|
|
135
136
|
"debug": "^4.3.4",
|
|
136
137
|
"diacritics": "^1.3.0",
|
|
137
138
|
"https-localhost": "^4.7.1",
|
package/types/addon.ts
CHANGED
package/types/default-theme.d.ts
CHANGED
package/types/index.ts
CHANGED
package/types/posts.ts
CHANGED
|
@@ -24,6 +24,8 @@ export interface Photo {
|
|
|
24
24
|
desc: string
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
export type ExcerptType = 'md' | 'html' | 'text' | 'ai'
|
|
28
|
+
|
|
27
29
|
export interface PageFrontMatter extends Record<string, any> {
|
|
28
30
|
/**
|
|
29
31
|
* Path of post
|
|
@@ -182,7 +184,7 @@ export interface PostFrontMatter extends PageFrontMatter {
|
|
|
182
184
|
* - html: render as html
|
|
183
185
|
* - text: render as text
|
|
184
186
|
*/
|
|
185
|
-
excerpt_type: 'md' | 'text' | 'html'
|
|
187
|
+
excerpt_type: 'md' | 'text' | 'html' | 'ai'
|
|
186
188
|
|
|
187
189
|
/**
|
|
188
190
|
* Category
|