tachybase_todo/packages/core/client/.dumirc.ts
jack zhang 35b06cbfa0
refactor: plugin settings manager (#2712)
* feat: add settingsCenter

* fix: style bug

* chore: optimized code

* refactor: settingCenter Auth

* feat: add aclSnippet option

* refactor: all plugin's setting center api

* feat: add plugin with name

* docs: add settings-center doc

* fix: settings center menu sort by name

* fix: change setting center layout

* fix: change hello sort

* test: add SettingsCenter.ts test case

* fix: bug

* fix: acl bug

* fix: bug

* fix: bug and 404 page

* fix: test bug

* fix: test bug

* fix: bug

* fix: locale

* fix: styling

* fix: rename settingsCenter to pluginSettingsManager

* fix: styling

* fix: e2e bug

* fix: e2e bug

* fix: locale

* feat: update docs

* fix: update

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-11-13 11:01:18 +08:00

117 lines
2.7 KiB
TypeScript

import { getUmiConfig } from '@nocobase/devtools/umiConfig';
import { defineConfig } from 'dumi';
import { defineThemeConfig } from 'dumi-theme-nocobase';
const umiConfig = getUmiConfig();
export default defineConfig({
hash: true,
alias: {
...umiConfig.alias,
},
resolve: {
atomDirs: [
{ type: 'api', dir: 'src' },
{ type: 'api', dir: 'src/schema-component/antd' },
{ type: 'api', dir: 'src/route-switch/antd' },
],
},
themeConfig: defineThemeConfig({
title: 'NocoBase',
logo: 'https://www.nocobase.com/images/logo.png',
github: 'https://github.com/nocobase/nocobase',
footer: 'nocobase | Copyright © 2022',
// sidebarGroupModePath: ['/components'],
nav: [
{
title: 'API',
link: '/apis/application',
},
],
sidebarEnhance: {
'/apis': [
{
title: 'Core',
type: 'group',
children: [
{
title: 'Application',
children: [
{
title: 'Application',
link: '/apis/application',
},
{
title: 'APIClient',
link: '/apis/api-client',
},
{
title: 'PluginSettingsManager',
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: '#',
},
],
},
],
},
}),
});