@das-fed/utils 6.4.0-hot.24 → 6.4.0-hot.26
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/api-services/index.js +864 -862
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +3 -3099
- package/api-services/modules/authentication/index.js +3 -3099
- package/api-services/modules/bems/index.js +6 -3102
- package/api-services/modules/contract/index.js +3 -3099
- package/api-services/modules/duty-manage/index.js +7 -3103
- package/api-services/modules/enterpriseright/index.js +3 -3099
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +3 -3099
- package/api-services/modules/index.js +217 -3310
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +16 -3112
- package/api-services/modules/justauth/index.js +4 -3100
- package/api-services/modules/knowledge/index.js +3 -3099
- package/api-services/modules/link/index.js +3 -3099
- package/api-services/modules/permission/index.js +3 -3099
- package/api-services/modules/platformManage/index.js +10 -3106
- package/api-services/modules/portal/index.js +3 -3099
- package/api-services/modules/space-manage/index.js +3 -3099
- package/api-services/modules/super-admin/index.js +6 -3102
- package/api-services/modules/supplier/index.js +5 -3101
- package/api-services/modules/supplychain-manage/index.js +3 -3099
- package/api-services/modules/systemConfiguration/index.js +3 -3099
- package/api-services/modules/tool/index.js +3 -3099
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.js +4 -3
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +106 -104
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/common-tools/index.d.ts +1 -0
- package/common-tools/index.js +1 -0
- package/common-tools/update-browser-title/index.d.ts +1 -0
- package/common-tools/update-browser-title/index.js +12 -0
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +783 -690
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +87 -87
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +2 -2
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/i18n-collection/en.js +21 -0
- package/i18n-collection/zh-CN.js +21 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js.gz +0 -0
- package/token-tools/index.d.ts +0 -5
- package/token-tools/index.js +8 -84
- package/use-low-code/index.js +3 -3
- package/use-low-code/index.js.gz +0 -0
- package/use-low-code/style.css +1 -1
- package/webSocket-service/index.js.gz +0 -0
- package/webSocket-service/type.d.ts +28 -28
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js.gz +0 -0
- package/token-tools/index.js.gz +0 -0
|
Binary file
|
|
Binary file
|
package/common-info/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { getConfig as i } from "@das-fed/utils/config";
|
|
|
2
2
|
import { getUrlParams as p } from "@das-fed/utils/common-tools";
|
|
3
3
|
import { getAccessToken as I } from "@das-fed/utils/token-tools";
|
|
4
4
|
import { getTokenFromQuery as m, getProjectInfoFromQuery as d } from "@das-fed/utils/common-info/getInfoFromUrl";
|
|
5
|
-
const S = I,
|
|
5
|
+
const S = I, O = () => {
|
|
6
6
|
var n;
|
|
7
7
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
8
8
|
return {
|
|
@@ -65,7 +65,8 @@ const S = I, C = () => {
|
|
|
65
65
|
appcategorys: e.appcategorys ?? [],
|
|
66
66
|
currentSubApp: e.currentSubApp ?? {},
|
|
67
67
|
currentSubAppCode: e.currentSubAppCode ?? "",
|
|
68
|
-
subAppList: e.subAppList ?? []
|
|
68
|
+
subAppList: e.subAppList ?? [],
|
|
69
|
+
menuCollapses: e.menuCollapses ?? []
|
|
69
70
|
};
|
|
70
71
|
}, j = (e, t = !1) => {
|
|
71
72
|
var s, a;
|
|
@@ -111,5 +112,5 @@ export {
|
|
|
111
112
|
v as getTabInfo,
|
|
112
113
|
y as getTenantInfo,
|
|
113
114
|
S as getToken,
|
|
114
|
-
|
|
115
|
+
O as getUserInfo
|
|
115
116
|
};
|
package/common-info/index.js.gz
CHANGED
|
Binary file
|
|
Binary file
|
package/common-info/type.d.ts
CHANGED
|
@@ -1,104 +1,106 @@
|
|
|
1
|
-
export interface UserInfo {
|
|
2
|
-
/** 用户id */
|
|
3
|
-
id: string
|
|
4
|
-
/** 用户名称 */
|
|
5
|
-
name: string
|
|
6
|
-
/** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
|
|
7
|
-
flag: number
|
|
8
|
-
/** 租户id */
|
|
9
|
-
tenantId: string
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface PersonalInfo {
|
|
13
|
-
/** id */
|
|
14
|
-
id: string
|
|
15
|
-
/** 名称 */
|
|
16
|
-
name: string
|
|
17
|
-
/** 手机号 */
|
|
18
|
-
phone: string
|
|
19
|
-
/** 用户名称 */
|
|
20
|
-
userName: string
|
|
21
|
-
/** 邮箱 */
|
|
22
|
-
email: string
|
|
23
|
-
/** 头像 */
|
|
24
|
-
headPicture: string
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface TenantInfo {
|
|
28
|
-
/** 用户ID */
|
|
29
|
-
userId: string
|
|
30
|
-
/** 用户名 */
|
|
31
|
-
userName: string
|
|
32
|
-
name: string
|
|
33
|
-
/** 租户信息 */
|
|
34
|
-
tenant: {
|
|
35
|
-
id: string
|
|
36
|
-
name: string
|
|
37
|
-
adminUserId: string
|
|
38
|
-
description: string
|
|
39
|
-
domain: string
|
|
40
|
-
}
|
|
41
|
-
/** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
|
|
42
|
-
flag: number
|
|
43
|
-
areaCode: string
|
|
44
|
-
/** 手机号 */
|
|
45
|
-
phone: string
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface HomeInfo {
|
|
49
|
-
applicationCode: string
|
|
50
|
-
applicationPath: string
|
|
51
|
-
enable: boolean
|
|
52
|
-
originalCode: string
|
|
53
|
-
routeUrl: string
|
|
54
|
-
type: number | null
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface ProjectInfo {
|
|
58
|
-
/** 项目id */
|
|
59
|
-
id: string | number
|
|
60
|
-
/** 父级id */
|
|
61
|
-
parentId?: string
|
|
62
|
-
/** 项目名称 */
|
|
63
|
-
name: string
|
|
64
|
-
/** 租户id */
|
|
65
|
-
tenantId?: string
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface SubAppsInfo {
|
|
69
|
-
/** 所有应用信息 */
|
|
70
|
-
appcategorys?: any[]
|
|
71
|
-
/** 当前应用完整信息 */
|
|
72
|
-
currentSubApp?: any
|
|
73
|
-
/** 所有应用 */
|
|
74
|
-
flatSubAppList?: any[]
|
|
75
|
-
/** 当前应用code */
|
|
76
|
-
currentSubAppCode?: string
|
|
77
|
-
/** 当前打开的应用 */
|
|
78
|
-
subAppList?: any[]
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
/** 当前tabs */
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
1
|
+
export interface UserInfo {
|
|
2
|
+
/** 用户id */
|
|
3
|
+
id: string
|
|
4
|
+
/** 用户名称 */
|
|
5
|
+
name: string
|
|
6
|
+
/** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
|
|
7
|
+
flag: number
|
|
8
|
+
/** 租户id */
|
|
9
|
+
tenantId: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface PersonalInfo {
|
|
13
|
+
/** id */
|
|
14
|
+
id: string
|
|
15
|
+
/** 名称 */
|
|
16
|
+
name: string
|
|
17
|
+
/** 手机号 */
|
|
18
|
+
phone: string
|
|
19
|
+
/** 用户名称 */
|
|
20
|
+
userName: string
|
|
21
|
+
/** 邮箱 */
|
|
22
|
+
email: string
|
|
23
|
+
/** 头像 */
|
|
24
|
+
headPicture: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface TenantInfo {
|
|
28
|
+
/** 用户ID */
|
|
29
|
+
userId: string
|
|
30
|
+
/** 用户名 */
|
|
31
|
+
userName: string
|
|
32
|
+
name: string
|
|
33
|
+
/** 租户信息 */
|
|
34
|
+
tenant: {
|
|
35
|
+
id: string
|
|
36
|
+
name: string
|
|
37
|
+
adminUserId: string
|
|
38
|
+
description: string
|
|
39
|
+
domain: string
|
|
40
|
+
}
|
|
41
|
+
/** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
|
|
42
|
+
flag: number
|
|
43
|
+
areaCode: string
|
|
44
|
+
/** 手机号 */
|
|
45
|
+
phone: string
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface HomeInfo {
|
|
49
|
+
applicationCode: string
|
|
50
|
+
applicationPath: string
|
|
51
|
+
enable: boolean
|
|
52
|
+
originalCode: string
|
|
53
|
+
routeUrl: string
|
|
54
|
+
type: number | null
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface ProjectInfo {
|
|
58
|
+
/** 项目id */
|
|
59
|
+
id: string | number
|
|
60
|
+
/** 父级id */
|
|
61
|
+
parentId?: string
|
|
62
|
+
/** 项目名称 */
|
|
63
|
+
name: string
|
|
64
|
+
/** 租户id */
|
|
65
|
+
tenantId?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface SubAppsInfo {
|
|
69
|
+
/** 所有应用信息 */
|
|
70
|
+
appcategorys?: any[]
|
|
71
|
+
/** 当前应用完整信息 */
|
|
72
|
+
currentSubApp?: any
|
|
73
|
+
/** 所有应用 */
|
|
74
|
+
flatSubAppList?: any[]
|
|
75
|
+
/** 当前应用code */
|
|
76
|
+
currentSubAppCode?: string
|
|
77
|
+
/** 当前打开的应用 */
|
|
78
|
+
subAppList?: any[]
|
|
79
|
+
/** 当前菜单折叠的应用key集合 */
|
|
80
|
+
menuCollapses?: any[]
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface TabItem {
|
|
84
|
+
/** 当前应用url */
|
|
85
|
+
currentApplication: string
|
|
86
|
+
/** 当前加载的应用 */
|
|
87
|
+
applicationPath: string
|
|
88
|
+
applicationCode: string
|
|
89
|
+
menuId: string
|
|
90
|
+
name: string
|
|
91
|
+
path: string
|
|
92
|
+
code: string
|
|
93
|
+
query?: any
|
|
94
|
+
}
|
|
95
|
+
export interface TabInfo {
|
|
96
|
+
/** 当前tabs key */
|
|
97
|
+
currentCode?: string
|
|
98
|
+
/** 当前tabs */
|
|
99
|
+
currentTab?: TabItem
|
|
100
|
+
/** 用于记录该应用上次开启的tab */
|
|
101
|
+
preTab?: Record<string, TabItem>
|
|
102
|
+
/** 当前打开的tabs(微前端环境会存入) */
|
|
103
|
+
tabMap?: Record<string, TabItem[]>
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type permissionBtnInfo = { code?: string; name?: string }[]
|
|
Binary file
|
|
Binary file
|
package/common-tools/index.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ export * from '@das-fed/utils/common-tools/setHtmlMinWH';
|
|
|
8
8
|
export * from '@das-fed/utils/common-tools/queue-promise';
|
|
9
9
|
export * from '@das-fed/utils/common-tools/platform-tools';
|
|
10
10
|
export * from '@das-fed/utils/common-tools/update-fav-icon';
|
|
11
|
+
export * from '@das-fed/utils/common-tools/update-browser-title';
|
|
11
12
|
export * from '@das-fed/utils/common-tools/extract-file-name';
|
package/common-tools/index.js
CHANGED
|
@@ -8,4 +8,5 @@ export * from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
|
8
8
|
export * from "@das-fed/utils/common-tools/queue-promise";
|
|
9
9
|
export * from "@das-fed/utils/common-tools/platform-tools";
|
|
10
10
|
export * from "@das-fed/utils/common-tools/update-fav-icon";
|
|
11
|
+
export * from "@das-fed/utils/common-tools/update-browser-title";
|
|
11
12
|
export * from "@das-fed/utils/common-tools/extract-file-name";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const setBrowseTitle: (defaultTitle?: string) => any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { systemConfiguration as l } from "@das-fed/utils/api-services/modules";
|
|
2
|
+
const n = async (o = "AIoT智能物联网管控平台") => {
|
|
3
|
+
let t = localStorage.getItem("browser-title") ?? "";
|
|
4
|
+
if (!t) {
|
|
5
|
+
const i = l.get("/visitor/appearance/with-default", (r) => (r.public = !0, r)), [s, e] = await i().run();
|
|
6
|
+
e != null && e.browserTitle && (t = e.browserTitle);
|
|
7
|
+
}
|
|
8
|
+
document.title = t || o;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
n as setBrowseTitle
|
|
12
|
+
};
|
|
Binary file
|