Former-commit-id: fa44e62cc25b58c8e3ea1608d619a80e5be1d398 [formerly fa44e62cc25b58c8e3ea1608d619a80e5be1d398 [formerly fa44e62cc25b58c8e3ea1608d619a80e5be1d398 [formerly fa44e62cc25b58c8e3ea1608d619a80e5be1d398 [formerly 36c19824b8471a64fc79448f387a53bf3846c9f5 [formerly 8bf2ad148e3d6f4b6fcf9b1113666872f51a2924]]]]] Former-commit-id: 5b3c2d62929d06dcf6875bbcfe9c463acf694941 Former-commit-id: 41b9d7f61085f40a2167d67bf053a2dcfe823159 Former-commit-id: c5a5f3433498e95f9fdbbdf225612773c71b4e1c [formerly 6ab62d738b4e0605ff65e0a9dba72362269f2036] Former-commit-id: 5d3a8fc8ec8de1fece491026ad143d0d31953aeb Former-commit-id: f7740607d012c1c96f92dd56950ef983ffebad08 Former-commit-id: ba408cbe880ab3c7c0c098c4094dee42f93ef3d4 Former-commit-id: 960996e83cee4f35ff5bfd87e286176e3ef77533 Former-commit-id: 9445fd6b866e60c132f6dac34831b5f80ec03819
95 lines
2.0 KiB
JavaScript
95 lines
2.0 KiB
JavaScript
module.exports = {
|
|
base: '/d2-admin/',
|
|
locales: {
|
|
'/': {
|
|
lang: 'en-US',
|
|
title: 'D2 Admin',
|
|
description: 'Elegant management system front-end integration'
|
|
},
|
|
'/zh/': {
|
|
lang: 'zh-CN',
|
|
title: 'D2 Admin',
|
|
description: '优雅的管理系统前端集成方案'
|
|
}
|
|
},
|
|
themeConfig: {
|
|
// 项目仓库地址
|
|
repo: 'https://github.com/FairyEver/d2-admin',
|
|
// 自定义仓库链接文字
|
|
repoLabel: '查看源码',
|
|
// 文档不是放在仓库的根目录下
|
|
docsDir: 'docs',
|
|
// 默认是 false, 设置为 true 来启用
|
|
editLinks: true,
|
|
// 多国语言
|
|
locales: {
|
|
'/': {
|
|
selectText: 'Languages',
|
|
label: 'English',
|
|
editLinkText: 'Edit this page on GitHub',
|
|
lastUpdated: 'Last update'
|
|
},
|
|
'/zh/': {
|
|
selectText: '选择语言',
|
|
label: '简体中文',
|
|
editLinkText: '在 GitHub 上编辑此页',
|
|
lastUpdated: '最后更新',
|
|
nav: [
|
|
{ text: '指南', link: '/zh/guide/' },
|
|
{ text: '插件', link: '/zh/plugins/' },
|
|
{ text: '组件', link: '/zh/components/' },
|
|
{ text: '下载', link: 'https://github.com/FairyEver/d2-admin/releases' }
|
|
],
|
|
sidebar: {
|
|
'/zh/guide/': sideBarGuide('指南'),
|
|
'/zh/plugins/': sideBarPlugins('插件'),
|
|
'/zh/components/': sideBarComponents('组件')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function sideBarGuide (title) {
|
|
return [
|
|
{
|
|
title,
|
|
collapsable: false,
|
|
children: [
|
|
'',
|
|
'q-a',
|
|
'pr',
|
|
'change-log'
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
function sideBarPlugins () {
|
|
return [
|
|
'data-export',
|
|
'data-import',
|
|
'i18n',
|
|
'mock'
|
|
]
|
|
}
|
|
|
|
function sideBarComponents (title) {
|
|
return [
|
|
{
|
|
title,
|
|
collapsable: false,
|
|
children: [
|
|
'charts',
|
|
'container',
|
|
'count-up',
|
|
'highlight',
|
|
'icon-select',
|
|
'icon-svg',
|
|
'icon',
|
|
'markdown'
|
|
]
|
|
}
|
|
]
|
|
}
|