@pisell/core 0.0.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/README.md +1 -0
- package/es/app/app.d.ts +101 -0
- package/es/app/app.js +177 -0
- package/es/app/const.d.ts +4 -0
- package/es/app/const.js +6 -0
- package/es/app/index.d.ts +14 -0
- package/es/app/index.js +52 -0
- package/es/applicationManager/application.d.ts +197 -0
- package/es/applicationManager/application.js +469 -0
- package/es/applicationManager/index.d.ts +19 -0
- package/es/applicationManager/index.js +206 -0
- package/es/aws/index.d.ts +16 -0
- package/es/aws/index.js +76 -0
- package/es/cmd/const.d.ts +11 -0
- package/es/cmd/const.js +13 -0
- package/es/cmd/index.d.ts +13 -0
- package/es/cmd/index.js +91 -0
- package/es/cmd/type.d.ts +5 -0
- package/es/cmd/type.js +1 -0
- package/es/communicationManager/index.d.ts +59 -0
- package/es/communicationManager/index.js +174 -0
- package/es/config.d.ts +3 -0
- package/es/config.js +14 -0
- package/es/cookie/index.d.ts +13 -0
- package/es/cookie/index.js +47 -0
- package/es/css/global.less +73 -0
- package/es/css/index.less +31 -0
- package/es/css/variables.css +84 -0
- package/es/data/index.d.ts +8 -0
- package/es/data/index.js +16 -0
- package/es/history/config.d.ts +24 -0
- package/es/history/config.js +43 -0
- package/es/history/index.d.ts +26 -0
- package/es/history/index.js +80 -0
- package/es/history/type.d.ts +2 -0
- package/es/history/type.js +1 -0
- package/es/hooks/index.d.ts +12 -0
- package/es/hooks/index.js +13 -0
- package/es/hooks/useDelayedValue/index.d.ts +2 -0
- package/es/hooks/useDelayedValue/index.js +26 -0
- package/es/hooks/useDispatch/index.d.ts +2 -0
- package/es/hooks/useDispatch/index.js +2 -0
- package/es/hooks/useLowCode/index.d.ts +13 -0
- package/es/hooks/useLowCode/index.js +74 -0
- package/es/hooks/useStore/index.d.ts +6 -0
- package/es/hooks/useStore/index.js +11 -0
- package/es/index.d.ts +8 -0
- package/es/index.js +10 -0
- package/es/indexDB/index.d.ts +296 -0
- package/es/indexDB/index.js +1619 -0
- package/es/locales/en.d.ts +3 -0
- package/es/locales/en.js +5 -0
- package/es/locales/index.d.ts +39 -0
- package/es/locales/index.js +199 -0
- package/es/locales/original.d.ts +3 -0
- package/es/locales/original.js +7 -0
- package/es/locales/type.d.ts +19 -0
- package/es/locales/type.js +1 -0
- package/es/locales/zh-CN.d.ts +3 -0
- package/es/locales/zh-CN.js +5 -0
- package/es/locales/zh-HK.d.ts +3 -0
- package/es/locales/zh-HK.js +5 -0
- package/es/logger/feishu.d.ts +11 -0
- package/es/logger/feishu.js +50 -0
- package/es/logger/index.d.ts +135 -0
- package/es/logger/index.js +870 -0
- package/es/menuManager/hooks.d.ts +17 -0
- package/es/menuManager/hooks.js +136 -0
- package/es/menuManager/index.d.ts +28 -0
- package/es/menuManager/index.js +165 -0
- package/es/models/global.d.ts +32 -0
- package/es/models/global.js +66 -0
- package/es/models/index.d.ts +45 -0
- package/es/models/index.js +65 -0
- package/es/models/type.d.ts +2 -0
- package/es/models/type.js +1 -0
- package/es/plugin/index.d.ts +0 -0
- package/es/plugin/index.js +0 -0
- package/es/pubsub/example.d.ts +5 -0
- package/es/pubsub/example.js +92 -0
- package/es/pubsub/index.d.ts +73 -0
- package/es/pubsub/index.js +166 -0
- package/es/render/index.d.ts +0 -0
- package/es/render/index.js +0 -0
- package/es/request/cache.d.ts +46 -0
- package/es/request/cache.js +372 -0
- package/es/request/cancelToken.d.ts +38 -0
- package/es/request/cancelToken.js +59 -0
- package/es/request/config.d.ts +3 -0
- package/es/request/config.js +63 -0
- package/es/request/constants.d.ts +2 -0
- package/es/request/constants.js +6 -0
- package/es/request/index.d.ts +24 -0
- package/es/request/index.js +267 -0
- package/es/request/pisell2Request.d.ts +6 -0
- package/es/request/pisell2Request.js +62 -0
- package/es/request/type.d.ts +57 -0
- package/es/request/type.js +10 -0
- package/es/request/utils.d.ts +46 -0
- package/es/request/utils.js +147 -0
- package/es/routes/config.d.ts +7 -0
- package/es/routes/config.js +17 -0
- package/es/routes/index.d.ts +28 -0
- package/es/routes/index.js +151 -0
- package/es/socket/components/SocketMonitorPage.d.ts +6 -0
- package/es/socket/components/SocketMonitorPage.js +485 -0
- package/es/socket/components/index.d.ts +2 -0
- package/es/socket/components/index.js +2 -0
- package/es/socket/constants.d.ts +33 -0
- package/es/socket/constants.js +39 -0
- package/es/socket/events.d.ts +31 -0
- package/es/socket/events.js +19 -0
- package/es/socket/heartbeat.d.ts +66 -0
- package/es/socket/heartbeat.js +184 -0
- package/es/socket/index.d.ts +61 -0
- package/es/socket/index.js +246 -0
- package/es/socket/monitor.d.ts +169 -0
- package/es/socket/monitor.js +448 -0
- package/es/socket/reconnect.d.ts +61 -0
- package/es/socket/reconnect.js +199 -0
- package/es/socket/socket.d.ts +130 -0
- package/es/socket/socket.js +613 -0
- package/es/socket/types.d.ts +85 -0
- package/es/socket/types.js +35 -0
- package/es/storage/index.d.ts +17 -0
- package/es/storage/index.js +46 -0
- package/es/tasks/index.d.ts +127 -0
- package/es/tasks/index.js +1119 -0
- package/es/tasks/scheduledTasksExample.d.ts +61 -0
- package/es/tasks/scheduledTasksExample.js +351 -0
- package/es/tasks/type.d.ts +100 -0
- package/es/tasks/type.js +1 -0
- package/es/tasks/useTasks.d.ts +5 -0
- package/es/tasks/useTasks.js +25 -0
- package/es/type.d.ts +2 -0
- package/es/type.js +1 -0
- package/es/utils/adaptiveThrottle/index.d.ts +36 -0
- package/es/utils/adaptiveThrottle/index.js +136 -0
- package/es/variables/VariablesProvider.d.ts +7 -0
- package/es/variables/VariablesProvider.js +12 -0
- package/es/variables/config.d.ts +3 -0
- package/es/variables/config.js +16 -0
- package/es/variables/index.d.ts +6 -0
- package/es/variables/index.js +5 -0
- package/es/variables/type.d.ts +2 -0
- package/es/variables/type.js +1 -0
- package/es/website/index.d.ts +6 -0
- package/es/website/index.js +65 -0
- package/lib/app/app.d.ts +101 -0
- package/lib/app/app.js +171 -0
- package/lib/app/const.d.ts +4 -0
- package/lib/app/const.js +33 -0
- package/lib/app/index.d.ts +14 -0
- package/lib/app/index.js +76 -0
- package/lib/applicationManager/application.d.ts +197 -0
- package/lib/applicationManager/application.js +280 -0
- package/lib/applicationManager/index.d.ts +19 -0
- package/lib/applicationManager/index.js +88 -0
- package/lib/aws/index.d.ts +16 -0
- package/lib/aws/index.js +67 -0
- package/lib/cmd/const.d.ts +11 -0
- package/lib/cmd/const.js +39 -0
- package/lib/cmd/index.d.ts +13 -0
- package/lib/cmd/index.js +96 -0
- package/lib/cmd/type.d.ts +5 -0
- package/lib/cmd/type.js +17 -0
- package/lib/communicationManager/index.d.ts +59 -0
- package/lib/communicationManager/index.js +102 -0
- package/lib/config.d.ts +3 -0
- package/lib/config.js +36 -0
- package/lib/cookie/index.d.ts +13 -0
- package/lib/cookie/index.js +62 -0
- package/lib/css/global.less +73 -0
- package/lib/css/index.less +31 -0
- package/lib/css/variables.css +84 -0
- package/lib/data/index.d.ts +8 -0
- package/lib/data/index.js +38 -0
- package/lib/history/config.d.ts +24 -0
- package/lib/history/config.js +41 -0
- package/lib/history/index.d.ts +26 -0
- package/lib/history/index.js +99 -0
- package/lib/history/type.d.ts +2 -0
- package/lib/history/type.js +17 -0
- package/lib/hooks/index.d.ts +12 -0
- package/lib/hooks/index.js +44 -0
- package/lib/hooks/useDelayedValue/index.d.ts +2 -0
- package/lib/hooks/useDelayedValue/index.js +36 -0
- package/lib/hooks/useDispatch/index.d.ts +2 -0
- package/lib/hooks/useDispatch/index.js +26 -0
- package/lib/hooks/useLowCode/index.d.ts +13 -0
- package/lib/hooks/useLowCode/index.js +75 -0
- package/lib/hooks/useStore/index.d.ts +6 -0
- package/lib/hooks/useStore/index.js +33 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +58 -0
- package/lib/indexDB/index.d.ts +296 -0
- package/lib/indexDB/index.js +767 -0
- package/lib/locales/en.d.ts +3 -0
- package/lib/locales/en.js +29 -0
- package/lib/locales/index.d.ts +39 -0
- package/lib/locales/index.js +159 -0
- package/lib/locales/original.d.ts +3 -0
- package/lib/locales/original.js +31 -0
- package/lib/locales/type.d.ts +19 -0
- package/lib/locales/type.js +17 -0
- package/lib/locales/zh-CN.d.ts +3 -0
- package/lib/locales/zh-CN.js +29 -0
- package/lib/locales/zh-HK.d.ts +3 -0
- package/lib/locales/zh-HK.js +29 -0
- package/lib/logger/feishu.d.ts +11 -0
- package/lib/logger/feishu.js +52 -0
- package/lib/logger/index.d.ts +135 -0
- package/lib/logger/index.js +476 -0
- package/lib/menuManager/hooks.d.ts +17 -0
- package/lib/menuManager/hooks.js +135 -0
- package/lib/menuManager/index.d.ts +28 -0
- package/lib/menuManager/index.js +125 -0
- package/lib/models/global.d.ts +32 -0
- package/lib/models/global.js +62 -0
- package/lib/models/index.d.ts +45 -0
- package/lib/models/index.js +69 -0
- package/lib/models/type.d.ts +2 -0
- package/lib/models/type.js +17 -0
- package/lib/plugin/index.d.ts +0 -0
- package/lib/plugin/index.js +0 -0
- package/lib/pubsub/example.d.ts +5 -0
- package/lib/pubsub/example.js +61 -0
- package/lib/pubsub/index.d.ts +73 -0
- package/lib/pubsub/index.js +141 -0
- package/lib/render/index.d.ts +0 -0
- package/lib/render/index.js +0 -0
- package/lib/request/cache.d.ts +46 -0
- package/lib/request/cache.js +195 -0
- package/lib/request/cancelToken.d.ts +38 -0
- package/lib/request/cancelToken.js +59 -0
- package/lib/request/config.d.ts +3 -0
- package/lib/request/config.js +69 -0
- package/lib/request/constants.d.ts +2 -0
- package/lib/request/constants.js +34 -0
- package/lib/request/index.d.ts +24 -0
- package/lib/request/index.js +210 -0
- package/lib/request/pisell2Request.d.ts +6 -0
- package/lib/request/pisell2Request.js +75 -0
- package/lib/request/type.d.ts +57 -0
- package/lib/request/type.js +36 -0
- package/lib/request/utils.d.ts +46 -0
- package/lib/request/utils.js +113 -0
- package/lib/routes/config.d.ts +7 -0
- package/lib/routes/config.js +50 -0
- package/lib/routes/index.d.ts +28 -0
- package/lib/routes/index.js +121 -0
- package/lib/socket/components/SocketMonitorPage.d.ts +6 -0
- package/lib/socket/components/SocketMonitorPage.js +340 -0
- package/lib/socket/components/index.d.ts +2 -0
- package/lib/socket/components/index.js +39 -0
- package/lib/socket/constants.d.ts +33 -0
- package/lib/socket/constants.js +62 -0
- package/lib/socket/events.d.ts +31 -0
- package/lib/socket/events.js +44 -0
- package/lib/socket/heartbeat.d.ts +66 -0
- package/lib/socket/heartbeat.js +157 -0
- package/lib/socket/index.d.ts +61 -0
- package/lib/socket/index.js +198 -0
- package/lib/socket/monitor.d.ts +169 -0
- package/lib/socket/monitor.js +350 -0
- package/lib/socket/reconnect.d.ts +61 -0
- package/lib/socket/reconnect.js +157 -0
- package/lib/socket/socket.d.ts +130 -0
- package/lib/socket/socket.js +426 -0
- package/lib/socket/types.d.ts +85 -0
- package/lib/socket/types.js +36 -0
- package/lib/storage/index.d.ts +17 -0
- package/lib/storage/index.js +64 -0
- package/lib/tasks/index.d.ts +127 -0
- package/lib/tasks/index.js +710 -0
- package/lib/tasks/scheduledTasksExample.d.ts +61 -0
- package/lib/tasks/scheduledTasksExample.js +267 -0
- package/lib/tasks/type.d.ts +100 -0
- package/lib/tasks/type.js +17 -0
- package/lib/tasks/useTasks.d.ts +5 -0
- package/lib/tasks/useTasks.js +37 -0
- package/lib/type.d.ts +2 -0
- package/lib/type.js +17 -0
- package/lib/utils/adaptiveThrottle/index.d.ts +36 -0
- package/lib/utils/adaptiveThrottle/index.js +121 -0
- package/lib/variables/VariablesProvider.d.ts +7 -0
- package/lib/variables/VariablesProvider.js +51 -0
- package/lib/variables/config.d.ts +3 -0
- package/lib/variables/config.js +38 -0
- package/lib/variables/index.d.ts +6 -0
- package/lib/variables/index.js +29 -0
- package/lib/variables/type.d.ts +2 -0
- package/lib/variables/type.js +17 -0
- package/lib/website/index.d.ts +6 -0
- package/lib/website/index.js +75 -0
- package/package.json +49 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* For information on how to create your own theme, please see:
|
|
2
|
+
http://ionicframework.com/docs/theming/ */
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--ion-platform: ios;
|
|
6
|
+
--ion-color-primary: #5D3F9F;
|
|
7
|
+
--ion-color-primary-rgb: 93,63,159;
|
|
8
|
+
--ion-color-primary-contrast: #ffffff;
|
|
9
|
+
--ion-color-primary-contrast-rgb: 255,255,255;
|
|
10
|
+
--ion-color-primary-shade: #52378c;
|
|
11
|
+
--ion-color-primary-tint: #6d52a9;
|
|
12
|
+
|
|
13
|
+
--ion-color-secondary: #7f56da;
|
|
14
|
+
--ion-color-secondary-rgb: 127,86,218;
|
|
15
|
+
--ion-color-secondary-contrast: #ffffff;
|
|
16
|
+
--ion-color-secondary-contrast-rgb: 255,255,255;
|
|
17
|
+
--ion-color-secondary-shade: #704cc0;
|
|
18
|
+
--ion-color-secondary-tint: #8c67de;
|
|
19
|
+
|
|
20
|
+
--ion-color-tertiary: #eee5ff;
|
|
21
|
+
--ion-color-tertiary-rgb: 238,229,255;
|
|
22
|
+
--ion-color-tertiary-contrast: #000000;
|
|
23
|
+
--ion-color-tertiary-contrast-rgb: 0,0,0;
|
|
24
|
+
--ion-color-tertiary-shade: #d1cae0;
|
|
25
|
+
--ion-color-tertiary-tint: #f0e8ff;
|
|
26
|
+
|
|
27
|
+
/** success **/
|
|
28
|
+
--ion-color-success: #2dd36f;
|
|
29
|
+
--ion-color-success-rgb: 45, 211, 111;
|
|
30
|
+
--ion-color-success-contrast: #ffffff;
|
|
31
|
+
--ion-color-success-contrast-rgb: 255, 255, 255;
|
|
32
|
+
--ion-color-success-shade: #28ba62;
|
|
33
|
+
--ion-color-success-tint: #42d77d;
|
|
34
|
+
|
|
35
|
+
/** warning **/
|
|
36
|
+
--ion-color-warning: #ffc409;
|
|
37
|
+
--ion-color-warning-rgb: 255, 196, 9;
|
|
38
|
+
--ion-color-warning-contrast: #000000;
|
|
39
|
+
--ion-color-warning-contrast-rgb: 0, 0, 0;
|
|
40
|
+
--ion-color-warning-shade: #e0ac08;
|
|
41
|
+
--ion-color-warning-tint: #ffca22;
|
|
42
|
+
|
|
43
|
+
/** danger **/
|
|
44
|
+
--ion-color-danger: #eb445a;
|
|
45
|
+
--ion-color-danger-rgb: 235, 68, 90;
|
|
46
|
+
--ion-color-danger-contrast: #ffffff;
|
|
47
|
+
--ion-color-danger-contrast-rgb: 255, 255, 255;
|
|
48
|
+
--ion-color-danger-shade: #cf3c4f;
|
|
49
|
+
--ion-color-danger-tint: #ed576b;
|
|
50
|
+
|
|
51
|
+
/** dark **/
|
|
52
|
+
--ion-color-dark: #222428;
|
|
53
|
+
--ion-color-dark-rgb: 34, 36, 40;
|
|
54
|
+
--ion-color-dark-contrast: #ffffff;
|
|
55
|
+
--ion-color-dark-contrast-rgb: 255, 255, 255;
|
|
56
|
+
--ion-color-dark-shade: #1e2023;
|
|
57
|
+
--ion-color-dark-tint: #383a3e;
|
|
58
|
+
|
|
59
|
+
/** medium **/
|
|
60
|
+
--ion-color-medium: #92949c;
|
|
61
|
+
--ion-color-medium-rgb: 146, 148, 156;
|
|
62
|
+
--ion-color-medium-contrast: #ffffff;
|
|
63
|
+
--ion-color-medium-contrast-rgb: 255, 255, 255;
|
|
64
|
+
--ion-color-medium-shade: #808289;
|
|
65
|
+
--ion-color-medium-tint: #9d9fa6;
|
|
66
|
+
|
|
67
|
+
/** light **/
|
|
68
|
+
--ion-color-light: #f4f5f8;
|
|
69
|
+
--ion-color-light-rgb: 244, 245, 248;
|
|
70
|
+
--ion-color-light-contrast: #000000;
|
|
71
|
+
--ion-color-light-contrast-rgb: 0, 0, 0;
|
|
72
|
+
--ion-color-light-shade: #d7d8da;
|
|
73
|
+
--ion-color-light-tint: #f5f6f9;
|
|
74
|
+
|
|
75
|
+
--ion-toolbar-background: #ffffff;
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
--theme-color: var(--ion-color-primary);
|
|
79
|
+
|
|
80
|
+
--ion-text-color: var(--ion-color-dark);
|
|
81
|
+
|
|
82
|
+
--theme-a-color: #7F56DA;
|
|
83
|
+
|
|
84
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/data/index.ts
|
|
20
|
+
var data_exports = {};
|
|
21
|
+
__export(data_exports, {
|
|
22
|
+
Data: () => Data
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(data_exports);
|
|
25
|
+
var Data = class {
|
|
26
|
+
app;
|
|
27
|
+
storage;
|
|
28
|
+
store;
|
|
29
|
+
constructor(app) {
|
|
30
|
+
this.app = app;
|
|
31
|
+
this.storage = app.storage;
|
|
32
|
+
this.store = app.models;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
Data
|
|
38
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HistoryConfig } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* @title: 默认配置
|
|
4
|
+
* @description:
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: zhiwei.Wang
|
|
7
|
+
*/
|
|
8
|
+
export declare const defaultConfig: HistoryConfig;
|
|
9
|
+
/**
|
|
10
|
+
* @title: 设置配置
|
|
11
|
+
* @description:
|
|
12
|
+
* @param {Partial} newConfig
|
|
13
|
+
* @return {*}
|
|
14
|
+
* @Author: zhiwei.Wang
|
|
15
|
+
*/
|
|
16
|
+
export declare const setConfig: (newConfig: Partial<HistoryConfig>) => HistoryConfig;
|
|
17
|
+
/**
|
|
18
|
+
* @title: 获取配置
|
|
19
|
+
* @description:
|
|
20
|
+
* @param {*} HistoryConfig
|
|
21
|
+
* @return {*}
|
|
22
|
+
* @Author: zhiwei.Wang
|
|
23
|
+
*/
|
|
24
|
+
export declare const getConfig: () => HistoryConfig;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/history/config.ts
|
|
20
|
+
var config_exports = {};
|
|
21
|
+
__export(config_exports, {
|
|
22
|
+
defaultConfig: () => defaultConfig,
|
|
23
|
+
getConfig: () => getConfig,
|
|
24
|
+
setConfig: () => setConfig
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(config_exports);
|
|
27
|
+
var defaultConfig = {};
|
|
28
|
+
var config = {
|
|
29
|
+
...defaultConfig
|
|
30
|
+
};
|
|
31
|
+
var setConfig = (newConfig) => {
|
|
32
|
+
config = { ...config, ...newConfig };
|
|
33
|
+
return config;
|
|
34
|
+
};
|
|
35
|
+
var getConfig = () => config;
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
defaultConfig,
|
|
39
|
+
getConfig,
|
|
40
|
+
setConfig
|
|
41
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LocationDescriptor } from "history";
|
|
2
|
+
import type { History as HistoryType } from "history";
|
|
3
|
+
import { useHistory, useLocation, useParams } from "react-router-dom";
|
|
4
|
+
import App from "../app";
|
|
5
|
+
export interface HistoryOptions {
|
|
6
|
+
basename?: string;
|
|
7
|
+
interceptor?: (path: LocationDescriptor<unknown>, state: any, next: () => void) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare class History {
|
|
10
|
+
instance: HistoryType<unknown>;
|
|
11
|
+
useHistory: typeof useHistory;
|
|
12
|
+
useLocation: typeof useLocation;
|
|
13
|
+
useParams: typeof useParams;
|
|
14
|
+
app: App;
|
|
15
|
+
interceptor?: (path: LocationDescriptor<unknown>, state: unknown, next: () => void) => void;
|
|
16
|
+
constructor(app: App, options?: HistoryOptions);
|
|
17
|
+
push: HistoryType["push"];
|
|
18
|
+
replace: HistoryType["replace"];
|
|
19
|
+
reload: () => void;
|
|
20
|
+
reloadTo: (path: string) => void;
|
|
21
|
+
externalPage: (path: string) => void;
|
|
22
|
+
goLogin: () => any;
|
|
23
|
+
getQuery: () => {
|
|
24
|
+
[k: string]: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/history/index.ts
|
|
20
|
+
var history_exports = {};
|
|
21
|
+
__export(history_exports, {
|
|
22
|
+
History: () => History
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(history_exports);
|
|
25
|
+
var import_history = require("history");
|
|
26
|
+
var import_react_router_dom = require("react-router-dom");
|
|
27
|
+
var History = class {
|
|
28
|
+
instance;
|
|
29
|
+
useHistory = import_react_router_dom.useHistory;
|
|
30
|
+
useLocation = import_react_router_dom.useLocation;
|
|
31
|
+
useParams = import_react_router_dom.useParams;
|
|
32
|
+
app;
|
|
33
|
+
interceptor;
|
|
34
|
+
constructor(app, options) {
|
|
35
|
+
this.app = app;
|
|
36
|
+
this.instance = (0, import_history.createBrowserHistory)({ basename: (options == null ? void 0 : options.basename) || "/" });
|
|
37
|
+
this.interceptor = options == null ? void 0 : options.interceptor;
|
|
38
|
+
}
|
|
39
|
+
push = (path, state) => {
|
|
40
|
+
if (this.interceptor) {
|
|
41
|
+
return this.interceptor(path, state, () => {
|
|
42
|
+
this.instance.push(path, state);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
this.instance.push(path, state);
|
|
46
|
+
};
|
|
47
|
+
replace = (path, state) => {
|
|
48
|
+
if (this.interceptor) {
|
|
49
|
+
return this.interceptor(path, state, () => {
|
|
50
|
+
this.instance.replace(path, state);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
this.instance.replace(path, state);
|
|
54
|
+
};
|
|
55
|
+
reload = () => {
|
|
56
|
+
window.location.reload();
|
|
57
|
+
};
|
|
58
|
+
reloadTo = (path) => {
|
|
59
|
+
if (this.interceptor) {
|
|
60
|
+
return this.interceptor(path, {}, () => {
|
|
61
|
+
window.location.href = path;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
window.location.href = path;
|
|
65
|
+
};
|
|
66
|
+
externalPage = (path) => {
|
|
67
|
+
if (this.interceptor) {
|
|
68
|
+
return this.interceptor(path, {}, () => {
|
|
69
|
+
window.open(path);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
window.open(path);
|
|
73
|
+
};
|
|
74
|
+
goLogin = () => {
|
|
75
|
+
var _a, _b;
|
|
76
|
+
return (_b = (_a = this.app.applicationManager.get("login")) == null ? void 0 : _a.runFunction) == null ? void 0 : _b.call(_a, "goLogin");
|
|
77
|
+
};
|
|
78
|
+
getQuery = () => {
|
|
79
|
+
try {
|
|
80
|
+
const search = this.instance.location.search;
|
|
81
|
+
const params = new URLSearchParams(search);
|
|
82
|
+
const obj = Object.fromEntries(params.entries());
|
|
83
|
+
return obj;
|
|
84
|
+
} catch (err) {
|
|
85
|
+
this.app.logger.addLog({
|
|
86
|
+
type: "error",
|
|
87
|
+
title: "获取query参数失败",
|
|
88
|
+
metadata: {
|
|
89
|
+
data: err
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
return {};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
97
|
+
0 && (module.exports = {
|
|
98
|
+
History
|
|
99
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/history/type.ts
|
|
16
|
+
var type_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(type_exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import useLowCode from './useLowCode';
|
|
2
|
+
import useDelayedValue from './useDelayedValue';
|
|
3
|
+
import useStore from './useStore';
|
|
4
|
+
import useDispatch from './useDispatch';
|
|
5
|
+
export interface HooksExport {
|
|
6
|
+
useLowCode: typeof useLowCode;
|
|
7
|
+
useDelayedValue: typeof useDelayedValue;
|
|
8
|
+
useStore: typeof useStore;
|
|
9
|
+
useDispatch: typeof useDispatch;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: HooksExport;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/hooks/index.ts
|
|
30
|
+
var hooks_exports = {};
|
|
31
|
+
__export(hooks_exports, {
|
|
32
|
+
default: () => hooks_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(hooks_exports);
|
|
35
|
+
var import_useLowCode = __toESM(require("./useLowCode"));
|
|
36
|
+
var import_useDelayedValue = __toESM(require("./useDelayedValue"));
|
|
37
|
+
var import_useStore = __toESM(require("./useStore"));
|
|
38
|
+
var import_useDispatch = __toESM(require("./useDispatch"));
|
|
39
|
+
var hooks_default = {
|
|
40
|
+
useLowCode: import_useLowCode.default,
|
|
41
|
+
useDelayedValue: import_useDelayedValue.default,
|
|
42
|
+
useStore: import_useStore.default,
|
|
43
|
+
useDispatch: import_useDispatch.default
|
|
44
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/hooks/useDelayedValue/index.ts
|
|
20
|
+
var useDelayedValue_exports = {};
|
|
21
|
+
__export(useDelayedValue_exports, {
|
|
22
|
+
default: () => useDelayedValue_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(useDelayedValue_exports);
|
|
25
|
+
var import_react = require("react");
|
|
26
|
+
function useDelayedValue(value, timeout = 200) {
|
|
27
|
+
const [delayedValue, setDelayedValue] = (0, import_react.useState)(value);
|
|
28
|
+
(0, import_react.useEffect)(() => {
|
|
29
|
+
const timer = setTimeout(() => {
|
|
30
|
+
setDelayedValue(value);
|
|
31
|
+
}, timeout);
|
|
32
|
+
return () => clearTimeout(timer);
|
|
33
|
+
}, [value, timeout]);
|
|
34
|
+
return delayedValue;
|
|
35
|
+
}
|
|
36
|
+
var useDelayedValue_default = useDelayedValue;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/hooks/useDispatch/index.ts
|
|
20
|
+
var useDispatch_exports = {};
|
|
21
|
+
__export(useDispatch_exports, {
|
|
22
|
+
default: () => useDispatch_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(useDispatch_exports);
|
|
25
|
+
var import_react_redux = require("react-redux");
|
|
26
|
+
var useDispatch_default = import_react_redux.useDispatch;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface useLowCodeProps {
|
|
2
|
+
onChange: (e: any) => void;
|
|
3
|
+
onReady: (e: any) => void;
|
|
4
|
+
}
|
|
5
|
+
export interface useLowCodeResult {
|
|
6
|
+
lowcodeRef: {
|
|
7
|
+
onReady: (e: any) => void;
|
|
8
|
+
onChange: (e: any) => void;
|
|
9
|
+
};
|
|
10
|
+
setState: (values: any, callback?: any) => any;
|
|
11
|
+
}
|
|
12
|
+
declare const useLowCode: (props: Partial<useLowCodeProps>) => useLowCodeResult;
|
|
13
|
+
export default useLowCode;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/hooks/useLowCode/index.tsx
|
|
20
|
+
var useLowCode_exports = {};
|
|
21
|
+
__export(useLowCode_exports, {
|
|
22
|
+
default: () => useLowCode_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(useLowCode_exports);
|
|
25
|
+
var import_react = require("react");
|
|
26
|
+
var useLowCode = (props) => {
|
|
27
|
+
const { onChange, onReady } = props;
|
|
28
|
+
const lowcodeRef = (0, import_react.useRef)(null);
|
|
29
|
+
const cacheState = (0, import_react.useRef)(null);
|
|
30
|
+
const _onReady = (e) => {
|
|
31
|
+
try {
|
|
32
|
+
lowcodeRef.current = e;
|
|
33
|
+
const val = onReady && onReady(e);
|
|
34
|
+
if (cacheState.current) {
|
|
35
|
+
_setState(cacheState.current.values, cacheState.current.callback);
|
|
36
|
+
cacheState.current = null;
|
|
37
|
+
}
|
|
38
|
+
return val;
|
|
39
|
+
} catch (err) {
|
|
40
|
+
console.error(err);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const _onChange = (e) => {
|
|
44
|
+
onChange && onChange(e);
|
|
45
|
+
};
|
|
46
|
+
const _setState = (values, callback) => {
|
|
47
|
+
try {
|
|
48
|
+
if (lowcodeRef.current) {
|
|
49
|
+
lowcodeRef.current.setState(values, callback);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (cacheState.current) {
|
|
53
|
+
cacheState.current = {
|
|
54
|
+
values: {
|
|
55
|
+
...cacheState.current.values,
|
|
56
|
+
...values
|
|
57
|
+
},
|
|
58
|
+
callback
|
|
59
|
+
};
|
|
60
|
+
} else {
|
|
61
|
+
cacheState.current = { values, callback };
|
|
62
|
+
}
|
|
63
|
+
} catch (err) {
|
|
64
|
+
console.error(err);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
return {
|
|
68
|
+
lowcodeRef: {
|
|
69
|
+
onReady: _onReady,
|
|
70
|
+
onChange: _onChange
|
|
71
|
+
},
|
|
72
|
+
setState: _setState
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
var useLowCode_default = useLowCode;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/hooks/useStore/index.ts
|
|
20
|
+
var useStore_exports = {};
|
|
21
|
+
__export(useStore_exports, {
|
|
22
|
+
default: () => useStore_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(useStore_exports);
|
|
25
|
+
var import_react_redux = require("react-redux");
|
|
26
|
+
var useStore = (props) => {
|
|
27
|
+
const models = (0, import_react_redux.useSelector)((state) => state[props.models]);
|
|
28
|
+
if (props.key !== void 0) {
|
|
29
|
+
return models == null ? void 0 : models[props.key];
|
|
30
|
+
}
|
|
31
|
+
return models;
|
|
32
|
+
};
|
|
33
|
+
var useStore_default = useStore;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as request } from './request';
|
|
2
|
+
export { default as hooks } from './hooks';
|
|
3
|
+
export { default as models } from './models';
|
|
4
|
+
export { default as pubsub } from './pubsub';
|
|
5
|
+
export { default as socket } from './socket';
|
|
6
|
+
export * from './applicationManager';
|
|
7
|
+
export * from './app';
|
|
8
|
+
export * from './communicationManager';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var src_exports = {};
|
|
32
|
+
__export(src_exports, {
|
|
33
|
+
hooks: () => import_hooks.default,
|
|
34
|
+
models: () => import_models.default,
|
|
35
|
+
pubsub: () => import_pubsub.default,
|
|
36
|
+
request: () => import_request.default,
|
|
37
|
+
socket: () => import_socket.default
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(src_exports);
|
|
40
|
+
var import_request = __toESM(require("./request"));
|
|
41
|
+
var import_hooks = __toESM(require("./hooks"));
|
|
42
|
+
var import_models = __toESM(require("./models"));
|
|
43
|
+
var import_pubsub = __toESM(require("./pubsub"));
|
|
44
|
+
var import_socket = __toESM(require("./socket"));
|
|
45
|
+
__reExport(src_exports, require("./applicationManager"), module.exports);
|
|
46
|
+
__reExport(src_exports, require("./app"), module.exports);
|
|
47
|
+
__reExport(src_exports, require("./communicationManager"), module.exports);
|
|
48
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
+
0 && (module.exports = {
|
|
50
|
+
hooks,
|
|
51
|
+
models,
|
|
52
|
+
pubsub,
|
|
53
|
+
request,
|
|
54
|
+
socket,
|
|
55
|
+
...require("./applicationManager"),
|
|
56
|
+
...require("./app"),
|
|
57
|
+
...require("./communicationManager")
|
|
58
|
+
});
|