valaxy 0.8.1 → 0.9.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy",
3
- "version": "0.8.1",
3
+ "version": "0.9.2",
4
4
  "description": "📄 Vite & Vue powered static blog generator.",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
@@ -59,7 +59,7 @@
59
59
  "@iconify-json/ri": "^1.1.3",
60
60
  "@intlify/vite-plugin-vue-i18n": "^3.4.0",
61
61
  "@vitejs/plugin-vue": "^2.3.3",
62
- "@vueuse/core": "^8.9.1",
62
+ "@vueuse/core": "^8.9.2",
63
63
  "@vueuse/head": "^0.7.6",
64
64
  "consola": "^2.15.3",
65
65
  "critters": "^0.0.16",
@@ -73,7 +73,7 @@
73
73
  "is-installed-globally": "^0.4.0",
74
74
  "katex": "^0.16.0",
75
75
  "kolorist": "^1.5.1",
76
- "lru-cache": "^7.12.0",
76
+ "lru-cache": "^7.13.0",
77
77
  "markdown-it": "^13.0.1",
78
78
  "markdown-it-anchor": "^8.6.4",
79
79
  "markdown-it-attrs": "^4.1.4",
@@ -84,22 +84,21 @@
84
84
  "markdown-it-task-lists": "^2.1.1",
85
85
  "nprogress": "^0.2.0",
86
86
  "open": "^8.4.0",
87
- "pinia": "^2.0.14",
87
+ "pinia": "^2.0.16",
88
88
  "sass": "^1.53.0",
89
89
  "shiki": "^0.10.1",
90
90
  "star-markdown-css": "^0.4.0",
91
91
  "unconfig": "^0.3.5",
92
- "unocss": "^0.44.0",
92
+ "unocss": "^0.44.2",
93
93
  "unplugin-vue-components": "^0.21.1",
94
94
  "vite": "^2.9.14",
95
- "vite-plugin-inspect": "^0.5.1",
96
95
  "vite-plugin-pages": "^0.25.0",
97
96
  "vite-plugin-vue-layouts": "^0.6.0",
98
97
  "vite-ssg": "0.19.2",
99
- "vite-ssg-sitemap": "0.2.7",
98
+ "vite-ssg-sitemap": "0.3.1",
100
99
  "vue": "^3.2.37",
101
100
  "vue-i18n": "^9.1.10",
102
- "vue-router": "^4.1.1",
101
+ "vue-router": "^4.1.2",
103
102
  "yargs": "^17.5.1"
104
103
  },
105
104
  "devDependencies": {
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
1
  export * from './config'
2
2
  export * from './data'
3
3
  export * from './posts'
4
+ export * from './setups'
@@ -0,0 +1,8 @@
1
+ import type { VitePluginConfig as UnoCssConfig } from 'unocss/vite'
2
+ import type { Awaitable } from '@antfu/utils'
3
+
4
+ export type UnoSetup = () => Awaitable<Partial<UnoCssConfig> | undefined>
5
+
6
+ export function defineUnoSetup(fn: UnoSetup) {
7
+ return fn
8
+ }
@@ -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
- }