@gct-paas/core 0.1.4-dev.11 → 0.1.4-dev.13
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/dist/index.esm.min.js +4522 -0
- package/es/constants/core.mjs +5 -4
- package/es/constants/default-date-type/default-date-type.mjs +73 -21
- package/es/constants/editor-register/editor-register.mjs +17 -5
- package/es/constants/expression-type/BuiltOperators.mjs +152 -147
- package/es/constants/expression-type/FunctionKeys.mjs +75 -79
- package/es/constants/expression-type/editor.mjs +10 -3
- package/es/constants/expression-type/function.mjs +602 -613
- package/es/constants/expression-type/index.mjs +111 -113
- package/es/constants/expression-type/modeCfg.mjs +256 -263
- package/es/constants/expression-type/variable.mjs +43 -39
- package/es/constants/form-container-type/form-container-type.mjs +17 -5
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +31 -10
- package/es/constants/page-designer/model.mjs +15 -5
- package/es/constants/page-designer/regex.d.ts +2 -0
- package/es/constants/page-designer/regex.mjs +5 -0
- package/es/create-app-vue.mjs +15 -9
- package/es/enums/app-designer/index.d.ts +19 -0
- package/es/enums/app-designer/index.mjs +131 -63
- package/es/enums/appEnum.mjs +681 -360
- package/es/enums/appStateEnum.mjs +17 -10
- package/es/enums/authActionEnum.mjs +63 -51
- package/es/enums/breakpointEnum.mjs +27 -26
- package/es/enums/cacheEnum.mjs +22 -21
- package/es/enums/designEnum.mjs +110 -71
- package/es/enums/developer-center/integration.mjs +7 -6
- package/es/enums/exceptionEnum.mjs +21 -17
- package/es/enums/expressionEnum.d.ts +1 -1
- package/es/enums/expressionEnum.mjs +81 -74
- package/es/enums/globalEnum.mjs +59 -36
- package/es/enums/httpEnum.mjs +71 -61
- package/es/enums/index.mjs +44 -14
- package/es/enums/menuEnum.mjs +42 -38
- package/es/enums/page-designer/designer.mjs +403 -407
- package/es/enums/page-designer/index.d.ts +1 -0
- package/es/enums/page-designer/index.mjs +5 -0
- package/es/enums/page-designer/layout.d.ts +12 -0
- package/es/enums/page-designer/layout.mjs +17 -0
- package/es/enums/page-designer/panel.mjs +341 -213
- package/es/enums/page-designer/toolkit.mjs +13 -12
- package/es/enums/page-designer/widget.mjs +425 -338
- package/es/enums/pageEnum.mjs +14 -13
- package/es/enums/plugin-enum.mjs +23 -7
- package/es/enums/processEnum.mjs +95 -60
- package/es/enums/roleEnum.mjs +7 -6
- package/es/enums/sizeEnum.d.ts +18 -0
- package/es/enums/sizeEnum.mjs +28 -8
- package/es/global/gct/gct.mjs +84 -96
- package/es/global/index.mjs +1 -0
- package/es/hooks/index.mjs +4 -0
- package/es/hooks/use-app-inst/use-app-inst.mjs +11 -5
- package/es/hooks/use-modal/use-modal.mjs +16 -10
- package/es/hooks/use-sub-app-utils/use-sub-app-utils.mjs +43 -23
- package/es/hooks/useCopyToClipboard.mjs +50 -50
- package/es/index.mjs +125 -114
- package/es/interface/i-pinia-state/i-global-state.d.ts +0 -11
- package/es/locale/index.mjs +50 -57
- package/es/modules/env-manager/env-manager.const.mjs +16 -8
- package/es/modules/env-manager/env-manager.d.ts +2 -0
- package/es/modules/env-manager/env-manager.interface.d.ts +2 -0
- package/es/modules/env-manager/env-manager.interface.mjs +14 -7
- package/es/modules/env-manager/env-manager.mjs +108 -107
- package/es/modules/error-handler/error-handler.const.mjs +11 -16
- package/es/modules/error-handler/error-strategy.mjs +199 -175
- package/es/modules/error-handler/index.mjs +120 -106
- package/es/modules/mqtt/constants/mqtt.const.mjs +21 -24
- package/es/modules/mqtt/enums/mqtt-status.enum.mjs +23 -9
- package/es/modules/mqtt/index.mjs +4 -0
- package/es/modules/mqtt/mqtt-client.mjs +228 -261
- package/es/modules/mqtt/mqtt-manager.mjs +117 -77
- package/es/modules/platform-config/constants/index.mjs +4 -0
- package/es/modules/platform-config/constants/login.const.mjs +48 -45
- package/es/modules/platform-config/constants/org.const.mjs +57 -52
- package/es/modules/platform-config/constants/theme.const.mjs +11 -4
- package/es/modules/platform-config/constants/watermark.const.mjs +17 -12
- package/es/modules/platform-config/enums/deploy.enum.mjs +13 -6
- package/es/modules/platform-config/enums/login.enum.mjs +29 -15
- package/es/modules/platform-config/enums/platform.enum.mjs +16 -13
- package/es/modules/platform-config/index.mjs +9 -0
- package/es/modules/platform-config/store.mjs +68 -79
- package/es/modules/platform-config/useBasicSetting.mjs +47 -35
- package/es/modules/platform-config/useDeploySetting.mjs +29 -21
- package/es/modules/platform-config/useLoginSetting.mjs +151 -173
- package/es/modules/platform-config/useOrgSetting.mjs +63 -62
- package/es/modules/platform-config/useProjectSetting.mjs +14 -6
- package/es/modules/platform-config/useSecuritySetting.mjs +68 -56
- package/es/modules/platform-config/useThemeSetting.mjs +78 -59
- package/es/modules/platform-config/useWatermarkSetting.mjs +37 -23
- package/es/modules/user-stores/index.mjs +3 -0
- package/es/modules/user-stores/store/permission.store.mjs +27 -36
- package/es/modules/user-stores/store/tenant.store.mjs +20 -22
- package/es/modules/user-stores/store/user.store.mjs +94 -117
- package/es/router/index.mjs +25 -28
- package/es/setup-app.mjs +23 -39
- package/es/state/global-pinia-state/global-pinia-state.d.ts +0 -6
- package/es/state/global-pinia-state/global-pinia-state.mjs +43 -71
- package/es/state/index.mjs +1 -0
- package/es/store/global-store.mjs +50 -72
- package/es/store/index.mjs +25 -19
- package/es/types/index.d.ts +7 -0
- package/es/utils/axios/interceptors.mjs +21 -17
- package/es/utils/cache-adapter/cache-adapter.mjs +61 -56
- package/es/utils/css-loader/css-loader.d.ts +36 -0
- package/es/utils/css-loader/css-loader.mjs +82 -0
- package/es/utils/design/design.mjs +18 -12
- package/es/utils/deviceFingerprint.mjs +77 -63
- package/es/utils/dictionary/dictionary.mjs +142 -145
- package/es/utils/file/base64Conver.mjs +35 -30
- package/es/utils/file/download.mjs +94 -98
- package/es/utils/file/parser.d.ts +3 -0
- package/es/utils/file/parser.mjs +29 -0
- package/es/utils/i18n/index.mjs +14 -3
- package/es/utils/index.d.ts +3 -1
- package/es/utils/index.mjs +32 -0
- package/es/utils/is-sort-filed/is-sort-filed.mjs +42 -37
- package/es/utils/linked-list/linked-list.mjs +115 -118
- package/es/utils/linked-node/linked-node.mjs +41 -31
- package/es/utils/lowcode/utils.mjs +13 -18
- package/es/utils/lowcode/validate.mjs +20 -26
- package/es/utils/mitt/mitt.mjs +4 -4
- package/es/utils/model-loader/model-loader.mjs +280 -325
- package/es/utils/namespace/namespace.mjs +178 -164
- package/es/utils/openUtil/index.mjs +2 -0
- package/es/utils/openUtil/modal/modal.mjs +72 -79
- package/es/utils/openUtil/overlay-container/overlay-container.mjs +144 -138
- package/es/utils/permission.mjs +33 -37
- package/es/utils/plugin-static-resource/plugin-static-resource.mjs +46 -42
- package/es/utils/style/index.mjs +94 -138
- package/es/utils/tools/tools.mjs +86 -54
- package/es/utils/treeHelper/treeHelper.mjs +205 -233
- package/es/utils/uploader/uploader.mjs +81 -115
- package/es/utils/useUUid.mjs +79 -87
- package/es/utils/util.mjs +55 -35
- package/es/utils/uuid/uuid.d.ts +2 -0
- package/es/utils/uuid/uuid.mjs +33 -43
- package/es/utils/validate.mjs +15 -19
- package/es/utils/value-helper/value-helper.mjs +113 -98
- package/package.json +9 -18
- package/dist/index.esm.min.mjs +0 -18322
- package/dist/index.min.cjs +0 -393
- package/dist/index.system.min.js +0 -393
|
@@ -1,78 +1,118 @@
|
|
|
1
|
-
import { MqttClient } from
|
|
2
|
-
import { createUUID } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
1
|
+
import { MqttClient } from "./mqtt-client.mjs";
|
|
2
|
+
import { createUUID } from "qx-util";
|
|
3
|
+
//#region src/modules/mqtt/mqtt-manager.ts
|
|
4
|
+
/**
|
|
5
|
+
* MQTT 实例管理中心
|
|
6
|
+
*
|
|
7
|
+
* @description 管理多个 MQTT 客户端实例的生命周期,提供创建、获取、销毁等操作。
|
|
8
|
+
* 该类通常作为全局单例挂载在 window._gct.mqtt 上,供各业务模块共享使用。
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* // 获取全局管理器
|
|
13
|
+
* const manager = window._gct.mqtt;
|
|
14
|
+
*
|
|
15
|
+
* // 创建一个 MQTT 客户端实例
|
|
16
|
+
* const client = manager.create('device-001', {
|
|
17
|
+
* brokerUrl: 'ws://localhost:8083/mqtt',
|
|
18
|
+
* username: 'admin',
|
|
19
|
+
* password: 'password',
|
|
20
|
+
* });
|
|
21
|
+
*
|
|
22
|
+
* // 连接
|
|
23
|
+
* client.connect();
|
|
24
|
+
*
|
|
25
|
+
* // 订阅
|
|
26
|
+
* const unsubscribe = client.subscribe('sensor/+/temperature', (topic, payload) => {
|
|
27
|
+
* console.log(topic, payload.toString());
|
|
28
|
+
* });
|
|
29
|
+
*
|
|
30
|
+
* // 发布
|
|
31
|
+
* await client.publish('sensor/001/cmd', 'on');
|
|
32
|
+
*
|
|
33
|
+
* // 取消订阅
|
|
34
|
+
* unsubscribe();
|
|
35
|
+
*
|
|
36
|
+
* // 销毁实例
|
|
37
|
+
* manager.destroy('device-001');
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @class MqttManager
|
|
42
|
+
* @implements {IMqttManager}
|
|
43
|
+
*/
|
|
44
|
+
var MqttManager = class {
|
|
45
|
+
/**
|
|
46
|
+
* 管理器唯一标识
|
|
47
|
+
*
|
|
48
|
+
* @private
|
|
49
|
+
*/
|
|
50
|
+
uuid = createUUID();
|
|
51
|
+
/** 已注册的 MQTT 客户端实例注册表,key 为 instanceId */
|
|
52
|
+
_clients = /* @__PURE__ */ new Map();
|
|
53
|
+
/**
|
|
54
|
+
* 创建并注册一个新的 MQTT 客户端实例
|
|
55
|
+
*
|
|
56
|
+
* @param instanceId 实例唯一标识,全局唯一
|
|
57
|
+
* @param options MQTT 连接选项
|
|
58
|
+
* @returns 创建的 MqttClient 实例
|
|
59
|
+
* @throws 若 instanceId 已存在则抛出错误
|
|
60
|
+
*/
|
|
61
|
+
create(instanceId, options) {
|
|
62
|
+
if (this._clients.has(instanceId)) {
|
|
63
|
+
console.warn(`MqttManager: 实例 ${instanceId} 已存在,返回已注册的实例`);
|
|
64
|
+
return this._clients.get(instanceId);
|
|
65
|
+
}
|
|
66
|
+
const client = new MqttClient(instanceId, `ws://${location.host}/mqtt`, {
|
|
67
|
+
clientId: `gct_mqtt_${_gct.store.userInfo.userId}_${instanceId}_${this.uuid}`,
|
|
68
|
+
...options
|
|
69
|
+
});
|
|
70
|
+
client.connect();
|
|
71
|
+
this._clients.set(instanceId, client);
|
|
72
|
+
return client;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* 获取已注册的 MQTT 客户端实例
|
|
76
|
+
*
|
|
77
|
+
* @param instanceId 实例唯一标识
|
|
78
|
+
* @returns 客户端实例,若不存在则返回 undefined
|
|
79
|
+
*/
|
|
80
|
+
get(instanceId) {
|
|
81
|
+
return this._clients.get(instanceId);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* 判断指定实例是否已存在
|
|
85
|
+
*
|
|
86
|
+
* @param instanceId 实例唯一标识
|
|
87
|
+
* @returns 是否存在
|
|
88
|
+
*/
|
|
89
|
+
has(instanceId) {
|
|
90
|
+
return this._clients.has(instanceId);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* 销毁指定的 MQTT 客户端实例
|
|
94
|
+
*
|
|
95
|
+
* @description 会先断开连接,再从管理器中移除
|
|
96
|
+
* @param instanceId 实例唯一标识
|
|
97
|
+
*/
|
|
98
|
+
destroy(instanceId) {
|
|
99
|
+
const client = this._clients.get(instanceId);
|
|
100
|
+
if (client) {
|
|
101
|
+
client.disconnect();
|
|
102
|
+
this._clients.delete(instanceId);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* 销毁全部 MQTT 客户端实例
|
|
107
|
+
*
|
|
108
|
+
* @description 依次断开所有连接并清空注册表
|
|
109
|
+
*/
|
|
110
|
+
destroyAll() {
|
|
111
|
+
this._clients.forEach((client) => {
|
|
112
|
+
client.disconnect();
|
|
113
|
+
});
|
|
114
|
+
this._clients.clear();
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
//#endregion
|
|
78
118
|
export { MqttManager };
|
|
@@ -1,50 +1,53 @@
|
|
|
1
|
-
import { LoginTypeEnum } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
icon: "QiyeweixinIcon"
|
|
24
|
-
}
|
|
1
|
+
import { LoginTypeEnum } from "../enums/login.enum.mjs";
|
|
2
|
+
//#region src/modules/platform-config/constants/login.const.ts
|
|
3
|
+
/**
|
|
4
|
+
* 登录相关常量定义
|
|
5
|
+
*/
|
|
6
|
+
/** 登录类型信息映射表,包含每个登录方式的图标和颜色 */
|
|
7
|
+
var LOGIN_TYPE_INFO = {
|
|
8
|
+
[LoginTypeEnum.ACCOUNT]: {
|
|
9
|
+
icon: "icon-a-Accountnumber",
|
|
10
|
+
color: "#0E81EC"
|
|
11
|
+
},
|
|
12
|
+
[LoginTypeEnum.DOMAIN_ACCOUNT]: {
|
|
13
|
+
icon: "icon-a-Domainaccount",
|
|
14
|
+
color: "#FFAB06"
|
|
15
|
+
},
|
|
16
|
+
[LoginTypeEnum.MOBILE]: {
|
|
17
|
+
icon: "icon-a-Cellphone",
|
|
18
|
+
color: "#6A70FE"
|
|
19
|
+
},
|
|
20
|
+
[LoginTypeEnum.DINGDING]: { icon: "DingdingIcon" },
|
|
21
|
+
[LoginTypeEnum.FEISHU]: { icon: "FeishuIcon" },
|
|
22
|
+
[LoginTypeEnum.QIYEWEIXIN]: { icon: "QiyeweixinIcon" }
|
|
25
23
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
/** 系统登录方式的 key 数组 */
|
|
25
|
+
var SYSTEM_LOGIN_KEYS = [
|
|
26
|
+
LoginTypeEnum.ACCOUNT,
|
|
27
|
+
LoginTypeEnum.DOMAIN_ACCOUNT,
|
|
28
|
+
LoginTypeEnum.MOBILE
|
|
30
29
|
];
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
/** 第三方登录方式的 key 数组 */
|
|
31
|
+
var OTHER_LOGIN_KEYS = [
|
|
32
|
+
LoginTypeEnum.DINGDING,
|
|
33
|
+
LoginTypeEnum.FEISHU,
|
|
34
|
+
LoginTypeEnum.QIYEWEIXIN
|
|
35
35
|
];
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
/**
|
|
37
|
+
* 根据登录类型 key 获取登录选项配置
|
|
38
|
+
* @param keys - 登录类型 key 数组
|
|
39
|
+
* @returns 包含登录选项信息的数组
|
|
40
|
+
*/
|
|
41
|
+
var getLoginTypeOptions = (keys) => {
|
|
42
|
+
if (!keys) return [];
|
|
43
|
+
return keys.map((key) => {
|
|
44
|
+
return {
|
|
45
|
+
id: key,
|
|
46
|
+
label: key,
|
|
47
|
+
value: key,
|
|
48
|
+
...LOGIN_TYPE_INFO[key]
|
|
49
|
+
};
|
|
50
|
+
});
|
|
48
51
|
};
|
|
49
|
-
|
|
52
|
+
//#endregion
|
|
50
53
|
export { OTHER_LOGIN_KEYS, SYSTEM_LOGIN_KEYS, getLoginTypeOptions };
|
|
@@ -1,54 +1,59 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
//#region src/modules/platform-config/constants/org.const.ts
|
|
2
|
+
/**
|
|
3
|
+
* 组织相关常量定义
|
|
4
|
+
*/
|
|
5
|
+
/** 关联字段配置列表 */
|
|
6
|
+
var RELATION_FIELDS = [
|
|
7
|
+
{
|
|
8
|
+
label: "extString0_",
|
|
9
|
+
value: "ext0",
|
|
10
|
+
type: 1
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
label: "extString1_",
|
|
14
|
+
value: "ext1",
|
|
15
|
+
type: 1
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: "extString2_",
|
|
19
|
+
value: "ext2",
|
|
20
|
+
type: 1
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "extString3_",
|
|
24
|
+
value: "ext3",
|
|
25
|
+
type: 1
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: "extString4_",
|
|
29
|
+
value: "ext4",
|
|
30
|
+
type: 1
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: "extInt5_",
|
|
34
|
+
value: "ext5",
|
|
35
|
+
type: 0
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "extInt6_",
|
|
39
|
+
value: "ext6",
|
|
40
|
+
type: 0
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "extInt7_",
|
|
44
|
+
value: "ext7",
|
|
45
|
+
type: 0
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: "extInt8_",
|
|
49
|
+
value: "ext8",
|
|
50
|
+
type: 0
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: "extInt9_",
|
|
54
|
+
value: "ext9",
|
|
55
|
+
type: 0
|
|
56
|
+
}
|
|
52
57
|
];
|
|
53
|
-
|
|
58
|
+
//#endregion
|
|
54
59
|
export { RELATION_FIELDS };
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/modules/platform-config/constants/theme.const.ts
|
|
2
|
+
/**
|
|
3
|
+
* 主题相关常量定义
|
|
4
|
+
*/
|
|
5
|
+
/** 菜单折叠时的宽度 */
|
|
6
|
+
var MENU_COLLAPSED_WIDTH = 46;
|
|
7
|
+
/** 菜单宽度范围 */
|
|
8
|
+
var MENU_WIDTH_RANGE = [100, 1e3];
|
|
9
|
+
/** 可选的主题颜色列表 */
|
|
10
|
+
var THEME_COLORS = ["#026AC8", "#0DAA9C"];
|
|
11
|
+
//#endregion
|
|
5
12
|
export { MENU_COLLAPSED_WIDTH, MENU_WIDTH_RANGE, THEME_COLORS };
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
//#region src/modules/platform-config/constants/watermark.const.ts
|
|
2
|
+
/**
|
|
3
|
+
* 水印相关常量定义
|
|
4
|
+
*/
|
|
5
|
+
/** 水印初始化数据 */
|
|
6
|
+
var WATERMARK_INIT_DATA = {
|
|
7
|
+
openWatermark: false,
|
|
8
|
+
watermarkContent: "custom",
|
|
9
|
+
fontSize: 16,
|
|
10
|
+
color: "#000000",
|
|
11
|
+
verticalAlign: "middle",
|
|
12
|
+
textAlign: "center",
|
|
13
|
+
text: "${username}",
|
|
14
|
+
transparent: 15,
|
|
15
|
+
width: 1600,
|
|
16
|
+
height: 1080
|
|
12
17
|
};
|
|
13
|
-
|
|
18
|
+
//#endregion
|
|
14
19
|
export { WATERMARK_INIT_DATA };
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
//#region src/modules/platform-config/enums/deploy.enum.ts
|
|
2
|
+
/**
|
|
3
|
+
* 部署相关枚举定义
|
|
4
|
+
*/
|
|
5
|
+
/** 部署模式枚举 */
|
|
6
|
+
var DeployModeEnum = /* @__PURE__ */ function(DeployModeEnum) {
|
|
7
|
+
/** 标准部署 */
|
|
8
|
+
DeployModeEnum["STANDARD"] = "STANDARD";
|
|
9
|
+
/** 独立应用部署 */
|
|
10
|
+
DeployModeEnum["INDEPENDENT_APP"] = "INDEPENDENT_APP";
|
|
11
|
+
return DeployModeEnum;
|
|
12
|
+
}({});
|
|
13
|
+
//#endregion
|
|
7
14
|
export { DeployModeEnum };
|
|
@@ -1,16 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
//#region src/modules/platform-config/enums/login.enum.ts
|
|
2
|
+
/**
|
|
3
|
+
* 登录相关枚举定义
|
|
4
|
+
*/
|
|
5
|
+
/** 登录方式排序分类 */
|
|
6
|
+
var LoginSortTypeEnum = /* @__PURE__ */ function(LoginSortTypeEnum) {
|
|
7
|
+
/** 系统登录 */
|
|
8
|
+
LoginSortTypeEnum["SYSTEM"] = "SYSTEM";
|
|
9
|
+
/** 第三方登录 */
|
|
10
|
+
LoginSortTypeEnum["THIRD_PARTY"] = "THIRD_PARTY";
|
|
11
|
+
return LoginSortTypeEnum;
|
|
12
|
+
}({});
|
|
13
|
+
/** 登录类型 */
|
|
14
|
+
var LoginTypeEnum = /* @__PURE__ */ function(LoginTypeEnum) {
|
|
15
|
+
/** 账号密码 */
|
|
16
|
+
LoginTypeEnum["ACCOUNT"] = "ACCOUNT";
|
|
17
|
+
/** 域账号 */
|
|
18
|
+
LoginTypeEnum["DOMAIN_ACCOUNT"] = "DOMAIN_ACCOUNT";
|
|
19
|
+
/** 手机号 */
|
|
20
|
+
LoginTypeEnum["MOBILE"] = "MOBILE";
|
|
21
|
+
/** 钉钉 */
|
|
22
|
+
LoginTypeEnum["DINGDING"] = "DINGDING";
|
|
23
|
+
/** 飞书 */
|
|
24
|
+
LoginTypeEnum["FEISHU"] = "FEISHU";
|
|
25
|
+
/** 企业微信 */
|
|
26
|
+
LoginTypeEnum["QIYEWEIXIN"] = "QIYEWEIXIN";
|
|
27
|
+
return LoginTypeEnum;
|
|
28
|
+
}({});
|
|
29
|
+
//#endregion
|
|
16
30
|
export { LoginSortTypeEnum, LoginTypeEnum };
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
//#region src/modules/platform-config/enums/platform.enum.ts
|
|
2
|
+
/** 密码规则枚举 */
|
|
3
|
+
var PassRule = /* @__PURE__ */ function(PassRule) {
|
|
4
|
+
PassRule["NUMBER"] = "NUMBER";
|
|
5
|
+
PassRule["LOWERCASE"] = "LOWERCASE";
|
|
6
|
+
PassRule["UPPERCASE"] = "UPPERCASE";
|
|
7
|
+
PassRule["SPECHARS"] = "SPECHARS";
|
|
8
|
+
return PassRule;
|
|
9
|
+
}({});
|
|
10
|
+
/** 踢出用户规则枚举 */
|
|
11
|
+
var KickRuleEnum = /* @__PURE__ */ function(KickRuleEnum) {
|
|
12
|
+
KickRuleEnum["SAME_END"] = "SAME_END";
|
|
13
|
+
KickRuleEnum["DIFFERENT_END"] = "DIFFERENT_END";
|
|
14
|
+
return KickRuleEnum;
|
|
15
|
+
}({});
|
|
16
|
+
//#endregion
|
|
14
17
|
export { KickRuleEnum, PassRule };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./enums/login.enum.mjs";
|
|
2
|
+
import "./enums/platform.enum.mjs";
|
|
3
|
+
import "./enums/deploy.enum.mjs";
|
|
4
|
+
import "./constants/login.const.mjs";
|
|
5
|
+
import "./constants/org.const.mjs";
|
|
6
|
+
import "./constants/theme.const.mjs";
|
|
7
|
+
import "./constants/watermark.const.mjs";
|
|
8
|
+
import "./constants/index.mjs";
|
|
9
|
+
import "./store.mjs";
|