valaxy 0.9.0 → 0.9.3
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/App.vue +4 -0
- package/client/composables/common.ts +11 -2
- package/client/composables/post.ts +1 -1
- package/client/composables/sidebar.ts +36 -1
- package/client/config.ts +2 -8
- package/client/index.html +4 -10
- package/client/setups.ts +0 -6
- package/client/styles/common/markdown.scss +0 -4
- package/client/styles/global/i18n.scss +4 -2
- package/client/styles/global/index.scss +0 -1
- package/client/styles/index.scss +0 -6
- package/client/styles/palette.scss +5 -1
- package/client/utils/helper.ts +2 -0
- package/client/vite.config.ts +3 -0
- package/dist/{chunk-6SOT7TNG.js → chunk-4ICNZPIN.js} +106 -92
- package/dist/{chunk-ORY7PPZG.mjs → chunk-WXYDKT6O.mjs} +106 -92
- package/dist/{config-60c840d8.d.ts → config-1d2e9ebd.d.ts} +13 -1
- package/dist/node/cli.js +8 -8
- package/dist/node/cli.mjs +8 -8
- package/dist/node/index.d.ts +23 -4
- package/dist/node/index.js +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +7 -7
- package/types/config.ts +13 -1
- package/types/index.ts +1 -0
- package/client/styles/common/button.scss +0 -27
package/types/config.ts
CHANGED
|
@@ -27,6 +27,11 @@ export interface AlgoliaSearchOptions {
|
|
|
27
27
|
|
|
28
28
|
// packages/valaxy/node/config.ts
|
|
29
29
|
export interface ValaxyConfig<T = ValaxyThemeConfig> {
|
|
30
|
+
/**
|
|
31
|
+
* enable auto (light/dark mode)
|
|
32
|
+
* @default 'auto'
|
|
33
|
+
*/
|
|
34
|
+
mode: 'light' | 'dark' | 'auto'
|
|
30
35
|
/**
|
|
31
36
|
* Default language
|
|
32
37
|
* @description 默认语言
|
|
@@ -79,8 +84,15 @@ export interface ValaxyConfig<T = ValaxyThemeConfig> {
|
|
|
79
84
|
}
|
|
80
85
|
}
|
|
81
86
|
|
|
87
|
+
date: {
|
|
88
|
+
/**
|
|
89
|
+
* The format of date
|
|
90
|
+
* @default '' as 'YYYY-MM-DD HH:mm:ss'
|
|
91
|
+
*/
|
|
92
|
+
format: string
|
|
93
|
+
}
|
|
82
94
|
/**
|
|
83
|
-
* show last updated time by git
|
|
95
|
+
* show last updated time by git/mtime
|
|
84
96
|
*/
|
|
85
97
|
lastUpdated: boolean
|
|
86
98
|
|
package/types/index.ts
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
.yun-icon-btn {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
|
|
8
|
-
border: none;
|
|
9
|
-
width: 3rem;
|
|
10
|
-
height: 3rem;
|
|
11
|
-
|
|
12
|
-
border-radius: 50%;
|
|
13
|
-
|
|
14
|
-
transition: background-color var(--va-transition-duration);
|
|
15
|
-
|
|
16
|
-
div {
|
|
17
|
-
font-size: 1.2rem;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:hover {
|
|
21
|
-
background-color: rgba(var(--va-c-primary-rgb), 0.08);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:active {
|
|
25
|
-
background-color: rgba(var(--va-c-primary-rgb), 0.16);
|
|
26
|
-
}
|
|
27
|
-
}
|