@feedmepos/mf-miniprogram-v2 0.2.10-dev.0 → 0.2.11-dev.1
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-D-AO7es-.js → App-C0WpITly.js} +2 -2
- package/dist/{BrandFontPicker-Czyeb-O7.js → BrandFontPicker-CixDQhv-.js} +1 -1
- package/dist/{BrandKitView-PvmuvcWH.js → BrandKitView-C0s8XmOA.js} +2 -2
- package/dist/{ControlPlaneView-CU5cQR2S.js → ControlPlaneView-BUzkjvFu.js} +7 -7
- package/dist/{EcosystemView-Dx278EJt.js → EcosystemView-Bp52MYSA.js} +4 -4
- package/dist/{LegacyWorkspaceEntry-DBIDEJNj.js → LegacyWorkspaceEntry-IRMa-8U4.js} +1 -1
- package/dist/{MobileProjectDialog-BJT7F1aq.js → MobileProjectDialog-CsezBOzx.js} +2 -2
- package/dist/{MobileProjectsView-mI7VrPLi.js → MobileProjectsView-BX7HZv_b.js} +4 -4
- package/dist/{ModuleCenterView-CPvh_2yV.js → ModuleCenterView-Bus9dN9-.js} +1 -1
- package/dist/{ModuleDetailView-Cyt3Owxj.js → ModuleDetailView-C0IVjslg.js} +1 -1
- package/dist/{PagesView-DWKG50PT.js → PagesView-BYyOLtCz.js} +1 -1
- package/dist/PortalSettingsView-fR4yOFsv.js +1847 -0
- package/dist/{TemplateCenterView-CF3ga3su.js → TemplateCenterView-BYb1WIgm.js} +2 -2
- package/dist/{WorkspaceEntryView-CPFFi_dV.js → WorkspaceEntryView-CcohqnAX.js} +1 -1
- package/dist/app.js +11 -11
- package/dist/{controlPlane-BolHy5EI.js → controlPlane-DffMY39e.js} +53 -54
- package/dist/index-DB33ug2V.js +125 -0
- package/dist/{localPreference-DGZbSJ6w.js → localPreference-DJ1WUOiz.js} +2 -2
- package/dist/package.json +2 -1
- package/dist/{portalContext-BKzVf74q.js → portalContext-MKst4jC0.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{useBrandKit-DfO6zsSt.js → useBrandKit-ChIpWVpr.js} +2 -2
- package/dist/{useModuleCatalog-Bg_Np4Ry.js → useModuleCatalog-CS56tCMs.js} +2 -2
- package/package.json +2 -1
- package/dist/PortalSettingsView-DWBFuVgS.js +0 -123
- package/dist/index-BnE-gQP_.js +0 -81
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as B, ref as n, resolveComponent as A, openBlock as s, createBlock as S, withCtx as J, createElementVNode as a, toDisplayString as p, createVNode as u, createElementBlock as o, createCommentVNode as y, computed as X, Fragment as D, createTextVNode as x, onMounted as Y, renderList as G, normalizeClass as Z } from "vue";
|
|
2
|
-
import "./index-
|
|
2
|
+
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-DffMY39e.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-MKst4jC0.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-BX7HZv_b.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-Bp52MYSA.js")
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
path: "/workspace",
|
|
18
18
|
name: "miniprogram-v2-control",
|
|
19
|
-
component: () => import("./WorkspaceEntryView-
|
|
19
|
+
component: () => import("./WorkspaceEntryView-CcohqnAX.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-BUzkjvFu.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-C0s8XmOA.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-BYyOLtCz.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-fR4yOFsv.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-Bus9dN9-.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-C0IVjslg.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-BYb1WIgm.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-C0WpITly.js")), n = t(() => import("./LegacyWorkspaceEntry-IRMa-8U4.js"));
|
|
82
82
|
export {
|
|
83
83
|
a as FmApp,
|
|
84
84
|
n as MiniprogramWorkspace,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f, e as d,
|
|
2
|
-
import { useCoreStore as a, FeedMeAuth as
|
|
3
|
-
const
|
|
1
|
+
import { f, e as d, g as m, D as p } from "./index-DB33ug2V.js";
|
|
2
|
+
import { useCoreStore as a, FeedMeAuth as h } from "@feedmepos/mf-common";
|
|
3
|
+
const w = [
|
|
4
4
|
"AE",
|
|
5
5
|
"AU",
|
|
6
6
|
"BN",
|
|
@@ -16,15 +16,15 @@ const h = [
|
|
|
16
16
|
"TH",
|
|
17
17
|
"VN"
|
|
18
18
|
];
|
|
19
|
-
function w(e) {
|
|
20
|
-
return typeof e == "string" && h.includes(e);
|
|
21
|
-
}
|
|
22
19
|
function g(e) {
|
|
20
|
+
return typeof e == "string" && w.includes(e);
|
|
21
|
+
}
|
|
22
|
+
function U(e) {
|
|
23
23
|
if (typeof e != "string") return null;
|
|
24
24
|
const n = e.trim().toUpperCase();
|
|
25
|
-
return
|
|
25
|
+
return g(n) ? n : null;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function v(e, n) {
|
|
28
28
|
const t = n === "MY" ? "" : `.${n.toLowerCase()}`, r = e === "dev" ? "-dev" : "", o = e === "dev" ? "https://portal.feedmedev.cc" : "https://portal.feedme.cc", s = e === "dev" ? "https://license.feedmedev.cc" : "https://license.feedme.cc";
|
|
29
29
|
return {
|
|
30
30
|
country: n,
|
|
@@ -35,69 +35,68 @@ function U(e, n) {
|
|
|
35
35
|
usageUrl: `${s}/token`
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const r = new URL(
|
|
38
|
+
function D(e, n, t) {
|
|
39
|
+
const r = new URL(v(e, n).usageUrl);
|
|
40
40
|
return r.searchParams.set("businessId", t), r.searchParams.set("country", n), r.toString();
|
|
41
41
|
}
|
|
42
42
|
function B(e) {
|
|
43
43
|
return e.replace(/\/+$/, "");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function y() {
|
|
46
46
|
return B("https://miniprogram-v2-api.feedmedev.vip");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
const n =
|
|
48
|
+
function C(e) {
|
|
49
|
+
const n = y();
|
|
50
50
|
return n ? `${n}${e.startsWith("/") ? e : `/${e}`}` : e;
|
|
51
51
|
}
|
|
52
52
|
function i() {
|
|
53
53
|
return a().currentBusiness.value;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function c() {
|
|
56
56
|
var e;
|
|
57
|
-
return ((e = i()) == null ? void 0 : e._id) ??
|
|
57
|
+
return ((e = i()) == null ? void 0 : e._id) ?? p;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function T() {
|
|
60
60
|
var e;
|
|
61
61
|
return ((e = i()) == null ? void 0 : e.url) ?? void 0;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function x() {
|
|
64
64
|
var e;
|
|
65
|
-
return ((e = i()) == null ? void 0 : e.name) ??
|
|
65
|
+
return ((e = i()) == null ? void 0 : e.name) ?? c();
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function E() {
|
|
68
68
|
return a().currentCountry.value;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return `https://${n}.${t}`;
|
|
70
|
+
function F() {
|
|
71
|
+
const e = f(d("fmmf:dev")).liveDomain;
|
|
72
|
+
return m(c(), T(), e);
|
|
74
73
|
}
|
|
75
|
-
function
|
|
74
|
+
function P(e) {
|
|
76
75
|
return new Promise((n) => window.setTimeout(n, e));
|
|
77
76
|
}
|
|
78
|
-
function
|
|
77
|
+
function b(e) {
|
|
79
78
|
return e instanceof Error ? e.message : String(e);
|
|
80
79
|
}
|
|
81
|
-
class
|
|
80
|
+
class S extends Error {
|
|
82
81
|
constructor(n, t) {
|
|
83
82
|
super(t), this.status = n, this.body = t;
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
|
-
function
|
|
85
|
+
function u() {
|
|
87
86
|
var n;
|
|
88
|
-
return ((n = a().sessionUser.value) == null ? void 0 : n.token) ||
|
|
87
|
+
return ((n = a().sessionUser.value) == null ? void 0 : n.token) || h.token || "";
|
|
89
88
|
}
|
|
90
|
-
async function
|
|
91
|
-
let e =
|
|
89
|
+
async function $() {
|
|
90
|
+
let e = u();
|
|
92
91
|
const n = Date.now() + 5e3;
|
|
93
92
|
for (; !e && Date.now() < n; )
|
|
94
|
-
await
|
|
93
|
+
await P(100), e = u();
|
|
95
94
|
return e ? `Bearer ${e}` : null;
|
|
96
95
|
}
|
|
97
|
-
async function
|
|
98
|
-
const t = new Request(e, n), r = await
|
|
96
|
+
async function M(e, n = {}) {
|
|
97
|
+
const t = new Request(e, n), r = await $();
|
|
99
98
|
r && t.headers.set("Authorization", r);
|
|
100
|
-
const o =
|
|
99
|
+
const o = U(E());
|
|
101
100
|
return o && t.headers.set("x-feedme-country", o), fetch(t);
|
|
102
101
|
}
|
|
103
102
|
async function l(e, n = {}) {
|
|
@@ -105,12 +104,12 @@ async function l(e, n = {}) {
|
|
|
105
104
|
n.body && !t.has("Content-Type") && t.set("Content-Type", "application/json");
|
|
106
105
|
const r = new AbortController(), o = window.setTimeout(() => r.abort(), 15e3);
|
|
107
106
|
try {
|
|
108
|
-
const s = await
|
|
107
|
+
const s = await M(C(e), {
|
|
109
108
|
...n,
|
|
110
109
|
headers: t,
|
|
111
110
|
signal: n.signal ?? r.signal
|
|
112
111
|
});
|
|
113
|
-
if (!s.ok) throw new
|
|
112
|
+
if (!s.ok) throw new S(s.status, await s.text());
|
|
114
113
|
return s;
|
|
115
114
|
} catch (s) {
|
|
116
115
|
throw s instanceof DOMException && s.name === "AbortError" ? new Error("Control-plane request timed out") : s;
|
|
@@ -118,28 +117,28 @@ async function l(e, n = {}) {
|
|
|
118
117
|
window.clearTimeout(o);
|
|
119
118
|
}
|
|
120
119
|
}
|
|
121
|
-
async function
|
|
120
|
+
async function I(e, n = {}) {
|
|
122
121
|
return (await l(e, n)).json();
|
|
123
122
|
}
|
|
124
|
-
async function
|
|
123
|
+
async function L(e, n = {}) {
|
|
125
124
|
return (await l(e, n)).text();
|
|
126
125
|
}
|
|
127
126
|
export {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
127
|
+
S as C,
|
|
128
|
+
F as a,
|
|
129
|
+
M as b,
|
|
130
|
+
I as c,
|
|
131
|
+
C as d,
|
|
132
|
+
b as e,
|
|
133
|
+
L as f,
|
|
134
|
+
v as g,
|
|
135
|
+
$ as h,
|
|
136
|
+
E as i,
|
|
138
137
|
i as j,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
138
|
+
c as k,
|
|
139
|
+
T as l,
|
|
140
|
+
x as m,
|
|
141
|
+
U as n,
|
|
142
|
+
D as o,
|
|
143
|
+
P as s
|
|
145
144
|
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
const b = 10, v = 5242880, c = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/webp", "image/gif"]), m = {
|
|
2
|
+
"image/png": "png",
|
|
3
|
+
"image/jpeg": "jpg",
|
|
4
|
+
"image/webp": "webp",
|
|
5
|
+
"image/gif": "gif",
|
|
6
|
+
"image/svg+xml": "svg",
|
|
7
|
+
"text/markdown": "md",
|
|
8
|
+
"application/json": "json",
|
|
9
|
+
"application/zip+dotlottie": "lottie"
|
|
10
|
+
}, w = `${Object.keys(m).join(",")},.svg,.md,.markdown,.json,.lottie,.dotlottie`;
|
|
11
|
+
function k(e, t) {
|
|
12
|
+
var r;
|
|
13
|
+
const i = t.split(";")[0].trim().toLowerCase(), a = (r = e.split(".").pop()) == null ? void 0 : r.toLowerCase();
|
|
14
|
+
return a === "svg" ? "image/svg+xml" : a === "md" || a === "markdown" ? "text/markdown" : a === "json" ? "application/json" : a === "lottie" || a === "dotlottie" ? "application/zip+dotlottie" : Object.hasOwn(m, i) ? i : null;
|
|
15
|
+
}
|
|
16
|
+
function j(e) {
|
|
17
|
+
return c.has(e);
|
|
18
|
+
}
|
|
19
|
+
const d = /^[a-z0-9][a-z0-9-]{4,}[a-z0-9]$/, p = new Set(
|
|
20
|
+
`brand home app about tnc terms-and-conditions redirection redirect auth login logout register user discovery
|
|
21
|
+
discover order orders membership memberships member members benefit benefits reward rewards voucher vouchers search
|
|
22
|
+
restaurant restaurants business businesses dine profile scan scanner menu cart me v active-orders qr setting settings
|
|
23
|
+
error supportdetails support-details stacks imulus github twitter facebook google apple account activate add admin
|
|
24
|
+
administrator api apps archive archives blog cache cancel careers changelog checkout codereview compare config
|
|
25
|
+
configuration connect contact create delete direct_messages documentation download downloads edit email employment
|
|
26
|
+
enterprise faq favorites feed feedback feeds fleet fleets follow followers following friend friends gist group groups
|
|
27
|
+
help hosting hostmaster idea ideas index info invitations invite is it job jobs json language languages lists logs mail
|
|
28
|
+
map maps mine mis news oauth oauth_clients offers openid organizations plans popular post postmaster privacy projects
|
|
29
|
+
put recruitment remove replies root rss sales save security sessions shop signup sitemap ssl ssladmin
|
|
30
|
+
ssladministrator sslwebmaster status stories styleguide subscribe subscriptions support sysadmin sysadministrator
|
|
31
|
+
terms tour translations trends unfollow unsubscribe update url weather webmaster widget widgets wiki ww www wwww xfn
|
|
32
|
+
xml xmpp yaml yml chinese mandarin spanish english bengali hindi portuguese russian japanese german wu javanese korean
|
|
33
|
+
french vietnamese telugu marathi tamil turkish urdu min-nan jinyu gujarati polish arabic ukrainian italian xiang
|
|
34
|
+
malayalam hakka kannada oriya panjabi sunda romanian bhojpuri azerbaijani farsi maithili hausa burmese serbo-croatian
|
|
35
|
+
gan awadhi thai dutch yoruba sindhi ac ad ae af ag ai al am an ao aq ar as at au aw ax az ba bb bd be bf bg bh bi bj bm
|
|
36
|
+
bn bo br bs bt bv bw by bz ca cc cd cf cg ch ci ck cl cm cn co cr cs cu cv cx cy cz dd de dj dk dm do dz ec ee eg eh er
|
|
37
|
+
es et eu fi fj fk fm fo fr ga gb gd ge gf gg gh gi gl gm gn gp gq gr gs gt gu gw gy hk hm hn hr ht hu id ie il im in io
|
|
38
|
+
iq ir je jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh mk ml mm mn mo mp mq
|
|
39
|
+
mr ms mt mu mv mw mx my mz na nc ne nf ng ni nl no np nr nu nz om pa pe pf pg ph pk pl pm pn pr ps pt pw py qa re ro rs
|
|
40
|
+
ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr ss st su sv sy sz tc td tf tg th tj tk tl tm tn to tp tr tt tv tw
|
|
41
|
+
tz ua ug uk us uy uz va vc ve vg vi vn vu wf ws ye yt yu za zm zw`.split(/\s+/)
|
|
42
|
+
);
|
|
43
|
+
function y(e) {
|
|
44
|
+
return e ? d.test(e) ? p.has(e) ? "reserved" : null : "format" : null;
|
|
45
|
+
}
|
|
46
|
+
function E(e, t, i) {
|
|
47
|
+
const a = t == null ? void 0 : t.trim().toLowerCase();
|
|
48
|
+
return `https://${a && /^[a-z0-9-]+$/.test(a) ? a : e}.${i}`;
|
|
49
|
+
}
|
|
50
|
+
function T(e, t, i) {
|
|
51
|
+
var o;
|
|
52
|
+
if (!e) return { status: "available" };
|
|
53
|
+
const a = Object.entries(e).filter(([s]) => s !== "type" && s !== "restaurantId");
|
|
54
|
+
if (a.length === 0) return { status: "taken" };
|
|
55
|
+
const r = (o = a.find(([s]) => s === i)) == null ? void 0 : o[1];
|
|
56
|
+
if (r !== void 0 && r !== t) return { status: "taken" };
|
|
57
|
+
const n = a.filter(([, s]) => s !== t).map(([s]) => s);
|
|
58
|
+
return n.length ? { status: "shared", countries: n } : { status: "yours" };
|
|
59
|
+
}
|
|
60
|
+
const S = "69cde0740c0106001ca83dff", z = "0000000074656d706c617465", u = {
|
|
61
|
+
dev: {
|
|
62
|
+
env: "dev",
|
|
63
|
+
liveDomain: "feedmedev.vip",
|
|
64
|
+
apiOrigin: "https://api.feedmedev.vip",
|
|
65
|
+
workerNamePrefix: "miniprogram-v2-dev",
|
|
66
|
+
d1DatabaseName: "miniprogram-v2-dev-metadata",
|
|
67
|
+
r2BucketName: "miniprogram-v2-dev-artifacts",
|
|
68
|
+
v1Origin: "https://brand.feedmedev.vip"
|
|
69
|
+
},
|
|
70
|
+
prod: {
|
|
71
|
+
env: "prod",
|
|
72
|
+
liveDomain: "feedme.vip",
|
|
73
|
+
apiOrigin: "https://api.feedme.vip",
|
|
74
|
+
workerNamePrefix: "miniprogram-v2-prod",
|
|
75
|
+
d1DatabaseName: "miniprogram-v2-prod-metadata",
|
|
76
|
+
r2BucketName: "miniprogram-v2-prod-artifacts",
|
|
77
|
+
v1Origin: "https://brand.feedme.vip"
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
function l(e) {
|
|
81
|
+
return e === "dev" || e === "prod";
|
|
82
|
+
}
|
|
83
|
+
function N(e) {
|
|
84
|
+
if (!l(e))
|
|
85
|
+
throw new Error(`MINIPROGRAM_ENV must be 'dev' or 'prod', got ${JSON.stringify(e)}`);
|
|
86
|
+
return u[e];
|
|
87
|
+
}
|
|
88
|
+
function _(e) {
|
|
89
|
+
const t = e.toLowerCase().replace(/^fmmf:/, "");
|
|
90
|
+
return t === "prod" || t === "production" ? "prod" : "dev";
|
|
91
|
+
}
|
|
92
|
+
const g = /^[a-f0-9]{24}$/;
|
|
93
|
+
function f(e) {
|
|
94
|
+
return g.test(e);
|
|
95
|
+
}
|
|
96
|
+
function A(e = crypto.randomUUID()) {
|
|
97
|
+
const t = h("prj", e, 24);
|
|
98
|
+
return t.length === 27 ? t : t.padEnd(27, "0");
|
|
99
|
+
}
|
|
100
|
+
function C(e) {
|
|
101
|
+
if (!f(e)) throw new Error(`Invalid business id: ${e}`);
|
|
102
|
+
return `prj${e}`;
|
|
103
|
+
}
|
|
104
|
+
function h(e, t, i) {
|
|
105
|
+
const r = t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replaceAll("-", "").slice(0, i);
|
|
106
|
+
return `${e}${r || Date.now().toString(36)}`;
|
|
107
|
+
}
|
|
108
|
+
export {
|
|
109
|
+
c as C,
|
|
110
|
+
S as D,
|
|
111
|
+
b as M,
|
|
112
|
+
z as T,
|
|
113
|
+
v as a,
|
|
114
|
+
w as b,
|
|
115
|
+
k as c,
|
|
116
|
+
f as d,
|
|
117
|
+
_ as e,
|
|
118
|
+
N as f,
|
|
119
|
+
E as g,
|
|
120
|
+
y as h,
|
|
121
|
+
j as i,
|
|
122
|
+
T as j,
|
|
123
|
+
C as l,
|
|
124
|
+
A as m
|
|
125
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./index-
|
|
1
|
+
import "./index-DB33ug2V.js";
|
|
2
2
|
import { a as u } from "./routes-W8KfuhWL.js";
|
|
3
3
|
import { ref as o } from "vue";
|
|
4
|
-
import { c as a } from "./controlPlane-
|
|
4
|
+
import { c as a } from "./controlPlane-DffMY39e.js";
|
|
5
5
|
let r = null;
|
|
6
6
|
function i() {
|
|
7
7
|
return r || (r = a(u.adminWhoami()).catch(() => ({
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-miniprogram-v2",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11-dev.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"marked": "^18.0.5",
|
|
50
50
|
"marked-highlight": "^2.2.4",
|
|
51
51
|
"pinia": "^2.1.7",
|
|
52
|
+
"qrcode": "1.5.4",
|
|
52
53
|
"vue": "^3.5.39",
|
|
53
54
|
"vue-router": "^4.6.4"
|
|
54
55
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./index-
|
|
1
|
+
import "./index-DB33ug2V.js";
|
|
2
2
|
import { a as b } from "./routes-W8KfuhWL.js";
|
|
3
3
|
import { useCoreStore as d } from "@feedmepos/mf-common";
|
|
4
|
-
import { c as g, e as h } from "./controlPlane-
|
|
4
|
+
import { c as g, e as h } from "./controlPlane-DffMY39e.js";
|
|
5
5
|
import { provide as y, computed as f, ref as c, watch as C, onScopeDispose as w, inject as x } from "vue";
|
|
6
6
|
function P() {
|
|
7
7
|
const e = d(), n = f(() => {
|