@feedmepos/mf-miniprogram-v2 0.2.2-dev.8 → 0.2.2-dev.9
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-BtDqnBq4.js +193 -0
- package/dist/AppTemplatePicker-eKlQ0c54.js +184 -0
- package/dist/BrandFontPicker-CyLbp5nr.js +240 -0
- package/dist/BrandKitView-CaxS1T-W.js +217 -0
- package/dist/{ControlPlaneView-BYxujllj.js → ControlPlaneView-DGDA8EFh.js} +7328 -7367
- package/dist/{EcosystemView-B6asKyTg.js → EcosystemView-Cx-3k7lB.js} +116 -138
- package/dist/{LegacyWorkspaceEntry-7DvIosoj.js → LegacyWorkspaceEntry-opz_kWz9.js} +1 -1
- package/dist/MobileProjectsView-DEQ6q6Si.js +279 -0
- package/dist/{ModuleCenterView-Dqp-2hbL.js → ModuleCenterView-DEShxy_e.js} +1 -1
- package/dist/{ModuleDetailView-cpQ_UfS9.js → ModuleDetailView-BSndm4ov.js} +1 -1
- package/dist/{PagesView-CYc8LFYz.js → PagesView-CegMd6GC.js} +1 -1
- package/dist/{PortalSettingsView-CTy8c39M.js → PortalSettingsView-DFz6FUd9.js} +3 -3
- package/dist/{WorkspaceEntryView-aQfuZAPL.js → WorkspaceEntryView-e2EUnq9A.js} +1 -1
- package/dist/app.js +16 -10
- package/dist/{controlPlane-wUT1G_Gr.js → controlPlane-CoEgf9BA.js} +9 -9
- package/dist/{index-BDHUHtRw.js → index-D5qXvcfE.js} +24 -15
- package/dist/package.json +1 -1
- package/dist/{portalContext-CTVzkJV7.js → portalContext-C4HL_0kl.js} +2 -2
- package/dist/{routes-L0ady_Wy.js → routes-Boz_WlNM.js} +1 -0
- package/dist/style.css +1 -1
- package/dist/useBrandKit-BlKlqpo2.js +1020 -0
- package/dist/{useModuleCatalog-CD5N246F.js → useModuleCatalog-CkNuZzNM.js} +2 -2
- package/package.json +1 -1
- package/dist/App-KR6Q0u_b.js +0 -213
- package/dist/BrandKitView-B8t8RkHr.js +0 -221
- package/dist/useBrandKit-CpyR2j6m.js +0 -924
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, computed as i, onMounted as l, openBlock as d, createElementBlock as f, createElementVNode as n } from "vue";
|
|
2
|
-
import { e as v } from "./index-
|
|
2
|
+
import { e as v } from "./index-D5qXvcfE.js";
|
|
3
3
|
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRoute as h, useRouter as g } from "vue-router";
|
|
5
5
|
const _ = { class: "portal-empty" }, k = ["href"], M = /* @__PURE__ */ p({
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { defineComponent as D, ref as f, onMounted as L, resolveComponent as I, openBlock as r, createBlock as N, withCtx as h, createVNode as s, createElementVNode as n, toDisplayString as g, createElementBlock as d, Fragment as B, createCommentVNode as F, onScopeDispose as A, createTextVNode as M, renderList as U, unref as y } from "vue";
|
|
2
|
+
import { useRoute as O, useRouter as E } from "vue-router";
|
|
3
|
+
import { useDialog as Y } from "@feedmepos/ui-library";
|
|
4
|
+
import { a as $ } from "./routes-Boz_WlNM.js";
|
|
5
|
+
import { c as R, e as T, a as z } from "./controlPlane-CoEgf9BA.js";
|
|
6
|
+
import { u as H } from "./portalContext-C4HL_0kl.js";
|
|
7
|
+
import { w as P } from "./portalNavigation-DOF4Ah49.js";
|
|
8
|
+
import { m as J } from "./index-D5qXvcfE.js";
|
|
9
|
+
import { A as G } from "./AppTemplatePicker-eKlQ0c54.js";
|
|
10
|
+
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
import { _ as K } from "./StatusBadge.vue_vue_type_script_setup_true_lang-Bh9Eoe_H.js";
|
|
12
|
+
const Q = {
|
|
13
|
+
key: 0,
|
|
14
|
+
role: "status"
|
|
15
|
+
}, W = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "portal-error",
|
|
18
|
+
role: "alert"
|
|
19
|
+
}, X = /* @__PURE__ */ D({
|
|
20
|
+
__name: "MobileProjectDialog",
|
|
21
|
+
props: {
|
|
22
|
+
businessId: {},
|
|
23
|
+
projectId: {},
|
|
24
|
+
initialName: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["saved", "close"],
|
|
27
|
+
setup(k, { emit: S }) {
|
|
28
|
+
const a = k, C = S, i = f(a.initialName ?? ""), u = f(null), j = f([]), p = f(!a.projectId), c = f(!1), m = f(""), w = J();
|
|
29
|
+
async function V() {
|
|
30
|
+
var e, l;
|
|
31
|
+
p.value = !0, m.value = "";
|
|
32
|
+
try {
|
|
33
|
+
const _ = await R($.appTemplates());
|
|
34
|
+
j.value = _.templates, u.value = ((e = _.templates.find((b) => b.default)) == null ? void 0 : e.id) ?? ((l = _.templates[0]) == null ? void 0 : l.id) ?? null;
|
|
35
|
+
} catch (_) {
|
|
36
|
+
m.value = T(_);
|
|
37
|
+
} finally {
|
|
38
|
+
p.value = !1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
async function o() {
|
|
42
|
+
if (!(c.value || !i.value.trim() || i.value.trim().length > 120 || !a.projectId && !u.value)) {
|
|
43
|
+
c.value = !0, m.value = "";
|
|
44
|
+
try {
|
|
45
|
+
const e = await R(a.projectId ? $.project(a.businessId, a.projectId) : $.projects(a.businessId), {
|
|
46
|
+
method: a.projectId ? "PATCH" : "POST",
|
|
47
|
+
body: JSON.stringify({ name: i.value.trim(), ...a.projectId ? {} : {
|
|
48
|
+
projectId: w,
|
|
49
|
+
kind: "mobile",
|
|
50
|
+
appTemplate: u.value,
|
|
51
|
+
country: z()
|
|
52
|
+
} })
|
|
53
|
+
});
|
|
54
|
+
C("saved", e);
|
|
55
|
+
} catch (e) {
|
|
56
|
+
m.value = T(e);
|
|
57
|
+
} finally {
|
|
58
|
+
c.value = !1;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return L(() => {
|
|
63
|
+
a.projectId || V();
|
|
64
|
+
}), (e, l) => {
|
|
65
|
+
const _ = I("FmTextField"), b = I("FmButton"), x = I("FmCard"), t = I("FmForm");
|
|
66
|
+
return r(), N(t, { onValidationSuccess: o }, {
|
|
67
|
+
default: h(() => [
|
|
68
|
+
s(x, { class: "project-dialog" }, {
|
|
69
|
+
default: h(() => [
|
|
70
|
+
n("h2", null, g(k.projectId ? "Rename project" : "New Mobile project"), 1),
|
|
71
|
+
s(_, {
|
|
72
|
+
modelValue: i.value,
|
|
73
|
+
"onUpdate:modelValue": l[0] || (l[0] = (v) => i.value = v),
|
|
74
|
+
label: "Project name",
|
|
75
|
+
placeholder: "e.g. Summer ordering",
|
|
76
|
+
disabled: c.value,
|
|
77
|
+
rules: [(v) => v.trim().length > 0 && v.trim().length <= 120 || "Enter a name up to 120 characters"]
|
|
78
|
+
}, null, 8, ["modelValue", "disabled", "rules"]),
|
|
79
|
+
k.projectId ? F("", !0) : (r(), d(B, { key: 0 }, [
|
|
80
|
+
p.value ? (r(), d("p", Q, "Loading templates…")) : (r(), N(G, {
|
|
81
|
+
key: 1,
|
|
82
|
+
templates: j.value,
|
|
83
|
+
modelValue: u.value,
|
|
84
|
+
"onUpdate:modelValue": l[1] || (l[1] = (v) => u.value = v),
|
|
85
|
+
disabled: c.value
|
|
86
|
+
}, null, 8, ["templates", "modelValue", "disabled"])),
|
|
87
|
+
l[3] || (l[3] = n("p", { class: "project-dialog__note" }, "Start a separate app from a template. Your live app stays as it is.", -1))
|
|
88
|
+
], 64)),
|
|
89
|
+
m.value ? (r(), d("p", W, g(m.value), 1)) : F("", !0),
|
|
90
|
+
!k.projectId && !j.value.length && !p.value ? (r(), N(b, {
|
|
91
|
+
key: 2,
|
|
92
|
+
label: "Retry loading templates",
|
|
93
|
+
variant: "secondary",
|
|
94
|
+
onClick: V
|
|
95
|
+
})) : F("", !0),
|
|
96
|
+
n("footer", null, [
|
|
97
|
+
s(b, {
|
|
98
|
+
label: "Cancel",
|
|
99
|
+
variant: "tertiary",
|
|
100
|
+
disabled: c.value,
|
|
101
|
+
onClick: l[2] || (l[2] = (v) => C("close"))
|
|
102
|
+
}, null, 8, ["disabled"]),
|
|
103
|
+
s(b, {
|
|
104
|
+
label: k.projectId ? "Save" : "Create project",
|
|
105
|
+
type: "submit",
|
|
106
|
+
loading: c.value,
|
|
107
|
+
disabled: p.value || !i.value.trim() || i.value.trim().length > 120 || !k.projectId && !u.value
|
|
108
|
+
}, null, 8, ["label", "loading", "disabled"])
|
|
109
|
+
])
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
})
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}), Z = /* @__PURE__ */ q(X, [["__scopeId", "data-v-bc4e70c1"]]), ee = { class: "portal-page" }, te = { class: "portal-page-inner" }, oe = { class: "portal-page-heading" }, ae = {
|
|
119
|
+
key: 0,
|
|
120
|
+
class: "mobile-projects__count"
|
|
121
|
+
}, le = {
|
|
122
|
+
key: 0,
|
|
123
|
+
class: "portal-error",
|
|
124
|
+
role: "alert"
|
|
125
|
+
}, ne = {
|
|
126
|
+
key: 1,
|
|
127
|
+
role: "status"
|
|
128
|
+
}, re = {
|
|
129
|
+
key: 2,
|
|
130
|
+
class: "portal-empty"
|
|
131
|
+
}, se = {
|
|
132
|
+
key: 3,
|
|
133
|
+
class: "mobile-projects__list",
|
|
134
|
+
"aria-label": "Mobile projects"
|
|
135
|
+
}, ie = { class: "mobile-projects__name" }, ue = ["title"], ce = ["datetime"], de = { class: "mobile-projects__actions" }, pe = { class: "w-[200px] py-4" }, me = /* @__PURE__ */ D({
|
|
136
|
+
__name: "MobileProjectsView",
|
|
137
|
+
setup(k) {
|
|
138
|
+
const S = H(), a = O(), C = E(), i = Y(), u = f([]), j = f(!0), p = f(""), c = new AbortController();
|
|
139
|
+
async function m() {
|
|
140
|
+
j.value = !0, p.value = "";
|
|
141
|
+
try {
|
|
142
|
+
const o = await R($.projects(S.businessId.value), { signal: c.signal });
|
|
143
|
+
u.value = o.projects;
|
|
144
|
+
} catch (o) {
|
|
145
|
+
c.signal.aborted || (p.value = T(o));
|
|
146
|
+
} finally {
|
|
147
|
+
j.value = !1;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function w(o) {
|
|
151
|
+
i.open({
|
|
152
|
+
title: o ? "Rename project" : "New Mobile project",
|
|
153
|
+
dialogComponent: Z,
|
|
154
|
+
dialogComponentProps: {
|
|
155
|
+
businessId: S.businessId.value,
|
|
156
|
+
projectId: o == null ? void 0 : o.projectId,
|
|
157
|
+
initialName: o == null ? void 0 : o.name,
|
|
158
|
+
onClose: () => i.close(),
|
|
159
|
+
onSaved: (e) => {
|
|
160
|
+
i.close(), o ? m() : C.push(P(e.projectId, "workspace", { ...a.query, setup: "1" }));
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function V(o) {
|
|
166
|
+
return new Intl.DateTimeFormat(void 0, { dateStyle: "medium", timeStyle: "short" }).format(new Date(o));
|
|
167
|
+
}
|
|
168
|
+
return L(() => {
|
|
169
|
+
if (m(), a.query.create === "1") {
|
|
170
|
+
const { create: o, ...e } = a.query;
|
|
171
|
+
C.replace({ query: e }), w();
|
|
172
|
+
}
|
|
173
|
+
}), A(() => c.abort()), (o, e) => {
|
|
174
|
+
const l = I("FmButton"), _ = I("RouterLink"), b = I("FmMenuItem"), x = I("FmMenu");
|
|
175
|
+
return r(), d("div", ee, [
|
|
176
|
+
n("div", te, [
|
|
177
|
+
n("header", oe, [
|
|
178
|
+
n("div", null, [
|
|
179
|
+
e[3] || (e[3] = n("p", { class: "portal-eyebrow" }, "Mobile Ordering", -1)),
|
|
180
|
+
n("h1", null, [
|
|
181
|
+
e[2] || (e[2] = M("Projects ", -1)),
|
|
182
|
+
j.value ? F("", !0) : (r(), d("span", ae, g(u.value.length), 1))
|
|
183
|
+
])
|
|
184
|
+
]),
|
|
185
|
+
s(l, {
|
|
186
|
+
label: "New project",
|
|
187
|
+
icon: "add",
|
|
188
|
+
onClick: e[0] || (e[0] = (t) => w())
|
|
189
|
+
})
|
|
190
|
+
]),
|
|
191
|
+
p.value ? (r(), d("p", le, [
|
|
192
|
+
M(g(p.value) + " ", 1),
|
|
193
|
+
s(l, {
|
|
194
|
+
label: "Retry",
|
|
195
|
+
variant: "tertiary",
|
|
196
|
+
onClick: m
|
|
197
|
+
})
|
|
198
|
+
])) : j.value ? (r(), d("p", ne, "Loading projects…")) : u.value.length ? (r(), d("section", se, [
|
|
199
|
+
(r(!0), d(B, null, U(u.value, (t) => (r(), d("article", {
|
|
200
|
+
key: t.projectId,
|
|
201
|
+
class: "mobile-projects__row"
|
|
202
|
+
}, [
|
|
203
|
+
n("div", ie, [
|
|
204
|
+
s(_, {
|
|
205
|
+
to: y(P)(t.projectId, "workspace", y(a).query)
|
|
206
|
+
}, {
|
|
207
|
+
default: h(() => [
|
|
208
|
+
M(g(t.name), 1)
|
|
209
|
+
]),
|
|
210
|
+
_: 2
|
|
211
|
+
}, 1032, ["to"]),
|
|
212
|
+
n("span", {
|
|
213
|
+
title: t.projectId
|
|
214
|
+
}, "…" + g(t.projectId.slice(-6)), 9, ue)
|
|
215
|
+
]),
|
|
216
|
+
s(K, {
|
|
217
|
+
variant: t.isLive ? "success" : t.provisioningStatus === "failed" ? "error" : "neutral"
|
|
218
|
+
}, {
|
|
219
|
+
default: h(() => [
|
|
220
|
+
M(g(t.isLive ? "Live" : t.provisioningStatus === "ready" ? "Draft" : t.provisioningStatus === "failed" ? "Setup failed" : t.provisioningStatus === "provisioning" ? "Setting up" : "Not set up"), 1)
|
|
221
|
+
]),
|
|
222
|
+
_: 2
|
|
223
|
+
}, 1032, ["variant"]),
|
|
224
|
+
n("time", {
|
|
225
|
+
datetime: t.updatedAt
|
|
226
|
+
}, g(V(t.updatedAt)), 9, ce),
|
|
227
|
+
n("div", de, [
|
|
228
|
+
s(l, {
|
|
229
|
+
label: t.provisioningStatus === "ready" ? "Open editor" : "Continue setup",
|
|
230
|
+
variant: "secondary",
|
|
231
|
+
onClick: (v) => y(C).push(y(P)(t.projectId, "workspace", y(a).query))
|
|
232
|
+
}, null, 8, ["label", "onClick"]),
|
|
233
|
+
s(x, {
|
|
234
|
+
placement: "bottom-end",
|
|
235
|
+
"close-on-click": ""
|
|
236
|
+
}, {
|
|
237
|
+
"menu-button": h(() => [
|
|
238
|
+
s(l, {
|
|
239
|
+
icon: "more_horiz",
|
|
240
|
+
variant: "tertiary",
|
|
241
|
+
"aria-label": `Actions for ${t.name}`
|
|
242
|
+
}, null, 8, ["aria-label"])
|
|
243
|
+
]),
|
|
244
|
+
default: h(() => [
|
|
245
|
+
n("div", pe, [
|
|
246
|
+
s(b, {
|
|
247
|
+
label: "Rename project",
|
|
248
|
+
icon: "edit",
|
|
249
|
+
"onUpdate:modelValue": (v) => w(t)
|
|
250
|
+
}, null, 8, ["onUpdate:modelValue"]),
|
|
251
|
+
t.provisioningStatus === "ready" ? (r(), N(b, {
|
|
252
|
+
key: 0,
|
|
253
|
+
label: "View releases",
|
|
254
|
+
icon: "deployed_code",
|
|
255
|
+
"onUpdate:modelValue": (v) => y(C).push(y(P)(t.projectId, "releases", y(a).query))
|
|
256
|
+
}, null, 8, ["onUpdate:modelValue"])) : F("", !0)
|
|
257
|
+
])
|
|
258
|
+
]),
|
|
259
|
+
_: 2
|
|
260
|
+
}, 1024)
|
|
261
|
+
])
|
|
262
|
+
]))), 128))
|
|
263
|
+
])) : (r(), d("section", re, [
|
|
264
|
+
e[4] || (e[4] = n("h2", null, "Your first Mobile project", -1)),
|
|
265
|
+
e[5] || (e[5] = n("p", null, "Create an app from a template to start editing.", -1)),
|
|
266
|
+
s(l, {
|
|
267
|
+
label: "New project",
|
|
268
|
+
icon: "add",
|
|
269
|
+
onClick: e[1] || (e[1] = (t) => w())
|
|
270
|
+
})
|
|
271
|
+
]))
|
|
272
|
+
])
|
|
273
|
+
]);
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
}), he = /* @__PURE__ */ q(me, [["__scopeId", "data-v-9cfcd2af"]]);
|
|
277
|
+
export {
|
|
278
|
+
he as default
|
|
279
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as F, openBlock as e, createElementBlock as n, createElementVNode as o, toDisplayString as c, createCommentVNode as k, ref as w, computed as m, onMounted as q, resolveComponent as h, createVNode as y, unref as i, Fragment as v, renderList as b, normalizeClass as A, createBlock as p, withCtx as R } from "vue";
|
|
2
2
|
import { useRoute as z } from "vue-router";
|
|
3
3
|
import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import { u as D, c as G, f as K, _ as f, t as O } from "./useModuleCatalog-
|
|
4
|
+
import { u as D, c as G, f as K, _ as f, t as O } from "./useModuleCatalog-CkNuZzNM.js";
|
|
5
5
|
const P = { class: "card" }, U = { class: "card__head" }, j = { class: "card__name fm-typo-en-body-md-600 text-fm-color-typo-primary" }, H = { class: "card__version fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, J = { class: "card__description fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Q = { class: "card__tags" }, W = { class: "card__tag card__tag--tier fm-typo-en-body-sm-600" }, X = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "card__tag card__tag--slot fm-typo-en-body-sm-400"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as C, ref as M, computed as u, watch as T, resolveComponent as g, openBlock as n, createElementBlock as l, createElementVNode as e, toDisplayString as r, createCommentVNode as _, Fragment as I, renderList as S, createVNode as k, onMounted as B, unref as d, withCtx as L, createBlock as v } from "vue";
|
|
2
2
|
import { useRoute as N, useRouter as P } from "vue-router";
|
|
3
|
-
import { m as q, i as A, u as F, _ as w } from "./useModuleCatalog-
|
|
3
|
+
import { m as q, i as A, u as F, _ as w } from "./useModuleCatalog-CkNuZzNM.js";
|
|
4
4
|
import { useDialog as V } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const R = { class: "detail" }, j = { class: "detail__head" }, z = { class: "detail__name fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, K = { class: "detail__version fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, O = {
|
|
@@ -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-C4HL_0kl.js";
|
|
4
4
|
import { w as f } from "./portalNavigation-DOF4Ah49.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({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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
|
-
import { e as _, a as $ } from "./index-
|
|
4
|
-
import { l as B, e as E } from "./controlPlane-
|
|
3
|
+
import { e as _, a as $ } from "./index-D5qXvcfE.js";
|
|
4
|
+
import { l as B, e as E } from "./controlPlane-CoEgf9BA.js";
|
|
5
5
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
6
|
-
import { u as U } from "./portalContext-
|
|
6
|
+
import { u as U } from "./portalContext-C4HL_0kl.js";
|
|
7
7
|
import { l as V } from "./portalNavigation-DOF4Ah49.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 = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, watchEffect as a, openBlock as n, createElementBlock as p } from "vue";
|
|
2
2
|
import { useRoute as i, useRouter as u } from "vue-router";
|
|
3
|
-
import { u as l } from "./portalContext-
|
|
3
|
+
import { u as l } from "./portalContext-C4HL_0kl.js";
|
|
4
4
|
import { w as m, a as f } from "./portalNavigation-DOF4Ah49.js";
|
|
5
5
|
const _ = {
|
|
6
6
|
class: "portal-loading",
|
package/dist/app.js
CHANGED
|
@@ -1,39 +1,45 @@
|
|
|
1
1
|
import { defineAsyncComponent as t } from "vue";
|
|
2
2
|
const o = [
|
|
3
|
+
{
|
|
4
|
+
path: "/platforms/mobile",
|
|
5
|
+
name: "miniprogram-v2-mobile-projects",
|
|
6
|
+
meta: { title: "Mobile" },
|
|
7
|
+
component: () => import("./MobileProjectsView-DEQ6q6Si.js")
|
|
8
|
+
},
|
|
3
9
|
{
|
|
4
10
|
path: "/",
|
|
5
11
|
name: "miniprogram-v2-ecosystem",
|
|
6
12
|
meta: { title: "Ecosystem" },
|
|
7
13
|
beforeEnter: (e) => ["workspace", "releases", "sessions"].includes(String(e.query.view)) ? { name: "miniprogram-v2-control", query: e.query } : !0,
|
|
8
|
-
component: () => import("./EcosystemView-
|
|
14
|
+
component: () => import("./EcosystemView-Cx-3k7lB.js")
|
|
9
15
|
},
|
|
10
16
|
{
|
|
11
17
|
path: "/workspace",
|
|
12
18
|
name: "miniprogram-v2-control",
|
|
13
|
-
component: () => import("./WorkspaceEntryView-
|
|
19
|
+
component: () => import("./WorkspaceEntryView-e2EUnq9A.js")
|
|
14
20
|
},
|
|
15
21
|
{
|
|
16
22
|
path: "/p/:projectId/:view(workspace|releases|sessions)?",
|
|
17
23
|
name: "miniprogram-v2-project",
|
|
18
|
-
component: () => import("./ControlPlaneView-
|
|
24
|
+
component: () => import("./ControlPlaneView-DGDA8EFh.js")
|
|
19
25
|
},
|
|
20
26
|
{
|
|
21
27
|
path: "/brand-kit",
|
|
22
28
|
name: "miniprogram-v2-brand-kit",
|
|
23
29
|
meta: { title: "Brand Kit" },
|
|
24
|
-
component: () => import("./BrandKitView-
|
|
30
|
+
component: () => import("./BrandKitView-CaxS1T-W.js")
|
|
25
31
|
},
|
|
26
32
|
{
|
|
27
33
|
path: "/pages",
|
|
28
34
|
name: "miniprogram-v2-pages",
|
|
29
35
|
meta: { title: "Pages" },
|
|
30
|
-
component: () => import("./PagesView-
|
|
36
|
+
component: () => import("./PagesView-CegMd6GC.js")
|
|
31
37
|
},
|
|
32
38
|
{
|
|
33
39
|
path: "/settings",
|
|
34
40
|
name: "miniprogram-v2-settings",
|
|
35
41
|
meta: { title: "Settings" },
|
|
36
|
-
component: () => import("./PortalSettingsView-
|
|
42
|
+
component: () => import("./PortalSettingsView-DFz6FUd9.js")
|
|
37
43
|
},
|
|
38
44
|
...["tablet", "kiosk"].map((e) => ({
|
|
39
45
|
path: `/platforms/${e}`,
|
|
@@ -47,7 +53,7 @@ const o = [
|
|
|
47
53
|
path: "/modules",
|
|
48
54
|
name: "miniprogram-v2-module-center",
|
|
49
55
|
meta: { title: "Module library" },
|
|
50
|
-
component: () => import("./ModuleCenterView-
|
|
56
|
+
component: () => import("./ModuleCenterView-DEShxy_e.js")
|
|
51
57
|
},
|
|
52
58
|
{
|
|
53
59
|
// Keyed by the module's directory name, which is what the catalog, the
|
|
@@ -55,16 +61,16 @@ const o = [
|
|
|
55
61
|
path: "/modules/:name",
|
|
56
62
|
name: "miniprogram-v2-module-detail",
|
|
57
63
|
meta: { title: "Module library" },
|
|
58
|
-
component: () => import("./ModuleDetailView-
|
|
64
|
+
component: () => import("./ModuleDetailView-BSndm4ov.js")
|
|
59
65
|
},
|
|
60
66
|
{
|
|
61
67
|
path: "/:pathMatch(.*)*",
|
|
62
68
|
redirect: (e) => ({ name: "miniprogram-v2-ecosystem", query: e.query, params: {} })
|
|
63
69
|
}
|
|
64
|
-
], r = {}, a = t(() => import("./App-
|
|
70
|
+
], r = {}, a = t(() => import("./App-BtDqnBq4.js")), i = t(() => import("./LegacyWorkspaceEntry-opz_kWz9.js"));
|
|
65
71
|
export {
|
|
66
72
|
a as FmApp,
|
|
67
|
-
|
|
73
|
+
i as MiniprogramWorkspace,
|
|
68
74
|
r as i18nMessages,
|
|
69
75
|
o as routes
|
|
70
76
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as f, e as d, D as m } from "./index-
|
|
1
|
+
import { a as f, e as d, D as m } from "./index-D5qXvcfE.js";
|
|
2
2
|
import { useCoreStore as a, FeedMeAuth as p } from "@feedmepos/mf-common";
|
|
3
3
|
const h = [
|
|
4
4
|
"AE",
|
|
@@ -126,15 +126,15 @@ async function I(e, n = {}) {
|
|
|
126
126
|
}
|
|
127
127
|
export {
|
|
128
128
|
T as C,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
$ as a,
|
|
130
|
+
x as b,
|
|
131
|
+
b as c,
|
|
132
|
+
P as d,
|
|
133
133
|
F as e,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
y as f,
|
|
135
|
+
E as g,
|
|
136
|
+
u as h,
|
|
137
|
+
C as i,
|
|
138
138
|
D as j,
|
|
139
139
|
k,
|
|
140
140
|
i as l,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const c = "69cde0740c0106001ca83dff", t = {
|
|
2
2
|
dev: {
|
|
3
3
|
env: "dev",
|
|
4
4
|
liveDomain: "feedmedev.vip",
|
|
@@ -18,29 +18,38 @@ const a = "69cde0740c0106001ca83dff", i = {
|
|
|
18
18
|
v1Origin: "https://brand.feedme.vip"
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
function
|
|
21
|
+
function o(e) {
|
|
22
22
|
return e === "dev" || e === "prod";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
if (!
|
|
24
|
+
function s(e) {
|
|
25
|
+
if (!o(e))
|
|
26
26
|
throw new Error(`MINIPROGRAM_ENV must be 'dev' or 'prod', got ${JSON.stringify(e)}`);
|
|
27
|
-
return
|
|
27
|
+
return t[e];
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function v(e) {
|
|
30
30
|
const r = e.toLowerCase().replace(/^fmmf:/, "");
|
|
31
31
|
return r === "prod" || r === "production" ? "prod" : "dev";
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
function
|
|
35
|
-
return
|
|
33
|
+
const a = /^[a-f0-9]{24}$/;
|
|
34
|
+
function d(e) {
|
|
35
|
+
return a.test(e);
|
|
36
|
+
}
|
|
37
|
+
function f(e = crypto.randomUUID()) {
|
|
38
|
+
const r = m("prj", e, 24);
|
|
39
|
+
return r.length === 27 ? r : r.padEnd(27, "0");
|
|
36
40
|
}
|
|
37
|
-
function
|
|
38
|
-
if (!
|
|
41
|
+
function g(e) {
|
|
42
|
+
if (!d(e)) throw new Error(`Invalid business id: ${e}`);
|
|
39
43
|
return `prj${e}`;
|
|
40
44
|
}
|
|
45
|
+
function m(e, r, n) {
|
|
46
|
+
const i = r.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replaceAll("-", "").slice(0, n);
|
|
47
|
+
return `${e}${i || Date.now().toString(36)}`;
|
|
48
|
+
}
|
|
41
49
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
50
|
+
c as D,
|
|
51
|
+
s as a,
|
|
52
|
+
v as e,
|
|
53
|
+
g as l,
|
|
54
|
+
f as m
|
|
46
55
|
};
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as b } from "./routes-
|
|
1
|
+
import { a as b } from "./routes-Boz_WlNM.js";
|
|
2
2
|
import { useCoreStore as d } from "@feedmepos/mf-common";
|
|
3
|
-
import {
|
|
3
|
+
import { c as g, e as h } from "./controlPlane-CoEgf9BA.js";
|
|
4
4
|
import { provide as y, computed as f, ref as c, watch as C, onScopeDispose as w, inject as x } from "vue";
|
|
5
5
|
function P() {
|
|
6
6
|
const e = d(), r = f(() => {
|