@das-fed/upf-utils 6.4.0-dev.209 → 6.4.0-dev.210
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 +1438 -1450
- package/api-services/index.js +1172 -1185
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +940 -931
- package/api-services/modules/app-manage/index.js +769 -750
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +2 -2
- package/api-services/modules/authentication/index.js +7 -2
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +2 -2
- package/api-services/modules/bems/index.js +7 -2
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +955 -967
- package/api-services/modules/contract/index.js +775 -788
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +824 -827
- package/api-services/modules/duty-manage/index.js +641 -640
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +2 -2
- package/api-services/modules/enterpriseright/index.js +7 -2
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +2 -2
- package/api-services/modules/file/es5.js +2 -2
- package/api-services/modules/file/index.js +7 -2
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +967 -955
- package/api-services/modules/gateway-edge/index.js +793 -770
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +7 -2
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +960 -972
- package/api-services/modules/iot/index.js +775 -788
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +801 -803
- package/api-services/modules/justauth/index.js +625 -624
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +2 -2
- package/api-services/modules/knowledge/index.js +7 -2
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +931 -940
- package/api-services/modules/link/index.js +755 -764
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +2 -2
- package/api-services/modules/permission/index.js +7 -2
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +953 -941
- package/api-services/modules/platformManage/index.js +777 -754
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +967 -955
- package/api-services/modules/portal/index.js +793 -770
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +2 -2
- package/api-services/modules/space-manage/index.js +7 -2
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +970 -982
- package/api-services/modules/super-admin/index.js +787 -800
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +552 -552
- package/api-services/modules/supplier/index.js +501 -496
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +955 -967
- package/api-services/modules/supplychain-manage/index.js +775 -788
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +2 -2
- package/api-services/modules/systemConfiguration/index.js +7 -2
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +2 -2
- package/api-services/modules/tool/index.js +7 -2
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +929 -938
- package/api-services/src/create-service/index.js +754 -763
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +24 -22
- package/common-info/getInfoFromUrl/es5.js +40 -40
- package/common-info/getInfoFromUrl/index.js +36 -36
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.js +21 -17
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.js +22 -22
- package/common-info/set-personal-info/index.js +25 -20
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-tools/extract-file-name/es5.js +2 -2
- package/common-tools/extract-file-name/index.js +7 -2
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/handle-data/es5.js +118 -111
- package/common-tools/handle-data/index.js +89 -86
- package/common-tools/handle-data/index.js.gz +0 -0
- package/create-api-service/check-token/es5.js +127 -125
- package/create-api-service/check-token/index.js +123 -118
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +953 -965
- package/create-api-service/index.js +774 -787
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/es5.js +3 -3
- package/create-api-service/sso/index.js +8 -3
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/es5.js +2 -2
- package/curring-http/index.js +7 -2
- package/curring-http/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/es5.js +1 -1
- package/pinyin-first-character/index.js +1 -1
- package/pinyin-first-character/index.js.gz +0 -0
- package/webSocket-service/es5.js +53 -41
- package/webSocket-service/index.js +50 -40
- package/webSocket-service/index.js.gz +0 -0
|
Binary file
|
package/common-info/es5.js
CHANGED
|
@@ -29,29 +29,29 @@ var f = function f(e) {
|
|
|
29
29
|
return t[n] = [];
|
|
30
30
|
}), s.children && s.children.forEach(function (n) {
|
|
31
31
|
if (n.rightFuncCodes && n.rightFuncCodes[0] && !n.children) {
|
|
32
|
-
var
|
|
33
|
-
r = n.rightFuncCodes[0].slice(0,
|
|
34
|
-
t[r] = [], n.rightFuncCodes.forEach(function (
|
|
35
|
-
var c =
|
|
32
|
+
var a = n.rightFuncCodes[0].lastIndexOf("."),
|
|
33
|
+
r = n.rightFuncCodes[0].slice(0, a);
|
|
34
|
+
t[r] = [], n.rightFuncCodes.forEach(function (o) {
|
|
35
|
+
var c = o.lastIndexOf(".");
|
|
36
36
|
t[r].push({
|
|
37
|
-
code:
|
|
37
|
+
code: o.slice(c + 1)
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
n.children && n.children.forEach(function (
|
|
42
|
-
if (
|
|
43
|
-
var _r =
|
|
44
|
-
|
|
45
|
-
t[
|
|
41
|
+
n.children && n.children.forEach(function (a) {
|
|
42
|
+
if (a.rightFuncCodes) {
|
|
43
|
+
var _r = a.rightFuncCodes[0].lastIndexOf("."),
|
|
44
|
+
o = a.rightFuncCodes[0].slice(0, _r);
|
|
45
|
+
t[o] = [], a.rightFuncCodes.forEach(function (c) {
|
|
46
46
|
var g = c.lastIndexOf(".");
|
|
47
|
-
t[
|
|
47
|
+
t[o].push({
|
|
48
48
|
code: c.slice(g + 1)
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
}));
|
|
54
|
-
}), t;
|
|
54
|
+
}), console.log("authobj", t), t;
|
|
55
55
|
},
|
|
56
56
|
I = tokenTools.getAccessToken,
|
|
57
57
|
b = function b() {
|
|
@@ -172,7 +172,9 @@ var f = function f(e) {
|
|
|
172
172
|
};
|
|
173
173
|
},
|
|
174
174
|
y = function y(e, t) {
|
|
175
|
-
|
|
175
|
+
if (!e) return;
|
|
176
|
+
var s = m()[e];
|
|
177
|
+
return console.log("getPageAuth", s), s;
|
|
176
178
|
},
|
|
177
179
|
M = function M(e, t) {
|
|
178
180
|
var _y;
|
|
@@ -192,21 +194,21 @@ var f = function f(e) {
|
|
|
192
194
|
E = function E(e) {
|
|
193
195
|
var _ref42, _ref43;
|
|
194
196
|
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
195
|
-
var n,
|
|
197
|
+
var n, a;
|
|
196
198
|
var s = C().subAppList;
|
|
197
199
|
if (e) return t ? (_ref42 = (n = s == null ? undefined : s.find(function (r) {
|
|
198
200
|
return r.code === e;
|
|
199
|
-
})) == null ? undefined : n.originalMenus) !== null && _ref42 !== void 0 ? _ref42 : [] : (_ref43 = (
|
|
201
|
+
})) == null ? undefined : n.originalMenus) !== null && _ref42 !== void 0 ? _ref42 : [] : (_ref43 = (a = s == null ? undefined : s.find(function (r) {
|
|
200
202
|
return r.code === e;
|
|
201
|
-
})) == null ? undefined :
|
|
203
|
+
})) == null ? undefined : a.menus) !== null && _ref43 !== void 0 ? _ref43 : [];
|
|
202
204
|
{
|
|
203
205
|
var r = {};
|
|
204
|
-
return t ? s == null || s.forEach(function (
|
|
205
|
-
var
|
|
206
|
-
r[
|
|
207
|
-
}) : s == null || s.forEach(function (
|
|
208
|
-
var
|
|
209
|
-
r[
|
|
206
|
+
return t ? s == null || s.forEach(function (o) {
|
|
207
|
+
var _o$originalMenus;
|
|
208
|
+
r[o.code] = (_o$originalMenus = o.originalMenus) !== null && _o$originalMenus !== void 0 ? _o$originalMenus : [];
|
|
209
|
+
}) : s == null || s.forEach(function (o) {
|
|
210
|
+
var _o$menus;
|
|
211
|
+
r[o.code] = (_o$menus = o.menus) !== null && _o$menus !== void 0 ? _o$menus : [];
|
|
210
212
|
}), r;
|
|
211
213
|
}
|
|
212
214
|
},
|
|
@@ -7,10 +7,10 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
7
7
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
8
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
9
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
-
function
|
|
11
|
-
for (var
|
|
12
|
-
var t = arguments[
|
|
13
|
-
for (var
|
|
10
|
+
function p(e) {
|
|
11
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
12
|
+
var t = arguments[n];
|
|
13
|
+
for (var i in t) e[i] = t[i];
|
|
14
14
|
}
|
|
15
15
|
return e;
|
|
16
16
|
}
|
|
@@ -22,73 +22,73 @@ var u = {
|
|
|
22
22
|
return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function g(e,
|
|
26
|
-
function t(
|
|
25
|
+
function g(e, n) {
|
|
26
|
+
function t(o, f, r) {
|
|
27
27
|
if (!((typeof document === "undefined" ? "undefined" : _typeof(document)) > "u")) {
|
|
28
|
-
r =
|
|
28
|
+
r = p({}, n, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
29
29
|
var c = "";
|
|
30
|
-
for (var
|
|
31
|
-
return document.cookie =
|
|
30
|
+
for (var s in r) r[s] && (c += "; " + s, r[s] !== true && (c += "=" + r[s].split(";")[0]));
|
|
31
|
+
return document.cookie = o + "=" + e.write(f, o) + c;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
if (!((typeof document === "undefined" ? "undefined" : _typeof(document)) > "u" || arguments.length && !
|
|
34
|
+
function i(o) {
|
|
35
|
+
if (!((typeof document === "undefined" ? "undefined" : _typeof(document)) > "u" || arguments.length && !o)) {
|
|
36
36
|
for (var f = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < f.length; c++) {
|
|
37
|
-
var
|
|
38
|
-
d =
|
|
37
|
+
var s = f[c].split("="),
|
|
38
|
+
d = s.slice(1).join("=");
|
|
39
39
|
try {
|
|
40
|
-
var
|
|
41
|
-
if (r[
|
|
40
|
+
var a = decodeURIComponent(s[0]);
|
|
41
|
+
if (r[a] = e.read(d, a), o === a) break;
|
|
42
42
|
} catch (_unused) {}
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return o ? r[o] : r;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
return Object.create({
|
|
48
48
|
set: t,
|
|
49
|
-
get:
|
|
50
|
-
remove: function remove(
|
|
51
|
-
t(
|
|
49
|
+
get: i,
|
|
50
|
+
remove: function remove(o, f) {
|
|
51
|
+
t(o, "", p({}, f, {
|
|
52
52
|
expires: -1
|
|
53
53
|
}));
|
|
54
54
|
},
|
|
55
|
-
withAttributes: function withAttributes(
|
|
56
|
-
return g(this.converter,
|
|
55
|
+
withAttributes: function withAttributes(o) {
|
|
56
|
+
return g(this.converter, p({}, this.attributes, o));
|
|
57
57
|
},
|
|
58
|
-
withConverter: function withConverter(
|
|
59
|
-
return g(
|
|
58
|
+
withConverter: function withConverter(o) {
|
|
59
|
+
return g(p({}, this.converter, o), this.attributes);
|
|
60
60
|
}
|
|
61
61
|
}, {
|
|
62
62
|
attributes: {
|
|
63
|
-
value: Object.freeze(
|
|
63
|
+
value: Object.freeze(n)
|
|
64
64
|
},
|
|
65
65
|
converter: {
|
|
66
66
|
value: Object.freeze(e)
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var l = g(u, {
|
|
71
71
|
path: "/"
|
|
72
72
|
});
|
|
73
|
-
var
|
|
73
|
+
var m = function m() {
|
|
74
74
|
var e = new URL(location.href).searchParams,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
access_token:
|
|
78
|
-
}),
|
|
75
|
+
n = e.get("token") || e.get("accessToken") || e.get("accesstoken") || "";
|
|
76
|
+
n && (console.log("从url上取token:", n), JSON.stringify({
|
|
77
|
+
access_token: n
|
|
78
|
+
}), l.set("accessToken", n));
|
|
79
79
|
},
|
|
80
|
-
|
|
80
|
+
v = function v() {
|
|
81
81
|
var e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}"),
|
|
82
|
-
|
|
83
|
-
t =
|
|
82
|
+
n = new URL(location.href).searchParams,
|
|
83
|
+
t = n.get("project") || n.get("projectId") || "";
|
|
84
84
|
if (!t) return;
|
|
85
|
-
var
|
|
86
|
-
|
|
87
|
-
sessionStorage.setItem("project", t), sessionStorage.setItem("projectInfo", JSON.stringify(_objectSpread(_objectSpread({}, e), {}, {
|
|
85
|
+
var i = n.get("projectParent") || n.get("projectParentId") || (e == null ? undefined : e.parentId) || "",
|
|
86
|
+
o = n.get("projectName") || (e == null ? undefined : e.name) || "";
|
|
87
|
+
console.log("从url上取project:", t), sessionStorage.setItem("project", t), sessionStorage.setItem("projectInfo", JSON.stringify(_objectSpread(_objectSpread({}, e), {}, {
|
|
88
88
|
id: t,
|
|
89
|
-
name:
|
|
90
|
-
parentId:
|
|
89
|
+
name: o,
|
|
90
|
+
parentId: i
|
|
91
91
|
})));
|
|
92
92
|
};
|
|
93
|
-
exports.getProjectInfoFromQuery =
|
|
94
|
-
exports.getTokenFromQuery =
|
|
93
|
+
exports.getProjectInfoFromQuery = v;
|
|
94
|
+
exports.getTokenFromQuery = m;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*! js-cookie v3.0.5 | MIT */
|
|
2
|
-
function
|
|
3
|
-
for (var
|
|
4
|
-
var t = arguments[
|
|
5
|
-
for (var
|
|
6
|
-
e[
|
|
2
|
+
function p(e) {
|
|
3
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
4
|
+
var t = arguments[n];
|
|
5
|
+
for (var i in t)
|
|
6
|
+
e[i] = t[i];
|
|
7
7
|
}
|
|
8
8
|
return e;
|
|
9
9
|
}
|
|
@@ -18,67 +18,67 @@ var u = {
|
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
function g(e,
|
|
22
|
-
function t(
|
|
21
|
+
function g(e, n) {
|
|
22
|
+
function t(o, f, r) {
|
|
23
23
|
if (!(typeof document > "u")) {
|
|
24
|
-
r =
|
|
24
|
+
r = p({}, n, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
25
25
|
var c = "";
|
|
26
|
-
for (var
|
|
27
|
-
r[
|
|
28
|
-
return document.cookie =
|
|
26
|
+
for (var s in r)
|
|
27
|
+
r[s] && (c += "; " + s, r[s] !== !0 && (c += "=" + r[s].split(";")[0]));
|
|
28
|
+
return document.cookie = o + "=" + e.write(f, o) + c;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
if (!(typeof document > "u" || arguments.length && !
|
|
31
|
+
function i(o) {
|
|
32
|
+
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
33
33
|
for (var f = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < f.length; c++) {
|
|
34
|
-
var
|
|
34
|
+
var s = f[c].split("="), d = s.slice(1).join("=");
|
|
35
35
|
try {
|
|
36
|
-
var
|
|
37
|
-
if (r[
|
|
36
|
+
var a = decodeURIComponent(s[0]);
|
|
37
|
+
if (r[a] = e.read(d, a), o === a)
|
|
38
38
|
break;
|
|
39
39
|
} catch {
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return o ? r[o] : r;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
return Object.create(
|
|
46
46
|
{
|
|
47
47
|
set: t,
|
|
48
|
-
get:
|
|
49
|
-
remove: function(
|
|
48
|
+
get: i,
|
|
49
|
+
remove: function(o, f) {
|
|
50
50
|
t(
|
|
51
|
-
|
|
51
|
+
o,
|
|
52
52
|
"",
|
|
53
|
-
|
|
53
|
+
p({}, f, {
|
|
54
54
|
expires: -1
|
|
55
55
|
})
|
|
56
56
|
);
|
|
57
57
|
},
|
|
58
|
-
withAttributes: function(
|
|
59
|
-
return g(this.converter,
|
|
58
|
+
withAttributes: function(o) {
|
|
59
|
+
return g(this.converter, p({}, this.attributes, o));
|
|
60
60
|
},
|
|
61
|
-
withConverter: function(
|
|
62
|
-
return g(
|
|
61
|
+
withConverter: function(o) {
|
|
62
|
+
return g(p({}, this.converter, o), this.attributes);
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
attributes: { value: Object.freeze(
|
|
66
|
+
attributes: { value: Object.freeze(n) },
|
|
67
67
|
converter: { value: Object.freeze(e) }
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
const
|
|
73
|
-
const e = new URL(location.href).searchParams,
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
const e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}"),
|
|
71
|
+
var l = g(u, { path: "/" });
|
|
72
|
+
const m = () => {
|
|
73
|
+
const e = new URL(location.href).searchParams, n = e.get("token") || e.get("accessToken") || e.get("accesstoken") || "";
|
|
74
|
+
n && (console.log("从url上取token:", n), JSON.stringify({ access_token: n }), l.set("accessToken", n));
|
|
75
|
+
}, v = () => {
|
|
76
|
+
const e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}"), n = new URL(location.href).searchParams, t = n.get("project") || n.get("projectId") || "";
|
|
77
77
|
if (!t) return;
|
|
78
|
-
const
|
|
79
|
-
sessionStorage.setItem("project", t), sessionStorage.setItem("projectInfo", JSON.stringify({ ...e, id: t, name:
|
|
78
|
+
const i = n.get("projectParent") || n.get("projectParentId") || (e == null ? void 0 : e.parentId) || "", o = n.get("projectName") || (e == null ? void 0 : e.name) || "";
|
|
79
|
+
console.log("从url上取project:", t), sessionStorage.setItem("project", t), sessionStorage.setItem("projectInfo", JSON.stringify({ ...e, id: t, name: o, parentId: i }));
|
|
80
80
|
};
|
|
81
81
|
export {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
v as getProjectInfoFromQuery,
|
|
83
|
+
m as getTokenFromQuery
|
|
84
84
|
};
|
|
Binary file
|
package/common-info/index.js
CHANGED
|
@@ -19,23 +19,23 @@ const f = (e) => {
|
|
|
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
21
|
if (n.rightFuncCodes && n.rightFuncCodes[0] && !n.children) {
|
|
22
|
-
const
|
|
23
|
-
t[r] = [], n.rightFuncCodes.forEach((
|
|
24
|
-
const c =
|
|
25
|
-
t[r].push({ code:
|
|
22
|
+
const a = n.rightFuncCodes[0].lastIndexOf("."), r = n.rightFuncCodes[0].slice(0, a);
|
|
23
|
+
t[r] = [], n.rightFuncCodes.forEach((o) => {
|
|
24
|
+
const c = o.lastIndexOf(".");
|
|
25
|
+
t[r].push({ code: o.slice(c + 1) });
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
n.children && n.children.forEach((
|
|
29
|
-
if (
|
|
30
|
-
const r =
|
|
31
|
-
t[
|
|
28
|
+
n.children && n.children.forEach((a) => {
|
|
29
|
+
if (a.rightFuncCodes) {
|
|
30
|
+
const r = a.rightFuncCodes[0].lastIndexOf("."), o = a.rightFuncCodes[0].slice(0, r);
|
|
31
|
+
t[o] = [], a.rightFuncCodes.forEach((c) => {
|
|
32
32
|
const g = c.lastIndexOf(".");
|
|
33
|
-
t[
|
|
33
|
+
t[o].push({ code: c.slice(g + 1) });
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
}));
|
|
38
|
-
}), t;
|
|
38
|
+
}), console.log("authobj", t), t;
|
|
39
39
|
}, I = l, b = () => {
|
|
40
40
|
var s;
|
|
41
41
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
@@ -136,7 +136,11 @@ const f = (e) => {
|
|
|
136
136
|
style: (e == null ? void 0 : e.style) ?? "",
|
|
137
137
|
skinStyle: (e == null ? void 0 : e.skinStyle) ?? ""
|
|
138
138
|
};
|
|
139
|
-
}, y = (e, t) =>
|
|
139
|
+
}, y = (e, t) => {
|
|
140
|
+
if (!e) return;
|
|
141
|
+
const s = m()[e];
|
|
142
|
+
return console.log("getPageAuth", s), s;
|
|
143
|
+
}, M = (e, t) => y(e) ?? [], C = () => {
|
|
140
144
|
const e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
|
|
141
145
|
return {
|
|
142
146
|
appcategorys: e.appcategorys ?? [],
|
|
@@ -146,16 +150,16 @@ const f = (e) => {
|
|
|
146
150
|
menuCollapses: e.menuCollapses ?? []
|
|
147
151
|
};
|
|
148
152
|
}, E = (e, t = !1) => {
|
|
149
|
-
var n,
|
|
153
|
+
var n, a;
|
|
150
154
|
const s = C().subAppList;
|
|
151
155
|
if (e)
|
|
152
|
-
return t ? ((n = s == null ? void 0 : s.find((r) => r.code === e)) == null ? void 0 : n.originalMenus) ?? [] : ((
|
|
156
|
+
return t ? ((n = s == null ? void 0 : s.find((r) => r.code === e)) == null ? void 0 : n.originalMenus) ?? [] : ((a = s == null ? void 0 : s.find((r) => r.code === e)) == null ? void 0 : a.menus) ?? [];
|
|
153
157
|
{
|
|
154
158
|
let r = {};
|
|
155
|
-
return t ? s == null || s.forEach((
|
|
156
|
-
r[
|
|
157
|
-
}) : s == null || s.forEach((
|
|
158
|
-
r[
|
|
159
|
+
return t ? s == null || s.forEach((o) => {
|
|
160
|
+
r[o.code] = o.originalMenus ?? [];
|
|
161
|
+
}) : s == null || s.forEach((o) => {
|
|
162
|
+
r[o.code] = o.menus ?? [];
|
|
159
163
|
}), r;
|
|
160
164
|
}
|
|
161
165
|
}, k = () => {
|
package/common-info/index.js.gz
CHANGED
|
Binary file
|
|
@@ -44,9 +44,9 @@ function Ce(e, t) {
|
|
|
44
44
|
}
|
|
45
45
|
var et = Object.prototype.toString,
|
|
46
46
|
le = Object.getPrototypeOf,
|
|
47
|
-
|
|
47
|
+
K = Symbol.iterator,
|
|
48
48
|
Ne = Symbol.toStringTag,
|
|
49
|
-
|
|
49
|
+
v = /* @__PURE__ */function (e) {
|
|
50
50
|
return function (t) {
|
|
51
51
|
var n = et.call(t);
|
|
52
52
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
@@ -54,7 +54,7 @@ var et = Object.prototype.toString,
|
|
|
54
54
|
}(/* @__PURE__ */Object.create(null)),
|
|
55
55
|
C = function C(e) {
|
|
56
56
|
return e = e.toLowerCase(), function (t) {
|
|
57
|
-
return
|
|
57
|
+
return v(t) === e;
|
|
58
58
|
};
|
|
59
59
|
},
|
|
60
60
|
X = function X(e) {
|
|
@@ -82,9 +82,9 @@ var rt = X("string"),
|
|
|
82
82
|
return e === true || e === false;
|
|
83
83
|
},
|
|
84
84
|
z = function z(e) {
|
|
85
|
-
if (
|
|
85
|
+
if (v(e) !== "object") return false;
|
|
86
86
|
var t = le(e);
|
|
87
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ne in e) && !(
|
|
87
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ne in e) && !(K in e);
|
|
88
88
|
},
|
|
89
89
|
ot = C("Date"),
|
|
90
90
|
it = C("File"),
|
|
@@ -95,7 +95,7 @@ var rt = X("string"),
|
|
|
95
95
|
},
|
|
96
96
|
ut = function ut(e) {
|
|
97
97
|
var t;
|
|
98
|
-
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t =
|
|
98
|
+
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = v(e)) === "formdata" ||
|
|
99
99
|
// detect form-data instance
|
|
100
100
|
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
101
101
|
},
|
|
@@ -192,7 +192,7 @@ var bt = function bt(e, t, n) {
|
|
|
192
192
|
};
|
|
193
193
|
}((typeof Uint8Array === "undefined" ? "undefined" : _typeof(Uint8Array)) < "u" && le(Uint8Array)),
|
|
194
194
|
Tt = function Tt(e, t) {
|
|
195
|
-
var r = (e && e[
|
|
195
|
+
var r = (e && e[K]).call(e);
|
|
196
196
|
var s;
|
|
197
197
|
for (; (s = r.next()) && !s.done;) {
|
|
198
198
|
var o = s.value;
|
|
@@ -255,7 +255,7 @@ var bt = function bt(e, t, n) {
|
|
|
255
255
|
return e != null && Number.isFinite(e = +e) ? e : t;
|
|
256
256
|
};
|
|
257
257
|
function Lt(e) {
|
|
258
|
-
return !!(e && A(e.append) && e[Ne] === "FormData" && e[
|
|
258
|
+
return !!(e && A(e.append) && e[Ne] === "FormData" && e[K]);
|
|
259
259
|
}
|
|
260
260
|
var Bt = function Bt(e) {
|
|
261
261
|
var t = new Array(10),
|
|
@@ -294,7 +294,7 @@ var Bt = function Bt(e) {
|
|
|
294
294
|
}(typeof setImmediate == "function", A(U.postMessage)),
|
|
295
295
|
jt = (typeof queueMicrotask === "undefined" ? "undefined" : _typeof(queueMicrotask)) < "u" ? queueMicrotask.bind(U) : (typeof process === "undefined" ? "undefined" : _typeof(process)) < "u" && process.nextTick || Be,
|
|
296
296
|
qt = function qt(e) {
|
|
297
|
-
return e != null && A(e[
|
|
297
|
+
return e != null && A(e[K]);
|
|
298
298
|
},
|
|
299
299
|
a = {
|
|
300
300
|
isArray: D,
|
|
@@ -328,7 +328,7 @@ var Bt = function Bt(e) {
|
|
|
328
328
|
stripBOM: wt,
|
|
329
329
|
inherits: Et,
|
|
330
330
|
toFlatObject: Rt,
|
|
331
|
-
kindOf:
|
|
331
|
+
kindOf: v,
|
|
332
332
|
kindOfTest: C,
|
|
333
333
|
endsWith: gt,
|
|
334
334
|
toArray: St,
|
|
@@ -597,16 +597,16 @@ var Me = {
|
|
|
597
597
|
},
|
|
598
598
|
fe = (typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" && (typeof document === "undefined" ? "undefined" : _typeof(document)) < "u",
|
|
599
599
|
oe = (typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) == "object" && navigator || undefined,
|
|
600
|
-
|
|
601
|
-
|
|
600
|
+
Kt = fe && (!oe || ["ReactNative", "NativeScript", "NS"].indexOf(oe.product) < 0),
|
|
601
|
+
vt = (typeof WorkerGlobalScope === "undefined" ? "undefined" : _typeof(WorkerGlobalScope)) < "u" &&
|
|
602
602
|
// eslint-disable-next-line no-undef
|
|
603
603
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
604
604
|
Xt = fe && window.location.href || "http://localhost",
|
|
605
605
|
Gt = /* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({
|
|
606
606
|
__proto__: null,
|
|
607
607
|
hasBrowserEnv: fe,
|
|
608
|
-
hasStandardBrowserEnv:
|
|
609
|
-
hasStandardBrowserWebWorkerEnv:
|
|
608
|
+
hasStandardBrowserEnv: Kt,
|
|
609
|
+
hasStandardBrowserWebWorkerEnv: vt,
|
|
610
610
|
navigator: oe,
|
|
611
611
|
origin: Xt
|
|
612
612
|
}, Symbol.toStringTag, {
|
|
@@ -1519,7 +1519,7 @@ var $e = function $e(e) {
|
|
|
1519
1519
|
return _ref11.apply(this, arguments);
|
|
1520
1520
|
};
|
|
1521
1521
|
}())),
|
|
1522
|
-
|
|
1522
|
+
Ke = function Ke(e) {
|
|
1523
1523
|
try {
|
|
1524
1524
|
for (var _len5 = arguments.length, t = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
|
|
1525
1525
|
t[_key5 - 1] = arguments[_key5];
|
|
@@ -1529,7 +1529,7 @@ var $e = function $e(e) {
|
|
|
1529
1529
|
return false;
|
|
1530
1530
|
}
|
|
1531
1531
|
},
|
|
1532
|
-
Sn = We &&
|
|
1532
|
+
Sn = We && Ke(function () {
|
|
1533
1533
|
var e = !1;
|
|
1534
1534
|
var t = new Request(O.origin, {
|
|
1535
1535
|
body: new ReadableStream(),
|
|
@@ -1541,7 +1541,7 @@ var $e = function $e(e) {
|
|
|
1541
1541
|
return e && !t;
|
|
1542
1542
|
}),
|
|
1543
1543
|
Oe = 64 * 1024,
|
|
1544
|
-
ie = We &&
|
|
1544
|
+
ie = We && Ke(function () {
|
|
1545
1545
|
return a.isReadableStream(new Response("").body);
|
|
1546
1546
|
}),
|
|
1547
1547
|
W = {
|
|
@@ -1745,7 +1745,7 @@ var Te = function Te(e) {
|
|
|
1745
1745
|
xn = function xn(e) {
|
|
1746
1746
|
return a.isFunction(e) || e === null || e === false;
|
|
1747
1747
|
},
|
|
1748
|
-
|
|
1748
|
+
ve = {
|
|
1749
1749
|
getAdapter: function getAdapter(e) {
|
|
1750
1750
|
e = a.isArray(e) ? e : [e];
|
|
1751
1751
|
var _e3 = e,
|
|
@@ -1777,7 +1777,7 @@ function ne(e) {
|
|
|
1777
1777
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new k(null, e);
|
|
1778
1778
|
}
|
|
1779
1779
|
function Ae(e) {
|
|
1780
|
-
return ne(e), e.headers = x.from(e.headers), e.data = te.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", false),
|
|
1780
|
+
return ne(e), e.headers = x.from(e.headers), e.data = te.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", false), ve.getAdapter(e.adapter || M.adapter)(e).then(function (r) {
|
|
1781
1781
|
return ne(e), r.data = te.call(e, e.transformResponse, r), r.headers = x.from(r.headers), r;
|
|
1782
1782
|
}, function (r) {
|
|
1783
1783
|
return ze(r) || (ne(e), r && r.response && (r.response.data = te.call(e, e.transformResponse, r.response), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
|
|
@@ -1797,12 +1797,12 @@ Y.transitional = function (t, n, r) {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
return function (o, i, c) {
|
|
1799
1799
|
if (t === false) throw new m(s(i, " has been removed" + (n ? " in " + n : "")), m.ERR_DEPRECATED);
|
|
1800
|
-
return n && !xe[i] && (xe[i] = true), t ? t(o, i, c) : true;
|
|
1800
|
+
return n && !xe[i] && (xe[i] = true, console.warn(s(i, " has been deprecated since v" + n + " and will be removed in the near future"))), t ? t(o, i, c) : true;
|
|
1801
1801
|
};
|
|
1802
1802
|
};
|
|
1803
1803
|
Y.spelling = function (t) {
|
|
1804
1804
|
return function (n, r) {
|
|
1805
|
-
return true;
|
|
1805
|
+
return console.warn("".concat(r, " is likely a misspelling of ").concat(t)), true;
|
|
1806
1806
|
};
|
|
1807
1807
|
};
|
|
1808
1808
|
function Cn(e, t, n) {
|
|
@@ -2166,7 +2166,7 @@ E.AxiosHeaders = x;
|
|
|
2166
2166
|
E.formToJSON = function (e) {
|
|
2167
2167
|
return He(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
2168
2168
|
};
|
|
2169
|
-
E.getAdapter =
|
|
2169
|
+
E.getAdapter = ve.getAdapter;
|
|
2170
2170
|
E.HttpStatusCode = ce;
|
|
2171
2171
|
E["default"] = E;
|
|
2172
2172
|
var Ln = /*#__PURE__*/function () {
|