valaxy 0.17.0-beta.3 → 0.17.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 +1 -1
- package/client/composables/categories.ts +22 -22
- package/client/composables/post.ts +4 -1
- package/client/composables/tags.ts +1 -1
- package/client/modules/valaxy.ts +2 -3
- package/client/stores/site.ts +11 -5
- package/client/utils/time.ts +1 -1
- package/dist/chunk-ALNY7KGH.mjs +148 -0
- package/dist/chunk-O4TV2H4O.cjs +147 -0
- package/dist/{config-OaNeBI1c.d.cts → config-hKSeaczj.d.cts} +8 -7
- package/dist/{config-OaNeBI1c.d.ts → config-hKSeaczj.d.ts} +8 -7
- 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 +94 -51
- package/dist/node/index.d.ts +94 -51
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +1 -1
- package/package.json +16 -13
- package/shims.d.ts +62 -0
- package/types/README.md +5 -0
- package/types/config.ts +8 -6
- package/types/index.ts +1 -0
- package/dist/chunk-2HLMSZO4.mjs +0 -150
- package/dist/chunk-45B2VOLU.cjs +0 -149
- /package/dist/{chunk-GXMNHGBP.cjs → chunk-TEOGEXZQ.cjs} +0 -0
- /package/dist/{chunk-WSC7UAH5.mjs → chunk-ZO24WTQL.mjs} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.17.0
|
|
4
|
+
"version": "0.17.0",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./index.d.ts",
|
|
25
25
|
"import": "./dist/node/index.mjs",
|
|
26
|
-
"require": "./dist/node/index.cjs"
|
|
26
|
+
"require": "./dist/node/index.cjs",
|
|
27
|
+
"default": "./dist/node/index.mjs"
|
|
27
28
|
},
|
|
28
29
|
"./client/*": "./client/*",
|
|
29
30
|
"./client": "./client/index.ts",
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
"client",
|
|
50
51
|
"dist",
|
|
51
52
|
"index.d.ts",
|
|
53
|
+
"shims.d.ts",
|
|
52
54
|
"types"
|
|
53
55
|
],
|
|
54
56
|
"engines": {
|
|
@@ -56,17 +58,17 @@
|
|
|
56
58
|
},
|
|
57
59
|
"dependencies": {
|
|
58
60
|
"@antfu/utils": "^0.7.7",
|
|
59
|
-
"@ctrl/tinycolor": "^4.0.
|
|
61
|
+
"@ctrl/tinycolor": "^4.0.3",
|
|
60
62
|
"@iconify-json/carbon": "^1.1.27",
|
|
61
|
-
"@iconify-json/ri": "^1.1.
|
|
63
|
+
"@iconify-json/ri": "^1.1.19",
|
|
62
64
|
"@intlify/unplugin-vue-i18n": "^2.0.0",
|
|
63
65
|
"@types/body-scroll-lock": "^3.1.2",
|
|
64
66
|
"@types/katex": "^0.16.7",
|
|
65
|
-
"@unhead/addons": "^1.8.
|
|
66
|
-
"@unhead/schema-org": "^1.8.
|
|
67
|
-
"@unhead/vue": "^1.8.
|
|
67
|
+
"@unhead/addons": "^1.8.10",
|
|
68
|
+
"@unhead/schema-org": "^1.8.10",
|
|
69
|
+
"@unhead/vue": "^1.8.10",
|
|
68
70
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
69
|
-
"@vue/devtools-api": "^7.0.
|
|
71
|
+
"@vue/devtools-api": "^7.0.11",
|
|
70
72
|
"@vueuse/core": "^10.7.2",
|
|
71
73
|
"@vueuse/integrations": "^10.7.2",
|
|
72
74
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
@@ -101,9 +103,10 @@
|
|
|
101
103
|
"open": "10.0.3",
|
|
102
104
|
"ora": "^8.0.1",
|
|
103
105
|
"pascalcase": "^2.0.0",
|
|
106
|
+
"pathe": "^1.1.2",
|
|
104
107
|
"pinia": "^2.1.7",
|
|
105
108
|
"qrcode": "^1.5.3",
|
|
106
|
-
"sass": "^1.
|
|
109
|
+
"sass": "^1.70.0",
|
|
107
110
|
"shiki": "^0.14.7",
|
|
108
111
|
"star-markdown-css": "^0.4.2",
|
|
109
112
|
"unconfig": "^0.3.11",
|
|
@@ -111,12 +114,12 @@
|
|
|
111
114
|
"unplugin-vue-components": "^0.26.0",
|
|
112
115
|
"unplugin-vue-router": "^0.7.0",
|
|
113
116
|
"vanilla-lazyload": "^17.8.5",
|
|
114
|
-
"vite": "^5.0.
|
|
115
|
-
"vite-plugin-vue-devtools": "^7.0.
|
|
117
|
+
"vite": "^5.0.12",
|
|
118
|
+
"vite-plugin-vue-devtools": "^7.0.11",
|
|
116
119
|
"vite-plugin-vue-layouts": "0.11.0",
|
|
117
120
|
"vite-ssg": "0.23.6",
|
|
118
121
|
"vite-ssg-sitemap": "0.6.1",
|
|
119
|
-
"vue": "^3.4.
|
|
122
|
+
"vue": "^3.4.15",
|
|
120
123
|
"vue-i18n": "^9.9.0",
|
|
121
124
|
"vue-router": "^4.2.5",
|
|
122
125
|
"yargs": "^17.7.2"
|
|
@@ -145,7 +148,7 @@
|
|
|
145
148
|
},
|
|
146
149
|
"scripts": {
|
|
147
150
|
"build": "rimraf dist && tsup --splitting",
|
|
148
|
-
"dev": "tsup --
|
|
151
|
+
"dev": "tsup --watch",
|
|
149
152
|
"preview": "vite preview",
|
|
150
153
|
"preview-https": "serve dist"
|
|
151
154
|
}
|
package/shims.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import 'vue-router'
|
|
2
|
+
|
|
3
|
+
import './client/typed-router'
|
|
4
|
+
|
|
5
|
+
import type { Post } from './types'
|
|
6
|
+
import type { Header } from './node/markdown'
|
|
7
|
+
|
|
8
|
+
declare module 'valaxy-addon-*'
|
|
9
|
+
declare module '@docsearch/js' {
|
|
10
|
+
function docsearch<T = any>(props: T): void
|
|
11
|
+
export default docsearch
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare interface Window {
|
|
15
|
+
// algolia
|
|
16
|
+
instantsearch: any
|
|
17
|
+
algoliasearch: any
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// markdowns can be treat as Vue components
|
|
21
|
+
declare module '*.md' {
|
|
22
|
+
import type { DefineComponent } from 'vue'
|
|
23
|
+
|
|
24
|
+
const component: DefineComponent<object, object, any>
|
|
25
|
+
export default component
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare module '*.vue' {
|
|
29
|
+
import type { DefineComponent } from 'vue'
|
|
30
|
+
|
|
31
|
+
const component: DefineComponent<object, object, any>
|
|
32
|
+
export default component
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// vite hmr data
|
|
36
|
+
declare module '/@valaxyjs/config' {
|
|
37
|
+
const config: string
|
|
38
|
+
export default config
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare module '/@valaxyjs/context' {
|
|
42
|
+
const ctx: string
|
|
43
|
+
export default ctx
|
|
44
|
+
}
|
|
45
|
+
declare module '/@valaxyjs/addons' {
|
|
46
|
+
import type { DefineComponent } from 'vue'
|
|
47
|
+
|
|
48
|
+
const components: { props: any, component: DefineComponent<object, object, any> }[]
|
|
49
|
+
export default components
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare module '/@valaxyjs/locales' {
|
|
53
|
+
const messages: object
|
|
54
|
+
export default messages
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare module 'vue-router' {
|
|
58
|
+
interface RouteMeta {
|
|
59
|
+
headers: Header[]
|
|
60
|
+
frontmatter: Post
|
|
61
|
+
}
|
|
62
|
+
}
|
package/types/README.md
ADDED
package/types/config.ts
CHANGED
|
@@ -337,6 +337,13 @@ export interface RuntimeConfig {
|
|
|
337
337
|
addons: Record<string, ValaxyAddon>
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
+
export interface Pkg {
|
|
341
|
+
name: string
|
|
342
|
+
version: string
|
|
343
|
+
homepage?: string
|
|
344
|
+
[key: string]: any
|
|
345
|
+
}
|
|
346
|
+
|
|
340
347
|
export interface ValaxyConfig<ThemeConfig = DefaultTheme.Config> {
|
|
341
348
|
siteConfig: SiteConfig
|
|
342
349
|
/**
|
|
@@ -349,12 +356,7 @@ export interface ValaxyConfig<ThemeConfig = DefaultTheme.Config> {
|
|
|
349
356
|
* @description 主题配置
|
|
350
357
|
*/
|
|
351
358
|
themeConfig: ThemeConfig & {
|
|
352
|
-
pkg:
|
|
353
|
-
name: string
|
|
354
|
-
version: string
|
|
355
|
-
homepage?: string
|
|
356
|
-
[key: string]: any
|
|
357
|
-
}
|
|
359
|
+
pkg: Pkg
|
|
358
360
|
}
|
|
359
361
|
/**
|
|
360
362
|
* generated by runtime
|