@das-fed/web 6.4.0-test.6.1 → 6.4.0-test.7.1
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/index-B1j_39xg.js +82 -0
- package/index-B1j_39xg.js.gz +0 -0
- package/index-adXxzhJ7.js +13621 -0
- package/index-adXxzhJ7.js.gz +0 -0
- package/{index-DxhjynU_.js → index-pRhgTiVA.js} +1 -1
- package/index.js +4 -4
- package/package.json +8 -6
- package/packages/i18n/index.js +51 -46
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +1 -1
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/index-BfskR6Nj.js +12236 -0
- package/packages/main-app-framework/index-BfskR6Nj.js.gz +0 -0
- package/packages/main-app-framework/{index-DJS2UJ9p.js → index-CajdHIjS.js} +1 -1
- package/packages/main-app-framework/index-CgkGbWvz.js +82 -0
- package/packages/main-app-framework/index-CgkGbWvz.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/i18n/global.d.ts +15 -0
- package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +2 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
- package/types/main-app-framework/i18n/index.d.ts +40 -0
- package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
- package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
- package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
- package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
- package/types/main-app-framework/utils/src/set-common-info.d.ts +2 -2
- package/types/main-app-framework/utils/src/tools.d.ts +5 -1
- package/index-CaTnOy_7.js +0 -76
- package/index-CaTnOy_7.js.gz +0 -0
- package/index-DPLFD5gy.js +0 -7621
- package/index-DPLFD5gy.js.gz +0 -0
- package/packages/main-app-framework/index-VFl407K9.js +0 -76
- package/packages/main-app-framework/index-VFl407K9.js.gz +0 -0
- package/packages/main-app-framework/index-dN-CBG0Y.js +0 -6241
- package/packages/main-app-framework/index-dN-CBG0Y.js.gz +0 -0
|
@@ -379,11 +379,21 @@ declare const _default: {
|
|
|
379
379
|
en: string;
|
|
380
380
|
_appCode: string;
|
|
381
381
|
};
|
|
382
|
+
个性化设置: {
|
|
383
|
+
'zh-CN': string;
|
|
384
|
+
en: string;
|
|
385
|
+
_appCode: string;
|
|
386
|
+
};
|
|
382
387
|
主题设置: {
|
|
383
388
|
'zh-CN': string;
|
|
384
389
|
en: string;
|
|
385
390
|
_appCode: string;
|
|
386
391
|
};
|
|
392
|
+
'home-set': {
|
|
393
|
+
'zh-CN': string;
|
|
394
|
+
en: string;
|
|
395
|
+
_appCode: string;
|
|
396
|
+
};
|
|
387
397
|
个人中心: {
|
|
388
398
|
'zh-CN': string;
|
|
389
399
|
en: string;
|
|
@@ -459,6 +469,11 @@ declare const _default: {
|
|
|
459
469
|
en: string;
|
|
460
470
|
_appCode: string;
|
|
461
471
|
};
|
|
472
|
+
保存成功: {
|
|
473
|
+
'zh-CN': string;
|
|
474
|
+
en: string;
|
|
475
|
+
_appCode: string;
|
|
476
|
+
};
|
|
462
477
|
'\u786E\u8BA4\u5173\u95ED\uFF1F': {
|
|
463
478
|
'zh-CN': string;
|
|
464
479
|
en: string;
|
|
@@ -469,5 +484,30 @@ declare const _default: {
|
|
|
469
484
|
en: string;
|
|
470
485
|
_appCode: string;
|
|
471
486
|
};
|
|
487
|
+
展示类型: {
|
|
488
|
+
'zh-CN': string;
|
|
489
|
+
en: string;
|
|
490
|
+
_appCode: string;
|
|
491
|
+
};
|
|
492
|
+
链接: {
|
|
493
|
+
'zh-CN': string;
|
|
494
|
+
en: string;
|
|
495
|
+
_appCode: string;
|
|
496
|
+
};
|
|
497
|
+
别名: {
|
|
498
|
+
'zh-CN': string;
|
|
499
|
+
en: string;
|
|
500
|
+
_appCode: string;
|
|
501
|
+
};
|
|
502
|
+
恢复项目初始设置: {
|
|
503
|
+
'zh-CN': string;
|
|
504
|
+
en: string;
|
|
505
|
+
_appCode: string;
|
|
506
|
+
};
|
|
507
|
+
'framework-reset-home-confirm': {
|
|
508
|
+
'zh-CN': string;
|
|
509
|
+
en: string;
|
|
510
|
+
_appCode: string;
|
|
511
|
+
};
|
|
472
512
|
};
|
|
473
513
|
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type EncryptCallBackValue = {
|
|
2
|
+
value: null | string;
|
|
3
|
+
error: string | null;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* 加密
|
|
7
|
+
* @param options 配置项
|
|
8
|
+
* @param cryptoContent 带加密内容
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
declare const encrypt: (options: {
|
|
12
|
+
[k: string]: any;
|
|
13
|
+
} | undefined, cryptoContent: string) => Promise<EncryptCallBackValue>;
|
|
14
|
+
export { encrypt };
|
|
@@ -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,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,9 +5,9 @@ export declare const setTenantInfo: (data?: any) => void;
|
|
|
5
5
|
/** 清除租户信息 */
|
|
6
6
|
export declare const clearTenantInfo: () => void;
|
|
7
7
|
/** 存储首页信息 */
|
|
8
|
-
export declare const setHomeInfo: (data?:
|
|
8
|
+
export declare const setHomeInfo: (data?: any) => void;
|
|
9
9
|
/** 存储favIcon */
|
|
10
|
-
export declare const setFavIcon: (data
|
|
10
|
+
export declare const setFavIcon: (data?: string) => void;
|
|
11
11
|
/** 清除首页信息 */
|
|
12
12
|
export declare const clearHomeInfo: () => void;
|
|
13
13
|
/** 存储项目信息 */
|
package/index-CaTnOy_7.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, computed as p, withDirectives as v, openBlock as A, createBlock as U, unref as c, withCtx as C, createVNode as S, vShow as I } from "vue";
|
|
2
|
-
import { layoutData as j } from "@das-fed/web/packages/layout/index";
|
|
3
|
-
import { t as D } from "@das-fed/web/packages/i18n/index";
|
|
4
|
-
import { DasAppContainer as $ } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
5
|
-
import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
|
|
6
|
-
import { getTabInfo as T } from "@das-fed/utils/common-info";
|
|
7
|
-
import { setShowLayout as b } from "@das-fed/utils/common-tools";
|
|
8
|
-
import { createService as E } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as L, p as q, a as u, c as f, b as B, l as P, d as K } from "./index-DPLFD5gy.js";
|
|
10
|
-
const M = "v1", N = E(`/api/justauth/client/${M}`), O = N.get("/visitor/kingdee/auth/user/auth_code"), Z = /* @__PURE__ */ k({
|
|
11
|
-
__name: "index",
|
|
12
|
-
setup(V) {
|
|
13
|
-
const { beforeEntryApp: d, entryApp: m } = L(), h = p(() => q.value.skinStyle), g = p(() => !!j.menu.items.length), w = p(() => {
|
|
14
|
-
if (!u.value || !u.value.length) return [];
|
|
15
|
-
const o = f(u.value);
|
|
16
|
-
return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = y(n.apps, 4)), o) : [] : [];
|
|
17
|
-
}), y = (o, n) => {
|
|
18
|
-
const e = [];
|
|
19
|
-
for (let r = 0; r < o.length; r += n)
|
|
20
|
-
e.push(o.slice(r, r + n));
|
|
21
|
-
return e;
|
|
22
|
-
}, _ = async (o) => {
|
|
23
|
-
if (!o) return;
|
|
24
|
-
if (!sessionStorage.getItem("projectInfo")) {
|
|
25
|
-
window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
const e = f(o);
|
|
29
|
-
if (P.innerSet = !0, e.routeUrl) {
|
|
30
|
-
if (o.code === "Ioc") {
|
|
31
|
-
window.open(e.routeUrl, "_blank");
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
if (o.code === "wojiacloud") {
|
|
35
|
-
const t = sessionStorage.getItem("kingdee_token") || "";
|
|
36
|
-
if (t) {
|
|
37
|
-
const [i, a] = await O().run({ accessToken: t });
|
|
38
|
-
if (a) {
|
|
39
|
-
const s = (a == null ? void 0 : a.auth_code) ?? "";
|
|
40
|
-
e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
const r = (o == null ? void 0 : o.openType) ?? 1, l = (o == null ? void 0 : o.type) ?? 1;
|
|
46
|
-
if (r === 1) {
|
|
47
|
-
if (!await d(o)) return;
|
|
48
|
-
const i = T().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
|
|
49
|
-
m({ microApp: e, menuCode: a, route: { query: s } });
|
|
50
|
-
}
|
|
51
|
-
if (r === 2 && e.routeUrl) {
|
|
52
|
-
let t = "";
|
|
53
|
-
l === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = b(t)) : l === 2 && (t = K(e.routeUrl)), window.open(t, "_blank");
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
return (o, n) => v((A(), U(c(x), {
|
|
57
|
-
full: "",
|
|
58
|
-
spinning: c(B)
|
|
59
|
-
}, {
|
|
60
|
-
default: C(() => [
|
|
61
|
-
S(c($), {
|
|
62
|
-
theme: h.value,
|
|
63
|
-
appCategorys: w.value,
|
|
64
|
-
onOpenApp: _
|
|
65
|
-
}, null, 8, ["theme", "appCategorys"])
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
/* STABLE */
|
|
69
|
-
}, 8, ["spinning"])), [
|
|
70
|
-
[I, !g.value]
|
|
71
|
-
]);
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
export {
|
|
75
|
-
Z as default
|
|
76
|
-
};
|
package/index-CaTnOy_7.js.gz
DELETED
|
Binary file
|