2024-05-15 09:40:14 +00:00
|
|
|
import _ from 'lodash';
|
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();
|
2023-12-04 06:56:46 +00:00
|
|
|
process.env.DOC_LANG = process.env.DOC_LANG || 'zh-CN';
|
|
|
|
const lang = process.env.DOC_LANG;
|
|
|
|
|
|
|
|
console.log('process.env.DOC_LANG', lang);
|
2023-06-20 03:48:02 +00:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
hash: true,
|
|
|
|
alias: {
|
|
|
|
...umiConfig.alias,
|
|
|
|
},
|
2024-03-03 15:06:24 +00:00
|
|
|
fastRefresh: false, // 热更新会导致 Context 丢失,不开启
|
2023-12-04 06:56:46 +00:00
|
|
|
// ssr: {},
|
|
|
|
// exportStatic: {
|
|
|
|
// ignorePreRenderError: true
|
|
|
|
// },
|
|
|
|
cacheDirectoryPath: `node_modules/.docs-client-${lang}-cache`,
|
|
|
|
outputPath: `./dist/${lang}`,
|
2023-06-20 03:48:02 +00:00
|
|
|
resolve: {
|
2024-04-24 12:33:14 +00:00
|
|
|
docDirs: [`./docs/${lang}`],
|
|
|
|
atomDirs: [
|
2024-04-30 13:21:17 +00:00
|
|
|
{ type: 'component', dir: 'src/schema-component/antd' },
|
2024-05-15 10:54:16 +00:00
|
|
|
{ type: 'component', dir: 'src/data-source' },
|
2024-05-15 11:11:14 +00:00
|
|
|
{ type: 'component', dir: 'src/schema-initializer' },
|
|
|
|
{ type: 'component', dir: 'src/schema-settings' },
|
2024-04-24 12:33:14 +00:00
|
|
|
],
|
2023-06-20 03:48:02 +00:00
|
|
|
},
|
2024-05-15 09:40:14 +00:00
|
|
|
locales: lang === 'zh-CN' ? [{ id: 'zh-CN', name: '中文' }] : [{ id: 'en-US', name: 'English' }],
|
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',
|
2023-12-04 06:56:46 +00:00
|
|
|
link: '/core/application/application',
|
2023-06-20 03:48:02 +00:00
|
|
|
},
|
2024-04-24 12:33:14 +00:00
|
|
|
{
|
|
|
|
title: 'Components',
|
|
|
|
link: '/components/action',
|
2024-05-09 01:21:36 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Home site',
|
2024-05-09 02:53:01 +00:00
|
|
|
link: lang === 'zh-CN' ? 'https://docs-cn.nocobase.com' : 'https://docs.nocobase.com',
|
2024-05-15 09:40:14 +00:00
|
|
|
},
|
2023-12-04 06:56:46 +00:00
|
|
|
// {
|
|
|
|
// title: 'UI Schema',
|
|
|
|
// link: '/ui-schema',
|
|
|
|
// },
|
2023-11-06 03:50:13 +00:00
|
|
|
],
|
|
|
|
sidebarEnhance: {
|
2023-12-04 06:56:46 +00:00
|
|
|
'/core': [
|
2023-11-06 03:50:13 +00:00
|
|
|
{
|
2023-12-04 06:56:46 +00:00
|
|
|
title: 'Application',
|
2023-11-06 03:50:13 +00:00
|
|
|
type: 'group',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
title: 'Application',
|
2023-12-04 06:56:46 +00:00
|
|
|
link: '/core/application/application',
|
2023-11-06 03:50:13 +00:00
|
|
|
},
|
|
|
|
{
|
2023-12-04 06:56:46 +00:00
|
|
|
title: 'Plugin',
|
|
|
|
link: '/core/application/plugin',
|
2023-11-06 03:50:13 +00:00
|
|
|
},
|
|
|
|
{
|
2023-12-04 06:56:46 +00:00
|
|
|
title: 'PluginManager',
|
|
|
|
link: '/core/application/plugin-manager',
|
2023-11-06 03:50:13 +00:00
|
|
|
},
|
|
|
|
{
|
2023-12-04 06:56:46 +00:00
|
|
|
title: 'RouterManager',
|
|
|
|
link: '/core/application/router-manager',
|
2023-11-06 03:50:13 +00:00
|
|
|
},
|
|
|
|
{
|
2023-12-04 06:56:46 +00:00
|
|
|
title: 'PluginSettingsManager',
|
|
|
|
link: '/core/application/plugin-settings-manager',
|
2023-11-06 03:50:13 +00:00
|
|
|
},
|
2024-04-30 13:21:17 +00:00
|
|
|
{
|
|
|
|
title: 'Request',
|
|
|
|
link: '/core/request',
|
|
|
|
},
|
2023-11-06 03:50:13 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2023-12-04 06:56:46 +00:00
|
|
|
title: 'UI Schema',
|
2023-11-06 03:50:13 +00:00
|
|
|
type: 'group',
|
|
|
|
children: [
|
|
|
|
{
|
2023-12-04 06:56:46 +00:00
|
|
|
title: 'SchemaComponent',
|
|
|
|
link: '/core/ui-schema/schema-component',
|
2023-11-06 03:50:13 +00:00
|
|
|
},
|
|
|
|
{
|
2023-12-04 06:56:46 +00:00
|
|
|
title: 'Designable',
|
|
|
|
link: '/core/ui-schema/designable',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'SchemaInitializer',
|
|
|
|
link: '/core/ui-schema/schema-initializer',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'SchemaInitializerManager',
|
|
|
|
link: '/core/ui-schema/schema-initializer-manager',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'SchemaSettings',
|
|
|
|
link: '/core/ui-schema/schema-settings',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'SchemaSettingsManager',
|
|
|
|
link: '/core/ui-schema/schema-settings-manager',
|
2023-11-06 03:50:13 +00:00
|
|
|
},
|
|
|
|
{
|
2023-12-04 06:56:46 +00:00
|
|
|
title: 'SchemaToolbar',
|
|
|
|
link: '/core/ui-schema/schema-toolbar',
|
2023-11-06 03:50:13 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2024-03-03 15:06:24 +00:00
|
|
|
{
|
|
|
|
title: 'Data Source',
|
|
|
|
type: 'group',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
title: 'DataSourceManager',
|
|
|
|
link: '/core/data-source/data-source-manager',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'DataSourceManagerProvider',
|
|
|
|
link: '/core/data-source/data-source-manager-provider',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'DataSource',
|
|
|
|
link: '/core/data-source/data-source',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'DataSourceProvider',
|
|
|
|
link: '/core/data-source/data-source-provider',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'CollectionManager',
|
|
|
|
link: '/core/data-source/collection-manager',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'CollectionManagerProvider',
|
|
|
|
link: '/core/data-source/collection-manager-provider',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'CollectionTemplateManager',
|
|
|
|
link: '/core/data-source/collection-template-manager',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'CollectionTemplate',
|
|
|
|
link: '/core/data-source/collection-template',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Collection',
|
|
|
|
link: '/core/data-source/collection',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'CollectionProvider',
|
|
|
|
link: '/core/data-source/collection-provider',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'CollectionMixins',
|
|
|
|
link: '/core/data-source/collection-mixins',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'CollectionField',
|
|
|
|
link: '/core/data-source/collection-field',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'CollectionFieldInterfaceManager',
|
|
|
|
link: '/core/data-source/collection-field-interface-manager',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'CollectionFieldInterface',
|
|
|
|
link: '/core/data-source/collection-field-interface',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'AssociationProvider',
|
|
|
|
link: '/core/data-source/association-provider',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'ExtendCollectionsProvider',
|
|
|
|
link: '/core/data-source/extend-collections-provider',
|
|
|
|
},
|
2024-05-15 09:40:14 +00:00
|
|
|
],
|
2024-03-03 15:06:24 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'DataBlock',
|
|
|
|
type: 'group',
|
|
|
|
children: [
|
|
|
|
{
|
2024-03-05 04:34:20 +00:00
|
|
|
title: 'CollectionRecord',
|
2024-03-03 15:06:24 +00:00
|
|
|
link: '/core/data-block/collection-record',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'CollectionRecordProvider',
|
|
|
|
link: '/core/data-block/collection-record-provider',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'DataBlockProvider',
|
|
|
|
link: '/core/data-block/data-block-provider',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'DataBlockResourceProvider',
|
|
|
|
link: '/core/data-block/data-block-resource-provider',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'DataBlockRequestProvider',
|
|
|
|
link: '/core/data-block/data-block-request-provider',
|
|
|
|
},
|
2024-05-15 09:40:14 +00:00
|
|
|
],
|
|
|
|
},
|
2023-11-06 03:50:13 +00:00
|
|
|
],
|
2024-04-30 13:21:17 +00:00
|
|
|
'/components': [
|
|
|
|
{
|
|
|
|
title: 'Field',
|
|
|
|
type: 'group',
|
|
|
|
children: [
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Checkbox',
|
|
|
|
link: '/components/checkbox',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Cascader',
|
|
|
|
link: '/components/cascader',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'ColorPicker',
|
|
|
|
link: '/components/color-picker',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'ColorSelect',
|
|
|
|
link: '/components/color-select',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'DatePicker',
|
|
|
|
link: '/components/date-picker',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
2024-05-11 08:09:21 +00:00
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'UnixTimestamp',
|
|
|
|
link: '/components/unix-timestamp',
|
2024-05-11 08:09:21 +00:00
|
|
|
},
|
2024-04-30 13:21:17 +00:00
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'TimePicker',
|
|
|
|
link: '/components/time-picker',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'IconPicker',
|
|
|
|
link: '/components/icon-picker',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'InputNumber',
|
|
|
|
link: '/components/input-number',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Input',
|
|
|
|
link: '/components/input',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'AutoComplete',
|
|
|
|
link: '/components/auto-complete',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'NanoIDInput',
|
|
|
|
link: '/components/nanoid-input',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Password',
|
|
|
|
link: '/components/password',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Percent',
|
|
|
|
link: '/components/percent',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Radio',
|
|
|
|
link: '/components/radio',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Select',
|
|
|
|
link: '/components/select',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'RemoteSelect',
|
|
|
|
link: '/components/remote-select',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'TreeSelect',
|
|
|
|
link: '/components/tree-select',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Upload',
|
|
|
|
link: '/components/upload',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'CollectionSelect',
|
|
|
|
link: '/components/collection-select',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Cron',
|
|
|
|
link: '/components/cron',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
2024-05-16 13:40:23 +00:00
|
|
|
{
|
|
|
|
title: 'Preview',
|
|
|
|
link: '/components/preview',
|
|
|
|
},
|
2024-04-30 13:21:17 +00:00
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Markdown',
|
|
|
|
link: '/components/markdown',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-16 13:40:23 +00:00
|
|
|
title: 'RichText',
|
|
|
|
link: '/components/rich-text',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
2024-05-16 13:40:23 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '操作',
|
|
|
|
type: 'group',
|
|
|
|
children: [
|
2024-04-30 13:21:17 +00:00
|
|
|
{
|
2024-05-16 13:40:23 +00:00
|
|
|
title: 'Action',
|
|
|
|
link: '/components/action',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-16 13:40:23 +00:00
|
|
|
title: 'Filter.Action',
|
|
|
|
link: '/components/filter',
|
2024-05-15 09:40:14 +00:00
|
|
|
},
|
|
|
|
],
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-16 13:40:23 +00:00
|
|
|
title: '区块',
|
2024-04-30 13:21:17 +00:00
|
|
|
type: 'group',
|
|
|
|
children: [
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'FormV2',
|
|
|
|
link: '/components/form-v2',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'TableV2',
|
|
|
|
link: '/components/table-v2',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Details',
|
|
|
|
link: '/components/details',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'GridCard',
|
|
|
|
link: '/components/grid-card',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Grid',
|
|
|
|
link: '/components/grid',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'List',
|
|
|
|
link: '/components/list',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
2024-05-15 09:40:14 +00:00
|
|
|
],
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-16 13:40:23 +00:00
|
|
|
title: '装饰器',
|
2024-04-30 13:21:17 +00:00
|
|
|
type: 'group',
|
|
|
|
children: [
|
|
|
|
{
|
2024-05-16 13:40:23 +00:00
|
|
|
title: '基础装饰器',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
title: 'BlockItem',
|
|
|
|
link: '/components/block-item',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'CardItem',
|
|
|
|
link: '/components/card-item',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'FormItem',
|
|
|
|
link: '/components/form-item',
|
|
|
|
},
|
|
|
|
],
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-16 13:40:23 +00:00
|
|
|
title: '区块装饰器',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
title: 'DataBlockProvider',
|
|
|
|
link: '/components/data-block',
|
|
|
|
},
|
|
|
|
],
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
2024-05-15 09:40:14 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2024-05-15 10:54:16 +00:00
|
|
|
title: 'Schema 设计器',
|
|
|
|
type: 'group',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
title: 'SchemaInitializer',
|
2024-05-15 11:11:14 +00:00
|
|
|
link: '/components/schema-initializer',
|
2024-05-15 10:54:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'SchemaSettings',
|
2024-05-15 11:11:14 +00:00
|
|
|
link: '/components/schema-settings',
|
2024-05-15 10:54:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'SchemaToolbar',
|
2024-05-15 11:11:14 +00:00
|
|
|
link: '/components/schema-toolbar',
|
2024-05-15 10:54:16 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: '其他',
|
|
|
|
type: 'group',
|
|
|
|
children: [
|
2024-05-16 13:40:23 +00:00
|
|
|
{
|
|
|
|
title: 'Variable',
|
|
|
|
link: '/components/variable',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Page',
|
|
|
|
link: '/components/page',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Tabs',
|
|
|
|
link: '/components/tabs',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Menu',
|
|
|
|
link: '/components/menu',
|
|
|
|
},
|
2024-04-30 13:21:17 +00:00
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'ErrorFallback',
|
|
|
|
link: '/components/error-fallback',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'G2Plot',
|
|
|
|
link: '/components/g2plot',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
|
|
|
{
|
2024-05-15 09:40:14 +00:00
|
|
|
title: 'Pagination',
|
|
|
|
link: '/components/pagination',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
2024-05-16 13:40:23 +00:00
|
|
|
|
2024-04-30 13:21:17 +00:00
|
|
|
{
|
2024-05-16 13:40:23 +00:00
|
|
|
title: 'QuickEdit',
|
|
|
|
link: '/components/quick-edit',
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
2024-05-15 09:40:14 +00:00
|
|
|
],
|
2024-04-30 13:21:17 +00:00
|
|
|
},
|
2024-05-15 09:40:14 +00:00
|
|
|
],
|
2023-12-04 06:56:46 +00:00
|
|
|
// '/ui-schema': [
|
|
|
|
// {
|
|
|
|
// title: 'Overview',
|
|
|
|
// link: '/ui-schema',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Globals',
|
|
|
|
// type: 'group',
|
|
|
|
// children: [
|
|
|
|
// {
|
|
|
|
// title: 'Menu',
|
|
|
|
// link: '/ui-schema/globals/menu',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Page',
|
|
|
|
// link: '/ui-schema/globals/page',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Tabs',
|
|
|
|
// link: '/ui-schema/globals/tabs',
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Blocks',
|
|
|
|
// type: 'group',
|
|
|
|
// children: [
|
|
|
|
// {
|
|
|
|
// title: 'Overview',
|
|
|
|
// link: '/ui-schema/blocks',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Data blocks',
|
|
|
|
// children: [
|
|
|
|
// {
|
|
|
|
// title: 'Overview',
|
|
|
|
// link: '/ui-schema/blocks/data',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Table',
|
|
|
|
// link: '/ui-schema/blocks/data/table',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Form',
|
|
|
|
// link: '/ui-schema/blocks/data/form',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Form(Read pretty)',
|
|
|
|
// link: '/ui-schema/blocks/data/form-read-pretty',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Details',
|
|
|
|
// link: '/ui-schema/blocks/data/details',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'List',
|
|
|
|
// link: '/ui-schema/blocks/data/list',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Grid Card',
|
|
|
|
// link: '/ui-schema/blocks/data/grid-card',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Calendar',
|
|
|
|
// link: '/ui-schema/blocks/data/calendar',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Kanban',
|
|
|
|
// link: '/ui-schema/blocks/data/kanban',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Map',
|
|
|
|
// link: '/ui-schema/blocks/data/map',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Gantt',
|
|
|
|
// link: '/ui-schema/blocks/data/gantt',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Charts',
|
|
|
|
// link: '/ui-schema/blocks/data/charts',
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Filter blocks',
|
|
|
|
// children: [
|
|
|
|
// {
|
|
|
|
// title: 'Collapse',
|
|
|
|
// link: '/ui-schema/blocks/filter/collapse',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Form',
|
|
|
|
// link: '/ui-schema/blocks/filter/form',
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Other blocks',
|
|
|
|
// children: [
|
|
|
|
// {
|
|
|
|
// title: 'iframe',
|
|
|
|
// link: '/ui-schema/blocks/others/iframe',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Markdown',
|
|
|
|
// link: '/ui-schema/blocks/others/markdown',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Workflow todos',
|
|
|
|
// link: '/ui-schema/blocks/others/workflow-todo',
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Fields',
|
|
|
|
// type: 'group',
|
|
|
|
// children: [
|
|
|
|
// {
|
|
|
|
// title: 'Overview',
|
|
|
|
// link: '/ui-schema/fields',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'FormItem',
|
|
|
|
// link: '/ui-schema/fields/form-item',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'TableColumn',
|
|
|
|
// link: '/ui-schema/fields/table-column',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Association',
|
|
|
|
// children: [
|
|
|
|
// {
|
|
|
|
// title: 'Title',
|
|
|
|
// link: '/ui-schema/fields/association-components/title',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Tag',
|
|
|
|
// link: '/ui-schema/fields/association-components/tag',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Select',
|
|
|
|
// link: '/ui-schema/fields/association-components/select',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'RecordPicker',
|
|
|
|
// link: '/ui-schema/fields/association-components/record-picker',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Cascader',
|
|
|
|
// link: '/ui-schema/fields/association-components/cascader-select',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Sub-form',
|
|
|
|
// link: '/ui-schema/fields/association-components/sub-form',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Sub-form(Popover)',
|
|
|
|
// link: '/ui-schema/fields/association-components/sub-form-popover',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Sub-details',
|
|
|
|
// link: '/ui-schema/fields/association-components/sub-details',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Sub-table',
|
|
|
|
// link: '/ui-schema/fields/association-components/cascader-select',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'File manager',
|
|
|
|
// link: '/ui-schema/fields/association-components/file-manager',
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Actions',
|
|
|
|
// type: 'group',
|
|
|
|
// children: [
|
|
|
|
// {
|
|
|
|
// title: 'Overview',
|
|
|
|
// link: '/ui-schema/actions',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Add new',
|
|
|
|
// link: '/ui-schema/actions/add-new',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'View',
|
|
|
|
// link: '/ui-schema/actions/view',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Edit',
|
|
|
|
// link: '/ui-schema/actions/edit',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Delete',
|
|
|
|
// link: '/ui-schema/actions/delete',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Submit',
|
|
|
|
// link: '/ui-schema/actions/submit',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Filter',
|
|
|
|
// link: '/ui-schema/actions/filter',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Refresh',
|
|
|
|
// link: '/ui-schema/actions/refresh',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Print',
|
|
|
|
// link: '/ui-schema/actions/print',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Duplicate',
|
|
|
|
// link: '/ui-schema/actions/duplicate',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Export',
|
|
|
|
// link: '/ui-schema/actions/export',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Import',
|
|
|
|
// link: '/ui-schema/actions/import',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Bulk update',
|
|
|
|
// link: '/ui-schema/actions/bulk-update',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Bulk edit',
|
|
|
|
// link: '/ui-schema/actions/bulk-edit',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Add record(任意表)',
|
|
|
|
// link: '/ui-schema/actions/add-record',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Update record',
|
|
|
|
// link: '/ui-schema/actions/update-record',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Save record',
|
|
|
|
// link: '/ui-schema/actions/save-record',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Custom request',
|
|
|
|
// link: '/ui-schema/actions/custom-request',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: 'Submit to workflow',
|
|
|
|
// link: '/ui-schema/actions/submit-to-workflow',
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// ],
|
2023-11-06 03:50:13 +00:00
|
|
|
},
|
2024-05-09 01:21:36 +00:00
|
|
|
localesEnhance: [
|
2024-05-09 02:53:01 +00:00
|
|
|
{ id: 'zh-CN', switchPrefix: '中', hostname: 'client.docs-cn.nocobase.com' },
|
2024-05-15 09:40:14 +00:00
|
|
|
{ id: 'en-US', switchPrefix: 'en', hostname: 'client.docs.nocobase.com' },
|
2024-05-09 01:21:36 +00:00
|
|
|
],
|
2023-11-06 03:50:13 +00:00
|
|
|
}),
|
2023-06-20 03:48:02 +00:00
|
|
|
});
|