@das-fed/utils 6.4.0-dev.1 → 6.4.0-dev.10

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.
Files changed (65) hide show
  1. package/api-services/index.d.ts +2 -2
  2. package/api-services/index.js +3482 -3
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/index.js +3198 -3
  5. package/api-services/modules/app-manage/index.js.gz +0 -0
  6. package/api-services/modules/authentication/index.js +3198 -3
  7. package/api-services/modules/authentication/index.js.gz +0 -0
  8. package/api-services/modules/bems/index.js +3201 -6
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/index.js +3198 -3
  11. package/api-services/modules/contract/index.js.gz +0 -0
  12. package/api-services/modules/duty-manage/index.js +3202 -7
  13. package/api-services/modules/duty-manage/index.js.gz +0 -0
  14. package/api-services/modules/enterpriseright/index.js +3198 -3
  15. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  16. package/api-services/modules/gateway-edge/index.js +3198 -3
  17. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  18. package/api-services/modules/index.d.ts +21 -21
  19. package/api-services/modules/index.js +3481 -57
  20. package/api-services/modules/index.js.gz +0 -0
  21. package/api-services/modules/iot/index.js +3211 -16
  22. package/api-services/modules/iot/index.js.gz +0 -0
  23. package/api-services/modules/justauth/index.js +3199 -4
  24. package/api-services/modules/justauth/index.js.gz +0 -0
  25. package/api-services/modules/knowledge/index.js +3198 -3
  26. package/api-services/modules/knowledge/index.js.gz +0 -0
  27. package/api-services/modules/link/index.js +3198 -3
  28. package/api-services/modules/link/index.js.gz +0 -0
  29. package/api-services/modules/permission/index.js +3198 -3
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/platformManage/index.js +3205 -10
  32. package/api-services/modules/platformManage/index.js.gz +0 -0
  33. package/api-services/modules/portal/index.js +3198 -3
  34. package/api-services/modules/portal/index.js.gz +0 -0
  35. package/api-services/modules/space-manage/index.js +3198 -3
  36. package/api-services/modules/space-manage/index.js.gz +0 -0
  37. package/api-services/modules/super-admin/index.js +3201 -6
  38. package/api-services/modules/super-admin/index.js.gz +0 -0
  39. package/api-services/modules/supplier/index.js +3200 -5
  40. package/api-services/modules/supplier/index.js.gz +0 -0
  41. package/api-services/modules/supplychain-manage/index.js +3198 -3
  42. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  43. package/api-services/modules/systemConfiguration/index.js +3198 -3
  44. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  45. package/api-services/modules/tool/index.js +3198 -3
  46. package/api-services/modules/tool/index.js.gz +0 -0
  47. package/api-services/src/create-service/index.d.ts +1 -1
  48. package/api-services/src/create-service/index.js +3198 -2
  49. package/api-services/src/create-service/index.js.gz +0 -0
  50. package/common-info/set-personal-info/index.js +566 -806
  51. package/common-info/set-personal-info/index.js.gz +0 -0
  52. package/common-tools/platform-tools/index.d.ts +2 -1
  53. package/common-tools/platform-tools/index.js +16 -11
  54. package/create-api-service/index.js +1787 -2073
  55. package/create-api-service/index.js.gz +0 -0
  56. package/create-api-service/sso/index.js +681 -921
  57. package/create-api-service/sso/index.js.gz +0 -0
  58. package/curring-http/index.js +1124 -1364
  59. package/curring-http/index.js.gz +0 -0
  60. package/esm-map.json +2 -1
  61. package/package.json +3 -3
  62. package/pinyin-first-character/index.js +21049 -19969
  63. package/pinyin-first-character/index.js.gz +0 -0
  64. package/style/index.js +1 -1
  65. package/style/index.js.gz +0 -0
@@ -5,11 +5,12 @@
5
5
  */
6
6
  export declare const isRelativeOrSameDomain: (url: string) => boolean;
7
7
  /**
8
- * wei自动拼接上showLayout=false参数
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 o } from "@das-fed/utils/common-info";
2
- const n = (t) => !!(!t.startsWith("http") || t.startsWith(location.origin)), i = (t) => {
3
- if (!t) return "";
4
- let e = t;
5
- return n(t) && !t.includes("showLayout=false") && (e = t.indexOf("?") !== -1 ? t + "&showLayout=false" : t + "?showLayout=false"), e;
6
- }, a = (t) => {
7
- const e = o();
8
- return t.includes("?") ? `${t}&token=${e}` : `${t}?token=${e}`;
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
- n as isRelativeOrSameDomain,
12
- i as setShowLayout,
13
- a as withToken
15
+ o as isRelativeOrSameDomain,
16
+ n as setShowLayout,
17
+ i as setShowWatermark,
18
+ r as withToken
14
19
  };