@tego/web 1.6.1 → 1.6.2
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/LICENSE +201 -0
- package/README.md +29 -29
- package/package.json +3 -3
- package/public/browser-checker.js +215 -215
- package/public/global.css +63 -63
- package/rsbuild.config.ts +104 -103
- package/src/.plugins/index.ts +10 -3
- package/src/.plugins/packageMap.json +93 -0
- package/src/.plugins/packages/module_acl.ts +2 -0
- package/src/.plugins/packages/module_app_info.ts +2 -0
- package/src/.plugins/packages/module_auth.ts +2 -0
- package/src/.plugins/packages/module_backup.ts +2 -0
- package/src/.plugins/packages/module_cloud_component.ts +2 -0
- package/src/.plugins/packages/module_collection.ts +2 -0
- package/src/.plugins/packages/module_cron.ts +2 -0
- package/src/.plugins/packages/module_data_source.ts +2 -0
- package/src/.plugins/packages/module_env_secrets.ts +2 -0
- package/src/.plugins/packages/module_error_handler.ts +2 -0
- package/src/.plugins/packages/module_event_source.ts +2 -0
- package/src/.plugins/packages/module_file.ts +2 -0
- package/src/.plugins/packages/module_hera.ts +2 -0
- package/src/.plugins/packages/module_instrumentation.ts +2 -0
- package/src/.plugins/packages/module_message.ts +2 -0
- package/src/.plugins/packages/module_multi_app.ts +2 -0
- package/src/.plugins/packages/module_pdf.ts +2 -0
- package/src/.plugins/packages/module_ui_schema.ts +2 -0
- package/src/.plugins/packages/module_user.ts +2 -0
- package/src/.plugins/packages/module_web.ts +2 -0
- package/src/.plugins/packages/module_worker_thread.ts +2 -0
- package/src/.plugins/packages/module_workflow.ts +2 -0
- package/src/.plugins/packages/plugin_action_bulk_edit.ts +2 -0
- package/src/.plugins/packages/plugin_action_bulk_update.ts +2 -0
- package/src/.plugins/packages/plugin_action_custom_request.ts +2 -0
- package/src/.plugins/packages/plugin_action_duplicate.ts +2 -0
- package/src/.plugins/packages/plugin_action_export.ts +2 -0
- package/src/.plugins/packages/plugin_action_import.ts +2 -0
- package/src/.plugins/packages/plugin_action_print.ts +2 -0
- package/src/.plugins/packages/plugin_action_share.ts +2 -0
- package/src/.plugins/packages/plugin_adapter_bullmq.ts +2 -0
- package/src/.plugins/packages/plugin_adapter_red_node.ts +2 -0
- package/src/.plugins/packages/plugin_adapter_remix.ts +2 -0
- package/src/.plugins/packages/plugin_ai_chat.ts +2 -0
- package/src/.plugins/packages/plugin_api_keys.ts +2 -0
- package/src/.plugins/packages/plugin_api_logs.ts +2 -0
- package/src/.plugins/packages/plugin_audit_logs.ts +2 -0
- package/src/.plugins/packages/plugin_auth_cas.ts +2 -0
- package/src/.plugins/packages/plugin_auth_dingtalk.ts +2 -0
- package/src/.plugins/packages/plugin_auth_main_app.ts +2 -0
- package/src/.plugins/packages/plugin_auth_oidc.ts +2 -0
- package/src/.plugins/packages/plugin_auth_pages.ts +2 -0
- package/src/.plugins/packages/plugin_auth_prototype_lark.ts +2 -0
- package/src/.plugins/packages/plugin_auth_saml.ts +2 -0
- package/src/.plugins/packages/plugin_auth_sms.ts +2 -0
- package/src/.plugins/packages/plugin_auth_wechat.ts +2 -0
- package/src/.plugins/packages/plugin_auth_wecom.ts +2 -0
- package/src/.plugins/packages/plugin_block_calendar.ts +2 -0
- package/src/.plugins/packages/plugin_block_charts.ts +2 -0
- package/src/.plugins/packages/plugin_block_comments.ts +2 -0
- package/src/.plugins/packages/plugin_block_gantt.ts +2 -0
- package/src/.plugins/packages/plugin_block_kanban.ts +2 -0
- package/src/.plugins/packages/plugin_block_map.ts +2 -0
- package/src/.plugins/packages/plugin_block_presentation.ts +2 -0
- package/src/.plugins/packages/plugin_block_step_form.ts +2 -0
- package/src/.plugins/packages/plugin_data_source_common.ts +2 -0
- package/src/.plugins/packages/plugin_department.ts +2 -0
- package/src/.plugins/packages/plugin_devkit.ts +2 -0
- package/src/.plugins/packages/plugin_devtools.ts +2 -0
- package/src/.plugins/packages/plugin_evaluator_mathjs.ts +2 -0
- package/src/.plugins/packages/plugin_field_bank_card_number.ts +2 -0
- package/src/.plugins/packages/plugin_field_china_region.ts +2 -0
- package/src/.plugins/packages/plugin_field_encryption.ts +2 -0
- package/src/.plugins/packages/plugin_field_formula.ts +2 -0
- package/src/.plugins/packages/plugin_field_markdown_vditor.ts +2 -0
- package/src/.plugins/packages/plugin_field_sequence.ts +2 -0
- package/src/.plugins/packages/plugin_field_snapshot.ts +2 -0
- package/src/.plugins/packages/plugin_form_design.ts +2 -0
- package/src/.plugins/packages/plugin_full_text_search.ts +2 -0
- package/src/.plugins/packages/plugin_i18n_editor.ts +2 -0
- package/src/.plugins/packages/plugin_icon_pickerv2.ts +2 -0
- package/src/.plugins/packages/plugin_log_viewer.ts +2 -0
- package/src/.plugins/packages/plugin_manual_notification.ts +2 -0
- package/src/.plugins/packages/plugin_mock_collections.ts +2 -0
- package/src/.plugins/packages/plugin_multi_app_share_collection.ts +2 -0
- package/src/.plugins/packages/plugin_ocr_convert.ts +2 -0
- package/src/.plugins/packages/plugin_otp.ts +2 -0
- package/src/.plugins/packages/plugin_pagespy.ts +2 -0
- package/src/.plugins/packages/plugin_password_policy.ts +2 -0
- package/src/.plugins/packages/plugin_prototype_game_runesweeper.ts +2 -0
- package/src/.plugins/packages/plugin_prototype_online_user.ts +2 -0
- package/src/.plugins/packages/plugin_prototype_print_template.ts +2 -0
- package/src/.plugins/packages/plugin_prototype_simple_cms.ts +2 -0
- package/src/.plugins/packages/plugin_prototype_wechat_official_account.ts +2 -0
- package/src/.plugins/packages/plugin_sub_accounts.ts +2 -0
- package/src/.plugins/packages/plugin_text_copy.ts +2 -0
- package/src/.plugins/packages/plugin_theme_editor.ts +2 -0
- package/src/.plugins/packages/plugin_user_manual_feishu.ts +2 -0
- package/src/.plugins/packages/plugin_workflow_analysis.ts +2 -0
- package/src/.plugins/packages/plugin_workflow_approval.ts +2 -0
- package/src/.plugins/packages/plugin_workflow_test.ts +2 -0
- package/src/App.tsx +29 -29
- package/src/PluginWeb.ts +29 -29
- package/src/assets/index.html +10 -10
- package/src/dynamic-import.ts +19 -19
- package/src/env.d.ts +3 -3
- package/tsconfig.json +25 -25
- package/dist/assets/9414.046b4352.css +0 -1
- package/dist/assets/9414.a83d41b1.js +0 -616
- package/dist/assets/9414.a83d41b1.js.LICENSE.txt +0 -1855
- package/dist/assets/android-chrome-192x192.png +0 -0
- package/dist/assets/android-chrome-512x512.png +0 -0
- package/dist/assets/apple-touch-icon.png +0 -0
- package/dist/assets/async/1138.cfe1f631.js +0 -1
- package/dist/assets/async/1172.88cbb928.js +0 -1
- package/dist/assets/async/1182.8f2d2f16.js +0 -1
- package/dist/assets/async/1199.47f2bd4d.js +0 -1
- package/dist/assets/async/1202.30ca28be.js +0 -1
- package/dist/assets/async/1284.94e13e3f.js +0 -1
- package/dist/assets/async/1455.2eaf90fc.js +0 -1
- package/dist/assets/async/1508.d2e50b8d.js +0 -1
- package/dist/assets/async/1648.c6e4b183.js +0 -1
- package/dist/assets/async/176.f51cb97a.js +0 -1
- package/dist/assets/async/1832.b5e1954d.js +0 -1
- package/dist/assets/async/1881.517d46da.js +0 -1
- package/dist/assets/async/2043.0f1aad1d.js +0 -1
- package/dist/assets/async/2123.f354610d.js +0 -1
- package/dist/assets/async/2197.a83e7584.js +0 -1
- package/dist/assets/async/2248.de7e4743.js +0 -1
- package/dist/assets/async/226.05e16e95.js +0 -1
- package/dist/assets/async/228.5ce9eced.js +0 -1
- package/dist/assets/async/2287.5095ac52.js +0 -1
- package/dist/assets/async/2339.dcebeeac.js +0 -1
- package/dist/assets/async/2351.6e886747.js +0 -1
- package/dist/assets/async/2381.9d77b41f.js +0 -1
- package/dist/assets/async/2465.3b6fdb5f.js +0 -1
- package/dist/assets/async/2502.71a44e8b.js +0 -1
- package/dist/assets/async/2556.b11fe631.js +0 -1
- package/dist/assets/async/2744.3b44bb9d.js +0 -1
- package/dist/assets/async/2765.f7ccff44.js +0 -1
- package/dist/assets/async/2769.bec9a73d.js +0 -1
- package/dist/assets/async/2848.87328c7f.js +0 -1
- package/dist/assets/async/2852.c058e630.js +0 -1
- package/dist/assets/async/2951.29538af5.js +0 -1
- package/dist/assets/async/3018.069a46c5.js +0 -1
- package/dist/assets/async/3081.81e5ea4c.js +0 -1
- package/dist/assets/async/3237.520aced7.js +0 -1
- package/dist/assets/async/327.e6bd1130.js +0 -1
- package/dist/assets/async/3386.63466788.js +0 -1
- package/dist/assets/async/3448.3a42658f.js +0 -1
- package/dist/assets/async/3693.6af22124.js +0 -1
- package/dist/assets/async/3834.df7f64e2.js +0 -1
- package/dist/assets/async/4006.d6e11878.js +0 -1
- package/dist/assets/async/4026.04858a93.js +0 -1
- package/dist/assets/async/4176.f4781a6c.js +0 -1
- package/dist/assets/async/4248.e2936c43.js +0 -1
- package/dist/assets/async/4268.30780c48.js +0 -1
- package/dist/assets/async/4275.adc79ed0.js +0 -1
- package/dist/assets/async/4297.b377676e.js +0 -1
- package/dist/assets/async/4325.1bb6ebd9.js +0 -1
- package/dist/assets/async/446.de0d9ad3.js +0 -1
- package/dist/assets/async/4461.9961a64d.js +0 -1
- package/dist/assets/async/4519.2a988460.js +0 -1
- package/dist/assets/async/4521.58196cf3.js +0 -1
- package/dist/assets/async/4594.c64fdebd.js +0 -1
- package/dist/assets/async/4624.e81dd415.js +0 -1
- package/dist/assets/async/4689.66e7700f.js +0 -1
- package/dist/assets/async/4780.a487d29a.js +0 -1
- package/dist/assets/async/4885.1d2a3318.js +0 -1
- package/dist/assets/async/5019.01513475.js +0 -1
- package/dist/assets/async/5043.343699bd.js +0 -1
- package/dist/assets/async/505.7d67810e.js +0 -1
- package/dist/assets/async/5133.9ed72166.js +0 -1
- package/dist/assets/async/5195.4ed64bf5.js +0 -1
- package/dist/assets/async/5221.dfba0809.js +0 -1
- package/dist/assets/async/5246.4f2abac0.js +0 -1
- package/dist/assets/async/5324.794152e1.js +0 -1
- package/dist/assets/async/5593.deda668b.js +0 -1
- package/dist/assets/async/5604.bce3a93b.js +0 -1
- package/dist/assets/async/5621.c26eccae.js +0 -1
- package/dist/assets/async/564.f6d7cf79.js +0 -1
- package/dist/assets/async/5655.fa2a36e2.js +0 -1
- package/dist/assets/async/5701.fe3b09a9.js +0 -1
- package/dist/assets/async/5999.0ee04040.js +0 -1
- package/dist/assets/async/602.f010a114.js +0 -1
- package/dist/assets/async/6265.988a1dd5.js +0 -1
- package/dist/assets/async/6335.c7c58592.js +0 -1
- package/dist/assets/async/6339.af6b544d.js +0 -1
- package/dist/assets/async/6422.7d68bab5.js +0 -1
- package/dist/assets/async/6509.26908636.js +0 -1
- package/dist/assets/async/6621.a93ad48e.js +0 -1
- package/dist/assets/async/6644.eeca0466.js +0 -1
- package/dist/assets/async/6647.2878e0fd.js +0 -1
- package/dist/assets/async/6867.3f618013.js +0 -1
- package/dist/assets/async/7091.783bb037.js +0 -1
- package/dist/assets/async/7130.f5791dee.js +0 -1
- package/dist/assets/async/7147.e4db1072.js +0 -1
- package/dist/assets/async/7156.3022eff3.js +0 -1
- package/dist/assets/async/7284.16955956.js +0 -1
- package/dist/assets/async/7301.f887f1f6.js +0 -1
- package/dist/assets/async/7385.3a279b1e.js +0 -1
- package/dist/assets/async/7417.ba1f62d1.js +0 -1
- package/dist/assets/async/7421.bb8ec679.js +0 -1
- package/dist/assets/async/7487.26ecec06.js +0 -1
- package/dist/assets/async/7625.70e52d16.js +0 -1
- package/dist/assets/async/7633.d2d4dac4.js +0 -1
- package/dist/assets/async/7660.ac6a08d2.js +0 -1
- package/dist/assets/async/7682.eb2bdf23.js +0 -1
- package/dist/assets/async/773.c4bc5a4e.js +0 -1
- package/dist/assets/async/7765.2d562394.js +0 -1
- package/dist/assets/async/792.d8dd2807.js +0 -1
- package/dist/assets/async/7962.f9d16d04.js +0 -1
- package/dist/assets/async/7973.2876e356.js +0 -1
- package/dist/assets/async/8040.092c4512.js +0 -1
- package/dist/assets/async/8090.1ad8c1c6.js +0 -1
- package/dist/assets/async/81.c304bf8b.js +0 -1
- package/dist/assets/async/8125.c30582d5.js +0 -1
- package/dist/assets/async/823.563d35ae.js +0 -1
- package/dist/assets/async/8332.35c95cf2.js +0 -1
- package/dist/assets/async/8377.4b4d66ea.js +0 -1
- package/dist/assets/async/8381.eb5cb5ef.js +0 -1
- package/dist/assets/async/8598.07a662f4.js +0 -1
- package/dist/assets/async/8625.58dbf2b7.js +0 -1
- package/dist/assets/async/8637.a9b1434c.js +0 -1
- package/dist/assets/async/8650.4eb3d6bd.js +0 -1
- package/dist/assets/async/8706.bd5c53c2.js +0 -1
- package/dist/assets/async/8769.f01afed1.js +0 -1
- package/dist/assets/async/8806.5a06887a.js +0 -1
- package/dist/assets/async/8839.053e2906.js +0 -1
- package/dist/assets/async/8875.cc1a62fb.js +0 -1
- package/dist/assets/async/8890.311b581f.js +0 -1
- package/dist/assets/async/9011.03edce16.js +0 -1
- package/dist/assets/async/9130.0adedd1d.js +0 -1
- package/dist/assets/async/9171.53b206cd.js +0 -1
- package/dist/assets/async/9191.9876d97e.js +0 -1
- package/dist/assets/async/9226.af1bf751.js +0 -1
- package/dist/assets/async/9242.c43f1fe9.js +0 -1
- package/dist/assets/async/9249.f0b68f64.js +0 -1
- package/dist/assets/async/9270.f3727fa9.js +0 -1
- package/dist/assets/async/9288.bf60f304.js +0 -1
- package/dist/assets/async/9291.4accb4ff.js +0 -1
- package/dist/assets/async/9330.feff1dd9.js +0 -1
- package/dist/assets/async/9344.59994ae6.js +0 -1
- package/dist/assets/async/9370.9be8e3db.js +0 -1
- package/dist/assets/async/938.8c08f1b1.js +0 -1
- package/dist/assets/async/9458.9523bdf1.js +0 -1
- package/dist/assets/async/9507.b1da2ea9.js +0 -1
- package/dist/assets/async/9556.f3122530.js +0 -1
- package/dist/assets/async/9592.01694fad.js +0 -1
- package/dist/assets/async/9646.766c7014.js +0 -1
- package/dist/assets/async/9708.01475dbe.js +0 -1
- package/dist/assets/async/9716.476f3e02.js +0 -1
- package/dist/assets/async/9843.eadc2d9d.js +0 -1
- package/dist/assets/async/9844.dd777018.js +0 -1
- package/dist/assets/async/9854.2036e5ff.js +0 -1
- package/dist/assets/index.5774445a.css +0 -1
- package/dist/assets/index.bc15f016.js +0 -2
- package/dist/assets/index.bc15f016.js.LICENSE.txt +0 -6
- package/dist/assets/lib-axios.b7bbb6d6.js +0 -2
- package/dist/assets/lib-axios.b7bbb6d6.js.LICENSE.txt +0 -20
- package/dist/assets/lib-react.44bdac30.js +0 -2
- package/dist/assets/lib-react.44bdac30.js.LICENSE.txt +0 -48
- package/dist/assets/lib-router.2c58eb3b.js +0 -2
- package/dist/assets/lib-router.2c58eb3b.js.LICENSE.txt +0 -32
- package/dist/browser-checker.js +0 -215
- package/dist/favicon.ico +0 -0
- package/dist/global.css +0 -63
- package/dist/index.html +0 -10
- package/dist/manifest.webmanifest +0 -1
- package/dist/tachybase-logo.png +0 -0
package/rsbuild.config.ts
CHANGED
|
@@ -1,103 +1,104 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
import { getUmiConfig, IndexGenerator } from '@tego/devkit';
|
|
3
|
-
|
|
4
|
-
import { defineConfig } from '@rsbuild/core';
|
|
5
|
-
import { pluginLess } from '@rsbuild/plugin-less';
|
|
6
|
-
import { pluginNodePolyfill } from '@rsbuild/plugin-node-polyfill';
|
|
7
|
-
import { pluginReact } from '@rsbuild/plugin-react';
|
|
8
|
-
|
|
9
|
-
const config = getUmiConfig();
|
|
10
|
-
|
|
11
|
-
const pluginDirs = ['packages'].map((item) => path.join(process.cwd(), item));
|
|
12
|
-
|
|
13
|
-
const outputPluginPath = path.join(__dirname, 'src/.plugins');
|
|
14
|
-
const indexGenerator = new IndexGenerator(outputPluginPath, pluginDirs);
|
|
15
|
-
indexGenerator.generate();
|
|
16
|
-
|
|
17
|
-
const rsDefined = {};
|
|
18
|
-
for (const key in config.define) {
|
|
19
|
-
rsDefined[key] = JSON.stringify(config.define[key]);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export default defineConfig({
|
|
23
|
-
html: {
|
|
24
|
-
title: 'Tachybase',
|
|
25
|
-
inject: 'body',
|
|
26
|
-
template: 'src/assets/index.html',
|
|
27
|
-
meta: [{ viewport: 'initial-scale=0.1' }],
|
|
28
|
-
favicon: 'src/assets/favicon.ico',
|
|
29
|
-
appIcon: {
|
|
30
|
-
name: 'Tachybase',
|
|
31
|
-
icons: [
|
|
32
|
-
{
|
|
33
|
-
src: 'src/assets/apple-touch-icon.png',
|
|
34
|
-
size: 180,
|
|
35
|
-
target: 'apple-touch-icon',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
src: 'src/assets/android-chrome-192x192.png',
|
|
39
|
-
size: 192,
|
|
40
|
-
target: 'web-app-manifest',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
src: 'src/assets/android-chrome-512x512.png',
|
|
44
|
-
size: 512,
|
|
45
|
-
target: 'web-app-manifest',
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
source: {
|
|
51
|
-
define: {
|
|
52
|
-
...rsDefined,
|
|
53
|
-
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
|
|
54
|
-
'process.env.REACT_APP_CLICK_TO_COMPONENT_EDITOR': JSON.stringify(
|
|
55
|
-
process.env.REACT_APP_CLICK_TO_COMPONENT_EDITOR,
|
|
56
|
-
),
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
dev: {
|
|
60
|
-
hmr: false,
|
|
61
|
-
writeToDisk: false,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { getUmiConfig, IndexGenerator } from '@tego/devkit';
|
|
3
|
+
|
|
4
|
+
import { defineConfig } from '@rsbuild/core';
|
|
5
|
+
import { pluginLess } from '@rsbuild/plugin-less';
|
|
6
|
+
import { pluginNodePolyfill } from '@rsbuild/plugin-node-polyfill';
|
|
7
|
+
import { pluginReact } from '@rsbuild/plugin-react';
|
|
8
|
+
|
|
9
|
+
const config = getUmiConfig();
|
|
10
|
+
|
|
11
|
+
const pluginDirs = ['packages'].map((item) => path.join(process.cwd(), item));
|
|
12
|
+
|
|
13
|
+
const outputPluginPath = path.join(__dirname, 'src/.plugins');
|
|
14
|
+
const indexGenerator = new IndexGenerator(outputPluginPath, pluginDirs);
|
|
15
|
+
indexGenerator.generate();
|
|
16
|
+
|
|
17
|
+
const rsDefined = {};
|
|
18
|
+
for (const key in config.define) {
|
|
19
|
+
rsDefined[key] = JSON.stringify(config.define[key]);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default defineConfig({
|
|
23
|
+
html: {
|
|
24
|
+
title: 'Tachybase',
|
|
25
|
+
inject: 'body',
|
|
26
|
+
template: 'src/assets/index.html',
|
|
27
|
+
meta: [{ viewport: 'initial-scale=0.1' }],
|
|
28
|
+
favicon: 'src/assets/favicon.ico',
|
|
29
|
+
appIcon: {
|
|
30
|
+
name: 'Tachybase',
|
|
31
|
+
icons: [
|
|
32
|
+
{
|
|
33
|
+
src: 'src/assets/apple-touch-icon.png',
|
|
34
|
+
size: 180,
|
|
35
|
+
target: 'apple-touch-icon',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
src: 'src/assets/android-chrome-192x192.png',
|
|
39
|
+
size: 192,
|
|
40
|
+
target: 'web-app-manifest',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
src: 'src/assets/android-chrome-512x512.png',
|
|
44
|
+
size: 512,
|
|
45
|
+
target: 'web-app-manifest',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
source: {
|
|
51
|
+
define: {
|
|
52
|
+
...rsDefined,
|
|
53
|
+
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
|
|
54
|
+
'process.env.REACT_APP_CLICK_TO_COMPONENT_EDITOR': JSON.stringify(
|
|
55
|
+
process.env.REACT_APP_CLICK_TO_COMPONENT_EDITOR,
|
|
56
|
+
),
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
dev: {
|
|
60
|
+
hmr: false,
|
|
61
|
+
writeToDisk: false,
|
|
62
|
+
lazyCompilation: false, // 关闭懒编译,避免循环刷新
|
|
63
|
+
},
|
|
64
|
+
output: {
|
|
65
|
+
distPath: {
|
|
66
|
+
js: 'assets',
|
|
67
|
+
css: 'assets',
|
|
68
|
+
image: 'assets',
|
|
69
|
+
svg: 'assets',
|
|
70
|
+
font: 'assets',
|
|
71
|
+
media: 'assets',
|
|
72
|
+
},
|
|
73
|
+
minify: true,
|
|
74
|
+
overrideBrowserslist: ['chrome >= 69', 'edge >= 79', 'safari >= 12'],
|
|
75
|
+
},
|
|
76
|
+
server: {
|
|
77
|
+
port: Number(process.env.PORT || 3000),
|
|
78
|
+
open: !process.env.NO_OPEN,
|
|
79
|
+
proxy: {
|
|
80
|
+
...config.proxy,
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
plugins: [pluginReact(), pluginLess(), pluginNodePolyfill()],
|
|
84
|
+
resolve: {
|
|
85
|
+
alias: {
|
|
86
|
+
...config.alias,
|
|
87
|
+
// TODO:暂时只对这个库做处理
|
|
88
|
+
i18next: require.resolve('i18next'),
|
|
89
|
+
'react-i18next': require.resolve('react-i18next'),
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
tools: {
|
|
93
|
+
rspack: (config) => {
|
|
94
|
+
if (!config.resolve) {
|
|
95
|
+
config.resolve = {};
|
|
96
|
+
}
|
|
97
|
+
config.resolve.fallback = {
|
|
98
|
+
...config.resolve.fallback,
|
|
99
|
+
worker_threads: false,
|
|
100
|
+
};
|
|
101
|
+
return config;
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
});
|
package/src/.plugins/index.ts
CHANGED
|
@@ -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,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@tachybase/module-acl": "module_acl.ts",
|
|
3
|
+
"@tachybase/module-app-info": "module_app_info.ts",
|
|
4
|
+
"@tachybase/module-auth": "module_auth.ts",
|
|
5
|
+
"@tachybase/module-backup": "module_backup.ts",
|
|
6
|
+
"@tachybase/module-cloud-component": "module_cloud_component.ts",
|
|
7
|
+
"@tachybase/module-collection": "module_collection.ts",
|
|
8
|
+
"@tachybase/module-cron": "module_cron.ts",
|
|
9
|
+
"@tachybase/module-data-source": "module_data_source.ts",
|
|
10
|
+
"@tachybase/module-env-secrets": "module_env_secrets.ts",
|
|
11
|
+
"@tachybase/module-error-handler": "module_error_handler.ts",
|
|
12
|
+
"@tachybase/module-event-source": "module_event_source.ts",
|
|
13
|
+
"@tachybase/module-file": "module_file.ts",
|
|
14
|
+
"@tachybase/module-hera": "module_hera.ts",
|
|
15
|
+
"@tachybase/module-instrumentation": "module_instrumentation.ts",
|
|
16
|
+
"@tachybase/module-message": "module_message.ts",
|
|
17
|
+
"@tachybase/module-multi-app": "module_multi_app.ts",
|
|
18
|
+
"@tachybase/module-pdf": "module_pdf.ts",
|
|
19
|
+
"@tachybase/module-ui-schema": "module_ui_schema.ts",
|
|
20
|
+
"@tachybase/module-user": "module_user.ts",
|
|
21
|
+
"@tachybase/module-web": "module_web.ts",
|
|
22
|
+
"@tachybase/module-worker-thread": "module_worker_thread.ts",
|
|
23
|
+
"@tachybase/module-workflow": "module_workflow.ts",
|
|
24
|
+
"@tachybase/plugin-action-bulk-edit": "plugin_action_bulk_edit.ts",
|
|
25
|
+
"@tachybase/plugin-action-bulk-update": "plugin_action_bulk_update.ts",
|
|
26
|
+
"@tachybase/plugin-action-custom-request": "plugin_action_custom_request.ts",
|
|
27
|
+
"@tachybase/plugin-action-duplicate": "plugin_action_duplicate.ts",
|
|
28
|
+
"@tachybase/plugin-action-export": "plugin_action_export.ts",
|
|
29
|
+
"@tachybase/plugin-action-import": "plugin_action_import.ts",
|
|
30
|
+
"@tachybase/plugin-action-print": "plugin_action_print.ts",
|
|
31
|
+
"@tachybase/plugin-action-share": "plugin_action_share.ts",
|
|
32
|
+
"@tachybase/plugin-adapter-bullmq": "plugin_adapter_bullmq.ts",
|
|
33
|
+
"@tachybase/plugin-adapter-red-node": "plugin_adapter_red_node.ts",
|
|
34
|
+
"@tachybase/plugin-adapter-remix": "plugin_adapter_remix.ts",
|
|
35
|
+
"@tachybase/plugin-ai-chat": "plugin_ai_chat.ts",
|
|
36
|
+
"@tachybase/plugin-api-keys": "plugin_api_keys.ts",
|
|
37
|
+
"@tachybase/plugin-api-logs": "plugin_api_logs.ts",
|
|
38
|
+
"@tachybase/plugin-audit-logs": "plugin_audit_logs.ts",
|
|
39
|
+
"@tachybase/plugin-auth-cas": "plugin_auth_cas.ts",
|
|
40
|
+
"@tachybase/plugin-auth-dingtalk": "plugin_auth_dingtalk.ts",
|
|
41
|
+
"@tachybase/plugin-auth-main-app": "plugin_auth_main_app.ts",
|
|
42
|
+
"@tachybase/plugin-auth-oidc": "plugin_auth_oidc.ts",
|
|
43
|
+
"@tachybase/plugin-auth-pages": "plugin_auth_pages.ts",
|
|
44
|
+
"@tachybase/plugin-auth-lark": "plugin_auth_prototype_lark.ts",
|
|
45
|
+
"@tachybase/plugin-auth-saml": "plugin_auth_saml.ts",
|
|
46
|
+
"@tachybase/plugin-auth-sms": "plugin_auth_sms.ts",
|
|
47
|
+
"@tachybase/plugin-auth-wechat": "plugin_auth_wechat.ts",
|
|
48
|
+
"@tachybase/plugin-auth-wecom": "plugin_auth_wecom.ts",
|
|
49
|
+
"@tachybase/plugin-block-calendar": "plugin_block_calendar.ts",
|
|
50
|
+
"@tachybase/plugin-block-charts": "plugin_block_charts.ts",
|
|
51
|
+
"@tachybase/plugin-block-comments": "plugin_block_comments.ts",
|
|
52
|
+
"@tachybase/plugin-block-gantt": "plugin_block_gantt.ts",
|
|
53
|
+
"@tachybase/plugin-block-kanban": "plugin_block_kanban.ts",
|
|
54
|
+
"@tachybase/plugin-block-map": "plugin_block_map.ts",
|
|
55
|
+
"@tachybase/plugin-block-presentation": "plugin_block_presentation.ts",
|
|
56
|
+
"@tachybase/plugin-block-step-form": "plugin_block_step_form.ts",
|
|
57
|
+
"@tachybase/plugin-data-source-common": "plugin_data_source_common.ts",
|
|
58
|
+
"@tachybase/plugin-department": "plugin_department.ts",
|
|
59
|
+
"@tachybase/plugin-devkit": "plugin_devkit.ts",
|
|
60
|
+
"@tachybase/plugin-devtools": "plugin_devtools.ts",
|
|
61
|
+
"@tachybase/plugin-evaluator-mathjs": "plugin_evaluator_mathjs.ts",
|
|
62
|
+
"@tachybase/plugin-field-bank-card-number": "plugin_field_bank_card_number.ts",
|
|
63
|
+
"@tachybase/plugin-field-china-region": "plugin_field_china_region.ts",
|
|
64
|
+
"@tachybase/plugin-field-encryption": "plugin_field_encryption.ts",
|
|
65
|
+
"@tachybase/plugin-field-formula": "plugin_field_formula.ts",
|
|
66
|
+
"@tachybase/plugin-field-markdown-vditor": "plugin_field_markdown_vditor.ts",
|
|
67
|
+
"@tachybase/plugin-field-sequence": "plugin_field_sequence.ts",
|
|
68
|
+
"@tachybase/plugin-field-snapshot": "plugin_field_snapshot.ts",
|
|
69
|
+
"@tachybase/plugin-form-design": "plugin_form_design.ts",
|
|
70
|
+
"@tachybase/plugin-full-text-search": "plugin_full_text_search.ts",
|
|
71
|
+
"@tachybase/plugin-i18n-editor": "plugin_i18n_editor.ts",
|
|
72
|
+
"@tachybase/plugin-icon-pickerv2": "plugin_icon_pickerv2.ts",
|
|
73
|
+
"@tachybase/plugin-log-viewer": "plugin_log_viewer.ts",
|
|
74
|
+
"@tachybase/plugin-manual-notification": "plugin_manual_notification.ts",
|
|
75
|
+
"@tachybase/plugin-mock-collections": "plugin_mock_collections.ts",
|
|
76
|
+
"@tachybase/plugin-multi-app-share-collection": "plugin_multi_app_share_collection.ts",
|
|
77
|
+
"@tachybase/plugin-ocr-convert": "plugin_ocr_convert.ts",
|
|
78
|
+
"@tachybase/plugin-otp": "plugin_otp.ts",
|
|
79
|
+
"@tachybase/plugin-pagespy": "plugin_pagespy.ts",
|
|
80
|
+
"@tachybase/plugin-password-policy": "plugin_password_policy.ts",
|
|
81
|
+
"@tachybase/plugin-demos-game-runesweeper": "plugin_prototype_game_runesweeper.ts",
|
|
82
|
+
"@tachybase/plugin-online-user": "plugin_prototype_online_user.ts",
|
|
83
|
+
"@tachybase/plugin-print-template": "plugin_prototype_print_template.ts",
|
|
84
|
+
"@tachybase/plugin-simple-cms": "plugin_prototype_simple_cms.ts",
|
|
85
|
+
"@tachybase/plugin-wechat-official-account": "plugin_prototype_wechat_official_account.ts",
|
|
86
|
+
"@tachybase/plugin-sub-accounts": "plugin_sub_accounts.ts",
|
|
87
|
+
"@tachybase/plugin-text-copy": "plugin_text_copy.ts",
|
|
88
|
+
"@tachybase/plugin-theme-editor": "plugin_theme_editor.ts",
|
|
89
|
+
"@tachybase/plugin-user-manual-feishu": "plugin_user_manual_feishu.ts",
|
|
90
|
+
"@tachybase/plugin-workflow-analysis": "plugin_workflow_analysis.ts",
|
|
91
|
+
"@tachybase/plugin-workflow-approval": "plugin_workflow_approval.ts",
|
|
92
|
+
"@tachybase/plugin-workflow-test": "plugin_workflow_test.ts"
|
|
93
|
+
}
|