From 732d31009eafbded78dd35dee5d891438783ba53 Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 6 Dec 2021 21:23:34 +0800 Subject: [PATCH] v0.6 --- .dockerignore | 3 - .dumi/theme/builtins/API.tsx | 57 - .dumi/theme/builtins/Alert.less | 68 - .dumi/theme/builtins/Alert.tsx | 17 - .dumi/theme/builtins/Badge.less | 31 - .dumi/theme/builtins/Badge.tsx | 4 - .dumi/theme/builtins/Example.less | 47 - .dumi/theme/builtins/Example.tsx | 34 - .dumi/theme/builtins/Previewer.less | 365 - .dumi/theme/builtins/Previewer.tsx | 253 - .dumi/theme/builtins/Redirect.tsx | 5 - .dumi/theme/builtins/SourceCode.less | 58 - .dumi/theme/builtins/SourceCode.tsx | 41 - .dumi/theme/builtins/Tree.less | 22 - .dumi/theme/builtins/Tree.tsx | 60 - .dumi/theme/components/LocaleSelect.less | 48 - .dumi/theme/components/LocaleSelect.tsx | 53 - .dumi/theme/components/Navbar.less | 172 - .dumi/theme/components/Navbar.tsx | 68 - .dumi/theme/components/SearchBar.less | 107 - .dumi/theme/components/SearchBar.tsx | 41 - .dumi/theme/components/SideMenu.less | 321 - .dumi/theme/components/SideMenu.tsx | 139 - .dumi/theme/components/SlugList.less | 22 - .dumi/theme/components/SlugList.tsx | 20 - .dumi/theme/layout.tsx | 120 - .dumi/theme/style/layout.less | 328 - .dumi/theme/style/markdown.less | 196 - .dumi/theme/style/variables.less | 26 - .dumi/theme/test/index.test.tsx | 315 - .editorconfig | 14 - .env.example | 72 - .eslintignore | 6 + .fatherrc.ts | 38 - .github/workflows/vercel.yml | 43 - .gitignore | 20 +- .prettierignore | 3 + .umirc.ts | 69 +- Dockerfile | 21 - LICENSE | 21 - README.md | 167 +- README.zh-CN.md | 116 - docker-compose.yml | 60 - docs/changelog.md | 105 - docs/changelog.zh-CN.md | 111 - .../collection-fields/attachment.md | 59 - .../collection-fields/attachment.zh-CN.md | 59 - .../collection-fields/checkbox-group.md | 30 - docs/components/collection-fields/checkbox.md | 31 - .../collection-fields/china-region.md | 83 - .../collection-fields/created-at.md | 33 - .../collection-fields/created-by.md | 37 - docs/components/collection-fields/datetime.md | 42 - docs/components/collection-fields/email.md | 30 - docs/components/collection-fields/icon.md | 27 - docs/components/collection-fields/link-to.md | 70 - docs/components/collection-fields/markdown.md | 26 - .../collection-fields/multiple-select.md | 49 - docs/components/collection-fields/number.md | 58 - docs/components/collection-fields/password.md | 27 - docs/components/collection-fields/percent.md | 49 - docs/components/collection-fields/phone.md | 30 - .../collection-fields/radio-group.md | 29 - docs/components/collection-fields/select.md | 56 - docs/components/collection-fields/string.md | 37 - .../components/collection-fields/sub-table.md | 45 - docs/components/collection-fields/textarea.md | 27 - docs/components/collection-fields/time.md | 55 - .../collection-fields/updated-at.md | 33 - .../collection-fields/updated-by.md | 37 - docs/components/index.md | 101 - docs/components/index.zh-CN.md | 163 - docs/components/route-switch/admin-layout.md | 12 - .../route-switch/admin-layout.zh-CN.md | 12 - docs/components/route-switch/auth-layout.md | 11 - docs/develop.md | 7 - docs/examples/demos/demo1.tsx | 68 - docs/examples/index.md | 8 - docs/examples/index.zh-CN.md | 8 - docs/guide/basic/client-components.md | 315 - docs/guide/basic/client-components.zh-CN.md | 324 - docs/guide/basic/collections.md | 82 - docs/guide/basic/collections.zh-CN.md | 82 - docs/guide/contributing.md | 183 - docs/guide/contributing.zh-CN.md | 183 - docs/guide/deployment.md | 6 - docs/guide/deployment.zh-CN.md | 6 - docs/guide/index.md | 42 - docs/guide/index.zh-CN.md | 42 - docs/guide/kernel-principle/choose-an-orm.md | 1268 -- .../kernel-principle/choose-an-orm.zh-CN.md | 1268 -- .../kernel-principle/client-side-kernel.md | 158 - .../client-side-kernel.zh-CN.md | 158 - .../kernel-principle/installation-startup.md | 20 - .../installation-startup.zh-CN.md | 21 - .../microkernel-architecture.md | 13 - .../microkernel-architecture.zh-CN.md | 13 - docs/guide/kernel-principle/nocobase.md | 224 - .../reverse-relationship-fields.md | 261 - .../reverse-relationship-fields.zh-CN.md | 261 - .../kernel-principle/server-side-kernel.md | 903 - .../server-side-kernel.zh-CN.md | 903 - .../plugin-development/client-side-plugin.md | 15 - .../client-side-plugin.zh-CN.md | 15 - docs/guide/plugin-development/i18n.md | 107 - docs/guide/plugin-development/i18n.zh-CN.md | 107 - docs/guide/plugin-development/index.md | 116 - docs/guide/plugin-development/index.zh-CN.md | 116 - .../pluggable-interfaces.md | 43 - .../pluggable-interfaces.zh-CN.md | 46 - docs/guide/quickstart.md | 106 - docs/guide/quickstart.zh-CN.md | 112 - docs/images/API.png | Bin 50063 -> 0 bytes docs/images/MiniMIS.png | Bin 69574 -> 0 bytes docs/images/MiniProgram.png | Bin 154282 -> 0 bytes docs/images/NocoBase.png | Bin 324447 -> 0 bytes docs/images/SaaS1.png | Bin 172159 -> 0 bytes docs/images/SaaS2.png | Bin 129769 -> 0 bytes docs/images/img1.png | Bin 820956 -> 0 bytes docs/images/img2.png | Bin 584354 -> 0 bytes docs/index.md | 20 +- docs/index.zh-CN.md | 5 - docs/plugins/action-logs.md | 1 - docs/plugins/automations.md | 1 - docs/plugins/china-region.md | 2 - docs/plugins/client.md | 1 - docs/plugins/collections.md | 135 - docs/plugins/export.md | 1 - docs/plugins/file-manager.md | 1 - docs/plugins/index.md | 63 - docs/plugins/index.zh-CN.md | 67 - docs/plugins/multi-apps.md | 1 - docs/plugins/notifications.md | 1 - docs/plugins/permissions.md | 3 - docs/plugins/system-settings.md | 1 - docs/plugins/ui-router.md | 1 - docs/plugins/ui-schema.md | 1 - docs/plugins/users.md | 1 - docs/reference/application.md | 132 - docs/reference/cli.md | 40 - docs/reference/client.md | 16 - docs/reference/collection.md | 249 - docs/reference/context.md | 129 - docs/reference/database.md | 629 - docs/reference/field-types.md | 476 - docs/reference/filter-operators.md | 131 - docs/reference/model.md | 380 - docs/reference/overview.md | 37 - docs/reference/plugin-manager.md | 19 - docs/reference/plugin.md | 11 - docs/reference/repository.md | 1022 - docs/reference/resourcer.md | 0 docs/reference/rest-api.md | 1 - dotenv.js | 2 - examples/collections/src/index.ts | 77 - examples/index.ts | 4 - examples/middleware/src/index.ts | 0 examples/models/src/index.ts | 0 examples/plugins/src/index.ts | 0 examples/repositories/src/index.ts | 0 examples/resources/src/index.ts | 65 - examples/saas/src/index.ts | 154 - examples/simple/src/index.ts | 63 - jest.config.js | 33 +- jest.setup.ts | 26 + lerna.json | 19 +- nodemon.json | 6 - package.json | 102 +- packages/actions/package.json | 15 +- packages/actions/src/__tests__/add.test.ts | 21 - packages/actions/src/__tests__/create.test.ts | 65 - .../actions/src/__tests__/destroy.test.ts | 62 - packages/actions/src/__tests__/get.test.ts | 57 - packages/actions/src/__tests__/hello.test.ts | 19 + packages/actions/src/__tests__/index.ts | 193 + packages/actions/src/__tests__/list.test.ts | 135 - packages/actions/src/__tests__/remove.test.ts | 21 - packages/actions/src/__tests__/set.test.ts | 21 - packages/actions/src/__tests__/sort.test.ts | 514 - packages/actions/src/__tests__/toggle.test.ts | 21 - packages/actions/src/__tests__/update.test.ts | 66 - packages/actions/src/__tests__/utils.test.ts | 107 - packages/actions/src/actions/add.ts | 48 - packages/actions/src/actions/create.ts | 55 - packages/actions/src/actions/destroy.ts | 95 - packages/actions/src/actions/get.ts | 77 - packages/actions/src/actions/index.ts | 10 - packages/actions/src/actions/list.ts | 229 - packages/actions/src/actions/remove.ts | 57 - packages/actions/src/actions/set.ts | 52 - packages/actions/src/actions/sort.ts | 170 - packages/actions/src/actions/toggle.ts | 72 - packages/actions/src/actions/update.ts | 104 - packages/actions/src/index.ts | 21 +- .../actions/src/middlewares/associated.ts | 51 - packages/actions/src/middlewares/index.ts | 1 - packages/actions/src/utils.ts | 77 - packages/actions/tsconfig.build.json | 9 + packages/actions/tsconfig.json | 5 + packages/api/.env.example | 54 - packages/api/.npmignore | 7 - packages/api/bin/nocobase.js | 6 - packages/api/package.json | 28 - packages/api/src/index.ts | 63 - packages/app/.editorconfig | 16 - packages/app/.gitignore | 20 - packages/app/.prettierignore | 8 - packages/app/.prettierrc | 11 - packages/app/.umirc.ts | 41 - packages/app/README.md | 15 - packages/app/package.json | 60 - packages/app/src/apis/index.ts | 86 - packages/app/src/app.ts | 1 - packages/app/src/css_browser_selector.js | 163 - packages/app/src/global.less | 27 - packages/app/src/pages/index.less | 3 - packages/app/src/pages/index.tsx | 65 - packages/app/tsconfig.apis.json | 24 - packages/app/tsconfig.json | 36 - packages/app/typings.d.ts | 10 - packages/app/umi.js | 22 - packages/client/.npmignore | 7 - packages/client/package.json | 56 +- packages/client/src/ClientSDK.ts | 18 - packages/client/src/ConfigProvider.tsx | 40 - .../client/src/components/Sortable/index.tsx | 160 - .../client/src/components/SwitchMenuItem.tsx | 42 - .../src/components/admin-layout/Auth.tsx | 40 - .../admin-layout/Collections/index.tsx | 807 - .../src/components/admin-layout/More.tsx | 114 - .../Permissions/ActionPermissionField.tsx | 275 - .../Permissions/MenuPermissionTable.tsx | 120 - .../admin-layout/Permissions/index.tsx | 502 - .../src/components/admin-layout/SiteTitle.tsx | 51 - .../src/components/admin-layout/UserInfo.tsx | 193 - .../src/components/admin-layout/datatable.tsx | 82 - .../src/components/admin-layout/index.tsx | 329 - .../src/components/admin-layout/style.less | 120 - .../src/components/auth-layout/index.tsx | 17 - .../src/components/drag-and-drop/index.tsx | 458 - .../src/components/icon-picker/index.tsx | 54 - .../route-schema-renderer/index.tsx | 92 - .../components/router-config/demos/demo1.tsx | 49 - .../components/router-config/demos/demo2.tsx | 65 - .../src/components/router-config/index.md | 7 - .../src/components/router-config/index.tsx | 107 - .../schema-renderer/demos/demo1.tsx | 50 - .../src/components/schema-renderer/index.md | 5 - .../src/components/schema-renderer/index.tsx | 741 - packages/client/src/constate/Client.tsx | 111 - packages/client/src/constate/Collections.ts | 69 - .../client/src/constate/DesignableSwitch.ts | 15 - packages/client/src/constate/DisplayedMap.ts | 9 - packages/client/src/constate/PageTitle.ts | 18 - packages/client/src/constate/index.tsx | 5 - packages/client/src/context.ts | 5 - packages/client/src/demo.md | 14 - packages/client/src/demos/demo1.tsx | 72 - packages/client/src/hooks/useCompile.ts | 9 - packages/client/src/hooks/useResource.ts | 17 - packages/client/src/i18n.ts | 52 - packages/client/src/index.less | 3 - packages/client/src/index.md | 14 - packages/client/src/index.tsx | 15 +- packages/client/src/locale/en_US.ts | 278 - packages/client/src/locale/zh_CN.ts | 278 - packages/client/src/resource.ts | 198 - .../client/src/schemas/action-logs/index.tsx | 55 - .../client/src/schemas/action/ActionBar.tsx | 276 - packages/client/src/schemas/action/index.md | 483 - packages/client/src/schemas/action/index.tsx | 580 - .../client/src/schemas/action/index.zh-CN.md | 483 - packages/client/src/schemas/action/style.less | 108 - packages/client/src/schemas/add-new/chart.ts | 207 - packages/client/src/schemas/add-new/index.md | 175 - packages/client/src/schemas/add-new/index.tsx | 1951 -- .../client/src/schemas/add-new/style.less | 10 - .../client/src/schemas/array-table/index.tsx | 420 - .../client/src/schemas/block-item/index.md | 22 - .../client/src/schemas/block-item/index.tsx | 75 - .../client/src/schemas/block-item/style.less | 51 - .../client/src/schemas/calendar/Action.tsx | 87 - .../client/src/schemas/calendar/ActionBar.tsx | 310 - .../src/schemas/calendar/DesignableBar.tsx | 249 - .../src/schemas/calendar/demos/demo1.tsx | 133 - .../src/schemas/calendar/demos/events.ts | 180 - .../src/schemas/calendar/designable.less | 35 - packages/client/src/schemas/calendar/index.md | 28 - .../client/src/schemas/calendar/index.tsx | 601 - .../client/src/schemas/calendar/style.less | 672 - .../client/src/schemas/calendar/style2.less | 769 - .../client/src/schemas/card-item/index.tsx | 33 - .../src/schemas/cascader/demos/demo1.tsx | 78 - .../src/schemas/cascader/demos/demo2.tsx | 137 - packages/client/src/schemas/cascader/index.md | 28 - .../client/src/schemas/cascader/index.tsx | 158 - packages/client/src/schemas/chart/G2Plot.tsx | 52 - packages/client/src/schemas/chart/index.md | 10 - packages/client/src/schemas/chart/index.tsx | 109 - packages/client/src/schemas/checkbox/index.md | 127 - .../client/src/schemas/checkbox/index.tsx | 69 - .../client/src/schemas/color-select/index.md | 75 - .../client/src/schemas/color-select/index.tsx | 59 - .../schemas/database-field/demos/demo1.tsx | 44 - .../schemas/database-field/demos/demo2.tsx | 54 - .../src/schemas/database-field/index.md | 24 - .../src/schemas/database-field/index.tsx | 500 - .../database-field/interfaces/attachment.ts | 50 - .../database-field/interfaces/checkbox.ts | 28 - .../interfaces/checkboxGroup.ts | 28 - .../database-field/interfaces/chinaRegion.ts | 81 - .../database-field/interfaces/createdAt.ts | 31 - .../database-field/interfaces/createdBy.ts | 35 - .../database-field/interfaces/datetime.ts | 40 - .../database-field/interfaces/email.ts | 28 - .../schemas/database-field/interfaces/icon.ts | 24 - .../database-field/interfaces/index.ts | 75 - .../database-field/interfaces/linkTo.ts | 72 - .../database-field/interfaces/markdown.ts | 23 - .../interfaces/multipleSelect.ts | 54 - .../database-field/interfaces/number.ts | 55 - .../database-field/interfaces/password.ts | 24 - .../database-field/interfaces/percent.ts | 47 - .../database-field/interfaces/phone.ts | 28 - .../interfaces/properties/index.ts | 204 - .../database-field/interfaces/radioGroup.ts | 27 - .../database-field/interfaces/select.ts | 57 - .../database-field/interfaces/string.ts | 34 - .../database-field/interfaces/subTable.ts | 43 - .../database-field/interfaces/textarea.ts | 24 - .../schemas/database-field/interfaces/time.ts | 52 - .../database-field/interfaces/types.ts | 24 - .../database-field/interfaces/updatedAt.ts | 31 - .../database-field/interfaces/updatedBy.ts | 34 - .../src/schemas/database-field/style.less | 53 - .../client/src/schemas/date-picker/index.md | 116 - .../client/src/schemas/date-picker/index.tsx | 72 - .../src/schemas/designable-bar/index.md | 21 - .../src/schemas/designable-bar/style.less | 110 - .../client/src/schemas/display/index.less | 9 - packages/client/src/schemas/display/index.tsx | 362 - .../src/schemas/drag-and-drop/index.tsx | 13 - .../client/src/schemas/filter/FilterItem.tsx | 230 - packages/client/src/schemas/filter/index.md | 95 - packages/client/src/schemas/filter/index.tsx | 266 - packages/client/src/schemas/filter/style.less | 18 - .../client/src/schemas/form-item/index.md | 22 - .../client/src/schemas/form-item/index.tsx | 76 - .../client/src/schemas/form-item/style.less | 43 - .../client/src/schemas/form/DesignableBar.tsx | 106 - .../src/schemas/form/Field.DesignableBar.tsx | 263 - packages/client/src/schemas/form/index.md | 241 - packages/client/src/schemas/form/index.tsx | 241 - packages/client/src/schemas/form/style.less | 45 - .../client/src/schemas/grid/DesignableBar.tsx | 92 - .../client/src/schemas/grid/demos/demo1.tsx | 190 - packages/client/src/schemas/grid/index.md | 94 - packages/client/src/schemas/grid/index.tsx | 384 - packages/client/src/schemas/grid/style.less | 169 - .../client/src/schemas/icon-picker/index.md | 65 - .../client/src/schemas/icon-picker/index.tsx | 85 - packages/client/src/schemas/index.tsx | 120 - .../client/src/schemas/input-number/index.md | 197 - .../client/src/schemas/input-number/index.tsx | 69 - .../src/schemas/input-number/style.less | 27 - .../src/schemas/input/DesignableBar.tsx | 54 - packages/client/src/schemas/input/index.md | 268 - packages/client/src/schemas/input/index.tsx | 54 - .../src/schemas/kanban/CardDesignableBar.tsx | 132 - .../src/schemas/kanban/DesignableBar.tsx | 147 - .../src/schemas/kanban/FieldDesignableBar.tsx | 158 - .../client/src/schemas/kanban/demos/demo1.tsx | 218 - packages/client/src/schemas/kanban/index.md | 28 - packages/client/src/schemas/kanban/index.tsx | 582 - packages/client/src/schemas/kanban/style.less | 142 - packages/client/src/schemas/markdown/index.md | 128 - .../client/src/schemas/markdown/index.tsx | 193 - .../client/src/schemas/markdown/style.less | 12 - .../client/src/schemas/menu/defaultSchemas.ts | 60 - .../client/src/schemas/menu/demos/demo1.tsx | 106 - .../client/src/schemas/menu/demos/demo2.tsx | 90 - .../client/src/schemas/menu/demos/demo3.tsx | 68 - .../client/src/schemas/menu/demos/demo4.tsx | 96 - packages/client/src/schemas/menu/index.md | 62 - packages/client/src/schemas/menu/index.tsx | 1080 - packages/client/src/schemas/menu/style.less | 166 - packages/client/src/schemas/page/index.tsx | 21 - .../src/schemas/password/PasswordStrength.tsx | 164 - packages/client/src/schemas/password/index.md | 61 - .../client/src/schemas/password/index.tsx | 70 - packages/client/src/schemas/radio/index.md | 81 - packages/client/src/schemas/radio/index.tsx | 55 - .../client/src/schemas/select/demos/demo1.tsx | 203 - packages/client/src/schemas/select/index.less | 3 - packages/client/src/schemas/select/index.md | 424 - packages/client/src/schemas/select/index.tsx | 565 - packages/client/src/schemas/table/Actions.tsx | 40 - .../src/schemas/table/AddActionButton.tsx | 76 - .../client/src/schemas/table/AddColumn.tsx | 232 - .../src/schemas/table/SimpleDesignableBar.tsx | 214 - .../client/src/schemas/table/Sortable.tsx | 227 - packages/client/src/schemas/table/Table.tsx | 70 - .../src/schemas/table/TableActionBar.tsx | 106 - .../table/TableActionDesignableBar.tsx | 143 - .../client/src/schemas/table/TableCell.tsx | 54 - .../client/src/schemas/table/TableColumn.tsx | 24 - .../table/TableColumnDesignableBar.tsx | 158 - .../src/schemas/table/TableDesignableBar.tsx | 275 - .../table/TableExportActionDesignableBar.tsx | 134 - .../client/src/schemas/table/TableFilter.tsx | 93 - .../table/TableFilterDesignableBar.tsx | 140 - .../client/src/schemas/table/TableIndex.tsx | 8 - .../client/src/schemas/table/TableMain.tsx | 139 - .../src/schemas/table/TableOperation.tsx | 16 - .../src/schemas/table/TableOperationCell.tsx | 13 - .../table/TableOperationDesignableBar.tsx | 194 - .../src/schemas/table/TablePagination.tsx | 40 - .../src/schemas/table/TableProvider.tsx | 103 - .../src/schemas/table/TableSortHandle.tsx | 7 - packages/client/src/schemas/table/context.ts | 6 - .../client/src/schemas/table/demos/demo3.tsx | 228 - .../hooks/useActionLogDetailsResource.ts | 38 - .../table/hooks/useActionLogsResource.ts | 35 - .../table/hooks/useCollectionFields.ts | 24 - .../src/schemas/table/hooks/useDataSource.ts | 17 - .../table/hooks/useDefaultRowSelection.ts | 5 - .../table/hooks/useDefaultSelectedRowKeys.ts | 6 - .../src/schemas/table/hooks/usePagination.ts | 33 - .../src/schemas/table/hooks/useResource.ts | 51 - .../src/schemas/table/hooks/useTable.ts | 6 - .../schemas/table/hooks/useTableActionBars.ts | 18 - .../schemas/table/hooks/useTableColumns.tsx | 74 - .../table/hooks/useTableCreateAction.ts | 24 - .../table/hooks/useTableDestroyAction.ts | 49 - .../table/hooks/useTableExportAction.ts | 51 - .../table/hooks/useTableFilterAction.ts | 23 - .../src/schemas/table/hooks/useTableIndex.ts | 16 - .../src/schemas/table/hooks/useTableRow.ts | 6 - .../schemas/table/hooks/useTableRowRecord.ts | 7 - .../table/hooks/useTableUpdateAction.ts | 35 - .../src/schemas/table/hooks/useTotal.ts | 10 - packages/client/src/schemas/table/index.md | 70 - packages/client/src/schemas/table/index.ts | 5 - packages/client/src/schemas/table/style.less | 290 - packages/client/src/schemas/table/types.ts | 22 - packages/client/src/schemas/table/utils.ts | 164 - packages/client/src/schemas/tabs/index.md | 96 - packages/client/src/schemas/tabs/index.tsx | 376 - packages/client/src/schemas/tabs/style.less | 104 - .../client/src/schemas/time-picker/index.md | 63 - .../client/src/schemas/time-picker/index.tsx | 44 - .../client/src/schemas/tree-select/index.tsx | 27 - .../client/src/schemas/upload/demos/demo1.tsx | 39 - .../client/src/schemas/upload/demos/demo2.tsx | 81 - packages/client/src/schemas/upload/index.md | 28 - packages/client/src/schemas/upload/index.tsx | 602 - .../client/src/schemas/upload/placeholder.ts | 62 - packages/client/src/schemas/upload/style.less | 64 - packages/client/tsconfig.build.json | 11 + packages/client/tsconfig.json | 6 +- packages/create-nocobase-app/.fatherrc.ts | 5 - packages/create-nocobase-app/.local | 1 - packages/create-nocobase-app/.npmignore | 7 - packages/create-nocobase-app/README.md | 0 .../bin/create-nocobase-app.js | 3 - packages/create-nocobase-app/package.json | 28 - .../src/AppGenerator/AppGenerator.ts | 21 - packages/create-nocobase-app/src/app.ts | 0 packages/create-nocobase-app/src/cli.ts | 108 - .../create-nocobase-app/src/index.test.ts | 19 - packages/create-nocobase-app/src/index.ts | 20 - .../create-nocobase-app/src/utils/index.ts | 32 - .../templates/AppGenerator/.editorconfig | 16 - .../templates/AppGenerator/.env.example | 51 - .../templates/AppGenerator/.env.tpl | 63 - .../templates/AppGenerator/.gitignore | 20 - .../templates/AppGenerator/.prettierignore | 8 - .../templates/AppGenerator/.prettierrc | 11 - .../templates/AppGenerator/.umirc.ts | 36 - .../templates/AppGenerator/Dockerfile | 21 - .../templates/AppGenerator/README.md | 9 - .../templates/AppGenerator/docker-compose.yml | 37 - .../templates/AppGenerator/package.json.tpl | 63 - .../templates/AppGenerator/public/favicon.png | Bin 6600 -> 0 bytes .../AppGenerator/src/apis/config/db.ts | 32 - .../templates/AppGenerator/src/apis/index.ts | 43 - .../templates/AppGenerator/src/app.ts | 1 - .../AppGenerator/src/css_browser_selector.js | 163 - .../templates/AppGenerator/src/global.less | 27 - .../AppGenerator/src/pages/index.less | 3 - .../AppGenerator/src/pages/index.tsx | 65 - .../templates/AppGenerator/tsconfig.apis.json | 24 - .../templates/AppGenerator/tsconfig.json | 36 - .../templates/AppGenerator/typings.d.ts | 10 - .../templates/AppGenerator/umi.js | 22 - packages/database-next/package.json | 22 - .../src/__tests__/database.test.ts | 206 - packages/database-next/src/__tests__/index.ts | 36 - packages/database-next/src/database.ts | 300 - packages/database-next/src/fields/index.ts | 60 - packages/database-next/src/index.ts | 4 - packages/database-next/src/utils.ts | 10 - packages/database/.npmignore | 7 - packages/database/examples/index.ts | 125 - .../examples/plugins/db-driven/index.ts | 25 - .../plugins/db-driven/tables/fields.ts | 78 - .../plugins/db-driven/tables/tables.ts | 53 - packages/database/examples/tables/bar.js | 26 - packages/database/examples/tables/comments.ts | 19 - packages/database/examples/tables/foo.json | 3 - packages/database/examples/tables/posts.ts | 28 - packages/database/examples/tables/profiles.ts | 23 - packages/database/examples/tables/tags.ts | 15 - packages/database/examples/tables/users.ts | 34 - packages/database/package.json | 13 +- .../src/__tests__/associations.test.ts | 678 - .../src/__tests__/collection-importer.test.ts | 4 +- .../src/__tests__/collection.test.ts | 24 +- .../src/__tests__/database.import.test.ts | 0 .../database/src/__tests__/database.test.ts | 258 +- .../database/src/__tests__/emitter.test.ts | 96 - .../__tests__/fields/belongs-to-field.test.ts | 0 .../fields/belongs-to-many-field.test.ts | 0 .../__tests__/fields/has-many-field.test.ts | 8 +- .../__tests__/fields/has-one-field.test.ts | 0 .../__tests__/fields/password-field.test.ts | 30 + .../src/__tests__/fields/radio.test.ts | 221 - .../src/__tests__/fields/sort-field.test.ts | 0 .../src/__tests__/fields/string-field.test.ts | 4 +- .../src/__tests__/fields/types.test.ts | 368 - .../src/__tests__/filter-parser.test.ts | 18 +- .../src/__tests__/fixtures/c0/a.ts | 0 .../src/__tests__/fixtures/c1/b.ts | 0 .../src/__tests__/fixtures/c2/a.ts | 0 .../fixtures/collections/delay-extend.ts | 0 .../fixtures/collections/delay-extend2.ts | 0 .../__tests__/fixtures/collections/extend.ts | 0 .../__tests__/fixtures/collections/extend2.ts | 0 .../__tests__/fixtures/collections/posts.ts | 0 .../__tests__/fixtures/collections/tags.js | 0 .../__tests__/fixtures/collections/test.jpg | 0 .../__tests__/fixtures/collections/user.json | 0 packages/database/src/__tests__/hooks.test.ts | 214 - packages/database/src/__tests__/index.ts | 65 +- .../src/__tests__/model/custom.test.ts | 23 - .../__tests__/model/getValuesByFieldNames.ts | 38 - .../src/__tests__/model/model.test.ts | 1273 -- .../src/__tests__/model/parseApiJson.test.ts | 324 - .../model/updateAssociations.test.ts | 107 - .../model/updateAssociations2.test.ts | 58 - packages/database/src/__tests__/op.test.ts | 63 - .../__tests__/operator/array-operator.test.ts | 0 .../operator/association-operator.test.ts | 5 +- .../__tests__/operator/date-operator.test.ts | 0 .../__tests__/operator/empty-operator.test.ts | 0 .../src/__tests__/option-parser.test.ts | 10 +- .../belongs-to-many-repository.test.ts | 0 .../has-many-repository.test.ts | 0 .../hasone-repository.test.ts | 10 +- .../src/__tests__/repository.test.ts | 70 +- .../src/__tests__/respsitory/count.test.ts | 3 +- .../src/__tests__/respsitory/create.test.ts | 0 .../src/__tests__/respsitory/destroy.test.ts | 0 .../src/__tests__/respsitory/find.test.ts | 0 .../database/src/__tests__/subfields.test.ts | 103 - packages/database/src/__tests__/sync.test.ts | 165 - .../database/src/__tests__/tables.test.ts | 379 - .../database/src/__tests__/tables/demos.ts | 8 - .../src/__tests__/tables/examples.json | 8 - .../database/src/__tests__/tables/extends.ts | 12 - .../database/src/__tests__/tables/tests.js | 8 - .../database/src/__tests__/tables/tests2.ts | 8 - .../src/__tests__/update-associations.test.ts | 5 +- .../src/__tests__/update-guard.test.ts | 0 .../src/__tests__/utils/modules/fn.js | 3 - .../src/__tests__/utils/modules/fnts.ts | 1 - .../src/__tests__/utils/modules/json.json | 3 - .../src/__tests__/utils/modules/obj.js | 3 - .../src/__tests__/utils/modules/objts.ts | 3 - .../database/src/__tests__/utils/op.test.ts | 197 - .../src/__tests__/utils/requireModule.test.ts | 48 - .../src/__tests__/utils/toInclude.test.ts | 423 - .../src/__tests__/utils/toWhere.test.ts | 491 - .../src/collection-importer.ts | 13 +- .../src/collection.ts | 7 +- packages/database/src/database.ts | 661 +- .../src/fields/array-field.ts | 6 +- .../src/fields/belongs-to-field.ts | 4 +- .../src/fields/belongs-to-many-field.ts | 0 .../src/fields/boolean-field.ts | 0 .../src/fields/date-field.ts | 0 packages/database/src/fields/field-types.ts | 971 - .../src/fields/field.ts | 23 +- .../src/fields/has-inverse-field.ts | 0 .../src/fields/has-many-field.ts | 12 +- .../src/fields/has-one-field.ts | 8 +- packages/database/src/fields/index.ts | 179 +- .../src/fields/json-field.ts | 0 .../src/fields/number-field.ts | 0 packages/database/src/fields/option-types.ts | 245 - .../database/src/fields/password-field.ts | 48 + .../src/fields/relation-field.ts | 0 .../src/fields/sort-field.ts | 0 .../src/fields/string-field.ts | 0 .../src/fields/text-field.ts | 0 .../src/fields/time-field.ts | 0 .../src/fields/uid-field.ts | 0 .../src/fields/virtual-field.ts | 0 .../src/filter-parser.ts | 11 +- packages/database/src/index.ts | 14 +- .../src/model-hook.ts | 0 packages/database/src/model.ts | 598 - packages/database/src/op.ts | 196 - .../src/operators/array.ts | 21 +- .../src/operators/association.ts | 0 .../src/operators/date.ts | 10 +- .../src/operators/empty.ts | 0 .../src/operators/index.ts | 0 .../src/options-parser.ts | 37 +- .../src/playground.ts | 2 +- .../belongs-to-many-repository.ts | 53 +- .../belongs-to-repository.ts | 9 +- .../relation-repository/hasmany-repository.ts | 31 +- .../relation-repository/hasone-repository.ts | 9 +- .../multiple-relation-repository.ts | 22 +- .../relation-repository.ts | 41 +- .../single-relation-repository.ts | 13 +- .../src/relation-repository/types.ts | 6 +- .../src/repository.ts | 42 +- packages/database/src/table.ts | 448 - .../src/transaction-decorator.ts | 9 +- .../src/update-associations.ts | 54 +- .../src/update-guard.ts | 35 +- packages/database/src/utils.ts | 350 +- packages/database/tsconfig.build.json | 9 + packages/database/tsconfig.json | 5 + packages/father-build/.local | 1 - packages/father-build/.npmignore | 4 - packages/father-build/README.md | 4 - packages/father-build/bin/father-build.js | 61 - packages/father-build/package.json | 83 - packages/father-build/src/babel.ts | 257 - packages/father-build/src/build.test.ts | 52 - packages/father-build/src/build.ts | 242 - .../build/babel-browser-files/.fatherrc.js | 8 - .../expected/es/browser.js | 1 - .../babel-browser-files/expected/es/node.js | 1 - .../build/babel-browser-files/src/browser.js | 2 - .../build/babel-browser-files/src/node.js | 2 - .../build/babel-cjs-lazy/.fatherrc.js | 8 - .../fixtures/build/babel-cjs-lazy/src/foo.js | 3 - .../build/babel-cjs-lazy/src/index.js | 3 - .../.fatherrc.js | 10 - .../expected/es/index.js | 2 - .../p1.js | 20 - .../p2.js | 20 - .../preset.js | 8 - .../src/index.js | 3 - .../build/babel-importLibToEs/.fatherrc.js | 5 - .../babel-importLibToEs/expected/es/index.js | 2 - .../build/babel-importLibToEs/src/index.js | 3 - .../babel-less-to-css-forbid/.fatherrc.js | 6 - .../expected/es/foo.js | 6 - .../expected/es/foo.module.less | 3 - .../expected/es/index.less | 6 - .../build/babel-less-to-css-forbid/src/foo.js | 6 - .../src/foo.module.less | 3 - .../babel-less-to-css-forbid/src/index.less | 6 - .../build/babel-less-to-css/.fatherrc.js | 6 - .../babel-less-to-css/expected/es/foo.js | 6 - .../expected/es/foo.module.css | 3 - .../babel-less-to-css/expected/es/index.css | 3 - .../build/babel-less-to-css/src/foo.js | 6 - .../babel-less-to-css/src/foo.module.less | 3 - .../build/babel-less-to-css/src/index.less | 6 - .../build/babel-node-files/.fatherrc.js | 8 - .../babel-node-files/expected/es/browser.js | 1 - .../babel-node-files/expected/es/node.js | 1 - .../build/babel-node-files/src/browser.js | 2 - .../build/babel-node-files/src/node.js | 2 - .../build/babel-node-tsx-jsx/.fatherrc.js | 5 - .../babel-node-tsx-jsx/expected/es/B.d.ts | 1 - .../build/babel-node-tsx-jsx/expected/es/B.js | 1 - .../build/babel-node-tsx-jsx/expected/es/C.js | 1 - .../babel-node-tsx-jsx/expected/es/node.js | 1 - .../build/babel-node-tsx-jsx/src/B.tsx | 2 - .../build/babel-node-tsx-jsx/src/C.jsx | 2 - .../build/babel-node-tsx-jsx/src/node.js | 2 - .../build/babel-node-tsx-jsx/tsconfig.json | 9 - .../fixtures/build/babel-normal/.fatherrc.js | 5 - .../build/babel-normal/expected/es/foo.js | 3 - .../build/babel-normal/expected/es/index.js | 3 - .../build/babel-normal/expected/es/types.d.ts | 0 .../__test__/__snapshots__/index.test.js.snap | 1 - .../babel-normal/src/__test__/index.test.js | 1 - .../fixtures/build/babel-normal/src/bar.md | 1 - .../fixtures/build/babel-normal/src/bar.mdx | 1 - .../build/babel-normal/src/demos/foo.js | 3 - .../src/fixtures/example/package.json | 1 - .../build/babel-normal/src/foo.e2e.ts | 0 .../fixtures/build/babel-normal/src/foo.js | 4 - .../build/babel-normal/src/foo.spec.ts | 0 .../build/babel-normal/src/foo.test.js | 0 .../build/babel-normal/src/foo.test.jsx | 0 .../build/babel-normal/src/foo.test.ts | 0 .../build/babel-normal/src/foo.test.tsx | 0 .../fixtures/build/babel-normal/src/index.js | 4 - .../build/babel-normal/src/types.d.ts | 0 .../build/babel-runtimeHelpers/.fatherrc.js | 6 - .../babel-runtimeHelpers/expected/es/index.js | 21 - .../build/babel-runtimeHelpers/package.json | 5 - .../build/babel-runtimeHelpers/src/index.js | 9 - .../fixtures/build/babel-syntax/.fatherrc.js | 4 - .../build/babel-syntax/expected/index.esm.js | 84 - .../fixtures/build/babel-syntax/package.json | 5 - .../src/fixtures/build/babel-syntax/src/a.js | 4 - .../src/fixtures/build/babel-syntax/src/b.js | 8 - .../fixtures/build/babel-syntax/src/index.js | 32 - .../build/babel-ts-3.7-features/.fatherrc.js | 4 - .../expected/es/index.d.ts | 2 - .../expected/es/index.js | 6 - .../build/babel-ts-3.7-features/src/index.ts | 11 - .../.fatherrc.js | 6 - .../expected/es/index.js | 3 - .../src/index.ts | 7 - .../tsconfig.json | 8 - .../babel-typescript-template/.fatherrc.js | 5 - .../expected/es/index.d.ts | 5 - .../expected/es/index.js | 3 - .../babel-typescript-template/src/index.ts | 7 - .../build/babel-typescript/.fatherrc.js | 5 - .../babel-typescript/expected/es/index.d.ts | 5 - .../babel-typescript/expected/es/index.js | 3 - .../build/babel-typescript/src/index.ts | 7 - .../build/babel-typescript/tsconfig.json | 10 - .../fixtures/build/config-array/.fatherrc.js | 13 - .../build/config-array/expected/index.umd.js | 13 - .../fixtures/build/config-array/src/index.js | 2 - .../fixtures/build/config-array/ui/index.js | 1 - .../fixtures/build/lerna-pkgs/.fatherrc.js | 8 - .../build/lerna-pkgs/core/bar/package.json | 1 - .../build/lerna-pkgs/core/bar/src/index.js | 2 - .../build/lerna-pkgs/core/foo/package.json | 1 - .../build/lerna-pkgs/core/foo/src/index.js | 2 - .../lerna-pkgs/expected/bar/index.esm.js | 1 - .../lerna-pkgs/expected/foo/index.esm.js | 1 - .../src/fixtures/build/lerna-pkgs/lerna.json | 5 - .../lerna-root-config-override/.fatherrc.js | 4 - .../expected/bar/index.js | 3 - .../expected/foo/index.js | 3 - .../lerna-root-config-override/lerna.json | 1 - .../packages/bar/package.json | 1 - .../packages/bar/src/index.js | 2 - .../packages/foo/package.json | 1 - .../packages/foo/src/index.js | 2 - .../build/lerna-root-config/.fatherrc.js | 4 - .../expected/bar/index.esm.js | 1 - .../expected/foo/index.esm.js | 1 - .../build/lerna-root-config/lerna.json | 1 - .../packages/bar/package.json | 1 - .../packages/bar/src/index.js | 2 - .../packages/foo/package.json | 1 - .../packages/foo/src/index.js | 2 - .../build/lerna-root-scope/.fatherrc.js | 3 - .../expected/bar/index.esm.js | 1 - .../expected/foo/index.esm.js | 1 - .../build/lerna-root-scope/lerna.json | 1 - .../packages/bar/.fatherrc.js | 3 - .../packages/bar/package.json | 1 - .../packages/bar/src/index.js | 2 - .../packages/foo/.fatherrc.js | 3 - .../packages/foo/package.json | 1 - .../packages/foo/src/index.js | 2 - .../build/lerna-root-tsconfig/.fatherrc.js | 4 - .../expected/bar/es/index.js | 3 - .../expected/foo/es/index.js | 3 - .../build/lerna-root-tsconfig/lerna.json | 1 - .../packages/bar/package.json | 1 - .../packages/bar/src/index.ts | 4 - .../packages/foo/package.json | 1 - .../packages/foo/src/index.ts | 4 - .../build/lerna-root-tsconfig/tsconfig.json | 12 - .../expected/bar/index.esm.js | 1 - .../expected/foo/index.esm.js | 1 - .../build/lerna-scope-packages/lerna.json | 1 - .../packages/@hoo/bar/.fatherrc.js | 4 - .../packages/@hoo/bar/package.json | 1 - .../packages/@hoo/bar/src/index.js | 2 - .../packages/foo/.fatherrc.js | 4 - .../packages/foo/package.json | 1 - .../packages/foo/src/index.js | 2 - .../build/lerna/expected/bar/index.esm.js | 1 - .../build/lerna/expected/foo/index.esm.js | 1 - .../src/fixtures/build/lerna/lerna.json | 1 - .../build/lerna/packages/bar/.fatherrc.js | 4 - .../build/lerna/packages/bar/package.json | 1 - .../build/lerna/packages/bar/src/index.js | 2 - .../build/lerna/packages/foo/.fatherrc.js | 4 - .../build/lerna/packages/foo/package.json | 1 - .../build/lerna/packages/foo/src/index.js | 2 - .../.fatherrc.js | 6 - .../expected/index.umd.js | 43 - .../package.json | 3 - .../packages/fooo/package.json | 9 - .../packages/fooo/src/index.js | 5 - .../src/index.js | 1 - .../.fatherrc.js | 6 - .../expected/index.umd.js | 34 - .../package.json | 5 - .../src/index.js | 4 - .../build/rollup-commonjs-deps/.fatherrc.js | 6 - .../expected/index.umd.js | 18 - .../build/rollup-commonjs-deps/package.json | 5 - .../build/rollup-commonjs-deps/src/index.js | 4 - .../build/rollup-config-alias/.fatherrc.js | 4 - .../rollup-config-alias/expected/index.esm.js | 6 - .../build/rollup-config-alias/src/index.js | 6 - .../rollup-css-autoprefixer/.fatherrc.js | 10 - .../expected/index.esm.js | 31 - .../build/rollup-css-autoprefixer/src/foo.css | 4 - .../rollup-css-autoprefixer/src/index.js | 3 - .../build/rollup-css-extract/.fatherrc.js | 5 - .../rollup-css-extract/expected/index.esm.css | 2 - .../rollup-css-extract/expected/index.esm.js | 1 - .../build/rollup-css-extract/src/foo.css | 2 - .../build/rollup-css-extract/src/index.js | 3 - .../build/rollup-css-inject/.fatherrc.js | 5 - .../rollup-css-inject/expected/index.esm.js | 3 - .../build/rollup-css-inject/src/foo.css | 2 - .../build/rollup-css-inject/src/index.js | 3 - .../build/rollup-css-modules/.fatherrc.js | 5 - .../rollup-css-modules/expected/index.esm.js | 32 - .../build/rollup-css-modules/src/foo.css | 2 - .../build/rollup-css-modules/src/index.js | 3 - .../fixtures/build/rollup-css/.fatherrc.js | 4 - .../build/rollup-css/expected/index.esm.js | 31 - .../src/fixtures/build/rollup-css/src/foo.css | 7 - .../fixtures/build/rollup-css/src/index.js | 3 - .../build/rollup-esm-minify/.fatherrc.js | 4 - .../rollup-esm-minify/expected/index.esm.js | 1 - .../build/rollup-esm-minify/package.json | 5 - .../build/rollup-esm-minify/src/foo.js | 4 - .../build/rollup-esm-minify/src/index.js | 5 - .../build/rollup-esm-mjs/.fatherrc.js | 4 - .../rollup-esm-mjs/expected/index.esm.js | 6 - .../build/rollup-esm-mjs/expected/index.mjs | 1 - .../build/rollup-esm-mjs/package.json | 5 - .../fixtures/build/rollup-esm-mjs/src/foo.js | 4 - .../build/rollup-esm-mjs/src/index.js | 6 - .../rollup-externalsExclude/.fatherrc.js | 11 - .../expected/index.esm.js | 5 - .../rollup-externalsExclude/expected/index.js | 7 - .../rollup-externalsExclude/package.json | 3 - .../rollup-externalsExclude/src/index.js | 2 - .../.fatherrc.js | 10 - .../expected/index.esm.js | 2 - .../p1.js | 20 - .../p2.js | 20 - .../preset.js | 8 - .../src/index.js | 3 - .../build/rollup-extraExternals/.fatherrc.js | 9 - .../expected/index.esm.js | 5 - .../build/rollup-extraExternals/package.json | 3 - .../build/rollup-extraExternals/src/index.js | 6 - .../rollup-extraRollupPlugins/.fatherrc.js | 10 - .../expected/index.esm.js | 1 - .../rollup-extraRollupPlugins/package.json | 3 - .../rollup-extraRollupPlugins/src/index.js | 2 - .../rollup-import-directory/.fatherrc.js | 4 - .../expected/index.esm.js | 1 - .../rollup-import-directory/src/foo/index.js | 2 - .../rollup-import-directory/src/index.js | 1 - .../build/rollup-importLibToEs/.fatherrc.js | 5 - .../expected/index.esm.js | 5 - .../rollup-importLibToEs/expected/index.js | 7 - .../build/rollup-importLibToEs/src/index.js | 3 - .../fixtures/build/rollup-inject/.fatherrc.js | 7 - .../build/rollup-inject/expected/index.esm.js | 3 - .../fixtures/build/rollup-inject/package.json | 5 - .../fixtures/build/rollup-inject/src/index.js | 1 - .../fixtures/build/rollup-json/.fatherrc.js | 4 - .../build/rollup-json/expected/index.esm.js | 6 - .../fixtures/build/rollup-json/src/index.js | 3 - .../fixtures/build/rollup-json/src/pkg.json | 3 - .../build/rollup-less-modules/.fatherrc.js | 5 - .../rollup-less-modules/expected/index.esm.js | 32 - .../build/rollup-less-modules/src/foo.less | 2 - .../build/rollup-less-modules/src/index.js | 3 - .../rollup-less-node-modules/.fatherrc.js | 4 - .../expected/index.esm.js | 31 - .../rollup-less-node-modules/src/foo.less | 3 - .../rollup-less-node-modules/src/index.js | 3 - .../fixtures/build/rollup-less/.fatherrc.js | 4 - .../build/rollup-less/expected/index.esm.js | 31 - .../fixtures/build/rollup-less/src/foo.less | 2 - .../fixtures/build/rollup-less/src/index.js | 3 - .../build/rollup-multiple-entry/.fatherrc.js | 8 - .../rollup-multiple-entry/expected/bar.esm.js | 1 - .../rollup-multiple-entry/expected/foo.esm.js | 1 - .../build/rollup-multiple-entry/src/bar.js | 2 - .../build/rollup-multiple-entry/src/foo.js | 2 - .../build/rollup-node-resolve/.fatherrc.js | 9 - .../rollup-node-resolve/expected/index.umd.js | 10 - .../build/rollup-node-resolve/package.json | 5 - .../build/rollup-node-resolve/src/index.js | 3 - .../fixtures/build/rollup-normal/.fatherrc.js | 6 - .../build/rollup-normal/expected/index.esm.js | 7 - .../build/rollup-normal/expected/index.js | 9 - .../build/rollup-normal/expected/index.umd.js | 12 - .../rollup-normal/expected/index.umd.min.js | 1 - .../fixtures/build/rollup-normal/package.json | 5 - .../fixtures/build/rollup-normal/src/foo.js | 4 - .../fixtures/build/rollup-normal/src/index.js | 4 - .../.fatherrc.js | 29 - .../expected/dva.bar.js | 8 - .../expected/dva.bar.min.js | 1 - .../expected/dva.esm.js | 1 - .../expected/dva.foo.cjs.js | 3 - .../expected/dva.foo.esm.js | 1 - .../expected/dva.foo.umd.js | 8 - .../expected/dva.foo.umd.min.js | 1 - .../expected/dva.js | 3 - .../expected/dva.umd.js | 8 - .../expected/dva.umd.min.js | 1 - .../src/bar.js | 2 - .../src/foo.js | 2 - .../src/index.js | 2 - .../build/rollup-replace/.fatherrc.js | 7 - .../rollup-replace/expected/index.esm.js | 1 - .../build/rollup-replace/package.json | 3 - .../build/rollup-replace/src/index.js | 2 - .../build/rollup-resolve-jsx/.fatherrc.js | 4 - .../rollup-resolve-jsx/expected/index.esm.js | 11 - .../build/rollup-resolve-jsx/package.json | 5 - .../build/rollup-resolve-jsx/src/Foo.jsx | 2 - .../build/rollup-resolve-jsx/src/index.js | 3 - .../build/rollup-runtimeHelpers/.fatherrc.js | 6 - .../expected/index.esm.js | 17 - .../rollup-runtimeHelpers/expected/index.js | 38 - .../build/rollup-runtimeHelpers/package.json | 5 - .../build/rollup-runtimeHelpers/src/index.js | 6 - .../fixtures/build/rollup-sass/.fatherrc.js | 4 - .../build/rollup-sass/expected/index.esm.js | 31 - .../fixtures/build/rollup-sass/src/foo.scss | 2 - .../fixtures/build/rollup-sass/src/index.js | 3 - .../build/rollup-svgr/.umirc.library.js | 3 - .../build/rollup-svgr/expected/index.esm.js | 22 - .../fixtures/build/rollup-svgr/package.json | 5 - .../fixtures/build/rollup-svgr/src/index.jsx | 3 - .../fixtures/build/rollup-svgr/src/menu.svg | 12 - .../.fatherrc.ts | 7 - .../expected/index.esm.js | 5 - .../expected/index.js | 7 - .../expected/type/index.d.ts | 5 - .../src/index.ts | 7 - .../tsconfig.json | 9 - .../typings.d.ts | 7 - .../build/rollup-typescript/.fatherrc.ts | 4 - .../rollup-typescript/expected/index.d.ts | 5 - .../rollup-typescript/expected/index.esm.js | 5 - .../build/rollup-typescript/expected/index.js | 7 - .../build/rollup-typescript/src/index.ts | 7 - .../build/rollup-typescript/tsconfig.json | 8 - .../build/rollup-typescript/typings.d.ts | 7 - .../build/rollup-umd-auto-name/.fatherrc.js | 6 - .../expected/index.umd.js | 13 - .../build/rollup-umd-auto-name/package.json | 3 - .../build/rollup-umd-auto-name/src/index.js | 4 - .../.fatherrc.js | 5 - .../expected/index.umd.css | 2 - .../expected/index.umd.js | 8 - .../expected/index.umd.min.css | 1 - .../expected/index.umd.min.js | 1 - .../src/foo.css | 2 - .../src/index.js | 3 - .../build/rollup-umd-globals/.fatherrc.js | 9 - .../rollup-umd-globals/expected/index.umd.js | 13 - .../build/rollup-umd-globals/package.json | 5 - .../build/rollup-umd-globals/src/index.js | 3 - .../build/rollup-umd-name/.fatherrc.js | 7 - .../rollup-umd-name/expected/index.umd.js | 13 - .../build/rollup-umd-name/src/index.js | 4 - .../build/rollup-umd-overrides/.fatherrc.js | 18 - .../expected/fetch.umd.js | 13 - .../expected/index.umd.js | 13 - .../build/rollup-umd-overrides/src/fetch.js | 4 - .../build/rollup-umd-overrides/src/index.js | 4 - .../build/rollup-umd-sourcemap/.fatherrc.js | 8 - .../expected/index.umd.js | 14 - .../expected/index.umd.js.map | 1 - .../build/rollup-umd-sourcemap/src/index.js | 4 - .../build/target-node-version/.fatherrc.js | 7 - .../target-node-version/expected/es/index.js | 4 - .../build/target-node-version/src/index.js | 6 - .../fixtures/build/target-node/.fatherrc.js | 6 - .../build/target-node/expected/index.esm.js | 6 - .../build/target-node/expected/index.js | 8 - .../fixtures/build/target-node/src/index.js | 6 - packages/father-build/src/getBabelConfig.ts | 95 - packages/father-build/src/getRollupConfig.ts | 318 - packages/father-build/src/getUserConfig.ts | 71 - packages/father-build/src/importLibToEs.js | 26 - packages/father-build/src/index.ts | 3 - .../src/normalizeBundleOpts.test.ts | 53 - .../father-build/src/normalizeBundleOpts.ts | 24 - packages/father-build/src/randomColor.ts | 34 - packages/father-build/src/registerBabel.ts | 23 - packages/father-build/src/rollup.ts | 66 - packages/father-build/src/schema.test.ts | 38 - packages/father-build/src/schema.ts | 168 - packages/father-build/src/types.d.ts | 96 - packages/father-build/src/utils.ts | 11 - packages/father-build/template/tsconfig.json | 23 - packages/plugin-action-logs/.npmignore | 7 - packages/plugin-action-logs/package.json | 13 - .../src/__tests__/hook.test.ts | 66 - .../src/collections/action_changes.ts | 30 - .../src/collections/action_logs.ts | 46 - packages/plugin-action-logs/src/constants.ts | 3 - .../src/hooks/after-create.ts | 52 - .../src/hooks/after-destroy.ts | 48 - .../src/hooks/after-update.ts | 57 - .../plugin-action-logs/src/hooks/index.ts | 3 - packages/plugin-action-logs/src/server.ts | 16 - packages/plugin-automations/.npmignore | 7 - packages/plugin-automations/package.json | 16 - .../src/__tests__/automations.test.ts | 586 - .../src/__tests__/collections/targets.ts | 15 - .../src/__tests__/collections/tests.ts | 23 - .../plugin-automations/src/__tests__/index.ts | 144 - .../src/__tests__/jobs.test.ts | 357 - .../src/collections/automations.ts | 538 - .../src/collections/automations_jobs.ts | 183 - .../src/models/automation-job.ts | 81 - .../src/models/automation.ts | 268 - packages/plugin-automations/src/server.ts | 45 - packages/plugin-china-region/package.json | 10 +- .../src/collections/china_regions.ts | 15 +- .../src/index.ts | 0 .../src/models/china-region.ts | 47 - packages/plugin-china-region/src/server.ts | 64 +- .../plugin-china-region/tsconfig.build.json | 9 + packages/plugin-china-region/tsconfig.json | 5 + packages/plugin-client/.gitignore | 4 - packages/plugin-client/.npmignore | 7 - packages/plugin-client/package.json | 16 - .../src/__tests__/sqlite.test.ts | 65 - .../src/db/en-US/part1/01-ui_schemas.sql | 1573 -- .../src/db/en-US/part1/02-collections.sql | 8 - .../src/db/en-US/part1/03-fields.sql | 62 - .../src/db/en-US/part1/04-routes.sql | 7 - .../src/db/en-US/part1/05-attachments.sql | 30 - .../src/db/en-US/part2/06-t_2uhu4szs1kq.sql | 8 - .../src/db/en-US/part2/07-t_fsveob6p269.sql | 41 - .../src/db/en-US/part2/08-t_geso7fru7a9.sql | 18 - .../src/db/en-US/part2/09-t_bphcojtl8bx.sql | 18 - .../src/db/en-US/part2/10-t_jh7a28dsfzi.sql | 27 - .../src/db/en-US/part2/12-roles.sql | 4 - .../db/en-US/part2/13-action_permissions.sql | 18 - .../db/en-US/part2/14-field_permissions.sql | 98 - .../db/en-US/part2/15-roles_ui_schemas.sql | 52 - .../src/db/en-US/postgres/setinval.sql | 5 - .../src/db/zh-CN/part1/01-ui_schemas.sql | 1573 -- .../src/db/zh-CN/part1/02-collections.sql | 8 - .../src/db/zh-CN/part1/03-fields.sql | 62 - .../src/db/zh-CN/part1/04-routes.sql | 7 - .../src/db/zh-CN/part1/05-attachments.sql | 30 - .../src/db/zh-CN/part2/06-t_2uhu4szs1kq.sql | 8 - .../src/db/zh-CN/part2/07-t_fsveob6p269.sql | 21 - .../src/db/zh-CN/part2/08-t_geso7fru7a9.sql | 18 - .../src/db/zh-CN/part2/09-t_bphcojtl8bx.sql | 18 - .../src/db/zh-CN/part2/10-t_jh7a28dsfzi.sql | 27 - .../src/db/zh-CN/part2/11-t_p13gbi31uux.sql | 35 - .../src/db/zh-CN/part2/12-roles.sql | 4 - .../db/zh-CN/part2/13-action_permissions.sql | 18 - .../db/zh-CN/part2/14-field_permissions.sql | 98 - .../db/zh-CN/part2/15-roles_ui_schemas.sql | 52 - .../src/db/zh-CN/postgres/setinval.sql | 5 - packages/plugin-client/src/index.ts | 0 packages/plugin-client/src/server.ts | 125 - packages/plugin-collections/.npmignore | 7 - packages/plugin-collections/package.json | 14 - .../src/__tests__/collections.test.ts | 40 - .../plugin-collections/src/__tests__/index.ts | 144 - .../plugin-collections/src/actions/fields.ts | 17 - .../plugin-collections/src/actions/index.ts | 56 - .../src/collections/collections.ts | 71 - .../src/collections/fields.ts | 72 - .../src/models/collection.ts | 125 - .../plugin-collections/src/models/field.ts | 108 - .../plugin-collections/src/models/index.ts | 2 - packages/plugin-collections/src/server.ts | 137 - packages/plugin-collections/src/utils.ts | 9 - packages/plugin-export/.npmignore | 7 - packages/plugin-export/package.json | 14 - packages/plugin-export/src/actions/export.ts | 70 - packages/plugin-export/src/renders/index.ts | 162 - packages/plugin-export/src/renders/renders.ts | 60 - packages/plugin-export/src/server.ts | 29 - packages/plugin-file-manager/package.json | 11 +- .../src/__tests__/action.test.ts | 63 +- .../src/__tests__/index.ts | 14 +- .../src/__tests__/storages/ali-oss.test.ts | 27 +- .../src/__tests__/storages/s3.test.ts | 27 +- .../src/__tests__/tables/users.ts | 22 +- .../plugin-file-manager/src/actions/upload.ts | 71 +- .../src/collections/attachments.ts | 10 +- .../src/collections/storages.ts | 20 +- packages/plugin-file-manager/src/server.ts | 30 +- .../src/storages/ali-oss.ts | 10 +- .../plugin-file-manager/src/storages/index.ts | 9 +- .../plugin-file-manager/src/storages/local.ts | 45 +- .../plugin-file-manager/src/storages/s3.ts | 24 +- packages/plugin-file-manager/src/utils.ts | 6 +- .../plugin-file-manager/tsconfig.build.json | 9 + packages/plugin-file-manager/tsconfig.json | 5 + packages/plugin-multi-apps/.gitignore | 4 - packages/plugin-multi-apps/.npmignore | 7 - packages/plugin-multi-apps/package.json | 12 - packages/plugin-multi-apps/src/index.ts | 0 packages/plugin-multi-apps/src/server.ts | 284 - packages/plugin-multi-apps/src/test.ts | 13 - packages/plugin-notifications/.npmignore | 7 - packages/plugin-notifications/package.json | 11 - .../src/__tests__/notifications.test.ts | 55 - .../src/collections/notification_logs.ts | 24 - .../src/collections/notification_services.ts | 24 - .../src/collections/notifications.ts | 41 - .../src/models/Notification.ts | 68 - .../src/models/NotificationLog.ts | 5 - .../src/models/NotificationService.ts | 24 - .../plugin-notifications/src/models/index.ts | 3 - packages/plugin-notifications/src/server.ts | 15 - packages/plugin-permissions/.npmignore | 7 - packages/plugin-permissions/package.json | 10 - .../src/collections/action_permissions.ts | 38 - .../src/collections/roles.ts | 47 - .../src/collections/scopes.ts | 20 - packages/plugin-permissions/src/server.ts | 12 - packages/plugin-system-settings/package.json | 11 +- .../src/collections/system_settings.ts | 4 +- packages/plugin-system-settings/src/server.ts | 41 +- .../tsconfig.build.json | 9 + packages/plugin-system-settings/tsconfig.json | 5 + packages/plugin-ui-router/.npmignore | 7 - packages/plugin-ui-router/package.json | 15 - .../plugin-ui-router/src/__tests__/index.ts | 144 - .../src/__tests__/routes.test.ts | 82 - .../src/actions/getAccessible.ts | 19 - .../src/collections/routes.ts | 46 - packages/plugin-ui-router/src/models/index.ts | 1 - packages/plugin-ui-router/src/models/route.ts | 33 - packages/plugin-ui-router/src/server.ts | 64 - .../plugin-ui-router/src/ui-schema/index.ts | 3 - .../plugin-ui-router/src/ui-schema/menu.ts | 15 - .../plugin-ui-router/src/ui-schema/signin.ts | 65 - .../plugin-ui-router/src/ui-schema/signup.ts | 100 - packages/plugin-ui-router/src/utils.ts | 9 - packages/plugin-ui-schema/.npmignore | 7 - packages/plugin-ui-schema/package.json | 14 - .../src/__tests__/ui_schemas.test.ts | 17 - .../plugin-ui-schema/src/actions/index.ts | 143 - .../src/collections/ui_schemas.ts | 63 - packages/plugin-ui-schema/src/models/index.ts | 1 - .../plugin-ui-schema/src/models/ui-schema.ts | 108 - packages/plugin-ui-schema/src/server.ts | 22 - packages/plugin-ui-schema/src/utils.ts | 9 - packages/plugin-users/.npmignore | 7 - packages/plugin-users/package.json | 14 - .../plugin-users/src/__tests__/fields.test.ts | 313 - packages/plugin-users/src/actions/users.ts | 154 - .../plugin-users/src/collections/users.ts | 105 - packages/plugin-users/src/fields/CreatedBy.ts | 33 - packages/plugin-users/src/fields/UpdatedBy.ts | 57 - packages/plugin-users/src/fields/index.ts | 2 - packages/plugin-users/src/fields/utils.ts | 23 - packages/plugin-users/src/index.ts | 1 - .../plugin-users/src/middlewares/check.ts | 11 - .../plugin-users/src/middlewares/index.ts | 2 - .../src/middlewares/parseToken.ts | 19 - packages/plugin-users/src/server.ts | 55 - packages/resourcer/package.json | 8 +- .../resourcer/src/__tests__/actions/demo0.js | 2 +- .../resourcer/src/__tests__/actions/demo1.ts | 2 +- .../resourcer/src/__tests__/assign.test.ts | 410 + packages/resourcer/src/__tests__/koa.test.ts | 288 +- .../src/__tests__/middlewares/demo0.js | 2 +- .../src/__tests__/middlewares/demo1.ts | 2 +- .../resourcer/src/__tests__/resourcer.test.ts | 274 +- .../resourcer/src/__tests__/resources/demo.ts | 2 +- .../resourcer/src/__tests__/utils.test.ts | 147 +- packages/resourcer/src/action.ts | 158 +- packages/resourcer/src/assign.ts | 118 + packages/resourcer/src/index.ts | 1 - packages/resourcer/src/middleware.ts | 9 +- packages/resourcer/src/parameter.ts | 297 - packages/resourcer/src/resource.ts | 8 +- packages/resourcer/src/resourcer.ts | 81 +- packages/resourcer/src/utils.ts | 23 +- packages/resourcer/tsconfig.build.json | 9 + packages/resourcer/tsconfig.json | 5 + packages/server/package.json | 16 +- .../server/src/__tests__/application.test.ts | 12 +- packages/server/src/__tests__/plugin.test.ts | 34 +- .../server/src/__tests__/plugins/plugin1.ts | 2 +- .../server/src/__tests__/plugins/plugin2.ts | 4 +- .../server/src/__tests__/plugins/plugin3.ts | 2 +- packages/server/src/application.ts | 72 +- packages/server/src/helper.ts | 13 +- .../server/src/middlewares/data-wrapping.ts | 2 +- .../server/src/middlewares/table2resource.ts | 57 +- packages/server/tsconfig.build.json | 9 + packages/server/tsconfig.json | 5 + packages/test/package.json | 10 +- .../test/src/__tests__/mockDatabase.test.ts | 10 +- .../test/src/__tests__/mockServer.test.ts | 2 +- packages/test/src/mockDatabase.ts | 44 +- packages/test/src/mockServer.ts | 83 +- packages/test/tsconfig.build.json | 9 + packages/test/tsconfig.json | 5 + packages/utils/package.json | 8 +- packages/utils/src/index.ts | 12 +- packages/utils/src/merge.ts | 9 - packages/utils/src/umiConfig.ts | 36 - packages/utils/tsconfig.build.json | 9 + packages/utils/tsconfig.json | 5 + tsconfig.build.json | 13 +- tsconfig.jest.json | 9 +- tsconfig.json | 12 +- uid.js | 13 - yarn.lock | 17227 +++++----------- 1231 files changed, 7902 insertions(+), 90237 deletions(-) delete mode 100644 .dockerignore delete mode 100755 .dumi/theme/builtins/API.tsx delete mode 100755 .dumi/theme/builtins/Alert.less delete mode 100755 .dumi/theme/builtins/Alert.tsx delete mode 100755 .dumi/theme/builtins/Badge.less delete mode 100755 .dumi/theme/builtins/Badge.tsx delete mode 100755 .dumi/theme/builtins/Example.less delete mode 100755 .dumi/theme/builtins/Example.tsx delete mode 100755 .dumi/theme/builtins/Previewer.less delete mode 100755 .dumi/theme/builtins/Previewer.tsx delete mode 100644 .dumi/theme/builtins/Redirect.tsx delete mode 100755 .dumi/theme/builtins/SourceCode.less delete mode 100755 .dumi/theme/builtins/SourceCode.tsx delete mode 100644 .dumi/theme/builtins/Tree.less delete mode 100644 .dumi/theme/builtins/Tree.tsx delete mode 100755 .dumi/theme/components/LocaleSelect.less delete mode 100755 .dumi/theme/components/LocaleSelect.tsx delete mode 100755 .dumi/theme/components/Navbar.less delete mode 100755 .dumi/theme/components/Navbar.tsx delete mode 100755 .dumi/theme/components/SearchBar.less delete mode 100755 .dumi/theme/components/SearchBar.tsx delete mode 100755 .dumi/theme/components/SideMenu.less delete mode 100755 .dumi/theme/components/SideMenu.tsx delete mode 100755 .dumi/theme/components/SlugList.less delete mode 100755 .dumi/theme/components/SlugList.tsx delete mode 100755 .dumi/theme/layout.tsx delete mode 100755 .dumi/theme/style/layout.less delete mode 100755 .dumi/theme/style/markdown.less delete mode 100755 .dumi/theme/style/variables.less delete mode 100755 .dumi/theme/test/index.test.tsx delete mode 100755 .editorconfig delete mode 100644 .env.example delete mode 100644 .fatherrc.ts delete mode 100644 .github/workflows/vercel.yml delete mode 100644 Dockerfile delete mode 100644 LICENSE delete mode 100644 README.zh-CN.md delete mode 100644 docker-compose.yml delete mode 100644 docs/changelog.md delete mode 100644 docs/changelog.zh-CN.md delete mode 100644 docs/components/collection-fields/attachment.md delete mode 100644 docs/components/collection-fields/attachment.zh-CN.md delete mode 100644 docs/components/collection-fields/checkbox-group.md delete mode 100644 docs/components/collection-fields/checkbox.md delete mode 100644 docs/components/collection-fields/china-region.md delete mode 100644 docs/components/collection-fields/created-at.md delete mode 100644 docs/components/collection-fields/created-by.md delete mode 100644 docs/components/collection-fields/datetime.md delete mode 100644 docs/components/collection-fields/email.md delete mode 100644 docs/components/collection-fields/icon.md delete mode 100644 docs/components/collection-fields/link-to.md delete mode 100644 docs/components/collection-fields/markdown.md delete mode 100644 docs/components/collection-fields/multiple-select.md delete mode 100644 docs/components/collection-fields/number.md delete mode 100644 docs/components/collection-fields/password.md delete mode 100644 docs/components/collection-fields/percent.md delete mode 100644 docs/components/collection-fields/phone.md delete mode 100644 docs/components/collection-fields/radio-group.md delete mode 100644 docs/components/collection-fields/select.md delete mode 100644 docs/components/collection-fields/string.md delete mode 100644 docs/components/collection-fields/sub-table.md delete mode 100644 docs/components/collection-fields/textarea.md delete mode 100644 docs/components/collection-fields/time.md delete mode 100644 docs/components/collection-fields/updated-at.md delete mode 100644 docs/components/collection-fields/updated-by.md delete mode 100644 docs/components/index.md delete mode 100644 docs/components/index.zh-CN.md delete mode 100644 docs/components/route-switch/admin-layout.md delete mode 100644 docs/components/route-switch/admin-layout.zh-CN.md delete mode 100644 docs/components/route-switch/auth-layout.md delete mode 100644 docs/develop.md delete mode 100644 docs/examples/demos/demo1.tsx delete mode 100644 docs/examples/index.md delete mode 100644 docs/examples/index.zh-CN.md delete mode 100644 docs/guide/basic/client-components.md delete mode 100644 docs/guide/basic/client-components.zh-CN.md delete mode 100644 docs/guide/basic/collections.md delete mode 100644 docs/guide/basic/collections.zh-CN.md delete mode 100644 docs/guide/contributing.md delete mode 100644 docs/guide/contributing.zh-CN.md delete mode 100644 docs/guide/deployment.md delete mode 100644 docs/guide/deployment.zh-CN.md delete mode 100644 docs/guide/index.md delete mode 100644 docs/guide/index.zh-CN.md delete mode 100644 docs/guide/kernel-principle/choose-an-orm.md delete mode 100644 docs/guide/kernel-principle/choose-an-orm.zh-CN.md delete mode 100644 docs/guide/kernel-principle/client-side-kernel.md delete mode 100644 docs/guide/kernel-principle/client-side-kernel.zh-CN.md delete mode 100644 docs/guide/kernel-principle/installation-startup.md delete mode 100644 docs/guide/kernel-principle/installation-startup.zh-CN.md delete mode 100644 docs/guide/kernel-principle/microkernel-architecture.md delete mode 100644 docs/guide/kernel-principle/microkernel-architecture.zh-CN.md delete mode 100644 docs/guide/kernel-principle/nocobase.md delete mode 100644 docs/guide/kernel-principle/reverse-relationship-fields.md delete mode 100644 docs/guide/kernel-principle/reverse-relationship-fields.zh-CN.md delete mode 100644 docs/guide/kernel-principle/server-side-kernel.md delete mode 100644 docs/guide/kernel-principle/server-side-kernel.zh-CN.md delete mode 100644 docs/guide/plugin-development/client-side-plugin.md delete mode 100644 docs/guide/plugin-development/client-side-plugin.zh-CN.md delete mode 100644 docs/guide/plugin-development/i18n.md delete mode 100644 docs/guide/plugin-development/i18n.zh-CN.md delete mode 100644 docs/guide/plugin-development/index.md delete mode 100644 docs/guide/plugin-development/index.zh-CN.md delete mode 100644 docs/guide/plugin-development/pluggable-interfaces.md delete mode 100644 docs/guide/plugin-development/pluggable-interfaces.zh-CN.md delete mode 100644 docs/guide/quickstart.md delete mode 100644 docs/guide/quickstart.zh-CN.md delete mode 100644 docs/images/API.png delete mode 100644 docs/images/MiniMIS.png delete mode 100644 docs/images/MiniProgram.png delete mode 100644 docs/images/NocoBase.png delete mode 100644 docs/images/SaaS1.png delete mode 100644 docs/images/SaaS2.png delete mode 100644 docs/images/img1.png delete mode 100644 docs/images/img2.png delete mode 100644 docs/index.zh-CN.md delete mode 100644 docs/plugins/action-logs.md delete mode 100644 docs/plugins/automations.md delete mode 100644 docs/plugins/china-region.md delete mode 100644 docs/plugins/client.md delete mode 100644 docs/plugins/collections.md delete mode 100644 docs/plugins/export.md delete mode 100644 docs/plugins/file-manager.md delete mode 100644 docs/plugins/index.md delete mode 100644 docs/plugins/index.zh-CN.md delete mode 100644 docs/plugins/multi-apps.md delete mode 100644 docs/plugins/notifications.md delete mode 100644 docs/plugins/permissions.md delete mode 100644 docs/plugins/system-settings.md delete mode 100644 docs/plugins/ui-router.md delete mode 100644 docs/plugins/ui-schema.md delete mode 100644 docs/plugins/users.md delete mode 100644 docs/reference/application.md delete mode 100644 docs/reference/cli.md delete mode 100644 docs/reference/client.md delete mode 100644 docs/reference/collection.md delete mode 100644 docs/reference/context.md delete mode 100644 docs/reference/database.md delete mode 100644 docs/reference/field-types.md delete mode 100644 docs/reference/filter-operators.md delete mode 100644 docs/reference/model.md delete mode 100644 docs/reference/overview.md delete mode 100644 docs/reference/plugin-manager.md delete mode 100644 docs/reference/plugin.md delete mode 100644 docs/reference/repository.md delete mode 100644 docs/reference/resourcer.md delete mode 100644 docs/reference/rest-api.md delete mode 100644 dotenv.js delete mode 100644 examples/collections/src/index.ts delete mode 100644 examples/index.ts delete mode 100644 examples/middleware/src/index.ts delete mode 100644 examples/models/src/index.ts delete mode 100644 examples/plugins/src/index.ts delete mode 100644 examples/repositories/src/index.ts delete mode 100644 examples/resources/src/index.ts delete mode 100644 examples/saas/src/index.ts delete mode 100644 examples/simple/src/index.ts create mode 100644 jest.setup.ts delete mode 100644 nodemon.json delete mode 100644 packages/actions/src/__tests__/add.test.ts delete mode 100644 packages/actions/src/__tests__/create.test.ts delete mode 100644 packages/actions/src/__tests__/destroy.test.ts delete mode 100644 packages/actions/src/__tests__/get.test.ts create mode 100644 packages/actions/src/__tests__/hello.test.ts create mode 100644 packages/actions/src/__tests__/index.ts delete mode 100644 packages/actions/src/__tests__/list.test.ts delete mode 100644 packages/actions/src/__tests__/remove.test.ts delete mode 100644 packages/actions/src/__tests__/set.test.ts delete mode 100644 packages/actions/src/__tests__/sort.test.ts delete mode 100644 packages/actions/src/__tests__/toggle.test.ts delete mode 100644 packages/actions/src/__tests__/update.test.ts delete mode 100644 packages/actions/src/__tests__/utils.test.ts delete mode 100644 packages/actions/src/actions/add.ts delete mode 100644 packages/actions/src/actions/create.ts delete mode 100644 packages/actions/src/actions/destroy.ts delete mode 100644 packages/actions/src/actions/get.ts delete mode 100644 packages/actions/src/actions/index.ts delete mode 100644 packages/actions/src/actions/list.ts delete mode 100644 packages/actions/src/actions/remove.ts delete mode 100644 packages/actions/src/actions/set.ts delete mode 100644 packages/actions/src/actions/sort.ts delete mode 100644 packages/actions/src/actions/toggle.ts delete mode 100644 packages/actions/src/actions/update.ts delete mode 100644 packages/actions/src/middlewares/associated.ts delete mode 100644 packages/actions/src/middlewares/index.ts delete mode 100644 packages/actions/src/utils.ts create mode 100644 packages/actions/tsconfig.build.json create mode 100644 packages/actions/tsconfig.json delete mode 100644 packages/api/.env.example delete mode 100644 packages/api/.npmignore delete mode 100755 packages/api/bin/nocobase.js delete mode 100644 packages/api/package.json delete mode 100644 packages/api/src/index.ts delete mode 100755 packages/app/.editorconfig delete mode 100644 packages/app/.gitignore delete mode 100644 packages/app/.prettierignore delete mode 100644 packages/app/.prettierrc delete mode 100644 packages/app/.umirc.ts delete mode 100644 packages/app/README.md delete mode 100644 packages/app/package.json delete mode 100644 packages/app/src/apis/index.ts delete mode 100644 packages/app/src/app.ts delete mode 100644 packages/app/src/css_browser_selector.js delete mode 100644 packages/app/src/global.less delete mode 100644 packages/app/src/pages/index.less delete mode 100644 packages/app/src/pages/index.tsx delete mode 100644 packages/app/tsconfig.apis.json delete mode 100644 packages/app/tsconfig.json delete mode 100644 packages/app/typings.d.ts delete mode 100644 packages/app/umi.js delete mode 100644 packages/client/.npmignore delete mode 100644 packages/client/src/ClientSDK.ts delete mode 100644 packages/client/src/ConfigProvider.tsx delete mode 100644 packages/client/src/components/Sortable/index.tsx delete mode 100644 packages/client/src/components/SwitchMenuItem.tsx delete mode 100644 packages/client/src/components/admin-layout/Auth.tsx delete mode 100644 packages/client/src/components/admin-layout/Collections/index.tsx delete mode 100644 packages/client/src/components/admin-layout/More.tsx delete mode 100644 packages/client/src/components/admin-layout/Permissions/ActionPermissionField.tsx delete mode 100644 packages/client/src/components/admin-layout/Permissions/MenuPermissionTable.tsx delete mode 100644 packages/client/src/components/admin-layout/Permissions/index.tsx delete mode 100644 packages/client/src/components/admin-layout/SiteTitle.tsx delete mode 100644 packages/client/src/components/admin-layout/UserInfo.tsx delete mode 100644 packages/client/src/components/admin-layout/datatable.tsx delete mode 100644 packages/client/src/components/admin-layout/index.tsx delete mode 100644 packages/client/src/components/admin-layout/style.less delete mode 100644 packages/client/src/components/auth-layout/index.tsx delete mode 100644 packages/client/src/components/drag-and-drop/index.tsx delete mode 100644 packages/client/src/components/icon-picker/index.tsx delete mode 100644 packages/client/src/components/route-schema-renderer/index.tsx delete mode 100644 packages/client/src/components/router-config/demos/demo1.tsx delete mode 100644 packages/client/src/components/router-config/demos/demo2.tsx delete mode 100644 packages/client/src/components/router-config/index.md delete mode 100644 packages/client/src/components/router-config/index.tsx delete mode 100644 packages/client/src/components/schema-renderer/demos/demo1.tsx delete mode 100644 packages/client/src/components/schema-renderer/index.md delete mode 100644 packages/client/src/components/schema-renderer/index.tsx delete mode 100644 packages/client/src/constate/Client.tsx delete mode 100644 packages/client/src/constate/Collections.ts delete mode 100644 packages/client/src/constate/DesignableSwitch.ts delete mode 100644 packages/client/src/constate/DisplayedMap.ts delete mode 100644 packages/client/src/constate/PageTitle.ts delete mode 100644 packages/client/src/constate/index.tsx delete mode 100644 packages/client/src/context.ts delete mode 100644 packages/client/src/demo.md delete mode 100644 packages/client/src/demos/demo1.tsx delete mode 100644 packages/client/src/hooks/useCompile.ts delete mode 100644 packages/client/src/hooks/useResource.ts delete mode 100644 packages/client/src/i18n.ts delete mode 100644 packages/client/src/index.less delete mode 100644 packages/client/src/index.md delete mode 100644 packages/client/src/locale/en_US.ts delete mode 100644 packages/client/src/locale/zh_CN.ts delete mode 100644 packages/client/src/resource.ts delete mode 100644 packages/client/src/schemas/action-logs/index.tsx delete mode 100644 packages/client/src/schemas/action/ActionBar.tsx delete mode 100644 packages/client/src/schemas/action/index.md delete mode 100644 packages/client/src/schemas/action/index.tsx delete mode 100644 packages/client/src/schemas/action/index.zh-CN.md delete mode 100644 packages/client/src/schemas/action/style.less delete mode 100644 packages/client/src/schemas/add-new/chart.ts delete mode 100644 packages/client/src/schemas/add-new/index.md delete mode 100644 packages/client/src/schemas/add-new/index.tsx delete mode 100644 packages/client/src/schemas/add-new/style.less delete mode 100644 packages/client/src/schemas/array-table/index.tsx delete mode 100644 packages/client/src/schemas/block-item/index.md delete mode 100644 packages/client/src/schemas/block-item/index.tsx delete mode 100644 packages/client/src/schemas/block-item/style.less delete mode 100644 packages/client/src/schemas/calendar/Action.tsx delete mode 100644 packages/client/src/schemas/calendar/ActionBar.tsx delete mode 100644 packages/client/src/schemas/calendar/DesignableBar.tsx delete mode 100644 packages/client/src/schemas/calendar/demos/demo1.tsx delete mode 100644 packages/client/src/schemas/calendar/demos/events.ts delete mode 100644 packages/client/src/schemas/calendar/designable.less delete mode 100644 packages/client/src/schemas/calendar/index.md delete mode 100644 packages/client/src/schemas/calendar/index.tsx delete mode 100644 packages/client/src/schemas/calendar/style.less delete mode 100644 packages/client/src/schemas/calendar/style2.less delete mode 100644 packages/client/src/schemas/card-item/index.tsx delete mode 100644 packages/client/src/schemas/cascader/demos/demo1.tsx delete mode 100644 packages/client/src/schemas/cascader/demos/demo2.tsx delete mode 100644 packages/client/src/schemas/cascader/index.md delete mode 100644 packages/client/src/schemas/cascader/index.tsx delete mode 100644 packages/client/src/schemas/chart/G2Plot.tsx delete mode 100644 packages/client/src/schemas/chart/index.md delete mode 100644 packages/client/src/schemas/chart/index.tsx delete mode 100644 packages/client/src/schemas/checkbox/index.md delete mode 100644 packages/client/src/schemas/checkbox/index.tsx delete mode 100644 packages/client/src/schemas/color-select/index.md delete mode 100644 packages/client/src/schemas/color-select/index.tsx delete mode 100644 packages/client/src/schemas/database-field/demos/demo1.tsx delete mode 100644 packages/client/src/schemas/database-field/demos/demo2.tsx delete mode 100644 packages/client/src/schemas/database-field/index.md delete mode 100644 packages/client/src/schemas/database-field/index.tsx delete mode 100644 packages/client/src/schemas/database-field/interfaces/attachment.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/checkbox.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/checkboxGroup.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/chinaRegion.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/createdAt.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/createdBy.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/datetime.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/email.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/icon.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/index.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/linkTo.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/markdown.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/multipleSelect.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/number.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/password.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/percent.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/phone.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/properties/index.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/radioGroup.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/select.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/string.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/subTable.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/textarea.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/time.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/types.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/updatedAt.ts delete mode 100644 packages/client/src/schemas/database-field/interfaces/updatedBy.ts delete mode 100644 packages/client/src/schemas/database-field/style.less delete mode 100644 packages/client/src/schemas/date-picker/index.md delete mode 100644 packages/client/src/schemas/date-picker/index.tsx delete mode 100644 packages/client/src/schemas/designable-bar/index.md delete mode 100644 packages/client/src/schemas/designable-bar/style.less delete mode 100644 packages/client/src/schemas/display/index.less delete mode 100644 packages/client/src/schemas/display/index.tsx delete mode 100644 packages/client/src/schemas/drag-and-drop/index.tsx delete mode 100644 packages/client/src/schemas/filter/FilterItem.tsx delete mode 100644 packages/client/src/schemas/filter/index.md delete mode 100644 packages/client/src/schemas/filter/index.tsx delete mode 100644 packages/client/src/schemas/filter/style.less delete mode 100644 packages/client/src/schemas/form-item/index.md delete mode 100644 packages/client/src/schemas/form-item/index.tsx delete mode 100644 packages/client/src/schemas/form-item/style.less delete mode 100644 packages/client/src/schemas/form/DesignableBar.tsx delete mode 100644 packages/client/src/schemas/form/Field.DesignableBar.tsx delete mode 100644 packages/client/src/schemas/form/index.md delete mode 100644 packages/client/src/schemas/form/index.tsx delete mode 100644 packages/client/src/schemas/form/style.less delete mode 100644 packages/client/src/schemas/grid/DesignableBar.tsx delete mode 100644 packages/client/src/schemas/grid/demos/demo1.tsx delete mode 100644 packages/client/src/schemas/grid/index.md delete mode 100644 packages/client/src/schemas/grid/index.tsx delete mode 100644 packages/client/src/schemas/grid/style.less delete mode 100644 packages/client/src/schemas/icon-picker/index.md delete mode 100644 packages/client/src/schemas/icon-picker/index.tsx delete mode 100644 packages/client/src/schemas/index.tsx delete mode 100644 packages/client/src/schemas/input-number/index.md delete mode 100644 packages/client/src/schemas/input-number/index.tsx delete mode 100644 packages/client/src/schemas/input-number/style.less delete mode 100644 packages/client/src/schemas/input/DesignableBar.tsx delete mode 100644 packages/client/src/schemas/input/index.md delete mode 100644 packages/client/src/schemas/input/index.tsx delete mode 100644 packages/client/src/schemas/kanban/CardDesignableBar.tsx delete mode 100644 packages/client/src/schemas/kanban/DesignableBar.tsx delete mode 100644 packages/client/src/schemas/kanban/FieldDesignableBar.tsx delete mode 100644 packages/client/src/schemas/kanban/demos/demo1.tsx delete mode 100644 packages/client/src/schemas/kanban/index.md delete mode 100644 packages/client/src/schemas/kanban/index.tsx delete mode 100644 packages/client/src/schemas/kanban/style.less delete mode 100644 packages/client/src/schemas/markdown/index.md delete mode 100644 packages/client/src/schemas/markdown/index.tsx delete mode 100644 packages/client/src/schemas/markdown/style.less delete mode 100644 packages/client/src/schemas/menu/defaultSchemas.ts delete mode 100644 packages/client/src/schemas/menu/demos/demo1.tsx delete mode 100644 packages/client/src/schemas/menu/demos/demo2.tsx delete mode 100644 packages/client/src/schemas/menu/demos/demo3.tsx delete mode 100644 packages/client/src/schemas/menu/demos/demo4.tsx delete mode 100644 packages/client/src/schemas/menu/index.md delete mode 100644 packages/client/src/schemas/menu/index.tsx delete mode 100644 packages/client/src/schemas/menu/style.less delete mode 100644 packages/client/src/schemas/page/index.tsx delete mode 100755 packages/client/src/schemas/password/PasswordStrength.tsx delete mode 100644 packages/client/src/schemas/password/index.md delete mode 100644 packages/client/src/schemas/password/index.tsx delete mode 100644 packages/client/src/schemas/radio/index.md delete mode 100644 packages/client/src/schemas/radio/index.tsx delete mode 100644 packages/client/src/schemas/select/demos/demo1.tsx delete mode 100644 packages/client/src/schemas/select/index.less delete mode 100644 packages/client/src/schemas/select/index.md delete mode 100644 packages/client/src/schemas/select/index.tsx delete mode 100644 packages/client/src/schemas/table/Actions.tsx delete mode 100644 packages/client/src/schemas/table/AddActionButton.tsx delete mode 100644 packages/client/src/schemas/table/AddColumn.tsx delete mode 100644 packages/client/src/schemas/table/SimpleDesignableBar.tsx delete mode 100644 packages/client/src/schemas/table/Sortable.tsx delete mode 100644 packages/client/src/schemas/table/Table.tsx delete mode 100644 packages/client/src/schemas/table/TableActionBar.tsx delete mode 100644 packages/client/src/schemas/table/TableActionDesignableBar.tsx delete mode 100644 packages/client/src/schemas/table/TableCell.tsx delete mode 100644 packages/client/src/schemas/table/TableColumn.tsx delete mode 100644 packages/client/src/schemas/table/TableColumnDesignableBar.tsx delete mode 100644 packages/client/src/schemas/table/TableDesignableBar.tsx delete mode 100644 packages/client/src/schemas/table/TableExportActionDesignableBar.tsx delete mode 100644 packages/client/src/schemas/table/TableFilter.tsx delete mode 100644 packages/client/src/schemas/table/TableFilterDesignableBar.tsx delete mode 100644 packages/client/src/schemas/table/TableIndex.tsx delete mode 100644 packages/client/src/schemas/table/TableMain.tsx delete mode 100644 packages/client/src/schemas/table/TableOperation.tsx delete mode 100644 packages/client/src/schemas/table/TableOperationCell.tsx delete mode 100644 packages/client/src/schemas/table/TableOperationDesignableBar.tsx delete mode 100644 packages/client/src/schemas/table/TablePagination.tsx delete mode 100644 packages/client/src/schemas/table/TableProvider.tsx delete mode 100644 packages/client/src/schemas/table/TableSortHandle.tsx delete mode 100644 packages/client/src/schemas/table/context.ts delete mode 100644 packages/client/src/schemas/table/demos/demo3.tsx delete mode 100644 packages/client/src/schemas/table/hooks/useActionLogDetailsResource.ts delete mode 100644 packages/client/src/schemas/table/hooks/useActionLogsResource.ts delete mode 100644 packages/client/src/schemas/table/hooks/useCollectionFields.ts delete mode 100644 packages/client/src/schemas/table/hooks/useDataSource.ts delete mode 100644 packages/client/src/schemas/table/hooks/useDefaultRowSelection.ts delete mode 100644 packages/client/src/schemas/table/hooks/useDefaultSelectedRowKeys.ts delete mode 100644 packages/client/src/schemas/table/hooks/usePagination.ts delete mode 100644 packages/client/src/schemas/table/hooks/useResource.ts delete mode 100644 packages/client/src/schemas/table/hooks/useTable.ts delete mode 100644 packages/client/src/schemas/table/hooks/useTableActionBars.ts delete mode 100644 packages/client/src/schemas/table/hooks/useTableColumns.tsx delete mode 100644 packages/client/src/schemas/table/hooks/useTableCreateAction.ts delete mode 100644 packages/client/src/schemas/table/hooks/useTableDestroyAction.ts delete mode 100644 packages/client/src/schemas/table/hooks/useTableExportAction.ts delete mode 100644 packages/client/src/schemas/table/hooks/useTableFilterAction.ts delete mode 100644 packages/client/src/schemas/table/hooks/useTableIndex.ts delete mode 100644 packages/client/src/schemas/table/hooks/useTableRow.ts delete mode 100644 packages/client/src/schemas/table/hooks/useTableRowRecord.ts delete mode 100644 packages/client/src/schemas/table/hooks/useTableUpdateAction.ts delete mode 100644 packages/client/src/schemas/table/hooks/useTotal.ts delete mode 100644 packages/client/src/schemas/table/index.md delete mode 100644 packages/client/src/schemas/table/index.ts delete mode 100644 packages/client/src/schemas/table/style.less delete mode 100644 packages/client/src/schemas/table/types.ts delete mode 100644 packages/client/src/schemas/table/utils.ts delete mode 100644 packages/client/src/schemas/tabs/index.md delete mode 100644 packages/client/src/schemas/tabs/index.tsx delete mode 100644 packages/client/src/schemas/tabs/style.less delete mode 100644 packages/client/src/schemas/time-picker/index.md delete mode 100644 packages/client/src/schemas/time-picker/index.tsx delete mode 100644 packages/client/src/schemas/tree-select/index.tsx delete mode 100644 packages/client/src/schemas/upload/demos/demo1.tsx delete mode 100644 packages/client/src/schemas/upload/demos/demo2.tsx delete mode 100644 packages/client/src/schemas/upload/index.md delete mode 100644 packages/client/src/schemas/upload/index.tsx delete mode 100755 packages/client/src/schemas/upload/placeholder.ts delete mode 100644 packages/client/src/schemas/upload/style.less create mode 100644 packages/client/tsconfig.build.json delete mode 100644 packages/create-nocobase-app/.fatherrc.ts delete mode 100755 packages/create-nocobase-app/.local delete mode 100644 packages/create-nocobase-app/.npmignore delete mode 100755 packages/create-nocobase-app/README.md delete mode 100755 packages/create-nocobase-app/bin/create-nocobase-app.js delete mode 100755 packages/create-nocobase-app/package.json delete mode 100755 packages/create-nocobase-app/src/AppGenerator/AppGenerator.ts delete mode 100755 packages/create-nocobase-app/src/app.ts delete mode 100755 packages/create-nocobase-app/src/cli.ts delete mode 100755 packages/create-nocobase-app/src/index.test.ts delete mode 100755 packages/create-nocobase-app/src/index.ts delete mode 100644 packages/create-nocobase-app/src/utils/index.ts delete mode 100755 packages/create-nocobase-app/templates/AppGenerator/.editorconfig delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/.env.example delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/.env.tpl delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/.gitignore delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/.prettierignore delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/.prettierrc delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/.umirc.ts delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/Dockerfile delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/README.md delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/docker-compose.yml delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/package.json.tpl delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/public/favicon.png delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/src/apis/config/db.ts delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/src/apis/index.ts delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/src/app.ts delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/src/css_browser_selector.js delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/src/global.less delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/src/pages/index.less delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/src/pages/index.tsx delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/tsconfig.apis.json delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/tsconfig.json delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/typings.d.ts delete mode 100644 packages/create-nocobase-app/templates/AppGenerator/umi.js delete mode 100644 packages/database-next/package.json delete mode 100644 packages/database-next/src/__tests__/database.test.ts delete mode 100644 packages/database-next/src/__tests__/index.ts delete mode 100644 packages/database-next/src/database.ts delete mode 100644 packages/database-next/src/fields/index.ts delete mode 100644 packages/database-next/src/index.ts delete mode 100644 packages/database-next/src/utils.ts delete mode 100644 packages/database/.npmignore delete mode 100644 packages/database/examples/index.ts delete mode 100644 packages/database/examples/plugins/db-driven/index.ts delete mode 100644 packages/database/examples/plugins/db-driven/tables/fields.ts delete mode 100644 packages/database/examples/plugins/db-driven/tables/tables.ts delete mode 100644 packages/database/examples/tables/bar.js delete mode 100644 packages/database/examples/tables/comments.ts delete mode 100644 packages/database/examples/tables/foo.json delete mode 100644 packages/database/examples/tables/posts.ts delete mode 100644 packages/database/examples/tables/profiles.ts delete mode 100644 packages/database/examples/tables/tags.ts delete mode 100644 packages/database/examples/tables/users.ts delete mode 100644 packages/database/src/__tests__/associations.test.ts rename packages/{database-next => database}/src/__tests__/collection-importer.test.ts (83%) rename packages/{database-next => database}/src/__tests__/collection.test.ts (89%) rename packages/{database-next => database}/src/__tests__/database.import.test.ts (100%) delete mode 100644 packages/database/src/__tests__/emitter.test.ts rename packages/{database-next => database}/src/__tests__/fields/belongs-to-field.test.ts (100%) rename packages/{database-next => database}/src/__tests__/fields/belongs-to-many-field.test.ts (100%) rename packages/{database-next => database}/src/__tests__/fields/has-many-field.test.ts (98%) rename packages/{database-next => database}/src/__tests__/fields/has-one-field.test.ts (100%) create mode 100644 packages/database/src/__tests__/fields/password-field.test.ts delete mode 100644 packages/database/src/__tests__/fields/radio.test.ts rename packages/{database-next => database}/src/__tests__/fields/sort-field.test.ts (100%) rename packages/{database-next => database}/src/__tests__/fields/string-field.test.ts (92%) delete mode 100644 packages/database/src/__tests__/fields/types.test.ts rename packages/{database-next => database}/src/__tests__/filter-parser.test.ts (91%) rename packages/{database-next => database}/src/__tests__/fixtures/c0/a.ts (100%) rename packages/{database-next => database}/src/__tests__/fixtures/c1/b.ts (100%) rename packages/{database-next => database}/src/__tests__/fixtures/c2/a.ts (100%) rename packages/{database-next => database}/src/__tests__/fixtures/collections/delay-extend.ts (100%) rename packages/{database-next => database}/src/__tests__/fixtures/collections/delay-extend2.ts (100%) rename packages/{database-next => database}/src/__tests__/fixtures/collections/extend.ts (100%) rename packages/{database-next => database}/src/__tests__/fixtures/collections/extend2.ts (100%) rename packages/{database-next => database}/src/__tests__/fixtures/collections/posts.ts (100%) rename packages/{database-next => database}/src/__tests__/fixtures/collections/tags.js (100%) rename packages/{database-next => database}/src/__tests__/fixtures/collections/test.jpg (100%) rename packages/{database-next => database}/src/__tests__/fixtures/collections/user.json (100%) delete mode 100644 packages/database/src/__tests__/hooks.test.ts delete mode 100644 packages/database/src/__tests__/model/custom.test.ts delete mode 100644 packages/database/src/__tests__/model/getValuesByFieldNames.ts delete mode 100644 packages/database/src/__tests__/model/model.test.ts delete mode 100644 packages/database/src/__tests__/model/parseApiJson.test.ts delete mode 100644 packages/database/src/__tests__/model/updateAssociations.test.ts delete mode 100644 packages/database/src/__tests__/model/updateAssociations2.test.ts delete mode 100644 packages/database/src/__tests__/op.test.ts rename packages/{database-next => database}/src/__tests__/operator/array-operator.test.ts (100%) rename packages/{database-next => database}/src/__tests__/operator/association-operator.test.ts (98%) rename packages/{database-next => database}/src/__tests__/operator/date-operator.test.ts (100%) rename packages/{database-next => database}/src/__tests__/operator/empty-operator.test.ts (100%) rename packages/{database-next => database}/src/__tests__/option-parser.test.ts (96%) rename packages/{database-next => database}/src/__tests__/relation-repository/belongs-to-many-repository.test.ts (100%) rename packages/{database-next => database}/src/__tests__/relation-repository/has-many-repository.test.ts (100%) rename packages/{database-next => database}/src/__tests__/relation-repository/hasone-repository.test.ts (92%) rename packages/{database-next => database}/src/__tests__/repository.test.ts (80%) rename packages/{database-next => database}/src/__tests__/respsitory/count.test.ts (97%) rename packages/{database-next => database}/src/__tests__/respsitory/create.test.ts (100%) rename packages/{database-next => database}/src/__tests__/respsitory/destroy.test.ts (100%) rename packages/{database-next => database}/src/__tests__/respsitory/find.test.ts (100%) delete mode 100644 packages/database/src/__tests__/subfields.test.ts delete mode 100644 packages/database/src/__tests__/sync.test.ts delete mode 100644 packages/database/src/__tests__/tables.test.ts delete mode 100644 packages/database/src/__tests__/tables/demos.ts delete mode 100644 packages/database/src/__tests__/tables/examples.json delete mode 100644 packages/database/src/__tests__/tables/extends.ts delete mode 100644 packages/database/src/__tests__/tables/tests.js delete mode 100644 packages/database/src/__tests__/tables/tests2.ts rename packages/{database-next => database}/src/__tests__/update-associations.test.ts (98%) rename packages/{database-next => database}/src/__tests__/update-guard.test.ts (100%) delete mode 100644 packages/database/src/__tests__/utils/modules/fn.js delete mode 100644 packages/database/src/__tests__/utils/modules/fnts.ts delete mode 100644 packages/database/src/__tests__/utils/modules/json.json delete mode 100644 packages/database/src/__tests__/utils/modules/obj.js delete mode 100644 packages/database/src/__tests__/utils/modules/objts.ts delete mode 100644 packages/database/src/__tests__/utils/op.test.ts delete mode 100644 packages/database/src/__tests__/utils/requireModule.test.ts delete mode 100644 packages/database/src/__tests__/utils/toInclude.test.ts delete mode 100644 packages/database/src/__tests__/utils/toWhere.test.ts rename packages/{database-next => database}/src/collection-importer.ts (71%) rename packages/{database-next => database}/src/collection.ts (96%) rename packages/{database-next => database}/src/fields/array-field.ts (85%) rename packages/{database-next => database}/src/fields/belongs-to-field.ts (95%) rename packages/{database-next => database}/src/fields/belongs-to-many-field.ts (100%) rename packages/{database-next => database}/src/fields/boolean-field.ts (100%) rename packages/{database-next => database}/src/fields/date-field.ts (100%) delete mode 100644 packages/database/src/fields/field-types.ts rename packages/{database-next => database}/src/fields/field.ts (73%) rename packages/{database-next => database}/src/fields/has-inverse-field.ts (100%) rename packages/{database-next => database}/src/fields/has-many-field.ts (94%) rename packages/{database-next => database}/src/fields/has-one-field.ts (95%) rename packages/{database-next => database}/src/fields/json-field.ts (100%) rename packages/{database-next => database}/src/fields/number-field.ts (100%) delete mode 100644 packages/database/src/fields/option-types.ts create mode 100644 packages/database/src/fields/password-field.ts rename packages/{database-next => database}/src/fields/relation-field.ts (100%) rename packages/{database-next => database}/src/fields/sort-field.ts (100%) rename packages/{database-next => database}/src/fields/string-field.ts (100%) rename packages/{database-next => database}/src/fields/text-field.ts (100%) rename packages/{database-next => database}/src/fields/time-field.ts (100%) rename packages/{database-next => database}/src/fields/uid-field.ts (100%) rename packages/{database-next => database}/src/fields/virtual-field.ts (100%) rename packages/{database-next => database}/src/filter-parser.ts (95%) rename packages/{database-next => database}/src/model-hook.ts (100%) delete mode 100644 packages/database/src/model.ts delete mode 100644 packages/database/src/op.ts rename packages/{database-next => database}/src/operators/array.ts (83%) rename packages/{database-next => database}/src/operators/association.ts (100%) rename packages/{database-next => database}/src/operators/date.ts (75%) rename packages/{database-next => database}/src/operators/empty.ts (100%) rename packages/{database-next => database}/src/operators/index.ts (100%) rename packages/{database-next => database}/src/options-parser.ts (87%) rename packages/{database-next => database}/src/playground.ts (99%) rename packages/{database-next => database}/src/relation-repository/belongs-to-many-repository.ts (83%) rename packages/{database-next => database}/src/relation-repository/belongs-to-repository.ts (75%) rename packages/{database-next => database}/src/relation-repository/hasmany-repository.ts (81%) rename packages/{database-next => database}/src/relation-repository/hasone-repository.ts (73%) rename packages/{database-next => database}/src/relation-repository/multiple-relation-repository.ts (90%) rename packages/{database-next => database}/src/relation-repository/relation-repository.ts (74%) rename packages/{database-next => database}/src/relation-repository/single-relation-repository.ts (91%) rename packages/{database-next => database}/src/relation-repository/types.ts (77%) rename packages/{database-next => database}/src/repository.ts (90%) delete mode 100644 packages/database/src/table.ts rename packages/{database-next => database}/src/transaction-decorator.ts (85%) rename packages/{database-next => database}/src/update-associations.ts (89%) rename packages/{database-next => database}/src/update-guard.ts (81%) create mode 100644 packages/database/tsconfig.build.json create mode 100644 packages/database/tsconfig.json delete mode 100755 packages/father-build/.local delete mode 100755 packages/father-build/.npmignore delete mode 100755 packages/father-build/README.md delete mode 100755 packages/father-build/bin/father-build.js delete mode 100755 packages/father-build/package.json delete mode 100755 packages/father-build/src/babel.ts delete mode 100755 packages/father-build/src/build.test.ts delete mode 100755 packages/father-build/src/build.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-browser-files/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-browser-files/expected/es/browser.js delete mode 100755 packages/father-build/src/fixtures/build/babel-browser-files/expected/es/node.js delete mode 100755 packages/father-build/src/fixtures/build/babel-browser-files/src/browser.js delete mode 100755 packages/father-build/src/fixtures/build/babel-browser-files/src/node.js delete mode 100755 packages/father-build/src/fixtures/build/babel-cjs-lazy/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-cjs-lazy/src/foo.js delete mode 100755 packages/father-build/src/fixtures/build/babel-cjs-lazy/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-extra-babel-presets-and-plugins/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-extra-babel-presets-and-plugins/expected/es/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-extra-babel-presets-and-plugins/p1.js delete mode 100755 packages/father-build/src/fixtures/build/babel-extra-babel-presets-and-plugins/p2.js delete mode 100755 packages/father-build/src/fixtures/build/babel-extra-babel-presets-and-plugins/preset.js delete mode 100755 packages/father-build/src/fixtures/build/babel-extra-babel-presets-and-plugins/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-importLibToEs/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-importLibToEs/expected/es/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-importLibToEs/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css-forbid/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css-forbid/expected/es/foo.js delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css-forbid/expected/es/foo.module.less delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css-forbid/expected/es/index.less delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css-forbid/src/foo.js delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css-forbid/src/foo.module.less delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css-forbid/src/index.less delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css/expected/es/foo.js delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css/expected/es/foo.module.css delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css/expected/es/index.css delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css/src/foo.js delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css/src/foo.module.less delete mode 100755 packages/father-build/src/fixtures/build/babel-less-to-css/src/index.less delete mode 100755 packages/father-build/src/fixtures/build/babel-node-files/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-node-files/expected/es/browser.js delete mode 100755 packages/father-build/src/fixtures/build/babel-node-files/expected/es/node.js delete mode 100755 packages/father-build/src/fixtures/build/babel-node-files/src/browser.js delete mode 100755 packages/father-build/src/fixtures/build/babel-node-files/src/node.js delete mode 100755 packages/father-build/src/fixtures/build/babel-node-tsx-jsx/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-node-tsx-jsx/expected/es/B.d.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-node-tsx-jsx/expected/es/B.js delete mode 100755 packages/father-build/src/fixtures/build/babel-node-tsx-jsx/expected/es/C.js delete mode 100755 packages/father-build/src/fixtures/build/babel-node-tsx-jsx/expected/es/node.js delete mode 100755 packages/father-build/src/fixtures/build/babel-node-tsx-jsx/src/B.tsx delete mode 100755 packages/father-build/src/fixtures/build/babel-node-tsx-jsx/src/C.jsx delete mode 100755 packages/father-build/src/fixtures/build/babel-node-tsx-jsx/src/node.js delete mode 100755 packages/father-build/src/fixtures/build/babel-node-tsx-jsx/tsconfig.json delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/expected/es/foo.js delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/expected/es/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/expected/es/types.d.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/__test__/__snapshots__/index.test.js.snap delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/__test__/index.test.js delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/bar.md delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/bar.mdx delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/demos/foo.js delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/fixtures/example/package.json delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/foo.e2e.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/foo.js delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/foo.spec.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/foo.test.js delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/foo.test.jsx delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/foo.test.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/foo.test.tsx delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-normal/src/types.d.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-runtimeHelpers/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-runtimeHelpers/expected/es/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-runtimeHelpers/package.json delete mode 100755 packages/father-build/src/fixtures/build/babel-runtimeHelpers/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-syntax/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-syntax/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/babel-syntax/package.json delete mode 100755 packages/father-build/src/fixtures/build/babel-syntax/src/a.js delete mode 100755 packages/father-build/src/fixtures/build/babel-syntax/src/b.js delete mode 100755 packages/father-build/src/fixtures/build/babel-syntax/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-ts-3.7-features/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-ts-3.7-features/expected/es/index.d.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-ts-3.7-features/expected/es/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-ts-3.7-features/src/index.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript-disable-typecheck/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript-disable-typecheck/expected/es/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript-disable-typecheck/src/index.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript-disable-typecheck/tsconfig.json delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript-template/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript-template/expected/es/index.d.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript-template/expected/es/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript-template/src/index.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript/expected/es/index.d.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript/expected/es/index.js delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript/src/index.ts delete mode 100755 packages/father-build/src/fixtures/build/babel-typescript/tsconfig.json delete mode 100755 packages/father-build/src/fixtures/build/config-array/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/config-array/expected/index.umd.js delete mode 100755 packages/father-build/src/fixtures/build/config-array/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/config-array/ui/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-pkgs/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-pkgs/core/bar/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-pkgs/core/bar/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-pkgs/core/foo/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-pkgs/core/foo/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-pkgs/expected/bar/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-pkgs/expected/foo/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-pkgs/lerna.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config-override/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config-override/expected/bar/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config-override/expected/foo/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config-override/lerna.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config-override/packages/bar/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config-override/packages/bar/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config-override/packages/foo/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config-override/packages/foo/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config/expected/bar/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config/expected/foo/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config/lerna.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config/packages/bar/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config/packages/bar/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config/packages/foo/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-config/packages/foo/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-scope/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-scope/expected/bar/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-scope/expected/foo/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-scope/lerna.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-scope/packages/bar/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-scope/packages/bar/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-scope/packages/bar/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-scope/packages/foo/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-scope/packages/foo/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-scope/packages/foo/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-tsconfig/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-tsconfig/expected/bar/es/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-tsconfig/expected/foo/es/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-tsconfig/lerna.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-tsconfig/packages/bar/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-tsconfig/packages/bar/src/index.ts delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-tsconfig/packages/foo/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-tsconfig/packages/foo/src/index.ts delete mode 100755 packages/father-build/src/fixtures/build/lerna-root-tsconfig/tsconfig.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-scope-packages/expected/bar/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-scope-packages/expected/foo/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-scope-packages/lerna.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-scope-packages/packages/@hoo/bar/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-scope-packages/packages/@hoo/bar/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-scope-packages/packages/@hoo/bar/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-scope-packages/packages/foo/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/lerna-scope-packages/packages/foo/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna-scope-packages/packages/foo/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna/expected/bar/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/lerna/expected/foo/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/lerna/lerna.json delete mode 100755 packages/father-build/src/fixtures/build/lerna/packages/bar/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/lerna/packages/bar/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna/packages/bar/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/lerna/packages/foo/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/lerna/packages/foo/package.json delete mode 100755 packages/father-build/src/fixtures/build/lerna/packages/foo/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/require-node_modules-in-sub-directory/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/require-node_modules-in-sub-directory/expected/index.umd.js delete mode 100755 packages/father-build/src/fixtures/build/require-node_modules-in-sub-directory/package.json delete mode 100755 packages/father-build/src/fixtures/build/require-node_modules-in-sub-directory/packages/fooo/package.json delete mode 100755 packages/father-build/src/fixtures/build/require-node_modules-in-sub-directory/packages/fooo/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/require-node_modules-in-sub-directory/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/expected/index.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-commonjs-deps/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-commonjs-deps/expected/index.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-commonjs-deps/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-commonjs-deps/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-config-alias/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-config-alias/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-config-alias/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-autoprefixer/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-autoprefixer/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-autoprefixer/src/foo.css delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-autoprefixer/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-extract/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-extract/expected/index.esm.css delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-extract/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-extract/src/foo.css delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-extract/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-inject/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-inject/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-inject/src/foo.css delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-inject/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-modules/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-modules/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-modules/src/foo.css delete mode 100755 packages/father-build/src/fixtures/build/rollup-css-modules/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-css/src/foo.css delete mode 100755 packages/father-build/src/fixtures/build/rollup-css/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-esm-minify/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-esm-minify/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-esm-minify/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-esm-minify/src/foo.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-esm-minify/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-esm-mjs/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-esm-mjs/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-esm-mjs/expected/index.mjs delete mode 100755 packages/father-build/src/fixtures/build/rollup-esm-mjs/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-esm-mjs/src/foo.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-esm-mjs/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-externalsExclude/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-externalsExclude/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-externalsExclude/expected/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-externalsExclude/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-externalsExclude/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/p1.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/p2.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/preset.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-extraExternals/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-extraExternals/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-extraExternals/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-extraExternals/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-extraRollupPlugins/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-extraRollupPlugins/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-extraRollupPlugins/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-extraRollupPlugins/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-import-directory/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-import-directory/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-import-directory/src/foo/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-import-directory/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-importLibToEs/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-importLibToEs/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-importLibToEs/expected/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-importLibToEs/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-inject/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-inject/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-inject/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-inject/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-json/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-json/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-json/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-json/src/pkg.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-less-modules/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-less-modules/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-less-modules/src/foo.less delete mode 100755 packages/father-build/src/fixtures/build/rollup-less-modules/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-less-node-modules/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-less-node-modules/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-less-node-modules/src/foo.less delete mode 100755 packages/father-build/src/fixtures/build/rollup-less-node-modules/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-less/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-less/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-less/src/foo.less delete mode 100755 packages/father-build/src/fixtures/build/rollup-less/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-multiple-entry/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-multiple-entry/expected/bar.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-multiple-entry/expected/foo.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-multiple-entry/src/bar.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-multiple-entry/src/foo.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-node-resolve/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-node-resolve/expected/index.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-node-resolve/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-node-resolve/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-normal/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-normal/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-normal/expected/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-normal/expected/index.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-normal/expected/index.umd.min.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-normal/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-normal/src/foo.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-normal/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.bar.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.bar.min.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.cjs.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.umd.min.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.umd.min.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/src/bar.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/src/foo.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-outputFilename-with-overrides/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-replace/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-replace/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-replace/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-replace/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-resolve-jsx/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-resolve-jsx/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-resolve-jsx/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-resolve-jsx/src/Foo.jsx delete mode 100755 packages/father-build/src/fixtures/build/rollup-resolve-jsx/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-runtimeHelpers/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-runtimeHelpers/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-runtimeHelpers/expected/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-runtimeHelpers/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-runtimeHelpers/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-sass/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-sass/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-sass/src/foo.scss delete mode 100755 packages/father-build/src/fixtures/build/rollup-sass/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-svgr/.umirc.library.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-svgr/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-svgr/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-svgr/src/index.jsx delete mode 100755 packages/father-build/src/fixtures/build/rollup-svgr/src/menu.svg delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript-declarationDir/.fatherrc.ts delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript-declarationDir/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript-declarationDir/expected/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript-declarationDir/expected/type/index.d.ts delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript-declarationDir/src/index.ts delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript-declarationDir/tsconfig.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript-declarationDir/typings.d.ts delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript/.fatherrc.ts delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript/expected/index.d.ts delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript/expected/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript/src/index.ts delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript/tsconfig.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-typescript/typings.d.ts delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-auto-name/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-auto-name/expected/index.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-auto-name/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-auto-name/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-css-extract-minFile/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.css delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.min.css delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.min.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-css-extract-minFile/src/foo.css delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-css-extract-minFile/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-globals/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-globals/expected/index.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-globals/package.json delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-globals/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-name/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-name/expected/index.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-name/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-overrides/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-overrides/expected/fetch.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-overrides/expected/index.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-overrides/src/fetch.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-overrides/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-sourcemap/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-sourcemap/expected/index.umd.js delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-sourcemap/expected/index.umd.js.map delete mode 100755 packages/father-build/src/fixtures/build/rollup-umd-sourcemap/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/target-node-version/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/target-node-version/expected/es/index.js delete mode 100755 packages/father-build/src/fixtures/build/target-node-version/src/index.js delete mode 100755 packages/father-build/src/fixtures/build/target-node/.fatherrc.js delete mode 100755 packages/father-build/src/fixtures/build/target-node/expected/index.esm.js delete mode 100755 packages/father-build/src/fixtures/build/target-node/expected/index.js delete mode 100755 packages/father-build/src/fixtures/build/target-node/src/index.js delete mode 100755 packages/father-build/src/getBabelConfig.ts delete mode 100755 packages/father-build/src/getRollupConfig.ts delete mode 100755 packages/father-build/src/getUserConfig.ts delete mode 100755 packages/father-build/src/importLibToEs.js delete mode 100755 packages/father-build/src/index.ts delete mode 100755 packages/father-build/src/normalizeBundleOpts.test.ts delete mode 100755 packages/father-build/src/normalizeBundleOpts.ts delete mode 100755 packages/father-build/src/randomColor.ts delete mode 100755 packages/father-build/src/registerBabel.ts delete mode 100755 packages/father-build/src/rollup.ts delete mode 100755 packages/father-build/src/schema.test.ts delete mode 100755 packages/father-build/src/schema.ts delete mode 100755 packages/father-build/src/types.d.ts delete mode 100755 packages/father-build/src/utils.ts delete mode 100755 packages/father-build/template/tsconfig.json delete mode 100644 packages/plugin-action-logs/.npmignore delete mode 100644 packages/plugin-action-logs/package.json delete mode 100644 packages/plugin-action-logs/src/__tests__/hook.test.ts delete mode 100644 packages/plugin-action-logs/src/collections/action_changes.ts delete mode 100644 packages/plugin-action-logs/src/collections/action_logs.ts delete mode 100644 packages/plugin-action-logs/src/constants.ts delete mode 100644 packages/plugin-action-logs/src/hooks/after-create.ts delete mode 100644 packages/plugin-action-logs/src/hooks/after-destroy.ts delete mode 100644 packages/plugin-action-logs/src/hooks/after-update.ts delete mode 100644 packages/plugin-action-logs/src/hooks/index.ts delete mode 100644 packages/plugin-action-logs/src/server.ts delete mode 100644 packages/plugin-automations/.npmignore delete mode 100644 packages/plugin-automations/package.json delete mode 100644 packages/plugin-automations/src/__tests__/automations.test.ts delete mode 100644 packages/plugin-automations/src/__tests__/collections/targets.ts delete mode 100644 packages/plugin-automations/src/__tests__/collections/tests.ts delete mode 100644 packages/plugin-automations/src/__tests__/index.ts delete mode 100644 packages/plugin-automations/src/__tests__/jobs.test.ts delete mode 100644 packages/plugin-automations/src/collections/automations.ts delete mode 100644 packages/plugin-automations/src/collections/automations_jobs.ts delete mode 100644 packages/plugin-automations/src/models/automation-job.ts delete mode 100644 packages/plugin-automations/src/models/automation.ts delete mode 100644 packages/plugin-automations/src/server.ts rename packages/{plugin-action-logs => plugin-china-region}/src/index.ts (100%) delete mode 100644 packages/plugin-china-region/src/models/china-region.ts create mode 100644 packages/plugin-china-region/tsconfig.build.json create mode 100644 packages/plugin-china-region/tsconfig.json delete mode 100644 packages/plugin-client/.gitignore delete mode 100644 packages/plugin-client/.npmignore delete mode 100644 packages/plugin-client/package.json delete mode 100644 packages/plugin-client/src/__tests__/sqlite.test.ts delete mode 100644 packages/plugin-client/src/db/en-US/part1/01-ui_schemas.sql delete mode 100644 packages/plugin-client/src/db/en-US/part1/02-collections.sql delete mode 100644 packages/plugin-client/src/db/en-US/part1/03-fields.sql delete mode 100644 packages/plugin-client/src/db/en-US/part1/04-routes.sql delete mode 100644 packages/plugin-client/src/db/en-US/part1/05-attachments.sql delete mode 100755 packages/plugin-client/src/db/en-US/part2/06-t_2uhu4szs1kq.sql delete mode 100755 packages/plugin-client/src/db/en-US/part2/07-t_fsveob6p269.sql delete mode 100755 packages/plugin-client/src/db/en-US/part2/08-t_geso7fru7a9.sql delete mode 100755 packages/plugin-client/src/db/en-US/part2/09-t_bphcojtl8bx.sql delete mode 100755 packages/plugin-client/src/db/en-US/part2/10-t_jh7a28dsfzi.sql delete mode 100755 packages/plugin-client/src/db/en-US/part2/12-roles.sql delete mode 100755 packages/plugin-client/src/db/en-US/part2/13-action_permissions.sql delete mode 100755 packages/plugin-client/src/db/en-US/part2/14-field_permissions.sql delete mode 100755 packages/plugin-client/src/db/en-US/part2/15-roles_ui_schemas.sql delete mode 100644 packages/plugin-client/src/db/en-US/postgres/setinval.sql delete mode 100644 packages/plugin-client/src/db/zh-CN/part1/01-ui_schemas.sql delete mode 100644 packages/plugin-client/src/db/zh-CN/part1/02-collections.sql delete mode 100644 packages/plugin-client/src/db/zh-CN/part1/03-fields.sql delete mode 100644 packages/plugin-client/src/db/zh-CN/part1/04-routes.sql delete mode 100644 packages/plugin-client/src/db/zh-CN/part1/05-attachments.sql delete mode 100755 packages/plugin-client/src/db/zh-CN/part2/06-t_2uhu4szs1kq.sql delete mode 100755 packages/plugin-client/src/db/zh-CN/part2/07-t_fsveob6p269.sql delete mode 100755 packages/plugin-client/src/db/zh-CN/part2/08-t_geso7fru7a9.sql delete mode 100755 packages/plugin-client/src/db/zh-CN/part2/09-t_bphcojtl8bx.sql delete mode 100755 packages/plugin-client/src/db/zh-CN/part2/10-t_jh7a28dsfzi.sql delete mode 100755 packages/plugin-client/src/db/zh-CN/part2/11-t_p13gbi31uux.sql delete mode 100755 packages/plugin-client/src/db/zh-CN/part2/12-roles.sql delete mode 100755 packages/plugin-client/src/db/zh-CN/part2/13-action_permissions.sql delete mode 100755 packages/plugin-client/src/db/zh-CN/part2/14-field_permissions.sql delete mode 100755 packages/plugin-client/src/db/zh-CN/part2/15-roles_ui_schemas.sql delete mode 100644 packages/plugin-client/src/db/zh-CN/postgres/setinval.sql delete mode 100644 packages/plugin-client/src/index.ts delete mode 100644 packages/plugin-client/src/server.ts delete mode 100644 packages/plugin-collections/.npmignore delete mode 100644 packages/plugin-collections/package.json delete mode 100644 packages/plugin-collections/src/__tests__/collections.test.ts delete mode 100644 packages/plugin-collections/src/__tests__/index.ts delete mode 100644 packages/plugin-collections/src/actions/fields.ts delete mode 100644 packages/plugin-collections/src/actions/index.ts delete mode 100644 packages/plugin-collections/src/collections/collections.ts delete mode 100644 packages/plugin-collections/src/collections/fields.ts delete mode 100644 packages/plugin-collections/src/models/collection.ts delete mode 100644 packages/plugin-collections/src/models/field.ts delete mode 100644 packages/plugin-collections/src/models/index.ts delete mode 100644 packages/plugin-collections/src/server.ts delete mode 100644 packages/plugin-collections/src/utils.ts delete mode 100644 packages/plugin-export/.npmignore delete mode 100644 packages/plugin-export/package.json delete mode 100644 packages/plugin-export/src/actions/export.ts delete mode 100644 packages/plugin-export/src/renders/index.ts delete mode 100644 packages/plugin-export/src/renders/renders.ts delete mode 100644 packages/plugin-export/src/server.ts create mode 100644 packages/plugin-file-manager/tsconfig.build.json create mode 100644 packages/plugin-file-manager/tsconfig.json delete mode 100644 packages/plugin-multi-apps/.gitignore delete mode 100644 packages/plugin-multi-apps/.npmignore delete mode 100644 packages/plugin-multi-apps/package.json delete mode 100644 packages/plugin-multi-apps/src/index.ts delete mode 100644 packages/plugin-multi-apps/src/server.ts delete mode 100644 packages/plugin-multi-apps/src/test.ts delete mode 100644 packages/plugin-notifications/.npmignore delete mode 100644 packages/plugin-notifications/package.json delete mode 100644 packages/plugin-notifications/src/__tests__/notifications.test.ts delete mode 100644 packages/plugin-notifications/src/collections/notification_logs.ts delete mode 100644 packages/plugin-notifications/src/collections/notification_services.ts delete mode 100644 packages/plugin-notifications/src/collections/notifications.ts delete mode 100644 packages/plugin-notifications/src/models/Notification.ts delete mode 100644 packages/plugin-notifications/src/models/NotificationLog.ts delete mode 100644 packages/plugin-notifications/src/models/NotificationService.ts delete mode 100644 packages/plugin-notifications/src/models/index.ts delete mode 100644 packages/plugin-notifications/src/server.ts delete mode 100644 packages/plugin-permissions/.npmignore delete mode 100644 packages/plugin-permissions/package.json delete mode 100644 packages/plugin-permissions/src/collections/action_permissions.ts delete mode 100644 packages/plugin-permissions/src/collections/roles.ts delete mode 100644 packages/plugin-permissions/src/collections/scopes.ts delete mode 100644 packages/plugin-permissions/src/server.ts create mode 100644 packages/plugin-system-settings/tsconfig.build.json create mode 100644 packages/plugin-system-settings/tsconfig.json delete mode 100644 packages/plugin-ui-router/.npmignore delete mode 100644 packages/plugin-ui-router/package.json delete mode 100644 packages/plugin-ui-router/src/__tests__/index.ts delete mode 100644 packages/plugin-ui-router/src/__tests__/routes.test.ts delete mode 100644 packages/plugin-ui-router/src/actions/getAccessible.ts delete mode 100644 packages/plugin-ui-router/src/collections/routes.ts delete mode 100644 packages/plugin-ui-router/src/models/index.ts delete mode 100644 packages/plugin-ui-router/src/models/route.ts delete mode 100644 packages/plugin-ui-router/src/server.ts delete mode 100644 packages/plugin-ui-router/src/ui-schema/index.ts delete mode 100644 packages/plugin-ui-router/src/ui-schema/menu.ts delete mode 100644 packages/plugin-ui-router/src/ui-schema/signin.ts delete mode 100644 packages/plugin-ui-router/src/ui-schema/signup.ts delete mode 100644 packages/plugin-ui-router/src/utils.ts delete mode 100644 packages/plugin-ui-schema/.npmignore delete mode 100644 packages/plugin-ui-schema/package.json delete mode 100644 packages/plugin-ui-schema/src/__tests__/ui_schemas.test.ts delete mode 100644 packages/plugin-ui-schema/src/actions/index.ts delete mode 100644 packages/plugin-ui-schema/src/collections/ui_schemas.ts delete mode 100644 packages/plugin-ui-schema/src/models/index.ts delete mode 100644 packages/plugin-ui-schema/src/models/ui-schema.ts delete mode 100644 packages/plugin-ui-schema/src/server.ts delete mode 100644 packages/plugin-ui-schema/src/utils.ts delete mode 100644 packages/plugin-users/.npmignore delete mode 100644 packages/plugin-users/package.json delete mode 100644 packages/plugin-users/src/__tests__/fields.test.ts delete mode 100644 packages/plugin-users/src/actions/users.ts delete mode 100644 packages/plugin-users/src/collections/users.ts delete mode 100644 packages/plugin-users/src/fields/CreatedBy.ts delete mode 100644 packages/plugin-users/src/fields/UpdatedBy.ts delete mode 100644 packages/plugin-users/src/fields/index.ts delete mode 100644 packages/plugin-users/src/fields/utils.ts delete mode 100644 packages/plugin-users/src/index.ts delete mode 100644 packages/plugin-users/src/middlewares/check.ts delete mode 100644 packages/plugin-users/src/middlewares/index.ts delete mode 100644 packages/plugin-users/src/middlewares/parseToken.ts delete mode 100644 packages/plugin-users/src/server.ts create mode 100644 packages/resourcer/src/__tests__/assign.test.ts create mode 100644 packages/resourcer/src/assign.ts delete mode 100644 packages/resourcer/src/parameter.ts create mode 100644 packages/resourcer/tsconfig.build.json create mode 100644 packages/resourcer/tsconfig.json create mode 100644 packages/server/tsconfig.build.json create mode 100644 packages/server/tsconfig.json create mode 100644 packages/test/tsconfig.build.json create mode 100644 packages/test/tsconfig.json delete mode 100644 packages/utils/src/merge.ts delete mode 100644 packages/utils/src/umiConfig.ts create mode 100644 packages/utils/tsconfig.build.json create mode 100644 packages/utils/tsconfig.json mode change 100755 => 100644 tsconfig.build.json mode change 100755 => 100644 tsconfig.jest.json mode change 100755 => 100644 tsconfig.json delete mode 100644 uid.js diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 15d28256c..000000000 --- a/.dockerignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules/ -.env -packages/app/.env diff --git a/.dumi/theme/builtins/API.tsx b/.dumi/theme/builtins/API.tsx deleted file mode 100755 index ce815d396..000000000 --- a/.dumi/theme/builtins/API.tsx +++ /dev/null @@ -1,57 +0,0 @@ -import React, { useContext } from 'react'; -import type { IApiComponentProps} from 'dumi/theme'; -import { context, useApiData, AnchorLink } from 'dumi/theme'; - -const LOCALE_TEXTS = { - 'zh-CN': { - name: '属性名', - description: '描述', - type: '类型', - default: '默认值', - required: '(必选)', - }, - 'en-US': { - name: 'Name', - description: 'Description', - type: 'Type', - default: 'Default', - required: '(required)', - }, -}; - -export default ({ identifier, export: expt }: IApiComponentProps) => { - const data = useApiData(identifier); - const { locale } = useContext(context); - const texts = /^zh|cn$/i.test(locale) ? LOCALE_TEXTS['zh-CN'] : LOCALE_TEXTS['en-US']; - - return ( - <> - {data && ( - - - - - - - - - - - {data[expt].map(row => ( - - - - - - - ))} - -
{texts.name}{texts.description}{texts.type}{texts.default}
{row.identifier}{row.description || '--'} - {row.type} - - {row.default || (row.required && texts.required) || '--'} -
- )} - - ); -}; diff --git a/.dumi/theme/builtins/Alert.less b/.dumi/theme/builtins/Alert.less deleted file mode 100755 index 988f32486..000000000 --- a/.dumi/theme/builtins/Alert.less +++ /dev/null @@ -1,68 +0,0 @@ -@import (reference) '../style/variables.less'; - -.@{prefix}-alert { - @s-border-right: 3px; - - position: relative; - margin: 24px 0; - padding: 15px; - color: @c-text; - font-size: 14px; - line-height: 20px; - border-left: 0; - background: #ffffff; - // box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.06); - border-radius: 1px; - - &::after { - content: ''; - position: absolute; - display: inline-block; - top: 0; - left: 0; - bottom: 0; - width: @s-border-right; - border-radius: 1px; - } - - &:first-child { - margin-top: 0; - } - - &:not([type]), - &[type='warning'] { - background-color: #fffbe6; - &::after { - background: #ffe58f; - } - } - - &[type='info'] { - background: rgba(105, 185, 255, .15); - &::after { - background: #69b9ff; - } - .@{prefix}-alert-title { - color: #69b9ff; - } - } - - &[type='success'] { - &::after { - background: #8cd225; - } - } - - &[type='error'] { - &::after { - background: #ff4646; - } - } - - .@{prefix}-alert-title { - margin-top: 0; - font-weight: 600; - color: #fab00e; - margin-bottom: .6em; - } -} diff --git a/.dumi/theme/builtins/Alert.tsx b/.dumi/theme/builtins/Alert.tsx deleted file mode 100755 index 9facc10b9..000000000 --- a/.dumi/theme/builtins/Alert.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import './Alert.less'; -import { Alert } from 'antd'; -import micromark from 'micromark' - -export default (props: any) => { - const { title, children, ...others } = props; - console.log({children}); - return ( -
- {title && ( -

{title}

- )} - {typeof children === 'string' ?
: children} -
- ) -}; diff --git a/.dumi/theme/builtins/Badge.less b/.dumi/theme/builtins/Badge.less deleted file mode 100755 index dc2de29c9..000000000 --- a/.dumi/theme/builtins/Badge.less +++ /dev/null @@ -1,31 +0,0 @@ -@import (reference) '../style/variables.less'; - -.@{prefix}-badge { - display: inline-block; - margin-left: 6px; - padding: 1px 7px; - color: #fff; - font-size: 13px; - line-height: 20px; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1); - box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.06); - border-radius: 1px; - vertical-align: top; - - &:not([type]), - &[type='info'] { - background: #4569d4; - } - - &[type='warning'] { - background: #ffc121; - } - - &[type='success'] { - background: #8cd225; - } - - &[type='error'] { - background: #ff4646; - } -} diff --git a/.dumi/theme/builtins/Badge.tsx b/.dumi/theme/builtins/Badge.tsx deleted file mode 100755 index 2572c291c..000000000 --- a/.dumi/theme/builtins/Badge.tsx +++ /dev/null @@ -1,4 +0,0 @@ -import React from 'react'; -import './Badge.less'; - -export default (props: any) => ; diff --git a/.dumi/theme/builtins/Example.less b/.dumi/theme/builtins/Example.less deleted file mode 100755 index cb829c52e..000000000 --- a/.dumi/theme/builtins/Example.less +++ /dev/null @@ -1,47 +0,0 @@ -@import (reference) '../style/variables.less'; - -.@{prefix}-example-wrapper { - padding-top: 16px; - height: calc(100vh - @s-nav-height - 2px); - - @media @mobile { - padding-top: 16px; - } - - &-toolbar { - display: flex; - color: @c-heading; - font-size: 16px; - font-weight: 500; - justify-content: space-between; - margin-bottom: 16px; - border-bottom: 1px solid @c-border; - - button, - a { - display: inline-block; - margin: 6px 0 6px 12px; - width: 16px; - height: 16px; - font-weight: 400; - border: 0; - outline: none; - vertical-align: middle; - cursor: pointer; - - &:first-child { - background-position-x: -144px; - } - - &:nth-child(2) { - background-position-x: -126px; - } - } - } - - iframe { - width: 100%; - min-height: 100%; - border: 0; - } -} diff --git a/.dumi/theme/builtins/Example.tsx b/.dumi/theme/builtins/Example.tsx deleted file mode 100755 index 7323cd68c..000000000 --- a/.dumi/theme/builtins/Example.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import React, { useRef, useEffect, useState } from 'react'; -import './Example.less'; - -export default (props: { route: any }) => { - const elm = useRef(); - const [height, setHeight] = useState(0); - - useEffect(() => { - setHeight(elm.current.contentWindow.document.documentElement.scrollHeight); - }, [elm]); - - return ( - props.route.meta.examplePath && ( -
-
- {props.route.meta.description || props.route.meta.title} - -
-