@ibiz-template/core 0.7.41-alpha.101 → 0.7.41-alpha.113
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.js +2 -1
- package/dist/index.system.min.js +1 -1
- package/out/environment/environment.d.ts.map +1 -1
- package/out/environment/environment.js +1 -0
- package/out/interface/api/environment/i-environment.d.ts +8 -0
- package/out/interface/api/environment/i-environment.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/command/command-register.ts +121 -0
- package/src/command/command.ts +78 -0
- package/src/command/index.ts +8 -0
- package/src/command/utils/index.ts +2 -0
- package/src/command/utils/linked-list.ts +136 -0
- package/src/command/utils/util.ts +103 -0
- package/src/constant/core/core.ts +54 -0
- package/src/constant/emoji/emoji.ts +2929 -0
- package/src/constant/http-status-message/http-status-message.ts +18 -0
- package/src/constant/index.ts +4 -0
- package/src/constant/util/util.ts +3 -0
- package/src/context/index.ts +231 -0
- package/src/environment/environment.ts +65 -0
- package/src/error/http-error/entity-error.ts +29 -0
- package/src/error/http-error/http-error-factory.ts +24 -0
- package/src/error/http-error/http-error.ts +52 -0
- package/src/error/index.ts +7 -0
- package/src/error/model-error/model-error.ts +27 -0
- package/src/error/notice-error/notice-error.ts +16 -0
- package/src/error/runtime-error/runtime-error.ts +13 -0
- package/src/error/runtime-model-error/runtime-model-error.ts +27 -0
- package/src/ibizsys.ts +82 -0
- package/src/index.ts +14 -0
- package/src/install.ts +12 -0
- package/src/interface/api/chat-message/i-api-chat-message.ts +71 -0
- package/src/interface/api/chat-message/index.ts +1 -0
- package/src/interface/api/constant/index.ts +2 -0
- package/src/interface/api/constant/login-mode/login-mode.ts +25 -0
- package/src/interface/api/constant/menu-permission-mode/menu-permission-mode.ts +20 -0
- package/src/interface/api/environment/i-devtool-config.ts +56 -0
- package/src/interface/api/environment/i-environment.ts +532 -0
- package/src/interface/api/environment/index.ts +2 -0
- package/src/interface/api/global-param/i-api-context.ts +37 -0
- package/src/interface/api/global-param/i-global-param.ts +27 -0
- package/src/interface/api/global-param/index.ts +2 -0
- package/src/interface/api/ibizsys/i-api-ibizsys.ts +54 -0
- package/src/interface/api/ibizsys/i-app-data.ts +64 -0
- package/src/interface/api/ibizsys/i-org-data.ts +31 -0
- package/src/interface/api/ibizsys/index.ts +3 -0
- package/src/interface/api/index.ts +6 -0
- package/src/interface/api/utils/i-api-i18n.ts +56 -0
- package/src/interface/api/utils/index.ts +5 -0
- package/src/interface/api/utils/message-center/base/i-message-all.ts +8 -0
- package/src/interface/api/utils/message-center/base/i-message-base.ts +29 -0
- package/src/interface/api/utils/message-center/base/index.ts +2 -0
- package/src/interface/api/utils/message-center/command/add-in-changed/i-add-in-changed.ts +25 -0
- package/src/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.ts +16 -0
- package/src/interface/api/utils/message-center/command/async-action/i-command-async-action.ts +17 -0
- package/src/interface/api/utils/message-center/command/change/i-command-change.ts +8 -0
- package/src/interface/api/utils/message-center/command/create/i-command-create.ts +18 -0
- package/src/interface/api/utils/message-center/command/i-command-base.ts +23 -0
- package/src/interface/api/utils/message-center/command/i-message-command.ts +94 -0
- package/src/interface/api/utils/message-center/command/index.ts +20 -0
- package/src/interface/api/utils/message-center/command/internal-message/i-command-internal-message.ts +17 -0
- package/src/interface/api/utils/message-center/command/internal-message/i-internal-message.ts +132 -0
- package/src/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.ts +17 -0
- package/src/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.ts +47 -0
- package/src/interface/api/utils/message-center/command/remove/i-command-remove.ts +18 -0
- package/src/interface/api/utils/message-center/command/update/i-command-update.ts +18 -0
- package/src/interface/api/utils/message-center/common/i-app-data-entity.ts +16 -0
- package/src/interface/api/utils/message-center/common/i-message-center-event.ts +15 -0
- package/src/interface/api/utils/message-center/common/i-msg-meta-data.ts +13 -0
- package/src/interface/api/utils/message-center/common/i-portal-async-action.ts +144 -0
- package/src/interface/api/utils/message-center/common/i-portal-message.ts +84 -0
- package/src/interface/api/utils/message-center/common/index.ts +5 -0
- package/src/interface/api/utils/message-center/console/i-message-console.ts +17 -0
- package/src/interface/api/utils/message-center/error/i-message-error.ts +17 -0
- package/src/interface/api/utils/message-center/i-message-center.ts +53 -0
- package/src/interface/api/utils/message-center/index.ts +6 -0
- package/src/interface/api/utils/net/i-api-http-error.ts +43 -0
- package/src/interface/api/utils/net/i-api-net.ts +93 -0
- package/src/interface/api/utils/net/i-http-response.ts +67 -0
- package/src/interface/click-outside/click-outside.ts +51 -0
- package/src/interface/command/command/i-command-option.ts +47 -0
- package/src/interface/command/command/i-command.ts +68 -0
- package/src/interface/command/disposable/i-disposable.ts +12 -0
- package/src/interface/command/i-command-controller.ts +50 -0
- package/src/interface/command/index.ts +11 -0
- package/src/interface/context/index.ts +42 -0
- package/src/interface/error/index.ts +13 -0
- package/src/interface/i-chat-message/i-chat-message.ts +16 -0
- package/src/interface/ibizsys/i-ibizsys.ts +33 -0
- package/src/interface/ibizsys/index.ts +1 -0
- package/src/interface/index.ts +11 -0
- package/src/interface/utils/i-18n.ts +22 -0
- package/src/interface/utils/index.ts +1 -0
- package/src/locale/en/index.ts +30 -0
- package/src/locale/index.ts +2 -0
- package/src/locale/zh-CN/index.ts +28 -0
- package/src/params/params.ts +131 -0
- package/src/types.ts +26 -0
- package/src/utils/bit-mask/bit-mask.ts +87 -0
- package/src/utils/click-outside/click-outside.ts +108 -0
- package/src/utils/clone/clone.ts +38 -0
- package/src/utils/color/color.ts +84 -0
- package/src/utils/cookie-util/cookie-util.ts +192 -0
- package/src/utils/data-type/data-types.ts +93 -0
- package/src/utils/download-file/download-file.ts +110 -0
- package/src/utils/event/event.ts +69 -0
- package/src/utils/history-list/history-item.ts +41 -0
- package/src/utils/history-list/history-list.ts +137 -0
- package/src/utils/index.ts +24 -0
- package/src/utils/interceptor/core-interceptor.ts +127 -0
- package/src/utils/interceptor/index.ts +2 -0
- package/src/utils/interceptor/interceptor.ts +122 -0
- package/src/utils/logger/logger.ts +34 -0
- package/src/utils/message-center/base/message-all.ts +10 -0
- package/src/utils/message-center/base/message-base.ts +73 -0
- package/src/utils/message-center/command/add-in-changed/command-add-in-changed.ts +23 -0
- package/src/utils/message-center/command/async-action/command-async-action.ts +23 -0
- package/src/utils/message-center/command/change/command-change.ts +11 -0
- package/src/utils/message-center/command/command-base/command-base.ts +35 -0
- package/src/utils/message-center/command/create/command-create.ts +25 -0
- package/src/utils/message-center/command/internal-message/command-internal-message.ts +26 -0
- package/src/utils/message-center/command/mark-open-data/command-mark-open-data.ts +23 -0
- package/src/utils/message-center/command/message-command.ts +162 -0
- package/src/utils/message-center/command/remove/command-remove.ts +25 -0
- package/src/utils/message-center/command/update/command-update.ts +25 -0
- package/src/utils/message-center/console/message-console.ts +27 -0
- package/src/utils/message-center/error/message-error.ts +27 -0
- package/src/utils/message-center/index.ts +1 -0
- package/src/utils/message-center/message-center.ts +77 -0
- package/src/utils/namespace/namespace.ts +217 -0
- package/src/utils/net/http-response.ts +60 -0
- package/src/utils/net/net.ts +448 -0
- package/src/utils/recursive/find-recursive-child.ts +238 -0
- package/src/utils/string-util/string-util.ts +76 -0
- package/src/utils/style/remote-style.ts +17 -0
- package/src/utils/sync/await-timeout.ts +29 -0
- package/src/utils/sync/count-latch.ts +79 -0
- package/src/utils/sync/index.ts +2 -0
- package/src/utils/types/types.ts +24 -0
- package/src/utils/upload/select-file.ts +93 -0
- package/src/utils/upload/upload-file.ts +194 -0
- package/src/utils/url-helper/url-helper.ts +52 -0
- package/src/utils/util/util.ts +580 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { IApiData } from '../global-param';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description AI聊天消息
|
|
5
|
+
* @export
|
|
6
|
+
* @interface IApiChatMessage
|
|
7
|
+
*/
|
|
8
|
+
export interface IApiChatMessage {
|
|
9
|
+
/**
|
|
10
|
+
* @description 消息标识
|
|
11
|
+
* @type {string}
|
|
12
|
+
* @memberof IApiChatMessage
|
|
13
|
+
*/
|
|
14
|
+
messageid?: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @description 消息名称
|
|
18
|
+
* @type {string}
|
|
19
|
+
* @memberof IApiChatMessage
|
|
20
|
+
*/
|
|
21
|
+
messagename?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @description 消息类型
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof IApiChatMessage
|
|
27
|
+
*/
|
|
28
|
+
type?: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @description 消息子类型
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IApiChatMessage
|
|
34
|
+
*/
|
|
35
|
+
subtype?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @description 消息角色
|
|
39
|
+
* @type {('ASSISTANT' | 'USER' | 'SYSTEM')} 助手 | 用户 | 系统
|
|
40
|
+
* @memberof IApiChatMessage
|
|
41
|
+
*/
|
|
42
|
+
role: 'ASSISTANT' | 'USER' | 'SYSTEM';
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @description 内容摘要
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof IApiChatMessage
|
|
48
|
+
*/
|
|
49
|
+
content: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @description 消息数据
|
|
53
|
+
* @type {(IApiData | string | unknown)}
|
|
54
|
+
* @memberof IApiChatMessage
|
|
55
|
+
*/
|
|
56
|
+
data?: IApiData | string | unknown;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @description 消息路径
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof IApiChatMessage
|
|
62
|
+
*/
|
|
63
|
+
url?: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @description 内容(排除排除think、resources、suggesions内容)
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof IApiChatMessage
|
|
69
|
+
*/
|
|
70
|
+
realcontent?: string;
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { IApiChatMessage } from './i-api-chat-message';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* eslint-disable no-shadow */
|
|
2
|
+
/**
|
|
3
|
+
* @description 登录模式
|
|
4
|
+
* @export
|
|
5
|
+
* @enum {number}
|
|
6
|
+
*/
|
|
7
|
+
export enum LoginMode {
|
|
8
|
+
/**
|
|
9
|
+
* 默认标准登录
|
|
10
|
+
*/
|
|
11
|
+
DEFAULT = 'DEFAULT',
|
|
12
|
+
/**
|
|
13
|
+
* 自定义登录
|
|
14
|
+
*/
|
|
15
|
+
CUSTOM = 'CUSTOM',
|
|
16
|
+
/**
|
|
17
|
+
* 中央认证登录
|
|
18
|
+
*/
|
|
19
|
+
CAS = 'CAS',
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* oauth登录
|
|
23
|
+
*/
|
|
24
|
+
OAUTH = 'OAUTH',
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* eslint-disable no-shadow */
|
|
2
|
+
/**
|
|
3
|
+
* @description 菜单权限校验模式
|
|
4
|
+
* @export
|
|
5
|
+
* @enum {number}
|
|
6
|
+
*/
|
|
7
|
+
export enum MenuPermissionMode {
|
|
8
|
+
/**
|
|
9
|
+
* 混合模式(默认)
|
|
10
|
+
*/
|
|
11
|
+
MIXIN = 'MIXIN',
|
|
12
|
+
/**
|
|
13
|
+
* 统一资源模式
|
|
14
|
+
*/
|
|
15
|
+
RESOURCE = 'RESOURCE',
|
|
16
|
+
/**
|
|
17
|
+
* RT模式
|
|
18
|
+
*/
|
|
19
|
+
RT = 'RT',
|
|
20
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { LogLevelDesc } from 'loglevel';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 开发调试工具配置
|
|
5
|
+
* @export
|
|
6
|
+
* @interface IDevToolConfig
|
|
7
|
+
*/
|
|
8
|
+
export interface IDevToolConfig {
|
|
9
|
+
/**
|
|
10
|
+
* @description 配置平台基础路径
|
|
11
|
+
* @type {string}
|
|
12
|
+
* @default https://open.ibizlab.cn/modeldesign/#/
|
|
13
|
+
* @platform web
|
|
14
|
+
* @platform mob
|
|
15
|
+
* @memberof IDevToolConfig
|
|
16
|
+
*/
|
|
17
|
+
studioBaseUrl?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @description 模型预览宽度
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @platform web
|
|
23
|
+
* @platform mob
|
|
24
|
+
* @memberof IDevToolConfig
|
|
25
|
+
*/
|
|
26
|
+
modelPreviewWidth?: number;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @description 日志级别
|
|
30
|
+
* @type {LogLevelDesc}
|
|
31
|
+
* @platform web
|
|
32
|
+
* @platform mob
|
|
33
|
+
* @memberof IDevToolConfig
|
|
34
|
+
*/
|
|
35
|
+
logLevel?: LogLevelDesc;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @description 是否启用v9模式
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @default false
|
|
41
|
+
* @platform web
|
|
42
|
+
* @platform mob
|
|
43
|
+
* @memberof IDevToolConfig
|
|
44
|
+
*/
|
|
45
|
+
v9Mode?: boolean;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @description 默认打开模式
|
|
49
|
+
* @type {('open' | 'close')}
|
|
50
|
+
* @default close
|
|
51
|
+
* @platform web
|
|
52
|
+
* @platform mob
|
|
53
|
+
* @memberof IDevToolConfig
|
|
54
|
+
*/
|
|
55
|
+
defaultMode?: 'open' | 'close';
|
|
56
|
+
}
|
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
import { LogLevelDesc } from 'loglevel';
|
|
2
|
+
import { IDevToolConfig } from './i-devtool-config';
|
|
3
|
+
import { LoginMode } from '../constant/login-mode/login-mode';
|
|
4
|
+
import { MenuPermissionMode } from '../constant/menu-permission-mode/menu-permission-mode';
|
|
5
|
+
import { IApiParams } from '../global-param/i-global-param';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 环境变量
|
|
9
|
+
* @description 定义应用系统的全局环境变量,用于配置应用运行时的各项参数和行为,支持灵活定制以适配不同运行环境。
|
|
10
|
+
* @export
|
|
11
|
+
* @interface IEnvironment
|
|
12
|
+
*/
|
|
13
|
+
export interface IEnvironment {
|
|
14
|
+
/**
|
|
15
|
+
* @description 样式bem的命名空间
|
|
16
|
+
* @default ibiz
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @platform web
|
|
19
|
+
* @platform mob
|
|
20
|
+
* @memberof IEnvironment
|
|
21
|
+
*/
|
|
22
|
+
namespace?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @description 是否为开发模式
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @default false
|
|
28
|
+
* @platform web
|
|
29
|
+
* @platform mob
|
|
30
|
+
* @memberof IEnvironment
|
|
31
|
+
*/
|
|
32
|
+
dev: boolean;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @description 是否为多应用 hub 基座模式
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @default true
|
|
38
|
+
* @platform web
|
|
39
|
+
* @platform mob
|
|
40
|
+
* @memberof IEnvironment
|
|
41
|
+
*/
|
|
42
|
+
hub: boolean;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @description 是否启用 mqtt (ws模式消息)
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @default false
|
|
48
|
+
* @platform web
|
|
49
|
+
* @platform mob
|
|
50
|
+
* @memberof IEnvironment
|
|
51
|
+
*/
|
|
52
|
+
enableMqtt: boolean;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @description mqtt 默认连接地址,emq 服务地址 /portal/mqtt/mqtt, rebbitmq 服务地址 /portal/mqtt/ws
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @default /portal/mqtt/mqtt
|
|
58
|
+
* @platform web
|
|
59
|
+
* @platform mob
|
|
60
|
+
* @memberof IEnvironment
|
|
61
|
+
*/
|
|
62
|
+
mqttUrl: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @description 默认应用的应用标识
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @platform web
|
|
68
|
+
* @platform mob
|
|
69
|
+
* @memberof IEnvironment
|
|
70
|
+
*/
|
|
71
|
+
appId: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @description 日志级别,使用`loglevel`插件包生成
|
|
75
|
+
* @type {LogLevelDesc}
|
|
76
|
+
* @default ERROR
|
|
77
|
+
* @platform web
|
|
78
|
+
* @platform mob
|
|
79
|
+
* @memberof IEnvironment
|
|
80
|
+
*/
|
|
81
|
+
logLevel: LogLevelDesc;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @description 请求根路径
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @default /api
|
|
87
|
+
* @platform web
|
|
88
|
+
* @platform mob
|
|
89
|
+
* @memberof IEnvironment
|
|
90
|
+
*/
|
|
91
|
+
baseUrl: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @description 插件默认所在目录,获取插件时根据该值拼接出完整的url
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @default http://172.16.240.221
|
|
97
|
+
* @platform web
|
|
98
|
+
* @platform mob
|
|
99
|
+
* @memberof IEnvironment
|
|
100
|
+
*/
|
|
101
|
+
pluginBaseUrl: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @description 登录模式;DEFAULT: 默认标准登录,CUSTOM: 自定义登录,CAS: 中央认证登录,OAUTH: oauth登录
|
|
105
|
+
* @type {LoginMode}
|
|
106
|
+
* @default DEFAULT
|
|
107
|
+
* @platform web
|
|
108
|
+
* @platform mob
|
|
109
|
+
* @memberof IEnvironment
|
|
110
|
+
*/
|
|
111
|
+
loginMode: LoginMode;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @description oauth 开放接入标识
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @platform web
|
|
117
|
+
* @platform mob
|
|
118
|
+
* @memberof IEnvironment
|
|
119
|
+
*/
|
|
120
|
+
oauthOpenAccessId: string;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @description 中央认证登录地址
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @platform web
|
|
126
|
+
* @platform mob
|
|
127
|
+
* @memberof IEnvironment
|
|
128
|
+
*/
|
|
129
|
+
casLoginUrl: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @description 模型是否为本地模型(走静态资源模式)(已弃用)
|
|
133
|
+
* @type {boolean}
|
|
134
|
+
* @default false
|
|
135
|
+
* @memberof IEnvironment
|
|
136
|
+
*/
|
|
137
|
+
isLocalModel: boolean;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @description 远程模型路径
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @default /remotemodel
|
|
143
|
+
* @platform web
|
|
144
|
+
* @platform mob
|
|
145
|
+
* @memberof IEnvironment
|
|
146
|
+
*/
|
|
147
|
+
remoteModelUrl: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @description 资源文件根路径
|
|
151
|
+
* @type {string}
|
|
152
|
+
* @default ./assets
|
|
153
|
+
* @platform web
|
|
154
|
+
* @platform mob
|
|
155
|
+
* @memberof IEnvironment
|
|
156
|
+
*/
|
|
157
|
+
assetsUrl: string;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @description 中心系统标识
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @platform web
|
|
163
|
+
* @platform mob
|
|
164
|
+
* @memberof IEnvironment
|
|
165
|
+
*/
|
|
166
|
+
dcSystem: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @description 文件下载url
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @default /ibizutil/download/{cat}
|
|
172
|
+
* @platform web
|
|
173
|
+
* @platform mob
|
|
174
|
+
* @memberof IEnvironment
|
|
175
|
+
*/
|
|
176
|
+
downloadFileUrl: string;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @description 文件上传url
|
|
180
|
+
* @type {string}
|
|
181
|
+
* @default /ibizutil/upload/{cat}
|
|
182
|
+
* @platform web
|
|
183
|
+
* @platform mob
|
|
184
|
+
* @memberof IEnvironment
|
|
185
|
+
*/
|
|
186
|
+
uploadFileUrl: string;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @description 上传文件存储目录
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @default '''
|
|
192
|
+
* @platform web
|
|
193
|
+
* @platform mob
|
|
194
|
+
* @memberof IEnvironment
|
|
195
|
+
*/
|
|
196
|
+
defaultOSSCat: string;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @description 是否启用权限校验(默认true)
|
|
200
|
+
* @type {boolean}
|
|
201
|
+
* @default true
|
|
202
|
+
* @platform web
|
|
203
|
+
* @platform mob
|
|
204
|
+
* @memberof IEnvironment
|
|
205
|
+
*/
|
|
206
|
+
enablePermission: boolean;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @description 菜单权限校验模式(默认MIXIN)
|
|
210
|
+
* @type {MenuPermissionMode}
|
|
211
|
+
* @default MIXIN
|
|
212
|
+
* @memberof IEnvironment
|
|
213
|
+
*/
|
|
214
|
+
menuPermissionMode: MenuPermissionMode;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* @description 路由占位符
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @default `-`
|
|
220
|
+
* @platform web
|
|
221
|
+
* @platform mob
|
|
222
|
+
* @memberof IEnvironment
|
|
223
|
+
*/
|
|
224
|
+
routePlaceholder: string;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @description 是否让所有工作流history接口走all(已弃用)
|
|
228
|
+
* @type {boolean}
|
|
229
|
+
* @default false
|
|
230
|
+
* @memberof IEnvironment
|
|
231
|
+
*/
|
|
232
|
+
enableWfAllHistory: boolean;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @description 是否启用加密,加密模式为RSA加密
|
|
236
|
+
* @type {boolean}
|
|
237
|
+
* @default false
|
|
238
|
+
* @platform web
|
|
239
|
+
* @platform mob
|
|
240
|
+
* @memberof IEnvironment
|
|
241
|
+
*/
|
|
242
|
+
enableEncryption: boolean;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @description 应用loadding主题
|
|
246
|
+
* @type {('DEFAULT' | 'DARK' | 'LIGHT')}
|
|
247
|
+
* @default DEFAULT
|
|
248
|
+
* @platform web
|
|
249
|
+
* @memberof IEnvironment
|
|
250
|
+
*/
|
|
251
|
+
appLoadingTheme: 'DEFAULT' | 'DARK' | 'LIGHT';
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @description 应用标题
|
|
255
|
+
* @type {string}
|
|
256
|
+
* @platform web
|
|
257
|
+
* @platform mob
|
|
258
|
+
* @memberof IEnvironment
|
|
259
|
+
*/
|
|
260
|
+
AppTitle?: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @description 应用标记
|
|
264
|
+
* @type {string}
|
|
265
|
+
* @platform web
|
|
266
|
+
* @platform mob
|
|
267
|
+
* @memberof IEnvironment
|
|
268
|
+
*/
|
|
269
|
+
AppLabel?: string;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @description 是否为 SaaS 模式
|
|
273
|
+
* @type {boolean}
|
|
274
|
+
* @default true
|
|
275
|
+
* @platform web
|
|
276
|
+
* @platform mob
|
|
277
|
+
* @memberof IEnvironment
|
|
278
|
+
*/
|
|
279
|
+
isSaaSMode?: boolean;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @description 是否为移动端应用
|
|
283
|
+
* @type {boolean}
|
|
284
|
+
* @default false
|
|
285
|
+
* @platform mob
|
|
286
|
+
* @memberof IEnvironment
|
|
287
|
+
*/
|
|
288
|
+
isMob?: boolean;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @description 应用图标地址
|
|
292
|
+
* @type {string}
|
|
293
|
+
* @default ./favicon.ico
|
|
294
|
+
* @platform web
|
|
295
|
+
* @memberof IEnvironment
|
|
296
|
+
*/
|
|
297
|
+
favicon?: string;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @description 是否启用多语言,此值是默认加载后,根据应用模型中的配置来决定是否启用多语言。请勿手动修改此值
|
|
301
|
+
* @type {boolean}
|
|
302
|
+
* @default false
|
|
303
|
+
* @platform web
|
|
304
|
+
* @platform mob
|
|
305
|
+
* @memberof IEnvironment
|
|
306
|
+
*/
|
|
307
|
+
isEnableMultiLan?: boolean;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* @description 匿名用户名
|
|
311
|
+
* @type {string}
|
|
312
|
+
* @platform web
|
|
313
|
+
* @platform mob
|
|
314
|
+
* @memberof IEnvironment
|
|
315
|
+
*/
|
|
316
|
+
anonymousUser?: string;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* @description 匿名用户密码
|
|
320
|
+
* @type {string}
|
|
321
|
+
* @platform web
|
|
322
|
+
* @platform mob
|
|
323
|
+
* @memberof IEnvironment
|
|
324
|
+
*/
|
|
325
|
+
anonymousPwd?: string;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @description 启用匿名模式
|
|
329
|
+
* @type {boolean}
|
|
330
|
+
* @default false
|
|
331
|
+
* @platform web
|
|
332
|
+
* @platform mob
|
|
333
|
+
* @memberof IEnvironment
|
|
334
|
+
*/
|
|
335
|
+
enableAnonymous?: boolean;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* @description 访问数据存储区域
|
|
339
|
+
* @type {('COOKIE' | 'LOCALSTORAGE' | 'SESSIONSTORAGE')}
|
|
340
|
+
* @default COOKIE
|
|
341
|
+
* @platform web
|
|
342
|
+
* @platform mob
|
|
343
|
+
* @memberof IEnvironment
|
|
344
|
+
*/
|
|
345
|
+
accessStoreArea: 'COOKIE' | 'LOCALSTORAGE' | 'SESSIONSTORAGE';
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* @description 市场地址,与实体子应用引用视图配合使用
|
|
349
|
+
* @type {string}
|
|
350
|
+
* @platform web
|
|
351
|
+
* @memberof IEnvironment
|
|
352
|
+
*/
|
|
353
|
+
marketAddress?: string;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* @description devtool的配置对象
|
|
357
|
+
* @type {IDevToolConfig}
|
|
358
|
+
* @platform web
|
|
359
|
+
* @platform mob
|
|
360
|
+
* @memberof IEnvironment
|
|
361
|
+
*/
|
|
362
|
+
devtoolConfig?: IDevToolConfig;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* @description 是否启用title,是否hover时线上title提示
|
|
366
|
+
* @type {boolean}
|
|
367
|
+
* @default true
|
|
368
|
+
* @platform web
|
|
369
|
+
* @memberof IEnvironment
|
|
370
|
+
*/
|
|
371
|
+
enableTitle?: boolean;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @description token头
|
|
375
|
+
* @type {string}
|
|
376
|
+
* @platform web
|
|
377
|
+
* @platform mob
|
|
378
|
+
* @memberof IEnvironment
|
|
379
|
+
*/
|
|
380
|
+
tokenHeader?: string;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* @description token前缀
|
|
384
|
+
* @type {string}
|
|
385
|
+
* @platform web
|
|
386
|
+
* @platform mob
|
|
387
|
+
* @memberof IEnvironment
|
|
388
|
+
*/
|
|
389
|
+
tokenPrefix?: string;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* @description 自定义动态参数,格式如:{\"XXX\":\"YYY\",\"AAA\":\"BBB\"}
|
|
393
|
+
* @type {IApiParams}
|
|
394
|
+
* @platform web
|
|
395
|
+
* @platform mob
|
|
396
|
+
* @memberof IEnvironment
|
|
397
|
+
*/
|
|
398
|
+
customParams?: IApiParams;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @description 定义cookie作用域
|
|
402
|
+
* @type {string}
|
|
403
|
+
* @platform web
|
|
404
|
+
* @platform mob
|
|
405
|
+
* @memberof IEnvironment
|
|
406
|
+
*/
|
|
407
|
+
cookieDomain?: string;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* @description 环境类型
|
|
411
|
+
* @type {('development' | 'test' | 'production')}
|
|
412
|
+
* @default development
|
|
413
|
+
* @platform web
|
|
414
|
+
* @platform mob
|
|
415
|
+
* @memberof IEnvironment
|
|
416
|
+
*/
|
|
417
|
+
environmentTag?: 'development' | 'test' | 'production';
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* @description 移动端菜单呈现模式,DEFAULT:菜单映射的页面菜单显示,非菜单映射的页面菜单不显示;ALWAYS:所有页面菜单都显示,默认:DEFAULT
|
|
421
|
+
* @type {('DEFAULT' | 'ALWAYS')}
|
|
422
|
+
* @default DEFAULT
|
|
423
|
+
* @platform mob
|
|
424
|
+
* @memberof IEnvironment
|
|
425
|
+
*/
|
|
426
|
+
mobMenuShowMode?: 'DEFAULT' | 'ALWAYS';
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* @description 是否启用AI支持
|
|
430
|
+
* @type {boolean}
|
|
431
|
+
* @default true
|
|
432
|
+
* @platform web
|
|
433
|
+
* @memberof IEnvironment
|
|
434
|
+
*/
|
|
435
|
+
enableAI: boolean;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* @description 应用版本号
|
|
439
|
+
* @type {string}
|
|
440
|
+
* @platform web
|
|
441
|
+
* @platform mob
|
|
442
|
+
* @memberof IEnvironment
|
|
443
|
+
*/
|
|
444
|
+
appVersion?: string;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* @description 高德地图安全密钥
|
|
448
|
+
* @type {string}
|
|
449
|
+
* @platform web
|
|
450
|
+
* @platform mob
|
|
451
|
+
* @memberof IEnvironment
|
|
452
|
+
*/
|
|
453
|
+
aMapSecurityJsCode?: string;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* @description 高德地图key
|
|
457
|
+
* @type {string}
|
|
458
|
+
* @platform web
|
|
459
|
+
* @platform mob
|
|
460
|
+
* @memberof IEnvironment
|
|
461
|
+
*/
|
|
462
|
+
aMapKey?: string;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* @description 运行容器
|
|
466
|
+
* @type {('DYNAENGINE' | 'FULLCODE')} 动态引擎 | 全代码
|
|
467
|
+
* @platform web
|
|
468
|
+
* @platform mob
|
|
469
|
+
* @memberof IEnvironment
|
|
470
|
+
*/
|
|
471
|
+
runContainer?: 'DYNAENGINE' | 'FULLCODE';
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* @description 移动端微信appid
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @platform mob
|
|
477
|
+
* @memberof IEnvironment
|
|
478
|
+
*/
|
|
479
|
+
mobWeChatAppId?: string;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* @description 是否为门户应用
|
|
483
|
+
* @type {boolean}
|
|
484
|
+
* @platform web
|
|
485
|
+
* @platform mob
|
|
486
|
+
* @default false
|
|
487
|
+
* @memberof IEnvironment
|
|
488
|
+
*/
|
|
489
|
+
isPortalApp?: boolean;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* @description 是否启用移动端loading
|
|
493
|
+
* @type {boolean}
|
|
494
|
+
* @platform mob
|
|
495
|
+
* @default false
|
|
496
|
+
* @memberof IEnvironment
|
|
497
|
+
*/
|
|
498
|
+
isEnableMobLoading?: boolean;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* @description 移动端loading标题
|
|
502
|
+
* @type {string}
|
|
503
|
+
* @platform mob
|
|
504
|
+
* @memberof IEnvironment
|
|
505
|
+
*/
|
|
506
|
+
mobLoadingCaption?: string;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* @description 移动端loading描述
|
|
510
|
+
* @type {string}
|
|
511
|
+
* @platform mob
|
|
512
|
+
* @memberof IEnvironment
|
|
513
|
+
*/
|
|
514
|
+
mobLoadingDescription?: string;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* @description 移动端loading背景色
|
|
518
|
+
* @type {string}
|
|
519
|
+
* @platform mob
|
|
520
|
+
* @memberof IEnvironment
|
|
521
|
+
*/
|
|
522
|
+
mobLoadingBackground?: string;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* @description 是否启用屏幕宽度自适应
|
|
526
|
+
* @type {boolean}
|
|
527
|
+
* @platform web
|
|
528
|
+
* @default false
|
|
529
|
+
* @memberof IEnvironment
|
|
530
|
+
*/
|
|
531
|
+
isAdaptiveScreenWidth?: boolean;
|
|
532
|
+
}
|