2023-06-20 03:48:02 +00:00
|
|
|
import { getUmiConfig } from '@nocobase/devtools/umiConfig';
|
2023-11-06 03:50:13 +00:00
|
|
|
import { defineConfig } from 'dumi';
|
|
|
|
import { defineThemeConfig } from 'dumi-theme-nocobase';
|
2023-06-20 03:48:02 +00:00
|
|
|
|
|
|
|
const umiConfig = getUmiConfig();
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
hash: true,
|
|
|
|
alias: {
|
|
|
|
...umiConfig.alias,
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
atomDirs: [
|
2023-11-06 03:50:13 +00:00
|
|
|
{ type: 'api', dir: 'src' },
|
|
|
|
{ type: 'api', dir: 'src/schema-component/antd' },
|
|
|
|
{ type: 'api', dir: 'src/route-switch/antd' },
|
|
|
|
],
|
2023-06-20 03:48:02 +00:00
|
|
|
},
|
|
|
|
themeConfig: defineThemeConfig({
|
|
|
|
title: 'NocoBase',
|
|
|
|
logo: 'https://www.nocobase.com/images/logo.png',
|
|
|
|
github: 'https://github.com/nocobase/nocobase',
|
|
|
|
footer: 'nocobase | Copyright © 2022',
|
2023-11-06 03:50:13 +00:00
|
|
|
// sidebarGroupModePath: ['/components'],
|
2023-06-20 03:48:02 +00:00
|
|
|
nav: [
|
|
|
|
{
|
2023-11-06 03:50:13 +00:00
|
|
|
title: 'API',
|
|
|
|
link: '/apis/application',
|
2023-06-20 03:48:02 +00:00
|
|
|
},
|
2023-11-06 03:50:13 +00:00
|
|
|
],
|
|
|
|
sidebarEnhance: {
|
|
|
|
'/apis': [
|
|
|
|
{
|
|
|
|
title: 'Core',
|
|
|
|
type: 'group',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
title: 'Application',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
title: 'Application',
|
|
|
|
link: '/apis/application',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'APIClient',
|
|
|
|
link: '/apis/api-client',
|
|
|
|
},
|
|
|
|
{
|
2023-11-13 03:01:18 +00:00
|
|
|
title: 'PluginSettingsManager',
|
2023-11-06 03:50:13 +00:00
|
|
|
link: '#',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'UI schema designer',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
title: 'SchemaComponent',
|
|
|
|
link: '#',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'SchemaInitializer',
|
|
|
|
link: '#',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'SchemaSettings',
|
|
|
|
link: '#',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'DNDContext & DragHandler',
|
|
|
|
link: '#',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Collection Manager',
|
|
|
|
link: '#',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'BlockProvider',
|
|
|
|
link: '#',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'RecordProvider',
|
|
|
|
link: '#',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'React components',
|
|
|
|
type: 'group',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
title: 'Board',
|
|
|
|
link: '#',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Icon',
|
|
|
|
link: '#',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Schema components',
|
|
|
|
type: 'group',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
title: 'Input',
|
|
|
|
link: '#',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}),
|
2023-06-20 03:48:02 +00:00
|
|
|
});
|