valaxy 0.22.17 → 0.23.0
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/composables/app/useValaxyApp.ts +3 -3
- package/client/composables/common.ts +1 -1
- package/client/composables/outline/headers.ts +1 -1
- package/client/composables/search/useFuseSearch.ts +1 -1
- package/client/config.ts +3 -3
- package/client/modules/unhead.ts +13 -0
- package/client/setup/main.ts +2 -2
- package/client/styles/common/markdown.scss +2 -0
- package/dist/{chunk-AP7OY5ZQ.js → chunk-FKXWXNZE.js} +255 -225
- package/dist/{config-B2xuyo8_.d.ts → config-sM4p56qo.d.ts} +1 -1
- package/dist/node/cli/index.d.ts +2 -1
- package/dist/node/cli/index.js +1 -4
- package/dist/node/index.d.ts +12 -14
- package/dist/node/index.js +1 -4
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +0 -2
- package/package.json +33 -33
- package/client/modules/schemaOrg.ts +0 -23
- package/dist/chunk-5DSTD5D3.js +0 -19
- package/dist/chunk-J2BOKDJT.js +0 -428
- package/dist/node/worker_shikiResolveLang.d.ts +0 -6
- package/dist/node/worker_shikiResolveLang.js +0 -14
|
@@ -738,4 +738,4 @@ type UserSiteConfig = PartialDeep<SiteConfig>;
|
|
|
738
738
|
*/
|
|
739
739
|
type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
|
|
740
740
|
|
|
741
|
-
export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type
|
|
741
|
+
export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type RuntimeConfig as R, type SiteConfig as S, type UserSiteConfig as U, type ValaxyConfig as V, type ValaxyAddon as a, type RedirectItem as b, type PostFrontMatter as c, type PageFrontMatter as d, type SocialLink as e, type RedirectRule as f, type Pkg as g, type UserValaxyConfig as h, type Photo as i };
|
package/dist/node/cli/index.d.ts
CHANGED
package/dist/node/cli/index.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
1
|
import {
|
|
3
2
|
cli,
|
|
4
3
|
registerDevCommand,
|
|
5
4
|
run,
|
|
6
5
|
startValaxyDev
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-J2BOKDJT.js";
|
|
9
|
-
import "../../chunk-5DSTD5D3.js";
|
|
6
|
+
} from "../../chunk-FKXWXNZE.js";
|
|
10
7
|
export {
|
|
11
8
|
cli,
|
|
12
9
|
registerDevCommand,
|
package/dist/node/index.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import { ViteSSGOptions } from 'vite-ssg';
|
|
|
2
2
|
import * as vite from 'vite';
|
|
3
3
|
import { UserConfig, InlineConfig, PluginOption, Plugin } from 'vite';
|
|
4
4
|
import { MarkdownEnv } from 'unplugin-vue-markdown/types';
|
|
5
|
-
import
|
|
6
|
-
import { SiteConfig, DefaultTheme, ValaxyConfig, ValaxyAddon, PartialDeep, RuntimeConfig, RedirectItem, UserSiteConfig } from 'valaxy/types';
|
|
5
|
+
import { S as SiteConfig, D as DefaultTheme, V as ValaxyConfig, a as ValaxyAddon, P as PartialDeep, R as RuntimeConfig, b as RedirectItem, U as UserSiteConfig } from '../config-sM4p56qo.js';
|
|
7
6
|
import Vue from '@vitejs/plugin-vue';
|
|
8
|
-
import { Options as Options$
|
|
7
|
+
import { Options as Options$3 } from 'beasties';
|
|
9
8
|
import { Hookable } from 'hookable';
|
|
10
9
|
import { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
|
|
11
10
|
import { presetUno, presetAttributify, presetIcons, presetTypography } from 'unocss';
|
|
@@ -15,26 +14,25 @@ import Markdown from 'unplugin-vue-markdown/vite';
|
|
|
15
14
|
import { EditableTreeNode } from 'unplugin-vue-router';
|
|
16
15
|
import Router from 'unplugin-vue-router/vite';
|
|
17
16
|
import Layouts from 'vite-plugin-vue-layouts';
|
|
18
|
-
import { Options as Options$
|
|
17
|
+
import { Options as Options$2 } from 'vitepress-plugin-group-icons';
|
|
19
18
|
import { HeadersPluginOptions } from '@mdit-vue/plugin-headers';
|
|
20
19
|
import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';
|
|
21
20
|
import { TocPluginOptions } from '@mdit-vue/plugin-toc';
|
|
22
21
|
import { KatexOptions } from 'katex';
|
|
23
22
|
import MarkdownIt from 'markdown-it';
|
|
24
23
|
import anchorPlugin from 'markdown-it-anchor';
|
|
25
|
-
import { MarkdownItAsync } from 'markdown-it-async';
|
|
24
|
+
import { Options as Options$1, MarkdownItAsync } from 'markdown-it-async';
|
|
26
25
|
import { ThemeRegistration, BuiltinTheme, LanguageInput, ShikiTransformer, Highlighter } from 'shiki';
|
|
27
26
|
export { cli, registerDevCommand, run, startValaxyDev } from './cli/index.js';
|
|
28
27
|
import { Awaitable } from '@antfu/utils';
|
|
29
28
|
import * as defu from 'defu';
|
|
30
|
-
import { P as PartialDeep$1 } from '../config-B2xuyo8_.js';
|
|
31
|
-
import 'yargs';
|
|
32
29
|
import '@vueuse/integrations/useFuse';
|
|
33
30
|
import 'medium-zoom';
|
|
34
31
|
import 'vanilla-lazyload';
|
|
35
32
|
import 'vue-router';
|
|
36
33
|
import '@vueuse/core';
|
|
37
34
|
import '@unhead/schema-org';
|
|
35
|
+
import 'yargs';
|
|
38
36
|
|
|
39
37
|
declare module 'vite' {
|
|
40
38
|
interface UserConfig {
|
|
@@ -82,7 +80,7 @@ type ThemeOptions = ThemeRegistration | BuiltinTheme | {
|
|
|
82
80
|
* Extend Markdown options
|
|
83
81
|
* @zh 扩展 Markdown 配置,包含代码高亮、Markdown-it 和插件配置
|
|
84
82
|
*/
|
|
85
|
-
interface MarkdownOptions {
|
|
83
|
+
interface MarkdownOptions extends Options$1 {
|
|
86
84
|
/**
|
|
87
85
|
* Setup markdown-it instance before applying plugins
|
|
88
86
|
*/
|
|
@@ -311,7 +309,7 @@ interface ValaxyExtendConfig {
|
|
|
311
309
|
* @see https://github.com/btd/rollup-plugin-visualizer
|
|
312
310
|
*/
|
|
313
311
|
visualizer?: PluginVisualizerOptions;
|
|
314
|
-
groupIcons?: Partial<Options$
|
|
312
|
+
groupIcons?: Partial<Options$2>;
|
|
315
313
|
/**
|
|
316
314
|
* unocss presets
|
|
317
315
|
* @see https://unocss.dev/guide/presets
|
|
@@ -384,7 +382,7 @@ interface ValaxyExtendConfig {
|
|
|
384
382
|
* beastiesOptions
|
|
385
383
|
* @see https://github.com/danielroe/beasties
|
|
386
384
|
*/
|
|
387
|
-
beastiesOptions?: Options$
|
|
385
|
+
beastiesOptions?: Options$3;
|
|
388
386
|
}
|
|
389
387
|
type ValaxyAddonLike = ValaxyAddon | false | null | undefined;
|
|
390
388
|
type ValaxyAddons = (ValaxyAddon | string)[] | Record<string, ValaxyAddonLike>;
|
|
@@ -539,17 +537,17 @@ declare const defaultSiteConfig: SiteConfig;
|
|
|
539
537
|
* Type helper for site.config.ts
|
|
540
538
|
* @param config
|
|
541
539
|
*/
|
|
542
|
-
declare function defineSiteConfig(config: UserSiteConfig):
|
|
540
|
+
declare function defineSiteConfig(config: UserSiteConfig): PartialDeep<SiteConfig>;
|
|
543
541
|
/**
|
|
544
542
|
* resolve valaxy config from special root
|
|
545
543
|
*/
|
|
546
|
-
declare function resolveSiteConfigFromRoot(root: string): Promise<ResolvedConfig<
|
|
544
|
+
declare function resolveSiteConfigFromRoot(root: string): Promise<ResolvedConfig<PartialDeep<SiteConfig>>>;
|
|
547
545
|
/**
|
|
548
546
|
* resolve site.config.ts and merge with default
|
|
549
547
|
* @param root
|
|
550
548
|
*/
|
|
551
549
|
declare function resolveSiteConfig(root: string): Promise<{
|
|
552
|
-
siteConfig:
|
|
550
|
+
siteConfig: PartialDeep<SiteConfig>;
|
|
553
551
|
siteConfigFile: string;
|
|
554
552
|
}>;
|
|
555
553
|
|
|
@@ -576,7 +574,7 @@ declare const defaultValaxyConfig: ValaxyNodeConfig;
|
|
|
576
574
|
/**
|
|
577
575
|
* Type helper for valaxy.config.ts
|
|
578
576
|
*/
|
|
579
|
-
declare function defineValaxyConfig<ThemeConfig>(config: UserValaxyNodeConfig<ThemeConfig>): PartialDeep
|
|
577
|
+
declare function defineValaxyConfig<ThemeConfig>(config: UserValaxyNodeConfig<ThemeConfig>): PartialDeep<ValaxyNodeConfig<ThemeConfig>>;
|
|
580
578
|
declare const defineConfig: typeof defineValaxyConfig;
|
|
581
579
|
declare function resolveValaxyConfigFromRoot(root: string, options?: ResolvedValaxyOptions): Promise<ResolvedConfig<ValaxyNodeConfig>>;
|
|
582
580
|
/**
|
package/dist/node/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
1
|
import {
|
|
3
2
|
ALL_ROUTE,
|
|
4
3
|
EXCERPT_SEPARATOR,
|
|
@@ -51,9 +50,7 @@ import {
|
|
|
51
50
|
startValaxyDev,
|
|
52
51
|
toAtFS,
|
|
53
52
|
transformObject
|
|
54
|
-
} from "../chunk-
|
|
55
|
-
import "../chunk-J2BOKDJT.js";
|
|
56
|
-
import "../chunk-5DSTD5D3.js";
|
|
53
|
+
} from "../chunk-FKXWXNZE.js";
|
|
57
54
|
export {
|
|
58
55
|
ALL_ROUTE,
|
|
59
56
|
EXCERPT_SEPARATOR,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, P as PartialDeep, i as Photo,
|
|
1
|
+
import { c as PostFrontMatter, d as PageFrontMatter } from '../config-sM4p56qo.js';
|
|
2
|
+
export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, P as PartialDeep, i as Photo, g as Pkg, b as RedirectItem, f as RedirectRule, R as RuntimeConfig, S as SiteConfig, e as SocialLink, U as UserSiteConfig, h as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-sM4p56qo.js';
|
|
3
3
|
import { Header } from '@valaxyjs/utils';
|
|
4
4
|
import '@vueuse/integrations/useFuse';
|
|
5
5
|
import 'medium-zoom';
|
package/dist/types/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.23.0",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -53,21 +53,21 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@antfu/install-pkg": "^1.0.0",
|
|
56
|
-
"@antfu/utils": "^9.
|
|
57
|
-
"@clack/prompts": "^0.10.
|
|
56
|
+
"@antfu/utils": "^9.2.0",
|
|
57
|
+
"@clack/prompts": "^0.10.1",
|
|
58
58
|
"@iconify-json/ri": "^1.2.5",
|
|
59
59
|
"@intlify/unplugin-vue-i18n": "^6.0.5",
|
|
60
|
-
"@shikijs/transformers": "^3.2.
|
|
60
|
+
"@shikijs/transformers": "^3.2.2",
|
|
61
61
|
"@types/katex": "^0.16.7",
|
|
62
|
-
"@unhead/addons": "
|
|
63
|
-
"@unhead/schema-org": "
|
|
64
|
-
"@unhead/vue": "
|
|
62
|
+
"@unhead/addons": "^2.0.8",
|
|
63
|
+
"@unhead/schema-org": "^2.0.8",
|
|
64
|
+
"@unhead/vue": "^2.0.8",
|
|
65
65
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
66
|
-
"@vue/devtools-api": "
|
|
67
|
-
"@vueuse/core": "
|
|
68
|
-
"@vueuse/integrations": "
|
|
69
|
-
"beasties": "^0.2
|
|
70
|
-
"birpc": "^2.
|
|
66
|
+
"@vue/devtools-api": "7.7.2",
|
|
67
|
+
"@vueuse/core": "^13.1.0",
|
|
68
|
+
"@vueuse/integrations": "^13.1.0",
|
|
69
|
+
"beasties": "^0.3.2",
|
|
70
|
+
"birpc": "^2.3.0",
|
|
71
71
|
"consola": "^3.4.2",
|
|
72
72
|
"cross-spawn": "^7.0.6",
|
|
73
73
|
"css-i18n": "^0.0.5",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"jiti": "^2.4.2",
|
|
88
88
|
"js-base64": "^3.7.7",
|
|
89
89
|
"js-yaml": "^4.1.0",
|
|
90
|
-
"katex": "^0.16.
|
|
90
|
+
"katex": "^0.16.22",
|
|
91
91
|
"lru-cache": "^11.1.0",
|
|
92
92
|
"markdown-it": "^14.1.0",
|
|
93
93
|
"markdown-it-anchor": "^9.2.0",
|
|
@@ -100,48 +100,48 @@
|
|
|
100
100
|
"markdown-it-table-of-contents": "^0.9.0",
|
|
101
101
|
"markdown-it-task-lists": "^2.1.1",
|
|
102
102
|
"medium-zoom": "^1.1.0",
|
|
103
|
-
"mermaid": "^11.
|
|
103
|
+
"mermaid": "^11.6.0",
|
|
104
104
|
"mlly": "^1.7.4",
|
|
105
105
|
"nprogress": "^0.2.0",
|
|
106
106
|
"open": "10.1.0",
|
|
107
107
|
"ora": "^8.2.0",
|
|
108
108
|
"pascalcase": "^2.0.0",
|
|
109
109
|
"pathe": "^2.0.3",
|
|
110
|
-
"pinia": "^3.0.
|
|
110
|
+
"pinia": "^3.0.2",
|
|
111
111
|
"qrcode": "^1.5.4",
|
|
112
112
|
"resolve-global": "^2.0.0",
|
|
113
|
-
"sass": "^1.86.
|
|
114
|
-
"shiki": "^3.2.
|
|
113
|
+
"sass": "^1.86.3",
|
|
114
|
+
"shiki": "^3.2.2",
|
|
115
115
|
"star-markdown-css": "^0.5.3",
|
|
116
116
|
"table": "^6.9.0",
|
|
117
|
-
"unhead": "
|
|
118
|
-
"unocss": "^66.0.
|
|
117
|
+
"unhead": "^2.0.8",
|
|
118
|
+
"unocss": "^66.1.0-beta.11",
|
|
119
119
|
"unplugin-vue-components": "28.0.0",
|
|
120
120
|
"unplugin-vue-markdown": "^28.3.1",
|
|
121
121
|
"unplugin-vue-router": "^0.12.0",
|
|
122
122
|
"vanilla-lazyload": "^19.1.3",
|
|
123
|
-
"vite": "^6.
|
|
123
|
+
"vite": "^6.3.1",
|
|
124
124
|
"vite-dev-rpc": "^1.0.7",
|
|
125
|
-
"vite-plugin-vue-devtools": "^7.7.
|
|
125
|
+
"vite-plugin-vue-devtools": "^7.7.5",
|
|
126
126
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
127
|
-
"vite-ssg": "^
|
|
127
|
+
"vite-ssg": "^26.1.1",
|
|
128
128
|
"vite-ssg-sitemap": "^0.8.1",
|
|
129
|
-
"vitepress-plugin-group-icons": "^1.
|
|
129
|
+
"vitepress-plugin-group-icons": "^1.5.2",
|
|
130
130
|
"vue": "^3.5.13",
|
|
131
|
-
"vue-i18n": "^11.1.
|
|
131
|
+
"vue-i18n": "^11.1.3",
|
|
132
132
|
"vue-router": "^4.5.0",
|
|
133
133
|
"yargs": "^17.7.2",
|
|
134
|
-
"@valaxyjs/devtools": "0.
|
|
135
|
-
"@valaxyjs/utils": "0.
|
|
134
|
+
"@valaxyjs/devtools": "0.23.0",
|
|
135
|
+
"@valaxyjs/utils": "0.23.0"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
|
-
"@mdit-vue/plugin-component": "^2.1.
|
|
139
|
-
"@mdit-vue/plugin-frontmatter": "^2.1.
|
|
140
|
-
"@mdit-vue/plugin-headers": "^2.1.
|
|
141
|
-
"@mdit-vue/plugin-sfc": "^2.1.
|
|
142
|
-
"@mdit-vue/plugin-title": "^2.1.
|
|
143
|
-
"@mdit-vue/plugin-toc": "^2.1.
|
|
144
|
-
"@mdit-vue/shared": "^2.1.
|
|
138
|
+
"@mdit-vue/plugin-component": "^2.1.4",
|
|
139
|
+
"@mdit-vue/plugin-frontmatter": "^2.1.4",
|
|
140
|
+
"@mdit-vue/plugin-headers": "^2.1.4",
|
|
141
|
+
"@mdit-vue/plugin-sfc": "^2.1.4",
|
|
142
|
+
"@mdit-vue/plugin-title": "^2.1.4",
|
|
143
|
+
"@mdit-vue/plugin-toc": "^2.1.4",
|
|
144
|
+
"@mdit-vue/shared": "^2.1.4",
|
|
145
145
|
"@types/cross-spawn": "^6.0.6",
|
|
146
146
|
"@types/ejs": "^3.1.5",
|
|
147
147
|
"@types/gh-pages": "^6.1.0",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { UserModule } from '../types'
|
|
2
|
-
import { initValaxyConfig } from 'valaxy'
|
|
3
|
-
|
|
4
|
-
// https://unhead-schema-org.harlanzw.com/
|
|
5
|
-
export const install: UserModule = async ({ head, isClient, router }) => {
|
|
6
|
-
// Disables on client build, allows 0kb runtime
|
|
7
|
-
if (isClient && import.meta.env.PROD)
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
const valaxyConfig = initValaxyConfig()
|
|
11
|
-
|
|
12
|
-
const { SchemaOrgUnheadPlugin } = await import('@unhead/schema-org')
|
|
13
|
-
head?.use(SchemaOrgUnheadPlugin({
|
|
14
|
-
// config
|
|
15
|
-
host: valaxyConfig.value.siteConfig.url || 'https://valaxy.site',
|
|
16
|
-
inLanguage: valaxyConfig.value.siteConfig.lang || 'en',
|
|
17
|
-
}, () => {
|
|
18
|
-
return {
|
|
19
|
-
path: router.currentRoute.value.path,
|
|
20
|
-
...router.currentRoute.value.meta,
|
|
21
|
-
}
|
|
22
|
-
}))
|
|
23
|
-
}
|
package/dist/chunk-5DSTD5D3.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
3
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
|
-
}) : x)(function(x) {
|
|
5
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.52.1_@types+node@22.13.13__jiti@2.4.2_postcss@8.5_8876073212605cc840ddb183696fdfcb/node_modules/tsup/assets/esm_shims.js
|
|
10
|
-
import { fileURLToPath } from "url";
|
|
11
|
-
import path from "path";
|
|
12
|
-
var getFilename = () => fileURLToPath(import.meta.url);
|
|
13
|
-
var getDirname = () => path.dirname(getFilename());
|
|
14
|
-
var __dirname = /* @__PURE__ */ getDirname();
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
__require,
|
|
18
|
-
__dirname
|
|
19
|
-
};
|