@das-fed/upf-utils 6.4.0-hot.8 → 6.4.0-test.0
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 +1576 -1470
- package/api-services/index.js +1067 -1032
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +1359 -1266
- package/api-services/modules/app-manage/index.js +1071 -1055
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +1316 -1223
- package/api-services/modules/authentication/index.js +1029 -1013
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1819 -1738
- package/api-services/modules/bems/index.js +1422 -1424
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +1359 -1266
- package/api-services/modules/contract/index.js +1071 -1055
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1859 -1754
- package/api-services/modules/duty-manage/index.js +1461 -1427
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1359 -1266
- package/api-services/modules/enterpriseright/index.js +1071 -1055
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1880 -1795
- package/api-services/modules/file/es5.js +1460 -1354
- package/api-services/modules/file/index.js +996 -961
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1819 -1738
- package/api-services/modules/gateway-edge/index.js +1423 -1425
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1337 -1334
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1875 -1770
- package/api-services/modules/iot/index.js +1475 -1441
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1821 -1740
- package/api-services/modules/justauth/index.js +1424 -1426
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1359 -1266
- package/api-services/modules/knowledge/index.js +1071 -1055
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1359 -1266
- package/api-services/modules/link/index.js +1071 -1055
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1850 -1745
- package/api-services/modules/permission/index.js +1456 -1422
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +1369 -1276
- package/api-services/modules/platformManage/index.js +1074 -1058
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1359 -1266
- package/api-services/modules/portal/index.js +1071 -1055
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1359 -1266
- package/api-services/modules/space-manage/index.js +1071 -1055
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1390 -1297
- package/api-services/modules/super-admin/index.js +1088 -1072
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1758 -1668
- package/api-services/modules/supplier/index.js +1354 -1342
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1679 -1584
- package/api-services/modules/supplychain-manage/index.js +1303 -1283
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1359 -1266
- package/api-services/modules/systemConfiguration/index.js +1071 -1055
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1850 -1745
- package/api-services/modules/tool/index.js +1456 -1422
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1357 -1264
- package/api-services/src/create-service/index.js +1070 -1055
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +4468 -220
- 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/getPermissionMethod/es5.js +4218 -0
- package/common-info/getPermissionMethod/index.d.ts +26 -0
- package/common-info/getPermissionMethod/index.js +3342 -0
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +11 -2
- package/common-info/index.js +3540 -187
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.js +22 -23
- package/common-info/set-personal-info/index.js +20 -26
- 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 +2 -7
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/handle-data/es5.js +111 -118
- package/common-tools/handle-data/index.js +86 -89
- package/common-tools/handle-data/index.js.gz +0 -0
- package/create-api-service/check-token/es5.js +125 -127
- package/create-api-service/check-token/index.js +118 -123
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +1358 -1264
- package/create-api-service/index.d.ts +7 -7
- package/create-api-service/index.js +1072 -1056
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/es5.js +317 -325
- package/create-api-service/sso/index.js +273 -279
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/es5.js +2 -2
- package/curring-http/index.js +2 -7
- package/curring-http/index.js.gz +0 -0
- package/directive/auth/es5.js +60 -68
- package/directive/auth/index.js +37 -45
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +11 -1
- package/hooks/use-get-auth/es5.js +57 -191
- package/hooks/use-get-auth/index.d.ts +2 -7
- package/hooks/use-get-auth/index.js +16 -50
- package/i18n-bridge/es5.js +23 -0
- package/i18n-bridge/index.d.ts +10 -0
- package/i18n-bridge/index.js +16 -0
- package/package.json +3 -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 +41 -53
- package/webSocket-service/index.js +40 -50
- package/webSocket-service/index.js.gz +0 -0
- package/hooks/use-get-auth/apis.d.ts +0 -4
- package/hooks/use-get-auth/index.js.gz +0 -0
|
@@ -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 a(e) {
|
|
11
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
12
|
+
var t = arguments[o];
|
|
13
|
+
for (var s in t) e[s] = t[s];
|
|
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, o) {
|
|
26
|
+
function t(n, f, r) {
|
|
27
27
|
if (!((typeof document === "undefined" ? "undefined" : _typeof(document)) > "u")) {
|
|
28
|
-
r =
|
|
28
|
+
r = a({}, o, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), n = encodeURIComponent(n).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 i in r) r[i] && (c += "; " + i, r[i] !== true && (c += "=" + r[i].split(";")[0]));
|
|
31
|
+
return document.cookie = n + "=" + e.write(f, n) + c;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
if (!((typeof document === "undefined" ? "undefined" : _typeof(document)) > "u" || arguments.length && !
|
|
34
|
+
function s(n) {
|
|
35
|
+
if (!((typeof document === "undefined" ? "undefined" : _typeof(document)) > "u" || arguments.length && !n)) {
|
|
36
36
|
for (var f = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < f.length; c++) {
|
|
37
|
-
var
|
|
38
|
-
d =
|
|
37
|
+
var i = f[c].split("="),
|
|
38
|
+
d = i.slice(1).join("=");
|
|
39
39
|
try {
|
|
40
|
-
var
|
|
41
|
-
if (r[
|
|
40
|
+
var p = decodeURIComponent(i[0]);
|
|
41
|
+
if (r[p] = e.read(d, p), n === p) break;
|
|
42
42
|
} catch (_unused) {}
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return n ? r[n] : r;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
return Object.create({
|
|
48
48
|
set: t,
|
|
49
|
-
get:
|
|
50
|
-
remove: function remove(
|
|
51
|
-
t(
|
|
49
|
+
get: s,
|
|
50
|
+
remove: function remove(n, f) {
|
|
51
|
+
t(n, "", a({}, f, {
|
|
52
52
|
expires: -1
|
|
53
53
|
}));
|
|
54
54
|
},
|
|
55
|
-
withAttributes: function withAttributes(
|
|
56
|
-
return g(this.converter,
|
|
55
|
+
withAttributes: function withAttributes(n) {
|
|
56
|
+
return g(this.converter, a({}, this.attributes, n));
|
|
57
57
|
},
|
|
58
|
-
withConverter: function withConverter(
|
|
59
|
-
return g(
|
|
58
|
+
withConverter: function withConverter(n) {
|
|
59
|
+
return g(a({}, this.converter, n), this.attributes);
|
|
60
60
|
}
|
|
61
61
|
}, {
|
|
62
62
|
attributes: {
|
|
63
|
-
value: Object.freeze(
|
|
63
|
+
value: Object.freeze(o)
|
|
64
64
|
},
|
|
65
65
|
converter: {
|
|
66
66
|
value: Object.freeze(e)
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var h = g(u, {
|
|
71
71
|
path: "/"
|
|
72
72
|
});
|
|
73
|
-
var
|
|
73
|
+
var v = function v() {
|
|
74
74
|
var e = new URL(location.href).searchParams,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
access_token:
|
|
78
|
-
}),
|
|
75
|
+
o = e.get("token") || e.get("accessToken") || e.get("accesstoken") || "";
|
|
76
|
+
o && (JSON.stringify({
|
|
77
|
+
access_token: o
|
|
78
|
+
}), h.set("accessToken", o));
|
|
79
79
|
},
|
|
80
|
-
|
|
80
|
+
I = function I() {
|
|
81
81
|
var e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}"),
|
|
82
|
-
|
|
83
|
-
t =
|
|
82
|
+
o = new URL(location.href).searchParams,
|
|
83
|
+
t = o.get("project") || o.get("projectId") || "";
|
|
84
84
|
if (!t) return;
|
|
85
|
-
var
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
var s = o.get("projectParent") || o.get("projectParentId") || (e == null ? undefined : e.parentId) || "",
|
|
86
|
+
n = o.get("projectName") || (e == null ? undefined : e.name) || "";
|
|
87
|
+
sessionStorage.setItem("project", t), sessionStorage.setItem("projectInfo", JSON.stringify(_objectSpread(_objectSpread({}, e), {}, {
|
|
88
88
|
id: t,
|
|
89
|
-
name:
|
|
90
|
-
parentId:
|
|
89
|
+
name: n,
|
|
90
|
+
parentId: s
|
|
91
91
|
})));
|
|
92
92
|
};
|
|
93
|
-
exports.getProjectInfoFromQuery =
|
|
94
|
-
exports.getTokenFromQuery =
|
|
93
|
+
exports.getProjectInfoFromQuery = I;
|
|
94
|
+
exports.getTokenFromQuery = v;
|
|
@@ -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 a(e) {
|
|
3
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
4
|
+
var t = arguments[o];
|
|
5
|
+
for (var s in t)
|
|
6
|
+
e[s] = t[s];
|
|
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, o) {
|
|
22
|
+
function t(n, f, r) {
|
|
23
23
|
if (!(typeof document > "u")) {
|
|
24
|
-
r =
|
|
24
|
+
r = a({}, o, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), n = encodeURIComponent(n).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 i in r)
|
|
27
|
+
r[i] && (c += "; " + i, r[i] !== !0 && (c += "=" + r[i].split(";")[0]));
|
|
28
|
+
return document.cookie = n + "=" + e.write(f, n) + c;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
if (!(typeof document > "u" || arguments.length && !
|
|
31
|
+
function s(n) {
|
|
32
|
+
if (!(typeof document > "u" || arguments.length && !n)) {
|
|
33
33
|
for (var f = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < f.length; c++) {
|
|
34
|
-
var
|
|
34
|
+
var i = f[c].split("="), d = i.slice(1).join("=");
|
|
35
35
|
try {
|
|
36
|
-
var
|
|
37
|
-
if (r[
|
|
36
|
+
var p = decodeURIComponent(i[0]);
|
|
37
|
+
if (r[p] = e.read(d, p), n === p)
|
|
38
38
|
break;
|
|
39
39
|
} catch {
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return n ? r[n] : r;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
return Object.create(
|
|
46
46
|
{
|
|
47
47
|
set: t,
|
|
48
|
-
get:
|
|
49
|
-
remove: function(
|
|
48
|
+
get: s,
|
|
49
|
+
remove: function(n, f) {
|
|
50
50
|
t(
|
|
51
|
-
|
|
51
|
+
n,
|
|
52
52
|
"",
|
|
53
|
-
|
|
53
|
+
a({}, f, {
|
|
54
54
|
expires: -1
|
|
55
55
|
})
|
|
56
56
|
);
|
|
57
57
|
},
|
|
58
|
-
withAttributes: function(
|
|
59
|
-
return g(this.converter,
|
|
58
|
+
withAttributes: function(n) {
|
|
59
|
+
return g(this.converter, a({}, this.attributes, n));
|
|
60
60
|
},
|
|
61
|
-
withConverter: function(
|
|
62
|
-
return g(
|
|
61
|
+
withConverter: function(n) {
|
|
62
|
+
return g(a({}, this.converter, n), this.attributes);
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
attributes: { value: Object.freeze(
|
|
66
|
+
attributes: { value: Object.freeze(o) },
|
|
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 h = g(u, { path: "/" });
|
|
72
|
+
const v = () => {
|
|
73
|
+
const e = new URL(location.href).searchParams, o = e.get("token") || e.get("accessToken") || e.get("accesstoken") || "";
|
|
74
|
+
o && (JSON.stringify({ access_token: o }), h.set("accessToken", o));
|
|
75
|
+
}, I = () => {
|
|
76
|
+
const e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}"), o = new URL(location.href).searchParams, t = o.get("project") || o.get("projectId") || "";
|
|
77
77
|
if (!t) return;
|
|
78
|
-
const
|
|
79
|
-
|
|
78
|
+
const s = o.get("projectParent") || o.get("projectParentId") || (e == null ? void 0 : e.parentId) || "", n = o.get("projectName") || (e == null ? void 0 : e.name) || "";
|
|
79
|
+
sessionStorage.setItem("project", t), sessionStorage.setItem("projectInfo", JSON.stringify({ ...e, id: t, name: n, parentId: s }));
|
|
80
80
|
};
|
|
81
81
|
export {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
I as getProjectInfoFromQuery,
|
|
83
|
+
v as getTokenFromQuery
|
|
84
84
|
};
|
|
Binary file
|