@feedmepos/mf-miniprogram-v2 0.2.2-dev.23 → 0.2.2-dev.25
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-BVQ9oPjV.js → App-CfZCp6Re.js} +2 -2
- package/dist/{ControlPlaneView-BPaHROu_.js → ControlPlaneView-C9PhpGVm.js} +3 -3
- package/dist/{EcosystemView-Drggj4cB.js → EcosystemView-DgAgcFmd.js} +2 -2
- package/dist/{MobileProjectsView-DaFYj3UE.js → MobileProjectsView-D-tXKwr7.js} +2 -2
- package/dist/{ModuleCenterView-BI0Vbkcu.js → ModuleCenterView-C6mCPATr.js} +1 -1
- package/dist/{ModuleDetailView-DKmc4Hp2.js → ModuleDetailView-CSfMF0Uo.js} +1 -1
- package/dist/{PagesView-B9YEpCbi.js → PagesView-B1uTuHsK.js} +1 -1
- package/dist/{PortalSettingsView-C3uVMGH5.js → PortalSettingsView-CUOL2tdF.js} +1 -1
- package/dist/TemplateCenterView-DqZLthqh.js +426 -0
- package/dist/{WorkspaceEntryView-C5SWhNI5.js → WorkspaceEntryView-BNl0REzn.js} +1 -1
- package/dist/{adminAccess-D8Cx7BcO.js → adminAccess-oXC0xjvK.js} +1 -1
- package/dist/app.js +10 -10
- package/dist/package.json +1 -1
- package/dist/{portalContext-Bhp7NA0c.js → portalContext-DV-6uUwp.js} +1 -1
- package/dist/{routes-DPGrYgQQ.js → routes-CeuodIgg.js} +44 -34
- package/dist/style.css +1 -1
- package/dist/{useModuleCatalog-CnFFvrBk.js → useModuleCatalog-Cep-pzWO.js} +1 -1
- package/package.json +1 -1
- package/dist/TemplateCenterView-DcVMSYU0.js +0 -395
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, resolveComponent as p, openBlock as u, createElementBlock as h, createVNode as E, createElementVNode as P, normalizeClass as F, toDisplayString as v, createCommentVNode as g, createBlock as L, shallowReadonly as r, ref as s } from "vue";
|
|
2
|
-
import { a as w } from "./routes-
|
|
2
|
+
import { a as w } from "./routes-CeuodIgg.js";
|
|
3
3
|
import { c as M, e as y, m as $ } from "./controlPlane-sXaC6pAh.js";
|
|
4
4
|
const I = { class: "flex min-h-0 flex-1 flex-col items-center justify-center gap-8 p-24 text-center" }, T = {
|
|
5
5
|
key: 0,
|
package/package.json
CHANGED
|
@@ -1,395 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, ref as r, computed as B, resolveComponent as R, openBlock as o, createBlock as E, withCtx as L, createElementVNode as t, createElementBlock as i, Fragment as A, createTextVNode as w, toDisplayString as c, createVNode as p, createCommentVNode as b, onMounted as U, renderList as j, unref as z } from "vue";
|
|
2
|
-
import { a as C } from "./routes-DPGrYgQQ.js";
|
|
3
|
-
import { useDialog as G } from "@feedmepos/ui-library";
|
|
4
|
-
import { useRouter as H } from "vue-router";
|
|
5
|
-
import { c as T, e as P } from "./controlPlane-sXaC6pAh.js";
|
|
6
|
-
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
const J = [
|
|
8
|
-
// `label` and `description` are MERCHANT-FACING: the portal's picker renders
|
|
9
|
-
// them, and they are the only thing a merchant chooses on. Say what the app does
|
|
10
|
-
// for their customers, never which package it is built from — the SDK is real and
|
|
11
|
-
// load-bearing and means nothing to the person making this decision. These are
|
|
12
|
-
// the exact texts merchants were already seeing via the old choice layer's own
|
|
13
|
-
// label/description (kept verbatim across its removal — a refactor is not the
|
|
14
|
-
// moment to also silently change picker copy).
|
|
15
|
-
{
|
|
16
|
-
id: "miniprogram-vue",
|
|
17
|
-
label: "V1 · Phone ordering",
|
|
18
|
-
description: "The established phone ordering experience with menu, checkout, membership, rewards and order history.",
|
|
19
|
-
industries: [],
|
|
20
|
-
environments: ["dev", "prod"],
|
|
21
|
-
default: !0
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "miniprogram-vue-v2",
|
|
25
|
-
label: "V2 · Baseline",
|
|
26
|
-
description: "The FeedMe v1 customer app's interface, on the v2 kernel: order medallions, the order-history rail, a category rail beside a continuous menu, and the round reviewed in a sheet. The baseline every other v2 style departs from.",
|
|
27
|
-
industries: ["Food & beverage"],
|
|
28
|
-
// Dev only, deliberately. It has never been provisioned end-to-end: the
|
|
29
|
-
// preview proxy, the component-library unpack and the release build have
|
|
30
|
-
// only been exercised locally. Add 'prod' after a real merchant has run
|
|
31
|
-
// through all three.
|
|
32
|
-
environments: ["dev"],
|
|
33
|
-
restaurantStyle: "qsr"
|
|
34
|
-
},
|
|
35
|
-
// Forked from miniprogram-vue-v2 (2026-09): the coffee and tea styles used
|
|
36
|
-
// to be a `restaurantStyle` sharing that one directory, which meant editing
|
|
37
|
-
// one style's components risked changing what the other two rendered. Each
|
|
38
|
-
// now has its own independent directory; only `templates/block-library/` is
|
|
39
|
-
// still shared across all three.
|
|
40
|
-
{
|
|
41
|
-
id: "miniprogram-vue-v2-coffee",
|
|
42
|
-
label: "V2 · Coffee house",
|
|
43
|
-
description: "A calm, image-led experience for habitual pickup, premium drinks and considered customisation.",
|
|
44
|
-
industries: ["Food & beverage"],
|
|
45
|
-
environments: ["dev"],
|
|
46
|
-
restaurantStyle: "coffee"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
id: "miniprogram-vue-v2-tea",
|
|
50
|
-
label: "V2 · Tea & beverage",
|
|
51
|
-
description: "A light, compact and option-forward experience for repeat beverage orders with many customisations.",
|
|
52
|
-
industries: ["Food & beverage"],
|
|
53
|
-
environments: ["dev"],
|
|
54
|
-
restaurantStyle: "tea"
|
|
55
|
-
}
|
|
56
|
-
], W = ["href"], K = {
|
|
57
|
-
key: 0,
|
|
58
|
-
class: "portal-error",
|
|
59
|
-
role: "alert"
|
|
60
|
-
}, Q = "miniprogram-vue-v2", X = /* @__PURE__ */ S({
|
|
61
|
-
__name: "ForkTemplateDialog",
|
|
62
|
-
emits: ["close", "created"],
|
|
63
|
-
setup(M, { emit: V }) {
|
|
64
|
-
const g = V, d = r(""), v = r(""), _ = r(""), u = r(!1), s = r(""), m = r(""), x = r(0), h = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, F = B(
|
|
65
|
-
() => !u.value && h.test(d.value.trim()) && v.value.trim().length > 0 && _.value.trim().length > 0
|
|
66
|
-
);
|
|
67
|
-
async function $() {
|
|
68
|
-
if (F.value) {
|
|
69
|
-
u.value = !0, s.value = "";
|
|
70
|
-
try {
|
|
71
|
-
const y = await T(C.forkAppTemplate(), {
|
|
72
|
-
method: "POST",
|
|
73
|
-
body: JSON.stringify({
|
|
74
|
-
sourceAppTemplateId: Q,
|
|
75
|
-
newAppTemplateId: d.value.trim(),
|
|
76
|
-
label: v.value.trim(),
|
|
77
|
-
description: _.value.trim()
|
|
78
|
-
})
|
|
79
|
-
});
|
|
80
|
-
m.value = y.pullRequestUrl, x.value = y.fileCount, g("created");
|
|
81
|
-
} catch (y) {
|
|
82
|
-
s.value = P(y);
|
|
83
|
-
} finally {
|
|
84
|
-
u.value = !1;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return (y, n) => {
|
|
89
|
-
const f = R("FmButton"), q = R("FmTextField"), D = R("FmTextarea"), I = R("FmCard");
|
|
90
|
-
return o(), E(I, { class: "fork-template-dialog" }, {
|
|
91
|
-
default: L(() => [
|
|
92
|
-
n[7] || (n[7] = t("h2", null, "Create template", -1)),
|
|
93
|
-
m.value ? (o(), i(A, { key: 0 }, [
|
|
94
|
-
t("p", null, [
|
|
95
|
-
w(" Opened a pull request copying " + c(x.value) + " file(s) into a brand-new ", 1),
|
|
96
|
-
t("code", null, "templates/" + c(d.value) + "/", 1),
|
|
97
|
-
n[5] || (n[5] = w(" directory, and registering it in the template catalog. It needs human review and merge — once merged and deployed, it appears here and in the merchant picker automatically; there is no separate step to enable it. ", -1))
|
|
98
|
-
]),
|
|
99
|
-
t("footer", null, [
|
|
100
|
-
t("a", {
|
|
101
|
-
class: "fork-template-dialog__review-link",
|
|
102
|
-
href: m.value,
|
|
103
|
-
target: "_blank",
|
|
104
|
-
rel: "noopener"
|
|
105
|
-
}, "Review PR", 8, W),
|
|
106
|
-
p(f, {
|
|
107
|
-
label: "Done",
|
|
108
|
-
onClick: n[0] || (n[0] = (e) => g("close"))
|
|
109
|
-
})
|
|
110
|
-
])
|
|
111
|
-
], 64)) : (o(), i(A, { key: 1 }, [
|
|
112
|
-
n[6] || (n[6] = t("p", { class: "fork-template-dialog__note" }, " Copies the v2 baseline template's whole directory into a brand-new, independent one — editing the new one can never affect the baseline or any other template. Use this to start a new restaurant style rather than editing a style that other merchants already share. ", -1)),
|
|
113
|
-
p(q, {
|
|
114
|
-
modelValue: d.value,
|
|
115
|
-
"onUpdate:modelValue": n[1] || (n[1] = (e) => d.value = e),
|
|
116
|
-
label: "New template id",
|
|
117
|
-
placeholder: "e.g. miniprogram-vue-v2-bakery",
|
|
118
|
-
"helper-text": "Lowercase, kebab-case. Also becomes the directory name and GitHub repository name.",
|
|
119
|
-
disabled: u.value,
|
|
120
|
-
rules: [(e) => h.test(e.trim()) || "Lowercase kebab-case, e.g. miniprogram-vue-v2-bakery"]
|
|
121
|
-
}, null, 8, ["modelValue", "disabled", "rules"]),
|
|
122
|
-
p(q, {
|
|
123
|
-
modelValue: v.value,
|
|
124
|
-
"onUpdate:modelValue": n[2] || (n[2] = (e) => v.value = e),
|
|
125
|
-
label: "Label",
|
|
126
|
-
placeholder: "Shown to merchants in the picker",
|
|
127
|
-
disabled: u.value
|
|
128
|
-
}, null, 8, ["modelValue", "disabled"]),
|
|
129
|
-
p(D, {
|
|
130
|
-
modelValue: _.value,
|
|
131
|
-
"onUpdate:modelValue": n[3] || (n[3] = (e) => _.value = e),
|
|
132
|
-
label: "Description",
|
|
133
|
-
placeholder: "One or two sentences on what the merchant gets",
|
|
134
|
-
disabled: u.value
|
|
135
|
-
}, null, 8, ["modelValue", "disabled"]),
|
|
136
|
-
s.value ? (o(), i("p", K, c(s.value), 1)) : b("", !0),
|
|
137
|
-
t("footer", null, [
|
|
138
|
-
p(f, {
|
|
139
|
-
label: "Cancel",
|
|
140
|
-
variant: "tertiary",
|
|
141
|
-
disabled: u.value,
|
|
142
|
-
onClick: n[4] || (n[4] = (e) => g("close"))
|
|
143
|
-
}, null, 8, ["disabled"]),
|
|
144
|
-
p(f, {
|
|
145
|
-
label: "Open pull request",
|
|
146
|
-
loading: u.value,
|
|
147
|
-
disabled: !F.value,
|
|
148
|
-
onClick: $
|
|
149
|
-
}, null, 8, ["loading", "disabled"])
|
|
150
|
-
])
|
|
151
|
-
], 64))
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
});
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
}), Y = /* @__PURE__ */ O(X, [["__scopeId", "data-v-5a38928f"]]), Z = { class: "portal-page" }, ee = { class: "portal-page-inner" }, te = { class: "portal-page-heading" }, ae = { class: "portal-page-heading__actions" }, le = {
|
|
158
|
-
key: 0,
|
|
159
|
-
class: "portal-error",
|
|
160
|
-
role: "alert"
|
|
161
|
-
}, ne = {
|
|
162
|
-
key: 1,
|
|
163
|
-
"aria-label": "Templates in review"
|
|
164
|
-
}, oe = { class: "template-section-heading" }, ie = {
|
|
165
|
-
key: 0,
|
|
166
|
-
class: "portal-error",
|
|
167
|
-
role: "alert"
|
|
168
|
-
}, se = {
|
|
169
|
-
key: 1,
|
|
170
|
-
class: "template-choices__list",
|
|
171
|
-
"aria-label": "Templates in review"
|
|
172
|
-
}, re = { class: "template-choices__name" }, de = { class: "template-choices__label" }, ue = { key: 0 }, ce = { class: "template-choices__id" }, pe = { class: "template-choices__actions" }, me = ["href"], ve = {
|
|
173
|
-
class: "template-choices__list",
|
|
174
|
-
"aria-label": "Physical templates"
|
|
175
|
-
}, he = { class: "template-choices__name" }, ge = { class: "template-choices__label" }, _e = { key: 0 }, be = { class: "template-choices__id" }, fe = { class: "template-choices__meta" }, ye = { class: "template-choices__actions" }, ke = /* @__PURE__ */ S({
|
|
176
|
-
__name: "TemplateCenterView",
|
|
177
|
-
setup(M) {
|
|
178
|
-
const V = H(), g = G(), d = r(""), v = r(null), _ = r([]), u = r(!1), s = r("");
|
|
179
|
-
async function m() {
|
|
180
|
-
u.value = !0, s.value = "";
|
|
181
|
-
try {
|
|
182
|
-
const e = await T(C.pendingTemplateChanges());
|
|
183
|
-
_.value = e.changes;
|
|
184
|
-
} catch (e) {
|
|
185
|
-
s.value = P(e);
|
|
186
|
-
} finally {
|
|
187
|
-
u.value = !1;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
function x() {
|
|
191
|
-
g.open({
|
|
192
|
-
title: "Create template",
|
|
193
|
-
dialogComponent: Y,
|
|
194
|
-
dialogComponentProps: { onClose: () => g.close(), onCreated: () => void m() }
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
const h = r(null);
|
|
198
|
-
async function F(e) {
|
|
199
|
-
h.value = e.pullRequestNumber, s.value = "";
|
|
200
|
-
try {
|
|
201
|
-
await T(C.mergePendingTemplateChange(e.pullRequestNumber), { method: "POST" }), await m();
|
|
202
|
-
} catch (a) {
|
|
203
|
-
s.value = P(a);
|
|
204
|
-
} finally {
|
|
205
|
-
h.value = null;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
async function $(e) {
|
|
209
|
-
h.value = e.pullRequestNumber, s.value = "";
|
|
210
|
-
try {
|
|
211
|
-
await T(C.rejectPendingTemplateChange(e.pullRequestNumber), { method: "POST" }), await m();
|
|
212
|
-
} catch (a) {
|
|
213
|
-
s.value = P(a);
|
|
214
|
-
} finally {
|
|
215
|
-
h.value = null;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
function y(e) {
|
|
219
|
-
const a = e.kind === "delete" ? "delete" : "create";
|
|
220
|
-
g.open({
|
|
221
|
-
title: `Merge — ${a} ${e.appTemplateId}?`,
|
|
222
|
-
message: e.kind === "delete" ? `Merges the pull request into main as-is, without a code review step here. templates/${e.appTemplateId}/ is gone from this repo once this lands and the next control-plane deploy picks up the updated catalog.` : "Merges the pull request into main as-is, without a code review step here. The new template takes effect on the next control-plane deploy.",
|
|
223
|
-
primaryActions: { text: "Merge", close: !0, variant: "primary" },
|
|
224
|
-
secondaryActions: { text: "Cancel", close: !0, variant: "tertiary" }
|
|
225
|
-
}).onPrimary(() => void F(e));
|
|
226
|
-
}
|
|
227
|
-
function n(e) {
|
|
228
|
-
g.open({
|
|
229
|
-
title: `Reject — ${e.kind === "delete" ? "delete" : "create"} ${e.appTemplateId}?`,
|
|
230
|
-
message: "Closes the pull request without merging and deletes its branch. Nothing of this change is kept.",
|
|
231
|
-
primaryActions: { text: "Reject", close: !0, variant: "destructive" },
|
|
232
|
-
secondaryActions: { text: "Cancel", close: !0, variant: "tertiary" }
|
|
233
|
-
}).onPrimary(() => void $(e));
|
|
234
|
-
}
|
|
235
|
-
const f = r(null);
|
|
236
|
-
async function q(e) {
|
|
237
|
-
f.value = e, d.value = "";
|
|
238
|
-
try {
|
|
239
|
-
await T(C.deleteAppTemplate(e), { method: "POST" }), await m();
|
|
240
|
-
} catch (a) {
|
|
241
|
-
d.value = P(a);
|
|
242
|
-
} finally {
|
|
243
|
-
f.value = null;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
function D(e) {
|
|
247
|
-
g.open({
|
|
248
|
-
title: `Delete ${e}?`,
|
|
249
|
-
message: `Opens a pull request removing templates/${e}/ and its catalog entry. Nothing is deleted until that PR is reviewed and merged — refused outright if any project still uses this template.`,
|
|
250
|
-
primaryActions: { text: "Delete", close: !0, variant: "destructive" },
|
|
251
|
-
secondaryActions: { text: "Cancel", close: !0, variant: "tertiary" }
|
|
252
|
-
}).onPrimary(() => void q(e));
|
|
253
|
-
}
|
|
254
|
-
U(() => void m());
|
|
255
|
-
async function I(e) {
|
|
256
|
-
if (!v.value) {
|
|
257
|
-
v.value = e, d.value = "";
|
|
258
|
-
try {
|
|
259
|
-
const a = await T(
|
|
260
|
-
C.appTemplateEditingProject(e),
|
|
261
|
-
{ method: "POST" }
|
|
262
|
-
);
|
|
263
|
-
await V.push({
|
|
264
|
-
name: "miniprogram-v2-project",
|
|
265
|
-
params: { projectId: a.projectId, view: "workspace" },
|
|
266
|
-
query: { tpl: "1" }
|
|
267
|
-
});
|
|
268
|
-
} catch (a) {
|
|
269
|
-
d.value = P(a);
|
|
270
|
-
} finally {
|
|
271
|
-
v.value = null;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
return (e, a) => {
|
|
276
|
-
const k = R("FmButton");
|
|
277
|
-
return o(), i("div", Z, [
|
|
278
|
-
t("div", ee, [
|
|
279
|
-
t("header", te, [
|
|
280
|
-
a[1] || (a[1] = t("div", null, [
|
|
281
|
-
t("p", { class: "portal-eyebrow" }, "Internal"),
|
|
282
|
-
t("h1", null, "Template library")
|
|
283
|
-
], -1)),
|
|
284
|
-
t("div", ae, [
|
|
285
|
-
p(k, {
|
|
286
|
-
label: "Create template",
|
|
287
|
-
variant: "primary",
|
|
288
|
-
onClick: a[0] || (a[0] = (l) => x())
|
|
289
|
-
})
|
|
290
|
-
])
|
|
291
|
-
]),
|
|
292
|
-
d.value ? (o(), i("p", le, c(d.value), 1)) : b("", !0),
|
|
293
|
-
s.value || _.value.length > 0 ? (o(), i("section", ne, [
|
|
294
|
-
t("div", oe, [
|
|
295
|
-
a[2] || (a[2] = t("h2", { class: "template-section-title" }, "In review", -1)),
|
|
296
|
-
p(k, {
|
|
297
|
-
label: "Refresh",
|
|
298
|
-
variant: "tertiary",
|
|
299
|
-
size: "md",
|
|
300
|
-
loading: u.value,
|
|
301
|
-
onClick: m
|
|
302
|
-
}, null, 8, ["loading"])
|
|
303
|
-
]),
|
|
304
|
-
a[3] || (a[3] = t("p", { class: "template-section-note" }, " Waiting on PR review and merge. A row disappears on its own once its pull request merges or is closed — click Refresh to check. ", -1)),
|
|
305
|
-
s.value ? (o(), i("p", ie, [
|
|
306
|
-
w(c(s.value) + " ", 1),
|
|
307
|
-
p(k, {
|
|
308
|
-
label: "Retry",
|
|
309
|
-
variant: "tertiary",
|
|
310
|
-
onClick: m
|
|
311
|
-
})
|
|
312
|
-
])) : b("", !0),
|
|
313
|
-
_.value.length > 0 ? (o(), i("section", se, [
|
|
314
|
-
(o(!0), i(A, null, j(_.value, (l) => (o(), i("article", {
|
|
315
|
-
key: l.pullRequestNumber,
|
|
316
|
-
class: "template-choices__row"
|
|
317
|
-
}, [
|
|
318
|
-
t("div", re, [
|
|
319
|
-
t("span", de, [
|
|
320
|
-
w(c(l.appTemplateId), 1),
|
|
321
|
-
l.kind === "delete" ? (o(), i("span", ue, " · Delete")) : b("", !0)
|
|
322
|
-
]),
|
|
323
|
-
t("span", ce, "Awaiting review — PR #" + c(l.pullRequestNumber), 1)
|
|
324
|
-
]),
|
|
325
|
-
t("div", pe, [
|
|
326
|
-
t("a", {
|
|
327
|
-
class: "template-review-link",
|
|
328
|
-
href: l.pullRequestUrl,
|
|
329
|
-
target: "_blank",
|
|
330
|
-
rel: "noopener"
|
|
331
|
-
}, "Review PR", 8, me),
|
|
332
|
-
p(k, {
|
|
333
|
-
label: "Merge",
|
|
334
|
-
variant: "primary",
|
|
335
|
-
loading: h.value === l.pullRequestNumber,
|
|
336
|
-
disabled: h.value !== null,
|
|
337
|
-
onClick: (N) => y(l)
|
|
338
|
-
}, null, 8, ["loading", "disabled", "onClick"]),
|
|
339
|
-
p(k, {
|
|
340
|
-
label: "Reject",
|
|
341
|
-
variant: "destructive",
|
|
342
|
-
disabled: h.value !== null,
|
|
343
|
-
onClick: (N) => n(l)
|
|
344
|
-
}, null, 8, ["disabled", "onClick"])
|
|
345
|
-
])
|
|
346
|
-
]))), 128))
|
|
347
|
-
])) : b("", !0)
|
|
348
|
-
])) : b("", !0),
|
|
349
|
-
a[4] || (a[4] = t("h2", { class: "template-section-title" }, "Physical templates", -1)),
|
|
350
|
-
a[5] || (a[5] = t("p", { class: "template-section-note" }, ' "Edit code" opens the physical template directly — the same chat + live preview a merchant project gets, saving straight to a pull request against this repo instead of a merchant repo. "Delete" opens a PR removing it instead — refused outright for the default template or one any project still uses. ', -1)),
|
|
351
|
-
t("section", ve, [
|
|
352
|
-
(o(!0), i(A, null, j(z(J), (l) => (o(), i("article", {
|
|
353
|
-
key: l.id,
|
|
354
|
-
class: "template-choices__row"
|
|
355
|
-
}, [
|
|
356
|
-
t("div", he, [
|
|
357
|
-
t("span", ge, [
|
|
358
|
-
w(c(l.label), 1),
|
|
359
|
-
l.default ? (o(), i("span", _e, " · Default")) : b("", !0)
|
|
360
|
-
]),
|
|
361
|
-
t("span", be, c(l.id), 1),
|
|
362
|
-
t("span", fe, [
|
|
363
|
-
l.restaurantStyle ? (o(), i(A, { key: 0 }, [
|
|
364
|
-
w(c(l.restaurantStyle) + " · ", 1)
|
|
365
|
-
], 64)) : b("", !0),
|
|
366
|
-
w(c(l.industries.join(", ") || "General-purpose") + " · " + c(l.environments.join(", ")), 1)
|
|
367
|
-
])
|
|
368
|
-
]),
|
|
369
|
-
t("div", ye, [
|
|
370
|
-
p(k, {
|
|
371
|
-
label: "Edit code",
|
|
372
|
-
variant: "secondary",
|
|
373
|
-
loading: v.value === l.id,
|
|
374
|
-
disabled: v.value !== null,
|
|
375
|
-
onClick: (N) => I(l.id)
|
|
376
|
-
}, null, 8, ["loading", "disabled", "onClick"]),
|
|
377
|
-
l.default ? b("", !0) : (o(), E(k, {
|
|
378
|
-
key: 0,
|
|
379
|
-
label: "Delete",
|
|
380
|
-
variant: "destructive",
|
|
381
|
-
loading: f.value === l.id,
|
|
382
|
-
disabled: f.value !== null,
|
|
383
|
-
onClick: (N) => D(l.id)
|
|
384
|
-
}, null, 8, ["loading", "disabled", "onClick"]))
|
|
385
|
-
])
|
|
386
|
-
]))), 128))
|
|
387
|
-
])
|
|
388
|
-
])
|
|
389
|
-
]);
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
}), xe = /* @__PURE__ */ O(ke, [["__scopeId", "data-v-556dfe7b"]]);
|
|
393
|
-
export {
|
|
394
|
-
xe as default
|
|
395
|
-
};
|