valaxy 0.14.60 → 0.15.0
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/ValaxyMd.vue +2 -0
- package/client/composables/back.ts +18 -0
- package/client/composables/categories.ts +0 -1
- package/client/composables/codeGroups.ts +52 -0
- package/client/composables/common.ts +0 -1
- package/client/composables/decrypt.ts +0 -1
- package/client/composables/helper.ts +0 -1
- package/client/composables/index.ts +1 -0
- package/client/composables/outline/headers.ts +0 -2
- package/client/composables/post.ts +0 -4
- package/client/composables/tags.ts +0 -1
- package/client/config.ts +0 -5
- package/client/layouts/404.vue +21 -23
- package/client/stores/app.ts +5 -0
- package/client/styles/common/code.scss +51 -51
- package/client/styles/common/markdown.scss +90 -36
- package/client/styles/components/code-group.scss +85 -0
- package/client/styles/components/custom-block.scss +190 -0
- package/client/styles/css-vars/borders.css +24 -0
- package/client/styles/css-vars/function.css +51 -0
- package/client/styles/css-vars/palette.css +83 -0
- package/client/styles/css-vars.scss +31 -2
- package/client/styles/global/reset.scss +1 -1
- package/client/styles/index.scss +2 -1
- package/client/styles/palette.scss +4 -4
- package/client/styles/vars.scss +3 -3
- package/client/utils/helper.ts +0 -1
- package/client/utils/time.ts +0 -1
- package/client/utils/wrap.ts +0 -1
- package/dist/chunk-M4Y54B6H.mjs +2 -0
- package/dist/chunk-MHVZJPKO.cjs +1 -0
- package/dist/chunk-PT42RRBX.mjs +129 -0
- package/dist/chunk-T4OZWDPW.cjs +128 -0
- package/dist/{config-42c9d78a.d.ts → config-9f7e02a4.d.ts} +2 -12
- package/dist/node/cli.cjs +1 -1
- package/dist/node/cli.mjs +2 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +7 -19
- package/dist/node/index.d.ts +7 -19
- package/dist/node/index.mjs +2 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +3 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.mjs +2 -0
- package/package.json +35 -31
- package/types/config.ts +1 -1
- package/types/{default-theme.ts → default-theme.d.ts} +1 -2
- package/types/index.ts +2 -2
- package/client/styles/common/custom-blocks.scss +0 -93
- package/dist/chunk-EROZD7B6.mjs +0 -129
- package/dist/chunk-X76LPVX7.cjs +0 -129
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ZoomOptions } from 'medium-zoom';
|
|
2
2
|
import { FuseOptions } from '@vueuse/integrations/useFuse';
|
|
3
3
|
import { ILazyLoadOptions } from 'vanilla-lazyload';
|
|
4
|
+
import * as DefaultTheme from 'valaxy/default-theme';
|
|
4
5
|
|
|
5
6
|
interface ValaxyAddon<AddonOptions = Record<string, any>> {
|
|
6
7
|
name: string;
|
|
@@ -22,17 +23,6 @@ interface FuseListItem {
|
|
|
22
23
|
content?: string;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
declare namespace DefaultTheme {
|
|
26
|
-
interface Config {
|
|
27
|
-
/**
|
|
28
|
-
* Custom header levels of outline in the aside component.
|
|
29
|
-
*
|
|
30
|
-
* @default 2
|
|
31
|
-
*/
|
|
32
|
-
outline?: number | [number, number] | 'deep' | false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
26
|
interface SocialLink {
|
|
37
27
|
/**
|
|
38
28
|
* The title of your link
|
|
@@ -348,4 +338,4 @@ type UserSiteConfig = PartialDeep<SiteConfig>;
|
|
|
348
338
|
*/
|
|
349
339
|
type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
|
|
350
340
|
|
|
351
|
-
export {
|
|
341
|
+
export { FuseListItem as F, PartialDeep as P, RuntimeConfig as R, SiteConfig as S, UserSiteConfig as U, ValaxyConfig as V, ValaxyAddon as a, SocialLink as b, UserValaxyConfig as c };
|
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 _chunkT4OZWDPWcjs = require('../chunk-T4OZWDPW.cjs');require('../chunk-MHVZJPKO.cjs');exports.cli = _chunkT4OZWDPWcjs.F; exports.run = _chunkT4OZWDPWcjs.G;
|
package/dist/node/cli.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
+
import{F as a,G as b}from"../chunk-PT42RRBX.mjs";import"../chunk-M4Y54B6H.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 _chunkT4OZWDPWcjs = require('../chunk-T4OZWDPW.cjs');var _chunkMHVZJPKOcjs = require('../chunk-MHVZJPKO.cjs');_chunkMHVZJPKOcjs.d.call(void 0, );_chunkMHVZJPKOcjs.d.call(void 0, );_chunkMHVZJPKOcjs.d.call(void 0, );exports.build = _chunkT4OZWDPWcjs.C; exports.cli = _chunkT4OZWDPWcjs.F; exports.createServer = _chunkT4OZWDPWcjs.B; exports.defaultSiteConfig = _chunkT4OZWDPWcjs.t; exports.defaultValaxyConfig = _chunkT4OZWDPWcjs.u; exports.defineAddon = _chunkT4OZWDPWcjs.n; exports.defineConfig = _chunkT4OZWDPWcjs.s; exports.defineSiteConfig = _chunkT4OZWDPWcjs.q; exports.defineTheme = _chunkT4OZWDPWcjs.p; exports.defineUnoSetup = _chunkT4OZWDPWcjs.v; exports.defineValaxyAddon = _chunkT4OZWDPWcjs.m; exports.defineValaxyConfig = _chunkT4OZWDPWcjs.r; exports.defineValaxyTheme = _chunkT4OZWDPWcjs.o; exports.ensurePrefix = _chunkT4OZWDPWcjs.d; exports.getGitTimestamp = _chunkT4OZWDPWcjs.a; exports.getIndexHtml = _chunkT4OZWDPWcjs.A; exports.isExternal = _chunkT4OZWDPWcjs.b; exports.isPath = _chunkT4OZWDPWcjs.f; exports.mergeValaxyConfig = _chunkT4OZWDPWcjs.g; exports.mergeViteConfigs = _chunkT4OZWDPWcjs.z; exports.postProcessForSSG = _chunkT4OZWDPWcjs.E; exports.processValaxyOptions = _chunkT4OZWDPWcjs.w; exports.resolveAddonConfig = _chunkT4OZWDPWcjs.j; exports.resolveImportPath = _chunkT4OZWDPWcjs.l; exports.resolveOptions = _chunkT4OZWDPWcjs.x; exports.resolveThemeValaxyConfig = _chunkT4OZWDPWcjs.y; exports.resolveValaxyConfig = _chunkT4OZWDPWcjs.i; exports.resolveValaxyConfigFromRoot = _chunkT4OZWDPWcjs.h; exports.run = _chunkT4OZWDPWcjs.G; exports.slash = _chunkT4OZWDPWcjs.c; exports.ssgBuild = _chunkT4OZWDPWcjs.D; exports.toAtFS = _chunkT4OZWDPWcjs.e; exports.transformObject = _chunkT4OZWDPWcjs.k;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -2,7 +2,8 @@ import { ViteSSGOptions } from 'vite-ssg';
|
|
|
2
2
|
export { cli, run } from './cli.cjs';
|
|
3
3
|
import * as vite from 'vite';
|
|
4
4
|
import { UserConfig, InlineConfig } from 'vite';
|
|
5
|
-
import {
|
|
5
|
+
import { V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-9f7e02a4.js';
|
|
6
|
+
import * as DefaultTheme from 'valaxy/default-theme';
|
|
6
7
|
import Vue from '@vitejs/plugin-vue';
|
|
7
8
|
import Components from 'unplugin-vue-components/vite';
|
|
8
9
|
import { VitePluginConfig } from 'unocss/vite';
|
|
@@ -54,12 +55,12 @@ type ThemeOptions = IThemeRegistration | {
|
|
|
54
55
|
};
|
|
55
56
|
interface MarkdownOptions {
|
|
56
57
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
* markdown-it options
|
|
59
|
+
*/
|
|
59
60
|
options?: MarkdownIt.Options;
|
|
60
61
|
/**
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
* config markdown-it
|
|
63
|
+
*/
|
|
63
64
|
config?: (md: MarkdownIt) => void;
|
|
64
65
|
anchor?: anchorPlugin.AnchorOptions;
|
|
65
66
|
attrs?: {
|
|
@@ -82,6 +83,7 @@ interface MarkdownOptions {
|
|
|
82
83
|
async: boolean;
|
|
83
84
|
classes: string;
|
|
84
85
|
};
|
|
86
|
+
lineNumbers?: boolean;
|
|
85
87
|
katex?: KatexOptions;
|
|
86
88
|
/**
|
|
87
89
|
* shiki
|
|
@@ -232,23 +234,17 @@ declare function resolveOptions(options?: ValaxyEntryOptions, mode?: ResolvedVal
|
|
|
232
234
|
/**
|
|
233
235
|
* resolve theme config
|
|
234
236
|
* @param options
|
|
235
|
-
* @returns
|
|
236
237
|
*/
|
|
237
238
|
declare function resolveThemeValaxyConfig(options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
|
|
238
239
|
|
|
239
240
|
/**
|
|
240
241
|
* merge vite.config.ts (user & theme)
|
|
241
242
|
* @internal
|
|
242
|
-
* @param param
|
|
243
|
-
* @param command
|
|
244
|
-
* @returns
|
|
245
243
|
*/
|
|
246
244
|
declare function mergeViteConfigs({ userRoot, themeRoot }: ResolvedValaxyOptions, command: 'serve' | 'build'): Promise<InlineConfig>;
|
|
247
245
|
/**
|
|
248
246
|
* generate index.html from user/theme/client
|
|
249
247
|
* @internal
|
|
250
|
-
* @param
|
|
251
|
-
* @returns
|
|
252
248
|
*/
|
|
253
249
|
declare function getIndexHtml({ clientRoot, themeRoot, userRoot, config }: ResolvedValaxyOptions): Promise<string>;
|
|
254
250
|
|
|
@@ -274,7 +270,6 @@ declare const defineTheme: typeof defineValaxyTheme;
|
|
|
274
270
|
/**
|
|
275
271
|
* Type helper for site.config.ts
|
|
276
272
|
* @param config
|
|
277
|
-
* @returns
|
|
278
273
|
*/
|
|
279
274
|
declare function defineSiteConfig(config: UserSiteConfig): PartialDeep<SiteConfig>;
|
|
280
275
|
/**
|
|
@@ -294,13 +289,11 @@ declare function getGitTimestamp(file: string, type?: 'created' | 'updated'): Pr
|
|
|
294
289
|
/**
|
|
295
290
|
* is url external (http/https:)
|
|
296
291
|
* @param str
|
|
297
|
-
* @returns
|
|
298
292
|
*/
|
|
299
293
|
declare function isExternal(str: string): boolean;
|
|
300
294
|
/**
|
|
301
295
|
* slash path for windows
|
|
302
296
|
* @param str
|
|
303
|
-
* @returns
|
|
304
297
|
*/
|
|
305
298
|
declare function slash(str: string): string;
|
|
306
299
|
declare function ensurePrefix(prefix: string, str: string): string;
|
|
@@ -322,8 +315,6 @@ declare const mergeValaxyConfig: <Source extends {
|
|
|
322
315
|
} | (number | boolean | any[] | Record<never, any> | null | undefined))[]>(source: Source, ...defaults: Defaults) => defu.Defu<Source, Defaults>;
|
|
323
316
|
/**
|
|
324
317
|
* resolve valaxy config from special root
|
|
325
|
-
* @param options
|
|
326
|
-
* @returns
|
|
327
318
|
*/
|
|
328
319
|
declare function resolveValaxyConfigFromRoot(root: string, options?: ResolvedValaxyOptions): Promise<{
|
|
329
320
|
config: ValaxyNodeConfig;
|
|
@@ -333,8 +324,6 @@ declare function resolveValaxyConfigFromRoot(root: string, options?: ResolvedVal
|
|
|
333
324
|
* resolve user valaxy config
|
|
334
325
|
* options only have userRoot
|
|
335
326
|
* @param options
|
|
336
|
-
* @param viteConfig
|
|
337
|
-
* @returns
|
|
338
327
|
*/
|
|
339
328
|
declare function resolveValaxyConfig(options: ValaxyEntryOptions): Promise<{
|
|
340
329
|
config: ValaxyNodeConfig;
|
|
@@ -346,7 +335,6 @@ declare function resolveAddonConfig(addons: ValaxyAddonResolver[], options?: Res
|
|
|
346
335
|
/**
|
|
347
336
|
* transform obj for vite code
|
|
348
337
|
* @param obj
|
|
349
|
-
* @returns
|
|
350
338
|
*/
|
|
351
339
|
declare function transformObject(obj: any): string;
|
|
352
340
|
declare function resolveImportPath(importName: string, ensure?: true): string;
|
package/dist/node/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { ViteSSGOptions } from 'vite-ssg';
|
|
|
2
2
|
export { cli, run } from './cli.js';
|
|
3
3
|
import * as vite from 'vite';
|
|
4
4
|
import { UserConfig, InlineConfig } from 'vite';
|
|
5
|
-
import {
|
|
5
|
+
import { V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-9f7e02a4.js';
|
|
6
|
+
import * as DefaultTheme from 'valaxy/default-theme';
|
|
6
7
|
import Vue from '@vitejs/plugin-vue';
|
|
7
8
|
import Components from 'unplugin-vue-components/vite';
|
|
8
9
|
import { VitePluginConfig } from 'unocss/vite';
|
|
@@ -54,12 +55,12 @@ type ThemeOptions = IThemeRegistration | {
|
|
|
54
55
|
};
|
|
55
56
|
interface MarkdownOptions {
|
|
56
57
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
* markdown-it options
|
|
59
|
+
*/
|
|
59
60
|
options?: MarkdownIt.Options;
|
|
60
61
|
/**
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
* config markdown-it
|
|
63
|
+
*/
|
|
63
64
|
config?: (md: MarkdownIt) => void;
|
|
64
65
|
anchor?: anchorPlugin.AnchorOptions;
|
|
65
66
|
attrs?: {
|
|
@@ -82,6 +83,7 @@ interface MarkdownOptions {
|
|
|
82
83
|
async: boolean;
|
|
83
84
|
classes: string;
|
|
84
85
|
};
|
|
86
|
+
lineNumbers?: boolean;
|
|
85
87
|
katex?: KatexOptions;
|
|
86
88
|
/**
|
|
87
89
|
* shiki
|
|
@@ -232,23 +234,17 @@ declare function resolveOptions(options?: ValaxyEntryOptions, mode?: ResolvedVal
|
|
|
232
234
|
/**
|
|
233
235
|
* resolve theme config
|
|
234
236
|
* @param options
|
|
235
|
-
* @returns
|
|
236
237
|
*/
|
|
237
238
|
declare function resolveThemeValaxyConfig(options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
|
|
238
239
|
|
|
239
240
|
/**
|
|
240
241
|
* merge vite.config.ts (user & theme)
|
|
241
242
|
* @internal
|
|
242
|
-
* @param param
|
|
243
|
-
* @param command
|
|
244
|
-
* @returns
|
|
245
243
|
*/
|
|
246
244
|
declare function mergeViteConfigs({ userRoot, themeRoot }: ResolvedValaxyOptions, command: 'serve' | 'build'): Promise<InlineConfig>;
|
|
247
245
|
/**
|
|
248
246
|
* generate index.html from user/theme/client
|
|
249
247
|
* @internal
|
|
250
|
-
* @param
|
|
251
|
-
* @returns
|
|
252
248
|
*/
|
|
253
249
|
declare function getIndexHtml({ clientRoot, themeRoot, userRoot, config }: ResolvedValaxyOptions): Promise<string>;
|
|
254
250
|
|
|
@@ -274,7 +270,6 @@ declare const defineTheme: typeof defineValaxyTheme;
|
|
|
274
270
|
/**
|
|
275
271
|
* Type helper for site.config.ts
|
|
276
272
|
* @param config
|
|
277
|
-
* @returns
|
|
278
273
|
*/
|
|
279
274
|
declare function defineSiteConfig(config: UserSiteConfig): PartialDeep<SiteConfig>;
|
|
280
275
|
/**
|
|
@@ -294,13 +289,11 @@ declare function getGitTimestamp(file: string, type?: 'created' | 'updated'): Pr
|
|
|
294
289
|
/**
|
|
295
290
|
* is url external (http/https:)
|
|
296
291
|
* @param str
|
|
297
|
-
* @returns
|
|
298
292
|
*/
|
|
299
293
|
declare function isExternal(str: string): boolean;
|
|
300
294
|
/**
|
|
301
295
|
* slash path for windows
|
|
302
296
|
* @param str
|
|
303
|
-
* @returns
|
|
304
297
|
*/
|
|
305
298
|
declare function slash(str: string): string;
|
|
306
299
|
declare function ensurePrefix(prefix: string, str: string): string;
|
|
@@ -322,8 +315,6 @@ declare const mergeValaxyConfig: <Source extends {
|
|
|
322
315
|
} | (number | boolean | any[] | Record<never, any> | null | undefined))[]>(source: Source, ...defaults: Defaults) => defu.Defu<Source, Defaults>;
|
|
323
316
|
/**
|
|
324
317
|
* resolve valaxy config from special root
|
|
325
|
-
* @param options
|
|
326
|
-
* @returns
|
|
327
318
|
*/
|
|
328
319
|
declare function resolveValaxyConfigFromRoot(root: string, options?: ResolvedValaxyOptions): Promise<{
|
|
329
320
|
config: ValaxyNodeConfig;
|
|
@@ -333,8 +324,6 @@ declare function resolveValaxyConfigFromRoot(root: string, options?: ResolvedVal
|
|
|
333
324
|
* resolve user valaxy config
|
|
334
325
|
* options only have userRoot
|
|
335
326
|
* @param options
|
|
336
|
-
* @param viteConfig
|
|
337
|
-
* @returns
|
|
338
327
|
*/
|
|
339
328
|
declare function resolveValaxyConfig(options: ValaxyEntryOptions): Promise<{
|
|
340
329
|
config: ValaxyNodeConfig;
|
|
@@ -346,7 +335,6 @@ declare function resolveAddonConfig(addons: ValaxyAddonResolver[], options?: Res
|
|
|
346
335
|
/**
|
|
347
336
|
* transform obj for vite code
|
|
348
337
|
* @param obj
|
|
349
|
-
* @returns
|
|
350
338
|
*/
|
|
351
339
|
declare function transformObject(obj: any): string;
|
|
352
340
|
declare function resolveImportPath(importName: string, ensure?: true): string;
|
package/dist/node/index.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
+
import{A as N,B as U,C as k,D as S,E as F,F as w,G as E,a as n,b as a,c as r,d as i,e as p,f as s,g as f,h as g,i as y,j as m,k as l,l as d,m as x,n as C,o as V,p as u,q as h,r as c,s as T,t as v,u as P,v as A,w as R,x as O,y as b,z as D}from"../chunk-PT42RRBX.mjs";import{e}from"../chunk-M4Y54B6H.mjs";e();e();e();export{k as build,w as cli,U as createServer,v as defaultSiteConfig,P as defaultValaxyConfig,C as defineAddon,T as defineConfig,h as defineSiteConfig,u as defineTheme,A as defineUnoSetup,x as defineValaxyAddon,c as defineValaxyConfig,V as defineValaxyTheme,i as ensurePrefix,n as getGitTimestamp,N as getIndexHtml,a as isExternal,s as isPath,f as mergeValaxyConfig,D as mergeViteConfigs,F as postProcessForSSG,R as processValaxyOptions,m as resolveAddonConfig,d as resolveImportPath,O as resolveOptions,b as resolveThemeValaxyConfig,y as resolveValaxyConfig,g as resolveValaxyConfigFromRoot,E as run,r as slash,S as ssgBuild,p as toAtFS,l as transformObject};
|
package/dist/types/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";var _chunkMHVZJPKOcjs = require('../chunk-MHVZJPKO.cjs');_chunkMHVZJPKOcjs.d.call(void 0, );_chunkMHVZJPKOcjs.d.call(void 0, );_chunkMHVZJPKOcjs.d.call(void 0, );_chunkMHVZJPKOcjs.d.call(void 0, );_chunkMHVZJPKOcjs.d.call(void 0, );_chunkMHVZJPKOcjs.d.call(void 0, );
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { F as FuseListItem, P as PartialDeep, R as RuntimeConfig, S as SiteConfig, b as SocialLink, U as UserSiteConfig, c as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-9f7e02a4.js';
|
|
2
|
+
import * as DefaultTheme from 'valaxy/default-theme';
|
|
3
|
+
export { DefaultTheme };
|
|
2
4
|
import 'medium-zoom';
|
|
3
5
|
import '@vueuse/integrations/useFuse';
|
|
4
6
|
import 'vanilla-lazyload';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { F as FuseListItem, P as PartialDeep, R as RuntimeConfig, S as SiteConfig, b as SocialLink, U as UserSiteConfig, c as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-9f7e02a4.js';
|
|
2
|
+
import * as DefaultTheme from 'valaxy/default-theme';
|
|
3
|
+
export { DefaultTheme };
|
|
2
4
|
import 'medium-zoom';
|
|
3
5
|
import '@vueuse/integrations/useFuse';
|
|
4
6
|
import 'vanilla-lazyload';
|
package/dist/types/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.15.0",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"vala": "./bin/valaxy.cjs",
|
|
40
40
|
"valac": "./bin/valaxy.cjs",
|
|
41
41
|
"valam": "./bin/valaxy.mjs",
|
|
42
|
-
"valaxy": "./bin/valaxy.
|
|
42
|
+
"valaxy": "./bin/valaxy.mjs"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
|
-
"index.d.ts",
|
|
46
45
|
"bin",
|
|
47
|
-
"dist",
|
|
48
46
|
"client",
|
|
47
|
+
"dist",
|
|
48
|
+
"index.d.ts",
|
|
49
49
|
"types"
|
|
50
50
|
],
|
|
51
51
|
"engines": {
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"@ctrl/tinycolor": "^4.0.2",
|
|
57
57
|
"@iconify-json/carbon": "^1.1.21",
|
|
58
58
|
"@iconify-json/ri": "^1.1.12",
|
|
59
|
-
"@intlify/unplugin-vue-i18n": "^1.
|
|
59
|
+
"@intlify/unplugin-vue-i18n": "^1.4.0",
|
|
60
60
|
"@types/body-scroll-lock": "^3.1.0",
|
|
61
|
-
"@vitejs/plugin-vue": "^4.
|
|
61
|
+
"@vitejs/plugin-vue": "^4.4.0",
|
|
62
62
|
"@vueuse/core": "^10.4.1",
|
|
63
63
|
"@vueuse/head": "^2.0.0",
|
|
64
64
|
"@vueuse/integrations": "^10.4.1",
|
|
@@ -68,20 +68,21 @@
|
|
|
68
68
|
"critters": "^0.0.20",
|
|
69
69
|
"cross-spawn": "^7.0.3",
|
|
70
70
|
"css-i18n": "^0.0.2",
|
|
71
|
-
"dayjs": "^1.11.
|
|
71
|
+
"dayjs": "^1.11.10",
|
|
72
72
|
"ejs": "^3.1.9",
|
|
73
73
|
"escape-html": "^1.0.3",
|
|
74
74
|
"feed": "^4.2.2",
|
|
75
|
+
"fs-extra": "^11.1.1",
|
|
75
76
|
"fuse.js": "^6.6.2",
|
|
76
77
|
"global-dirs": "^3.0.1",
|
|
77
78
|
"gray-matter": "^4.0.3",
|
|
78
79
|
"html-to-text": "^9.0.5",
|
|
79
80
|
"is-installed-globally": "^0.4.0",
|
|
80
81
|
"jiti": "^1.20.0",
|
|
81
|
-
"katex": "^0.16.
|
|
82
|
+
"katex": "^0.16.9",
|
|
82
83
|
"kolorist": "^1.8.0",
|
|
83
84
|
"lru-cache": "^10.0.1",
|
|
84
|
-
"markdown-it": "^13.0.
|
|
85
|
+
"markdown-it": "^13.0.2",
|
|
85
86
|
"markdown-it-anchor": "^8.6.7",
|
|
86
87
|
"markdown-it-attrs": "^4.1.6",
|
|
87
88
|
"markdown-it-container": "^3.0.0",
|
|
@@ -90,41 +91,45 @@
|
|
|
90
91
|
"markdown-it-task-lists": "^2.1.1",
|
|
91
92
|
"medium-zoom": "^1.0.8",
|
|
92
93
|
"nprogress": "^0.2.0",
|
|
93
|
-
"open": "
|
|
94
|
-
"
|
|
94
|
+
"open": "9.1.0",
|
|
95
|
+
"ora": "^7.0.1",
|
|
96
|
+
"pascalcase": "^2.0.0",
|
|
95
97
|
"pinia": "^2.1.6",
|
|
96
|
-
"
|
|
98
|
+
"qrcode": "^1.5.3",
|
|
99
|
+
"sass": "^1.68.0",
|
|
97
100
|
"shiki": "^0.14.4",
|
|
98
101
|
"star-markdown-css": "^0.4.2",
|
|
99
|
-
"unconfig": "^0.3.
|
|
100
|
-
"unocss": "^0.
|
|
102
|
+
"unconfig": "^0.3.11",
|
|
103
|
+
"unocss": "^0.56.5",
|
|
101
104
|
"unplugin-vue-components": "^0.25.2",
|
|
102
105
|
"vanilla-lazyload": "^17.8.4",
|
|
103
|
-
"vite": "^4.4.
|
|
106
|
+
"vite": "^4.4.10",
|
|
104
107
|
"vite-plugin-pages": "^0.31.0",
|
|
105
108
|
"vite-plugin-vue-layouts": "^0.8.0",
|
|
106
|
-
"vite-ssg": "0.23.
|
|
109
|
+
"vite-ssg": "0.23.3",
|
|
107
110
|
"vite-ssg-sitemap": "0.5.1",
|
|
108
111
|
"vue": "^3.3.4",
|
|
109
|
-
"vue-i18n": "^9.
|
|
110
|
-
"vue-router": "^4.2.
|
|
112
|
+
"vue-i18n": "^9.5.0",
|
|
113
|
+
"vue-router": "^4.2.5",
|
|
111
114
|
"yargs": "^17.7.2"
|
|
112
115
|
},
|
|
113
116
|
"devDependencies": {
|
|
114
|
-
"@mdit-vue/plugin-component": "^0.
|
|
115
|
-
"@mdit-vue/plugin-frontmatter": "^0.
|
|
116
|
-
"@mdit-vue/plugin-headers": "^0.
|
|
117
|
-
"@mdit-vue/plugin-sfc": "^0.
|
|
118
|
-
"@mdit-vue/plugin-title": "^0.
|
|
119
|
-
"@mdit-vue/plugin-toc": "^0.
|
|
120
|
-
"@mdit-vue/shared": "^0.
|
|
117
|
+
"@mdit-vue/plugin-component": "^1.0.0",
|
|
118
|
+
"@mdit-vue/plugin-frontmatter": "^1.0.0",
|
|
119
|
+
"@mdit-vue/plugin-headers": "^1.0.0",
|
|
120
|
+
"@mdit-vue/plugin-sfc": "^1.0.0",
|
|
121
|
+
"@mdit-vue/plugin-title": "^1.0.0",
|
|
122
|
+
"@mdit-vue/plugin-toc": "^1.0.0",
|
|
123
|
+
"@mdit-vue/shared": "^1.0.0",
|
|
121
124
|
"@types/cross-spawn": "^6.0.3",
|
|
122
|
-
"@types/ejs": "^3.1.
|
|
123
|
-
"@types/html-to-text": "^9.0.
|
|
125
|
+
"@types/ejs": "^3.1.3",
|
|
126
|
+
"@types/html-to-text": "^9.0.2",
|
|
124
127
|
"@types/katex": "^0.16.3",
|
|
125
|
-
"@types/markdown-it": "^13.0.
|
|
126
|
-
"@types/nprogress": "^0.2.
|
|
127
|
-
"@types/
|
|
128
|
+
"@types/markdown-it": "^13.0.2",
|
|
129
|
+
"@types/nprogress": "^0.2.1",
|
|
130
|
+
"@types/pascalcase": "^1.0.1",
|
|
131
|
+
"@types/qrcode": "^1.5.2",
|
|
132
|
+
"@types/yargs": "^17.0.26",
|
|
128
133
|
"debug": "^4.3.4",
|
|
129
134
|
"diacritics": "^1.3.0",
|
|
130
135
|
"https-localhost": "^4.7.1",
|
|
@@ -134,7 +139,6 @@
|
|
|
134
139
|
"scripts": {
|
|
135
140
|
"build": "rimraf dist && tsup --splitting",
|
|
136
141
|
"dev": "tsup --splitting --watch",
|
|
137
|
-
"lint": "eslint .",
|
|
138
142
|
"preview": "vite preview",
|
|
139
143
|
"preview-https": "serve dist"
|
|
140
144
|
}
|
package/types/config.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ZoomOptions } from 'medium-zoom'
|
|
2
2
|
import type { FuseOptions } from '@vueuse/integrations/useFuse'
|
|
3
3
|
import type { ILazyLoadOptions } from 'vanilla-lazyload'
|
|
4
|
+
import type * as DefaultTheme from 'valaxy/default-theme'
|
|
4
5
|
import type { ValaxyAddon } from '../types'
|
|
5
6
|
import type { FuseListItem } from './node'
|
|
6
|
-
import type { DefaultTheme } from './default-theme'
|
|
7
7
|
|
|
8
8
|
export interface SocialLink {
|
|
9
9
|
/**
|
package/types/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// do not export node type here
|
|
2
|
+
|
|
2
3
|
export * from './addon'
|
|
3
4
|
export * from './config'
|
|
4
5
|
export * from './data'
|
|
@@ -7,5 +8,4 @@ export * from './posts'
|
|
|
7
8
|
// used in node, but without node deps
|
|
8
9
|
export * from './node'
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
export * from './default-theme'
|
|
11
|
+
export type * as DefaultTheme from 'valaxy/default-theme'
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
.custom-block.tip,
|
|
2
|
-
.custom-block.info,
|
|
3
|
-
.custom-block.warning,
|
|
4
|
-
.custom-block.danger {
|
|
5
|
-
margin: 1rem 0;
|
|
6
|
-
border-left: 4px solid;
|
|
7
|
-
padding: 0.1rem 1rem;
|
|
8
|
-
overflow-x: auto;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:root {
|
|
12
|
-
--va-c-text-warning: #544500;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.dark {
|
|
16
|
-
--va-c-text-warning: #ffea8a;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.custom-block {
|
|
20
|
-
&.info {
|
|
21
|
-
background-color: rgba(200, 200, 200, 0.1);
|
|
22
|
-
}
|
|
23
|
-
&.tip {
|
|
24
|
-
background-color: rgba(200, 200, 200, 0.1);
|
|
25
|
-
border-color: var(--va-c-primary);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.warning {
|
|
29
|
-
border-color: #e7c000;
|
|
30
|
-
color: var(--va-c-text-warning);
|
|
31
|
-
background-color: rgba(255, 229, 100, 0.3);
|
|
32
|
-
|
|
33
|
-
a {
|
|
34
|
-
color: var(--va-c-text);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.custom-block.info {
|
|
40
|
-
border-color: var(--c-text-light-2);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.custom-block.warning .custom-block-title {
|
|
44
|
-
color: #b29400;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.custom-block.danger {
|
|
48
|
-
border-color: #c00;
|
|
49
|
-
color: #4d0000;
|
|
50
|
-
background-color: #ffe6e6;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.custom-block.danger .custom-block-title {
|
|
54
|
-
color: #900;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.custom-block.details {
|
|
58
|
-
position: relative;
|
|
59
|
-
display: block;
|
|
60
|
-
border-radius: 2px;
|
|
61
|
-
margin: 1.6em 0;
|
|
62
|
-
padding: 1.6em;
|
|
63
|
-
background-color: rgba(200, 200, 200, 0.2);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.custom-block.details h4 {
|
|
67
|
-
margin-top: 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.custom-block.details figure:last-child,
|
|
71
|
-
.custom-block.details p:last-child {
|
|
72
|
-
margin-bottom: 0;
|
|
73
|
-
padding-bottom: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.custom-block.details summary {
|
|
77
|
-
outline: none;
|
|
78
|
-
cursor: pointer;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.custom-block-title {
|
|
82
|
-
margin-bottom: -0.4rem;
|
|
83
|
-
font-weight: 600;
|
|
84
|
-
display: flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
|
|
87
|
-
> .icon {
|
|
88
|
-
display: inline-flex;
|
|
89
|
-
width: 1rem;
|
|
90
|
-
height: 1rem;
|
|
91
|
-
margin-right: 4px;
|
|
92
|
-
}
|
|
93
|
-
}
|