@das-fed/upf-utils 6.4.0-dev.212 → 6.4.0-dev.214
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/es5.js +1437 -1449
- package/api-services/index.js +1166 -1184
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +834 -831
- package/api-services/modules/authentication/index.js +647 -643
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +976 -964
- package/api-services/modules/duty-manage/index.js +796 -778
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1248 -1236
- package/api-services/modules/enterpriseright/index.js +1062 -1044
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/es5.js +872 -869
- package/api-services/modules/file/index.js +667 -663
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +966 -954
- package/api-services/modules/gateway-edge/index.js +787 -769
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +931 -922
- package/api-services/modules/iot/index.js +751 -737
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +966 -954
- package/api-services/modules/knowledge/index.js +787 -769
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +930 -939
- package/api-services/modules/link/index.js +749 -763
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +966 -954
- package/api-services/modules/permission/index.js +787 -769
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +954 -966
- package/api-services/modules/portal/index.js +769 -787
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1267 -1255
- package/api-services/modules/supplier/index.js +1077 -1059
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +913 -906
- package/api-services/modules/supplychain-manage/index.js +746 -736
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +966 -954
- package/api-services/modules/systemConfiguration/index.js +787 -769
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/common-info/es5.js +78 -76
- package/common-info/index.js +66 -64
- package/common-info/index.js.gz +0 -0
- package/create-api-service/es5.js +964 -952
- package/create-api-service/index.js +786 -768
- package/create-api-service/index.js.gz +0 -0
- package/front-end/i18n/front-end-page/dasutils_en-US.js +1 -20
- package/front-end/i18n/front-end-page/dasutils_zh-CN.js +1 -19
- package/front-end/i18n/front-end-page/dasutils_zh-MO.js +1 -19
- package/package.json +4 -4
|
Binary file
|
package/common-info/es5.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var config = require('@das-fed/upf-utils/config/es5');
|
|
4
4
|
var tokenTools = require('@das-fed/upf-utils/token-tools/es5');
|
|
5
5
|
var getInfoFromUrl = require('@das-fed/upf-utils/common-info/getInfoFromUrl/es5');
|
|
6
|
-
var
|
|
6
|
+
var T = function T(e) {
|
|
7
7
|
var _t$rightFuncCodes, _t$routeUrl, _t$parentId, _t$id, _t$appId, _t$menuAppearance, _t$name, _t$showName, _ref;
|
|
8
8
|
var t = e || JSON.parse(sessionStorage.getItem("menuItem") || "{}");
|
|
9
9
|
return {
|
|
@@ -18,34 +18,36 @@ var f = function f(e) {
|
|
|
18
18
|
type: (_ref = t == null ? undefined : t.type) !== null && _ref !== void 0 ? _ref : ""
|
|
19
19
|
};
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
F = function F() {
|
|
22
22
|
return JSON.parse(sessionStorage.getItem("menuList") || "[]");
|
|
23
23
|
},
|
|
24
|
-
|
|
24
|
+
S = function S() {
|
|
25
25
|
var e = JSON.parse(sessionStorage.getItem("menuList") || "[]"),
|
|
26
26
|
t = {};
|
|
27
27
|
return e.forEach(function (s) {
|
|
28
28
|
s.appId && (s.rightFuncCodes && s.rightFuncCodes.forEach(function (n) {
|
|
29
29
|
return t[n] = [];
|
|
30
30
|
}), s.children && s.children.forEach(function (n) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
var p, o;
|
|
32
|
+
if (n.routeCode && (t[n.routeCode] = []), n.rightFuncCodes && n.rightFuncCodes[0] && !n.children) {
|
|
33
|
+
var r = (p = n.rightFuncCodes[0]) == null ? undefined : p.lastIndexOf("."),
|
|
34
|
+
g = (o = n.rightFuncCodes[0]) == null ? undefined : o.slice(0, r);
|
|
35
|
+
t[g] = [], n.rightFuncCodes.forEach(function (a) {
|
|
36
|
+
var l = a == null ? undefined : a.lastIndexOf(".");
|
|
37
|
+
t[g].push({
|
|
38
|
+
code: a == null ? undefined : a.slice(l + 1)
|
|
38
39
|
});
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
|
-
n.children && n.children.forEach(function (
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
n.children && n.children.forEach(function (r) {
|
|
43
|
+
var g, a;
|
|
44
|
+
if (r.routeCode && (t[r.routeCode] = []), r.rightFuncCodes) {
|
|
45
|
+
var l = (g = r.rightFuncCodes[0]) == null ? undefined : g.lastIndexOf("."),
|
|
46
|
+
u = (a = r.rightFuncCodes[0]) == null ? undefined : a.slice(0, l);
|
|
47
|
+
t[u] = [], r.rightFuncCodes.forEach(function (c) {
|
|
48
|
+
var m = c == null ? undefined : c.lastIndexOf(".");
|
|
49
|
+
t[u].push({
|
|
50
|
+
code: c == null ? undefined : c.slice(m + 1)
|
|
49
51
|
});
|
|
50
52
|
});
|
|
51
53
|
}
|
|
@@ -53,8 +55,8 @@ var f = function f(e) {
|
|
|
53
55
|
}));
|
|
54
56
|
}), t;
|
|
55
57
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
h = tokenTools.getAccessToken,
|
|
59
|
+
J = function J() {
|
|
58
60
|
var _e$id, _e$userName, _e$flag, _ref2;
|
|
59
61
|
var s;
|
|
60
62
|
var e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
@@ -65,7 +67,7 @@ var f = function f(e) {
|
|
|
65
67
|
tenantId: (_ref2 = (s = e == null ? undefined : e.tenant) == null ? undefined : s.id) !== null && _ref2 !== void 0 ? _ref2 : ""
|
|
66
68
|
};
|
|
67
69
|
},
|
|
68
|
-
|
|
70
|
+
A = function A() {
|
|
69
71
|
var _e$id2, _e$name, _e$userName2, _e$phone, _e$email, _e$headPicture;
|
|
70
72
|
var e = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
|
|
71
73
|
var t = config.getConfig();
|
|
@@ -78,7 +80,7 @@ var f = function f(e) {
|
|
|
78
80
|
headPicture: (_e$headPicture = e.headPicture) !== null && _e$headPicture !== void 0 ? _e$headPicture : ""
|
|
79
81
|
};
|
|
80
82
|
},
|
|
81
|
-
|
|
83
|
+
x = function x() {
|
|
82
84
|
var _e$id3, _e$userName3, _e$name2, _e$areaCode, _e$region, _e$phone2, _e$email2, _e$flag2, _e$tenant, _e$headPicture2, _e$nickName, _e$gender, _e$status, _e$statusName, _e$tags, _e$type, _e$address, _e$description;
|
|
83
85
|
var e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
84
86
|
return {
|
|
@@ -102,10 +104,10 @@ var f = function f(e) {
|
|
|
102
104
|
description: (_e$description = e.description) !== null && _e$description !== void 0 ? _e$description : ""
|
|
103
105
|
};
|
|
104
106
|
},
|
|
105
|
-
|
|
107
|
+
M = function M() {
|
|
106
108
|
return sessionStorage.getItem("languages");
|
|
107
109
|
},
|
|
108
|
-
|
|
110
|
+
N = function N() {
|
|
109
111
|
var _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10, _ref11;
|
|
110
112
|
var e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
|
|
111
113
|
var t = config.getConfig();
|
|
@@ -123,7 +125,7 @@ var f = function f(e) {
|
|
|
123
125
|
optional: (_ref11 = e == null ? undefined : e.leaf) !== null && _ref11 !== void 0 ? _ref11 : true
|
|
124
126
|
};
|
|
125
127
|
},
|
|
126
|
-
|
|
128
|
+
E = function E() {
|
|
127
129
|
var _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31, _ref32;
|
|
128
130
|
var e = JSON.parse(sessionStorage.getItem("project-message") || "{}");
|
|
129
131
|
return {
|
|
@@ -150,7 +152,7 @@ var f = function f(e) {
|
|
|
150
152
|
currency: (_ref32 = e == null ? undefined : e.currency) !== null && _ref32 !== void 0 ? _ref32 : {}
|
|
151
153
|
};
|
|
152
154
|
},
|
|
153
|
-
|
|
155
|
+
k = function k() {
|
|
154
156
|
var _ref33, _ref34, _ref35, _ref36, _ref37, _ref38, _ref39;
|
|
155
157
|
var e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
|
|
156
158
|
return {
|
|
@@ -163,7 +165,7 @@ var f = function f(e) {
|
|
|
163
165
|
type: (_ref39 = e == null ? undefined : e.type) !== null && _ref39 !== void 0 ? _ref39 : null
|
|
164
166
|
};
|
|
165
167
|
},
|
|
166
|
-
|
|
168
|
+
U = function U() {
|
|
167
169
|
var _ref40, _ref41;
|
|
168
170
|
var e = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
|
|
169
171
|
return {
|
|
@@ -171,14 +173,14 @@ var f = function f(e) {
|
|
|
171
173
|
skinStyle: (_ref41 = e == null ? undefined : e.skinStyle) !== null && _ref41 !== void 0 ? _ref41 : ""
|
|
172
174
|
};
|
|
173
175
|
},
|
|
174
|
-
|
|
175
|
-
return e ?
|
|
176
|
+
j = function j(e, t) {
|
|
177
|
+
return e ? S()[e] : undefined;
|
|
176
178
|
},
|
|
177
|
-
|
|
178
|
-
var
|
|
179
|
-
return (
|
|
179
|
+
v = function v(e, t) {
|
|
180
|
+
var _j;
|
|
181
|
+
return (_j = j(e)) !== null && _j !== void 0 ? _j : [];
|
|
180
182
|
},
|
|
181
|
-
|
|
183
|
+
f = function f() {
|
|
182
184
|
var _e$appcategorys, _e$currentSubApp, _e$currentSubAppCode, _e$subAppList, _e$menuCollapses;
|
|
183
185
|
var e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
|
|
184
186
|
return {
|
|
@@ -189,28 +191,28 @@ var f = function f(e) {
|
|
|
189
191
|
menuCollapses: (_e$menuCollapses = e.menuCollapses) !== null && _e$menuCollapses !== void 0 ? _e$menuCollapses : []
|
|
190
192
|
};
|
|
191
193
|
},
|
|
192
|
-
|
|
194
|
+
D = function D(e) {
|
|
193
195
|
var _ref42, _ref43;
|
|
194
196
|
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
195
|
-
var n,
|
|
196
|
-
var s =
|
|
197
|
-
if (e) return t ? (_ref42 = (n = s == null ? undefined : s.find(function (
|
|
198
|
-
return
|
|
199
|
-
})) == null ? undefined : n.originalMenus) !== null && _ref42 !== void 0 ? _ref42 : [] : (_ref43 = (
|
|
200
|
-
return
|
|
201
|
-
})) == null ? undefined :
|
|
197
|
+
var n, p;
|
|
198
|
+
var s = f().subAppList;
|
|
199
|
+
if (e) return t ? (_ref42 = (n = s == null ? undefined : s.find(function (o) {
|
|
200
|
+
return o.code === e;
|
|
201
|
+
})) == null ? undefined : n.originalMenus) !== null && _ref42 !== void 0 ? _ref42 : [] : (_ref43 = (p = s == null ? undefined : s.find(function (o) {
|
|
202
|
+
return o.code === e;
|
|
203
|
+
})) == null ? undefined : p.menus) !== null && _ref43 !== void 0 ? _ref43 : [];
|
|
202
204
|
{
|
|
203
|
-
var
|
|
204
|
-
return t ? s == null || s.forEach(function (
|
|
205
|
-
var
|
|
206
|
-
r
|
|
207
|
-
}) : s == null || s.forEach(function (
|
|
208
|
-
var
|
|
209
|
-
r
|
|
210
|
-
}),
|
|
205
|
+
var o = {};
|
|
206
|
+
return t ? s == null || s.forEach(function (r) {
|
|
207
|
+
var _r$originalMenus;
|
|
208
|
+
o[r.code] = (_r$originalMenus = r.originalMenus) !== null && _r$originalMenus !== void 0 ? _r$originalMenus : [];
|
|
209
|
+
}) : s == null || s.forEach(function (r) {
|
|
210
|
+
var _r$menus;
|
|
211
|
+
o[r.code] = (_r$menus = r.menus) !== null && _r$menus !== void 0 ? _r$menus : [];
|
|
212
|
+
}), o;
|
|
211
213
|
}
|
|
212
214
|
},
|
|
213
|
-
|
|
215
|
+
z = function z() {
|
|
214
216
|
var _e$currentCode, _e$currentTab, _e$tabMap, _e$preTab;
|
|
215
217
|
var e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
|
|
216
218
|
return {
|
|
@@ -220,40 +222,40 @@ var f = function f(e) {
|
|
|
220
222
|
preTab: (_e$preTab = e.preTab) !== null && _e$preTab !== void 0 ? _e$preTab : {}
|
|
221
223
|
};
|
|
222
224
|
},
|
|
223
|
-
|
|
225
|
+
L = function L() {
|
|
224
226
|
var e = config.getConfig(),
|
|
225
227
|
t = sessionStorage.getItem("minioAddress");
|
|
226
228
|
return t || (e.baseURL ? e.baseURL : location.origin);
|
|
227
229
|
},
|
|
228
|
-
|
|
230
|
+
w = function w() {
|
|
229
231
|
var _JSON$parse$instanceI;
|
|
230
232
|
return {
|
|
231
233
|
instanceInfo: (_JSON$parse$instanceI = JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo) !== null && _JSON$parse$instanceI !== void 0 ? _JSON$parse$instanceI : {}
|
|
232
234
|
};
|
|
233
235
|
},
|
|
234
|
-
|
|
236
|
+
Q = function Q() {
|
|
235
237
|
return localStorage.getItem("fav-icon") || "./logo.svg";
|
|
236
238
|
};
|
|
237
|
-
|
|
238
|
-
var
|
|
239
|
-
(
|
|
240
|
-
exports.getAuthobj =
|
|
241
|
-
exports.getFavIcon =
|
|
242
|
-
exports.getHomeInfo =
|
|
243
|
-
exports.getInstanceInfo =
|
|
244
|
-
exports.getLanguages =
|
|
245
|
-
exports.getMenuItemInfo =
|
|
246
|
-
exports.getMenuListnfo =
|
|
247
|
-
exports.getMenus =
|
|
248
|
-
exports.getMinioAddress =
|
|
249
|
-
exports.getPageAuth =
|
|
250
|
-
exports.getPageAuthBtn =
|
|
251
|
-
exports.getPersonalConfig =
|
|
252
|
-
exports.getPersonalInfo =
|
|
253
|
-
exports.getProjectInfo =
|
|
254
|
-
exports.getProjectMessage =
|
|
255
|
-
exports.getSubApps =
|
|
256
|
-
exports.getTabInfo =
|
|
257
|
-
exports.getTenantInfo =
|
|
258
|
-
exports.getToken =
|
|
259
|
-
exports.getUserInfo =
|
|
239
|
+
h() || getInfoFromUrl.getTokenFromQuery();
|
|
240
|
+
var i;
|
|
241
|
+
(i = N()) != null && i.id || getInfoFromUrl.getProjectInfoFromQuery();
|
|
242
|
+
exports.getAuthobj = S;
|
|
243
|
+
exports.getFavIcon = Q;
|
|
244
|
+
exports.getHomeInfo = k;
|
|
245
|
+
exports.getInstanceInfo = w;
|
|
246
|
+
exports.getLanguages = M;
|
|
247
|
+
exports.getMenuItemInfo = T;
|
|
248
|
+
exports.getMenuListnfo = F;
|
|
249
|
+
exports.getMenus = D;
|
|
250
|
+
exports.getMinioAddress = L;
|
|
251
|
+
exports.getPageAuth = j;
|
|
252
|
+
exports.getPageAuthBtn = v;
|
|
253
|
+
exports.getPersonalConfig = U;
|
|
254
|
+
exports.getPersonalInfo = A;
|
|
255
|
+
exports.getProjectInfo = N;
|
|
256
|
+
exports.getProjectMessage = E;
|
|
257
|
+
exports.getSubApps = f;
|
|
258
|
+
exports.getTabInfo = z;
|
|
259
|
+
exports.getTenantInfo = x;
|
|
260
|
+
exports.getToken = h;
|
|
261
|
+
exports.getUserInfo = J;
|
package/common-info/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getConfig as
|
|
2
|
-
import { getAccessToken as
|
|
3
|
-
import { getTokenFromQuery as
|
|
4
|
-
const
|
|
1
|
+
import { getConfig as d } from "@das-fed/upf-utils/config";
|
|
2
|
+
import { getAccessToken as I } from "@das-fed/upf-utils/token-tools";
|
|
3
|
+
import { getTokenFromQuery as C, getProjectInfoFromQuery as y } from "@das-fed/upf-utils/common-info/getInfoFromUrl";
|
|
4
|
+
const T = (e) => {
|
|
5
5
|
const t = e || JSON.parse(sessionStorage.getItem("menuItem") || "{}");
|
|
6
6
|
return {
|
|
7
7
|
authCodes: t.rightFuncCodes ?? [],
|
|
@@ -14,29 +14,31 @@ const f = (e) => {
|
|
|
14
14
|
showName: t.showName ?? "",
|
|
15
15
|
type: (t == null ? void 0 : t.type) ?? ""
|
|
16
16
|
};
|
|
17
|
-
},
|
|
17
|
+
}, F = () => JSON.parse(sessionStorage.getItem("menuList") || "[]"), S = () => {
|
|
18
18
|
const e = JSON.parse(sessionStorage.getItem("menuList") || "[]"), t = {};
|
|
19
19
|
return e.forEach((s) => {
|
|
20
20
|
s.appId && (s.rightFuncCodes && s.rightFuncCodes.forEach((n) => t[n] = []), s.children && s.children.forEach((n) => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
var p, o;
|
|
22
|
+
if (n.routeCode && (t[n.routeCode] = []), n.rightFuncCodes && n.rightFuncCodes[0] && !n.children) {
|
|
23
|
+
const r = (p = n.rightFuncCodes[0]) == null ? void 0 : p.lastIndexOf("."), g = (o = n.rightFuncCodes[0]) == null ? void 0 : o.slice(0, r);
|
|
24
|
+
t[g] = [], n.rightFuncCodes.forEach((a) => {
|
|
25
|
+
const l = a == null ? void 0 : a.lastIndexOf(".");
|
|
26
|
+
t[g].push({ code: a == null ? void 0 : a.slice(l + 1) });
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
|
-
n.children && n.children.forEach((
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
n.children && n.children.forEach((r) => {
|
|
30
|
+
var g, a;
|
|
31
|
+
if (r.routeCode && (t[r.routeCode] = []), r.rightFuncCodes) {
|
|
32
|
+
const l = (g = r.rightFuncCodes[0]) == null ? void 0 : g.lastIndexOf("."), u = (a = r.rightFuncCodes[0]) == null ? void 0 : a.slice(0, l);
|
|
33
|
+
t[u] = [], r.rightFuncCodes.forEach((c) => {
|
|
34
|
+
const m = c == null ? void 0 : c.lastIndexOf(".");
|
|
35
|
+
t[u].push({ code: c == null ? void 0 : c.slice(m + 1) });
|
|
34
36
|
});
|
|
35
37
|
}
|
|
36
38
|
});
|
|
37
39
|
}));
|
|
38
40
|
}), t;
|
|
39
|
-
},
|
|
41
|
+
}, h = I, J = () => {
|
|
40
42
|
var s;
|
|
41
43
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
42
44
|
return {
|
|
@@ -45,9 +47,9 @@ const f = (e) => {
|
|
|
45
47
|
flag: e.flag ?? null,
|
|
46
48
|
tenantId: ((s = e == null ? void 0 : e.tenant) == null ? void 0 : s.id) ?? ""
|
|
47
49
|
};
|
|
48
|
-
},
|
|
50
|
+
}, A = () => {
|
|
49
51
|
let e = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
|
|
50
|
-
const t =
|
|
52
|
+
const t = d();
|
|
51
53
|
return JSON.stringify(e) === "{}" && t.personalInfo && (e = t.personalInfo), {
|
|
52
54
|
id: e.id ?? "",
|
|
53
55
|
name: e.name ?? "",
|
|
@@ -56,7 +58,7 @@ const f = (e) => {
|
|
|
56
58
|
email: e.email ?? "",
|
|
57
59
|
headPicture: e.headPicture ?? ""
|
|
58
60
|
};
|
|
59
|
-
},
|
|
61
|
+
}, x = () => {
|
|
60
62
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
61
63
|
return {
|
|
62
64
|
userId: e.id ?? "",
|
|
@@ -78,9 +80,9 @@ const f = (e) => {
|
|
|
78
80
|
address: e.address ?? "",
|
|
79
81
|
description: e.description ?? ""
|
|
80
82
|
};
|
|
81
|
-
},
|
|
83
|
+
}, M = () => sessionStorage.getItem("languages"), N = () => {
|
|
82
84
|
let e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
|
|
83
|
-
const t =
|
|
85
|
+
const t = d();
|
|
84
86
|
return JSON.stringify(e) === "{}" && t.projectInfo && (e = t.projectInfo), {
|
|
85
87
|
id: (e == null ? void 0 : e.id) ?? 0,
|
|
86
88
|
code: (e == null ? void 0 : e.code) ?? 0,
|
|
@@ -94,7 +96,7 @@ const f = (e) => {
|
|
|
94
96
|
leaf: (e == null ? void 0 : e.leaf) ?? !1,
|
|
95
97
|
optional: (e == null ? void 0 : e.leaf) ?? !0
|
|
96
98
|
};
|
|
97
|
-
},
|
|
99
|
+
}, E = () => {
|
|
98
100
|
let e = JSON.parse(sessionStorage.getItem("project-message") || "{}");
|
|
99
101
|
return {
|
|
100
102
|
id: (e == null ? void 0 : e.id) ?? 0,
|
|
@@ -119,7 +121,7 @@ const f = (e) => {
|
|
|
119
121
|
autoTimezone: (e == null ? void 0 : e.autoTimezone) ?? !1,
|
|
120
122
|
currency: (e == null ? void 0 : e.currency) ?? {}
|
|
121
123
|
};
|
|
122
|
-
},
|
|
124
|
+
}, k = () => {
|
|
123
125
|
const e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
|
|
124
126
|
return {
|
|
125
127
|
applicationCode: (e == null ? void 0 : e.applicationCode) ?? "",
|
|
@@ -130,13 +132,13 @@ const f = (e) => {
|
|
|
130
132
|
displayPosition: (e == null ? void 0 : e.displayPosition) ?? 1,
|
|
131
133
|
type: (e == null ? void 0 : e.type) ?? null
|
|
132
134
|
};
|
|
133
|
-
},
|
|
135
|
+
}, U = () => {
|
|
134
136
|
const e = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
|
|
135
137
|
return {
|
|
136
138
|
style: (e == null ? void 0 : e.style) ?? "",
|
|
137
139
|
skinStyle: (e == null ? void 0 : e.skinStyle) ?? ""
|
|
138
140
|
};
|
|
139
|
-
},
|
|
141
|
+
}, j = (e, t) => e ? S()[e] : void 0, v = (e, t) => j(e) ?? [], f = () => {
|
|
140
142
|
const e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
|
|
141
143
|
return {
|
|
142
144
|
appcategorys: e.appcategorys ?? [],
|
|
@@ -145,20 +147,20 @@ const f = (e) => {
|
|
|
145
147
|
subAppList: e.subAppList ?? [],
|
|
146
148
|
menuCollapses: e.menuCollapses ?? []
|
|
147
149
|
};
|
|
148
|
-
},
|
|
149
|
-
var n,
|
|
150
|
-
const s =
|
|
150
|
+
}, D = (e, t = !1) => {
|
|
151
|
+
var n, p;
|
|
152
|
+
const s = f().subAppList;
|
|
151
153
|
if (e)
|
|
152
|
-
return t ? ((n = s == null ? void 0 : s.find((
|
|
154
|
+
return t ? ((n = s == null ? void 0 : s.find((o) => o.code === e)) == null ? void 0 : n.originalMenus) ?? [] : ((p = s == null ? void 0 : s.find((o) => o.code === e)) == null ? void 0 : p.menus) ?? [];
|
|
153
155
|
{
|
|
154
|
-
let
|
|
155
|
-
return t ? s == null || s.forEach((
|
|
156
|
-
r
|
|
157
|
-
}) : s == null || s.forEach((
|
|
158
|
-
r
|
|
159
|
-
}),
|
|
156
|
+
let o = {};
|
|
157
|
+
return t ? s == null || s.forEach((r) => {
|
|
158
|
+
o[r.code] = r.originalMenus ?? [];
|
|
159
|
+
}) : s == null || s.forEach((r) => {
|
|
160
|
+
o[r.code] = r.menus ?? [];
|
|
161
|
+
}), o;
|
|
160
162
|
}
|
|
161
|
-
},
|
|
163
|
+
}, z = () => {
|
|
162
164
|
const e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
|
|
163
165
|
return {
|
|
164
166
|
currentCode: e.currentCode ?? "",
|
|
@@ -166,34 +168,34 @@ const f = (e) => {
|
|
|
166
168
|
tabMap: e.tabMap ?? {},
|
|
167
169
|
preTab: e.preTab ?? {}
|
|
168
170
|
};
|
|
169
|
-
},
|
|
170
|
-
const e =
|
|
171
|
+
}, L = () => {
|
|
172
|
+
const e = d(), t = sessionStorage.getItem("minioAddress");
|
|
171
173
|
return t || (e.baseURL ? e.baseURL : location.origin);
|
|
172
|
-
},
|
|
174
|
+
}, w = () => ({
|
|
173
175
|
instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
|
|
174
|
-
}),
|
|
175
|
-
|
|
176
|
-
var
|
|
177
|
-
(
|
|
176
|
+
}), Q = () => localStorage.getItem("fav-icon") || "./logo.svg";
|
|
177
|
+
h() || C();
|
|
178
|
+
var i;
|
|
179
|
+
(i = N()) != null && i.id || y();
|
|
178
180
|
export {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
181
|
+
S as getAuthobj,
|
|
182
|
+
Q as getFavIcon,
|
|
183
|
+
k as getHomeInfo,
|
|
184
|
+
w as getInstanceInfo,
|
|
185
|
+
M as getLanguages,
|
|
186
|
+
T as getMenuItemInfo,
|
|
187
|
+
F as getMenuListnfo,
|
|
188
|
+
D as getMenus,
|
|
189
|
+
L as getMinioAddress,
|
|
190
|
+
j as getPageAuth,
|
|
191
|
+
v as getPageAuthBtn,
|
|
192
|
+
U as getPersonalConfig,
|
|
193
|
+
A as getPersonalInfo,
|
|
194
|
+
N as getProjectInfo,
|
|
195
|
+
E as getProjectMessage,
|
|
196
|
+
f as getSubApps,
|
|
197
|
+
z as getTabInfo,
|
|
198
|
+
x as getTenantInfo,
|
|
199
|
+
h as getToken,
|
|
200
|
+
J as getUserInfo
|
|
199
201
|
};
|
package/common-info/index.js.gz
CHANGED
|
Binary file
|