valaxy 0.15.11 → 0.15.13
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/dark.ts +2 -0
- 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/common/transition.scss +0 -22
- package/client/styles/common/view-transition.css +21 -0
- package/client/styles/css-vars.scss +1 -0
- package/dist/chunk-NGNRXFVT.mjs +133 -0
- package/dist/chunk-QEB6E2RZ.cjs +132 -0
- package/dist/{config-e5704a2c.d.ts → config-21f067f9.d.ts} +24 -2
- 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 -2
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +3 -4
- package/dist/types/index.d.ts +3 -4
- package/dist/types/index.mjs +1 -1
- package/package.json +5 -6
- package/types/config.ts +9 -1
- package/types/{default-theme.d.ts → default-theme.ts} +2 -1
- package/types/index.ts +2 -1
- package/types/posts.ts +10 -0
- package/dist/chunk-3EJGKTUH.mjs +0 -130
- package/dist/chunk-RDNVTVQ5.cjs +0 -129
|
@@ -1,7 +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
|
|
4
|
+
import { NodeRelations, ImageObject } from '@unhead/schema-org';
|
|
5
5
|
|
|
6
6
|
interface ValaxyAddon<AddonOptions = Record<string, any>> {
|
|
7
7
|
name: string;
|
|
@@ -13,6 +13,17 @@ interface ValaxyAddon<AddonOptions = Record<string, any>> {
|
|
|
13
13
|
options?: AddonOptions;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
declare namespace DefaultTheme {
|
|
17
|
+
interface Config {
|
|
18
|
+
/**
|
|
19
|
+
* Custom header levels of outline in the aside component.
|
|
20
|
+
*
|
|
21
|
+
* @default 2
|
|
22
|
+
*/
|
|
23
|
+
outline?: number | [number, number] | 'deep' | false;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
16
27
|
interface Album {
|
|
17
28
|
/**
|
|
18
29
|
* @description:en-US Album Link
|
|
@@ -80,6 +91,7 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
80
91
|
* @description 是否显示文章底部版权信息
|
|
81
92
|
*/
|
|
82
93
|
copyright: boolean;
|
|
94
|
+
image: NodeRelations<ImageObject | string>;
|
|
83
95
|
/**
|
|
84
96
|
* cover
|
|
85
97
|
* @description 封面图片
|
|
@@ -164,6 +176,11 @@ interface PageFrontMatter extends Record<string, any> {
|
|
|
164
176
|
* @description:zh-CN 加密后的相册
|
|
165
177
|
*/
|
|
166
178
|
encryptedPhotos?: string;
|
|
179
|
+
/**
|
|
180
|
+
* @description:en-US Limit the height of the code block in px
|
|
181
|
+
* @description:zh-CN 限制代码块的高度,单位是 px
|
|
182
|
+
*/
|
|
183
|
+
codeHeightLimit?: number;
|
|
167
184
|
}
|
|
168
185
|
interface PostFrontMatter extends PageFrontMatter {
|
|
169
186
|
/**
|
|
@@ -518,6 +535,11 @@ interface SiteConfig {
|
|
|
518
535
|
iv: Uint8Array;
|
|
519
536
|
salt: Uint8Array;
|
|
520
537
|
};
|
|
538
|
+
/**
|
|
539
|
+
* @description:en-US Limit the height of the code block in px
|
|
540
|
+
* @description:zh-CN 限制代码块的高度,单位是 px
|
|
541
|
+
*/
|
|
542
|
+
codeHeightLimit?: number;
|
|
521
543
|
}
|
|
522
544
|
type PartialDeep<T> = {
|
|
523
545
|
[P in keyof T]?: T[P] extends object ? PartialDeep<T[P]> : T[P];
|
|
@@ -568,4 +590,4 @@ type UserSiteConfig = PartialDeep<SiteConfig>;
|
|
|
568
590
|
*/
|
|
569
591
|
type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
|
|
570
592
|
|
|
571
|
-
export { Album as A, ExcerptType as E, FuseListItem as F, PartialDeep as P, RuntimeConfig as R, SiteConfig as S, UserSiteConfig as U, ValaxyConfig as V, ValaxyAddon as a, Post as b, SocialLink as c, UserValaxyConfig as d, Photo as e, PageFrontMatter as f, PostFrontMatter as g, Page as h };
|
|
593
|
+
export { Album as A, DefaultTheme as D, ExcerptType as E, FuseListItem as F, PartialDeep as P, RuntimeConfig as R, SiteConfig as S, UserSiteConfig as U, ValaxyConfig as V, ValaxyAddon as a, Post as b, SocialLink as c, UserValaxyConfig as d, Photo as e, PageFrontMatter as f, PostFrontMatter as g, Page as h };
|
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 _chunkQEB6E2RZcjs = require('../../chunk-QEB6E2RZ.cjs');require('../../chunk-YDNPXS5U.cjs');exports.cli = _chunkQEB6E2RZcjs.F; exports.run = _chunkQEB6E2RZcjs.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-NGNRXFVT.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 _chunkQEB6E2RZcjs = require('../chunk-QEB6E2RZ.cjs');require('../chunk-YDNPXS5U.cjs');exports.build = _chunkQEB6E2RZcjs.B; exports.cli = _chunkQEB6E2RZcjs.F; exports.createServer = _chunkQEB6E2RZcjs.E; exports.defaultSiteConfig = _chunkQEB6E2RZcjs.t; exports.defaultValaxyConfig = _chunkQEB6E2RZcjs.u; exports.defineAddon = _chunkQEB6E2RZcjs.n; exports.defineConfig = _chunkQEB6E2RZcjs.s; exports.defineSiteConfig = _chunkQEB6E2RZcjs.q; exports.defineTheme = _chunkQEB6E2RZcjs.p; exports.defineUnoSetup = _chunkQEB6E2RZcjs.v; exports.defineValaxyAddon = _chunkQEB6E2RZcjs.m; exports.defineValaxyConfig = _chunkQEB6E2RZcjs.r; exports.defineValaxyTheme = _chunkQEB6E2RZcjs.o; exports.ensurePrefix = _chunkQEB6E2RZcjs.d; exports.getGitTimestamp = _chunkQEB6E2RZcjs.a; exports.getIndexHtml = _chunkQEB6E2RZcjs.A; exports.isExternal = _chunkQEB6E2RZcjs.b; exports.isPath = _chunkQEB6E2RZcjs.f; exports.mergeValaxyConfig = _chunkQEB6E2RZcjs.g; exports.mergeViteConfigs = _chunkQEB6E2RZcjs.z; exports.postProcessForSSG = _chunkQEB6E2RZcjs.D; exports.processValaxyOptions = _chunkQEB6E2RZcjs.w; exports.resolveAddonConfig = _chunkQEB6E2RZcjs.j; exports.resolveImportPath = _chunkQEB6E2RZcjs.l; exports.resolveOptions = _chunkQEB6E2RZcjs.x; exports.resolveThemeValaxyConfig = _chunkQEB6E2RZcjs.y; exports.resolveValaxyConfig = _chunkQEB6E2RZcjs.i; exports.resolveValaxyConfigFromRoot = _chunkQEB6E2RZcjs.h; exports.run = _chunkQEB6E2RZcjs.G; exports.slash = _chunkQEB6E2RZcjs.c; exports.ssgBuild = _chunkQEB6E2RZcjs.C; exports.toAtFS = _chunkQEB6E2RZcjs.e; exports.transformObject = _chunkQEB6E2RZcjs.k;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -2,8 +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 { V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-
|
|
6
|
-
import * as DefaultTheme from 'valaxy/default-theme';
|
|
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-21f067f9.js';
|
|
7
6
|
import Vue from '@vitejs/plugin-vue';
|
|
8
7
|
import Components from 'unplugin-vue-components/vite';
|
|
9
8
|
import { VitePluginConfig } from 'unocss/vite';
|
|
@@ -24,6 +23,7 @@ import 'yargs';
|
|
|
24
23
|
import 'medium-zoom';
|
|
25
24
|
import '@vueuse/integrations/useFuse';
|
|
26
25
|
import 'vanilla-lazyload';
|
|
26
|
+
import '@unhead/schema-org';
|
|
27
27
|
|
|
28
28
|
declare module 'vite' {
|
|
29
29
|
interface UserConfig {
|
package/dist/node/index.d.ts
CHANGED
|
@@ -2,8 +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 { V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-
|
|
6
|
-
import * as DefaultTheme from 'valaxy/default-theme';
|
|
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-21f067f9.js';
|
|
7
6
|
import Vue from '@vitejs/plugin-vue';
|
|
8
7
|
import Components from 'unplugin-vue-components/vite';
|
|
9
8
|
import { VitePluginConfig } from 'unocss/vite';
|
|
@@ -24,6 +23,7 @@ import 'yargs';
|
|
|
24
23
|
import 'medium-zoom';
|
|
25
24
|
import '@vueuse/integrations/useFuse';
|
|
26
25
|
import 'vanilla-lazyload';
|
|
26
|
+
import '@unhead/schema-org';
|
|
27
27
|
|
|
28
28
|
declare module 'vite' {
|
|
29
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-NGNRXFVT.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.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var _chunkYDNPXS5Ucjs = require('../chunk-YDNPXS5U.cjs');_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );
|
|
1
|
+
"use strict";var _chunkYDNPXS5Ucjs = require('../chunk-YDNPXS5U.cjs');_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );_chunkYDNPXS5Ucjs.d.call(void 0, );
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { b as Post } from '../config-
|
|
2
|
-
export { A as Album, 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-
|
|
3
|
-
import * as DefaultTheme from 'valaxy/default-theme';
|
|
4
|
-
export { DefaultTheme };
|
|
1
|
+
import { b as Post } from '../config-21f067f9.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-21f067f9.js';
|
|
5
3
|
import 'medium-zoom';
|
|
6
4
|
import '@vueuse/integrations/useFuse';
|
|
7
5
|
import 'vanilla-lazyload';
|
|
6
|
+
import '@unhead/schema-org';
|
|
8
7
|
|
|
9
8
|
type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
|
|
10
9
|
interface Header {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { b as Post } from '../config-
|
|
2
|
-
export { A as Album, 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-
|
|
3
|
-
import * as DefaultTheme from 'valaxy/default-theme';
|
|
4
|
-
export { DefaultTheme };
|
|
1
|
+
import { b as Post } from '../config-21f067f9.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-21f067f9.js';
|
|
5
3
|
import 'medium-zoom';
|
|
6
4
|
import '@vueuse/integrations/useFuse';
|
|
7
5
|
import 'vanilla-lazyload';
|
|
6
|
+
import '@unhead/schema-org';
|
|
8
7
|
|
|
9
8
|
type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
|
|
10
9
|
interface Header {
|
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{e
|
|
2
|
+
import{e}from"../chunk-GY4S4RDR.mjs";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.15.
|
|
4
|
+
"version": "0.15.13",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"require": "./dist/node/index.cjs"
|
|
31
31
|
},
|
|
32
32
|
"./types": "./dist/types/index.d.ts",
|
|
33
|
-
"./default-theme": "./types/default-theme.d.ts",
|
|
34
33
|
"./*": "./*"
|
|
35
34
|
},
|
|
36
35
|
"main": "dist/node/index.cjs",
|
|
@@ -59,9 +58,9 @@
|
|
|
59
58
|
"@iconify-json/ri": "^1.1.12",
|
|
60
59
|
"@intlify/unplugin-vue-i18n": "^1.4.0",
|
|
61
60
|
"@types/body-scroll-lock": "^3.1.1",
|
|
62
|
-
"@unhead/addons": "^1.8.
|
|
63
|
-
"@unhead/schema-org": "^1.8.
|
|
64
|
-
"@unhead/vue": "^1.8.
|
|
61
|
+
"@unhead/addons": "^1.8.1",
|
|
62
|
+
"@unhead/schema-org": "^1.8.1",
|
|
63
|
+
"@unhead/vue": "^1.8.1",
|
|
65
64
|
"@vitejs/plugin-vue": "^4.4.0",
|
|
66
65
|
"@vueuse/core": "^10.5.0",
|
|
67
66
|
"@vueuse/integrations": "^10.5.0",
|
|
@@ -113,7 +112,7 @@
|
|
|
113
112
|
"vite-ssg": "0.23.4",
|
|
114
113
|
"vite-ssg-sitemap": "0.6.0",
|
|
115
114
|
"vue": "^3.3.7",
|
|
116
|
-
"vue-i18n": "^9.6.
|
|
115
|
+
"vue-i18n": "^9.6.2",
|
|
117
116
|
"vue-router": "^4.2.5",
|
|
118
117
|
"yargs": "^17.7.2"
|
|
119
118
|
},
|
package/types/config.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { ZoomOptions } from 'medium-zoom'
|
|
2
2
|
import type { FuseOptions } from '@vueuse/integrations/useFuse'
|
|
3
3
|
import type { ILazyLoadOptions } from 'vanilla-lazyload'
|
|
4
|
-
import type * as DefaultTheme from 'valaxy/default-theme'
|
|
5
4
|
import type { ValaxyAddon } from '../types'
|
|
5
|
+
import type { DefaultTheme } from './default-theme'
|
|
6
6
|
import type { PostFrontMatter } from './posts'
|
|
7
7
|
import type { FuseListItem } from './node'
|
|
8
8
|
|
|
9
|
+
import './default-theme'
|
|
10
|
+
|
|
9
11
|
export interface SocialLink {
|
|
10
12
|
/**
|
|
11
13
|
* The title of your link
|
|
@@ -305,6 +307,12 @@ export interface SiteConfig {
|
|
|
305
307
|
*/
|
|
306
308
|
// password: string
|
|
307
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
|
|
308
316
|
}
|
|
309
317
|
|
|
310
318
|
export type PartialDeep<T> = {
|
package/types/index.ts
CHANGED
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 封面图片
|
|
@@ -162,6 +167,11 @@ export interface PageFrontMatter extends Record<string, any> {
|
|
|
162
167
|
* @description:zh-CN 加密后的相册
|
|
163
168
|
*/
|
|
164
169
|
encryptedPhotos?: string
|
|
170
|
+
/**
|
|
171
|
+
* @description:en-US Limit the height of the code block in px
|
|
172
|
+
* @description:zh-CN 限制代码块的高度,单位是 px
|
|
173
|
+
*/
|
|
174
|
+
codeHeightLimit?: number
|
|
165
175
|
}
|
|
166
176
|
|
|
167
177
|
export interface PostFrontMatter extends PageFrontMatter {
|