@das-fed/utils 6.4.0-hot.25 → 6.4.0-hot.26

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 (79) hide show
  1. package/api-services/index.js +864 -862
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +3 -3099
  4. package/api-services/modules/authentication/index.js +3 -3099
  5. package/api-services/modules/bems/index.js +6 -3102
  6. package/api-services/modules/contract/index.js +3 -3099
  7. package/api-services/modules/duty-manage/index.js +7 -3103
  8. package/api-services/modules/enterpriseright/index.js +3 -3099
  9. package/api-services/modules/file/index.js.gz +0 -0
  10. package/api-services/modules/gateway-edge/index.js +3 -3099
  11. package/api-services/modules/index.js +217 -3310
  12. package/api-services/modules/index.js.gz +0 -0
  13. package/api-services/modules/iot/index.js +16 -3112
  14. package/api-services/modules/justauth/index.js +4 -3100
  15. package/api-services/modules/knowledge/index.js +3 -3099
  16. package/api-services/modules/link/index.js +3 -3099
  17. package/api-services/modules/permission/index.js +3 -3099
  18. package/api-services/modules/platformManage/index.js +10 -3106
  19. package/api-services/modules/portal/index.js +3 -3099
  20. package/api-services/modules/space-manage/index.js +3 -3099
  21. package/api-services/modules/super-admin/index.js +6 -3102
  22. package/api-services/modules/supplier/index.js +5 -3101
  23. package/api-services/modules/supplychain-manage/index.js +3 -3099
  24. package/api-services/modules/systemConfiguration/index.js +3 -3099
  25. package/api-services/modules/tool/index.js +3 -3099
  26. package/api-services/src/create-service/index.js.gz +0 -0
  27. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  28. package/common-info/index.js +4 -3
  29. package/common-info/index.js.gz +0 -0
  30. package/common-info/set-personal-info/index.js.gz +0 -0
  31. package/common-info/type.d.ts +106 -104
  32. package/common-tools/extract-file-name/index.js.gz +0 -0
  33. package/common-tools/get-url-params/index.js.gz +0 -0
  34. package/common-tools/index.d.ts +1 -0
  35. package/common-tools/index.js +1 -0
  36. package/common-tools/update-browser-title/index.d.ts +1 -0
  37. package/common-tools/update-browser-title/index.js +12 -0
  38. package/create-api-service/index.js.gz +0 -0
  39. package/create-api-service/sso/index.js +783 -690
  40. package/create-api-service/sso/index.js.gz +0 -0
  41. package/curring-http/index.js.gz +0 -0
  42. package/curring-http/type.d.ts +87 -87
  43. package/directive/auth/index.js.gz +0 -0
  44. package/esm-map.json +2 -2
  45. package/hooks/use-get-auth/index.js.gz +0 -0
  46. package/i18n-collection/en.js +21 -0
  47. package/i18n-collection/zh-CN.js +21 -0
  48. package/nextTiken/index.js.gz +0 -0
  49. package/package.json +4 -4
  50. package/pinyin-first-character/index.js.gz +0 -0
  51. package/style/index.js.gz +0 -0
  52. package/token-tools/index.d.ts +0 -5
  53. package/token-tools/index.js +8 -84
  54. package/use-low-code/index.js +3 -3
  55. package/use-low-code/index.js.gz +0 -0
  56. package/use-low-code/style.css +1 -1
  57. package/webSocket-service/index.js.gz +0 -0
  58. package/webSocket-service/type.d.ts +28 -28
  59. package/api-services/modules/app-manage/index.js.gz +0 -0
  60. package/api-services/modules/authentication/index.js.gz +0 -0
  61. package/api-services/modules/bems/index.js.gz +0 -0
  62. package/api-services/modules/contract/index.js.gz +0 -0
  63. package/api-services/modules/duty-manage/index.js.gz +0 -0
  64. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  65. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  66. package/api-services/modules/iot/index.js.gz +0 -0
  67. package/api-services/modules/justauth/index.js.gz +0 -0
  68. package/api-services/modules/knowledge/index.js.gz +0 -0
  69. package/api-services/modules/link/index.js.gz +0 -0
  70. package/api-services/modules/permission/index.js.gz +0 -0
  71. package/api-services/modules/platformManage/index.js.gz +0 -0
  72. package/api-services/modules/portal/index.js.gz +0 -0
  73. package/api-services/modules/space-manage/index.js.gz +0 -0
  74. package/api-services/modules/super-admin/index.js.gz +0 -0
  75. package/api-services/modules/supplier/index.js.gz +0 -0
  76. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  77. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  78. package/api-services/modules/tool/index.js.gz +0 -0
  79. package/token-tools/index.js.gz +0 -0
@@ -2,7 +2,7 @@ import { getConfig as i } from "@das-fed/utils/config";
2
2
  import { getUrlParams as p } from "@das-fed/utils/common-tools";
3
3
  import { getAccessToken as I } from "@das-fed/utils/token-tools";
4
4
  import { getTokenFromQuery as m, getProjectInfoFromQuery as d } from "@das-fed/utils/common-info/getInfoFromUrl";
5
- const S = I, C = () => {
5
+ const S = I, O = () => {
6
6
  var n;
7
7
  let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
8
8
  return {
@@ -65,7 +65,8 @@ const S = I, C = () => {
65
65
  appcategorys: e.appcategorys ?? [],
66
66
  currentSubApp: e.currentSubApp ?? {},
67
67
  currentSubAppCode: e.currentSubAppCode ?? "",
68
- subAppList: e.subAppList ?? []
68
+ subAppList: e.subAppList ?? [],
69
+ menuCollapses: e.menuCollapses ?? []
69
70
  };
70
71
  }, j = (e, t = !1) => {
71
72
  var s, a;
@@ -111,5 +112,5 @@ export {
111
112
  v as getTabInfo,
112
113
  y as getTenantInfo,
113
114
  S as getToken,
114
- C as getUserInfo
115
+ O as getUserInfo
115
116
  };
Binary file
@@ -1,104 +1,106 @@
1
- export interface UserInfo {
2
- /** 用户id */
3
- id: string
4
- /** 用户名称 */
5
- name: string
6
- /** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
7
- flag: number
8
- /** 租户id */
9
- tenantId: string
10
- }
11
-
12
- export interface PersonalInfo {
13
- /** id */
14
- id: string
15
- /** 名称 */
16
- name: string
17
- /** 手机号 */
18
- phone: string
19
- /** 用户名称 */
20
- userName: string
21
- /** 邮箱 */
22
- email: string
23
- /** 头像 */
24
- headPicture: string
25
- }
26
-
27
- export interface TenantInfo {
28
- /** 用户ID */
29
- userId: string
30
- /** 用户名 */
31
- userName: string
32
- name: string
33
- /** 租户信息 */
34
- tenant: {
35
- id: string
36
- name: string
37
- adminUserId: string
38
- description: string
39
- domain: string
40
- }
41
- /** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
42
- flag: number
43
- areaCode: string
44
- /** 手机号 */
45
- phone: string
46
- }
47
-
48
- export interface HomeInfo {
49
- applicationCode: string
50
- applicationPath: string
51
- enable: boolean
52
- originalCode: string
53
- routeUrl: string
54
- type: number | null
55
- }
56
-
57
- export interface ProjectInfo {
58
- /** 项目id */
59
- id: string | number
60
- /** 父级id */
61
- parentId?: string
62
- /** 项目名称 */
63
- name: string
64
- /** 租户id */
65
- tenantId?: string
66
- }
67
-
68
- export interface SubAppsInfo {
69
- /** 所有应用信息 */
70
- appcategorys?: any[]
71
- /** 当前应用完整信息 */
72
- currentSubApp?: any
73
- /** 所有应用 */
74
- flatSubAppList?: any[]
75
- /** 当前应用code */
76
- currentSubAppCode?: string
77
- /** 当前打开的应用 */
78
- subAppList?: any[]
79
- }
80
-
81
- interface TabItem {
82
- /** 当前应用url */
83
- currentApplication: string
84
- /** 当前加载的应用 */
85
- applicationPath: string
86
- applicationCode: string
87
- menuId: string
88
- name: string
89
- path: string
90
- code: string
91
- query?: any
92
- }
93
- export interface TabInfo {
94
- /** 当前tabs key */
95
- currentCode?: string
96
- /** 当前tabs */
97
- currentTab?: TabItem
98
- /** 用于记录该应用上次开启的tab */
99
- preTab?: Record<string, TabItem>
100
- /** 当前打开的tabs(微前端环境会存入) */
101
- tabMap?: Record<string, TabItem[]>
102
- }
103
-
104
- export type permissionBtnInfo = { code?: string; name?: string }[]
1
+ export interface UserInfo {
2
+ /** 用户id */
3
+ id: string
4
+ /** 用户名称 */
5
+ name: string
6
+ /** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
7
+ flag: number
8
+ /** 租户id */
9
+ tenantId: string
10
+ }
11
+
12
+ export interface PersonalInfo {
13
+ /** id */
14
+ id: string
15
+ /** 名称 */
16
+ name: string
17
+ /** 手机号 */
18
+ phone: string
19
+ /** 用户名称 */
20
+ userName: string
21
+ /** 邮箱 */
22
+ email: string
23
+ /** 头像 */
24
+ headPicture: string
25
+ }
26
+
27
+ export interface TenantInfo {
28
+ /** 用户ID */
29
+ userId: string
30
+ /** 用户名 */
31
+ userName: string
32
+ name: string
33
+ /** 租户信息 */
34
+ tenant: {
35
+ id: string
36
+ name: string
37
+ adminUserId: string
38
+ description: string
39
+ domain: string
40
+ }
41
+ /** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
42
+ flag: number
43
+ areaCode: string
44
+ /** 手机号 */
45
+ phone: string
46
+ }
47
+
48
+ export interface HomeInfo {
49
+ applicationCode: string
50
+ applicationPath: string
51
+ enable: boolean
52
+ originalCode: string
53
+ routeUrl: string
54
+ type: number | null
55
+ }
56
+
57
+ export interface ProjectInfo {
58
+ /** 项目id */
59
+ id: string | number
60
+ /** 父级id */
61
+ parentId?: string
62
+ /** 项目名称 */
63
+ name: string
64
+ /** 租户id */
65
+ tenantId?: string
66
+ }
67
+
68
+ export interface SubAppsInfo {
69
+ /** 所有应用信息 */
70
+ appcategorys?: any[]
71
+ /** 当前应用完整信息 */
72
+ currentSubApp?: any
73
+ /** 所有应用 */
74
+ flatSubAppList?: any[]
75
+ /** 当前应用code */
76
+ currentSubAppCode?: string
77
+ /** 当前打开的应用 */
78
+ subAppList?: any[]
79
+ /** 当前菜单折叠的应用key集合 */
80
+ menuCollapses?: any[]
81
+ }
82
+
83
+ interface TabItem {
84
+ /** 当前应用url */
85
+ currentApplication: string
86
+ /** 当前加载的应用 */
87
+ applicationPath: string
88
+ applicationCode: string
89
+ menuId: string
90
+ name: string
91
+ path: string
92
+ code: string
93
+ query?: any
94
+ }
95
+ export interface TabInfo {
96
+ /** 当前tabs key */
97
+ currentCode?: string
98
+ /** 当前tabs */
99
+ currentTab?: TabItem
100
+ /** 用于记录该应用上次开启的tab */
101
+ preTab?: Record<string, TabItem>
102
+ /** 当前打开的tabs(微前端环境会存入) */
103
+ tabMap?: Record<string, TabItem[]>
104
+ }
105
+
106
+ export type permissionBtnInfo = { code?: string; name?: string }[]
@@ -8,4 +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';
11
12
  export * from '@das-fed/utils/common-tools/extract-file-name';
@@ -8,4 +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";
11
12
  export * from "@das-fed/utils/common-tools/extract-file-name";
@@ -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
+ };
Binary file