valaxy 0.16.4 → 0.17.0-beta.2
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/post.ts +2 -2
- package/client/{template.html → index.html} +1 -1
- package/client/layouts/README.md +1 -1
- package/client/layouts/default.vue +1 -1
- package/client/layouts/post.vue +1 -1
- package/client/main.ts +15 -8
- package/client/modules/devtools.ts +60 -0
- package/client/modules/valaxy.ts +1 -1
- package/client/setup/main.ts +6 -0
- package/client/styles/palette.scss +0 -1
- package/dist/chunk-HGZDC6BW.cjs +149 -0
- package/dist/chunk-RC63JCY7.mjs +150 -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 +10 -11
- package/dist/node/index.d.ts +10 -11
- package/dist/node/index.mjs +1 -1
- package/package.json +7 -5
- package/client/layouts/layout.vue +0 -39
- package/dist/chunk-262FIKDL.cjs +0 -146
- package/dist/chunk-XWKIRAYV.mjs +0 -147
- /package/client/pages/{[...all].vue → [...path].vue} +0 -0
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 _chunkHGZDC6BWcjs = require('../../chunk-HGZDC6BW.cjs');require('../../chunk-GXMNHGBP.cjs');exports.cli = _chunkHGZDC6BWcjs.G; exports.run = _chunkHGZDC6BWcjs.H;
|
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{G as a,H as b}from"../../chunk-
|
|
2
|
+
import{G as a,H as b}from"../../chunk-RC63JCY7.mjs";import"../../chunk-WSC7UAH5.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 _chunkHGZDC6BWcjs = require('../chunk-HGZDC6BW.cjs');require('../chunk-GXMNHGBP.cjs');exports.build = _chunkHGZDC6BWcjs.B; exports.cli = _chunkHGZDC6BWcjs.G; exports.createServer = _chunkHGZDC6BWcjs.F; exports.defaultSiteConfig = _chunkHGZDC6BWcjs.t; exports.defaultValaxyConfig = _chunkHGZDC6BWcjs.u; exports.defineAddon = _chunkHGZDC6BWcjs.n; exports.defineConfig = _chunkHGZDC6BWcjs.s; exports.defineSiteConfig = _chunkHGZDC6BWcjs.q; exports.defineTheme = _chunkHGZDC6BWcjs.p; exports.defineUnoSetup = _chunkHGZDC6BWcjs.v; exports.defineValaxyAddon = _chunkHGZDC6BWcjs.m; exports.defineValaxyConfig = _chunkHGZDC6BWcjs.r; exports.defineValaxyTheme = _chunkHGZDC6BWcjs.o; exports.ensurePrefix = _chunkHGZDC6BWcjs.d; exports.generateClientRedirects = _chunkHGZDC6BWcjs.E; exports.getGitTimestamp = _chunkHGZDC6BWcjs.a; exports.getIndexHtml = _chunkHGZDC6BWcjs.A; exports.isExternal = _chunkHGZDC6BWcjs.b; exports.isPath = _chunkHGZDC6BWcjs.f; exports.mergeValaxyConfig = _chunkHGZDC6BWcjs.g; exports.mergeViteConfigs = _chunkHGZDC6BWcjs.z; exports.postProcessForSSG = _chunkHGZDC6BWcjs.D; exports.processValaxyOptions = _chunkHGZDC6BWcjs.w; exports.resolveAddonConfig = _chunkHGZDC6BWcjs.j; exports.resolveImportPath = _chunkHGZDC6BWcjs.l; exports.resolveOptions = _chunkHGZDC6BWcjs.x; exports.resolveThemeValaxyConfig = _chunkHGZDC6BWcjs.y; exports.resolveValaxyConfig = _chunkHGZDC6BWcjs.i; exports.resolveValaxyConfigFromRoot = _chunkHGZDC6BWcjs.h; exports.run = _chunkHGZDC6BWcjs.H; exports.slash = _chunkHGZDC6BWcjs.c; exports.ssgBuild = _chunkHGZDC6BWcjs.C; exports.toAtFS = _chunkHGZDC6BWcjs.e; exports.transformObject = _chunkHGZDC6BWcjs.k;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -6,7 +6,8 @@ import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddo
|
|
|
6
6
|
import Vue from '@vitejs/plugin-vue';
|
|
7
7
|
import Components from 'unplugin-vue-components/vite';
|
|
8
8
|
import { VitePluginConfig } from 'unocss/vite';
|
|
9
|
-
import
|
|
9
|
+
import VueRouter from 'unplugin-vue-router/vite';
|
|
10
|
+
import { EditableTreeNode } from 'unplugin-vue-router';
|
|
10
11
|
import { presetUno, presetAttributify, presetIcons, presetTypography } from 'unocss';
|
|
11
12
|
import { Hookable } from 'hookable';
|
|
12
13
|
import MarkdownIt from 'markdown-it';
|
|
@@ -165,20 +166,18 @@ interface ValaxyExtendConfig {
|
|
|
165
166
|
icons?: Parameters<typeof presetIcons>[0];
|
|
166
167
|
typography?: Parameters<typeof presetTypography>[0];
|
|
167
168
|
};
|
|
168
|
-
|
|
169
|
+
vueRouter?: Parameters<typeof VueRouter>[0];
|
|
170
|
+
/**
|
|
171
|
+
* @experimental
|
|
172
|
+
* Enable Vue Devtools & Valaxy Devtools
|
|
173
|
+
*/
|
|
174
|
+
devtools?: boolean;
|
|
169
175
|
/**
|
|
170
176
|
* for markdown
|
|
171
177
|
*/
|
|
172
178
|
markdown?: MarkdownOptions;
|
|
173
179
|
extendMd?: (ctx: {
|
|
174
|
-
route:
|
|
175
|
-
meta: {
|
|
176
|
-
frontmatter: Record<string, any>;
|
|
177
|
-
layout?: string;
|
|
178
|
-
} & object;
|
|
179
|
-
path: string;
|
|
180
|
-
component: string;
|
|
181
|
-
};
|
|
180
|
+
route: EditableTreeNode;
|
|
182
181
|
data: Readonly<Record<string, any>>;
|
|
183
182
|
content: string;
|
|
184
183
|
excerpt?: string;
|
|
@@ -286,7 +285,7 @@ declare function mergeViteConfigs({ userRoot, themeRoot }: ResolvedValaxyOptions
|
|
|
286
285
|
* generate index.html from user/theme/client
|
|
287
286
|
* @internal
|
|
288
287
|
*/
|
|
289
|
-
declare function getIndexHtml({ clientRoot, themeRoot, userRoot, config }: ResolvedValaxyOptions): Promise<string>;
|
|
288
|
+
declare function getIndexHtml({ clientRoot, themeRoot, userRoot, config }: ResolvedValaxyOptions, rawHtml: string): Promise<string>;
|
|
290
289
|
|
|
291
290
|
declare function build(options: ResolvedValaxyOptions, viteConfig?: InlineConfig): Promise<void>;
|
|
292
291
|
declare function ssgBuild(options: ResolvedValaxyOptions, viteConfig?: InlineConfig): Promise<void>;
|
package/dist/node/index.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ import { D as DefaultTheme, V as ValaxyConfig, P as PartialDeep, a as ValaxyAddo
|
|
|
6
6
|
import Vue from '@vitejs/plugin-vue';
|
|
7
7
|
import Components from 'unplugin-vue-components/vite';
|
|
8
8
|
import { VitePluginConfig } from 'unocss/vite';
|
|
9
|
-
import
|
|
9
|
+
import VueRouter from 'unplugin-vue-router/vite';
|
|
10
|
+
import { EditableTreeNode } from 'unplugin-vue-router';
|
|
10
11
|
import { presetUno, presetAttributify, presetIcons, presetTypography } from 'unocss';
|
|
11
12
|
import { Hookable } from 'hookable';
|
|
12
13
|
import MarkdownIt from 'markdown-it';
|
|
@@ -165,20 +166,18 @@ interface ValaxyExtendConfig {
|
|
|
165
166
|
icons?: Parameters<typeof presetIcons>[0];
|
|
166
167
|
typography?: Parameters<typeof presetTypography>[0];
|
|
167
168
|
};
|
|
168
|
-
|
|
169
|
+
vueRouter?: Parameters<typeof VueRouter>[0];
|
|
170
|
+
/**
|
|
171
|
+
* @experimental
|
|
172
|
+
* Enable Vue Devtools & Valaxy Devtools
|
|
173
|
+
*/
|
|
174
|
+
devtools?: boolean;
|
|
169
175
|
/**
|
|
170
176
|
* for markdown
|
|
171
177
|
*/
|
|
172
178
|
markdown?: MarkdownOptions;
|
|
173
179
|
extendMd?: (ctx: {
|
|
174
|
-
route:
|
|
175
|
-
meta: {
|
|
176
|
-
frontmatter: Record<string, any>;
|
|
177
|
-
layout?: string;
|
|
178
|
-
} & object;
|
|
179
|
-
path: string;
|
|
180
|
-
component: string;
|
|
181
|
-
};
|
|
180
|
+
route: EditableTreeNode;
|
|
182
181
|
data: Readonly<Record<string, any>>;
|
|
183
182
|
content: string;
|
|
184
183
|
excerpt?: string;
|
|
@@ -286,7 +285,7 @@ declare function mergeViteConfigs({ userRoot, themeRoot }: ResolvedValaxyOptions
|
|
|
286
285
|
* generate index.html from user/theme/client
|
|
287
286
|
* @internal
|
|
288
287
|
*/
|
|
289
|
-
declare function getIndexHtml({ clientRoot, themeRoot, userRoot, config }: ResolvedValaxyOptions): Promise<string>;
|
|
288
|
+
declare function getIndexHtml({ clientRoot, themeRoot, userRoot, config }: ResolvedValaxyOptions, rawHtml: string): Promise<string>;
|
|
290
289
|
|
|
291
290
|
declare function build(options: ResolvedValaxyOptions, viteConfig?: InlineConfig): Promise<void>;
|
|
292
291
|
declare function ssgBuild(options: ResolvedValaxyOptions, viteConfig?: InlineConfig): Promise<void>;
|
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,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,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-RC63JCY7.mjs";import"../chunk-WSC7UAH5.mjs";export{B as build,G as cli,F 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,E as generateClientRedirects,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,H as run,c as slash,C as ssgBuild,e as toAtFS,k as transformObject};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.17.0-beta.2",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"./types": "./dist/types/index.d.ts",
|
|
36
36
|
"./*": "./*"
|
|
37
37
|
},
|
|
38
|
-
"main": "dist/node/index.
|
|
38
|
+
"main": "dist/node/index.mjs",
|
|
39
39
|
"module": "dist/node/index.mjs",
|
|
40
40
|
"types": "index.d.ts",
|
|
41
41
|
"bin": {
|
|
@@ -66,8 +66,9 @@
|
|
|
66
66
|
"@unhead/schema-org": "^1.8.9",
|
|
67
67
|
"@unhead/vue": "^1.8.9",
|
|
68
68
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
69
|
-
"@
|
|
70
|
-
"@vueuse/
|
|
69
|
+
"@vue/devtools-api": "^7.0.10",
|
|
70
|
+
"@vueuse/core": "^10.7.2",
|
|
71
|
+
"@vueuse/integrations": "^10.7.2",
|
|
71
72
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
72
73
|
"consola": "^3.2.3",
|
|
73
74
|
"critters": "^0.0.20",
|
|
@@ -108,9 +109,10 @@
|
|
|
108
109
|
"unconfig": "^0.3.11",
|
|
109
110
|
"unocss": "^0.58.3",
|
|
110
111
|
"unplugin-vue-components": "^0.26.0",
|
|
112
|
+
"unplugin-vue-router": "^0.7.0",
|
|
111
113
|
"vanilla-lazyload": "^17.8.5",
|
|
112
114
|
"vite": "^5.0.11",
|
|
113
|
-
"vite-plugin-
|
|
115
|
+
"vite-plugin-vue-devtools": "^7.0.10",
|
|
114
116
|
"vite-plugin-vue-layouts": "0.11.0",
|
|
115
117
|
"vite-ssg": "0.23.6",
|
|
116
118
|
"vite-ssg-sitemap": "0.6.1",
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
// (Component as any) will crush page rendering
|
|
3
|
-
import { asAny } from 'valaxy'
|
|
4
|
-
</script>
|
|
5
|
-
|
|
6
|
-
<template>
|
|
7
|
-
<RouterView v-slot="{ Component }">
|
|
8
|
-
<Component :is="asAny(Component)">
|
|
9
|
-
<template #main-header>
|
|
10
|
-
<slot name="main-header" />
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<template #main-header-after>
|
|
14
|
-
<slot name="main-header-after" />
|
|
15
|
-
</template>
|
|
16
|
-
<template #main>
|
|
17
|
-
<slot name="main" />
|
|
18
|
-
</template>
|
|
19
|
-
<template #main-content>
|
|
20
|
-
<slot name="main-content" />
|
|
21
|
-
</template>
|
|
22
|
-
<template #main-content-after>
|
|
23
|
-
<slot name="main-content-after" />
|
|
24
|
-
</template>
|
|
25
|
-
<template #main-nav-before>
|
|
26
|
-
<slot name="main-nav-before" />
|
|
27
|
-
</template>
|
|
28
|
-
<template #main-nav-after>
|
|
29
|
-
<slot name="main-nav-after" />
|
|
30
|
-
</template>
|
|
31
|
-
<template #aside-custom>
|
|
32
|
-
<slot name="aside-custom" />
|
|
33
|
-
</template>
|
|
34
|
-
<template #footer>
|
|
35
|
-
<slot name="footer" />
|
|
36
|
-
</template>
|
|
37
|
-
</Component>
|
|
38
|
-
</RouterView>
|
|
39
|
-
</template>
|