@feedmepos/mf-miniprogram-v2 0.2.11 → 0.2.12-dev.2
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-DfA0ddUO.js → App-DkOwAOxM.js} +30 -30
- package/dist/{BrandFontPicker-d1bRoXRp.js → BrandFontPicker-D_MntcD2.js} +1 -1
- package/dist/{BrandKitView-CUUJOv_Q.js → BrandKitView-DHV0PUus.js} +2 -2
- package/dist/{ControlPlaneView-C9Li1prK.js → ControlPlaneView-9iS3i2u0.js} +9339 -9098
- package/dist/{EcosystemView-BY0bYRoD.js → EcosystemView-Blo9u-dq.js} +4 -4
- package/dist/{LegacyWorkspaceEntry-DaHiQCt9.js → LegacyWorkspaceEntry-IRMa-8U4.js} +1 -1
- package/dist/{MobileProjectDialog-CumMWQCK.js → MobileProjectDialog-CgAIDCT8.js} +1 -1
- package/dist/{MobileProjectsView-B7XEvRa6.js → MobileProjectsView--u1GnKXK.js} +3 -3
- package/dist/{ModuleCenterView-B4c8sjpy.js → ModuleCenterView-D_5TWuln.js} +1 -1
- package/dist/{ModuleDetailView-BBpyX8YP.js → ModuleDetailView-U8M_-5qs.js} +1 -1
- package/dist/{PagesView-CmuO0BFr.js → PagesView-Bz5aN_A-.js} +1 -1
- package/dist/{PortalSettingsView-DTy67nb7.js → PortalSettingsView-C-5ahh8D.js} +8 -8
- package/dist/{TemplateCenterView-SRp-lJvM.js → TemplateCenterView-D8AHHZWs.js} +1 -1
- package/dist/{WorkspaceEntryView-CIoaVB8r.js → WorkspaceEntryView-V-Tu9Iiy.js} +1 -1
- package/dist/app.js +11 -11
- package/dist/{controlPlane-CtVzG6KV.js → controlPlane-Bn-uDXG_.js} +5 -5
- package/dist/{localPreference-B91MO16i.js → localPreference-BsnGsgbd.js} +178 -172
- package/dist/package.json +1 -1
- package/dist/{portalContext-Bwf6bHOw.js → portalContext-FZ8_SePb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useBrandKit-mXU0pgs0.js → useBrandKit-Dl8N-9UZ.js} +2 -2
- package/dist/{useModuleCatalog-DgazX8Nz.js → useModuleCatalog-CNvI4aSK.js} +1 -1
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@ import { defineComponent as A, computed as n, ref as u, onMounted as B, onScopeD
|
|
|
2
2
|
import { useRoute as j } from "vue-router";
|
|
3
3
|
import { useCoreStore as I } from "@feedmepos/mf-common";
|
|
4
4
|
import { e as q } from "./index-DB33ug2V.js";
|
|
5
|
-
import { a as N, c as R, e as T } from "./controlPlane-
|
|
6
|
-
import { u as K } from "./portalContext-
|
|
5
|
+
import { a as N, c as R, e as T } from "./controlPlane-Bn-uDXG_.js";
|
|
6
|
+
import { u as K } from "./portalContext-FZ8_SePb.js";
|
|
7
7
|
import { l as Y, p as y } from "./portalNavigation-DLcC7Koh.js";
|
|
8
|
-
import { i as $, u as z } from "./useBrandKit-
|
|
8
|
+
import { i as $, u as z } from "./useBrandKit-Dl8N-9UZ.js";
|
|
9
9
|
import { _ as Q } from "./StatusBadge.vue_vue_type_script_setup_true_lang-DMm_s9ua.js";
|
|
10
10
|
import { a as J } from "./routes-W8KfuhWL.js";
|
|
11
11
|
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -35,7 +35,7 @@ const X = "data:image/svg+xml,%3csvg%20width='342'%20height='186'%20viewBox='0%2
|
|
|
35
35
|
},
|
|
36
36
|
"brandkit"
|
|
37
37
|
),
|
|
38
|
-
q("fmmf:
|
|
38
|
+
q("fmmf:dev") === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc"
|
|
39
39
|
).href;
|
|
40
40
|
}
|
|
41
41
|
), s = u([]), d = u(!0), h = u(null), _ = new AbortController(), M = n(
|
|
@@ -17,7 +17,7 @@ const _ = { class: "portal-empty" }, k = ["href"], M = /* @__PURE__ */ p({
|
|
|
17
17
|
const r = new URLSearchParams();
|
|
18
18
|
for (const [m, u] of Object.entries(a.value))
|
|
19
19
|
typeof u == "string" && r.set(m, u);
|
|
20
|
-
return `${v("fmmf:
|
|
20
|
+
return `${v("fmmf:dev") === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc"}/miniprogram-v2/workspace${r.size ? `?${r}` : ""}`;
|
|
21
21
|
});
|
|
22
22
|
return l(() => {
|
|
23
23
|
s.hasRoute("miniprogram-v2-control") && s.replace({ name: "miniprogram-v2-control", query: a.value });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as U, computed as k, openBlock as e, createElementBlock as n, normalizeClass as q, createCommentVNode as o, resolveComponent as W, createElementVNode as j, createBlock as z, toDisplayString as p, Fragment as b, renderList as N, ref as K, onMounted as O, withCtx as J, createVNode as u } from "vue";
|
|
2
2
|
import { m as h } from "./index-DB33ug2V.js";
|
|
3
|
-
import { c as E, e as m, i as M } from "./controlPlane-
|
|
3
|
+
import { c as E, e as m, i as M } from "./controlPlane-Bn-uDXG_.js";
|
|
4
4
|
import { a as D } from "./routes-W8KfuhWL.js";
|
|
5
5
|
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const T = [
|
|
@@ -3,10 +3,10 @@ import { useRoute as A, useRouter as T } from "vue-router";
|
|
|
3
3
|
import { components as $, useDialog as E } from "@feedmepos/ui-library";
|
|
4
4
|
import "./index-DB33ug2V.js";
|
|
5
5
|
import { a as O } from "./routes-W8KfuhWL.js";
|
|
6
|
-
import { c as U, e as Y } from "./controlPlane-
|
|
7
|
-
import { u as G } from "./portalContext-
|
|
6
|
+
import { c as U, e as Y } from "./controlPlane-Bn-uDXG_.js";
|
|
7
|
+
import { u as G } from "./portalContext-FZ8_SePb.js";
|
|
8
8
|
import { w as d } from "./portalNavigation-DLcC7Koh.js";
|
|
9
|
-
import { p as H, M as J } from "./MobileProjectDialog-
|
|
9
|
+
import { p as H, M as J } from "./MobileProjectDialog-CgAIDCT8.js";
|
|
10
10
|
import { _ as x } from "./StatusBadge.vue_vue_type_script_setup_true_lang-DMm_s9ua.js";
|
|
11
11
|
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Q = { class: "portal-page" }, W = { class: "portal-page-inner" }, X = { class: "portal-page-heading" }, Z = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as H, ref as S, computed as f, onMounted as W, onUnmounted as J, openBlock as s, createElementBlock as l, createElementVNode as o, toDisplayString as a, createCommentVNode as A, Fragment as k, renderList as x, normalizeStyle as X, watch as Z, resolveComponent as O, createVNode as ee, unref as i, normalizeClass as g, createBlock as w, createTextVNode as C } from "vue";
|
|
2
2
|
import { useRouter as j, useRoute as te } from "vue-router";
|
|
3
|
-
import { i as ne, u as oe, f as se, s as z, g as le, _ as M, a as re } from "./useModuleCatalog-
|
|
3
|
+
import { i as ne, u as oe, f as se, s as z, g as le, _ as M, a as re } from "./useModuleCatalog-CNvI4aSK.js";
|
|
4
4
|
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const ae = { class: "row" }, ie = { class: "row__head" }, ue = { class: "row__label fm-typo-en-body-md-600 text-portal-text-primary" }, ce = {
|
|
6
6
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as j, computed as _, ref as F, watch as Y, resolveComponent as h, openBlock as n, createElementBlock as s, createElementVNode as e, toDisplayString as a, createVNode as c, createCommentVNode as u, createTextVNode as M, Fragment as N, renderList as P, unref as m, normalizeClass as V, withCtx as B, onMounted as G, createBlock as C } from "vue";
|
|
2
2
|
import { useRoute as R, useRouter as A } from "vue-router";
|
|
3
3
|
import { useDialog as H } from "@feedmepos/ui-library";
|
|
4
|
-
import { m as J, b as Q, u as W, _ as q } from "./useModuleCatalog-
|
|
4
|
+
import { m as J, b as Q, u as W, _ as q } from "./useModuleCatalog-CNvI4aSK.js";
|
|
5
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 = {
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import { u as g } from "./portalContext-
|
|
3
|
+
import { u as g } from "./portalContext-FZ8_SePb.js";
|
|
4
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({
|
|
@@ -3,8 +3,8 @@ import { useRoute as de, useRouter as fe } from "vue-router";
|
|
|
3
3
|
import { useCoreStore as $t } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as ge, useSnackbar as he } from "@feedmepos/ui-library";
|
|
5
5
|
import { f as st, e as J, g as me, h as gt, j as pe } from "./index-DB33ug2V.js";
|
|
6
|
-
import { n as we, i as ye, h as ve, g as Ce, c as be, e as zt, j as Ee } from "./controlPlane-
|
|
7
|
-
import { u as Vt } from "./portalContext-
|
|
6
|
+
import { n as we, i as ye, h as ve, g as Ce, c as be, e as zt, j as Ee } from "./controlPlane-Bn-uDXG_.js";
|
|
7
|
+
import { u as Vt } from "./portalContext-FZ8_SePb.js";
|
|
8
8
|
import { a as Be } from "./routes-W8KfuhWL.js";
|
|
9
9
|
import { _ as Ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { l as Se } from "./portalNavigation-DLcC7Koh.js";
|
|
@@ -1459,7 +1459,7 @@ Z.toString = It.bind(null, function(e, t, i) {
|
|
|
1459
1459
|
});
|
|
1460
1460
|
const kt = 15e3;
|
|
1461
1461
|
function gn() {
|
|
1462
|
-
return Ce(J("fmmf:
|
|
1462
|
+
return Ce(J("fmmf:dev"), re()).portalApiBaseUrl;
|
|
1463
1463
|
}
|
|
1464
1464
|
async function Rt(e, t) {
|
|
1465
1465
|
const i = await e.json().catch(() => null);
|
|
@@ -1488,7 +1488,7 @@ async function hn(e, t, i) {
|
|
|
1488
1488
|
})
|
|
1489
1489
|
});
|
|
1490
1490
|
if (!l.ok) throw await Rt(l, "Could not save the business link");
|
|
1491
|
-
const a = st(J("fmmf:
|
|
1491
|
+
const a = st(J("fmmf:dev")).apiOrigin;
|
|
1492
1492
|
return await fetch(`${a}/short-url`, {
|
|
1493
1493
|
method: "POST",
|
|
1494
1494
|
headers: { "Content-Type": "application/json" },
|
|
@@ -1497,7 +1497,7 @@ async function hn(e, t, i) {
|
|
|
1497
1497
|
}).catch((c) => console.warn("short-url cache warm failed; it will self-heal", c)), s;
|
|
1498
1498
|
}
|
|
1499
1499
|
async function mn(e, t) {
|
|
1500
|
-
const i = st(J("fmmf:
|
|
1500
|
+
const i = st(J("fmmf:dev")).apiOrigin, o = await fetch(`${i}/short-url/${encodeURIComponent(e)}`, {
|
|
1501
1501
|
signal: AbortSignal.any([t, AbortSignal.timeout(kt)])
|
|
1502
1502
|
});
|
|
1503
1503
|
if (o.status === 404) return null;
|
|
@@ -1517,7 +1517,7 @@ const pn = { class: "portal-section" }, wn = { class: "link-row" }, yn = { class
|
|
|
1517
1517
|
}, _n = ["href", "download"], In = /* @__PURE__ */ Ut({
|
|
1518
1518
|
__name: "BusinessLinkSection",
|
|
1519
1519
|
setup(e) {
|
|
1520
|
-
const t = Vt(), i = $t(), o = ge(), n = he(), r = st(J("fmmf:
|
|
1520
|
+
const t = Vt(), i = $t(), o = ge(), n = he(), r = st(J("fmmf:dev")).liveDomain, s = I(() => t.businessId.value ?? ""), l = I(() => {
|
|
1521
1521
|
var b, L;
|
|
1522
1522
|
const y = ((L = (b = i.currentBusiness.value) == null ? void 0 : b.url) == null ? void 0 : L.trim().toLowerCase()) ?? "";
|
|
1523
1523
|
return y === s.value ? "" : y;
|
|
@@ -1736,10 +1736,10 @@ const pn = { class: "portal-section" }, wn = { class: "link-row" }, yn = { class
|
|
|
1736
1736
|
country: n.currentCountry.value ?? null,
|
|
1737
1737
|
restaurantId: ((f = n.currentRestaurant.value) == null ? void 0 : f._id) ?? null
|
|
1738
1738
|
}),
|
|
1739
|
-
J("fmmf:
|
|
1739
|
+
J("fmmf:dev") === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc"
|
|
1740
1740
|
).href;
|
|
1741
1741
|
}
|
|
1742
|
-
), c = F(null), d = F(!0), E = F(null), m = F(!1), h = st(J("fmmf:
|
|
1742
|
+
), c = F(null), d = F(!0), E = F(null), m = F(!1), h = st(J("fmmf:dev")).apiOrigin, C = I(() => `${h}/metadata/${t.businessId.value}/pwa-512x512.png`), w = I(() => {
|
|
1743
1743
|
var f;
|
|
1744
1744
|
return (f = Ee()) == null ? void 0 : f.thumbnail;
|
|
1745
1745
|
}), A = new AbortController();
|
|
@@ -3,7 +3,7 @@ import "./index-DB33ug2V.js";
|
|
|
3
3
|
import { a as T } from "./routes-W8KfuhWL.js";
|
|
4
4
|
import { useDialog as ee } from "@feedmepos/ui-library";
|
|
5
5
|
import { useRouter as te } from "vue-router";
|
|
6
|
-
import { c as F, e as I } from "./controlPlane-
|
|
6
|
+
import { c as F, e as I } from "./controlPlane-Bn-uDXG_.js";
|
|
7
7
|
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
import { w as ae } from "./portalNavigation-DLcC7Koh.js";
|
|
9
9
|
const le = {
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import { u as l } from "./portalContext-
|
|
3
|
+
import { u as l } from "./portalContext-FZ8_SePb.js";
|
|
4
4
|
import { w as m, a as f } from "./portalNavigation-DLcC7Koh.js";
|
|
5
5
|
const _ = {
|
|
6
6
|
class: "portal-loading",
|
package/dist/app.js
CHANGED
|
@@ -4,42 +4,42 @@ 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--u1GnKXK.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-Blo9u-dq.js")
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
path: "/workspace",
|
|
18
18
|
name: "miniprogram-v2-control",
|
|
19
|
-
component: () => import("./WorkspaceEntryView-
|
|
19
|
+
component: () => import("./WorkspaceEntryView-V-Tu9Iiy.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-9iS3i2u0.js")
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
path: "/brand-kit",
|
|
28
28
|
name: "miniprogram-v2-brand-kit",
|
|
29
29
|
meta: { title: "Brand Kit" },
|
|
30
|
-
component: () => import("./BrandKitView-
|
|
30
|
+
component: () => import("./BrandKitView-DHV0PUus.js")
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
path: "/pages",
|
|
34
34
|
name: "miniprogram-v2-pages",
|
|
35
35
|
meta: { title: "Pages" },
|
|
36
|
-
component: () => import("./PagesView-
|
|
36
|
+
component: () => import("./PagesView-Bz5aN_A-.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-C-5ahh8D.js")
|
|
43
43
|
},
|
|
44
44
|
...["tablet", "kiosk"].map((e) => ({
|
|
45
45
|
path: `/platforms/${e}`,
|
|
@@ -53,7 +53,7 @@ const o = [
|
|
|
53
53
|
path: "/modules",
|
|
54
54
|
name: "miniprogram-v2-module-center",
|
|
55
55
|
meta: { title: "Component Library" },
|
|
56
|
-
component: () => import("./ModuleCenterView-
|
|
56
|
+
component: () => import("./ModuleCenterView-D_5TWuln.js")
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
// Keyed by the module's directory name, which is what the catalog, the
|
|
@@ -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-U8M_-5qs.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-D8AHHZWs.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-DkOwAOxM.js")), n = t(() => import("./LegacyWorkspaceEntry-IRMa-8U4.js"));
|
|
82
82
|
export {
|
|
83
83
|
a as FmApp,
|
|
84
84
|
n as MiniprogramWorkspace,
|
|
@@ -40,14 +40,14 @@ function D(e, n, t) {
|
|
|
40
40
|
const r = new URL(y(e, n).usageUrl);
|
|
41
41
|
return r.searchParams.set("businessId", t), r.searchParams.set("country", n), r.toString();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function v(e) {
|
|
44
44
|
return e.replace(/\/+$/, "");
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
46
|
+
function B() {
|
|
47
|
+
return v("https://miniprogram-v2-api.feedmedev.vip");
|
|
48
48
|
}
|
|
49
49
|
function C(e) {
|
|
50
|
-
const n =
|
|
50
|
+
const n = B();
|
|
51
51
|
return n ? `${n}${e.startsWith("/") ? e : `/${e}`}` : e;
|
|
52
52
|
}
|
|
53
53
|
function a() {
|
|
@@ -69,7 +69,7 @@ function E() {
|
|
|
69
69
|
return i().currentCountry.value;
|
|
70
70
|
}
|
|
71
71
|
function x() {
|
|
72
|
-
const e = f(d("fmmf:
|
|
72
|
+
const e = f(d("fmmf:dev")).liveDomain;
|
|
73
73
|
return m(c(), T(), e);
|
|
74
74
|
}
|
|
75
75
|
function P(e) {
|