@feedmepos/mf-miniprogram-v2 0.2.2-dev.17 → 0.2.2-dev.19
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-CR0BBDaq.js → App-Dj20Jl8B.js} +2 -2
- package/dist/{AppTemplatePicker-C0lZyhK2.js → AppTemplatePicker-CNJ6kIJk.js} +149 -96
- package/dist/{ControlPlaneView-BJ1Rx2rm.js → ControlPlaneView-DZ-hNfCQ.js} +7260 -7446
- package/dist/{EcosystemView-sb7DUkNL.js → EcosystemView-B359jaNI.js} +4 -4
- package/dist/MobileProjectsView-lV5bkuns.js +312 -0
- package/dist/{ModuleCenterView-CQrJ9pyE.js → ModuleCenterView-DyMr3iWV.js} +1 -1
- package/dist/{ModuleDetailView-CpBktRqD.js → ModuleDetailView-BeXK89Cs.js} +1 -1
- package/dist/{PagesView-DTGhet9j.js → PagesView-VqFkmYxN.js} +2 -2
- package/dist/{PlatformUnavailableView-j0_2YBKm.js → PlatformUnavailableView-C1RltAIw.js} +1 -1
- package/dist/{PortalSettingsView-BrO2Yt65.js → PortalSettingsView-BmmMJ5Zm.js} +2 -2
- package/dist/StatusBadge.vue_vue_type_script_setup_true_lang-CMgQ0bd_.js +30 -0
- package/dist/WorkspaceEntryView-BTYo51RE.js +21 -0
- package/dist/app.js +11 -20
- package/dist/package.json +2 -1
- package/dist/{portalContext-DCwZcTKL.js → portalContext-C4HL_0kl.js} +1 -1
- package/dist/portalNavigation-DKCfwTH8.js +28 -0
- package/dist/routes-Boz_WlNM.js +54 -0
- package/dist/style.css +1 -1
- package/dist/{useModuleCatalog-CVi8031k.js → useModuleCatalog-DqECds3F.js} +1 -1
- package/package.json +2 -1
- package/dist/MobileProjectsView-BZw9pWnK.js +0 -296
- package/dist/StatusBadge.vue_vue_type_script_setup_true_lang-Bh9Eoe_H.js +0 -26
- package/dist/TemplateCenterView-B_Yvaeza.js +0 -299
- package/dist/WorkspaceEntryView-hNqYjBTr.js +0 -21
- package/dist/portalNavigation-DOF4Ah49.js +0 -28
- package/dist/routes-DXQSkGM7.js +0 -66
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
function o(e) {
|
|
2
|
-
return e === "releases" ? "releases" : "workspace";
|
|
3
|
-
}
|
|
4
|
-
function t(e) {
|
|
5
|
-
const { view: s, ...r } = e;
|
|
6
|
-
return r;
|
|
7
|
-
}
|
|
8
|
-
function c(e, s, r) {
|
|
9
|
-
return {
|
|
10
|
-
name: "miniprogram-v2-project",
|
|
11
|
-
params: { projectId: e, view: s === "workspace" ? void 0 : s },
|
|
12
|
-
query: t(r)
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function i(e, s = "settings") {
|
|
16
|
-
const r = new URLSearchParams();
|
|
17
|
-
for (const a of ["businessId", "country", "restaurantId"]) {
|
|
18
|
-
const n = e[a];
|
|
19
|
-
typeof n == "string" && r.set(a, n);
|
|
20
|
-
}
|
|
21
|
-
return `/brand/${s}${r.size ? `?${r}` : ""}`;
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
o as a,
|
|
25
|
-
i as l,
|
|
26
|
-
t as p,
|
|
27
|
-
c as w
|
|
28
|
-
};
|
package/dist/routes-DXQSkGM7.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
const o = (e, s) => `/api/businesses/${e}/projects/${s}`, r = {
|
|
2
|
-
projects: (e) => `/api/businesses/${e}/projects`,
|
|
3
|
-
portalContext: (e) => `/api/businesses/${e}/portal-context`,
|
|
4
|
-
project: (e, s) => o(e, s),
|
|
5
|
-
provision: (e, s) => `${o(e, s)}/provision`,
|
|
6
|
-
refreshSlug: (e, s) => `${o(e, s)}/refresh-slug`,
|
|
7
|
-
sessions: (e, s) => `${o(e, s)}/sessions`,
|
|
8
|
-
session: (e, s, i) => `${o(e, s)}/sessions/${i}`,
|
|
9
|
-
messages: (e, s, i) => `${r.session(e, s, i)}/messages`,
|
|
10
|
-
startStatus: (e, s, i) => `${r.session(e, s, i)}/start-status`,
|
|
11
|
-
changes: (e, s, i, a = !1) => `${r.session(e, s, i)}/changes${a ? "?refresh=1" : ""}`,
|
|
12
|
-
checkpoints: (e, s, i) => `${r.session(e, s, i)}/checkpoints`,
|
|
13
|
-
aiBillingPreflight: (e, s, i) => `${r.session(e, s, i)}/ai-billing/preflight`,
|
|
14
|
-
restoreCheckpoint: (e, s, i, a) => `${r.checkpoints(e, s, i)}/${a}/restore`,
|
|
15
|
-
previewBridgeTicket: (e, s, i) => `${r.session(e, s, i)}/preview-bridge/ticket`,
|
|
16
|
-
previewBridgeSocket: (e, s, i) => `${r.session(e, s, i)}/preview-bridge/socket`,
|
|
17
|
-
uploads: (e, s, i, a = "") => `${r.session(e, s, i)}/uploads${a ? `?${a}` : ""}`,
|
|
18
|
-
archive: (e, s, i) => `${r.session(e, s, i)}/archive`,
|
|
19
|
-
commit: (e, s, i) => `${r.session(e, s, i)}/commit`,
|
|
20
|
-
resume: (e, s, i) => `${r.session(e, s, i)}/resume`,
|
|
21
|
-
restartPreview: (e, s, i) => `${r.session(e, s, i)}/restart-preview`,
|
|
22
|
-
fork: (e, s, i) => `${r.session(e, s, i)}/fork`,
|
|
23
|
-
flushEvents: (e, s, i) => `${r.session(e, s, i)}/events/flush`,
|
|
24
|
-
revertTurn: (e, s, i) => `${r.session(e, s, i)}/turns/revert`,
|
|
25
|
-
unrevertTurn: (e, s, i) => `${r.session(e, s, i)}/turns/unrevert`,
|
|
26
|
-
releases: (e, s) => `${o(e, s)}/releases`,
|
|
27
|
-
/** Internal-admin only. Extracts a new restaurant style out of a session's
|
|
28
|
-
* verified checkpoint and, once confirmed, opens a PR against this repo. */
|
|
29
|
-
publishAsTemplate: (e, s) => `${o(e, s)}/publish-as-template`,
|
|
30
|
-
publishRelease: (e, s, i) => `${r.releases(e, s)}/${i}/publish`,
|
|
31
|
-
releasePreviewUrl: (e, s, i) => `${r.releases(e, s)}/${i}/preview-url`,
|
|
32
|
-
rollbackToRelease: (e, s, i) => `${o(e, s)}/rollback-to-release/${i}`,
|
|
33
|
-
rollbackToV1: (e, s) => `${o(e, s)}/rollback-to-v1`,
|
|
34
|
-
start: (e, s, i) => {
|
|
35
|
-
const a = new URLSearchParams();
|
|
36
|
-
e && a.set("businessId", e), s && a.set("projectId", s), i && a.set("sessionId", i);
|
|
37
|
-
const t = a.toString();
|
|
38
|
-
return `/api/start${t ? `?${t}` : ""}`;
|
|
39
|
-
},
|
|
40
|
-
opencode: (e = "") => `/api/opencode${e ? `/${e.replace(/^\/+/, "")}` : ""}`,
|
|
41
|
-
/** The shared component library's catalog. Deliberately not under a
|
|
42
|
-
* business/project path: the library belongs to no business, and the
|
|
43
|
-
* module centre is not inside a workspace. */
|
|
44
|
-
componentLibraryCatalog: () => "/api/component-library/catalog",
|
|
45
|
-
/** The self-contained preview document the module centre frames. Fetched with
|
|
46
|
-
* the portal's bearer and assigned to an iframe's `srcdoc`, never used as an
|
|
47
|
-
* `<iframe src>` — a navigation request carries no Authorization header,
|
|
48
|
-
* which is what a signed URL would otherwise exist to work around. */
|
|
49
|
-
componentLibraryPreview: () => "/api/component-library/preview",
|
|
50
|
-
/** The application templates this environment can provision, for the portal's
|
|
51
|
-
* picker. Not under a business/project path: the answer is a property of
|
|
52
|
-
* the environment, and it is needed BEFORE a project exists. */
|
|
53
|
-
appTemplates: () => "/api/app-templates",
|
|
54
|
-
/** Whether the caller is an internal admin — for the portal to decide whether to
|
|
55
|
-
* show internal-only entry points such as the Template Center. The real
|
|
56
|
-
* enforcement is on every admin route itself; this is a UI convenience. */
|
|
57
|
-
adminWhoami: () => "/api/admin/whoami",
|
|
58
|
-
/** Template Center: the FULL choice catalog (active + archived), internal-admin only. */
|
|
59
|
-
appTemplateChoices: () => "/api/admin/app-template-choices",
|
|
60
|
-
appTemplateChoice: (e) => `/api/admin/app-template-choices/${e}`,
|
|
61
|
-
appTemplateChoiceArchive: (e) => `${r.appTemplateChoice(e)}/archive`,
|
|
62
|
-
appTemplateChoiceRestore: (e) => `${r.appTemplateChoice(e)}/restore`
|
|
63
|
-
};
|
|
64
|
-
export {
|
|
65
|
-
r as a
|
|
66
|
-
};
|