valaxy 0.15.12 → 0.15.14
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 -1
- package/client/composables/features/collapse-code.ts +42 -0
- package/client/composables/features/index.ts +1 -0
- package/client/composables/widgets/aplayer.ts +1 -0
- package/client/styles/common/code.scss +30 -0
- package/client/styles/css-vars.scss +1 -0
- package/dist/chunk-G2HMAIG3.mjs +135 -0
- package/dist/chunk-Q624MH4A.cjs +134 -0
- package/dist/{config-0d4945ff.d.ts → config-a1820a44.d.ts} +16 -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 +2 -1
- package/dist/node/index.d.ts +2 -1
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.ts +3 -2
- package/package.json +25 -26
- package/types/config.ts +6 -0
- package/types/posts.ts +14 -0
- package/dist/chunk-HAVGXIHI.mjs +0 -130
- package/dist/chunk-HZFTOKBG.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 { NodeRelations, ImageObject } from '@unhead/schema-org';
|
|
4
5
|
|
|
5
6
|
interface ValaxyAddon<AddonOptions = Record<string, any>> {
|
|
6
7
|
name: string;
|
|
@@ -90,6 +91,7 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
90
91
|
* @description 是否显示文章底部版权信息
|
|
91
92
|
*/
|
|
92
93
|
copyright: boolean;
|
|
94
|
+
image: NodeRelations<ImageObject | string>;
|
|
93
95
|
/**
|
|
94
96
|
* cover
|
|
95
97
|
* @description 封面图片
|
|
@@ -170,10 +172,19 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
170
172
|
* @description:zh-CN 加密后的内容
|
|
171
173
|
*/
|
|
172
174
|
encryptedContent?: string;
|
|
175
|
+
/**
|
|
176
|
+
* @description:zh-CN 部分加密的内容
|
|
177
|
+
*/
|
|
178
|
+
partiallyEncryptedContents?: string[];
|
|
173
179
|
/**
|
|
174
180
|
* @description:zh-CN 加密后的相册
|
|
175
181
|
*/
|
|
176
182
|
encryptedPhotos?: string;
|
|
183
|
+
/**
|
|
184
|
+
* @description:en-US Limit the height of the code block in px
|
|
185
|
+
* @description:zh-CN 限制代码块的高度,单位是 px
|
|
186
|
+
*/
|
|
187
|
+
codeHeightLimit?: number;
|
|
177
188
|
}
|
|
178
189
|
interface PostFrontMatter extends PageFrontMatter {
|
|
179
190
|
/**
|
|
@@ -528,6 +539,11 @@ interface SiteConfig {
|
|
|
528
539
|
iv: Uint8Array;
|
|
529
540
|
salt: Uint8Array;
|
|
530
541
|
};
|
|
542
|
+
/**
|
|
543
|
+
* @description:en-US Limit the height of the code block in px
|
|
544
|
+
* @description:zh-CN 限制代码块的高度,单位是 px
|
|
545
|
+
*/
|
|
546
|
+
codeHeightLimit?: number;
|
|
531
547
|
}
|
|
532
548
|
type PartialDeep<T> = {
|
|
533
549
|
[P in keyof T]?: T[P] extends object ? PartialDeep<T[P]> : T[P];
|
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 _chunkQ624MH4Acjs = require('../../chunk-Q624MH4A.cjs');require('../../chunk-YDNPXS5U.cjs');exports.cli = _chunkQ624MH4Acjs.F; exports.run = _chunkQ624MH4Acjs.G;
|
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{F as a,G as b}from"../../chunk-
|
|
2
|
+
import{F as a,G as b}from"../../chunk-G2HMAIG3.mjs";import"../../chunk-GY4S4RDR.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 _chunkQ624MH4Acjs = require('../chunk-Q624MH4A.cjs');require('../chunk-YDNPXS5U.cjs');exports.build = _chunkQ624MH4Acjs.B; exports.cli = _chunkQ624MH4Acjs.F; exports.createServer = _chunkQ624MH4Acjs.E; exports.defaultSiteConfig = _chunkQ624MH4Acjs.t; exports.defaultValaxyConfig = _chunkQ624MH4Acjs.u; exports.defineAddon = _chunkQ624MH4Acjs.n; exports.defineConfig = _chunkQ624MH4Acjs.s; exports.defineSiteConfig = _chunkQ624MH4Acjs.q; exports.defineTheme = _chunkQ624MH4Acjs.p; exports.defineUnoSetup = _chunkQ624MH4Acjs.v; exports.defineValaxyAddon = _chunkQ624MH4Acjs.m; exports.defineValaxyConfig = _chunkQ624MH4Acjs.r; exports.defineValaxyTheme = _chunkQ624MH4Acjs.o; exports.ensurePrefix = _chunkQ624MH4Acjs.d; exports.getGitTimestamp = _chunkQ624MH4Acjs.a; exports.getIndexHtml = _chunkQ624MH4Acjs.A; exports.isExternal = _chunkQ624MH4Acjs.b; exports.isPath = _chunkQ624MH4Acjs.f; exports.mergeValaxyConfig = _chunkQ624MH4Acjs.g; exports.mergeViteConfigs = _chunkQ624MH4Acjs.z; exports.postProcessForSSG = _chunkQ624MH4Acjs.D; exports.processValaxyOptions = _chunkQ624MH4Acjs.w; exports.resolveAddonConfig = _chunkQ624MH4Acjs.j; exports.resolveImportPath = _chunkQ624MH4Acjs.l; exports.resolveOptions = _chunkQ624MH4Acjs.x; exports.resolveThemeValaxyConfig = _chunkQ624MH4Acjs.y; exports.resolveValaxyConfig = _chunkQ624MH4Acjs.i; exports.resolveValaxyConfigFromRoot = _chunkQ624MH4Acjs.h; exports.run = _chunkQ624MH4Acjs.G; exports.slash = _chunkQ624MH4Acjs.c; exports.ssgBuild = _chunkQ624MH4Acjs.C; exports.toAtFS = _chunkQ624MH4Acjs.e; exports.transformObject = _chunkQ624MH4Acjs.k;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { ViteSSGOptions } from 'vite-ssg';
|
|
|
2
2
|
export { cli, run } from './cli/index.cjs';
|
|
3
3
|
import * as vite from 'vite';
|
|
4
4
|
import { UserConfig, InlineConfig } from 'vite';
|
|
5
|
-
import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-
|
|
5
|
+
import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-a1820a44.js';
|
|
6
6
|
import Vue from '@vitejs/plugin-vue';
|
|
7
7
|
import Components from 'unplugin-vue-components/vite';
|
|
8
8
|
import { VitePluginConfig } from 'unocss/vite';
|
|
@@ -23,6 +23,7 @@ import 'yargs';
|
|
|
23
23
|
import 'medium-zoom';
|
|
24
24
|
import '@vueuse/integrations/useFuse';
|
|
25
25
|
import 'vanilla-lazyload';
|
|
26
|
+
import '@unhead/schema-org';
|
|
26
27
|
|
|
27
28
|
declare module 'vite' {
|
|
28
29
|
interface UserConfig {
|
package/dist/node/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ViteSSGOptions } from 'vite-ssg';
|
|
|
2
2
|
export { cli, run } from './cli/index.js';
|
|
3
3
|
import * as vite from 'vite';
|
|
4
4
|
import { UserConfig, InlineConfig } from 'vite';
|
|
5
|
-
import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-
|
|
5
|
+
import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-a1820a44.js';
|
|
6
6
|
import Vue from '@vitejs/plugin-vue';
|
|
7
7
|
import Components from 'unplugin-vue-components/vite';
|
|
8
8
|
import { VitePluginConfig } from 'unocss/vite';
|
|
@@ -23,6 +23,7 @@ import 'yargs';
|
|
|
23
23
|
import 'medium-zoom';
|
|
24
24
|
import '@vueuse/integrations/useFuse';
|
|
25
25
|
import 'vanilla-lazyload';
|
|
26
|
+
import '@unhead/schema-org';
|
|
26
27
|
|
|
27
28
|
declare module 'vite' {
|
|
28
29
|
interface UserConfig {
|
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,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,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-G2HMAIG3.mjs";import"../chunk-GY4S4RDR.mjs";export{B as build,F as cli,E as createServer,t as defaultSiteConfig,u as defaultValaxyConfig,n as defineAddon,s as defineConfig,q as defineSiteConfig,p as defineTheme,v as defineUnoSetup,m as defineValaxyAddon,r as defineValaxyConfig,o as defineValaxyTheme,d as ensurePrefix,a as getGitTimestamp,A as getIndexHtml,b as isExternal,f as isPath,g as mergeValaxyConfig,z as mergeViteConfigs,D as postProcessForSSG,w as processValaxyOptions,j as resolveAddonConfig,l as resolveImportPath,x as resolveOptions,y as resolveThemeValaxyConfig,i as resolveValaxyConfig,h as resolveValaxyConfigFromRoot,G as run,c as slash,C as ssgBuild,e as toAtFS,k as transformObject};
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { b as Post } from '../config-
|
|
2
|
-
export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, h as Page, f as PageFrontMatter, P as PartialDeep, e as Photo, g as PostFrontMatter, R as RuntimeConfig, S as SiteConfig, c as SocialLink, U as UserSiteConfig, d as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-
|
|
1
|
+
import { b as Post } from '../config-a1820a44.js';
|
|
2
|
+
export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, h as Page, f as PageFrontMatter, P as PartialDeep, e as Photo, g as PostFrontMatter, R as RuntimeConfig, S as SiteConfig, c as SocialLink, U as UserSiteConfig, d as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-a1820a44.js';
|
|
3
3
|
import 'medium-zoom';
|
|
4
4
|
import '@vueuse/integrations/useFuse';
|
|
5
5
|
import 'vanilla-lazyload';
|
|
6
|
+
import '@unhead/schema-org';
|
|
6
7
|
|
|
7
8
|
type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
|
|
8
9
|
interface Header {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { b as Post } from '../config-
|
|
2
|
-
export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, h as Page, f as PageFrontMatter, P as PartialDeep, e as Photo, g as PostFrontMatter, R as RuntimeConfig, S as SiteConfig, c as SocialLink, U as UserSiteConfig, d as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-
|
|
1
|
+
import { b as Post } from '../config-a1820a44.js';
|
|
2
|
+
export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, h as Page, f as PageFrontMatter, P as PartialDeep, e as Photo, g as PostFrontMatter, R as RuntimeConfig, S as SiteConfig, c as SocialLink, U as UserSiteConfig, d as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-a1820a44.js';
|
|
3
3
|
import 'medium-zoom';
|
|
4
4
|
import '@vueuse/integrations/useFuse';
|
|
5
5
|
import 'vanilla-lazyload';
|
|
6
|
+
import '@unhead/schema-org';
|
|
6
7
|
|
|
7
8
|
type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
|
|
8
9
|
interface Header {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.14",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -56,14 +56,14 @@
|
|
|
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.
|
|
60
|
-
"@types/body-scroll-lock": "^3.1.
|
|
61
|
-
"@unhead/addons": "^1.8.
|
|
62
|
-
"@unhead/schema-org": "^1.8.
|
|
63
|
-
"@unhead/vue": "^1.8.
|
|
64
|
-
"@vitejs/plugin-vue": "^4.4.
|
|
65
|
-
"@vueuse/core": "^10.
|
|
66
|
-
"@vueuse/integrations": "^10.
|
|
59
|
+
"@intlify/unplugin-vue-i18n": "^1.5.0",
|
|
60
|
+
"@types/body-scroll-lock": "^3.1.2",
|
|
61
|
+
"@unhead/addons": "^1.8.3",
|
|
62
|
+
"@unhead/schema-org": "^1.8.3",
|
|
63
|
+
"@unhead/vue": "^1.8.3",
|
|
64
|
+
"@vitejs/plugin-vue": "^4.4.1",
|
|
65
|
+
"@vueuse/core": "^10.6.0",
|
|
66
|
+
"@vueuse/integrations": "^10.6.0",
|
|
67
67
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
68
68
|
"consola": "^3.2.3",
|
|
69
69
|
"critters": "^0.0.20",
|
|
@@ -76,15 +76,14 @@
|
|
|
76
76
|
"feed": "^4.2.2",
|
|
77
77
|
"fs-extra": "^11.1.1",
|
|
78
78
|
"fuse.js": "^6.6.2",
|
|
79
|
-
"global-dirs": "^3.0.1",
|
|
80
79
|
"gray-matter": "^4.0.3",
|
|
81
80
|
"hookable": "^5.5.3",
|
|
82
81
|
"html-to-text": "^9.0.5",
|
|
83
|
-
"is-installed-globally": "^0.
|
|
84
|
-
"jiti": "^1.
|
|
82
|
+
"is-installed-globally": "^1.0.0",
|
|
83
|
+
"jiti": "^1.21.0",
|
|
85
84
|
"katex": "^0.16.9",
|
|
86
85
|
"kolorist": "^1.8.0",
|
|
87
|
-
"lru-cache": "^10.0.
|
|
86
|
+
"lru-cache": "^10.0.2",
|
|
88
87
|
"markdown-it": "^13.0.2",
|
|
89
88
|
"markdown-it-anchor": "^8.6.7",
|
|
90
89
|
"markdown-it-attrs": "^4.1.6",
|
|
@@ -103,16 +102,16 @@
|
|
|
103
102
|
"shiki": "^0.14.5",
|
|
104
103
|
"star-markdown-css": "^0.4.2",
|
|
105
104
|
"unconfig": "^0.3.11",
|
|
106
|
-
"unocss": "^0.57.
|
|
105
|
+
"unocss": "^0.57.3",
|
|
107
106
|
"unplugin-vue-components": "^0.25.2",
|
|
108
107
|
"vanilla-lazyload": "^17.8.5",
|
|
109
108
|
"vite": "^4.5.0",
|
|
110
109
|
"vite-plugin-pages": "^0.31.0",
|
|
111
110
|
"vite-plugin-vue-layouts": "^0.8.0",
|
|
112
|
-
"vite-ssg": "0.23.
|
|
111
|
+
"vite-ssg": "0.23.5",
|
|
113
112
|
"vite-ssg-sitemap": "0.6.0",
|
|
114
|
-
"vue": "^3.3.
|
|
115
|
-
"vue-i18n": "^9.6.
|
|
113
|
+
"vue": "^3.3.8",
|
|
114
|
+
"vue-i18n": "^9.6.5",
|
|
116
115
|
"vue-router": "^4.2.5",
|
|
117
116
|
"yargs": "^17.7.2"
|
|
118
117
|
},
|
|
@@ -124,15 +123,15 @@
|
|
|
124
123
|
"@mdit-vue/plugin-title": "^1.0.0",
|
|
125
124
|
"@mdit-vue/plugin-toc": "^1.0.0",
|
|
126
125
|
"@mdit-vue/shared": "^1.0.0",
|
|
127
|
-
"@types/cross-spawn": "^6.0.
|
|
128
|
-
"@types/ejs": "^3.1.
|
|
129
|
-
"@types/html-to-text": "^9.0.
|
|
130
|
-
"@types/katex": "^0.16.
|
|
131
|
-
"@types/markdown-it": "^13.0.
|
|
132
|
-
"@types/nprogress": "^0.2.
|
|
133
|
-
"@types/pascalcase": "^1.0.
|
|
134
|
-
"@types/qrcode": "^1.5.
|
|
135
|
-
"@types/yargs": "^17.0.
|
|
126
|
+
"@types/cross-spawn": "^6.0.5",
|
|
127
|
+
"@types/ejs": "^3.1.5",
|
|
128
|
+
"@types/html-to-text": "^9.0.4",
|
|
129
|
+
"@types/katex": "^0.16.6",
|
|
130
|
+
"@types/markdown-it": "^13.0.6",
|
|
131
|
+
"@types/nprogress": "^0.2.3",
|
|
132
|
+
"@types/pascalcase": "^1.0.3",
|
|
133
|
+
"@types/qrcode": "^1.5.5",
|
|
134
|
+
"@types/yargs": "^17.0.31",
|
|
136
135
|
"debug": "^4.3.4",
|
|
137
136
|
"diacritics": "^1.3.0",
|
|
138
137
|
"https-localhost": "^4.7.1",
|
package/types/config.ts
CHANGED
|
@@ -307,6 +307,12 @@ export interface SiteConfig {
|
|
|
307
307
|
*/
|
|
308
308
|
// password: string
|
|
309
309
|
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @description:en-US Limit the height of the code block in px
|
|
313
|
+
* @description:zh-CN 限制代码块的高度,单位是 px
|
|
314
|
+
*/
|
|
315
|
+
codeHeightLimit?: number
|
|
310
316
|
}
|
|
311
317
|
|
|
312
318
|
export type PartialDeep<T> = {
|
package/types/posts.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ImageObject, NodeRelations } from '@unhead/schema-org'
|
|
2
|
+
|
|
1
3
|
export interface Album {
|
|
2
4
|
/**
|
|
3
5
|
* @description:en-US Album Link
|
|
@@ -71,6 +73,9 @@ export interface PageFrontMatter extends Record<string, any> {
|
|
|
71
73
|
*/
|
|
72
74
|
copyright: boolean
|
|
73
75
|
|
|
76
|
+
// schema
|
|
77
|
+
image: NodeRelations<ImageObject | string>
|
|
78
|
+
|
|
74
79
|
/**
|
|
75
80
|
* cover
|
|
76
81
|
* @description 封面图片
|
|
@@ -158,10 +163,19 @@ export interface PageFrontMatter extends Record<string, any> {
|
|
|
158
163
|
* @description:zh-CN 加密后的内容
|
|
159
164
|
*/
|
|
160
165
|
encryptedContent?: string
|
|
166
|
+
/**
|
|
167
|
+
* @description:zh-CN 部分加密的内容
|
|
168
|
+
*/
|
|
169
|
+
partiallyEncryptedContents?: string[]
|
|
161
170
|
/**
|
|
162
171
|
* @description:zh-CN 加密后的相册
|
|
163
172
|
*/
|
|
164
173
|
encryptedPhotos?: string
|
|
174
|
+
/**
|
|
175
|
+
* @description:en-US Limit the height of the code block in px
|
|
176
|
+
* @description:zh-CN 限制代码块的高度,单位是 px
|
|
177
|
+
*/
|
|
178
|
+
codeHeightLimit?: number
|
|
165
179
|
}
|
|
166
180
|
|
|
167
181
|
export interface PostFrontMatter extends PageFrontMatter {
|