valaxy 0.19.7 → 0.19.9
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/pages/[...path].vue +0 -2
- package/client/utils/time.ts +56 -12
- package/client/utils/wrap.ts +2 -0
- package/dist/{chunk-2ELKTCRW.cjs → chunk-ELKBAUEC.cjs} +34 -34
- package/dist/{chunk-WJ7ANASU.mjs → chunk-MVWDJMOK.mjs} +35 -35
- 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 +25 -23
- package/types/config.ts +9 -0
- /package/dist/{chunk-MXUQVQLG.cjs → chunk-635QRI6N.cjs} +0 -0
- /package/dist/{chunk-JA4TFOJM.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 _chunkELKBAUECcjs = require('../../chunk-ELKBAUEC.cjs');require('../../chunk-635QRI6N.cjs');exports.cli = _chunkELKBAUECcjs.T; exports.run = _chunkELKBAUECcjs.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-MVWDJMOK.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 _chunkELKBAUECcjs = require('../chunk-ELKBAUEC.cjs');require('../chunk-635QRI6N.cjs');exports.ALL_ROUTE = _chunkELKBAUECcjs.e; exports.EXCERPT_SEPARATOR = _chunkELKBAUECcjs.b; exports.EXTERNAL_URL_RE = _chunkELKBAUECcjs.c; exports.PATHNAME_PROTOCOL_RE = _chunkELKBAUECcjs.d; exports.ViteValaxyPlugins = _chunkELKBAUECcjs.N; exports.build = _chunkELKBAUECcjs.O; exports.cli = _chunkELKBAUECcjs.T; exports.createServer = _chunkELKBAUECcjs.S; exports.createValaxyLoader = _chunkELKBAUECcjs.M; exports.customElements = _chunkELKBAUECcjs.f; exports.defaultSiteConfig = _chunkELKBAUECcjs.p; exports.defaultValaxyConfig = _chunkELKBAUECcjs.t; exports.defineAddon = _chunkELKBAUECcjs.A; exports.defineConfig = _chunkELKBAUECcjs.v; exports.defineSiteConfig = _chunkELKBAUECcjs.q; exports.defineTheme = _chunkELKBAUECcjs.F; exports.defineUnoSetup = _chunkELKBAUECcjs.G; exports.defineValaxyAddon = _chunkELKBAUECcjs.z; exports.defineValaxyConfig = _chunkELKBAUECcjs.u; exports.defineValaxyTheme = _chunkELKBAUECcjs.E; exports.ensurePrefix = _chunkELKBAUECcjs.j; exports.generateClientRedirects = _chunkELKBAUECcjs.R; exports.getGitTimestamp = _chunkELKBAUECcjs.a; exports.getIndexHtml = _chunkELKBAUECcjs.L; exports.isExternal = _chunkELKBAUECcjs.h; exports.isPath = _chunkELKBAUECcjs.l; exports.loadConfig = _chunkELKBAUECcjs.n; exports.loadConfigFromFile = _chunkELKBAUECcjs.o; exports.mergeValaxyConfig = _chunkELKBAUECcjs.x; exports.mergeViteConfigs = _chunkELKBAUECcjs.K; exports.postProcessForSSG = _chunkELKBAUECcjs.Q; exports.processValaxyOptions = _chunkELKBAUECcjs.H; exports.resolveAddonsConfig = _chunkELKBAUECcjs.B; exports.resolveImportPath = _chunkELKBAUECcjs.g; exports.resolveOptions = _chunkELKBAUECcjs.I; exports.resolveSiteConfig = _chunkELKBAUECcjs.s; exports.resolveSiteConfigFromRoot = _chunkELKBAUECcjs.r; exports.resolveThemeConfigFromRoot = _chunkELKBAUECcjs.C; exports.resolveThemeValaxyConfig = _chunkELKBAUECcjs.J; exports.resolveUserThemeConfig = _chunkELKBAUECcjs.D; exports.resolveValaxyConfig = _chunkELKBAUECcjs.y; exports.resolveValaxyConfigFromRoot = _chunkELKBAUECcjs.w; exports.run = _chunkELKBAUECcjs.U; exports.slash = _chunkELKBAUECcjs.i; exports.ssgBuild = _chunkELKBAUECcjs.P; exports.toAtFS = _chunkELKBAUECcjs.k; exports.transformObject = _chunkELKBAUECcjs.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-MVWDJMOK.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.9",
|
|
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,22 +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",
|
|
64
|
+
"@types/luxon": "^3.4.2",
|
|
66
65
|
"@unhead/addons": "^1.9.16",
|
|
67
66
|
"@unhead/schema-org": "^1.9.16",
|
|
68
67
|
"@unhead/vue": "^1.9.16",
|
|
69
68
|
"@vitejs/plugin-vue": "^5.1.2",
|
|
70
|
-
"@vue/devtools-api": "^7.3.
|
|
71
|
-
"@vueuse/core": "^
|
|
72
|
-
"@vueuse/integrations": "^
|
|
69
|
+
"@vue/devtools-api": "^7.3.8",
|
|
70
|
+
"@vueuse/core": "^11.0.0",
|
|
71
|
+
"@vueuse/integrations": "^11.0.0",
|
|
73
72
|
"consola": "^3.2.3",
|
|
74
73
|
"critters": "^0.0.24",
|
|
75
74
|
"cross-spawn": "^7.0.3",
|
|
76
75
|
"css-i18n": "^0.0.2",
|
|
77
76
|
"date-fns": "^3.6.0",
|
|
77
|
+
"date-fns-tz": "^3.1.3",
|
|
78
78
|
"debug": "^4.3.6",
|
|
79
79
|
"defu": "^6.1.4",
|
|
80
80
|
"ejs": "^3.1.10",
|
|
@@ -91,9 +91,10 @@
|
|
|
91
91
|
"js-yaml": "^4.1.0",
|
|
92
92
|
"katex": "^0.16.11",
|
|
93
93
|
"lru-cache": "^11.0.0",
|
|
94
|
+
"luxon": "^3.5.0",
|
|
94
95
|
"markdown-it": "^14.1.0",
|
|
95
96
|
"markdown-it-anchor": "^9.0.1",
|
|
96
|
-
"markdown-it-attrs": "^4.
|
|
97
|
+
"markdown-it-attrs": "^4.2.0",
|
|
97
98
|
"markdown-it-container": "^4.0.0",
|
|
98
99
|
"markdown-it-emoji": "^3.0.0",
|
|
99
100
|
"markdown-it-footnote": "^4.0.0",
|
|
@@ -107,27 +108,27 @@
|
|
|
107
108
|
"ora": "^8.0.1",
|
|
108
109
|
"pascalcase": "^2.0.0",
|
|
109
110
|
"pathe": "^1.1.2",
|
|
110
|
-
"pinia": "^2.2.
|
|
111
|
-
"qrcode": "^1.5.
|
|
111
|
+
"pinia": "^2.2.2",
|
|
112
|
+
"qrcode": "^1.5.4",
|
|
112
113
|
"sass": "^1.77.8",
|
|
113
|
-
"shiki": "^1.
|
|
114
|
+
"shiki": "^1.14.1",
|
|
114
115
|
"star-markdown-css": "^0.5.1",
|
|
115
|
-
"unocss": "^0.
|
|
116
|
-
"unplugin-vue-components": "^0.27.
|
|
116
|
+
"unocss": "^0.62.2",
|
|
117
|
+
"unplugin-vue-components": "^0.27.4",
|
|
117
118
|
"unplugin-vue-markdown": "^0.26.2",
|
|
118
|
-
"unplugin-vue-router": "^0.10.
|
|
119
|
+
"unplugin-vue-router": "^0.10.7",
|
|
119
120
|
"vanilla-lazyload": "^19.1.3",
|
|
120
|
-
"vite": "^5.
|
|
121
|
-
"vite-plugin-vue-devtools": "^7.3.
|
|
121
|
+
"vite": "^5.4.1",
|
|
122
|
+
"vite-plugin-vue-devtools": "^7.3.8",
|
|
122
123
|
"vite-plugin-vue-layouts": "0.11.0",
|
|
123
124
|
"vite-ssg": "0.23.7",
|
|
124
125
|
"vite-ssg-sitemap": "0.6.1",
|
|
125
|
-
"vue": "^3.4.
|
|
126
|
-
"vue-i18n": "^9.
|
|
127
|
-
"vue-router": "^4.4.
|
|
126
|
+
"vue": "^3.4.38",
|
|
127
|
+
"vue-i18n": "^9.14.0",
|
|
128
|
+
"vue-router": "^4.4.3",
|
|
128
129
|
"yargs": "^17.7.2",
|
|
129
|
-
"@valaxyjs/
|
|
130
|
-
"@valaxyjs/
|
|
130
|
+
"@valaxyjs/utils": "0.19.9",
|
|
131
|
+
"@valaxyjs/devtools": "0.19.9"
|
|
131
132
|
},
|
|
132
133
|
"devDependencies": {
|
|
133
134
|
"@mdit-vue/plugin-component": "^2.1.3",
|
|
@@ -140,12 +141,13 @@
|
|
|
140
141
|
"@types/cross-spawn": "^6.0.6",
|
|
141
142
|
"@types/ejs": "^3.1.5",
|
|
142
143
|
"@types/html-to-text": "^9.0.4",
|
|
144
|
+
"@types/js-yaml": "^4.0.9",
|
|
143
145
|
"@types/markdown-it": "^14.1.2",
|
|
144
146
|
"@types/markdown-it-footnote": "^3.0.4",
|
|
145
147
|
"@types/nprogress": "^0.2.3",
|
|
146
148
|
"@types/pascalcase": "^1.0.3",
|
|
147
149
|
"@types/qrcode": "^1.5.5",
|
|
148
|
-
"@types/yargs": "^17.0.
|
|
150
|
+
"@types/yargs": "^17.0.33",
|
|
149
151
|
"diacritics": "^1.3.0",
|
|
150
152
|
"https-localhost": "^4.7.1"
|
|
151
153
|
},
|
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
|