@varlet/cli 1.27.19 → 1.27.20-alpha.1660211980346

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.
@@ -101,5 +101,5 @@
101
101
  "Chrome >= 51",
102
102
  "iOS >= 10"
103
103
  ],
104
- "packageManager": "pnpm@6.24.3"
104
+ "packageManager": "pnpm@7.9.0"
105
105
  }
@@ -101,5 +101,5 @@
101
101
  "Chrome >= 51",
102
102
  "iOS >= 10"
103
103
  ],
104
- "packageManager": "pnpm@6.24.3"
104
+ "packageManager": "pnpm@7.9.0"
105
105
  }
@@ -11,7 +11,7 @@ function isVersion(message) {
11
11
  }
12
12
  function commitLint(gitParams) {
13
13
  var message = require('fs').readFileSync(gitParams, 'utf-8').trim();
14
- var COMMIT_MESSAGE_RE = /^(revert|fix|feat|docs|perf|test|types|style|build|chore|release|refactor)(\(.+\))?: (.|\n)+/;
14
+ var COMMIT_MESSAGE_RE = /^(revert|fix|feat|docs|perf|test|types|style|build|chore|release|refactor)(\(.+\))?!?: (.|\n)+/;
15
15
  if (!isVersion(message) && !COMMIT_MESSAGE_RE.test(message)) {
16
16
  logger_1.default.error("Commit message invalid");
17
17
  logger_1.default.warning("The rules for commit messages are as follows\n\nExample:\n\nfeat: add a new feature\nfeat(ui/button): add a new feature in the ui/button scope\n\nfix: fix a bug\nfix(ui/button): fix a bug in the ui/button scope\n\ndocs: fix an error in the documentation\ndocs(ui/button): fix a documentation error in the ui/button scope\n\nAllowed types:\n- fix\n- feat\n- docs\n- perf\n- test\n- types\n- style\n- build\n- chore\n- release\n- refactor\n- revert\n\nCommit message reference: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y\n\u53C2\u8003\u962E\u4E00\u5CF0Commit message\u7F16\u5199\u6307\u5357: https://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html");
@@ -64,7 +64,7 @@ function getBuildConfig(varletConfig) {
64
64
  var devConfig = getDevConfig(varletConfig);
65
65
  return __assign(__assign({}, devConfig), { base: './', build: {
66
66
  outDir: constant_1.SITE_OUTPUT_PATH,
67
- brotliSize: false,
67
+ reportCompressedSize: false,
68
68
  emptyOutDir: true,
69
69
  cssTarget: 'chrome61',
70
70
  rollupOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/cli",
3
- "version": "1.27.19",
3
+ "version": "1.27.20-alpha.1660211980346",
4
4
  "description": "cli of varlet",
5
5
  "bin": {
6
6
  "varlet-cli": "./lib/index.js"
@@ -28,16 +28,16 @@
28
28
  "url": "https://github.com/varletjs/varlet/issues"
29
29
  },
30
30
  "dependencies": {
31
- "@varlet/icons": "1.27.19",
32
- "@varlet/shared": "1.27.19",
33
- "@varlet/markdown-vite-plugin": "1.27.19",
34
- "@varlet/touch-emulator": "1.27.19",
31
+ "@varlet/icons": "1.27.20-alpha.1660211980346",
32
+ "@varlet/shared": "1.27.20-alpha.1660211980346",
33
+ "@varlet/markdown-vite-plugin": "1.27.20-alpha.1660211980346",
34
+ "@varlet/touch-emulator": "1.27.20-alpha.1660211980346",
35
35
  "@babel/core": "^7.14.8",
36
36
  "@babel/helper-plugin-utils": "^7.14.5",
37
37
  "@babel/preset-env": "^7.14.8",
38
38
  "@babel/preset-typescript": "^7.14.5",
39
- "@vitejs/plugin-vue": "2.2.0",
40
- "@vitejs/plugin-vue-jsx": "1.3.5",
39
+ "@vitejs/plugin-vue": "3.0.1",
40
+ "@vitejs/plugin-vue-jsx": "2.0.0",
41
41
  "@vue/babel-plugin-jsx": "1.1.1",
42
42
  "@vue/compiler-sfc": "3.2.25",
43
43
  "@vue/runtime-core": "3.2.25",
@@ -60,7 +60,7 @@
60
60
  "slash": "^3.0.0",
61
61
  "ts-jest": "^26.5.1",
62
62
  "typescript": "^4.4.4",
63
- "vite": "2.9.14",
63
+ "vite": "3.0.4",
64
64
  "vite-plugin-html": "^2.1.0",
65
65
  "vue": "3.2.25",
66
66
  "vue-jest": "^5.0.0-alpha.8"
@@ -76,7 +76,7 @@
76
76
  "@types/semver": "^7.3.9"
77
77
  },
78
78
  "peerDependencies": {
79
- "@varlet/touch-emulator": "1.27.19",
79
+ "@varlet/touch-emulator": "1.27.20-alpha.1660211980346",
80
80
  "@vue/test-utils": "^2.0.0-rc.6",
81
81
  "clipboard": "^2.0.6",
82
82
  "live-server": "^1.2.1",
@@ -1,231 +1,124 @@
1
- .home-page {
2
- position: relative;
3
- width: 100vw;
4
- height: 100vh;
5
- box-sizing: border-box;
6
- min-width: 1200px;
7
- min-height: 460px;
8
- background: var(--site-config-color-home-page-background);
9
- overflow: hidden;
10
- display: flex;
11
- align-items: center;
12
- }
13
-
14
- @keyframes fade-in {
1
+ @keyframes logo-wave {
15
2
  0% {
16
- opacity: 0;
17
- transform: translateX(-100%);
3
+ transform: translate(8%, 8%);
18
4
  }
19
5
 
20
-
21
- to {
22
- opacity: 1;
23
- transform: translateX(0%);
6
+ 20% {
7
+ transform: translate(-8%, 8%);
24
8
  }
25
- }
26
9
 
27
- @keyframes slash-1 {
28
- from {
29
- transform: rotate(90deg);
30
- ;
10
+ 40% {
11
+ transform: translate(-8%, -8%);
31
12
  }
32
13
 
33
- to {
34
- transform: rotate(10deg);
14
+ 60% {
15
+ transform: translate(-2%, 8%);
35
16
  }
36
- }
37
17
 
38
- @keyframes slash-2 {
39
- from {
40
- transform: rotate(90deg);
41
- ;
18
+ 80% {
19
+ transform: translate(8%, -8%);
42
20
  }
43
21
 
44
- to {
45
- transform: rotate(20deg);
22
+ 100% {
23
+ transform: translate(8%, 8%);
46
24
  }
47
25
  }
48
26
 
49
- @keyframes slash-3 {
50
- from {
51
- transform: rotate(90deg);
52
- ;
27
+ .varlet-doc-index {
28
+ display: flex;
29
+ flex-direction: column;
30
+ align-items: center;
31
+ min-height: 100vh;
32
+ box-sizing: border-box;
33
+ background: var(--site-config-color-index-page-background);
34
+
35
+ &__layout {
36
+ display: flex;
37
+ flex-direction: column;
38
+ align-items: center;
39
+ padding: 100px;
40
+ max-width: 1200px;
53
41
  }
54
42
 
55
- to {
56
- transform: rotate(30deg);
43
+ &__logo {
44
+ width: 100%;
45
+ height: 100%;
46
+ flex-shrink: 0;
47
+ z-index: 2;
57
48
  }
58
- }
59
49
 
60
- @keyframes slash-4 {
61
- from {
62
- transform: rotate(90deg);
63
- ;
50
+ &__logo-container {
51
+ position: relative;
52
+ display: flex;
53
+ justify-content: center;
54
+ width: 160px;
55
+ height: 160px;
64
56
  }
65
57
 
66
- to {
67
- transform: rotate(40deg);
58
+ &__logo-background-mask {
59
+ position: absolute;
60
+ left: -40px;
61
+ top: -40px;
62
+ bottom: -40px;
63
+ right: -40px;
64
+ background: var(--site-config-color-index-page-logo-mask-background);
65
+ transition: background-color .2s;
66
+ filter: blur(45px);
67
+ border-radius: 50%;
68
+ animation: logo-wave 6s infinite linear;
68
69
  }
69
- }
70
70
 
71
- @keyframes slash-5 {
72
- from {
73
- transform: rotate(90deg);
74
- ;
71
+ &__title {
72
+ font-size: 54px;
73
+ margin-top: 60px;
75
74
  }
76
75
 
77
- to {
78
- transform: rotate(50deg);
76
+ &__description {
77
+ width: 700px;
78
+ font-size: 16px;
79
+ line-height: 28px;
80
+ letter-spacing: 1px;
81
+ margin-top: 30px;
82
+ text-align: center;
83
+ color: var(--site-config-color-index-page-second-text-color);
79
84
  }
80
- }
81
85
 
82
- .slash-box {
83
- position: absolute;
84
- width: 30px;
85
- bottom: -70%;
86
- top: -130%;
87
- right: 52%;
88
- transform-origin: bottom right;
89
- transition: box-shadow 0.5s;
90
- box-shadow: -20px 0 20px var(--site-config-color-home-page-slash);
91
- }
86
+ &__link-button-group {
87
+ display: flex;
88
+ justify-content: space-around;
89
+ margin-top: 30px;
90
+ }
92
91
 
93
- .box-1 {
94
- animation: slash-1 .75s forwards;
95
- }
92
+ &__link-button {
93
+ height: 44px;
94
+ font-size: 18px;
95
+ transition: all .25s;
96
+ margin: 0 10px;
97
+ }
96
98
 
97
- .box-2 {
98
- animation: slash-2 .75s forwards;
99
- }
99
+ &__link-button-text {
100
+ margin-right: 4px;
101
+ }
100
102
 
101
- .box-3 {
102
- animation: slash-3 .75s forwards;
103
- }
103
+ &__features {
104
+ display: flex;
105
+ justify-content: center;
106
+ flex-wrap: wrap;
107
+ margin-top: 60px;
108
+ }
104
109
 
105
- .box-4 {
106
- animation: slash-4 .75s forwards;
107
- }
110
+ &__feature {
111
+ width: 280px;
112
+ margin: 10px;
113
+ padding: 20px;
114
+ border-radius: 4px;
115
+ background: var(--site-config-color-index-page-feature-background);
116
+ box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
117
+ }
108
118
 
109
- .box-5 {
110
- animation: slash-5 .75s forwards;
119
+ &__feature-description {
120
+ color: var(--site-config-color-index-page-second-text-color);
121
+ font-size: 14px;
122
+ margin-top: 10px;
123
+ }
111
124
  }
112
-
113
- .profile-container {
114
- height: 100vh;
115
- padding-left: 10vw;
116
- display: flex;
117
- justify-content: center;
118
- align-items: center;
119
-
120
- .container-box {
121
- width: 35vw;
122
- min-width: 500px;
123
-
124
- .logo-container {
125
- margin-right: 20px;
126
- }
127
-
128
- .button-group {
129
- display: flex;
130
- margin-top: 25px;
131
- align-items: center;
132
- }
133
-
134
- .block-button-content {
135
- display: flex;
136
- align-items: center;
137
- }
138
-
139
- .common-button {
140
- height: 52px;
141
- font-size: 18px;
142
- transition: all .25s;
143
- animation: fade-in .75s forwards;
144
- }
145
-
146
- .extra-button {
147
- flex-shrink: 0;
148
- background-color: var(--site-config-color-home-page-extra-button-background);
149
- }
150
-
151
- .github-button {
152
- background-color: var(--site-config-color-home-page-github-button-background);
153
- color: #fff;
154
- }
155
-
156
- .primary-button {
157
- background-color: var(--site-config-color-home-page-primary-button-background);
158
- }
159
-
160
- .margin-left {
161
- margin-left: 10px;
162
- }
163
-
164
- @media all and (max-width: 2560px) {
165
- .description-container {
166
- display: flex;
167
- margin-bottom: 40px;
168
- }
169
-
170
- .base-title {
171
- font-size: 110px;
172
- line-height: 72px;
173
- font-weight: 500;
174
- margin-top: 21px;
175
- animation: fade-in .75s forwards;
176
- }
177
-
178
- .base-description {
179
- font-size: 20px;
180
- line-height: 38px;
181
- padding-left: 4px;
182
- font-weight: 500;
183
- margin-bottom: 43px;
184
- letter-spacing: 1px;
185
- animation: fade-in .75s forwards;
186
- }
187
-
188
- .logo-box {
189
- width: 120px;
190
- height: 120px;
191
- flex-shrink: 0;
192
- margin-right: 30px;
193
- z-index: 2;
194
- }
195
- }
196
-
197
- @media all and (max-width: 1920px) {
198
-
199
- .description-container {
200
- display: flex;
201
- margin-bottom: 35px;
202
- }
203
-
204
- .base-title {
205
- font-size: 84px;
206
- line-height: 72px;
207
- font-weight: 500;
208
- margin-top: 8px;
209
- animation: fade-in .75s forwards;
210
- }
211
-
212
- .base-description {
213
- font-size: 16px;
214
- line-height: 28px;
215
- padding-left: 4px;
216
- font-weight: 500;
217
- margin-bottom: 45px;
218
- letter-spacing: 1px;
219
- animation: fade-in .75s forwards;
220
- }
221
-
222
- .logo-box {
223
- width: 90px;
224
- height: 90px;
225
- flex-shrink: 0;
226
- margin-right: 25px;
227
- z-index: 2;
228
- }
229
- }
230
- }
231
- }
@@ -4,20 +4,14 @@ import config from '@config'
4
4
  import VarSiteButton from '../../../components/button'
5
5
  import VarSiteIcon from '../../../components/icon'
6
6
  import { get } from 'lodash-es'
7
- import { ref, watch, computed } from 'vue'
7
+ import { ref, watch } from 'vue'
8
8
  import { useRoute, useRouter } from 'vue-router'
9
9
  import { getBrowserThemes, setThemes } from '../../../utils'
10
10
  import { getPCLocationInfo, watchThemes } from '@varlet/cli/site/utils'
11
- import en_US from './locale/en-US'
12
- import zh_CN from './locale/zh-CN'
13
- import type { Ref, ComputedRef } from 'vue'
11
+ import type { Ref } from 'vue'
14
12
 
15
13
  const route = useRoute()
16
14
  const router = useRouter()
17
- const packs = {
18
- 'zh-CN': zh_CN,
19
- 'en-US': en_US,
20
- } as any
21
15
 
22
16
  const github = get(config, 'pc.header.github')
23
17
  const themesKey = get(config, 'themesKey')
@@ -26,19 +20,7 @@ const darkMode: Ref<boolean> = ref(get(config, 'pc.header.darkMode'))
26
20
  const title: Ref<string> = ref(get(config, 'title'))
27
21
  const language: Ref<string> = ref(get(config, 'defaultLanguage'))
28
22
  const languages: Ref<Record<string, string>> = ref(get(config, 'pc.header.i18n'))
29
- const pack: Ref<Record<string, string>> = ref({})
30
-
31
- const description: ComputedRef<string> = computed(() => {
32
- const { indexPage = {} } = get(config, 'pc')
33
-
34
- return indexPage?.description?.[language.value] || pack.value.description
35
- })
36
-
37
- const started: ComputedRef<string> = computed(() => {
38
- const { indexPage = {} } = get(config, 'pc')
39
-
40
- return indexPage?.started?.[language.value] || pack.value.started
41
- })
23
+ const indexPage: Ref<Record<string, any>> = get(config, 'pc.indexPage')
42
24
 
43
25
  const goGithub = () => {
44
26
  window.open(github)
@@ -59,7 +41,7 @@ const setCurrentThemes = (themes: 'themes' | 'darkThemes') => {
59
41
  const toggleTheme = () => {
60
42
  setCurrentThemes(currentThemes.value === 'darkThemes' ? 'themes' : 'darkThemes')
61
43
  window.postMessage(getThemesMessage(), '*')
62
- ; (document.getElementById('mobile') as HTMLIFrameElement)?.contentWindow!.postMessage(getThemesMessage(), '*')
44
+ ;(document.getElementById('mobile') as HTMLIFrameElement)?.contentWindow!.postMessage(getThemesMessage(), '*')
63
45
  }
64
46
 
65
47
  const setLocale = () => {
@@ -67,7 +49,6 @@ const setLocale = () => {
67
49
  if (!lang) return
68
50
 
69
51
  language.value = lang
70
- pack.value = packs[lang]
71
52
  document.title = get(config, 'pc.title')[lang] as string
72
53
  }
73
54
 
@@ -93,47 +74,41 @@ watch(() => route.path, setLocale, { immediate: true })
93
74
  </script>
94
75
 
95
76
  <template>
96
- <div class="home-page">
97
- <div class="slash-box box-1"></div>
98
- <div class="slash-box box-2"></div>
99
- <div class="slash-box box-3"></div>
100
- <div class="slash-box box-4"></div>
101
- <div class="slash-box box-5"></div>
102
- <div class="profile-container">
103
- <div class="container-box">
104
- <div class="description-container">
105
- <animation-box class="logo-box" />
106
- <div class="base-title">{{ title }}</div>
107
- </div>
108
- <div class="base-description">{{ description }}</div>
109
-
110
- <div class="button-group">
111
- <var-site-button class="common-button github-button" block @click="goGithub">
112
- <div class="block-button-content">
113
- <span>GITHUB</span>
114
- <var-site-icon style="margin-left: 10px" name="github" size="24px" />
115
- </div>
116
- </var-site-button>
117
- <var-site-button class="common-button extra-button margin-left" text v-if="darkMode" @click="toggleTheme">
118
- <var-site-icon size="24px" :name="currentThemes === 'themes' ? 'white-balance-sunny' : 'weather-night'" />
119
- </var-site-button>
120
- </div>
77
+ <div class="varlet-doc-index">
78
+ <div class="varlet-doc-index__layout">
79
+ <div class="varlet-doc-index__logo-container">
80
+ <div class="varlet-doc-index__logo-background-mask"></div>
81
+ <animation-box class="varlet-doc-index__logo" />
82
+ </div>
83
+
84
+ <div class="varlet-doc-index__title">{{ title }}</div>
85
+ <div class="varlet-doc-index__description">{{ indexPage.description[language] }}</div>
86
+ <div class="varlet-doc-index__link-button-group">
87
+ <var-site-button class="varlet-doc-index__link-button" text outline @click="goGithub">
88
+ <var-site-icon name="github" size="24px" />
89
+ </var-site-button>
90
+ <var-site-button class="varlet-doc-index__link-button" text outline v-if="darkMode" @click="toggleTheme">
91
+ <var-site-icon size="24px" :name="currentThemes === 'themes' ? 'white-balance-sunny' : 'weather-night'" />
92
+ </var-site-button>
93
+ <var-site-button
94
+ class="varlet-doc-index__link-button"
95
+ text
96
+ outline
97
+ v-if="languages"
98
+ @click="toggleLanguages"
99
+ >
100
+ <var-site-icon name="translate" size="24px" />
101
+ </var-site-button>
102
+ <var-site-button class="varlet-doc-index__link-button" type="primary" @click="getStar">
103
+ <span class="varlet-doc-index__link-button-text">{{ indexPage.started[language] }}</span>
104
+ <var-site-icon style="transform: rotate(-90deg)" name="arrow-down" size="24px" />
105
+ </var-site-button>
106
+ </div>
121
107
 
122
- <div class="button-group">
123
- <var-site-button type="primary" class="common-button primary-button" block @click="getStar">
124
- <div class="block-button-content">
125
- <span>{{ started }}</span>
126
- <var-site-icon style="margin-left: 10px; transform: rotate(-90deg)" name="arrow-down" size="24px" />
127
- </div>
128
- </var-site-button>
129
- <var-site-button
130
- class="common-button extra-button margin-left"
131
- text
132
- v-if="languages"
133
- @click="toggleLanguages"
134
- >
135
- <var-site-icon name="translate" size="24px" />
136
- </var-site-button>
108
+ <div class="varlet-doc-index__features">
109
+ <div class="varlet-doc-index__feature" v-for="feature in indexPage.features">
110
+ <div class="varlet-doc-index__feature-name">{{ feature.name[language] }}</div>
111
+ <div class="varlet-doc-index__feature-description">{{ feature.description[language] }}</div>
137
112
  </div>
138
113
  </div>
139
114
  </div>
@@ -1,5 +1 @@
1
- export default {
2
- started: 'GET STARTED',
3
- description: 'Varlet is a Material design mobile component library developed based on Vue3, developed and maintained by partners in the community. ' +
4
- 'Support Typescript, import on demand, dark mode, theme customization, internationalization, and provide VSCode plugin to ensure a good development experience',
5
- }
1
+ // this file used to generate route path ('/en-US/index')
@@ -1,5 +1 @@
1
- export default {
2
- started: '起步',
3
- description: 'Varlet 是一个基于 Vue3 开发的 Material 风格移动端组件库,' +
4
- '全面拥抱 Vue3 生态,由社区团队维护。支持 Typescript、按需引入、暗黑模式、主题定制、国际化,并提供 VSCode 插件保障良好的开发体验',
5
- }
1
+ // this file used to generate route path ('/zh-CN/index')
@@ -20,6 +20,81 @@ module.exports = {
20
20
  pc: {
21
21
  menu: [],
22
22
  redirect: '/index',
23
+ indexPage: {
24
+ description: {
25
+ 'zh-CN':
26
+ 'Varlet 是一个基于 Vue3 开发的 Material 风格移动端组件库,全面拥抱 Vue3 生态,由社区团队维护。支持 Typescript、按需引入、暗黑模式、主题定制、国际化,并提供 VSCode 插件保障良好的开发体验',
27
+ 'en-US':
28
+ 'Varlet is a Material design mobile component library developed based on Vue3, developed and maintained by partners in the community. Support Typescript, import on demand, dark mode, theme customization, internationalization, and provide VSCode plugin to ensure a good development experience',
29
+ },
30
+ started: {
31
+ 'zh-CN': '起步',
32
+ 'en-US': 'GET STARTED',
33
+ },
34
+ features: [
35
+ {
36
+ name: {
37
+ 'zh-CN': '组件丰富',
38
+ 'en-US': 'Rich components',
39
+ },
40
+ description: {
41
+ 'zh-CN': '提供50个高质量通用组件',
42
+ 'en-US': 'Provide 50 high quality general purpose components',
43
+ },
44
+ },
45
+ {
46
+ name: {
47
+ 'zh-CN': '按需引入',
48
+ 'en-US': 'On-Demand',
49
+ },
50
+ description: {
51
+ 'zh-CN': '每一个组件都可单独引入,并有着良好的 tree-shaking 优化',
52
+ 'en-US': 'Each component can be imported separately and has good tree-shaking optimization',
53
+ },
54
+ },
55
+ {
56
+ name: {
57
+ 'zh-CN': '国人开发',
58
+ 'en-US': 'Developed by Chinese',
59
+ },
60
+ description: {
61
+ 'zh-CN': '由国人开发,完善的中英文文档和后勤保障',
62
+ 'en-US': 'Complete Chinese and English documentation and logistics support',
63
+ },
64
+ },
65
+ {
66
+ name: {
67
+ 'zh-CN': '国际化',
68
+ 'en-US': 'Locale',
69
+ },
70
+ description: {
71
+ 'zh-CN': '内置国际化 API,默认支持中英两国语言',
72
+ 'en-US': 'Built-in i18n API, which supports both Chinese and English languages by default',
73
+ },
74
+ },
75
+ {
76
+ name: {
77
+ 'zh-CN': '开发工具支持',
78
+ 'en-US': 'IDE Code Support',
79
+ },
80
+ description: {
81
+ 'zh-CN': '支持 webstorm,vscode 组件属性高亮, 提供vscode插件为开发提升效率',
82
+ 'en-US':
83
+ 'Supports to highlight the component syntax for webstorm and vscode, and provides a separate helper plugin for vscode',
84
+ },
85
+ },
86
+ {
87
+ name: {
88
+ 'zh-CN': 'Typescript + SSR',
89
+ 'en-US': 'Typescript + SSR',
90
+ },
91
+ description: {
92
+ 'zh-CN': '对 TypeScript 使用者十分友好,并且支持服务端渲染',
93
+ 'en-US': 'Develop with TypeScript, and support SSR',
94
+ },
95
+ },
96
+ ],
97
+ },
23
98
  title: {
24
99
  'zh-CN': '面向 Vue3 的 Material 风格移动端组件库',
25
100
  'en-US': 'Material design mobile components built for Vue3',
@@ -60,11 +135,10 @@ module.exports = {
60
135
  },
61
136
  themes: {
62
137
  'color-body': '#fff',
63
- 'color-home-page-background': '#fff',
64
- 'color-home-page-slash': '#ccc',
65
- 'color-home-page-primary-button-background': '#3a7afe',
66
- 'color-home-page-extra-button-background': '#f5f5f5',
67
- 'color-home-page-github-button-background': '#212121',
138
+ 'color-index-page-background': '#fff',
139
+ 'color-index-page-feature-background': '#fff',
140
+ 'color-index-page-logo-mask-background': 'linear-gradient(-45deg, #8baff8 50%, #84e0ff 50%)',
141
+ 'color-index-page-second-text-color': 'rgba(60, 60, 60, .7)',
68
142
  'color-bar': '#fff',
69
143
  'color-sub-bar': '#f5f5f5',
70
144
  'color-text': '#555',
@@ -102,11 +176,10 @@ module.exports = {
102
176
  },
103
177
  darkThemes: {
104
178
  'color-body': '#121212',
105
- 'color-home-page-background': 'linear-gradient(to right, #1e1e1e, #272727)',
106
- 'color-home-page-slash': '#111',
107
- 'color-home-page-primary-button-background': '#4a7afe',
108
- 'color-home-page-extra-button-background': '#303030',
109
- 'color-home-page-github-button-background': '#303030',
179
+ 'color-index-page-background': '#272727',
180
+ 'color-index-page-feature-background': '#303030',
181
+ 'color-index-page-logo-mask-background': 'linear-gradient(-45deg, #729dfc 50%, #6859f4 50%)',
182
+ 'color-index-page-second-text-color': 'rgba(255, 255, 255, .75)',
110
183
  'color-bar': '#1e1e1e',
111
184
  'color-sub-bar': '#272727',
112
185
  'color-text': '#fff',