@nocobase/app 1.2.13-alpha → 1.3.0-alpha.20240710084543
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/src/.plugins/index.ts +10 -3
- package/client/src/.plugins/packageMap.json +62 -0
- package/client/src/.plugins/packages/nocobase_plugin_acl.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_action_bulk_edit.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_action_bulk_update.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_action_custom_request.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_action_duplicate.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_action_export.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_action_import.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_action_print.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_api_doc.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_api_keys.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_audit_logs.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_auth.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_auth_sms.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_backup_restore.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_block_iframe.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_block_workbench.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_calendar.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_charts.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_client.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_collection_sql.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_data_source_main.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_data_source_manager.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_data_visualization.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_disable_pm_add.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_error_handler.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_field_china_region.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_field_formula.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_field_markdown_vditor.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_field_sequence.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_file_manager.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_gantt.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_graph_collection_manager.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_kanban.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_localization.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_logger.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_map.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_mobile_client.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_mock_collections.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_multi_app_manager.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_multi_app_share_collection.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_notifications.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_sample_hello.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_snapshot_field.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_system_settings.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_theme_editor.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_ui_schema_storage.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_users.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_verification.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_workflow.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_workflow_action_trigger.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_workflow_aggregate.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_workflow_delay.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_workflow_dynamic_calculation.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_workflow_loop.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_workflow_mailer.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_workflow_manual.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_workflow_parallel.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_workflow_request.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_workflow_sql.ts +1 -0
- package/client/src/.plugins/packages/nocobase_plugin_workflow_test.ts +1 -0
- package/package.json +6 -6
- package/client/src/.umi-production/core/EmptyRoute.tsx +0 -9
- package/client/src/.umi-production/core/defineApp.ts +0 -16
- package/client/src/.umi-production/core/helmet.ts +0 -10
- package/client/src/.umi-production/core/helmetContext.ts +0 -4
- package/client/src/.umi-production/core/history.ts +0 -66
- package/client/src/.umi-production/core/historyIntelli.ts +0 -132
- package/client/src/.umi-production/core/plugin.ts +0 -45
- package/client/src/.umi-production/core/pluginConfig.ts +0 -287
- package/client/src/.umi-production/core/pluginConfigJoi.d.ts +0 -7
- package/client/src/.umi-production/core/polyfill.ts +0 -237
- package/client/src/.umi-production/core/route.tsx +0 -14
- package/client/src/.umi-production/core/terminal.ts +0 -37
- package/client/src/.umi-production/exports.ts +0 -17
- package/client/src/.umi-production/plugin-routerBase/runtime.ts +0 -6
- package/client/src/.umi-production/testBrowser.tsx +0 -87
- package/client/src/.umi-production/tsconfig.json +0 -43
- package/client/src/.umi-production/typings.d.ts +0 -136
- package/client/src/.umi-production/umi.ts +0 -76
- package/dist/client/122.dfc389ed.async.js +0 -66
- package/dist/client/4607.6d585996.async.js +0 -1
- package/dist/client/501.8710a04b.async.js +0 -1
- package/dist/client/5721.cf90e884.async.js +0 -8
- package/dist/client/browser-checker.js +0 -176
- package/dist/client/favicon/android-chrome-192x192.png +0 -0
- package/dist/client/favicon/android-chrome-512x512.png +0 -0
- package/dist/client/favicon/apple-touch-icon.png +0 -0
- package/dist/client/favicon/favicon-16x16.png +0 -0
- package/dist/client/favicon/favicon-32x32.png +0 -0
- package/dist/client/favicon/favicon.ico +0 -0
- package/dist/client/favicon/site.webmanifest +0 -1
- package/dist/client/global.css +0 -63
- package/dist/client/index.html +0 -26
- package/dist/client/index.html.tpl +0 -26
- package/dist/client/npm._at_ant-design.9888377a.async.js +0 -110
- package/dist/client/npm._at_antv.5ea2df50.async.js +0 -72
- package/dist/client/npm._at_dnd-kit.01a3ad70.async.js +0 -6
- package/dist/client/npm._at_emotion.62b8ee47.async.js +0 -5
- package/dist/client/npm._at_formily.f9d0b213.async.js +0 -101
- package/dist/client/npm._at_formulajs.fe3f9fca.async.js +0 -1
- package/dist/client/npm._at_rc-component.086dbf23.async.js +0 -5
- package/dist/client/npm._at_remix-run.55137b87.async.js +0 -3
- package/dist/client/npm.ahooks.c3df4eb6.async.js +0 -6
- package/dist/client/npm.antd-style.1994e68b.async.js +0 -1
- package/dist/client/npm.antd.91188318.async.js +0 -476
- package/dist/client/npm.axios.f696c6e5.async.js +0 -2
- package/dist/client/npm.bignumber.js.70d3d7e8.async.js +0 -1
- package/dist/client/npm.buffer.9cce4593.async.js +0 -1
- package/dist/client/npm.cytoscape.39239e7b.async.js +0 -5
- package/dist/client/npm.d3-selection.e2684be8.async.js +0 -1
- package/dist/client/npm.d3-shape.3660138b.async.js +0 -1
- package/dist/client/npm.d3-transition.83e0f431.async.js +0 -1
- package/dist/client/npm.dagre-d3-es.5506d747.async.js +0 -3
- package/dist/client/npm.dayjs.f4357565.async.js +0 -1
- package/dist/client/npm.decimal.js.bb6d6d2e.async.js +0 -1
- package/dist/client/npm.dompurify.93b5a130.async.js +0 -3
- package/dist/client/npm.elkjs.d0ff4db1.async.js +0 -26
- package/dist/client/npm.entities.8159ac3e.async.js +0 -1
- package/dist/client/npm.gl-matrix.31b80e16.async.js +0 -1
- package/dist/client/npm.highlight.js.4213abe5.async.js +0 -12
- package/dist/client/npm.html-tokenize.360bb6e8.async.js +0 -1
- package/dist/client/npm.htmlparser2.cbbea4c4.async.js +0 -2
- package/dist/client/npm.i18next.eee0fc0f.async.js +0 -1
- package/dist/client/npm.json5.87aca70f.async.js +0 -14
- package/dist/client/npm.jstat.657c7dba.async.js +0 -1
- package/dist/client/npm.khroma.098e7b45.async.js +0 -1
- package/dist/client/npm.layout-base.49e322a0.async.js +0 -1
- package/dist/client/npm.linkify-it.bdb3de98.async.js +0 -1
- package/dist/client/npm.lodash-es.5eff0420.async.js +0 -1
- package/dist/client/npm.lodash.0f9322fa.async.js +0 -37
- package/dist/client/npm.markdown-it.5875530c.async.js +0 -15
- package/dist/client/npm.mathjs.d8df2940.async.js +0 -53
- package/dist/client/npm.mermaid.7057e144.async.js +0 -1530
- package/dist/client/npm.moment.3c26e672.async.js +0 -4
- package/dist/client/npm.postcss.368fceaf.async.js +0 -28
- package/dist/client/npm.quill.e91b3c12.async.js +0 -36
- package/dist/client/npm.rc-cascader.04b47add.async.js +0 -1
- package/dist/client/npm.rc-menu.2e06b9c3.async.js +0 -1
- package/dist/client/npm.rc-picker.218fa2cc.async.js +0 -1
- package/dist/client/npm.rc-select.13236fb8.async.js +0 -3
- package/dist/client/npm.rc-table.de3dd762.async.js +0 -1
- package/dist/client/npm.rc-tree.bdb9cee8.async.js +0 -1
- package/dist/client/npm.rc-util.87a2c212.async.js +0 -18
- package/dist/client/npm.react-dom.6236e62b.async.js +0 -11
- package/dist/client/npm.react-image-lightbox.0e0cf81f.async.js +0 -3
- package/dist/client/npm.react-router-dom.06c80c5d.async.js +0 -2
- package/dist/client/npm.readable-stream.41117b5f.async.js +0 -1
- package/dist/client/p__index.9a8aaa6c.chunk.css +0 -1
- package/dist/client/p__index.e4583c9c.async.js +0 -1439
- package/dist/client/robots.txt +0 -2
- package/dist/client/umi.5f9591a7.js +0 -22
- package/lib/config/cache.d.ts +0 -18
- package/lib/config/cache.js +0 -49
- package/lib/config/database.d.ts +0 -9
- package/lib/config/database.js +0 -41
- package/lib/config/index.d.ts +0 -28
- package/lib/config/index.js +0 -64
- package/lib/config/logger.d.ts +0 -11
- package/lib/config/logger.js +0 -42
- package/lib/config/plugins.d.ts +0 -11
- package/lib/config/plugins.js +0 -32
- package/lib/config/resourcer.d.ts +0 -12
- package/lib/config/resourcer.js +0 -34
- package/lib/config/telemetry.d.ts +0 -10
- package/lib/config/telemetry.js +0 -44
- package/lib/index.d.ts +0 -9
- package/lib/index.js +0 -17
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import packageMap from './packageMap.json';
|
|
1
3
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
function devDynamicImport(packageName: string): Promise<any> {
|
|
5
|
+
const fileName = packageMap[packageName];
|
|
6
|
+
if (!fileName) {
|
|
7
|
+
return Promise.resolve(null);
|
|
8
|
+
}
|
|
9
|
+
return import(`./packages/${fileName}`)
|
|
10
|
+
}
|
|
11
|
+
export default devDynamicImport;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@nocobase/plugin-acl": "nocobase_plugin_acl.ts",
|
|
3
|
+
"@nocobase/plugin-action-bulk-edit": "nocobase_plugin_action_bulk_edit.ts",
|
|
4
|
+
"@nocobase/plugin-action-bulk-update": "nocobase_plugin_action_bulk_update.ts",
|
|
5
|
+
"@nocobase/plugin-action-custom-request": "nocobase_plugin_action_custom_request.ts",
|
|
6
|
+
"@nocobase/plugin-action-duplicate": "nocobase_plugin_action_duplicate.ts",
|
|
7
|
+
"@nocobase/plugin-action-export": "nocobase_plugin_action_export.ts",
|
|
8
|
+
"@nocobase/plugin-action-import": "nocobase_plugin_action_import.ts",
|
|
9
|
+
"@nocobase/plugin-action-print": "nocobase_plugin_action_print.ts",
|
|
10
|
+
"@nocobase/plugin-api-doc": "nocobase_plugin_api_doc.ts",
|
|
11
|
+
"@nocobase/plugin-api-keys": "nocobase_plugin_api_keys.ts",
|
|
12
|
+
"@nocobase/plugin-audit-logs": "nocobase_plugin_audit_logs.ts",
|
|
13
|
+
"@nocobase/plugin-auth": "nocobase_plugin_auth.ts",
|
|
14
|
+
"@nocobase/plugin-auth-sms": "nocobase_plugin_auth_sms.ts",
|
|
15
|
+
"@nocobase/plugin-backup-restore": "nocobase_plugin_backup_restore.ts",
|
|
16
|
+
"@nocobase/plugin-block-iframe": "nocobase_plugin_block_iframe.ts",
|
|
17
|
+
"@nocobase/plugin-block-workbench": "nocobase_plugin_block_workbench.ts",
|
|
18
|
+
"@nocobase/plugin-calendar": "nocobase_plugin_calendar.ts",
|
|
19
|
+
"@nocobase/plugin-charts": "nocobase_plugin_charts.ts",
|
|
20
|
+
"@nocobase/plugin-client": "nocobase_plugin_client.ts",
|
|
21
|
+
"@nocobase/plugin-collection-sql": "nocobase_plugin_collection_sql.ts",
|
|
22
|
+
"@nocobase/plugin-data-source-main": "nocobase_plugin_data_source_main.ts",
|
|
23
|
+
"@nocobase/plugin-data-source-manager": "nocobase_plugin_data_source_manager.ts",
|
|
24
|
+
"@nocobase/plugin-data-visualization": "nocobase_plugin_data_visualization.ts",
|
|
25
|
+
"@nocobase/plugin-disable-pm-add": "nocobase_plugin_disable_pm_add.ts",
|
|
26
|
+
"@nocobase/plugin-error-handler": "nocobase_plugin_error_handler.ts",
|
|
27
|
+
"@nocobase/plugin-field-china-region": "nocobase_plugin_field_china_region.ts",
|
|
28
|
+
"@nocobase/plugin-field-formula": "nocobase_plugin_field_formula.ts",
|
|
29
|
+
"@nocobase/plugin-field-markdown-vditor": "nocobase_plugin_field_markdown_vditor.ts",
|
|
30
|
+
"@nocobase/plugin-field-sequence": "nocobase_plugin_field_sequence.ts",
|
|
31
|
+
"@nocobase/plugin-file-manager": "nocobase_plugin_file_manager.ts",
|
|
32
|
+
"@nocobase/plugin-gantt": "nocobase_plugin_gantt.ts",
|
|
33
|
+
"@nocobase/plugin-graph-collection-manager": "nocobase_plugin_graph_collection_manager.ts",
|
|
34
|
+
"@nocobase/plugin-kanban": "nocobase_plugin_kanban.ts",
|
|
35
|
+
"@nocobase/plugin-localization": "nocobase_plugin_localization.ts",
|
|
36
|
+
"@nocobase/plugin-logger": "nocobase_plugin_logger.ts",
|
|
37
|
+
"@nocobase/plugin-map": "nocobase_plugin_map.ts",
|
|
38
|
+
"@nocobase/plugin-mobile-client": "nocobase_plugin_mobile_client.ts",
|
|
39
|
+
"@nocobase/plugin-mock-collections": "nocobase_plugin_mock_collections.ts",
|
|
40
|
+
"@nocobase/plugin-multi-app-manager": "nocobase_plugin_multi_app_manager.ts",
|
|
41
|
+
"@nocobase/plugin-multi-app-share-collection": "nocobase_plugin_multi_app_share_collection.ts",
|
|
42
|
+
"@nocobase/plugin-notifications": "nocobase_plugin_notifications.ts",
|
|
43
|
+
"@nocobase/plugin-sample-hello": "nocobase_plugin_sample_hello.ts",
|
|
44
|
+
"@nocobase/plugin-snapshot-field": "nocobase_plugin_snapshot_field.ts",
|
|
45
|
+
"@nocobase/plugin-system-settings": "nocobase_plugin_system_settings.ts",
|
|
46
|
+
"@nocobase/plugin-theme-editor": "nocobase_plugin_theme_editor.ts",
|
|
47
|
+
"@nocobase/plugin-ui-schema-storage": "nocobase_plugin_ui_schema_storage.ts",
|
|
48
|
+
"@nocobase/plugin-users": "nocobase_plugin_users.ts",
|
|
49
|
+
"@nocobase/plugin-verification": "nocobase_plugin_verification.ts",
|
|
50
|
+
"@nocobase/plugin-workflow": "nocobase_plugin_workflow.ts",
|
|
51
|
+
"@nocobase/plugin-workflow-action-trigger": "nocobase_plugin_workflow_action_trigger.ts",
|
|
52
|
+
"@nocobase/plugin-workflow-aggregate": "nocobase_plugin_workflow_aggregate.ts",
|
|
53
|
+
"@nocobase/plugin-workflow-delay": "nocobase_plugin_workflow_delay.ts",
|
|
54
|
+
"@nocobase/plugin-workflow-dynamic-calculation": "nocobase_plugin_workflow_dynamic_calculation.ts",
|
|
55
|
+
"@nocobase/plugin-workflow-loop": "nocobase_plugin_workflow_loop.ts",
|
|
56
|
+
"@nocobase/plugin-workflow-mailer": "nocobase_plugin_workflow_mailer.ts",
|
|
57
|
+
"@nocobase/plugin-workflow-manual": "nocobase_plugin_workflow_manual.ts",
|
|
58
|
+
"@nocobase/plugin-workflow-parallel": "nocobase_plugin_workflow_parallel.ts",
|
|
59
|
+
"@nocobase/plugin-workflow-request": "nocobase_plugin_workflow_request.ts",
|
|
60
|
+
"@nocobase/plugin-workflow-sql": "nocobase_plugin_workflow_sql.ts",
|
|
61
|
+
"@nocobase/plugin-workflow-test": "nocobase_plugin_workflow_test.ts"
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-acl/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-action-bulk-edit/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-action-bulk-update/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-action-custom-request/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-action-duplicate/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-action-export/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-action-import/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-action-print/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-api-doc/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-api-keys/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-audit-logs/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-auth/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-auth-sms/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-backup-restore/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-block-iframe/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-block-workbench/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-calendar/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-charts/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-client/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-collection-sql/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-data-source-main/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-data-source-manager/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-data-visualization/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-disable-pm-add/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-error-handler/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-field-china-region/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-field-formula/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-field-markdown-vditor/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-field-sequence/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-file-manager/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-gantt/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-graph-collection-manager/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-kanban/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-localization/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-logger/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-map/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-mobile-client/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-mock-collections/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-multi-app-manager/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-multi-app-share-collection/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-notifications/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-sample-hello/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-snapshot-field/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-system-settings/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-theme-editor/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-ui-schema-storage/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-users/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-verification/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-workflow/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-workflow-action-trigger/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-workflow-aggregate/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-workflow-delay/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-workflow-loop/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-workflow-mailer/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-workflow-manual/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-workflow-parallel/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-workflow-request/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-workflow-sql/src/client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../../../../../plugins/@nocobase/plugin-workflow-test/src/client';
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-alpha.20240710084543",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nocobase/database": "1.
|
|
10
|
-
"@nocobase/preset-nocobase": "1.
|
|
11
|
-
"@nocobase/server": "1.
|
|
9
|
+
"@nocobase/database": "1.3.0-alpha.20240710084543",
|
|
10
|
+
"@nocobase/preset-nocobase": "1.3.0-alpha.20240710084543",
|
|
11
|
+
"@nocobase/server": "1.3.0-alpha.20240710084543"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@nocobase/client": "1.
|
|
14
|
+
"@nocobase/client": "1.3.0-alpha.20240710084543"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
18
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
19
19
|
"directory": "packages/core/app"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "07a8b596fc64a9779a194cb9b0dc2ca7570ed9d4"
|
|
22
22
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { Outlet, useOutletContext } from 'umi';
|
|
6
|
-
export default function EmptyRoute() {
|
|
7
|
-
const context = useOutletContext();
|
|
8
|
-
return <Outlet context={context} />;
|
|
9
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
interface IDefaultRuntimeConfig {
|
|
5
|
-
onRouteChange?: (props: { routes: any, clientRoutes: any, location: any, action: any, isFirst: boolean }) => void;
|
|
6
|
-
patchRoutes?: (props: { routes: any }) => void;
|
|
7
|
-
patchClientRoutes?: (props: { routes: any }) => void;
|
|
8
|
-
render?: (oldRender: () => void) => void;
|
|
9
|
-
rootContainer?: (lastRootContainer: JSX.Element, args?: any) => void;
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}
|
|
12
|
-
export type RuntimeConfig = IDefaultRuntimeConfig
|
|
13
|
-
|
|
14
|
-
export function defineApp(config: RuntimeConfig): RuntimeConfig {
|
|
15
|
-
return config;
|
|
16
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { HelmetProvider } from '/__w/nocobase/nocobase/node_modules/@umijs/renderer-react';
|
|
6
|
-
import { context } from './helmetContext';
|
|
7
|
-
|
|
8
|
-
export const innerProvider = (container) => {
|
|
9
|
-
return React.createElement(HelmetProvider, { context }, container);
|
|
10
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import { createHashHistory, createMemoryHistory, createBrowserHistory } from '/__w/nocobase/nocobase/node_modules/@umijs/renderer-react';
|
|
5
|
-
import type { UmiHistory } from './historyIntelli';
|
|
6
|
-
|
|
7
|
-
let history: UmiHistory;
|
|
8
|
-
let basename: string = '/';
|
|
9
|
-
export function createHistory(opts: any) {
|
|
10
|
-
let h;
|
|
11
|
-
if (opts.type === 'hash') {
|
|
12
|
-
h = createHashHistory();
|
|
13
|
-
} else if (opts.type === 'memory') {
|
|
14
|
-
h = createMemoryHistory(opts);
|
|
15
|
-
} else {
|
|
16
|
-
h = createBrowserHistory();
|
|
17
|
-
}
|
|
18
|
-
if (opts.basename) {
|
|
19
|
-
basename = opts.basename;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
history = {
|
|
24
|
-
...h,
|
|
25
|
-
push(to, state) {
|
|
26
|
-
h.push(patchTo(to, h), state);
|
|
27
|
-
},
|
|
28
|
-
replace(to, state) {
|
|
29
|
-
h.replace(patchTo(to, h), state);
|
|
30
|
-
},
|
|
31
|
-
get location() {
|
|
32
|
-
return h.location;
|
|
33
|
-
},
|
|
34
|
-
get action() {
|
|
35
|
-
return h.action;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return h;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// Patch `to` to support basename
|
|
43
|
-
// Refs:
|
|
44
|
-
// https://github.com/remix-run/history/blob/3e9dab4/packages/history/index.ts#L484
|
|
45
|
-
// https://github.com/remix-run/history/blob/dev/docs/api-reference.md#to
|
|
46
|
-
function patchTo(to: any, h: History) {
|
|
47
|
-
if (typeof to === 'string') {
|
|
48
|
-
return `${stripLastSlash(basename)}${to}`;
|
|
49
|
-
} else if (typeof to === 'object') {
|
|
50
|
-
|
|
51
|
-
const currentPathname = h.location.pathname;
|
|
52
|
-
|
|
53
|
-
return {
|
|
54
|
-
...to,
|
|
55
|
-
pathname: to.pathname? `${stripLastSlash(basename)}${to.pathname}` : currentPathname,
|
|
56
|
-
};
|
|
57
|
-
} else {
|
|
58
|
-
throw new Error(`Unexpected to: ${to}`);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function stripLastSlash(path) {
|
|
63
|
-
return path.slice(-1) === '/' ? path.slice(0, -1) : path;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { history };
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import { getRoutes } from './route'
|
|
5
|
-
import type { History } from '/__w/nocobase/nocobase/node_modules/@umijs/renderer-react'
|
|
6
|
-
|
|
7
|
-
type Routes = Awaited<ReturnType<typeof getRoutes>>['routes']
|
|
8
|
-
type AllRoute = Routes[keyof Routes]
|
|
9
|
-
type IsRoot<T extends any> = 'parentId' extends keyof T ? false : true
|
|
10
|
-
|
|
11
|
-
// show `/` in not `layout / wrapper` only
|
|
12
|
-
type GetAllRouteWithoutLayout<Item extends AllRoute> = Item extends any
|
|
13
|
-
? 'isWrapper' extends keyof Item
|
|
14
|
-
? never
|
|
15
|
-
: 'isLayout' extends keyof Item
|
|
16
|
-
? never
|
|
17
|
-
: Item
|
|
18
|
-
: never
|
|
19
|
-
type AllRouteWithoutLayout = GetAllRouteWithoutLayout<AllRoute>
|
|
20
|
-
type IndexRoutePathname = '/' extends AllRouteWithoutLayout['path']
|
|
21
|
-
? '/'
|
|
22
|
-
: never
|
|
23
|
-
|
|
24
|
-
type GetChildrens<T extends any> = T extends any
|
|
25
|
-
? IsRoot<T> extends true
|
|
26
|
-
? never
|
|
27
|
-
: T
|
|
28
|
-
: never
|
|
29
|
-
type Childrens = GetChildrens<AllRoute>
|
|
30
|
-
type Root = Exclude<AllRoute, Childrens>
|
|
31
|
-
type AllIds = AllRoute['id']
|
|
32
|
-
|
|
33
|
-
type GetChildrensByParentId<
|
|
34
|
-
Id extends AllIds,
|
|
35
|
-
Item = AllRoute
|
|
36
|
-
> = Item extends any
|
|
37
|
-
? 'parentId' extends keyof Item
|
|
38
|
-
? Item['parentId'] extends Id
|
|
39
|
-
? Item
|
|
40
|
-
: never
|
|
41
|
-
: never
|
|
42
|
-
: never
|
|
43
|
-
|
|
44
|
-
type RouteObject<
|
|
45
|
-
Id extends AllIds,
|
|
46
|
-
Item = GetChildrensByParentId<Id>
|
|
47
|
-
> = IsNever<Item> extends true
|
|
48
|
-
? ''
|
|
49
|
-
: Item extends AllRoute
|
|
50
|
-
? {
|
|
51
|
-
[Key in Item['path'] as TrimSlash<Key>]: UnionMerge<
|
|
52
|
-
RouteObject<Item['id']>
|
|
53
|
-
>
|
|
54
|
-
}
|
|
55
|
-
: never
|
|
56
|
-
|
|
57
|
-
type GetRootRouteObject<Item extends Root> = Item extends Root
|
|
58
|
-
? {
|
|
59
|
-
[K in Item['path'] as TrimSlash<K>]: UnionMerge<RouteObject<Item['id']>>
|
|
60
|
-
}
|
|
61
|
-
: never
|
|
62
|
-
type MergedResult = UnionMerge<GetRootRouteObject<Root>>
|
|
63
|
-
|
|
64
|
-
// --- patch history types ---
|
|
65
|
-
|
|
66
|
-
type HistoryTo = Parameters<History['push']>['0']
|
|
67
|
-
type HistoryPath = Exclude<HistoryTo, string>
|
|
68
|
-
|
|
69
|
-
type UmiPathname = Path<MergedResult> | (string & {})
|
|
70
|
-
interface UmiPath extends HistoryPath {
|
|
71
|
-
pathname: UmiPathname
|
|
72
|
-
}
|
|
73
|
-
type UmiTo = UmiPathname | UmiPath
|
|
74
|
-
|
|
75
|
-
type UmiPush = (to: UmiTo, state?: any) => void
|
|
76
|
-
type UmiReplace = (to: UmiTo, state?: any) => void
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
export interface UmiHistory extends History {
|
|
80
|
-
push: UmiPush
|
|
81
|
-
replace: UmiReplace
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// --- type utils ---
|
|
85
|
-
type TrimLeftSlash<T extends string> = T extends `/${infer R}`
|
|
86
|
-
? TrimLeftSlash<R>
|
|
87
|
-
: T
|
|
88
|
-
type TrimRightSlash<T extends string> = T extends `${infer R}/`
|
|
89
|
-
? TrimRightSlash<R>
|
|
90
|
-
: T
|
|
91
|
-
type TrimSlash<T extends string> = TrimLeftSlash<TrimRightSlash<T>>
|
|
92
|
-
|
|
93
|
-
type IsNever<T> = [T] extends [never] ? true : false
|
|
94
|
-
type IsEqual<A, B> = (<G>() => G extends A ? 1 : 2) extends <G>() => G extends B
|
|
95
|
-
? 1
|
|
96
|
-
: 2
|
|
97
|
-
? true
|
|
98
|
-
: false
|
|
99
|
-
|
|
100
|
-
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
|
|
101
|
-
k: infer I
|
|
102
|
-
) => void
|
|
103
|
-
? I
|
|
104
|
-
: never
|
|
105
|
-
type UnionMerge<U> = UnionToIntersection<U> extends infer O
|
|
106
|
-
? { [K in keyof O]: O[K] }
|
|
107
|
-
: never
|
|
108
|
-
|
|
109
|
-
type ExcludeEmptyKey<T> = IsEqual<T, ''> extends true ? never : T
|
|
110
|
-
|
|
111
|
-
type PathConcat<
|
|
112
|
-
TKey extends string,
|
|
113
|
-
TValue,
|
|
114
|
-
N = TrimSlash<TKey>
|
|
115
|
-
> = TValue extends string
|
|
116
|
-
? ExcludeEmptyKey<N>
|
|
117
|
-
:
|
|
118
|
-
| ExcludeEmptyKey<N>
|
|
119
|
-
| `${N & string}${IsNever<ExcludeEmptyKey<N>> extends true
|
|
120
|
-
? ''
|
|
121
|
-
: '/'}${UnionPath<TValue>}`
|
|
122
|
-
|
|
123
|
-
type UnionPath<T> = {
|
|
124
|
-
[K in keyof T]-?: PathConcat<K & string, T[K]>
|
|
125
|
-
}[keyof T]
|
|
126
|
-
|
|
127
|
-
type MakeSureLeftSlash<T> = T extends any
|
|
128
|
-
? `/${TrimRightSlash<T & string>}`
|
|
129
|
-
: never
|
|
130
|
-
|
|
131
|
-
// exclude `/*`, because it always at the top of the IDE tip list
|
|
132
|
-
type Path<T, K = UnionPath<T>> = Exclude<MakeSureLeftSlash<K>, '/*'> | IndexRoutePathname
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import * as Plugin_0 from '@@/core/helmet.ts';
|
|
5
|
-
import * as Plugin_1 from '../plugin-routerBase/runtime.ts';
|
|
6
|
-
import { PluginManager } from 'umi';
|
|
7
|
-
|
|
8
|
-
function __defaultExport (obj) {
|
|
9
|
-
if (obj.default) {
|
|
10
|
-
return typeof obj.default === 'function' ? obj.default() : obj.default
|
|
11
|
-
}
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
|
-
export function getPlugins() {
|
|
15
|
-
return [
|
|
16
|
-
{
|
|
17
|
-
apply: Plugin_0,
|
|
18
|
-
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/helmet.ts',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
apply: Plugin_1,
|
|
22
|
-
path: process.env.NODE_ENV === 'production' ? void 0 : '../plugin-routerBase/runtime.ts',
|
|
23
|
-
},
|
|
24
|
-
];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function getValidKeys() {
|
|
28
|
-
return ['patchRoutes','patchClientRoutes','modifyContextOpts','modifyClientRenderOpts','rootContainer','innerProvider','i18nProvider','accessProvider','dataflowProvider','outerProvider','render','onRouteChange','routerBase',];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
let pluginManager = null;
|
|
32
|
-
|
|
33
|
-
export function createPluginManager() {
|
|
34
|
-
pluginManager = PluginManager.create({
|
|
35
|
-
plugins: getPlugins(),
|
|
36
|
-
validKeys: getValidKeys(),
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return pluginManager;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function getPluginManager() {
|
|
44
|
-
return pluginManager;
|
|
45
|
-
}
|