valaxy 0.15.9 → 0.15.11-alpha.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.
Files changed (148) hide show
  1. package/bin/valaxy.cjs +1 -1
  2. package/bin/valaxy.mjs +1 -1
  3. package/client/.vite-ssg-temp/tbbjcbuyn2/CNAME +1 -0
  4. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/PressAlgoliaSearch-2943719f.js +227 -0
  5. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/ValaxyMain-26e77dc6.js +752 -0
  6. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/_...all_-080f97f3.js +31 -0
  7. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/_...all_-5084a1b0.js +42 -0
  8. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/addon-f5fa83e1.js +172 -0
  9. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/best-pratice-0231a551.js +1105 -0
  10. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/client-496183a0.js +286 -0
  11. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/community-1b33ec3b.js +627 -0
  12. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/components-7000ddd3.js +2460 -0
  13. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/deploy-59948619.js +1071 -0
  14. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/docs-26abd7f8.js +490 -0
  15. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/extend-975f8f72.js +1851 -0
  16. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/extend-acd7107b.js +1444 -0
  17. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/faq-62ed7bfd.js +321 -0
  18. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/features-8acbd53d.js +2625 -0
  19. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/gallery-832227a9.js +244 -0
  20. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/gallery-9077df38.js +370 -0
  21. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/getting-started-52c30f03.js +3684 -0
  22. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/hexo-7311896e.js +969 -0
  23. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/hooks-67450cb3.js +517 -0
  24. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/i18n-4cd1bb86.js +4159 -0
  25. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/i18n-e1165bc4.js +676 -0
  26. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-002f83fb.js +768 -0
  27. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-3dec2b83.js +527 -0
  28. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-43565e48.js +424 -0
  29. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-5f07432e.js +563 -0
  30. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-6024f010.js +3294 -0
  31. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-6f0d6ec7.js +202 -0
  32. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-78c510e0.js +549 -0
  33. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-839c338e.js +4161 -0
  34. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-d39a48fd.js +1170 -0
  35. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-e633613c.js +1564 -0
  36. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/katex-32f21e80.js +6119 -0
  37. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/logo-bd69f816.js +180 -0
  38. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/markdown-050f3269.js +5895 -0
  39. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/news-ecba2d88.js +278 -0
  40. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/page-d48f3caa.js +752 -0
  41. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/post-ac89eaf5.js +1605 -0
  42. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/route-block-c0a8bdd8.js +4 -0
  43. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/schema-org-f60b7dac.js +477 -0
  44. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/site-6caa6511.js +286 -0
  45. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/style-f415f7fa.css +3742 -0
  46. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/styles-cdaadad2.js +548 -0
  47. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/templates-c97584f2.js +574 -0
  48. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/theme-192f77ef.js +172 -0
  49. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/use-3c036a47.js +669 -0
  50. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/use-851c0307.js +619 -0
  51. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/vite-vue-f91b9792.js +830 -0
  52. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/vscode-bc411e64.js +350 -0
  53. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/why-c98bbe8e.js +1131 -0
  54. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/write-6a43d4d0.js +4963 -0
  55. package/client/.vite-ssg-temp/tbbjcbuyn2/assets/write-6bc2b77c.js +675 -0
  56. package/client/.vite-ssg-temp/tbbjcbuyn2/favicon.svg +33 -0
  57. package/client/.vite-ssg-temp/tbbjcbuyn2/main.mjs +6239 -0
  58. package/client/.vite-ssg-temp/tbbjcbuyn2/valaxy-logo.png +0 -0
  59. package/client/.vite-ssg-temp/vp12eb5cgm/CNAME +1 -0
  60. package/client/.vite-ssg-temp/vp12eb5cgm/assets/PressAlgoliaSearch-2943719f.js +227 -0
  61. package/client/.vite-ssg-temp/vp12eb5cgm/assets/ValaxyMain-26e77dc6.js +752 -0
  62. package/client/.vite-ssg-temp/vp12eb5cgm/assets/_...all_-080f97f3.js +31 -0
  63. package/client/.vite-ssg-temp/vp12eb5cgm/assets/_...all_-5084a1b0.js +42 -0
  64. package/client/.vite-ssg-temp/vp12eb5cgm/assets/addon-f5fa83e1.js +172 -0
  65. package/client/.vite-ssg-temp/vp12eb5cgm/assets/best-pratice-0231a551.js +1105 -0
  66. package/client/.vite-ssg-temp/vp12eb5cgm/assets/client-496183a0.js +286 -0
  67. package/client/.vite-ssg-temp/vp12eb5cgm/assets/community-1b33ec3b.js +627 -0
  68. package/client/.vite-ssg-temp/vp12eb5cgm/assets/components-7000ddd3.js +2460 -0
  69. package/client/.vite-ssg-temp/vp12eb5cgm/assets/deploy-59948619.js +1071 -0
  70. package/client/.vite-ssg-temp/vp12eb5cgm/assets/docs-26abd7f8.js +490 -0
  71. package/client/.vite-ssg-temp/vp12eb5cgm/assets/extend-975f8f72.js +1851 -0
  72. package/client/.vite-ssg-temp/vp12eb5cgm/assets/extend-acd7107b.js +1444 -0
  73. package/client/.vite-ssg-temp/vp12eb5cgm/assets/faq-62ed7bfd.js +321 -0
  74. package/client/.vite-ssg-temp/vp12eb5cgm/assets/features-8acbd53d.js +2625 -0
  75. package/client/.vite-ssg-temp/vp12eb5cgm/assets/gallery-832227a9.js +244 -0
  76. package/client/.vite-ssg-temp/vp12eb5cgm/assets/gallery-9077df38.js +370 -0
  77. package/client/.vite-ssg-temp/vp12eb5cgm/assets/getting-started-bb7fc0a8.js +3684 -0
  78. package/client/.vite-ssg-temp/vp12eb5cgm/assets/hexo-7311896e.js +969 -0
  79. package/client/.vite-ssg-temp/vp12eb5cgm/assets/hooks-67450cb3.js +517 -0
  80. package/client/.vite-ssg-temp/vp12eb5cgm/assets/i18n-4cd1bb86.js +4159 -0
  81. package/client/.vite-ssg-temp/vp12eb5cgm/assets/i18n-e1165bc4.js +676 -0
  82. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-002f83fb.js +768 -0
  83. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-3dec2b83.js +527 -0
  84. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-43565e48.js +424 -0
  85. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-5f07432e.js +563 -0
  86. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-6024f010.js +3294 -0
  87. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-6f0d6ec7.js +202 -0
  88. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-78c510e0.js +549 -0
  89. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-839c338e.js +4161 -0
  90. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-d39a48fd.js +1170 -0
  91. package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-e633613c.js +1564 -0
  92. package/client/.vite-ssg-temp/vp12eb5cgm/assets/katex-32f21e80.js +6119 -0
  93. package/client/.vite-ssg-temp/vp12eb5cgm/assets/logo-bd69f816.js +180 -0
  94. package/client/.vite-ssg-temp/vp12eb5cgm/assets/markdown-abdb17ca.js +5895 -0
  95. package/client/.vite-ssg-temp/vp12eb5cgm/assets/news-ecba2d88.js +278 -0
  96. package/client/.vite-ssg-temp/vp12eb5cgm/assets/page-d48f3caa.js +752 -0
  97. package/client/.vite-ssg-temp/vp12eb5cgm/assets/post-0ed0dfec.js +1605 -0
  98. package/client/.vite-ssg-temp/vp12eb5cgm/assets/route-block-c0a8bdd8.js +4 -0
  99. package/client/.vite-ssg-temp/vp12eb5cgm/assets/schema-org-f60b7dac.js +477 -0
  100. package/client/.vite-ssg-temp/vp12eb5cgm/assets/site-6caa6511.js +286 -0
  101. package/client/.vite-ssg-temp/vp12eb5cgm/assets/style-f415f7fa.css +3742 -0
  102. package/client/.vite-ssg-temp/vp12eb5cgm/assets/styles-cdaadad2.js +548 -0
  103. package/client/.vite-ssg-temp/vp12eb5cgm/assets/templates-c97584f2.js +574 -0
  104. package/client/.vite-ssg-temp/vp12eb5cgm/assets/theme-192f77ef.js +172 -0
  105. package/client/.vite-ssg-temp/vp12eb5cgm/assets/use-3c036a47.js +669 -0
  106. package/client/.vite-ssg-temp/vp12eb5cgm/assets/use-851c0307.js +619 -0
  107. package/client/.vite-ssg-temp/vp12eb5cgm/assets/vite-vue-f91b9792.js +830 -0
  108. package/client/.vite-ssg-temp/vp12eb5cgm/assets/vscode-bc411e64.js +350 -0
  109. package/client/.vite-ssg-temp/vp12eb5cgm/assets/why-c98bbe8e.js +1131 -0
  110. package/client/.vite-ssg-temp/vp12eb5cgm/assets/write-6a43d4d0.js +4963 -0
  111. package/client/.vite-ssg-temp/vp12eb5cgm/assets/write-6bc2b77c.js +675 -0
  112. package/client/.vite-ssg-temp/vp12eb5cgm/favicon.svg +33 -0
  113. package/client/.vite-ssg-temp/vp12eb5cgm/main.mjs +6239 -0
  114. package/client/.vite-ssg-temp/vp12eb5cgm/valaxy-logo.png +0 -0
  115. package/client/App.vue +1 -1
  116. package/client/components/AppLink.vue +2 -2
  117. package/client/components/ValaxyMd.vue +1 -1
  118. package/client/components/ValaxyOverlay.vue +2 -2
  119. package/client/components/ValaxyPagination.vue +6 -6
  120. package/client/components/debug/ValaxyDevtools.vue +6 -0
  121. package/client/composables/dark.ts +39 -0
  122. package/client/layouts/404.vue +1 -1
  123. package/client/layouts/layout.vue +2 -2
  124. package/client/locales/zh-CN.yml +1 -1
  125. package/client/pages/[...all].vue +2 -0
  126. package/client/styles/common/transition.scss +1 -0
  127. package/client/styles/common/view-transition.css +21 -0
  128. package/dist/chunk-3EJGKTUH.mjs +130 -0
  129. package/dist/chunk-RDNVTVQ5.cjs +129 -0
  130. package/dist/{config-29a16f62.d.ts → config-e5704a2c.d.ts} +223 -1
  131. package/dist/node/cli/index.cjs +1 -0
  132. package/dist/node/cli/index.mjs +2 -0
  133. package/dist/node/index.cjs +1 -1
  134. package/dist/node/index.d.cts +14 -2
  135. package/dist/node/index.d.ts +14 -2
  136. package/dist/node/index.mjs +1 -1
  137. package/dist/types/index.d.cts +3 -220
  138. package/dist/types/index.d.ts +3 -220
  139. package/dist/types/index.mjs +1 -1
  140. package/package.json +19 -18
  141. package/types/config.ts +6 -0
  142. package/LICENSE +0 -21
  143. package/dist/chunk-57ETS265.mjs +0 -130
  144. package/dist/chunk-RAU3RNGI.cjs +0 -129
  145. package/dist/node/cli.cjs +0 -1
  146. package/dist/node/cli.mjs +0 -2
  147. /package/dist/node/{cli.d.cts → cli/index.d.cts} +0 -0
  148. /package/dist/node/{cli.d.ts → cli/index.d.ts} +0 -0
@@ -1,228 +1,11 @@
1
- export { F as FuseListItem, P as PartialDeep, R as RuntimeConfig, S as SiteConfig, b as SocialLink, U as UserSiteConfig, c as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-29a16f62.js';
1
+ import { b as Post } from '../config-e5704a2c.js';
2
+ export { A as Album, E as ExcerptType, F as FuseListItem, h as Page, f as PageFrontMatter, P as PartialDeep, e as Photo, g as PostFrontMatter, R as RuntimeConfig, S as SiteConfig, c as SocialLink, U as UserSiteConfig, d as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-e5704a2c.js';
2
3
  import * as DefaultTheme from 'valaxy/default-theme';
3
4
  export { DefaultTheme };
4
5
  import 'medium-zoom';
5
6
  import '@vueuse/integrations/useFuse';
6
7
  import 'vanilla-lazyload';
7
8
 
8
- interface Album {
9
- /**
10
- * @description:en-US Album Link
11
- */
12
- url: string;
13
- /**
14
- * @description:en-US Album cover
15
- * url
16
- */
17
- cover: string;
18
- /**
19
- * @description:en-US Album caption
20
- */
21
- caption: string;
22
- /**
23
- * @description:en-US Album description
24
- */
25
- desc: string;
26
- }
27
- interface Photo {
28
- src: string;
29
- caption: string;
30
- desc: string;
31
- }
32
- type ExcerptType = 'md' | 'html' | 'text' | 'ai';
33
- interface PageFrontMatter extends Record<string, any> {
34
- /**
35
- * Path of post
36
- * route.path
37
- * @description 路径
38
- */
39
- path: string;
40
- /**
41
- * Title
42
- * @description 文章标题
43
- */
44
- title: string;
45
- date: string | number | Date;
46
- /**
47
- * Updated Time
48
- */
49
- updated: string | number | Date;
50
- /**
51
- * i18n
52
- */
53
- lang: string;
54
- /**
55
- * TODO
56
- * Read Time
57
- * @description 阅读时长
58
- */
59
- duration: string;
60
- /**
61
- * @description Author
62
- * @description:zh-CN 作者
63
- */
64
- author: string;
65
- /**
66
- * Display sponsor info
67
- * @description 是否开启赞助
68
- */
69
- sponsor: boolean;
70
- /**
71
- * Copyright
72
- * @description 是否显示文章底部版权信息
73
- */
74
- copyright: boolean;
75
- /**
76
- * cover
77
- * @description 封面图片
78
- */
79
- cover: string;
80
- /**
81
- * display toc
82
- * @description 是否显示目录
83
- */
84
- toc: boolean;
85
- /**
86
- * display right sidebar
87
- * @description 是否显示右侧侧边栏
88
- */
89
- aside: boolean;
90
- /**
91
- * enable markdown-body class
92
- * @description 是否启用默认的 markdown 样式
93
- */
94
- markdown: boolean;
95
- /**
96
- * icon before title
97
- */
98
- icon: string;
99
- /**
100
- * title color
101
- */
102
- color: string;
103
- /**
104
- * display comment
105
- */
106
- comment: boolean;
107
- /**
108
- * post is end
109
- * @description 是否完结,将在末尾添加衬线字体 Q.E.D.
110
- */
111
- end: boolean;
112
- /**
113
- * use aplayer
114
- */
115
- aplayer: boolean;
116
- /**
117
- * use katex
118
- */
119
- katex: boolean;
120
- /**
121
- * use codepen
122
- */
123
- codepen: boolean;
124
- /**
125
- * use medium-zoom
126
- * @url https://github.com/francoischalifour/medium-zoom
127
- */
128
- medium_zoom: boolean;
129
- /**
130
- * @description:en-US Albums
131
- * @description:zh-CN 相册
132
- */
133
- albums: Album[];
134
- /**
135
- * For layout Gallery
136
- * @description:en-US Photos
137
- */
138
- photos: Photo[];
139
- /**
140
- * @description:zh-CN 是否启用加密,password 存在时默认为 true
141
- */
142
- encrypt: boolean;
143
- /**
144
- * @description:zh-CN 加密密码
145
- */
146
- password?: string;
147
- /**
148
- * @description:zh-CN 相册密码
149
- */
150
- gallery_password?: string;
151
- /**
152
- * @description:zh-CN 加密后的内容
153
- */
154
- encryptedContent?: string;
155
- /**
156
- * @description:zh-CN 加密后的相册
157
- */
158
- encryptedPhotos?: string;
159
- }
160
- interface PostFrontMatter extends PageFrontMatter {
161
- /**
162
- * post card type, can be bilibili/yuque/...
163
- */
164
- type: string;
165
- /**
166
- * override url, and jump directly
167
- */
168
- url: string;
169
- /**
170
- * @description 摘要
171
- */
172
- excerpt: string;
173
- /**
174
- * @default 'html'
175
- * render type of excerpt
176
- * - md: render as raw markdown
177
- * - html: render as html
178
- * - text: render as text
179
- */
180
- excerpt_type: 'md' | 'text' | 'html' | 'ai';
181
- /**
182
- * Category
183
- * @description 分类,若为数组,则按顺序代表多层文件夹
184
- */
185
- categories: string | string[];
186
- /**
187
- * Tags
188
- * @description 标签,可以有多个
189
- */
190
- tags: string[];
191
- /**
192
- * display prev next
193
- * @description 是否显示前一篇、后一篇导航
194
- */
195
- nav: boolean;
196
- /**
197
- * 置顶
198
- */
199
- top: number;
200
- /**
201
- * is draft
202
- * @description 是否为草稿
203
- */
204
- draft: boolean;
205
- /**
206
- * hide in index
207
- * - true/`all`: hide in index & archive
208
- * - `index`: hide in index
209
- * @description 是否隐藏
210
- */
211
- hide: 'index' | boolean;
212
- /**
213
- * when the post is updated more than 30 days ago, show a warning
214
- * default 30 days, you can set `time_warning` in frontmatter to change it
215
- *
216
- * @zh
217
- * 当文章更新时间超过 30 天时,显示一个警告
218
- * 默认 30 天,你可以在 frontmatter 中设置 `time_warning` (数字)来修改,单位 ms
219
- * @example 3600000
220
- */
221
- time_warning: boolean | number;
222
- }
223
- type Page = Partial<PageFrontMatter>;
224
- type Post = Partial<PostFrontMatter>;
225
-
226
9
  type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
227
10
  interface Header {
228
11
  /**
@@ -268,4 +51,4 @@ interface PageDataPayload {
268
51
  }
269
52
  type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
270
53
 
271
- export { Album, CleanUrlsMode, ExcerptType, HeadConfig, Header, Page, PageData, PageDataPayload, PageFrontMatter, Photo, Post, PostFrontMatter };
54
+ export { CleanUrlsMode, HeadConfig, Header, PageData, PageDataPayload, Post };
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{e}from"../chunk-GY4S4RDR.mjs";e();e();e();e();e();e();
2
+ import{e as t}from"../chunk-GY4S4RDR.mjs";t();t();t();t();t();t();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.15.9",
4
+ "version": "0.15.11-alpha.0",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -30,6 +30,7 @@
30
30
  "require": "./dist/node/index.cjs"
31
31
  },
32
32
  "./types": "./dist/types/index.d.ts",
33
+ "./default-theme": "./types/default-theme.d.ts",
33
34
  "./*": "./*"
34
35
  },
35
36
  "main": "dist/node/index.cjs",
@@ -51,6 +52,12 @@
51
52
  "engines": {
52
53
  "node": "^14.18.0 || >=16.0.0"
53
54
  },
55
+ "scripts": {
56
+ "build": "rimraf dist && tsup --splitting",
57
+ "dev": "tsup --splitting --watch",
58
+ "preview": "vite preview",
59
+ "preview-https": "serve dist"
60
+ },
54
61
  "dependencies": {
55
62
  "@antfu/utils": "^0.7.6",
56
63
  "@ctrl/tinycolor": "^4.0.2",
@@ -58,9 +65,9 @@
58
65
  "@iconify-json/ri": "^1.1.12",
59
66
  "@intlify/unplugin-vue-i18n": "^1.4.0",
60
67
  "@types/body-scroll-lock": "^3.1.1",
61
- "@unhead/addons": "^1.7.4",
62
- "@unhead/schema-org": "^1.7.4",
63
- "@unhead/vue": "^1.7.4",
68
+ "@unhead/addons": "^1.8.0",
69
+ "@unhead/schema-org": "^1.8.0",
70
+ "@unhead/vue": "^1.8.0",
64
71
  "@vitejs/plugin-vue": "^4.4.0",
65
72
  "@vueuse/core": "^10.5.0",
66
73
  "@vueuse/integrations": "^10.5.0",
@@ -70,7 +77,7 @@
70
77
  "cross-spawn": "^7.0.3",
71
78
  "css-i18n": "^0.0.2",
72
79
  "dayjs": "^1.11.10",
73
- "defu": "^6.1.2",
80
+ "defu": "^6.1.3",
74
81
  "ejs": "^3.1.9",
75
82
  "escape-html": "^1.0.3",
76
83
  "feed": "^4.2.2",
@@ -99,20 +106,20 @@
99
106
  "pascalcase": "^2.0.0",
100
107
  "pinia": "^2.1.7",
101
108
  "qrcode": "^1.5.3",
102
- "sass": "^1.69.4",
109
+ "sass": "^1.69.5",
103
110
  "shiki": "^0.14.5",
104
111
  "star-markdown-css": "^0.4.2",
105
112
  "unconfig": "^0.3.11",
106
- "unocss": "^0.56.5",
113
+ "unocss": "^0.57.1",
107
114
  "unplugin-vue-components": "^0.25.2",
108
115
  "vanilla-lazyload": "^17.8.5",
109
116
  "vite": "^4.5.0",
110
117
  "vite-plugin-pages": "^0.31.0",
111
118
  "vite-plugin-vue-layouts": "^0.8.0",
112
- "vite-ssg": "0.23.3",
119
+ "vite-ssg": "0.23.4",
113
120
  "vite-ssg-sitemap": "0.6.0",
114
- "vue": "^3.3.6",
115
- "vue-i18n": "^9.5.0",
121
+ "vue": "^3.3.7",
122
+ "vue-i18n": "^9.6.1",
116
123
  "vue-router": "^4.2.5",
117
124
  "yargs": "^17.7.2"
118
125
  },
@@ -128,7 +135,7 @@
128
135
  "@types/ejs": "^3.1.4",
129
136
  "@types/html-to-text": "^9.0.3",
130
137
  "@types/katex": "^0.16.5",
131
- "@types/markdown-it": "^13.0.4",
138
+ "@types/markdown-it": "^13.0.5",
132
139
  "@types/nprogress": "^0.2.2",
133
140
  "@types/pascalcase": "^1.0.2",
134
141
  "@types/qrcode": "^1.5.4",
@@ -138,11 +145,5 @@
138
145
  "https-localhost": "^4.7.1",
139
146
  "markdown-it-image-figures": "^2.1.1",
140
147
  "shiki-processor": "^0.1.3"
141
- },
142
- "scripts": {
143
- "build": "rimraf dist && tsup --splitting",
144
- "dev": "tsup --splitting --watch",
145
- "preview": "vite preview",
146
- "preview-https": "serve dist"
147
148
  }
148
- }
149
+ }
package/types/config.ts CHANGED
@@ -3,6 +3,7 @@ import type { FuseOptions } from '@vueuse/integrations/useFuse'
3
3
  import type { ILazyLoadOptions } from 'vanilla-lazyload'
4
4
  import type * as DefaultTheme from 'valaxy/default-theme'
5
5
  import type { ValaxyAddon } from '../types'
6
+ import type { PostFrontMatter } from './posts'
6
7
  import type { FuseListItem } from './node'
7
8
 
8
9
  export interface SocialLink {
@@ -157,6 +158,11 @@ export interface SiteConfig {
157
158
  }
158
159
  }
159
160
 
161
+ /**
162
+ * set post default frontmatter
163
+ */
164
+ frontmatter: Partial<PostFrontMatter>
165
+
160
166
  /**
161
167
  * comment: waline/...
162
168
  */
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 云游君 YunYouJun <me@yunyoujun.cn>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, 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,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.