@das-fed/web 6.4.0-dev.9 → 6.4.0-dev.91

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/esm-map.json +4 -1
  2. package/{index-FqrjMxhu.js → index-CsEX6zxA.js} +1 -1
  3. package/index-DXL5jYrG.js +81 -0
  4. package/index-DXL5jYrG.js.gz +0 -0
  5. package/index-JQg--Cmc.js +13273 -0
  6. package/index-JQg--Cmc.js.gz +0 -0
  7. package/index.js +24 -21
  8. package/package.json +8 -6
  9. package/packages/create-das-web-app/index.js +48 -802
  10. package/packages/create-das-web-app/index.js.gz +0 -0
  11. package/packages/i18n/index.js +172 -31
  12. package/packages/i18n/index.js.gz +0 -0
  13. package/packages/layout/index.js +460 -507
  14. package/packages/layout/index.js.gz +0 -0
  15. package/packages/layout/style.css +2 -2
  16. package/packages/layout/style.css.gz +0 -0
  17. package/packages/main-app-framework/index-Bm_tLBXF.js +11907 -0
  18. package/packages/main-app-framework/index-Bm_tLBXF.js.gz +0 -0
  19. package/packages/main-app-framework/{index-CeWtWuF1.js → index-D1_j1bhg.js} +1 -1
  20. package/packages/main-app-framework/index-DdhcschT.js +81 -0
  21. package/packages/main-app-framework/index-DdhcschT.js.gz +0 -0
  22. package/packages/main-app-framework/index.js +3 -2
  23. package/packages/main-app-framework/style.css +1 -1
  24. package/packages/main-app-framework/style.css.gz +0 -0
  25. package/packages/micro-frontend/index.js +330 -338
  26. package/packages/micro-frontend/index.js.gz +0 -0
  27. package/packages/micro-frontend/style.css +1 -1
  28. package/packages/style/style.css +1 -1
  29. package/packages/style/style.css.gz +0 -0
  30. package/packages/theme/index.js.gz +0 -0
  31. package/style.css +2 -2
  32. package/style.css.gz +0 -0
  33. package/types/i18n/global.d.ts +583 -0
  34. package/types/i18n/index.d.ts +4 -2
  35. package/types/layout/index.d.ts +1 -1
  36. package/types/layout/store/index.d.ts +5 -0
  37. package/types/layout/store/menu.d.ts +2 -0
  38. package/types/layout/store/nav.d.ts +1 -0
  39. package/types/layout/store/tab.d.ts +1 -0
  40. package/types/main-app-framework/business/video-link/api.d.ts +2 -0
  41. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  42. package/types/main-app-framework/components/index.d.ts +1 -0
  43. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
  44. package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +2 -0
  45. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
  46. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
  47. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
  48. package/types/main-app-framework/constant/index.d.ts +1 -1
  49. package/types/main-app-framework/data-track/api.d.ts +2 -0
  50. package/types/main-app-framework/data-track/index.d.ts +2 -0
  51. package/types/main-app-framework/i18n/index.d.ts +518 -0
  52. package/types/main-app-framework/index.d.ts +1 -0
  53. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  54. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +3 -2
  55. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
  56. package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
  57. package/types/main-app-framework/init-config/get-system-config/index.d.ts +3 -3
  58. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +1 -1
  59. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +1 -0
  60. package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
  61. package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
  62. package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
  63. package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
  64. package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
  65. package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
  66. package/types/main-app-framework/utils/src/set-common-info.d.ts +4 -2
  67. package/types/main-app-framework/utils/src/tools.d.ts +5 -1
  68. package/index-1rgcqPwr.js +0 -68
  69. package/index-1rgcqPwr.js.gz +0 -0
  70. package/index-Dj08Rzpl.js +0 -8094
  71. package/index-Dj08Rzpl.js.gz +0 -0
  72. package/index-kp3YC2yr.js +0 -70
  73. package/index-kp3YC2yr.js.gz +0 -0
  74. package/packages/main-app-framework/index-Bb93MzFY.js +0 -70
  75. package/packages/main-app-framework/index-Bb93MzFY.js.gz +0 -0
  76. package/packages/main-app-framework/index-BgnG17a9.js +0 -6041
  77. package/packages/main-app-framework/index-BgnG17a9.js.gz +0 -0
  78. package/packages/main-app-framework/index-CaRxqPOy.js +0 -68
  79. package/packages/main-app-framework/index-CaRxqPOy.js.gz +0 -0
@@ -0,0 +1,42 @@
1
+ import { EncryptCallBackValue } from './type';
2
+
3
+ /**
4
+ * aes 加密
5
+ * @param {string} encrypt
6
+ * @param {string} key
7
+ * @param {Object} options 配置对象, 可配置如下
8
+ * options.mode {String} 加密模式, 值 可能为 CBC (默认值) CFB OFB ECB, 如果是其他值 报错
9
+ * options.keySize {Number},秘钥长度字节数, 共三种可能, 为16, 24, 32, 如果是其他值, 返回 错误
10
+ * options.padding {String}, 填充, 值可能为 pkcs7(默认) pkcs5 zero iso10126 ansix923, 如果是其他值报错
11
+ * options.encoding {String} 输出的编码, base64 (默认) hex , 如果是其他, 报错
12
+ * options.iv {String} 偏移量, 当是 ECB模式时,要为空, 哪怕赋值也会被忽略, 其他模式不能为空
13
+ *
14
+ * @param {Function} complete 参数为 Object,其中
15
+ * object.value: 加密后的内容, 如果加密失败 则是 null
16
+ * object.error: 加密失败后的 错误提示
17
+ */
18
+ declare function aes(encrypt: string, key: string, options: {
19
+ [k: string]: any;
20
+ }, complete: (p: EncryptCallBackValue) => void): void;
21
+ /**
22
+ * des 加密
23
+ * @param {string} encrypt
24
+ * @param {string} key
25
+ * @param {Object} options 配置对象, 可配置如下
26
+ * options.mode {String} 加密模式, 值 可能为 CBC (默认值) CFB OFB ECB, 如果是其他值 报错
27
+ * options.padding {String}, 填充, 值可能为 pkcs7(默认) pkcs5 zero iso10126 ansix923, 如果是其他值报错
28
+ * options.encoding {String} 输出的编码, base64 (默认) hex , 如果是其他, 报错
29
+ * options.iv {String} 偏移量, 当是 ECB模式时,要为空, 哪怕赋值也会被忽略, 其他模式不能为空
30
+ *
31
+ * @param {Function} complete 参数为 Object,其中
32
+ * object.value: 加密后的内容, 如果加密失败 则是 null
33
+ * object.error: 加密失败后的 错误提示
34
+ */
35
+ declare function des(encrypt: string, key: string, options: {
36
+ [k: string]: any;
37
+ }, complete: (p: EncryptCallBackValue) => void): void;
38
+ declare const encryptUtil: {
39
+ aes: typeof aes;
40
+ des: typeof des;
41
+ };
42
+ export { encryptUtil };
@@ -0,0 +1,4 @@
1
+ declare function generateUrl(url: string, queryObj: {
2
+ [k: string]: any;
3
+ }): any;
4
+ export { generateUrl };
@@ -0,0 +1,2 @@
1
+ declare function handlePortalParams(paramsList: any[]): unknown;
2
+ export { handlePortalParams };
@@ -0,0 +1,2 @@
1
+ declare const getPortalUrl: (url: string, paramsList: any[]) => Promise<string>;
2
+ export { getPortalUrl };
@@ -0,0 +1,16 @@
1
+ export declare enum InnerParamType {
2
+ USER_ACCOUNT = "USER_ACCOUNT",
3
+ USER_PHONE = "USER_PHONE",
4
+ USER_TOKEN = "USER_TOKEN",
5
+ CURRENT_PROJECT = "CURRENT_PROJECT",
6
+ USER_NAME = "USER_NAME",
7
+ USER_NICKNAME = "USER_NICKNAME"
8
+ }
9
+ export declare enum HTMLQueryParamType {
10
+ TEXT = "TEXT",
11
+ JSON = "JSON"
12
+ }
13
+ export type EncryptCallBackValue = {
14
+ value: null | string;
15
+ error: string | null;
16
+ };
@@ -5,13 +5,15 @@ export declare const setTenantInfo: (data?: any) => void;
5
5
  /** 清除租户信息 */
6
6
  export declare const clearTenantInfo: () => void;
7
7
  /** 存储首页信息 */
8
- export declare const setHomeInfo: (data?: {}) => void;
8
+ export declare const setHomeInfo: (data?: any) => void;
9
9
  /** 存储favIcon */
10
- export declare const setFavIcon: (data: string) => void;
10
+ export declare const setFavIcon: (data?: string) => void;
11
11
  /** 清除首页信息 */
12
12
  export declare const clearHomeInfo: () => void;
13
13
  /** 存储项目信息 */
14
14
  export declare const setProjectInfo: (data: any) => void;
15
+ /** 存储项目详细信息 */
16
+ export declare const setProjectMessage: (data?: any) => void;
15
17
  /** 清除项目数据 */
16
18
  export declare const clearProjectInfo: () => void;
17
19
  /** 存储标签页信息,如果传入对象则进行该项替换 */
@@ -1 +1,5 @@
1
- export declare const addTokenToUrl: (href: string) => any;
1
+ import { getPortalUrl } from './get-portal-url';
2
+
3
+ /** 根据url参数选择性携带token */
4
+ declare const addTokenToUrl: (href: string) => any;
5
+ export { addTokenToUrl, getPortalUrl };
package/index-1rgcqPwr.js DELETED
@@ -1,68 +0,0 @@
1
- import { defineComponent as v, ref as r, nextTick as u, watch as p, onMounted as _, onUnmounted as h, openBlock as c, createElementBlock as l, createVNode as w, unref as g, withCtx as k, withDirectives as x, vShow as y, createCommentVNode as I } from "vue";
2
- import { useRoute as P } from "vue-router";
3
- import { DasSpin as S } from "@das-fed/ui/packages/components/spin/index";
4
- import { layout as C } from "@das-fed/web/packages/layout/index";
5
- import { I as R, e as L, _ as M } from "./index-Dj08Rzpl.js";
6
- import { getToken as j, getPersonalInfo as B, getProjectInfo as D } from "@das-fed/utils/common-info";
7
- import { getUrlParams as E } from "@das-fed/utils/common-tools";
8
- const N = {
9
- key: 0,
10
- class: "iframe-container"
11
- }, T = ["src"], U = /* @__PURE__ */ v({
12
- __name: "index",
13
- setup(V) {
14
- const t = r(""), n = r(!0);
15
- C.tab.addEventListener("onPageRefresh", async (e) => {
16
- e && e.path === R && (L(e.applicationCode, [e.code]), n.value = !1, await u(), n.value = !0);
17
- });
18
- const a = r(!1), i = r(null), o = r(!1), f = () => {
19
- var e, s;
20
- o.value && (e = i.value) != null && e.contentWindow && ((s = i.value.contentWindow) == null || s.postMessage(
21
- {
22
- token: j(),
23
- userInfo: B(),
24
- projectInfo: D()
25
- },
26
- t.value
27
- ));
28
- }, m = P();
29
- p(
30
- () => m.query.iframeSrc,
31
- async (e) => {
32
- e && (t.value = e, a.value = !1, await u(), a.value = !0, f());
33
- }
34
- );
35
- const d = () => {
36
- o.value = !0, f();
37
- };
38
- return _(() => {
39
- a.value = !0, t.value = E(location.href, "iframeSrc");
40
- }), h(() => {
41
- o.value = !1, a.value = !1;
42
- }), (e, s) => a.value && n.value ? (c(), l("div", N, [
43
- w(g(S), {
44
- spinning: !o.value
45
- }, {
46
- default: k(() => [
47
- x((c(), l("iframe", {
48
- id: "iframe-view",
49
- ref_key: "iframeRef",
50
- ref: i,
51
- width: "100%",
52
- height: "100%",
53
- src: t.value,
54
- key: t.value,
55
- onLoad: d
56
- }, null, 40, T)), [
57
- [y, o.value]
58
- ])
59
- ]),
60
- _: 1
61
- /* STABLE */
62
- }, 8, ["spinning"])
63
- ])) : I("v-if", !0);
64
- }
65
- }), H = /* @__PURE__ */ M(U, [["__scopeId", "data-v-9d185d90"]]);
66
- export {
67
- H as default
68
- };
Binary file