@morningfast/platform 1.0.7 → 1.0.8
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/dist/chunks/{Login-7n7MU-kG.js → Login-BU39vYjX.js} +2 -4
- package/dist/chunks/{SystemConfig-DGZUwXWB.js → SystemConfig-C7oT7l8o.js} +2 -3
- package/dist/chunks/{application-config-DePctoXE.js → application-config-Bz36uajb.js} +12 -13
- package/dist/chunks/{system-DZaKDrG6.js → main-C2CR17WW.js} +3340 -91
- package/dist/index.js +4 -7
- package/dist/main.js +2 -5
- package/dist/{auth → src/auth}/index.d.ts +1 -1
- package/dist/{main → src/main}/api/client.d.ts +2 -2
- package/dist/src/main/api/types.d.ts +1 -0
- package/dist/{main → src/main}/app/create-app.d.ts +2 -2
- package/dist/{main → src/main}/layouts/components/AppHeaderMenuNode.vue.d.ts +1 -1
- package/dist/{main → src/main}/layouts/components/AppMenuSearchItem.vue.d.ts +1 -1
- package/dist/{main → src/main}/layouts/components/AppMenuSearchTrigger.vue.d.ts +1 -1
- package/dist/{main → src/main}/layouts/components/AppSidebarNode.vue.d.ts +1 -1
- package/dist/{main → src/main}/layouts/components/AppTabsContextMenu.vue.d.ts +1 -1
- package/dist/{main → src/main}/layouts/utils/menuSearch.d.ts +1 -1
- package/dist/{main → src/main}/router/index.d.ts +1 -1
- package/dist/{main → src/main}/stores/app.d.ts +1 -1
- package/dist/{main → src/main}/stores/auth.d.ts +4 -4
- package/dist/{main → src/main}/utils/auth.d.ts +1 -1
- package/dist/{sub → src/sub}/composables/useRequestClient.d.ts +2 -2
- package/dist/{sub → src/sub}/router/index.d.ts +2 -2
- package/dist/sub.js +2 -2
- package/package.json +8 -8
- package/dist/chunks/_plugin-vue_export-helper-DvRHjpsZ.js +0 -8
- package/dist/chunks/auth-C3RvRgcW.js +0 -248
- package/dist/chunks/main-z6Df1mR9.js +0 -2443
- package/dist/chunks/register-dGBgzdRh.js +0 -575
- package/dist/main/api/types.d.ts +0 -1
- /package/dist/chunks/{Forbidden-Cu2QQ-FY.js → Forbidden-BM9uDrLP.js} +0 -0
- /package/dist/chunks/{NotFound-VRL7_aMx.js → NotFound-CeLeTD4e.js} +0 -0
- /package/dist/chunks/{route-items-CYTYHd0U.js → route-items-9aVNyGkB.js} +0 -0
- /package/dist/chunks/{storage-DNllLr_D.js → storage-BSJwKVAK.js} +0 -0
- /package/dist/chunks/{sub-LssKnIb1.js → sub-DtGKYpEu.js} +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{main → src/main}/api/adapter.d.ts +0 -0
- /package/dist/{main → src/main}/api/auth.d.ts +0 -0
- /package/dist/{main → src/main}/app/AppUpdateDialog.vue.d.ts +0 -0
- /package/dist/{main → src/main}/app/runtime-config.d.ts +0 -0
- /package/dist/{main → src/main}/app/update-checker.d.ts +0 -0
- /package/dist/{main → src/main}/app/update-preferences.d.ts +0 -0
- /package/dist/{main → src/main}/auth/expired.d.ts +0 -0
- /package/dist/{main → src/main}/composables/useSortable.d.ts +0 -0
- /package/dist/{main → src/main}/directives/index.d.ts +0 -0
- /package/dist/{main → src/main}/index.d.ts +0 -0
- /package/dist/{main → src/main}/layouts/AppLayout.vue.d.ts +0 -0
- /package/dist/{main → src/main}/layouts/components/AppBrandLogo.vue.d.ts +0 -0
- /package/dist/{main → src/main}/layouts/components/AppContentView.vue.d.ts +0 -0
- /package/dist/{main → src/main}/layouts/components/AppHeader.vue.d.ts +0 -0
- /package/dist/{main → src/main}/layouts/components/AppMenuSearch.vue.d.ts +0 -0
- /package/dist/{main → src/main}/layouts/components/AppSidebar.vue.d.ts +0 -0
- /package/dist/{main → src/main}/layouts/components/AppSidebarSearch.vue.d.ts +0 -0
- /package/dist/{main → src/main}/layouts/components/AppTabs.vue.d.ts +0 -0
- /package/dist/{main → src/main}/layouts/composables/useAppMenus.d.ts +0 -0
- /package/dist/{main → src/main}/layouts/composables/useShortcutLabel.d.ts +0 -0
- /package/dist/{main → src/main}/layouts/utils/menuIcons.d.ts +0 -0
- /package/dist/{main → src/main}/micro-apps/config.d.ts +0 -0
- /package/dist/{main → src/main}/micro-apps/register.d.ts +0 -0
- /package/dist/{main → src/main}/micro-apps/status.d.ts +0 -0
- /package/dist/{main → src/main}/micro-apps/types.d.ts +0 -0
- /package/dist/{main → src/main}/pages/auth/Login.vue.d.ts +0 -0
- /package/dist/{main → src/main}/pages/error/Forbidden.vue.d.ts +0 -0
- /package/dist/{main → src/main}/pages/error/NotFound.vue.d.ts +0 -0
- /package/dist/{main → src/main}/pages/micro/MicroAppView.vue.d.ts +0 -0
- /package/dist/{main → src/main}/pages/system/SystemConfig.vue.d.ts +0 -0
- /package/dist/{main → src/main}/pages/system/application-config/index.vue.d.ts +0 -0
- /package/dist/{main → src/main}/router/base-routes.d.ts +0 -0
- /package/dist/{main → src/main}/router/guard.d.ts +0 -0
- /package/dist/{main → src/main}/router/route-items.d.ts +0 -0
- /package/dist/{main → src/main}/settings/components/AppearanceSettings.vue.d.ts +0 -0
- /package/dist/{main → src/main}/settings/components/GeneralSettings.vue.d.ts +0 -0
- /package/dist/{main → src/main}/settings/components/LayoutSettings.vue.d.ts +0 -0
- /package/dist/{main → src/main}/settings/components/ShortcutSettings.vue.d.ts +0 -0
- /package/dist/{main → src/main}/settings/components/SystemSettingsDrawer.vue.d.ts +0 -0
- /package/dist/{main → src/main}/settings/components/ThemeToggleButton.vue.d.ts +0 -0
- /package/dist/{main → src/main}/settings/components/ThemedSvgImage.vue.d.ts +0 -0
- /package/dist/{main → src/main}/stores/index.d.ts +0 -0
- /package/dist/{main → src/main}/stores/shortcut.d.ts +0 -0
- /package/dist/{main → src/main}/stores/system.d.ts +0 -0
- /package/dist/{main → src/main}/stores/tabs.d.ts +0 -0
- /package/dist/{main → src/main}/utils/keyboard-shortcut.d.ts +0 -0
- /package/dist/{main → src/main}/utils/persistence.d.ts +0 -0
- /package/dist/{main → src/main}/utils/storage.d.ts +0 -0
- /package/dist/{main → src/main}/utils/theme.d.ts +0 -0
- /package/dist/{micro-contract → src/micro-contract}/index.d.ts +0 -0
- /package/dist/{request → src/request}/index.d.ts +0 -0
- /package/dist/{shared → src/shared}/router/route-items.d.ts +0 -0
- /package/dist/{sub → src/sub}/app/mount.d.ts +0 -0
- /package/dist/{sub → src/sub}/composables/useSubAppContext.d.ts +0 -0
- /package/dist/{sub → src/sub}/context/sub-app-context.d.ts +0 -0
- /package/dist/{sub → src/sub}/index.d.ts +0 -0
- /package/dist/{sub → src/sub}/qiankun/index.d.ts +0 -0
- /package/dist/{sub → src/sub}/theme/index.d.ts +0 -0
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./system-DZaKDrG6.js";
|
|
3
|
-
import { t as n } from "./_plugin-vue_export-helper-DvRHjpsZ.js";
|
|
1
|
+
import { A as e, E as t, f as n } from "./main-C2CR17WW.js";
|
|
4
2
|
import { useRoute as r, useRouter as i } from "vue-router";
|
|
5
3
|
import { ElMessage as a } from "element-plus";
|
|
6
4
|
import { computed as o, createBlock as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, onBeforeUnmount as m, openBlock as h, reactive as g, ref as _, resolveComponent as v, resolveDynamicComponent as y, toDisplayString as b, unref as x, withCtx as S, withKeys as C, withModifiers as w } from "vue";
|
|
7
5
|
import { MpIcon as T } from "morningfast-plus/components";
|
|
8
6
|
import { Iphone as E, Lock as D, Message as O } from "@element-plus/icons-vue";
|
|
9
7
|
//#region src/main/pages/auth/Login.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var k = { class: "login-page" }, A = ["src", "alt"], j = { class: "login-page__brand" }, M = ["src", "alt"], N = { class: "login-page__account" }, P = { class: "login-page__card-header" }, F = { class: "login-page__system" }, I = { class: "login-page__system-mark" }, ee = { class: "login-page__form-sheet" }, L = { class: "login-page__code-row" }, R = { class: "login-page__qr-sheet" }, z =
|
|
8
|
+
var k = { class: "login-page" }, A = ["src", "alt"], j = { class: "login-page__brand" }, M = ["src", "alt"], N = { class: "login-page__account" }, P = { class: "login-page__card-header" }, F = { class: "login-page__system" }, I = { class: "login-page__system-mark" }, ee = { class: "login-page__form-sheet" }, L = { class: "login-page__code-row" }, R = { class: "login-page__qr-sheet" }, z = /*#__PURE__*/ n(/* @__PURE__ */ f({
|
|
11
9
|
__name: "Login",
|
|
12
10
|
setup(n) {
|
|
13
11
|
let f = r(), z = i(), B = e(), V = t(), H = _("password"), U = _(!1), W = _(!1), G = _(!1), K = _(0), q, J = g({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-DvRHjpsZ.js";
|
|
1
|
+
import { E as e, f as t } from "./main-C2CR17WW.js";
|
|
3
2
|
import { ElMessage as n } from "element-plus";
|
|
4
3
|
import { createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, openBlock as c, reactive as l, ref as u, resolveComponent as d, watch as f, withCtx as p, withModifiers as m } from "vue";
|
|
5
4
|
//#region src/main/pages/system/SystemConfig.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var h = { class: "config-center page" }, g = { class: "config-center__content" }, _ = { class: "config-center__header" }, v = { class: "config-center__actions" }, y = { class: "config-center__asset-list" }, b = { class: "config-center__asset-row" }, x = { class: "config-center__asset-card" }, S = { class: "config-center__asset-preview config-center__asset-preview--icon" }, C = ["src"], w = { class: "config-center__asset-card" }, T = { class: "config-center__asset-preview config-center__asset-preview--wide" }, E = ["src", "alt"], D = { class: "config-center__asset-card" }, O = { class: "config-center__asset-preview config-center__asset-preview--square" }, k = ["src", "alt"], A = { class: "config-center__asset-card" }, j = { class: "config-center__asset-preview config-center__asset-preview--wide" }, M = ["src", "alt"], N = { class: "config-center__asset-card" }, P = { class: "config-center__asset-preview config-center__asset-preview--login" }, F = ["src"], I =
|
|
5
|
+
var h = { class: "config-center page" }, g = { class: "config-center__content" }, _ = { class: "config-center__header" }, v = { class: "config-center__actions" }, y = { class: "config-center__asset-list" }, b = { class: "config-center__asset-row" }, x = { class: "config-center__asset-card" }, S = { class: "config-center__asset-preview config-center__asset-preview--icon" }, C = ["src"], w = { class: "config-center__asset-card" }, T = { class: "config-center__asset-preview config-center__asset-preview--wide" }, E = ["src", "alt"], D = { class: "config-center__asset-card" }, O = { class: "config-center__asset-preview config-center__asset-preview--square" }, k = ["src", "alt"], A = { class: "config-center__asset-card" }, j = { class: "config-center__asset-preview config-center__asset-preview--wide" }, M = ["src", "alt"], N = { class: "config-center__asset-card" }, P = { class: "config-center__asset-preview config-center__asset-preview--login" }, F = ["src"], I = /*#__PURE__*/ t(/* @__PURE__ */ s({
|
|
7
6
|
__name: "SystemConfig",
|
|
8
7
|
setup(t) {
|
|
9
8
|
let s = e(), I = u(!1), L = u(null), R = u("expanded"), z = l(B(s.config));
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as c } from "./_plugin-vue_export-helper-DvRHjpsZ.js";
|
|
1
|
+
import { _ as e, b as t, f as n, g as r, h as i, m as a, p as o, v as s, y as c } from "./main-C2CR17WW.js";
|
|
3
2
|
import { ElMessage as l, ElMessageBox as u } from "element-plus";
|
|
4
3
|
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, normalizeClass as b, openBlock as x, reactive as S, ref as C, renderList as w, resolveComponent as T, toDisplayString as E, withCtx as D, withModifiers as O } from "vue";
|
|
5
4
|
//#region src/main/pages/system/application-config/index.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -9,15 +8,15 @@ var k = { class: "app-config-page" }, ee = { class: "app-config-page__apps" }, t
|
|
|
9
8
|
}, fe = { class: "app-config-card__footer" }, pe = { class: "app-config-card__footer-actions" }, me = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "app-config-page__empty"
|
|
12
|
-
}, he = { class: "app-config-empty__actions" }, ge = { class: "app-config-dialog__footer" }, _e = { class: "app-config-dialog__footer" }, ve = { class: "app-config-remove__text" }, A = { class: "app-config-dialog__footer" }, j =
|
|
11
|
+
}, he = { class: "app-config-empty__actions" }, ge = { class: "app-config-dialog__footer" }, _e = { class: "app-config-dialog__footer" }, ve = { class: "app-config-remove__text" }, A = { class: "app-config-dialog__footer" }, j = /*#__PURE__*/ n(/* @__PURE__ */ y({
|
|
13
12
|
__name: "index",
|
|
14
|
-
setup(
|
|
13
|
+
setup(n) {
|
|
15
14
|
let y = C(!1), j = C("create"), M = C(!1), N = C(!1), P = C(!1), F = C(""), I = C(0), L = C(!1), R = C(!1), z = C(null), B = C(be()), V = C(B.value[0]?.id || ""), H = C(""), U = S(J()), W = S({ entry: "" }), ye = f(() => j.value === "edit" ? "编辑应用配置" : j.value === "copy" ? "复制应用配置" : "新增应用配置"), G = f(() => (I.value, B.value.map((e) => ({
|
|
16
15
|
...e,
|
|
17
|
-
entryResolution:
|
|
16
|
+
entryResolution: s(e)
|
|
18
17
|
})))), K = f(() => G.value.find((e) => e.id === F.value)), q = f(() => K.value?.entryResolution);
|
|
19
18
|
function be() {
|
|
20
|
-
return
|
|
19
|
+
return a();
|
|
21
20
|
}
|
|
22
21
|
function J() {
|
|
23
22
|
return {
|
|
@@ -53,7 +52,7 @@ var k = { class: "app-config-page" }, ee = { class: "app-config-page__apps" }, t
|
|
|
53
52
|
z.value = e, L.value = !0;
|
|
54
53
|
}
|
|
55
54
|
function we(e) {
|
|
56
|
-
let t =
|
|
55
|
+
let t = s(e);
|
|
57
56
|
F.value = e.id, W.entry = t.localEntry, N.value = !0;
|
|
58
57
|
}
|
|
59
58
|
async function Te() {
|
|
@@ -61,7 +60,7 @@ var k = { class: "app-config-page" }, ee = { class: "app-config-page__apps" }, t
|
|
|
61
60
|
l.warning("请先填写子应用名称和路由前缀");
|
|
62
61
|
return;
|
|
63
62
|
}
|
|
64
|
-
if (U.entry.trim() &&
|
|
63
|
+
if (U.entry.trim() && i(U.entry)) {
|
|
65
64
|
await u.alert("公共应用配置不能保存 localhost、127.0.0.1 或内网 IP。请把本地调试地址保存到“本地覆盖”。", "入口地址不能保存到公共配置", {
|
|
66
65
|
type: "warning",
|
|
67
66
|
confirmButtonText: "知道了"
|
|
@@ -75,7 +74,7 @@ var k = { class: "app-config-page" }, ee = { class: "app-config-page__apps" }, t
|
|
|
75
74
|
name: U.name.trim(),
|
|
76
75
|
type: "sub",
|
|
77
76
|
description: U.description.trim(),
|
|
78
|
-
basePath:
|
|
77
|
+
basePath: r(U.basePath),
|
|
79
78
|
entry: U.entry.trim()
|
|
80
79
|
};
|
|
81
80
|
j.value === "edit" ? B.value = B.value.map((t) => t.id === H.value ? e : t) : B.value = [e, ...B.value], await Z(), await o(), V.value = e.id, y.value = !1, l.success(De());
|
|
@@ -87,7 +86,7 @@ var k = { class: "app-config-page" }, ee = { class: "app-config-page__apps" }, t
|
|
|
87
86
|
if (K.value) {
|
|
88
87
|
P.value = !0;
|
|
89
88
|
try {
|
|
90
|
-
await
|
|
89
|
+
await t(K.value.id, W.entry), await o(), I.value += 1, N.value = !1, l.success(W.entry.trim() ? "本地覆盖已保存" : "本地覆盖已清除");
|
|
91
90
|
} finally {
|
|
92
91
|
P.value = !1;
|
|
93
92
|
}
|
|
@@ -97,7 +96,7 @@ var k = { class: "app-config-page" }, ee = { class: "app-config-page__apps" }, t
|
|
|
97
96
|
if (K.value) {
|
|
98
97
|
P.value = !0;
|
|
99
98
|
try {
|
|
100
|
-
await
|
|
99
|
+
await e(K.value.id), await o(), W.entry = "", I.value += 1, N.value = !1, l.success("本地覆盖已清除");
|
|
101
100
|
} finally {
|
|
102
101
|
P.value = !1;
|
|
103
102
|
}
|
|
@@ -113,13 +112,13 @@ var k = { class: "app-config-page" }, ee = { class: "app-config-page__apps" }, t
|
|
|
113
112
|
}
|
|
114
113
|
R.value = !0;
|
|
115
114
|
try {
|
|
116
|
-
await
|
|
115
|
+
await e(z.value.id), B.value = B.value.filter((e) => e.id !== z.value?.id), await Z(), await o(), I.value += 1, V.value = B.value[0]?.id || "", L.value = !1, l.success("应用配置已删除");
|
|
117
116
|
} finally {
|
|
118
117
|
R.value = !1, z.value = null;
|
|
119
118
|
}
|
|
120
119
|
}
|
|
121
120
|
async function Z() {
|
|
122
|
-
await
|
|
121
|
+
await c(B.value);
|
|
123
122
|
}
|
|
124
123
|
function ke() {
|
|
125
124
|
H.value = "", Object.assign(U, J());
|