@feedmepos/mf-miniprogram-v2 0.2.5 → 0.2.6-dev.0
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-qAELeU_7.js → App-B8Qhgf0V.js} +2 -2
- package/dist/{BrandFontPicker-BZyGrK3D.js → BrandFontPicker-BzsoYtYG.js} +1 -1
- package/dist/{BrandKitView-CzefaEEN.js → BrandKitView-HqIYrYNt.js} +2 -2
- package/dist/{ControlPlaneView-DmXe1Avx.js → ControlPlaneView-BGKGx1gE.js} +7436 -7242
- package/dist/{EcosystemView-C-y5cPOp.js → EcosystemView-BG3Gba74.js} +3 -3
- package/dist/{LegacyWorkspaceEntry-CADRpDkg.js → LegacyWorkspaceEntry-lEMtmdIe.js} +1 -1
- package/dist/MobileProjectDialog-mNUZfDy7.js +389 -0
- package/dist/MobileProjectsView-DW2BNTNc.js +224 -0
- package/dist/{ModuleCenterView-B08oZqQw.js → ModuleCenterView-BBaQu0Pm.js} +1 -1
- package/dist/{ModuleDetailView-lROTkaR7.js → ModuleDetailView-ChrsLmJa.js} +1 -1
- package/dist/{PagesView-DOG8RSen.js → PagesView-CPYtQtsx.js} +1 -1
- package/dist/{PortalSettingsView-BK6kRgtf.js → PortalSettingsView-C60zqwk0.js} +4 -4
- package/dist/{TemplateCenterView-niXTXw9y.js → TemplateCenterView-Da9HzssA.js} +1 -1
- package/dist/{WorkspaceEntryView-DzR8DQC5.js → WorkspaceEntryView-DE82gwZH.js} +1 -1
- package/dist/{adminAccess-CDxAuQ-M.js → adminAccess-Cy0P9Hg-.js} +1 -1
- package/dist/app.js +11 -11
- package/dist/{controlPlane-DT3t_ftg.js → controlPlane-CDopeXyb.js} +17 -17
- package/dist/package.json +1 -1
- package/dist/{portalContext-B2pXdNtB.js → portalContext-IOgByqvZ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useBrandKit-CQv08nyY.js → useBrandKit-C3CGmni1.js} +2 -2
- package/dist/{useModuleCatalog-B9HXHA-e.js → useModuleCatalog-B_6PWpER.js} +1 -1
- package/package.json +1 -1
- package/dist/AppTemplatePicker.vue_vue_type_script_setup_true_lang-LE_aKvfg.js +0 -198
- package/dist/MobileProjectsView-BCXdpVTc.js +0 -331
|
@@ -2,7 +2,7 @@ import { defineComponent as B, ref as o, computed as K, resolveComponent as F, o
|
|
|
2
2
|
import { a as k } from "./routes-CeuodIgg.js";
|
|
3
3
|
import { useDialog as Z } from "@feedmepos/ui-library";
|
|
4
4
|
import { useRouter as ee } from "vue-router";
|
|
5
|
-
import { c as C, e as T } from "./controlPlane-
|
|
5
|
+
import { c as C, e as T } from "./controlPlane-CDopeXyb.js";
|
|
6
6
|
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const te = ["href"], ae = {
|
|
8
8
|
key: 0,
|
|
@@ -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-IOgByqvZ.js";
|
|
4
4
|
import { w as m, a as f } from "./portalNavigation-DKCfwTH8.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-DW2BNTNc.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-BG3Gba74.js")
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
path: "/workspace",
|
|
18
18
|
name: "miniprogram-v2-control",
|
|
19
|
-
component: () => import("./WorkspaceEntryView-
|
|
19
|
+
component: () => import("./WorkspaceEntryView-DE82gwZH.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-BGKGx1gE.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-HqIYrYNt.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-CPYtQtsx.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-C60zqwk0.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: "Module library" },
|
|
56
|
-
component: () => import("./ModuleCenterView-
|
|
56
|
+
component: () => import("./ModuleCenterView-BBaQu0Pm.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: "Module library" },
|
|
64
|
-
component: () => import("./ModuleDetailView-
|
|
64
|
+
component: () => import("./ModuleDetailView-ChrsLmJa.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-Da9HzssA.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-B8Qhgf0V.js")), i = t(() => import("./LegacyWorkspaceEntry-lEMtmdIe.js"));
|
|
82
82
|
export {
|
|
83
83
|
a as FmApp,
|
|
84
84
|
i as MiniprogramWorkspace,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as f, e as d, D as
|
|
2
|
-
import { useCoreStore as a, FeedMeAuth as
|
|
1
|
+
import { a as f, e as d, D as m } from "./index-CIJWcl_6.js";
|
|
2
|
+
import { useCoreStore as a, FeedMeAuth as p } from "@feedmepos/mf-common";
|
|
3
3
|
const h = [
|
|
4
4
|
"AE",
|
|
5
5
|
"AU",
|
|
@@ -42,11 +42,11 @@ function k(e, n, t) {
|
|
|
42
42
|
function B(e) {
|
|
43
43
|
return e.replace(/\/+$/, "");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return B("https://miniprogram-v2-api.
|
|
45
|
+
function v() {
|
|
46
|
+
return B("https://miniprogram-v2-api.feedmedev.vip");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
const n =
|
|
48
|
+
function y(e) {
|
|
49
|
+
const n = v();
|
|
50
50
|
return n ? `${n}${e.startsWith("/") ? e : `/${e}`}` : e;
|
|
51
51
|
}
|
|
52
52
|
function i() {
|
|
@@ -54,7 +54,7 @@ function i() {
|
|
|
54
54
|
}
|
|
55
55
|
function u() {
|
|
56
56
|
var e;
|
|
57
|
-
return ((e = i()) == null ? void 0 : e._id) ??
|
|
57
|
+
return ((e = i()) == null ? void 0 : e._id) ?? m;
|
|
58
58
|
}
|
|
59
59
|
function C() {
|
|
60
60
|
var e;
|
|
@@ -69,7 +69,7 @@ function $() {
|
|
|
69
69
|
}
|
|
70
70
|
function x() {
|
|
71
71
|
var r;
|
|
72
|
-
const e = (r = C()) == null ? void 0 : r.trim().toLowerCase(), n = e && /^[a-z0-9-]+$/.test(e) ? e : u(), t = f(d("fmmf:
|
|
72
|
+
const e = (r = C()) == null ? void 0 : r.trim().toLowerCase(), n = e && /^[a-z0-9-]+$/.test(e) ? e : u(), t = f(d("fmmf:dev")).liveDomain;
|
|
73
73
|
return `https://${n}.${t}`;
|
|
74
74
|
}
|
|
75
75
|
function S(e) {
|
|
@@ -85,7 +85,7 @@ class T extends Error {
|
|
|
85
85
|
}
|
|
86
86
|
function c() {
|
|
87
87
|
var n;
|
|
88
|
-
return ((n = a().sessionUser.value) == null ? void 0 : n.token) ||
|
|
88
|
+
return ((n = a().sessionUser.value) == null ? void 0 : n.token) || p.token || "";
|
|
89
89
|
}
|
|
90
90
|
async function E() {
|
|
91
91
|
let e = c();
|
|
@@ -105,7 +105,7 @@ async function l(e, n = {}) {
|
|
|
105
105
|
n.body && !t.has("Content-Type") && t.set("Content-Type", "application/json");
|
|
106
106
|
const r = new AbortController(), o = window.setTimeout(() => r.abort(), 15e3);
|
|
107
107
|
try {
|
|
108
|
-
const s = await P(
|
|
108
|
+
const s = await P(y(e), {
|
|
109
109
|
...n,
|
|
110
110
|
headers: t,
|
|
111
111
|
signal: n.signal ?? r.signal
|
|
@@ -126,15 +126,15 @@ async function I(e, n = {}) {
|
|
|
126
126
|
}
|
|
127
127
|
export {
|
|
128
128
|
T as C,
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
x as a,
|
|
130
|
+
P as b,
|
|
131
131
|
b as c,
|
|
132
|
-
|
|
132
|
+
y as d,
|
|
133
133
|
F as e,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
E as f,
|
|
135
|
+
u as g,
|
|
136
|
+
C as h,
|
|
137
|
+
$ as i,
|
|
138
138
|
D as j,
|
|
139
139
|
k,
|
|
140
140
|
i as l,
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as b } from "./routes-CeuodIgg.js";
|
|
2
2
|
import { useCoreStore as d } from "@feedmepos/mf-common";
|
|
3
|
-
import { c as g, e as h } from "./controlPlane-
|
|
3
|
+
import { c as g, e as h } from "./controlPlane-CDopeXyb.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(() => {
|