@das-fed/utils 7.0.8 → 7.0.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 (85) hide show
  1. package/api-services/i18n/index.js.gz +0 -0
  2. package/api-services/index.js +560 -541
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/index.js +834 -833
  5. package/api-services/modules/app-manage/index.js.gz +0 -0
  6. package/api-services/modules/authentication/index.js +350 -331
  7. package/api-services/modules/authentication/index.js.gz +0 -0
  8. package/api-services/modules/bems/index.js +355 -336
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/index.js +350 -331
  11. package/api-services/modules/contract/index.js.gz +0 -0
  12. package/api-services/modules/duty-manage/index.js +356 -337
  13. package/api-services/modules/duty-manage/index.js.gz +0 -0
  14. package/api-services/modules/enterpriseright/index.js +350 -331
  15. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  16. package/api-services/modules/file/index.js +960 -959
  17. package/api-services/modules/file/index.js.gz +0 -0
  18. package/api-services/modules/gateway-edge/index.js +350 -331
  19. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  20. package/api-services/modules/index.js +1004 -1003
  21. package/api-services/modules/index.js.gz +0 -0
  22. package/api-services/modules/iot/index.js +1117 -1094
  23. package/api-services/modules/iot/index.js.gz +0 -0
  24. package/api-services/modules/justauth/index.js +919 -882
  25. package/api-services/modules/justauth/index.js.gz +0 -0
  26. package/api-services/modules/knowledge/index.js +880 -843
  27. package/api-services/modules/knowledge/index.js.gz +0 -0
  28. package/api-services/modules/link/index.js +880 -843
  29. package/api-services/modules/link/index.js.gz +0 -0
  30. package/api-services/modules/permission/index.js +350 -331
  31. package/api-services/modules/permission/index.js.gz +0 -0
  32. package/api-services/modules/platformManage/index.js +867 -830
  33. package/api-services/modules/platformManage/index.js.gz +0 -0
  34. package/api-services/modules/portal/index.js +350 -331
  35. package/api-services/modules/portal/index.js.gz +0 -0
  36. package/api-services/modules/space-manage/index.js +880 -843
  37. package/api-services/modules/space-manage/index.js.gz +0 -0
  38. package/api-services/modules/super-admin/index.js +849 -848
  39. package/api-services/modules/super-admin/index.js.gz +0 -0
  40. package/api-services/modules/supplier/index.js +352 -333
  41. package/api-services/modules/supplier/index.js.gz +0 -0
  42. package/api-services/modules/supplychain-manage/index.js +350 -331
  43. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  44. package/api-services/modules/systemConfiguration/index.js +350 -331
  45. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  46. package/api-services/modules/tool/index.js +350 -331
  47. package/api-services/modules/tool/index.js.gz +0 -0
  48. package/api-services/src/create-service/index.js +879 -842
  49. package/api-services/src/create-service/index.js.gz +0 -0
  50. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  51. package/common-info/index.js +13 -12
  52. package/common-info/index.js.gz +0 -0
  53. package/common-info/set-personal-info/index.d.ts +1 -1
  54. package/common-info/set-personal-info/index.js +253 -237
  55. package/common-info/set-personal-info/index.js.gz +0 -0
  56. package/common-info/type.d.ts +2 -0
  57. package/common-tools/extract-file-name/index.js +566 -550
  58. package/common-tools/extract-file-name/index.js.gz +0 -0
  59. package/common-tools/get-url-params/index.d.ts +7 -0
  60. package/common-tools/get-url-params/index.js +45 -38
  61. package/common-tools/get-url-params/index.js.gz +0 -0
  62. package/common-tools/obj-tools/index.js +1 -1
  63. package/common-tools/platform-tools/index.d.ts +1 -1
  64. package/common-tools/platform-tools/index.js +22 -15
  65. package/create-api-service/index.js +849 -848
  66. package/create-api-service/index.js.gz +0 -0
  67. package/create-api-service/sso/index.d.ts +3 -3
  68. package/create-api-service/sso/index.js +590 -563
  69. package/create-api-service/sso/index.js.gz +0 -0
  70. package/curring-http/index.js +582 -566
  71. package/curring-http/index.js.gz +0 -0
  72. package/directive/auth/index.js.gz +0 -0
  73. package/esm-map.json +2 -1
  74. package/hooks/use-get-auth/index.js.gz +0 -0
  75. package/nextTiken/index.js.gz +0 -0
  76. package/package.json +4 -4
  77. package/pinyin-first-character/index.js.gz +0 -0
  78. package/process-engine-info/index.js +8 -7
  79. package/style/index.js +1 -1
  80. package/style/index.js.gz +0 -0
  81. package/token-tools/index.js +80 -8
  82. package/token-tools/index.js.gz +0 -0
  83. package/use-low-code/index.js.gz +0 -0
  84. package/vue/hooks/use-model-value/index.d.ts +5 -1
  85. package/webSocket-service/index.js.gz +0 -0
@@ -2,7 +2,7 @@ import { getConfig as u } from "@das-fed/utils/config";
2
2
  import { getUrlParams as d } from "@das-fed/utils/common-tools";
3
3
  import { getAccessToken as I } from "@das-fed/utils/token-tools";
4
4
  import { getTokenFromQuery as S, getProjectInfoFromQuery as y } from "@das-fed/utils/common-info/getInfoFromUrl";
5
- const N = I, A = () => {
5
+ const N = I, T = () => {
6
6
  var r;
7
7
  let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
8
8
  return {
@@ -60,7 +60,7 @@ const N = I, A = () => {
60
60
  leaf: (e == null ? void 0 : e.leaf) ?? !1,
61
61
  optional: (e == null ? void 0 : e.leaf) ?? !0
62
62
  };
63
- }, v = () => {
63
+ }, f = () => {
64
64
  let e = JSON.parse(sessionStorage.getItem("project-message") || "{}");
65
65
  return {
66
66
  id: (e == null ? void 0 : e.id) ?? 0,
@@ -85,7 +85,7 @@ const N = I, A = () => {
85
85
  autoTimezone: (e == null ? void 0 : e.autoTimezone) ?? !1,
86
86
  currency: (e == null ? void 0 : e.currency) ?? {}
87
87
  };
88
- }, f = () => {
88
+ }, v = () => {
89
89
  const e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
90
90
  return {
91
91
  applicationCode: (e == null ? void 0 : e.applicationCode) ?? "",
@@ -118,6 +118,7 @@ const N = I, A = () => {
118
118
  currentSubApp: e.currentSubApp ?? {},
119
119
  currentSubAppCode: e.currentSubAppCode ?? "",
120
120
  subAppList: e.subAppList ?? [],
121
+ fixedApps: e.fixedApps ?? [],
121
122
  menuCollapses: e.menuCollapses ?? []
122
123
  };
123
124
  }, U = (e, t = !1) => {
@@ -133,7 +134,7 @@ const N = I, A = () => {
133
134
  s[n.code] = n.menus ?? [];
134
135
  }), s;
135
136
  }
136
- }, E = () => {
137
+ }, x = () => {
137
138
  const e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
138
139
  return {
139
140
  currentCode: e.currentCode ?? "",
@@ -141,10 +142,10 @@ const N = I, A = () => {
141
142
  tabMap: e.tabMap ?? {},
142
143
  preTab: e.preTab ?? {}
143
144
  };
144
- }, z = () => {
145
+ }, E = () => {
145
146
  const e = u(), t = sessionStorage.getItem("minioAddress");
146
147
  return t || (e.baseURL ? e.baseURL : location.origin);
147
- }, x = () => ({
148
+ }, z = () => ({
148
149
  instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
149
150
  }), F = () => localStorage.getItem("fav-icon") || "./logo.svg";
150
151
  N() || S();
@@ -152,20 +153,20 @@ var i;
152
153
  (i = C()) != null && i.id || y();
153
154
  export {
154
155
  F as getFavIcon,
155
- f as getHomeInfo,
156
- x as getInstanceInfo,
156
+ v as getHomeInfo,
157
+ z as getInstanceInfo,
157
158
  M as getLanguages,
158
159
  U as getMenus,
159
- z as getMinioAddress,
160
+ E as getMinioAddress,
160
161
  j as getPageAuth,
161
162
  D as getPageAuthBtn,
162
163
  k as getPersonalConfig,
163
164
  J as getPersonalInfo,
164
165
  C as getProjectInfo,
165
- v as getProjectMessage,
166
+ f as getProjectMessage,
166
167
  m as getSubApps,
167
- E as getTabInfo,
168
+ x as getTabInfo,
168
169
  O as getTenantInfo,
169
170
  N as getToken,
170
- A as getUserInfo
171
+ T as getUserInfo
171
172
  };
Binary file
@@ -2,4 +2,4 @@
2
2
  * 获取用户信息存入sessionStorage
3
3
  * @param token token
4
4
  */
5
- export declare const setPersonalInfo: (token: string) => any;
5
+ export declare const setPersonalInfo: (token?: string) => any;