valaxy 0.6.3 → 0.7.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 (68) hide show
  1. package/client/components/PostCard.vue +26 -29
  2. package/client/config.ts +1 -1
  3. package/client/index.ts +5 -0
  4. package/client/main.ts +3 -0
  5. package/client/setup/main.ts +11 -0
  6. package/client/setups.ts +16 -0
  7. package/client/styles/common/custom-blocks.scss +7 -0
  8. package/client/styles/common/markdown.scss +0 -4
  9. package/dist/chunk-35O5DRGK.mjs +2270 -0
  10. package/dist/chunk-4VSND5ZW.mjs +1 -0
  11. package/dist/chunk-CDIW2WTI.js +1 -0
  12. package/dist/chunk-RGBLPQZ2.js +2270 -0
  13. package/dist/{index.d.ts → client/index.d.ts} +16 -160
  14. package/dist/client/index.js +1 -0
  15. package/dist/client/index.mjs +1 -0
  16. package/dist/index-a6b0a69b.d.ts +16 -0
  17. package/dist/{config-112ac884.d.ts → index-afca77df.d.ts} +223 -6
  18. package/dist/node/cli.js +13 -8
  19. package/dist/node/cli.mjs +13 -8
  20. package/dist/node/index.d.ts +13 -35
  21. package/dist/node/index.js +1 -1
  22. package/dist/node/index.mjs +1 -1
  23. package/dist/types/index.d.ts +10 -0
  24. package/dist/types/index.js +1 -0
  25. package/dist/types/index.mjs +0 -0
  26. package/package.json +26 -22
  27. package/config/index.ts +0 -18
  28. package/dist/chunk-4TQV23CA.mjs +0 -40
  29. package/dist/chunk-C4MEVIMD.js +0 -40
  30. package/dist/chunk-EAN2KU6W.mjs +0 -1
  31. package/dist/chunk-U5OMNIOK.js +0 -1
  32. package/dist/index.js +0 -1
  33. package/dist/index.mjs +0 -1
  34. package/index.ts +0 -3
  35. package/node/build.ts +0 -31
  36. package/node/cli.ts +0 -192
  37. package/node/config.ts +0 -156
  38. package/node/index.ts +0 -1
  39. package/node/markdown/check.ts +0 -14
  40. package/node/markdown/highlight.ts +0 -38
  41. package/node/markdown/index.ts +0 -109
  42. package/node/markdown/markdown-it/container.ts +0 -61
  43. package/node/markdown/markdown-it/headings.ts +0 -32
  44. package/node/markdown/markdown-it/highlightLines.ts +0 -96
  45. package/node/markdown/markdown-it/katex.ts +0 -210
  46. package/node/markdown/markdown-it/parseHeader.ts +0 -72
  47. package/node/markdown/markdownToVue.ts +0 -277
  48. package/node/markdown/slugify.ts +0 -24
  49. package/node/options.ts +0 -108
  50. package/node/plugins/extendConfig.ts +0 -46
  51. package/node/plugins/index.ts +0 -224
  52. package/node/plugins/preset.ts +0 -186
  53. package/node/plugins/unocss.ts +0 -110
  54. package/node/plugins/valaxy.ts +0 -1
  55. package/node/rss.ts +0 -127
  56. package/node/server.ts +0 -23
  57. package/node/shims.d.ts +0 -33
  58. package/node/utils/cli.ts +0 -103
  59. package/node/utils/getGitTimestamp.ts +0 -13
  60. package/node/utils/index.ts +0 -59
  61. package/node/utils/net.ts +0 -20
  62. package/node/vite.ts +0 -52
  63. package/shared/index.ts +0 -1
  64. package/tsup.config.ts +0 -25
  65. package/types/config.ts +0 -217
  66. package/types/data.ts +0 -31
  67. package/types/index.ts +0 -3
  68. package/types/posts.ts +0 -122
package/types/posts.ts DELETED
@@ -1,122 +0,0 @@
1
- export interface Post extends Record<string, any> {
2
- /**
3
- * Path of post
4
- * route.path
5
- * @description 路径
6
- */
7
- path?: string
8
- /**
9
- * Title
10
- * @description 文章标题
11
- */
12
- title?: string
13
- date?: string | number | Date
14
- /**
15
- * Updated Time
16
- */
17
- updated?: string | number | Date
18
- lang?: string
19
- /**
20
- * TODO
21
- * Read Time
22
- * @description 阅读时长
23
- */
24
- duration?: string
25
- /**
26
- * post card type, can be bilibili/yuque/...
27
- */
28
- type?: string
29
- /**
30
- * override url, and jump directly
31
- */
32
- url?: string
33
- /**
34
- * @description 摘要
35
- */
36
- excerpt?: string
37
-
38
- /**
39
- * Display sponsor info
40
- * @description 是否开启赞助
41
- */
42
- sponsor?: boolean
43
- /**
44
- * Copyright
45
- * @description 是否显示文章底部版权信息
46
- */
47
- copyright?: boolean
48
-
49
- /**
50
- * Category
51
- * @description 分类,若为数组,则按顺序代表多层文件夹
52
- */
53
- categories?: string | string[]
54
- /**
55
- * Tags
56
- * @description 标签,可以有多个
57
- */
58
- tags?: string[]
59
-
60
- /**
61
- * display prev next
62
- * @description 是否显示前一篇、后一篇导航
63
- */
64
- nav?: boolean
65
-
66
- /**
67
- * icon before title
68
- */
69
- icon?: string
70
- /**
71
- * title color
72
- */
73
- color?: string
74
- /**
75
- * display comment
76
- */
77
- comment?: boolean
78
- /**
79
- * post is end
80
- * @description 是否完结,将在末尾添加衬线字体 Q.E.D.
81
- */
82
- end?: boolean
83
-
84
- /**
85
- * use aplayer
86
- */
87
- aplayer?: boolean
88
- /**
89
- * use katex
90
- */
91
- katex?: boolean
92
- /**
93
- * use codepen
94
- */
95
- codepen?: boolean
96
-
97
- /**
98
- * 置顶
99
- */
100
- top?: number
101
-
102
- /**
103
- * display toc
104
- * @description 是否显示目录
105
- */
106
- toc?: boolean
107
- /**
108
- * is draft
109
- * @description 是否为草稿
110
- */
111
- draft?: boolean
112
- /**
113
- * cover
114
- * @description 封面图片
115
- */
116
- cover?: string
117
- /**
118
- * enable markdown-body class
119
- * @description 是否启用默认的 markdown 样式
120
- */
121
- markdown?: boolean
122
- }