@das-fed/utils 6.4.0-dev.4 → 6.4.0-dev.41
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 +1704 -1802
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +1935 -2034
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +1935 -2034
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +1938 -2037
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +1935 -2034
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +1940 -2039
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +1935 -2034
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.d.ts +1 -0
- package/api-services/modules/file/index.js +152 -430
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +1935 -2034
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1842 -1940
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1949 -2048
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +1934 -2033
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +1936 -2035
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +1935 -2034
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +1935 -2034
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +1942 -2041
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +1935 -2034
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +1935 -2034
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +1940 -2039
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +1939 -2038
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +1935 -2034
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +1935 -2034
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +1935 -2034
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +1937 -2036
- 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 +837 -570
- 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.d.ts +1 -0
- package/common-tools/extract-file-name/index.js +1716 -0
- 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 +2 -0
- package/common-tools/index.js +2 -0
- package/common-tools/platform-tools/index.d.ts +2 -1
- package/common-tools/platform-tools/index.js +16 -11
- package/common-tools/setHtmlMinWH/index.js +4 -8
- package/common-tools/update-browser-title/index.d.ts +1 -0
- package/common-tools/update-browser-title/index.js +12 -0
- package/common-tools/update-fav-icon/index.js +15 -14
- package/create-api-service/index.js +1937 -2036
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +1193 -833
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +1364 -1097
- 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 +4 -2
- package/hooks/popup-manager/use-zindex/index.d.ts +0 -2
- package/hooks/popup-manager/use-zindex/index.js +7 -20
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/index.js +19804 -20879
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js +4 -2
- 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 +11 -11
- 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/token-tools/index.js.gz +0 -0
|
Binary file
|
|
Binary file
|
package/common-tools/index.d.ts
CHANGED
|
@@ -8,3 +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';
|
|
12
|
+
export * from '@das-fed/utils/common-tools/extract-file-name';
|
package/common-tools/index.js
CHANGED
|
@@ -8,3 +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";
|
|
12
|
+
export * from "@das-fed/utils/common-tools/extract-file-name";
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const isRelativeOrSameDomain: (url: string) => boolean;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 自动拼接上showLayout=false参数
|
|
9
9
|
* @param url
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
12
|
export declare const setShowLayout: (url: string) => string;
|
|
13
|
+
export declare const setShowWatermark: (url: string) => string;
|
|
13
14
|
/**
|
|
14
15
|
* url携带token
|
|
15
16
|
* @param url
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { getToken as
|
|
2
|
-
const
|
|
3
|
-
if (!
|
|
4
|
-
let
|
|
5
|
-
return
|
|
6
|
-
},
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { getToken as s } from "@das-fed/utils/common-info";
|
|
2
|
+
const o = (e) => !!(!e.startsWith("http") || e.startsWith(location.origin)), n = (e) => {
|
|
3
|
+
if (!e) return "";
|
|
4
|
+
let t = e;
|
|
5
|
+
return o(e) && !e.includes("showLayout=false") && (t = e.indexOf("?") !== -1 ? e + "&showLayout=false" : e + "?showLayout=false"), t;
|
|
6
|
+
}, i = (e) => {
|
|
7
|
+
if (!e) return "";
|
|
8
|
+
let t = "";
|
|
9
|
+
return o(e) && !e.includes("showWatermark=false") ? t = e.indexOf("?") !== -1 ? e + "&showWatermark=false" : e + "?showWatermark=false" : t = e, t;
|
|
10
|
+
}, r = (e) => {
|
|
11
|
+
const t = s();
|
|
12
|
+
return e.includes("?") ? `${e}&token=${t}` : `${e}?token=${t}`;
|
|
9
13
|
};
|
|
10
14
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
o as isRelativeOrSameDomain,
|
|
16
|
+
n as setShowLayout,
|
|
17
|
+
i as setShowWatermark,
|
|
18
|
+
r as withToken
|
|
14
19
|
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
let
|
|
3
|
-
|
|
4
|
-
const { left: m = 0, top: t = 0 } = window.__DAS_MICRO_APP_CONTAINER_RECT || {};
|
|
5
|
-
n = `calc(${n} - ${m}px)`, e = `calc(${e} - ${t}px)`;
|
|
6
|
-
}
|
|
7
|
-
document.documentElement.style.minWidth = n, document.documentElement.style.minHeight = e;
|
|
1
|
+
const m = (e) => {
|
|
2
|
+
let i = "1366px", n = "528px";
|
|
3
|
+
e != null && e.minWidth && (i = e.minWidth), e != null && e.minHeight && (n = e.minHeight), document.documentElement.style.minWidth = i, document.documentElement.style.minHeight = n, document.documentElement.style.overflow = "auto";
|
|
8
4
|
};
|
|
9
5
|
export {
|
|
10
|
-
|
|
6
|
+
m as setHtmlMinWH
|
|
11
7
|
};
|
|
@@ -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
|
+
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { getFavIcon as
|
|
2
|
-
import { pureImageSrc as
|
|
3
|
-
import { systemConfiguration as
|
|
4
|
-
const
|
|
5
|
-
const
|
|
1
|
+
import { getFavIcon as l } from "@das-fed/utils/common-info";
|
|
2
|
+
import { pureImageSrc as m } from "@das-fed/utils/pure-image-src";
|
|
3
|
+
import { systemConfiguration as c } from "@das-fed/utils/api-services";
|
|
4
|
+
const i = (o, r = "./logo.svg") => {
|
|
5
|
+
const t = o || r;
|
|
6
6
|
let e = document.querySelector('link[rel*="icon"]');
|
|
7
|
-
e ? e == null || e.setAttribute("href",
|
|
8
|
-
}, f = async (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
e ? e == null || e.setAttribute("href", t) : (e = document.createElement("link"), e.rel = "icon", e.type = "image/svg+xml", e.href = t, document.getElementsByTagName("head")[0].appendChild(e));
|
|
8
|
+
}, f = async (o = "./logo.svg") => {
|
|
9
|
+
const r = c.get("/visitor/appearance/with-default", (e) => (e.public = !0, e));
|
|
10
|
+
let t = l();
|
|
11
|
+
if (!t) {
|
|
12
|
+
const [e, n] = await r().run();
|
|
13
|
+
if (e) return;
|
|
14
|
+
const { browserLogoImgHost: s = "", browserLogoImg: a = "" } = n || {};
|
|
15
|
+
t = a ? s + m(a) : "";
|
|
15
16
|
}
|
|
16
|
-
i(
|
|
17
|
+
i(t, o);
|
|
17
18
|
};
|
|
18
19
|
export {
|
|
19
20
|
f as setDasHtmlIcon,
|