valaxy 0.23.0 → 0.23.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.
@@ -4,7 +4,7 @@ import yargs from "yargs";
4
4
  import { hideBin } from "yargs/helpers";
5
5
 
6
6
  // package.json
7
- var version = "0.23.0";
7
+ var version = "0.23.2";
8
8
 
9
9
  // node/modules/fuse.ts
10
10
  import path4 from "node:path";
@@ -3946,6 +3946,9 @@ async function createRouterPlugin(valaxyApp) {
3946
3946
  }
3947
3947
  await valaxyApp.hooks.callHook("vue-router:extendRoute", route);
3948
3948
  return valaxyConfig.router?.extendRoute?.(route);
3949
+ },
3950
+ async beforeWriteFiles(root) {
3951
+ await valaxyApp.hooks.callHook("vue-router:beforeWriteFiles", root);
3949
3952
  }
3950
3953
  });
3951
3954
  }
@@ -4835,8 +4838,6 @@ export {
4835
4838
  /*! Bundled license information:
4836
4839
 
4837
4840
  @mdit-vue/shared/dist/index.mjs:
4838
- (* istanbul ignore if -- @preserve *)
4839
-
4840
4841
  @mdit-vue/plugin-sfc/dist/index.mjs:
4841
4842
  (* istanbul ignore if -- @preserve *)
4842
4843
  */
@@ -92,6 +92,14 @@ interface PageFrontMatter extends Record<string, any> {
92
92
  * @description 路径
93
93
  */
94
94
  path: string;
95
+ /**
96
+ * abbrlink
97
+ *
98
+ * generated by valaxy-addon-abbrlink, do not manually modify
99
+ *
100
+ * just compatible for [hexo-abbrlink](https://github.com/ohroy/hexo-abbrlink)
101
+ */
102
+ abbrlink: string;
95
103
  /**
96
104
  * Title
97
105
  * @description 文章标题
@@ -200,6 +208,10 @@ interface PageFrontMatter extends Record<string, any> {
200
208
  * @description:zh-CN 加密密码
201
209
  */
202
210
  password?: string;
211
+ /**
212
+ * @description:zh-CN 密码提示
213
+ */
214
+ password_hint?: string;
203
215
  /**
204
216
  * @description:zh-CN 相册密码
205
217
  */
@@ -3,7 +3,7 @@ import {
3
3
  registerDevCommand,
4
4
  run,
5
5
  startValaxyDev
6
- } from "../../chunk-FKXWXNZE.js";
6
+ } from "../../chunk-3X26KX5G.js";
7
7
  export {
8
8
  cli,
9
9
  registerDevCommand,
@@ -2,7 +2,7 @@ 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 { 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';
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-D40juN_m.js';
6
6
  import Vue from '@vitejs/plugin-vue';
7
7
  import { Options as Options$3 } from 'beasties';
8
8
  import { Hookable } from 'hookable';
@@ -200,6 +200,7 @@ interface ValaxyHooks {
200
200
  * @see valaxy/node/plugins/vueRouter.ts extendRoute
201
201
  */
202
202
  'vue-router:extendRoute': (route: EditableTreeNode) => HookResult;
203
+ 'vue-router:beforeWriteFiles': (root: EditableTreeNode) => HookResult;
203
204
  'build:before': () => HookResult;
204
205
  'build:after': () => HookResult;
205
206
  }
@@ -50,7 +50,7 @@ import {
50
50
  startValaxyDev,
51
51
  toAtFS,
52
52
  transformObject
53
- } from "../chunk-FKXWXNZE.js";
53
+ } from "../chunk-3X26KX5G.js";
54
54
  export {
55
55
  ALL_ROUTE,
56
56
  EXCERPT_SEPARATOR,
@@ -1,5 +1,5 @@
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';
1
+ import { c as PostFrontMatter, d as PageFrontMatter } from '../config-D40juN_m.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-D40juN_m.js';
3
3
  import { Header } from '@valaxyjs/utils';
4
4
  import '@vueuse/integrations/useFuse';
5
5
  import 'medium-zoom';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.23.0",
4
+ "version": "0.23.2",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -56,8 +56,8 @@
56
56
  "@antfu/utils": "^9.2.0",
57
57
  "@clack/prompts": "^0.10.1",
58
58
  "@iconify-json/ri": "^1.2.5",
59
- "@intlify/unplugin-vue-i18n": "^6.0.5",
60
- "@shikijs/transformers": "^3.2.2",
59
+ "@intlify/unplugin-vue-i18n": "^6.0.8",
60
+ "@shikijs/transformers": "^3.3.0",
61
61
  "@types/katex": "^0.16.7",
62
62
  "@unhead/addons": "^2.0.8",
63
63
  "@unhead/schema-org": "^2.0.8",
@@ -66,7 +66,7 @@
66
66
  "@vue/devtools-api": "7.7.2",
67
67
  "@vueuse/core": "^13.1.0",
68
68
  "@vueuse/integrations": "^13.1.0",
69
- "beasties": "^0.3.2",
69
+ "beasties": "^0.3.3",
70
70
  "birpc": "^2.3.0",
71
71
  "consola": "^3.4.2",
72
72
  "cross-spawn": "^7.0.6",
@@ -110,17 +110,17 @@
110
110
  "pinia": "^3.0.2",
111
111
  "qrcode": "^1.5.4",
112
112
  "resolve-global": "^2.0.0",
113
- "sass": "^1.86.3",
114
- "shiki": "^3.2.2",
113
+ "sass": "^1.87.0",
114
+ "shiki": "^3.3.0",
115
115
  "star-markdown-css": "^0.5.3",
116
116
  "table": "^6.9.0",
117
117
  "unhead": "^2.0.8",
118
- "unocss": "^66.1.0-beta.11",
118
+ "unocss": "^66.1.0-beta.12",
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.3.1",
123
+ "vite": "^6.3.3",
124
124
  "vite-dev-rpc": "^1.0.7",
125
125
  "vite-plugin-vue-devtools": "^7.7.5",
126
126
  "vite-plugin-vue-layouts": "^0.11.0",
@@ -131,8 +131,8 @@
131
131
  "vue-i18n": "^11.1.3",
132
132
  "vue-router": "^4.5.0",
133
133
  "yargs": "^17.7.2",
134
- "@valaxyjs/devtools": "0.23.0",
135
- "@valaxyjs/utils": "0.23.0"
134
+ "@valaxyjs/devtools": "0.23.2",
135
+ "@valaxyjs/utils": "0.23.2"
136
136
  },
137
137
  "devDependencies": {
138
138
  "@mdit-vue/plugin-component": "^2.1.4",
@@ -33,6 +33,14 @@ export interface PageFrontMatter extends Record<string, any> {
33
33
  * @description 路径
34
34
  */
35
35
  path: string
36
+ /**
37
+ * abbrlink
38
+ *
39
+ * generated by valaxy-addon-abbrlink, do not manually modify
40
+ *
41
+ * just compatible for [hexo-abbrlink](https://github.com/ohroy/hexo-abbrlink)
42
+ */
43
+ abbrlink: string
36
44
  /**
37
45
  * Title
38
46
  * @description 文章标题
@@ -153,6 +161,10 @@ export interface PageFrontMatter extends Record<string, any> {
153
161
  * @description:zh-CN 加密密码
154
162
  */
155
163
  password?: string
164
+ /**
165
+ * @description:zh-CN 密码提示
166
+ */
167
+ password_hint?: string
156
168
  /**
157
169
  * @description:zh-CN 相册密码
158
170
  */