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.
Files changed (46) hide show
  1. package/client/App.vue +6 -11
  2. package/client/components/builtin/ValaxyMermaid.vue +4 -3
  3. package/client/composables/aside.ts +12 -5
  4. package/client/composables/categories.ts +12 -1
  5. package/client/composables/dark.ts +77 -38
  6. package/client/composables/layout.ts +10 -2
  7. package/client/composables/outline/headers.ts +12 -1
  8. package/client/composables/sidebar.ts +41 -2
  9. package/client/composables/tags.ts +9 -0
  10. package/client/locales/en.yml +2 -2
  11. package/client/locales/zh-CN.yml +1 -1
  12. package/client/main.ts +12 -10
  13. package/client/setup/main.ts +0 -2
  14. package/client/setup/mermaid.ts +7 -0
  15. package/client/setups.ts +15 -0
  16. package/client/shims.d.ts +3 -0
  17. package/client/stores/app.ts +20 -4
  18. package/client/styles/css/css-vars.css +19 -0
  19. package/client/styles/{global/index.scss → css/main.css} +1 -1
  20. package/client/styles/css-vars.scss +1 -1
  21. package/client/styles/index.scss +0 -1
  22. package/client/styles/palette.scss +0 -18
  23. package/client/types/index.ts +3 -0
  24. package/client/utils/router.ts +18 -0
  25. package/client/utils/time.ts +8 -0
  26. package/dist/chunk-PTYUKZAG.mjs +157 -0
  27. package/dist/chunk-RVKKZQ6C.cjs +156 -0
  28. package/dist/{config-D40lUB2J.d.cts → config-BuLv3zWm.d.cts} +40 -7
  29. package/dist/{config-D40lUB2J.d.ts → config-BuLv3zWm.d.ts} +40 -7
  30. package/dist/node/cli/index.cjs +1 -1
  31. package/dist/node/cli/index.mjs +1 -1
  32. package/dist/node/index.cjs +1 -1
  33. package/dist/node/index.d.cts +3 -2
  34. package/dist/node/index.d.ts +3 -2
  35. package/dist/node/index.mjs +1 -1
  36. package/dist/types/index.cjs +1 -1
  37. package/dist/types/index.d.cts +3 -2
  38. package/dist/types/index.d.ts +3 -2
  39. package/dist/types/index.mjs +1 -1
  40. package/package.json +14 -13
  41. package/types/config.ts +4 -7
  42. package/types/default-theme.ts +38 -0
  43. package/dist/chunk-57MNPFIN.mjs +0 -150
  44. package/dist/chunk-KIFZXMGL.cjs +0 -149
  45. /package/dist/{chunk-OE2XGI4S.mjs → chunk-7VTZAWDO.mjs} +0 -0
  46. /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
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKIFZXMGLcjs = require('../../chunk-KIFZXMGL.cjs');require('../../chunk-EKEE6AAY.cjs');exports.cli = _chunkKIFZXMGLcjs.T; exports.run = _chunkKIFZXMGLcjs.U;
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;
@@ -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-57MNPFIN.mjs";import"../../chunk-OE2XGI4S.mjs";export{a as cli,b as run};
2
+ import{T as a,U as b}from"../../chunk-PTYUKZAG.mjs";import"../../chunk-7VTZAWDO.mjs";export{a as cli,b as run};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKIFZXMGLcjs = require('../chunk-KIFZXMGL.cjs');require('../chunk-EKEE6AAY.cjs');exports.ALL_ROUTE = _chunkKIFZXMGLcjs.f; exports.EXCERPT_SEPARATOR = _chunkKIFZXMGLcjs.c; exports.EXTERNAL_URL_RE = _chunkKIFZXMGLcjs.d; exports.PATHNAME_PROTOCOL_RE = _chunkKIFZXMGLcjs.e; exports.ViteValaxyPlugins = _chunkKIFZXMGLcjs.N; exports.build = _chunkKIFZXMGLcjs.O; exports.cli = _chunkKIFZXMGLcjs.T; exports.createServer = _chunkKIFZXMGLcjs.S; exports.createValaxyLoader = _chunkKIFZXMGLcjs.M; exports.customElements = _chunkKIFZXMGLcjs.g; exports.defaultSiteConfig = _chunkKIFZXMGLcjs.p; exports.defaultValaxyConfig = _chunkKIFZXMGLcjs.t; exports.defineAddon = _chunkKIFZXMGLcjs.A; exports.defineConfig = _chunkKIFZXMGLcjs.v; exports.defineSiteConfig = _chunkKIFZXMGLcjs.q; exports.defineTheme = _chunkKIFZXMGLcjs.F; exports.defineUnoSetup = _chunkKIFZXMGLcjs.G; exports.defineValaxyAddon = _chunkKIFZXMGLcjs.z; exports.defineValaxyConfig = _chunkKIFZXMGLcjs.u; exports.defineValaxyTheme = _chunkKIFZXMGLcjs.E; exports.ensurePrefix = _chunkKIFZXMGLcjs.j; exports.generateClientRedirects = _chunkKIFZXMGLcjs.R; exports.getGitTimestamp = _chunkKIFZXMGLcjs.a; exports.getIndexHtml = _chunkKIFZXMGLcjs.L; exports.isExternal = _chunkKIFZXMGLcjs.h; exports.isPath = _chunkKIFZXMGLcjs.l; exports.loadConfig = _chunkKIFZXMGLcjs.n; exports.loadConfigFromFile = _chunkKIFZXMGLcjs.o; exports.mergeValaxyConfig = _chunkKIFZXMGLcjs.x; exports.mergeViteConfigs = _chunkKIFZXMGLcjs.K; exports.postProcessForSSG = _chunkKIFZXMGLcjs.Q; exports.processValaxyOptions = _chunkKIFZXMGLcjs.H; exports.resolveAddonsConfig = _chunkKIFZXMGLcjs.B; exports.resolveImportPath = _chunkKIFZXMGLcjs.b; exports.resolveOptions = _chunkKIFZXMGLcjs.I; exports.resolveSiteConfig = _chunkKIFZXMGLcjs.s; exports.resolveSiteConfigFromRoot = _chunkKIFZXMGLcjs.r; exports.resolveThemeConfigFromRoot = _chunkKIFZXMGLcjs.C; exports.resolveThemeValaxyConfig = _chunkKIFZXMGLcjs.J; exports.resolveUserThemeConfig = _chunkKIFZXMGLcjs.D; exports.resolveValaxyConfig = _chunkKIFZXMGLcjs.y; exports.resolveValaxyConfigFromRoot = _chunkKIFZXMGLcjs.w; exports.run = _chunkKIFZXMGLcjs.U; exports.slash = _chunkKIFZXMGLcjs.i; exports.ssgBuild = _chunkKIFZXMGLcjs.P; exports.toAtFS = _chunkKIFZXMGLcjs.k; exports.transformObject = _chunkKIFZXMGLcjs.m;
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;
@@ -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-D40lUB2J.cjs';
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.Options;
83
+ options?: MarkdownIt['options'];
83
84
  /**
84
85
  * config markdown-it
85
86
  */
@@ -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-D40lUB2J.js';
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.Options;
83
+ options?: MarkdownIt['options'];
83
84
  /**
84
85
  * config markdown-it
85
86
  */
@@ -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-57MNPFIN.mjs";import"../chunk-OE2XGI4S.mjs";export{f as ALL_ROUTE,c as EXCERPT_SEPARATOR,d as EXTERNAL_URL_RE,e as PATHNAME_PROTOCOL_RE,N as ViteValaxyPlugins,O as build,T as cli,S as createServer,M as createValaxyLoader,g 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,b 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};
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};
@@ -1 +1 @@
1
- "use strict";var _chunkEKEE6AAYcjs = require('../chunk-EKEE6AAY.cjs');_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );_chunkEKEE6AAYcjs.e.call(void 0, );
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, );
@@ -1,9 +1,10 @@
1
- import { a as PageFrontMatter, b as PostFrontMatter } from '../config-D40lUB2J.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-D40lUB2J.cjs';
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>;
@@ -1,9 +1,10 @@
1
- import { a as PageFrontMatter, b as PostFrontMatter } from '../config-D40lUB2J.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-D40lUB2J.js';
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>;
@@ -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-OE2XGI4S.mjs";e();e();e();e();e();e();e();e();e();e();
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.18.10",
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.14",
67
- "@unhead/schema-org": "^1.9.14",
68
- "@unhead/vue": "^1.9.14",
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
- "katex": "^0.16.10",
93
- "lru-cache": "^10.3.0",
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.6",
113
- "shiki": "^1.10.0",
114
- "star-markdown-css": "^0.4.2",
115
- "unocss": "^0.61.0",
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.2",
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.18.10"
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
@@ -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
  *