Skip to content

Commit

Permalink
docs: ui schema
Browse files Browse the repository at this point in the history
  • Loading branch information
chenos committed May 22, 2024
1 parent d6d3cac commit 80b4a71
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 6 deletions.
53 changes: 47 additions & 6 deletions packages/core/client/.dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import _ from 'lodash'
import { getUmiConfig } from '@nocobase/devtools/umiConfig';
import { defineConfig } from 'dumi';
import { defineThemeConfig } from 'dumi-theme-nocobase';
Expand Down Expand Up @@ -43,14 +42,14 @@ export default defineConfig({
title: 'Components',
link: '/components/action',
},
{
title: 'UI Schema',
link: '/ui-schema/schema-initializer/page-add-block',
},
{
title: 'Home site',
link: lang === 'zh-CN' ? 'https://docs-cn.nocobase.com' : 'https://docs.nocobase.com',
}
// {
// title: 'UI Schema',
// link: '/ui-schema',
// },
],
sidebarEnhance: {
'/core': [
Expand Down Expand Up @@ -404,7 +403,49 @@ export default defineConfig({
},
]
},
]
],
'/ui-schema': [
{
title: 'SchemaInitializer',
type: 'group',
children: [
{
title: 'page:addBlock',
link: '/ui-schema/schema-initializer/page-add-block',
},
],
},
{
title: 'SchemaInitializerItem',
type: 'group',
children: [
{
title: 'ActionInitializerItem',
link: '/ui-schema/schema-initializer-item/action-initializer-item',
},
],
},
{
title: 'SchemaSettings',
type: 'group',
children: [
{
title: 'actionSettings:addNew',
link: '/ui-schema/schema-settings/action-settings-add-new',
},
],
},
{
title: 'SchemaSettingsItem',
type: 'group',
children: [
{
title: 'EditButton',
link: '/ui-schema/schema-settings-item/edit-button',
},
],
}
],
// '/ui-schema': [
// {
// title: 'Overview',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# page:addBlock

0 comments on commit 80b4a71

Please sign in to comment.