Skip to content

Commit

Permalink
fix(varletconfig): Extract the public
Browse files Browse the repository at this point in the history
 configuration into the default configuration
  • Loading branch information
ahqrt committed May 28, 2021
1 parent 58328e0 commit 2fbc4b0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 33 deletions.
28 changes: 19 additions & 9 deletions packages/varlet-cli/varlet.default.config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
module.exports = {
name: 'Varlet',
namespace: 'var',
host: 'localhost',
title: 'Varlet',
title: 'VARLET',
port: 8080,
pc: {
title: 'Varlet 组件库文档',
description: 'Varlet 组件库文档',
logo: 'https://cn.vuejs.org/images/logo.png',
redirect: undefined,
title: 'Varlet 面向Vue3的Material风格移动端组件库',
description: 'Varlet 面向Vue3的Material风格移动端组件库',
logo: 'https://varlet.gitee.io/varlet-ui/varlet_icon.png',
redirect: '/zh-CN/home',
header: {
i18nButton: {
zh_CN: 'En',
en_US: '中文',
},
logo: 'https://varlet.gitee.io/varlet-ui/varlet_icon.png',
search: {
'zh-CN': '搜索文档...',
'en-US': 'Search...',
},
language: {
'zh-CN': '中文',
'en-US': 'English',
},
},
},
mobile: {
title: 'Varlet 组件库示例',
description: 'Varlet 组件库示例',
logo: 'https://cn.vuejs.org/images/logo.png',
redirect: undefined,
title: 'Varlet 面向Vue3的Material风格移动端组件库',
description: 'Varlet 面向Vue3的Material风格移动端组件库',
logo: 'https://varlet.gitee.io/varlet-ui/varlet_icon.png',
redirect: '/home',
},
}
25 changes: 1 addition & 24 deletions packages/varlet-ui/varlet.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
module.exports = {
name: 'Varlet',
namespace: 'var',
title: 'VARLET',
host: '0.0.0.0',
port: 8080,
pc: {
title: 'Varlet 面向Vue3的Material风格移动端组件库',
description: 'Varlet 面向Vue3的Material风格移动端组件库',
logo: 'https://varlet.gitee.io/varlet-ui/varlet_icon.png',
redirect: '/zh-CN/home',
header: {
logo: 'https://varlet.gitee.io/varlet-ui/varlet_icon.png',
search: {
'zh-CN': '搜索文档...',
'en-US': 'Search...',
},
language: {
'zh-CN': '中文',
'en-US': 'English',
},
},
menu: [
{
text: {
Expand Down Expand Up @@ -423,10 +405,5 @@ module.exports = {
},
],
},
mobile: {
title: 'Varlet 面向Vue3的Material风格移动端组件库',
description: 'Varlet 面向Vue3的Material风格移动端组件库',
logo: 'https://varlet.gitee.io/varlet-ui/varlet_icon.png',
redirect: '/home',
},
mobile: {},
}

0 comments on commit 2fbc4b0

Please sign in to comment.