@feedmepos/mf-miniprogram-v2 0.2.8-dev.17 → 0.2.8-dev.18
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/{App-Ck_p8Anr.js → App-DSDt5AEY.js} +1 -1
- package/dist/{ControlPlaneView-DyGICWnm.js → ControlPlaneView-D9dOdDEV.js} +4 -4
- package/dist/{EcosystemView-DOFLyS9X.js → EcosystemView-DHtS5IDN.js} +115 -93
- package/dist/{MobileProjectDialog-TraGwOgW.js → MobileProjectDialog-Bt6r-bHC.js} +122 -122
- package/dist/{MobileProjectsView-DxUiNldK.js → MobileProjectsView-Dvj7YKlO.js} +2 -2
- package/dist/{ModuleDetailView-C2TJToR7.js → ModuleDetailView-CcqJ4Hfu.js} +1 -1
- package/dist/{PagesView-bXfOrylf.js → PagesView-D0RMTyqw.js} +1 -1
- package/dist/{PlatformUnavailableView-CkKpF-bi.js → PlatformUnavailableView-OHEJAztd.js} +1 -1
- package/dist/{PortalSettingsView-D_2Gd3-Y.js → PortalSettingsView-B68s6fiS.js} +7 -7
- package/dist/{TemplateCenterView-DEN51nfK.js → TemplateCenterView-Cpr39Y5S.js} +1 -1
- package/dist/{WorkspaceEntryView-SLqO3Mi4.js → WorkspaceEntryView-gM7RX5BV.js} +1 -1
- package/dist/app.js +10 -10
- package/dist/package.json +1 -1
- package/dist/{portalNavigation-DDMi3QTt.js → portalNavigation-DLcC7Koh.js} +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@ import { components as $, useDialog as E } from "@feedmepos/ui-library";
|
|
|
4
4
|
import { a as O } from "./routes-B9oMJsaM.js";
|
|
5
5
|
import { c as U, e as Y } from "./controlPlane-DR5ykj4d.js";
|
|
6
6
|
import { u as G } from "./portalContext-BeKN8Bcx.js";
|
|
7
|
-
import { w as d } from "./portalNavigation-
|
|
8
|
-
import { p as H, M as J } from "./MobileProjectDialog-
|
|
7
|
+
import { w as d } from "./portalNavigation-DLcC7Koh.js";
|
|
8
|
+
import { p as H, M as J } from "./MobileProjectDialog-Bt6r-bHC.js";
|
|
9
9
|
import { _ as x } from "./StatusBadge.vue_vue_type_script_setup_true_lang-DMm_s9ua.js";
|
|
10
10
|
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const Q = { class: "portal-page" }, W = { class: "portal-page-inner" }, X = { class: "portal-page-heading" }, Z = {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as j, computed as _, ref as F, watch as Y, resolveCompo
|
|
|
2
2
|
import { useRoute as R, useRouter as A } from "vue-router";
|
|
3
3
|
import { useDialog as H } from "@feedmepos/ui-library";
|
|
4
4
|
import { m as J, b as Q, u as W, _ as q } from "./useModuleCatalog-Daw8KA--.js";
|
|
5
|
-
import { w as X } from "./portalNavigation-
|
|
5
|
+
import { w as X } from "./portalNavigation-DLcC7Koh.js";
|
|
6
6
|
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const Z = { class: "detail" }, ee = { class: "detail__head" }, te = { class: "detail__name fm-typo-en-title-sm-600 text-portal-text-primary" }, oe = { class: "detail__version fm-typo-en-body-md-400 text-portal-text-muted" }, ne = {
|
|
8
8
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, resolveComponent as i, openBlock as l, createElementBlock as m, createElementVNode as o, createVNode as r, unref as t, withCtx as u, createTextVNode as c } from "vue";
|
|
2
2
|
import { useRoute as d } from "vue-router";
|
|
3
3
|
import { u as g } from "./portalContext-BeKN8Bcx.js";
|
|
4
|
-
import { w as f } from "./portalNavigation-
|
|
4
|
+
import { w as f } from "./portalNavigation-DLcC7Koh.js";
|
|
5
5
|
import { P as k } from "./PortalIcon-DO0VrIoY.js";
|
|
6
6
|
const w = { class: "portal-page" }, y = { class: "portal-page-inner" }, b = { class: "portal-section portal-empty" }, E = /* @__PURE__ */ p({
|
|
7
7
|
__name: "PagesView",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i, computed as p, resolveComponent as m, openBlock as c, createElementBlock as u, createElementVNode as e, toDisplayString as a, unref as n, createVNode as r, withCtx as d, createTextVNode as _ } from "vue";
|
|
2
2
|
import { useRoute as g } from "vue-router";
|
|
3
3
|
import { P as f } from "./PortalIcon-DO0VrIoY.js";
|
|
4
|
-
import { p as k } from "./portalNavigation-
|
|
4
|
+
import { p as k } from "./portalNavigation-DLcC7Koh.js";
|
|
5
5
|
const y = { class: "portal-page" }, b = { class: "portal-page-inner" }, v = { class: "portal-page-heading" }, h = { class: "portal-section portal-empty" }, P = /* @__PURE__ */ i({
|
|
6
6
|
__name: "PlatformUnavailableView",
|
|
7
7
|
setup(x) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as k, computed as p, ref as
|
|
1
|
+
import { defineComponent as k, computed as p, ref as l, onMounted as P, onScopeDispose as S, resolveComponent as x, openBlock as o, createElementBlock as n, createElementVNode as s, toDisplayString as d, createCommentVNode as h, Fragment as I, createVNode as A, unref as M } from "vue";
|
|
2
2
|
import { useRoute as N } from "vue-router";
|
|
3
3
|
import { e as _, a as $ } from "./index-CIJWcl_6.js";
|
|
4
4
|
import { m as B, e as E } from "./controlPlane-DR5ykj4d.js";
|
|
5
5
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
6
6
|
import { u as U } from "./portalContext-BeKN8Bcx.js";
|
|
7
|
-
import {
|
|
7
|
+
import { l as V } from "./portalNavigation-DLcC7Koh.js";
|
|
8
8
|
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const L = { class: "portal-page" }, R = { class: "portal-page-inner settings-page" }, T = { class: "portal-page-heading" }, D = ["href"], H = {
|
|
10
10
|
key: 0,
|
|
@@ -26,26 +26,26 @@ const L = { class: "portal-page" }, R = { class: "portal-page-inner settings-pag
|
|
|
26
26
|
_("fmmf:dev") === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc"
|
|
27
27
|
).href;
|
|
28
28
|
}
|
|
29
|
-
), m =
|
|
29
|
+
), m = l(null), g = l(!0), r = l(null), v = l(!1), f = $(_("fmmf:dev")).apiOrigin, C = p(() => `${f}/metadata/${a.businessId.value}/pwa-512x512.png`), b = p(() => {
|
|
30
30
|
var t;
|
|
31
31
|
return (t = B()) == null ? void 0 : t.thumbnail;
|
|
32
|
-
}),
|
|
32
|
+
}), i = new AbortController();
|
|
33
33
|
return P(async () => {
|
|
34
34
|
var t;
|
|
35
35
|
try {
|
|
36
36
|
const e = await fetch(`${f}/metadata/${a.businessId.value}/config`, {
|
|
37
|
-
signal: AbortSignal.any([
|
|
37
|
+
signal: AbortSignal.any([i.signal, AbortSignal.timeout(15e3)])
|
|
38
38
|
});
|
|
39
39
|
if (e.status === 404) return;
|
|
40
40
|
if (!e.ok) throw new Error(`Could not load app assets (HTTP ${e.status})`);
|
|
41
41
|
const u = await e.json();
|
|
42
42
|
m.value = ((t = u.pwaConfig) == null ? void 0 : t.name) ?? null;
|
|
43
43
|
} catch (e) {
|
|
44
|
-
|
|
44
|
+
i.signal.aborted || (r.value = E(e));
|
|
45
45
|
} finally {
|
|
46
46
|
g.value = !1;
|
|
47
47
|
}
|
|
48
|
-
}), S(() =>
|
|
48
|
+
}), S(() => i.abort()), (t, e) => {
|
|
49
49
|
const u = x("FmIcon");
|
|
50
50
|
return o(), n("div", L, [
|
|
51
51
|
s("div", R, [
|
|
@@ -4,7 +4,7 @@ import { useDialog as ee } from "@feedmepos/ui-library";
|
|
|
4
4
|
import { useRouter as te } from "vue-router";
|
|
5
5
|
import { c as F, e as I } from "./controlPlane-DR5ykj4d.js";
|
|
6
6
|
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { w as ae } from "./portalNavigation-
|
|
7
|
+
import { w as ae } from "./portalNavigation-DLcC7Koh.js";
|
|
8
8
|
const le = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "portal-error",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as s, watchEffect as a, openBlock as n, createElementBlock as p } from "vue";
|
|
2
2
|
import { useRoute as u, useRouter as i } from "vue-router";
|
|
3
3
|
import { u as l } from "./portalContext-BeKN8Bcx.js";
|
|
4
|
-
import { w as m, a as f } from "./portalNavigation-
|
|
4
|
+
import { w as m, a as f } from "./portalNavigation-DLcC7Koh.js";
|
|
5
5
|
const _ = {
|
|
6
6
|
class: "portal-loading",
|
|
7
7
|
role: "status"
|
package/dist/app.js
CHANGED
|
@@ -4,24 +4,24 @@ const o = [
|
|
|
4
4
|
path: "/platforms/mobile",
|
|
5
5
|
name: "miniprogram-v2-mobile-projects",
|
|
6
6
|
meta: { title: "Mobile" },
|
|
7
|
-
component: () => import("./MobileProjectsView-
|
|
7
|
+
component: () => import("./MobileProjectsView-Dvj7YKlO.js")
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
path: "/",
|
|
11
11
|
name: "miniprogram-v2-ecosystem",
|
|
12
12
|
meta: { title: "Ecosystem" },
|
|
13
13
|
beforeEnter: (e) => ["workspace", "releases", "sessions"].includes(String(e.query.view)) ? { name: "miniprogram-v2-control", query: e.query } : !0,
|
|
14
|
-
component: () => import("./EcosystemView-
|
|
14
|
+
component: () => import("./EcosystemView-DHtS5IDN.js")
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
path: "/workspace",
|
|
18
18
|
name: "miniprogram-v2-control",
|
|
19
|
-
component: () => import("./WorkspaceEntryView-
|
|
19
|
+
component: () => import("./WorkspaceEntryView-gM7RX5BV.js")
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
path: "/p/:projectId/:view(workspace|releases|sessions)?",
|
|
23
23
|
name: "miniprogram-v2-project",
|
|
24
|
-
component: () => import("./ControlPlaneView-
|
|
24
|
+
component: () => import("./ControlPlaneView-D9dOdDEV.js")
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
path: "/brand-kit",
|
|
@@ -33,19 +33,19 @@ const o = [
|
|
|
33
33
|
path: "/pages",
|
|
34
34
|
name: "miniprogram-v2-pages",
|
|
35
35
|
meta: { title: "Pages" },
|
|
36
|
-
component: () => import("./PagesView-
|
|
36
|
+
component: () => import("./PagesView-D0RMTyqw.js")
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
path: "/settings",
|
|
40
40
|
name: "miniprogram-v2-settings",
|
|
41
41
|
meta: { title: "Settings" },
|
|
42
|
-
component: () => import("./PortalSettingsView-
|
|
42
|
+
component: () => import("./PortalSettingsView-B68s6fiS.js")
|
|
43
43
|
},
|
|
44
44
|
...["tablet", "kiosk"].map((e) => ({
|
|
45
45
|
path: `/platforms/${e}`,
|
|
46
46
|
name: `miniprogram-v2-${e}`,
|
|
47
47
|
meta: { title: e === "tablet" ? "Tablet" : "Kiosk", kind: e },
|
|
48
|
-
component: () => import("./PlatformUnavailableView-
|
|
48
|
+
component: () => import("./PlatformUnavailableView-OHEJAztd.js")
|
|
49
49
|
})),
|
|
50
50
|
{
|
|
51
51
|
// The shared component library, not this merchant's workspace — which is
|
|
@@ -61,7 +61,7 @@ const o = [
|
|
|
61
61
|
path: "/modules/:name",
|
|
62
62
|
name: "miniprogram-v2-module-detail",
|
|
63
63
|
meta: { title: "Component Library" },
|
|
64
|
-
component: () => import("./ModuleDetailView-
|
|
64
|
+
component: () => import("./ModuleDetailView-CcqJ4Hfu.js")
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
// Internal-only: linked from the main nav (App.vue), but only once
|
|
@@ -72,13 +72,13 @@ const o = [
|
|
|
72
72
|
path: "/internal/template-center",
|
|
73
73
|
name: "miniprogram-v2-template-center",
|
|
74
74
|
meta: { title: "Template library", requiresAdmin: !0 },
|
|
75
|
-
component: () => import("./TemplateCenterView-
|
|
75
|
+
component: () => import("./TemplateCenterView-Cpr39Y5S.js")
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
path: "/:pathMatch(.*)*",
|
|
79
79
|
redirect: (e) => ({ name: "miniprogram-v2-ecosystem", query: e.query, params: {} })
|
|
80
80
|
}
|
|
81
|
-
], r = {}, a = t(() => import("./App-
|
|
81
|
+
], r = {}, a = t(() => import("./App-DSDt5AEY.js")), n = t(() => import("./LegacyWorkspaceEntry-lEMtmdIe.js"));
|
|
82
82
|
export {
|
|
83
83
|
a as FmApp,
|
|
84
84
|
n as MiniprogramWorkspace,
|
package/dist/package.json
CHANGED