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/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,3 +1,4 @@
1
+ // do not export node type here
1
2
  export * from './config'
2
3
  export * from './data'
3
4
  export * from './posts'
@@ -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
- }