valaxy 0.19.5 → 0.19.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/ValaxyLogo.vue +1 -1
- package/client/modules/valaxy.ts +0 -1
- package/client/pages/[...path].vue +0 -2
- package/client/utils/time.ts +56 -12
- package/client/utils/wrap.ts +2 -0
- package/dist/{chunk-LBOPLBJ5.mjs → chunk-T3PZ57XX.mjs} +36 -36
- package/dist/{chunk-G2FVTQKO.cjs → chunk-YNR6K7DA.cjs} +36 -36
- package/dist/{config-BuLv3zWm.d.cts → config-_Vh4V6Lh.d.cts} +9 -0
- package/dist/{config-BuLv3zWm.d.ts → config-_Vh4V6Lh.d.ts} +9 -0
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +1 -1
- package/package.json +26 -25
- package/shims.d.ts +4 -0
- package/types/config.ts +9 -0
- /package/dist/{chunk-ZBSS4PFL.cjs → chunk-635QRI6N.cjs} +0 -0
- /package/dist/{chunk-FMBSVCYZ.mjs → chunk-FDUDFMUS.mjs} +0 -0
|
@@ -392,6 +392,15 @@ interface SiteConfig {
|
|
|
392
392
|
* @example 'https://valaxy.site'
|
|
393
393
|
* @default '/'
|
|
394
394
|
*/
|
|
395
|
+
/**
|
|
396
|
+
* @see https://wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
397
|
+
* @en_US Timezone configuration
|
|
398
|
+
* @zh_CN 时区配置,国内推荐使用 'Asia/Shanghai'
|
|
399
|
+
* @description:en-US This configuration is used to generate times with timezone when no timezone is set
|
|
400
|
+
* @description:zh-CN 当时间没有设置时区时,使用该配置生成带时区的时间
|
|
401
|
+
* @default ''
|
|
402
|
+
*/
|
|
403
|
+
timezone: string;
|
|
395
404
|
url: string;
|
|
396
405
|
/**
|
|
397
406
|
* Site title
|
|
@@ -392,6 +392,15 @@ interface SiteConfig {
|
|
|
392
392
|
* @example 'https://valaxy.site'
|
|
393
393
|
* @default '/'
|
|
394
394
|
*/
|
|
395
|
+
/**
|
|
396
|
+
* @see https://wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
397
|
+
* @en_US Timezone configuration
|
|
398
|
+
* @zh_CN 时区配置,国内推荐使用 'Asia/Shanghai'
|
|
399
|
+
* @description:en-US This configuration is used to generate times with timezone when no timezone is set
|
|
400
|
+
* @description:zh-CN 当时间没有设置时区时,使用该配置生成带时区的时间
|
|
401
|
+
* @default ''
|
|
402
|
+
*/
|
|
403
|
+
timezone: string;
|
|
395
404
|
url: string;
|
|
396
405
|
/**
|
|
397
406
|
* Site title
|
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 _chunkYNR6K7DAcjs = require('../../chunk-YNR6K7DA.cjs');require('../../chunk-635QRI6N.cjs');exports.cli = _chunkYNR6K7DAcjs.T; exports.run = _chunkYNR6K7DAcjs.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-T3PZ57XX.mjs";import"../../chunk-FDUDFMUS.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 _chunkYNR6K7DAcjs = require('../chunk-YNR6K7DA.cjs');require('../chunk-635QRI6N.cjs');exports.ALL_ROUTE = _chunkYNR6K7DAcjs.e; exports.EXCERPT_SEPARATOR = _chunkYNR6K7DAcjs.b; exports.EXTERNAL_URL_RE = _chunkYNR6K7DAcjs.c; exports.PATHNAME_PROTOCOL_RE = _chunkYNR6K7DAcjs.d; exports.ViteValaxyPlugins = _chunkYNR6K7DAcjs.N; exports.build = _chunkYNR6K7DAcjs.O; exports.cli = _chunkYNR6K7DAcjs.T; exports.createServer = _chunkYNR6K7DAcjs.S; exports.createValaxyLoader = _chunkYNR6K7DAcjs.M; exports.customElements = _chunkYNR6K7DAcjs.f; exports.defaultSiteConfig = _chunkYNR6K7DAcjs.p; exports.defaultValaxyConfig = _chunkYNR6K7DAcjs.t; exports.defineAddon = _chunkYNR6K7DAcjs.A; exports.defineConfig = _chunkYNR6K7DAcjs.v; exports.defineSiteConfig = _chunkYNR6K7DAcjs.q; exports.defineTheme = _chunkYNR6K7DAcjs.F; exports.defineUnoSetup = _chunkYNR6K7DAcjs.G; exports.defineValaxyAddon = _chunkYNR6K7DAcjs.z; exports.defineValaxyConfig = _chunkYNR6K7DAcjs.u; exports.defineValaxyTheme = _chunkYNR6K7DAcjs.E; exports.ensurePrefix = _chunkYNR6K7DAcjs.j; exports.generateClientRedirects = _chunkYNR6K7DAcjs.R; exports.getGitTimestamp = _chunkYNR6K7DAcjs.a; exports.getIndexHtml = _chunkYNR6K7DAcjs.L; exports.isExternal = _chunkYNR6K7DAcjs.h; exports.isPath = _chunkYNR6K7DAcjs.l; exports.loadConfig = _chunkYNR6K7DAcjs.n; exports.loadConfigFromFile = _chunkYNR6K7DAcjs.o; exports.mergeValaxyConfig = _chunkYNR6K7DAcjs.x; exports.mergeViteConfigs = _chunkYNR6K7DAcjs.K; exports.postProcessForSSG = _chunkYNR6K7DAcjs.Q; exports.processValaxyOptions = _chunkYNR6K7DAcjs.H; exports.resolveAddonsConfig = _chunkYNR6K7DAcjs.B; exports.resolveImportPath = _chunkYNR6K7DAcjs.g; exports.resolveOptions = _chunkYNR6K7DAcjs.I; exports.resolveSiteConfig = _chunkYNR6K7DAcjs.s; exports.resolveSiteConfigFromRoot = _chunkYNR6K7DAcjs.r; exports.resolveThemeConfigFromRoot = _chunkYNR6K7DAcjs.C; exports.resolveThemeValaxyConfig = _chunkYNR6K7DAcjs.J; exports.resolveUserThemeConfig = _chunkYNR6K7DAcjs.D; exports.resolveValaxyConfig = _chunkYNR6K7DAcjs.y; exports.resolveValaxyConfigFromRoot = _chunkYNR6K7DAcjs.w; exports.run = _chunkYNR6K7DAcjs.U; exports.slash = _chunkYNR6K7DAcjs.i; exports.ssgBuild = _chunkYNR6K7DAcjs.P; exports.toAtFS = _chunkYNR6K7DAcjs.k; exports.transformObject = _chunkYNR6K7DAcjs.m;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -23,7 +23,7 @@ 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-_Vh4V6Lh.cjs';
|
|
27
27
|
import 'yargs';
|
|
28
28
|
import 'medium-zoom';
|
|
29
29
|
import '@vueuse/integrations/useFuse';
|
package/dist/node/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ 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-_Vh4V6Lh.js';
|
|
27
27
|
import 'yargs';
|
|
28
28
|
import 'medium-zoom';
|
|
29
29
|
import '@vueuse/integrations/useFuse';
|
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-T3PZ57XX.mjs";import"../chunk-FDUDFMUS.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 _chunk635QRI6Ncjs = require('../chunk-635QRI6N.cjs');_chunk635QRI6Ncjs.e.call(void 0, );_chunk635QRI6Ncjs.e.call(void 0, );_chunk635QRI6Ncjs.e.call(void 0, );_chunk635QRI6Ncjs.e.call(void 0, );_chunk635QRI6Ncjs.e.call(void 0, );_chunk635QRI6Ncjs.e.call(void 0, );_chunk635QRI6Ncjs.e.call(void 0, );_chunk635QRI6Ncjs.e.call(void 0, );_chunk635QRI6Ncjs.e.call(void 0, );_chunk635QRI6Ncjs.e.call(void 0, );
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-_Vh4V6Lh.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-_Vh4V6Lh.cjs';
|
|
3
3
|
import { Header } from '@valaxyjs/utils';
|
|
4
4
|
import 'medium-zoom';
|
|
5
5
|
import '@vueuse/integrations/useFuse';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-_Vh4V6Lh.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-_Vh4V6Lh.js';
|
|
3
3
|
import { Header } from '@valaxyjs/utils';
|
|
4
4
|
import 'medium-zoom';
|
|
5
5
|
import '@vueuse/integrations/useFuse';
|
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-FDUDFMUS.mjs";e();e();e();e();e();e();e();e();e();e();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.8",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -23,8 +23,7 @@
|
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./index.d.ts",
|
|
25
25
|
"import": "./dist/node/index.mjs",
|
|
26
|
-
"require": "./dist/node/index.cjs"
|
|
27
|
-
"default": "./dist/node/index.mjs"
|
|
26
|
+
"require": "./dist/node/index.cjs"
|
|
28
27
|
},
|
|
29
28
|
"./client/*": "./client/*",
|
|
30
29
|
"./client": "./client/index.ts",
|
|
@@ -59,23 +58,23 @@
|
|
|
59
58
|
"dependencies": {
|
|
60
59
|
"@antfu/utils": "^0.7.10",
|
|
61
60
|
"@ctrl/tinycolor": "^4.1.0",
|
|
62
|
-
"@iconify-json/ri": "^1.1.
|
|
61
|
+
"@iconify-json/ri": "^1.1.22",
|
|
63
62
|
"@intlify/unplugin-vue-i18n": "^4.0.0",
|
|
64
|
-
"@types/js-yaml": "^4.0.9",
|
|
65
63
|
"@types/katex": "^0.16.7",
|
|
66
64
|
"@unhead/addons": "^1.9.16",
|
|
67
65
|
"@unhead/schema-org": "^1.9.16",
|
|
68
66
|
"@unhead/vue": "^1.9.16",
|
|
69
|
-
"@vitejs/plugin-vue": "^5.1.
|
|
70
|
-
"@vue/devtools-api": "^7.3.
|
|
71
|
-
"@vueuse/core": "^
|
|
72
|
-
"@vueuse/integrations": "^
|
|
67
|
+
"@vitejs/plugin-vue": "^5.1.2",
|
|
68
|
+
"@vue/devtools-api": "^7.3.8",
|
|
69
|
+
"@vueuse/core": "^11.0.0",
|
|
70
|
+
"@vueuse/integrations": "^11.0.0",
|
|
73
71
|
"consola": "^3.2.3",
|
|
74
72
|
"critters": "^0.0.24",
|
|
75
73
|
"cross-spawn": "^7.0.3",
|
|
76
74
|
"css-i18n": "^0.0.2",
|
|
77
75
|
"date-fns": "^3.6.0",
|
|
78
|
-
"
|
|
76
|
+
"date-fns-tz": "^3.1.3",
|
|
77
|
+
"debug": "^4.3.6",
|
|
79
78
|
"defu": "^6.1.4",
|
|
80
79
|
"ejs": "^3.1.10",
|
|
81
80
|
"escape-html": "^1.0.3",
|
|
@@ -91,9 +90,10 @@
|
|
|
91
90
|
"js-yaml": "^4.1.0",
|
|
92
91
|
"katex": "^0.16.11",
|
|
93
92
|
"lru-cache": "^11.0.0",
|
|
93
|
+
"luxon": "^3.5.0",
|
|
94
94
|
"markdown-it": "^14.1.0",
|
|
95
95
|
"markdown-it-anchor": "^9.0.1",
|
|
96
|
-
"markdown-it-attrs": "^4.
|
|
96
|
+
"markdown-it-attrs": "^4.2.0",
|
|
97
97
|
"markdown-it-container": "^4.0.0",
|
|
98
98
|
"markdown-it-emoji": "^3.0.0",
|
|
99
99
|
"markdown-it-footnote": "^4.0.0",
|
|
@@ -107,27 +107,27 @@
|
|
|
107
107
|
"ora": "^8.0.1",
|
|
108
108
|
"pascalcase": "^2.0.0",
|
|
109
109
|
"pathe": "^1.1.2",
|
|
110
|
-
"pinia": "^2.2.
|
|
111
|
-
"qrcode": "^1.5.
|
|
110
|
+
"pinia": "^2.2.2",
|
|
111
|
+
"qrcode": "^1.5.4",
|
|
112
112
|
"sass": "^1.77.8",
|
|
113
|
-
"shiki": "^1.
|
|
113
|
+
"shiki": "^1.13.0",
|
|
114
114
|
"star-markdown-css": "^0.5.1",
|
|
115
|
-
"unocss": "^0.
|
|
116
|
-
"unplugin-vue-components": "^0.27.
|
|
115
|
+
"unocss": "^0.62.2",
|
|
116
|
+
"unplugin-vue-components": "^0.27.4",
|
|
117
117
|
"unplugin-vue-markdown": "^0.26.2",
|
|
118
|
-
"unplugin-vue-router": "^0.10.
|
|
118
|
+
"unplugin-vue-router": "^0.10.7",
|
|
119
119
|
"vanilla-lazyload": "^19.1.3",
|
|
120
|
-
"vite": "^5.
|
|
121
|
-
"vite-plugin-vue-devtools": "^7.3.
|
|
120
|
+
"vite": "^5.4.1",
|
|
121
|
+
"vite-plugin-vue-devtools": "^7.3.8",
|
|
122
122
|
"vite-plugin-vue-layouts": "0.11.0",
|
|
123
123
|
"vite-ssg": "0.23.7",
|
|
124
124
|
"vite-ssg-sitemap": "0.6.1",
|
|
125
|
-
"vue": "^3.4.
|
|
126
|
-
"vue-i18n": "^9.
|
|
127
|
-
"vue-router": "^4.4.
|
|
125
|
+
"vue": "^3.4.38",
|
|
126
|
+
"vue-i18n": "^9.14.0",
|
|
127
|
+
"vue-router": "^4.4.3",
|
|
128
128
|
"yargs": "^17.7.2",
|
|
129
|
-
"@valaxyjs/
|
|
130
|
-
"@valaxyjs/
|
|
129
|
+
"@valaxyjs/utils": "0.19.8",
|
|
130
|
+
"@valaxyjs/devtools": "0.19.8"
|
|
131
131
|
},
|
|
132
132
|
"devDependencies": {
|
|
133
133
|
"@mdit-vue/plugin-component": "^2.1.3",
|
|
@@ -140,12 +140,13 @@
|
|
|
140
140
|
"@types/cross-spawn": "^6.0.6",
|
|
141
141
|
"@types/ejs": "^3.1.5",
|
|
142
142
|
"@types/html-to-text": "^9.0.4",
|
|
143
|
+
"@types/luxon": "^3.4.2",
|
|
143
144
|
"@types/markdown-it": "^14.1.2",
|
|
144
145
|
"@types/markdown-it-footnote": "^3.0.4",
|
|
145
146
|
"@types/nprogress": "^0.2.3",
|
|
146
147
|
"@types/pascalcase": "^1.0.3",
|
|
147
148
|
"@types/qrcode": "^1.5.5",
|
|
148
|
-
"@types/yargs": "^17.0.
|
|
149
|
+
"@types/yargs": "^17.0.33",
|
|
149
150
|
"diacritics": "^1.3.0",
|
|
150
151
|
"https-localhost": "^4.7.1"
|
|
151
152
|
},
|
package/shims.d.ts
CHANGED
package/types/config.ts
CHANGED
|
@@ -65,6 +65,15 @@ export interface SiteConfig {
|
|
|
65
65
|
* @example 'https://valaxy.site'
|
|
66
66
|
* @default '/'
|
|
67
67
|
*/
|
|
68
|
+
/**
|
|
69
|
+
* @see https://wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
70
|
+
* @en_US Timezone configuration
|
|
71
|
+
* @zh_CN 时区配置,国内推荐使用 'Asia/Shanghai'
|
|
72
|
+
* @description:en-US This configuration is used to generate times with timezone when no timezone is set
|
|
73
|
+
* @description:zh-CN 当时间没有设置时区时,使用该配置生成带时区的时间
|
|
74
|
+
* @default ''
|
|
75
|
+
*/
|
|
76
|
+
timezone: string
|
|
68
77
|
url: string
|
|
69
78
|
/**
|
|
70
79
|
* Site title
|
|
File without changes
|
|
File without changes
|