valaxy 0.18.10 → 0.19.2
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 +6 -11
- package/client/components/builtin/ValaxyMermaid.vue +4 -3
- package/client/composables/aside.ts +12 -5
- package/client/composables/categories.ts +12 -1
- package/client/composables/dark.ts +77 -38
- package/client/composables/layout.ts +10 -2
- package/client/composables/outline/headers.ts +12 -1
- package/client/composables/sidebar.ts +41 -2
- package/client/composables/tags.ts +9 -0
- package/client/locales/en.yml +2 -2
- package/client/locales/zh-CN.yml +1 -1
- package/client/main.ts +12 -10
- package/client/setup/main.ts +0 -2
- package/client/setup/mermaid.ts +7 -0
- package/client/setups.ts +15 -0
- package/client/shims.d.ts +3 -0
- package/client/stores/app.ts +20 -4
- package/client/styles/css/css-vars.css +19 -0
- package/client/styles/{global/index.scss → css/main.css} +1 -1
- package/client/styles/css-vars.scss +1 -1
- package/client/styles/index.scss +0 -1
- package/client/styles/palette.scss +0 -18
- package/client/types/index.ts +3 -0
- package/client/utils/router.ts +18 -0
- package/client/utils/time.ts +8 -0
- package/dist/chunk-PTYUKZAG.mjs +157 -0
- package/dist/chunk-RVKKZQ6C.cjs +156 -0
- package/dist/{config-D40lUB2J.d.cts → config-BuLv3zWm.d.cts} +40 -7
- package/dist/{config-D40lUB2J.d.ts → config-BuLv3zWm.d.ts} +40 -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 -2
- package/dist/node/index.d.ts +3 -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 +14 -13
- package/types/config.ts +4 -7
- package/types/default-theme.ts +38 -0
- package/dist/chunk-57MNPFIN.mjs +0 -150
- package/dist/chunk-KIFZXMGL.cjs +0 -149
- /package/dist/{chunk-OE2XGI4S.mjs → chunk-7VTZAWDO.mjs} +0 -0
- /package/dist/{chunk-EKEE6AAY.cjs → chunk-I6UPHJXQ.cjs} +0 -0
|
@@ -2,6 +2,7 @@ import { ZoomOptions } from 'medium-zoom';
|
|
|
2
2
|
import { FuseOptions } from '@vueuse/integrations/useFuse';
|
|
3
3
|
import { ILazyLoadOptions } from 'vanilla-lazyload';
|
|
4
4
|
import { RouteRecordRaw } from 'vue-router';
|
|
5
|
+
import { UseDarkOptions } from '@vueuse/core';
|
|
5
6
|
import { NodeRelations, ImageObject } from '@unhead/schema-org';
|
|
6
7
|
|
|
7
8
|
interface ValaxyAddon<AddonOptions = Record<string, any>> {
|
|
@@ -16,6 +17,41 @@ interface ValaxyAddon<AddonOptions = Record<string, any>> {
|
|
|
16
17
|
|
|
17
18
|
declare namespace DefaultTheme {
|
|
18
19
|
interface Config {
|
|
20
|
+
valaxyDarkOptions?: {
|
|
21
|
+
/**
|
|
22
|
+
* Options for `useDark`
|
|
23
|
+
* disableTransition default is `true`
|
|
24
|
+
* Its options are not computed, init when loaded.
|
|
25
|
+
* @see https://vueuse.org/core/useDark
|
|
26
|
+
* @url https://paco.me/writing/disable-theme-transitions
|
|
27
|
+
*
|
|
28
|
+
* @zh `useDark` 的选项
|
|
29
|
+
* disableTransition 默认为 `true`,不会进行渐变过渡,这是 VueUse 的默认行为
|
|
30
|
+
*/
|
|
31
|
+
useDarkOptions?: UseDarkOptions;
|
|
32
|
+
/**
|
|
33
|
+
* Enable circle transition when toggling dark mode
|
|
34
|
+
* Then use `toggleDarkWithTransition` instead of `toggleDark`
|
|
35
|
+
* @zh 启用圆形过渡切换暗黑模式
|
|
36
|
+
*/
|
|
37
|
+
circleTransition?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Theme color
|
|
40
|
+
* @zh 主题色
|
|
41
|
+
*/
|
|
42
|
+
themeColor?: {
|
|
43
|
+
/**
|
|
44
|
+
* Theme color for light mode
|
|
45
|
+
* @zh 亮色主题色
|
|
46
|
+
*/
|
|
47
|
+
light?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Theme color for dark mode
|
|
50
|
+
* @zh 暗色主题色
|
|
51
|
+
*/
|
|
52
|
+
dark?: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
19
55
|
/**
|
|
20
56
|
* Custom header levels of outline in the aside component.
|
|
21
57
|
*
|
|
@@ -350,13 +386,6 @@ interface SiteConfig {
|
|
|
350
386
|
* @see https://ogp.me/#optional
|
|
351
387
|
*/
|
|
352
388
|
languages: string[];
|
|
353
|
-
/**
|
|
354
|
-
* @see https://day.js.org/docs/en/plugin/timezone
|
|
355
|
-
* @zh_CN 时区 'Asia/Shanghai' Recommended
|
|
356
|
-
* @en_US timezone
|
|
357
|
-
* @default '' Your Computer Timezone
|
|
358
|
-
*/
|
|
359
|
-
timezone: string;
|
|
360
389
|
/**
|
|
361
390
|
* You site url in web, required for ssg & rss
|
|
362
391
|
* @description 站点的完整 URL,SSG & RSS 需要(譬如生成版权处文章永久链接)
|
|
@@ -395,6 +424,10 @@ interface SiteConfig {
|
|
|
395
424
|
* @description 状态
|
|
396
425
|
*/
|
|
397
426
|
status: {
|
|
427
|
+
/**
|
|
428
|
+
* Emoji representation of your status like '👨💻'
|
|
429
|
+
* @description 你的状态的 Emoji 表示,如 '👨💻'
|
|
430
|
+
*/
|
|
398
431
|
emoji: string;
|
|
399
432
|
/**
|
|
400
433
|
* show when hover emoji
|
|
@@ -2,6 +2,7 @@ import { ZoomOptions } from 'medium-zoom';
|
|
|
2
2
|
import { FuseOptions } from '@vueuse/integrations/useFuse';
|
|
3
3
|
import { ILazyLoadOptions } from 'vanilla-lazyload';
|
|
4
4
|
import { RouteRecordRaw } from 'vue-router';
|
|
5
|
+
import { UseDarkOptions } from '@vueuse/core';
|
|
5
6
|
import { NodeRelations, ImageObject } from '@unhead/schema-org';
|
|
6
7
|
|
|
7
8
|
interface ValaxyAddon<AddonOptions = Record<string, any>> {
|
|
@@ -16,6 +17,41 @@ interface ValaxyAddon<AddonOptions = Record<string, any>> {
|
|
|
16
17
|
|
|
17
18
|
declare namespace DefaultTheme {
|
|
18
19
|
interface Config {
|
|
20
|
+
valaxyDarkOptions?: {
|
|
21
|
+
/**
|
|
22
|
+
* Options for `useDark`
|
|
23
|
+
* disableTransition default is `true`
|
|
24
|
+
* Its options are not computed, init when loaded.
|
|
25
|
+
* @see https://vueuse.org/core/useDark
|
|
26
|
+
* @url https://paco.me/writing/disable-theme-transitions
|
|
27
|
+
*
|
|
28
|
+
* @zh `useDark` 的选项
|
|
29
|
+
* disableTransition 默认为 `true`,不会进行渐变过渡,这是 VueUse 的默认行为
|
|
30
|
+
*/
|
|
31
|
+
useDarkOptions?: UseDarkOptions;
|
|
32
|
+
/**
|
|
33
|
+
* Enable circle transition when toggling dark mode
|
|
34
|
+
* Then use `toggleDarkWithTransition` instead of `toggleDark`
|
|
35
|
+
* @zh 启用圆形过渡切换暗黑模式
|
|
36
|
+
*/
|
|
37
|
+
circleTransition?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Theme color
|
|
40
|
+
* @zh 主题色
|
|
41
|
+
*/
|
|
42
|
+
themeColor?: {
|
|
43
|
+
/**
|
|
44
|
+
* Theme color for light mode
|
|
45
|
+
* @zh 亮色主题色
|
|
46
|
+
*/
|
|
47
|
+
light?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Theme color for dark mode
|
|
50
|
+
* @zh 暗色主题色
|
|
51
|
+
*/
|
|
52
|
+
dark?: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
19
55
|
/**
|
|
20
56
|
* Custom header levels of outline in the aside component.
|
|
21
57
|
*
|
|
@@ -350,13 +386,6 @@ interface SiteConfig {
|
|
|
350
386
|
* @see https://ogp.me/#optional
|
|
351
387
|
*/
|
|
352
388
|
languages: string[];
|
|
353
|
-
/**
|
|
354
|
-
* @see https://day.js.org/docs/en/plugin/timezone
|
|
355
|
-
* @zh_CN 时区 'Asia/Shanghai' Recommended
|
|
356
|
-
* @en_US timezone
|
|
357
|
-
* @default '' Your Computer Timezone
|
|
358
|
-
*/
|
|
359
|
-
timezone: string;
|
|
360
389
|
/**
|
|
361
390
|
* You site url in web, required for ssg & rss
|
|
362
391
|
* @description 站点的完整 URL,SSG & RSS 需要(譬如生成版权处文章永久链接)
|
|
@@ -395,6 +424,10 @@ interface SiteConfig {
|
|
|
395
424
|
* @description 状态
|
|
396
425
|
*/
|
|
397
426
|
status: {
|
|
427
|
+
/**
|
|
428
|
+
* Emoji representation of your status like '👨💻'
|
|
429
|
+
* @description 你的状态的 Emoji 表示,如 '👨💻'
|
|
430
|
+
*/
|
|
398
431
|
emoji: string;
|
|
399
432
|
/**
|
|
400
433
|
* show when hover emoji
|
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 _chunkRVKKZQ6Ccjs = require('../../chunk-RVKKZQ6C.cjs');require('../../chunk-I6UPHJXQ.cjs');exports.cli = _chunkRVKKZQ6Ccjs.T; exports.run = _chunkRVKKZQ6Ccjs.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-PTYUKZAG.mjs";import"../../chunk-7VTZAWDO.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 _chunkRVKKZQ6Ccjs = require('../chunk-RVKKZQ6C.cjs');require('../chunk-I6UPHJXQ.cjs');exports.ALL_ROUTE = _chunkRVKKZQ6Ccjs.e; exports.EXCERPT_SEPARATOR = _chunkRVKKZQ6Ccjs.b; exports.EXTERNAL_URL_RE = _chunkRVKKZQ6Ccjs.c; exports.PATHNAME_PROTOCOL_RE = _chunkRVKKZQ6Ccjs.d; exports.ViteValaxyPlugins = _chunkRVKKZQ6Ccjs.N; exports.build = _chunkRVKKZQ6Ccjs.O; exports.cli = _chunkRVKKZQ6Ccjs.T; exports.createServer = _chunkRVKKZQ6Ccjs.S; exports.createValaxyLoader = _chunkRVKKZQ6Ccjs.M; exports.customElements = _chunkRVKKZQ6Ccjs.f; exports.defaultSiteConfig = _chunkRVKKZQ6Ccjs.p; exports.defaultValaxyConfig = _chunkRVKKZQ6Ccjs.t; exports.defineAddon = _chunkRVKKZQ6Ccjs.A; exports.defineConfig = _chunkRVKKZQ6Ccjs.v; exports.defineSiteConfig = _chunkRVKKZQ6Ccjs.q; exports.defineTheme = _chunkRVKKZQ6Ccjs.F; exports.defineUnoSetup = _chunkRVKKZQ6Ccjs.G; exports.defineValaxyAddon = _chunkRVKKZQ6Ccjs.z; exports.defineValaxyConfig = _chunkRVKKZQ6Ccjs.u; exports.defineValaxyTheme = _chunkRVKKZQ6Ccjs.E; exports.ensurePrefix = _chunkRVKKZQ6Ccjs.j; exports.generateClientRedirects = _chunkRVKKZQ6Ccjs.R; exports.getGitTimestamp = _chunkRVKKZQ6Ccjs.a; exports.getIndexHtml = _chunkRVKKZQ6Ccjs.L; exports.isExternal = _chunkRVKKZQ6Ccjs.h; exports.isPath = _chunkRVKKZQ6Ccjs.l; exports.loadConfig = _chunkRVKKZQ6Ccjs.n; exports.loadConfigFromFile = _chunkRVKKZQ6Ccjs.o; exports.mergeValaxyConfig = _chunkRVKKZQ6Ccjs.x; exports.mergeViteConfigs = _chunkRVKKZQ6Ccjs.K; exports.postProcessForSSG = _chunkRVKKZQ6Ccjs.Q; exports.processValaxyOptions = _chunkRVKKZQ6Ccjs.H; exports.resolveAddonsConfig = _chunkRVKKZQ6Ccjs.B; exports.resolveImportPath = _chunkRVKKZQ6Ccjs.g; exports.resolveOptions = _chunkRVKKZQ6Ccjs.I; exports.resolveSiteConfig = _chunkRVKKZQ6Ccjs.s; exports.resolveSiteConfigFromRoot = _chunkRVKKZQ6Ccjs.r; exports.resolveThemeConfigFromRoot = _chunkRVKKZQ6Ccjs.C; exports.resolveThemeValaxyConfig = _chunkRVKKZQ6Ccjs.J; exports.resolveUserThemeConfig = _chunkRVKKZQ6Ccjs.D; exports.resolveValaxyConfig = _chunkRVKKZQ6Ccjs.y; exports.resolveValaxyConfigFromRoot = _chunkRVKKZQ6Ccjs.w; exports.run = _chunkRVKKZQ6Ccjs.U; exports.slash = _chunkRVKKZQ6Ccjs.i; exports.ssgBuild = _chunkRVKKZQ6Ccjs.P; exports.toAtFS = _chunkRVKKZQ6Ccjs.k; exports.transformObject = _chunkRVKKZQ6Ccjs.m;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -23,12 +23,13 @@ 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';
|
|
30
30
|
import 'vanilla-lazyload';
|
|
31
31
|
import 'vue-router';
|
|
32
|
+
import '@vueuse/core';
|
|
32
33
|
import '@unhead/schema-org';
|
|
33
34
|
|
|
34
35
|
declare module 'vite' {
|
|
@@ -79,7 +80,7 @@ interface MarkdownOptions {
|
|
|
79
80
|
/**
|
|
80
81
|
* markdown-it options
|
|
81
82
|
*/
|
|
82
|
-
options?: MarkdownIt
|
|
83
|
+
options?: MarkdownIt['options'];
|
|
83
84
|
/**
|
|
84
85
|
* config markdown-it
|
|
85
86
|
*/
|
package/dist/node/index.d.ts
CHANGED
|
@@ -23,12 +23,13 @@ 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';
|
|
30
30
|
import 'vanilla-lazyload';
|
|
31
31
|
import 'vue-router';
|
|
32
|
+
import '@vueuse/core';
|
|
32
33
|
import '@unhead/schema-org';
|
|
33
34
|
|
|
34
35
|
declare module 'vite' {
|
|
@@ -79,7 +80,7 @@ interface MarkdownOptions {
|
|
|
79
80
|
/**
|
|
80
81
|
* markdown-it options
|
|
81
82
|
*/
|
|
82
|
-
options?: MarkdownIt
|
|
83
|
+
options?: MarkdownIt['options'];
|
|
83
84
|
/**
|
|
84
85
|
* config markdown-it
|
|
85
86
|
*/
|
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-PTYUKZAG.mjs";import"../chunk-7VTZAWDO.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 _chunkI6UPHJXQcjs = require('../chunk-I6UPHJXQ.cjs');_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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
3
|
import 'medium-zoom';
|
|
4
4
|
import '@vueuse/integrations/useFuse';
|
|
5
5
|
import 'vanilla-lazyload';
|
|
6
6
|
import 'vue-router';
|
|
7
|
+
import '@vueuse/core';
|
|
7
8
|
import '@unhead/schema-org';
|
|
8
9
|
|
|
9
10
|
type Page = Partial<PageFrontMatter>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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
3
|
import 'medium-zoom';
|
|
4
4
|
import '@vueuse/integrations/useFuse';
|
|
5
5
|
import 'vanilla-lazyload';
|
|
6
6
|
import 'vue-router';
|
|
7
|
+
import '@vueuse/core';
|
|
7
8
|
import '@unhead/schema-org';
|
|
8
9
|
|
|
9
10
|
type Page = Partial<PageFrontMatter>;
|
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-7VTZAWDO.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.
|
|
4
|
+
"version": "0.19.2",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -62,10 +62,11 @@
|
|
|
62
62
|
"@iconify-json/carbon": "^1.1.36",
|
|
63
63
|
"@iconify-json/ri": "^1.1.21",
|
|
64
64
|
"@intlify/unplugin-vue-i18n": "^4.0.0",
|
|
65
|
+
"@types/js-yaml": "^4.0.9",
|
|
65
66
|
"@types/katex": "^0.16.7",
|
|
66
|
-
"@unhead/addons": "^1.9.
|
|
67
|
-
"@unhead/schema-org": "^1.9.
|
|
68
|
-
"@unhead/vue": "^1.9.
|
|
67
|
+
"@unhead/addons": "^1.9.15",
|
|
68
|
+
"@unhead/schema-org": "^1.9.15",
|
|
69
|
+
"@unhead/vue": "^1.9.15",
|
|
69
70
|
"@vitejs/plugin-vue": "^5.0.5",
|
|
70
71
|
"@vue/devtools-api": "^7.3.5",
|
|
71
72
|
"@vueuse/core": "^10.11.0",
|
|
@@ -75,7 +76,6 @@
|
|
|
75
76
|
"cross-spawn": "^7.0.3",
|
|
76
77
|
"css-i18n": "^0.0.2",
|
|
77
78
|
"date-fns": "^3.6.0",
|
|
78
|
-
"date-fns-tz": "^3.1.3",
|
|
79
79
|
"debug": "^4.3.5",
|
|
80
80
|
"defu": "^6.1.4",
|
|
81
81
|
"ejs": "^3.1.10",
|
|
@@ -89,8 +89,9 @@
|
|
|
89
89
|
"is-installed-globally": "^1.0.0",
|
|
90
90
|
"jiti": "^1.21.6",
|
|
91
91
|
"js-base64": "^3.7.7",
|
|
92
|
-
"
|
|
93
|
-
"
|
|
92
|
+
"js-yaml": "^4.1.0",
|
|
93
|
+
"katex": "^0.16.11",
|
|
94
|
+
"lru-cache": "^11.0.0",
|
|
94
95
|
"markdown-it": "^14.1.0",
|
|
95
96
|
"markdown-it-anchor": "^9.0.1",
|
|
96
97
|
"markdown-it-attrs": "^4.1.6",
|
|
@@ -109,15 +110,15 @@
|
|
|
109
110
|
"pathe": "^1.1.2",
|
|
110
111
|
"pinia": "^2.1.7",
|
|
111
112
|
"qrcode": "^1.5.3",
|
|
112
|
-
"sass": "^1.77.
|
|
113
|
-
"shiki": "^1.10.
|
|
114
|
-
"star-markdown-css": "^0.
|
|
115
|
-
"unocss": "^0.61.
|
|
113
|
+
"sass": "^1.77.7",
|
|
114
|
+
"shiki": "^1.10.3",
|
|
115
|
+
"star-markdown-css": "^0.5.1",
|
|
116
|
+
"unocss": "^0.61.3",
|
|
116
117
|
"unplugin-vue-components": "^0.27.2",
|
|
117
118
|
"unplugin-vue-markdown": "^0.26.2",
|
|
118
119
|
"unplugin-vue-router": "^0.10.0",
|
|
119
120
|
"vanilla-lazyload": "^19.1.3",
|
|
120
|
-
"vite": "^5.3.
|
|
121
|
+
"vite": "^5.3.3",
|
|
121
122
|
"vite-plugin-vue-devtools": "^7.3.5",
|
|
122
123
|
"vite-plugin-vue-layouts": "0.11.0",
|
|
123
124
|
"vite-ssg": "0.23.7",
|
|
@@ -126,7 +127,7 @@
|
|
|
126
127
|
"vue-i18n": "^9.13.1",
|
|
127
128
|
"vue-router": "^4.4.0",
|
|
128
129
|
"yargs": "^17.7.2",
|
|
129
|
-
"@valaxyjs/devtools": "0.
|
|
130
|
+
"@valaxyjs/devtools": "0.19.2"
|
|
130
131
|
},
|
|
131
132
|
"devDependencies": {
|
|
132
133
|
"@mdit-vue/plugin-component": "^2.1.3",
|
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 需要(譬如生成版权处文章永久链接)
|
|
@@ -104,6 +97,10 @@ export interface SiteConfig {
|
|
|
104
97
|
* @description 状态
|
|
105
98
|
*/
|
|
106
99
|
status: {
|
|
100
|
+
/**
|
|
101
|
+
* Emoji representation of your status like '👨💻'
|
|
102
|
+
* @description 你的状态的 Emoji 表示,如 '👨💻'
|
|
103
|
+
*/
|
|
107
104
|
emoji: string
|
|
108
105
|
/**
|
|
109
106
|
* show when hover emoji
|
package/types/default-theme.ts
CHANGED
|
@@ -1,6 +1,44 @@
|
|
|
1
|
+
import type { UseDarkOptions } from '@vueuse/core'
|
|
2
|
+
|
|
1
3
|
// eslint-disable-next-line ts/no-namespace
|
|
2
4
|
export namespace DefaultTheme {
|
|
3
5
|
export interface Config {
|
|
6
|
+
valaxyDarkOptions?: {
|
|
7
|
+
/**
|
|
8
|
+
* Options for `useDark`
|
|
9
|
+
* disableTransition default is `true`
|
|
10
|
+
* Its options are not computed, init when loaded.
|
|
11
|
+
* @see https://vueuse.org/core/useDark
|
|
12
|
+
* @url https://paco.me/writing/disable-theme-transitions
|
|
13
|
+
*
|
|
14
|
+
* @zh `useDark` 的选项
|
|
15
|
+
* disableTransition 默认为 `true`,不会进行渐变过渡,这是 VueUse 的默认行为
|
|
16
|
+
*/
|
|
17
|
+
useDarkOptions?: UseDarkOptions
|
|
18
|
+
/**
|
|
19
|
+
* Enable circle transition when toggling dark mode
|
|
20
|
+
* Then use `toggleDarkWithTransition` instead of `toggleDark`
|
|
21
|
+
* @zh 启用圆形过渡切换暗黑模式
|
|
22
|
+
*/
|
|
23
|
+
circleTransition?: boolean
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Theme color
|
|
27
|
+
* @zh 主题色
|
|
28
|
+
*/
|
|
29
|
+
themeColor?: {
|
|
30
|
+
/**
|
|
31
|
+
* Theme color for light mode
|
|
32
|
+
* @zh 亮色主题色
|
|
33
|
+
*/
|
|
34
|
+
light?: string
|
|
35
|
+
/**
|
|
36
|
+
* Theme color for dark mode
|
|
37
|
+
* @zh 暗色主题色
|
|
38
|
+
*/
|
|
39
|
+
dark?: string
|
|
40
|
+
}
|
|
41
|
+
}
|
|
4
42
|
/**
|
|
5
43
|
* Custom header levels of outline in the aside component.
|
|
6
44
|
*
|