valaxy 1.0.1 → 1.2.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/components/ValaxyCopyright.vue +2 -1
- package/client/components/ValaxyCover.vue +92 -0
- package/client/components/ValaxyFootnoteTooltip.vue +6 -14
- package/client/components/ValaxySvgExport.vue +71 -0
- package/client/components/footnote/FootnotePopover.vue +146 -0
- package/client/components/footnote/LegacyFootnoteTooltip.vue +25 -0
- package/client/composables/collections.ts +13 -9
- package/client/composables/decrypt.ts +8 -1
- package/client/composables/outline/anchor.ts +20 -8
- package/client/composables/post/filter.ts +38 -0
- package/client/composables/post/index.ts +2 -34
- package/client/index.d.ts +0 -1
- package/client/layouts/README.md +1 -1
- package/client/locales/en.yml +2 -0
- package/client/locales/zh-CN.yml +2 -0
- package/client/main.ts +35 -20
- package/client/modules/valaxy.ts +14 -5
- package/client/shims.d.ts +27 -0
- package/client/utils/index.ts +1 -0
- package/client/utils/layouts.ts +359 -0
- package/client/utils/path.ts +30 -0
- package/client/utils/svg.ts +104 -0
- package/dist/node/cli/index.mjs +4 -11
- package/dist/node/index.d.mts +71 -46
- package/dist/node/index.mjs +4 -11
- package/dist/shared/{valaxy.CjaAzLmd.d.mts → valaxy.BGgY-Hwl.d.mts} +28 -3
- package/dist/shared/{valaxy.DstXQBtK.mjs → valaxy.CRodiDWz.mjs} +402 -1811
- package/dist/types/index.d.mts +2 -2
- package/package.json +9 -15
- package/types/config.ts +12 -1
- package/types/frontmatter/page.ts +9 -2
- package/types/vue-router.d.ts +8 -0
- package/vendor/README.md +8 -8
- package/vendor/sources.json +0 -31
- package/vendor/i18n/LICENSE +0 -20
- package/vendor/i18n/index.d.mts +0 -7
- package/vendor/i18n/index.mjs +0 -1389
- package/vendor/i18n/types.d.ts +0 -48
- package/vendor/layouts/LICENSE +0 -21
- package/vendor/layouts/client.d.ts +0 -11
- package/vendor/layouts/index.d.mts +0 -86
- package/vendor/layouts/index.mjs +0 -235
- package/vendor/layouts/layoutName-DVkP7Qpo.mjs +0 -82
- package/vendor/layouts/runtime.d.mts +0 -72
- package/vendor/layouts/runtime.mjs +0 -284
package/dist/types/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as Post } from '../shared/valaxy.
|
|
2
|
-
export { A as Album, B as BaseFrontMatter, D as DefaultTheme, E as ExcerptType, F as FuseListItem, d as Page, e as PageFrontMatter, P as PartialDeep, f as Photo, g as Pkg, h as PostFrontMatter, a as RedirectItem, i as RedirectRule, R as RuntimeConfig, S as SiteConfig, j as SocialLink, U as UserSiteConfig, k as UserValaxyConfig, b as ValaxyAddon, V as ValaxyConfig } from '../shared/valaxy.
|
|
1
|
+
import { c as Post } from '../shared/valaxy.BGgY-Hwl.mjs';
|
|
2
|
+
export { A as Album, B as BaseFrontMatter, D as DefaultTheme, E as ExcerptType, F as FuseListItem, d as Page, e as PageFrontMatter, P as PartialDeep, f as Photo, g as Pkg, h as PostFrontMatter, a as RedirectItem, i as RedirectRule, R as RuntimeConfig, S as SiteConfig, j as SocialLink, U as UserSiteConfig, k as UserValaxyConfig, b as ValaxyAddon, V as ValaxyConfig } from '../shared/valaxy.BGgY-Hwl.mjs';
|
|
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": "1.0
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -68,22 +68,16 @@
|
|
|
68
68
|
"@antfu/install-pkg": "^2.1.0",
|
|
69
69
|
"@antfu/utils": "^9.3.0",
|
|
70
70
|
"@clack/prompts": "^1.8.1",
|
|
71
|
-
"@eslint-community/eslint-utils": "^4.4.0",
|
|
72
71
|
"@iconify-json/ri": "^1.2.10",
|
|
73
|
-
"@intlify/
|
|
74
|
-
"@intlify/shared": "~11.4.2",
|
|
75
|
-
"@intlify/vue-i18n-extensions": "^8.0.0",
|
|
76
|
-
"@rollup/pluginutils": "^5.1.0",
|
|
72
|
+
"@intlify/unplugin-vue-i18n": "11.2.7",
|
|
77
73
|
"@shikijs/transformers": "^4.4.3",
|
|
78
74
|
"@types/katex": "^0.16.8",
|
|
79
|
-
"@typescript-eslint/scope-manager": "^8.13.0",
|
|
80
|
-
"@typescript-eslint/typescript-estree": "^8.13.0",
|
|
81
75
|
"@unhead/bundler": "^3.4.1",
|
|
82
76
|
"@unhead/schema-org": "^3.4.1",
|
|
83
77
|
"@unhead/vue": "^3.4.1",
|
|
84
|
-
"@valaxyjs/devtools": "1.0
|
|
85
|
-
"@valaxyjs/utils": "1.0
|
|
86
|
-
"@vitejs/devtools": "0.
|
|
78
|
+
"@valaxyjs/devtools": "1.2.0",
|
|
79
|
+
"@valaxyjs/utils": "1.2.0",
|
|
80
|
+
"@vitejs/devtools": "0.8.0",
|
|
87
81
|
"@vitejs/plugin-vue": "^6.0.9",
|
|
88
82
|
"@vueuse/core": "^15.0.0",
|
|
89
83
|
"@vueuse/integrations": "^15.0.0",
|
|
@@ -110,7 +104,7 @@
|
|
|
110
104
|
"katex": "^0.18.7",
|
|
111
105
|
"local-pkg": "^1.2.1",
|
|
112
106
|
"lru-cache": "^11.5.3",
|
|
113
|
-
"magic-string": "^
|
|
107
|
+
"magic-string": "^1.4.3",
|
|
114
108
|
"markdown-exit": "^1.3.0",
|
|
115
109
|
"markdown-it": "^15.0.2",
|
|
116
110
|
"markdown-it-anchor": "^10.0.0",
|
|
@@ -131,18 +125,18 @@
|
|
|
131
125
|
"p-map": "^7.0.8",
|
|
132
126
|
"pascalcase": "^2.0.0",
|
|
133
127
|
"pathe": "^2.0.3",
|
|
134
|
-
"picocolors": "^1.0.0",
|
|
135
128
|
"picomatch": "^4.0.4",
|
|
136
129
|
"pinia": "^4.0.3",
|
|
137
130
|
"qrcode": "^1.5.4",
|
|
131
|
+
"reka-ui": "^2.10.4",
|
|
138
132
|
"resolve-global": "^2.0.0",
|
|
139
133
|
"sass": "^1.104.1",
|
|
140
134
|
"shiki": "^4.4.3",
|
|
141
|
-
"star-markdown-css": "^0.
|
|
135
|
+
"star-markdown-css": "^0.6.1",
|
|
142
136
|
"table": "^6.9.0",
|
|
143
137
|
"tinyglobby": "^0.2.17",
|
|
144
138
|
"unhead": "^3.4.1",
|
|
145
|
-
"unocss": "66.
|
|
139
|
+
"unocss": "^66.11.0",
|
|
146
140
|
"unplugin": "^3.0.0",
|
|
147
141
|
"unplugin-utils": "^0.3.1",
|
|
148
142
|
"unplugin-vue-components": "32.1.0",
|
package/types/config.ts
CHANGED
|
@@ -361,7 +361,18 @@ export interface SiteConfig {
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
/**
|
|
364
|
-
*
|
|
364
|
+
* Footnote preview implementation. Existing Floating Vue configuration
|
|
365
|
+
* selects the legacy implementation unless preview is explicitly set.
|
|
366
|
+
*/
|
|
367
|
+
footnote: {
|
|
368
|
+
/** @default 'reka' */
|
|
369
|
+
preview: 'reka' | 'floating-vue'
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Legacy Floating Vue configuration, also used by global v-tooltip.
|
|
374
|
+
* @deprecated For footnotes, migrate to footnote.preview: 'reka' and style
|
|
375
|
+
* .va-footnote-popover. Global Floating Vue APIs remain available during migration.
|
|
365
376
|
* @see https://floating-vue.starpad.dev/guide/config
|
|
366
377
|
*/
|
|
367
378
|
floatingVue: any // FloatingVueConfig is an alias of any, consult the documentation for actual type
|
|
@@ -108,9 +108,16 @@ export interface PageFrontMatter extends BaseFrontMatter {
|
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* cover
|
|
111
|
-
* @description
|
|
111
|
+
* @description 封面图片(使用组件封面时可省略)
|
|
112
112
|
*/
|
|
113
|
-
cover
|
|
113
|
+
cover?: string
|
|
114
|
+
/**
|
|
115
|
+
* @description:en-US Vue component name from components/covers/, rendered by supporting themes. An image cover is optional.
|
|
116
|
+
* @description:zh-CN components/covers/ 下的 Vue 组件名,由支持的主题渲染。图片 cover 可省略。
|
|
117
|
+
*/
|
|
118
|
+
coverComponent?: string
|
|
119
|
+
/** JSON-serializable props passed to the cover component. */
|
|
120
|
+
coverProps?: Record<string, unknown>
|
|
114
121
|
/**
|
|
115
122
|
* @description:en-US Open Graph image for SEO
|
|
116
123
|
* @description:zh-CN Open Graph 图片,用于 SEO
|
package/types/vue-router.d.ts
CHANGED
|
@@ -25,5 +25,13 @@ declare module 'vue-router' {
|
|
|
25
25
|
* Layout name
|
|
26
26
|
*/
|
|
27
27
|
layout?: string
|
|
28
|
+
/**
|
|
29
|
+
* Props passed to the layout component
|
|
30
|
+
*/
|
|
31
|
+
layoutProps?: Record<string, unknown>
|
|
32
|
+
/**
|
|
33
|
+
* Set on the parent routes generated by `setupLayouts`
|
|
34
|
+
*/
|
|
35
|
+
isLayout?: boolean
|
|
28
36
|
}
|
|
29
37
|
}
|
package/vendor/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Build plugin snapshots
|
|
2
2
|
|
|
3
|
-
These MIT-licensed distribution snapshots keep Valaxy's
|
|
3
|
+
These MIT-licensed distribution snapshots keep Valaxy's component discovery
|
|
4
4
|
behavior while removing the vulnerable `fast-glob → micromatch → braces` chain
|
|
5
5
|
from published packages. `sources.json` records the original npm versions, source
|
|
6
6
|
repositories and SHA-256 hashes of every copied file. Each directory includes its
|
|
@@ -8,13 +8,6 @@ upstream license. Other runtime dependencies remain explicit in Valaxy's manifes
|
|
|
8
8
|
|
|
9
9
|
Changes relative to the recorded distributions:
|
|
10
10
|
|
|
11
|
-
- `@intlify/unplugin-vue-i18n@11.2.5`: replace its async file scanner with
|
|
12
|
-
`tinyglobby.glob`, requesting absolute locale paths for Windows cross-drive
|
|
13
|
-
projects. Keep the stable message compiler and SFC transforms.
|
|
14
|
-
- `vite-plugin-vue-layouts-next@3.2.0`: replace async/sync scanners with
|
|
15
|
-
`tinyglobby.glob`/`globSync`; resolve directory globs against Vite's root;
|
|
16
|
-
import the included browser runtime through `valaxy/vendor/layouts/runtime.mjs`.
|
|
17
|
-
Browser runtime and layout-name normalization are otherwise unchanged.
|
|
18
11
|
- `unplugin-vue-components@32.1.0`: sort component paths by the configured glob
|
|
19
12
|
priority when rebuilding the registry. This preserves core → theme → addon →
|
|
20
13
|
user overrides after initial discovery and file additions/removals, independent
|
|
@@ -27,3 +20,10 @@ and compiled JSON/YAML locales. Full Yun/Press SSG and packed-consumer tests ver
|
|
|
27
20
|
the published artifacts. No audit exemptions or consumer overrides are needed
|
|
28
21
|
for the replacement scanners. Remove a snapshot once its upstream stable release
|
|
29
22
|
provides the same scanning/ordering behavior and passes these regressions.
|
|
23
|
+
|
|
24
|
+
The layout system was vendored from `vite-plugin-vue-layouts-next@3.2.0` until Valaxy
|
|
25
|
+
replaced it with its own `node/plugins/layouts.ts` and `client/utils/layouts.ts`,
|
|
26
|
+
which keep that plugin's options, layout-name normalization and runtime behavior.
|
|
27
|
+
|
|
28
|
+
`@intlify/unplugin-vue-i18n` was vendored at 11.2.5 until upstream 11.2.7 adopted
|
|
29
|
+
`tinyglobby` with absolute paths; Valaxy now depends on the npm release directly.
|
package/vendor/sources.json
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
1
|
[
|
|
2
|
-
{
|
|
3
|
-
"package": "@intlify/unplugin-vue-i18n",
|
|
4
|
-
"version": "11.2.5",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/intlify/bundle-tools.git",
|
|
8
|
-
"directory": "packages/unplugin-vue-i18n"
|
|
9
|
-
},
|
|
10
|
-
"files": {
|
|
11
|
-
"lib/index.mjs": "0b9279529baf89e0c027a9d4db94dd69fef9d357e457606db3ccf6e178e21268",
|
|
12
|
-
"lib/types.d.ts": "d1315ab34c1eb6588ba2fd8a040146f940fb37d1c5ba72e19daa2f46e9615190",
|
|
13
|
-
"LICENSE": "5332a7645b0acec33bef55f24b5c16ffaa60c097e2aade91a7945c2f12607636"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"package": "vite-plugin-vue-layouts-next",
|
|
18
|
-
"version": "3.2.0",
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/loicduong/vite-plugin-vue-layouts-next.git"
|
|
22
|
-
},
|
|
23
|
-
"files": {
|
|
24
|
-
"dist/index.mjs": "edab37ca837b9261f651e567af175942934b161726a45ca9b22a291c1a1be465",
|
|
25
|
-
"dist/index.d.mts": "d622d03bc14a55d033fb4c164b8ce7256a9c042a328b0bd42849483359d9e915",
|
|
26
|
-
"dist/runtime.mjs": "70d6c6164ab2e3211e393b3044c03aa96c10b3cf0dee90da38881c8a4e33b454",
|
|
27
|
-
"dist/runtime.d.mts": "450f7f97295a601a412358e2fa2e57828b86611e8bc01e9b135a1dea4b0f8b7f",
|
|
28
|
-
"dist/layoutName-DVkP7Qpo.mjs": "80eaa8258117a0f35a86855a5c749c6090da04df13169675715ab6ffce908e88",
|
|
29
|
-
"client.d.ts": "5faf3587eae88f0a014a6ddc5693376fe7a153bb36bbabf622e65dda4e9f1422",
|
|
30
|
-
"LICENSE": "3b66548ac8a2385a8756e574acdcff245cebb4dfae4ab277183dd3ce276e1330"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
2
|
{
|
|
34
3
|
"package": "unplugin-vue-components",
|
|
35
4
|
"version": "32.1.0",
|
package/vendor/i18n/LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022-present, kazuya kawaguchi
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
-
the Software without restriction, including without limitation the rights to
|
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
-
subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/vendor/i18n/index.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { UnpluginInstance, UnpluginFactory } from 'unplugin'
|
|
2
|
-
import type { PluginOptions } from './types.js'
|
|
3
|
-
export type { PluginOptions, SFCLangFormat, TreeShakingOptions, VueI18nModule } from './types.js'
|
|
4
|
-
declare const unpluginFactory: UnpluginFactory<PluginOptions | undefined>
|
|
5
|
-
declare const unplugin: UnpluginInstance<PluginOptions | undefined, boolean>
|
|
6
|
-
export { unplugin, unpluginFactory }
|
|
7
|
-
export default unplugin
|