@das-fed/web 7.0.7-hot.46 → 7.0.7-hot.49
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.js +7 -32
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +1 -71
- package/packages/create-das-web-app/runtime.js +58 -0
- package/packages/create-das-web-app/runtime.js.gz +0 -0
- package/packages/i18n/index.js +1 -175
- package/packages/i18n/runtime.js +175 -0
- package/packages/layout/index.js +2 -785
- package/packages/layout/runtime.js +784 -0
- package/packages/layout/runtime.js.gz +0 -0
- package/packages/main-app-framework/assets/black-logo-B-Qipuvf.png +0 -0
- package/packages/main-app-framework/assets/cjb-CTZzysmN.png +0 -0
- package/packages/main-app-framework/assets/cjb-preview-Cz6ZEp0h.png +0 -0
- package/packages/main-app-framework/assets/cjb-preview-DWYaDhQb.png +0 -0
- package/packages/main-app-framework/assets/default-DOjV2jIm.png +0 -0
- package/packages/main-app-framework/assets/default-preview-DEfMZxi2.png +0 -0
- package/packages/main-app-framework/assets/default-preview-HZjPO_Oz.png +0 -0
- package/packages/main-app-framework/assets/dkh-DkyUTuR0.png +0 -0
- package/packages/main-app-framework/assets/dkh-preview-DQZDuJfb.png +0 -0
- package/packages/main-app-framework/assets/dkh-preview-SJ0YoU2z.png +0 -0
- package/packages/main-app-framework/assets/feedback-QNGIKgWm.png +0 -0
- package/packages/main-app-framework/assets/hengxian-CyCsW-Hu.png +0 -0
- package/packages/main-app-framework/assets/kjl-DozNzlyC.png +0 -0
- package/packages/main-app-framework/assets/kjl-preview-CCoSuYDK.png +0 -0
- package/packages/main-app-framework/assets/kjl-preview-xHIEscys.png +0 -0
- package/packages/main-app-framework/assets/noIconurl-7L4lHbul.png +0 -0
- package/packages/main-app-framework/assets/qianru-Bsf1Lhh2.png +0 -0
- package/packages/main-app-framework/assets/setected-tvECHVG9.svg +31 -0
- package/packages/main-app-framework/assets/ssl-XnQ4A9bQ.png +0 -0
- package/packages/main-app-framework/assets/ssl-preview-C4BD2d61.png +0 -0
- package/packages/main-app-framework/assets/ssl-preview-DI5pA3Df.png +0 -0
- package/packages/main-app-framework/assets/unselected-C4QVkFPL.svg +39 -0
- package/packages/main-app-framework/assets/white-logo-D7bqAkJL.png +0 -0
- package/{index-Cb2ofhOv.js → packages/main-app-framework/index-1EqVNVzw.js} +1 -1
- package/packages/main-app-framework/index-1EqVNVzw.js.gz +0 -0
- package/packages/main-app-framework/{index-CaeAd-j5.js → index-B5BuSOUg.js} +1 -1
- package/packages/main-app-framework/index-CkW_eET7.js +16721 -0
- package/packages/main-app-framework/index-CkW_eET7.js.gz +0 -0
- package/packages/main-app-framework/index.js +2 -7
- package/packages/main-app-framework/runtime.js +6 -0
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +2 -848
- package/packages/micro-frontend/runtime.js +847 -0
- package/packages/micro-frontend/runtime.js.gz +0 -0
- package/packages/style/index.js +3 -5
- package/packages/style/runtime.js +4 -0
- package/packages/theme/index.js +2 -75
- package/packages/theme/runtime.js +75 -0
- package/index-Cb2ofhOv.js.gz +0 -0
- package/index-Dp9hJ9r4.js +0 -10
- package/index-rHw0J4J7.js +0 -18391
- package/index-rHw0J4J7.js.gz +0 -0
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/layout/index.js.gz +0 -0
- package/packages/main-app-framework/index-BoujGtEq.js +0 -16887
- package/packages/main-app-framework/index-BoujGtEq.js.gz +0 -0
- package/packages/main-app-framework/index-CQENP6we.js +0 -88
- package/packages/main-app-framework/index-CQENP6we.js.gz +0 -0
- package/packages/micro-frontend/index.js.gz +0 -0
- package/style.css +0 -7
- package/style.css.gz +0 -0
- package/types/create-das-web-app/get-web-config.d.ts +0 -1
- package/types/main-app-framework/project-custom/jiangling/auth-recovery.d.ts +0 -5
- package/types/main-app-framework/project-custom/jiangling/sso-api.d.ts +0 -49
- package/types/main-app-framework/project-custom/jiangling/use-sso.d.ts +0 -11
- package/types/main-app-framework/project-custom/jiangling/utils.d.ts +0 -3
- /package/packages/i18n/{index.js.gz → runtime.js.gz} +0 -0
- /package/packages/theme/{index.js.gz → runtime.js.gz} +0 -0
|
Binary file
|
package/packages/style/index.js
CHANGED
package/packages/theme/index.js
CHANGED
|
@@ -1,75 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
light: {},
|
|
4
|
-
dark: {}
|
|
5
|
-
}), u = h({
|
|
6
|
-
light: {},
|
|
7
|
-
dark: {}
|
|
8
|
-
}), v = "dasTheme", r = "das-theme", y = (t) => {
|
|
9
|
-
let e = {
|
|
10
|
-
light: {},
|
|
11
|
-
dark: {}
|
|
12
|
-
};
|
|
13
|
-
if (!t) return e;
|
|
14
|
-
const { light: l = {}, dark: n = {}, base: a = {}, ...s } = t || {};
|
|
15
|
-
e.light = { ...l, ...a }, e.dark = n || {};
|
|
16
|
-
for (const o in s) {
|
|
17
|
-
const c = s[o];
|
|
18
|
-
if (typeof c == "string" && (e.light[o] = c), typeof c == "object")
|
|
19
|
-
for (const m in c)
|
|
20
|
-
e[m] || (e[m] = {}), e[m][o] || (e[m][o] = {}), e[m][o] = c[m];
|
|
21
|
-
}
|
|
22
|
-
return e;
|
|
23
|
-
};
|
|
24
|
-
function T(t) {
|
|
25
|
-
const e = "das-global-theme", l = "das-custom-theme";
|
|
26
|
-
if (!document.getElementById(l)) {
|
|
27
|
-
const a = document.createElement("style");
|
|
28
|
-
a.appendChild(document.createTextNode("")), a.setAttribute("id", l), document.head.appendChild(a);
|
|
29
|
-
}
|
|
30
|
-
if (!document.getElementById(e)) {
|
|
31
|
-
const a = document.createElement("style");
|
|
32
|
-
a.appendChild(document.createTextNode("")), a.setAttribute("id", e), document.head.appendChild(a);
|
|
33
|
-
}
|
|
34
|
-
t || (t = "custom");
|
|
35
|
-
let n = document.getElementById(l);
|
|
36
|
-
return t === "global" && (n = document.getElementById(e)), n.sheet;
|
|
37
|
-
}
|
|
38
|
-
const g = (t, e) => {
|
|
39
|
-
e || (e = "custom");
|
|
40
|
-
const l = T(e), n = y(t);
|
|
41
|
-
for (const s in n) {
|
|
42
|
-
const o = n[s];
|
|
43
|
-
for (const c in o) {
|
|
44
|
-
const m = o[c], f = `${r}-${s}`;
|
|
45
|
-
l.insertRule(`.${f} { ${c}:${m} } `, l.cssRules.length);
|
|
46
|
-
}
|
|
47
|
-
e === "global" && (u.value[s] || (u.value[s] = {}), u.value[s] = { ...u.value[s], ...o }), e === "custom" && (i.value[s] || (i.value[s] = {}), i.value[s] = { ...i.value[s], ...o });
|
|
48
|
-
}
|
|
49
|
-
const a = `${r}-${d.value}`;
|
|
50
|
-
document.body.classList.contains(a) || document.body.classList.add(a);
|
|
51
|
-
}, D = async (t) => {
|
|
52
|
-
var n, a;
|
|
53
|
-
const e = window[v];
|
|
54
|
-
e && g(e, "global");
|
|
55
|
-
let l = Object.assign(((n = t == null ? void 0 : t.theme) == null ? void 0 : n.glob) || {});
|
|
56
|
-
(a = t == null ? void 0 : t.microApps) == null || a.map((s) => {
|
|
57
|
-
var o;
|
|
58
|
-
l = Object.assign(l, ((o = s.theme) == null ? void 0 : o.glob) || {});
|
|
59
|
-
}), Object.values(l).filter((s) => !!s).flat().map((s) => g(s));
|
|
60
|
-
}, C = (t) => {
|
|
61
|
-
document.body.classList.add(`${r}-light`), t === "light" && document.body.classList.remove(`${r}-${d.value}`), d.value = t, document.body.classList.add(`${r}-${d.value}`);
|
|
62
|
-
}, $ = (t) => b(() => {
|
|
63
|
-
var e, l, n, a;
|
|
64
|
-
return ((l = (e = u.value) == null ? void 0 : e[d.value]) == null ? void 0 : l[t]) || ((a = (n = i.value) == null ? void 0 : n[d.value]) == null ? void 0 : a[t]) || t;
|
|
65
|
-
}), E = (t) => `var(${t})`, R = $, x = {};
|
|
66
|
-
export {
|
|
67
|
-
d as currentTheme,
|
|
68
|
-
x as default,
|
|
69
|
-
$ as getThemeRule,
|
|
70
|
-
E as getVar,
|
|
71
|
-
R as getVarValue,
|
|
72
|
-
D as initTheme,
|
|
73
|
-
C as setTheme,
|
|
74
|
-
g as setThemeRule
|
|
75
|
-
};
|
|
1
|
+
export * from './runtime.js'
|
|
2
|
+
export { default } from './runtime.js'
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ref as h, computed as b } from "vue";
|
|
2
|
+
const d = h("light"), i = h({
|
|
3
|
+
light: {},
|
|
4
|
+
dark: {}
|
|
5
|
+
}), u = h({
|
|
6
|
+
light: {},
|
|
7
|
+
dark: {}
|
|
8
|
+
}), v = "dasTheme", r = "das-theme", y = (t) => {
|
|
9
|
+
let e = {
|
|
10
|
+
light: {},
|
|
11
|
+
dark: {}
|
|
12
|
+
};
|
|
13
|
+
if (!t) return e;
|
|
14
|
+
const { light: l = {}, dark: n = {}, base: a = {}, ...s } = t || {};
|
|
15
|
+
e.light = { ...l, ...a }, e.dark = n || {};
|
|
16
|
+
for (const o in s) {
|
|
17
|
+
const c = s[o];
|
|
18
|
+
if (typeof c == "string" && (e.light[o] = c), typeof c == "object")
|
|
19
|
+
for (const m in c)
|
|
20
|
+
e[m] || (e[m] = {}), e[m][o] || (e[m][o] = {}), e[m][o] = c[m];
|
|
21
|
+
}
|
|
22
|
+
return e;
|
|
23
|
+
};
|
|
24
|
+
function T(t) {
|
|
25
|
+
const e = "das-global-theme", l = "das-custom-theme";
|
|
26
|
+
if (!document.getElementById(l)) {
|
|
27
|
+
const a = document.createElement("style");
|
|
28
|
+
a.appendChild(document.createTextNode("")), a.setAttribute("id", l), document.head.appendChild(a);
|
|
29
|
+
}
|
|
30
|
+
if (!document.getElementById(e)) {
|
|
31
|
+
const a = document.createElement("style");
|
|
32
|
+
a.appendChild(document.createTextNode("")), a.setAttribute("id", e), document.head.appendChild(a);
|
|
33
|
+
}
|
|
34
|
+
t || (t = "custom");
|
|
35
|
+
let n = document.getElementById(l);
|
|
36
|
+
return t === "global" && (n = document.getElementById(e)), n.sheet;
|
|
37
|
+
}
|
|
38
|
+
const g = (t, e) => {
|
|
39
|
+
e || (e = "custom");
|
|
40
|
+
const l = T(e), n = y(t);
|
|
41
|
+
for (const s in n) {
|
|
42
|
+
const o = n[s];
|
|
43
|
+
for (const c in o) {
|
|
44
|
+
const m = o[c], f = `${r}-${s}`;
|
|
45
|
+
l.insertRule(`.${f} { ${c}:${m} } `, l.cssRules.length);
|
|
46
|
+
}
|
|
47
|
+
e === "global" && (u.value[s] || (u.value[s] = {}), u.value[s] = { ...u.value[s], ...o }), e === "custom" && (i.value[s] || (i.value[s] = {}), i.value[s] = { ...i.value[s], ...o });
|
|
48
|
+
}
|
|
49
|
+
const a = `${r}-${d.value}`;
|
|
50
|
+
document.body.classList.contains(a) || document.body.classList.add(a);
|
|
51
|
+
}, D = async (t) => {
|
|
52
|
+
var n, a;
|
|
53
|
+
const e = window[v];
|
|
54
|
+
e && g(e, "global");
|
|
55
|
+
let l = Object.assign(((n = t == null ? void 0 : t.theme) == null ? void 0 : n.glob) || {});
|
|
56
|
+
(a = t == null ? void 0 : t.microApps) == null || a.map((s) => {
|
|
57
|
+
var o;
|
|
58
|
+
l = Object.assign(l, ((o = s.theme) == null ? void 0 : o.glob) || {});
|
|
59
|
+
}), Object.values(l).filter((s) => !!s).flat().map((s) => g(s));
|
|
60
|
+
}, C = (t) => {
|
|
61
|
+
document.body.classList.add(`${r}-light`), t === "light" && document.body.classList.remove(`${r}-${d.value}`), d.value = t, document.body.classList.add(`${r}-${d.value}`);
|
|
62
|
+
}, $ = (t) => b(() => {
|
|
63
|
+
var e, l, n, a;
|
|
64
|
+
return ((l = (e = u.value) == null ? void 0 : e[d.value]) == null ? void 0 : l[t]) || ((a = (n = i.value) == null ? void 0 : n[d.value]) == null ? void 0 : a[t]) || t;
|
|
65
|
+
}), E = (t) => `var(${t})`, R = $, x = {};
|
|
66
|
+
export {
|
|
67
|
+
d as currentTheme,
|
|
68
|
+
x as default,
|
|
69
|
+
$ as getThemeRule,
|
|
70
|
+
E as getVar,
|
|
71
|
+
R as getVarValue,
|
|
72
|
+
D as initTheme,
|
|
73
|
+
C as setTheme,
|
|
74
|
+
g as setThemeRule
|
|
75
|
+
};
|
package/index-Cb2ofhOv.js.gz
DELETED
|
Binary file
|
package/index-Dp9hJ9r4.js
DELETED