@feedmepos/mf-brand-app-builder 0.5.12 → 0.5.13-alpha
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-sh0my5.js → App-Dx-zim3o.js} +4 -4
- package/dist/{AssetsSettings-BRmUNWzU.js → AssetsSettings-BrFOHUWK.js} +86 -84
- package/dist/{BuilderView-DPoES6BN.js → BuilderView-qdOop6ed.js} +6 -6
- package/dist/{ImageUpload-EpMFyZdg.js → ImageUpload-DxE1yPGA.js} +7 -7
- package/dist/{LinkButton-DENsxaU5.js → LinkButton-Cbch02ih.js} +1 -1
- package/dist/{ListRepeater-DLracrtI.js → ListRepeater-Btngd8M3.js} +1 -1
- package/dist/{ManagementSettings-BM5Ln-Sx.js → ManagementSettings-de-TEfbe.js} +5 -5
- package/dist/{app-B1o1qlxh.js → app-s4CdT1Jt.js} +7 -7
- package/dist/app.js +1 -1
- package/dist/{image-Dw_jz8xE.js → image-C-MNSOjE.js} +8 -8
- package/dist/{index-BxQr98LR.js → index-C1ZVL1AH.js} +131 -131
- package/dist/{index-T23clKe0.js → index-C4WOObjm.js} +6 -6
- package/dist/{index-Dw3CRqw2.js → index-D2kxtvYi.js} +1 -1
- package/dist/{index-BMPqWhXR.js → index-WtAjKyig.js} +18 -18
- package/dist/merchant/src/api/business/index.d.ts +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as bt, useAttrs as Qt, ref as p, computed as g, watchEffect as F, nextTick as Xt, watch as Ft, openBlock as d, createElementBlock as h, unref as N, Fragment as j, renderList as mt, mergeProps as pt, createBlock as G, normalizeClass as D, normalizeStyle as ht, withCtx as U, renderSlot as E, createVNode as W, onMounted as Rt, onBeforeUnmount as Zt, resolveDynamicComponent as tt, createCommentVNode as _, createElementVNode as O, normalizeProps as Vt, createTextVNode as Ut, toDisplayString as ct } from "vue";
|
|
2
|
-
import { H as K, a as te } from "./index-
|
|
2
|
+
import { H as K, a as te } from "./index-C1ZVL1AH.js";
|
|
3
3
|
var ee = Object.defineProperty, ae = (s, a, t) => a in s ? ee(s, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[a] = t, k = (s, a, t) => ae(s, typeof a != "symbol" ? a + "" : a, t);
|
|
4
4
|
function oe(s) {
|
|
5
5
|
if (typeof document > "u") return;
|
|
@@ -743,13 +743,13 @@ const ea = /* @__PURE__ */ bt({
|
|
|
743
743
|
}), We = () => te().PORTAL_V2_BACKEND;
|
|
744
744
|
async function Ge(s) {
|
|
745
745
|
return (await K.Get(
|
|
746
|
-
"https://api.
|
|
746
|
+
"https://api.feedmedev.vip",
|
|
747
747
|
`/short-url/${s}`
|
|
748
748
|
)).data;
|
|
749
749
|
}
|
|
750
750
|
async function Fe(s, a, t) {
|
|
751
751
|
return await K.Post(
|
|
752
|
-
"https://api.
|
|
752
|
+
"https://api.feedmedev.vip",
|
|
753
753
|
"/short-url",
|
|
754
754
|
{
|
|
755
755
|
data: {
|
|
@@ -766,13 +766,13 @@ async function Fe(s, a, t) {
|
|
|
766
766
|
}
|
|
767
767
|
async function Ke(s) {
|
|
768
768
|
return (await K.Get(
|
|
769
|
-
"https://api.
|
|
769
|
+
"https://api.feedmedev.vip",
|
|
770
770
|
`/metadata/${s}/config`
|
|
771
771
|
)).data;
|
|
772
772
|
}
|
|
773
773
|
async function qe(s, a, t) {
|
|
774
774
|
return (await K.Post(
|
|
775
|
-
"https://api.
|
|
775
|
+
"https://api.feedmedev.vip",
|
|
776
776
|
`/metadata/${s}/config`,
|
|
777
777
|
{
|
|
778
778
|
data: {
|
|
@@ -797,7 +797,7 @@ async function Je(s, a) {
|
|
|
797
797
|
}
|
|
798
798
|
async function Qe(s) {
|
|
799
799
|
return (await K.Get(
|
|
800
|
-
"https://license.
|
|
800
|
+
"https://license.feedmedev.cc/api",
|
|
801
801
|
`/business/${s}/feature/miniprogram`
|
|
802
802
|
)).data;
|
|
803
803
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { openBlock as y, createElementBlock as w, ref as $ } from "vue";
|
|
2
2
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { H as m } from "./index-
|
|
3
|
+
import { H as m } from "./index-C1ZVL1AH.js";
|
|
4
4
|
import { defineStore as g } from "pinia";
|
|
5
5
|
import { v as A } from "./v4-ANoOI1Qw.js";
|
|
6
6
|
async function _(e) {
|
|
7
7
|
return (await m.Get(
|
|
8
|
-
"https://api.
|
|
8
|
+
"https://api.feedmedev.vip",
|
|
9
9
|
`/template/${e}`
|
|
10
10
|
)).data;
|
|
11
11
|
}
|
|
12
12
|
async function B(e, l, s) {
|
|
13
13
|
return (await m.Get(
|
|
14
|
-
"https://api.
|
|
14
|
+
"https://api.feedmedev.vip",
|
|
15
15
|
`/template/${e}/${l}/${s}`
|
|
16
16
|
)).data;
|
|
17
17
|
}
|
|
18
18
|
async function P(e, l, s, c) {
|
|
19
19
|
return (await m.Put(
|
|
20
|
-
"https://api.
|
|
20
|
+
"https://api.feedmedev.vip",
|
|
21
21
|
`/template/${e}/${l}/${s.templateId}`,
|
|
22
22
|
{
|
|
23
23
|
data: {
|
|
@@ -29,7 +29,7 @@ async function P(e, l, s, c) {
|
|
|
29
29
|
}
|
|
30
30
|
async function b(e, l) {
|
|
31
31
|
return (await m.Put(
|
|
32
|
-
"https://api.
|
|
32
|
+
"https://api.feedmedev.vip",
|
|
33
33
|
`/template/${e}/active`,
|
|
34
34
|
{
|
|
35
35
|
data: {
|
|
@@ -40,19 +40,19 @@ async function b(e, l) {
|
|
|
40
40
|
}
|
|
41
41
|
async function U(e) {
|
|
42
42
|
return (await m.Get(
|
|
43
|
-
"https://api.
|
|
43
|
+
"https://api.feedmedev.vip",
|
|
44
44
|
`/template/${e}/active`
|
|
45
45
|
)).data;
|
|
46
46
|
}
|
|
47
47
|
async function x(e, l, s) {
|
|
48
48
|
return await m.Head(
|
|
49
|
-
"https://api.
|
|
49
|
+
"https://api.feedmedev.vip",
|
|
50
50
|
`/template/${e}/${l}/${s}`
|
|
51
|
-
).then((
|
|
51
|
+
).then((r) => r.status === 200).catch(() => !1);
|
|
52
52
|
}
|
|
53
53
|
async function M(e, l, s) {
|
|
54
54
|
return (await m.Post(
|
|
55
|
-
"https://api.
|
|
55
|
+
"https://api.feedmedev.vip",
|
|
56
56
|
`/template/${e}/${l}/rename`,
|
|
57
57
|
{
|
|
58
58
|
data: {
|
|
@@ -63,7 +63,7 @@ async function M(e, l, s) {
|
|
|
63
63
|
}
|
|
64
64
|
async function N(e, l, s) {
|
|
65
65
|
return (await m.Delete(
|
|
66
|
-
"https://api.
|
|
66
|
+
"https://api.feedmedev.vip",
|
|
67
67
|
`/template/${e}/${l}/${s}`
|
|
68
68
|
)).data;
|
|
69
69
|
}
|
|
@@ -103,7 +103,7 @@ const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
|
103
103
|
async function c(t) {
|
|
104
104
|
e.value.activeTemplateId = await p.getMainTemplateId(t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function r(t) {
|
|
107
107
|
e.value.selectedTemplate = e.value.allTemplates.find(
|
|
108
108
|
(a) => a.templateId === t
|
|
109
109
|
) ?? null;
|
|
@@ -126,10 +126,10 @@ const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
|
126
126
|
}
|
|
127
127
|
function T() {
|
|
128
128
|
let t = "Untitled", a = 2;
|
|
129
|
-
e.value.allTemplates.forEach((
|
|
130
|
-
if (!
|
|
131
|
-
const n =
|
|
132
|
-
n.length === 1 && n[0] === "Untitled" ? t = "Untitled 2" : n.length === 2 && n[0] === "Untitled" && !isNaN(+n[1]) && (
|
|
129
|
+
e.value.allTemplates.forEach((d) => {
|
|
130
|
+
if (!d.templateAlias.startsWith("Untitled")) return;
|
|
131
|
+
const n = d.templateAlias.split(" ");
|
|
132
|
+
n.length === 1 && n[0] === "Untitled" ? t = "Untitled 2" : n.length === 2 && n[0] === "Untitled" && !isNaN(+n[1]) && (d.templateAlias.startsWith(`Untitled ${a}`) && (a += 1), t = `Untitled ${a}`);
|
|
133
133
|
});
|
|
134
134
|
const i = {
|
|
135
135
|
templateAlias: t,
|
|
@@ -140,12 +140,12 @@ const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
|
140
140
|
}
|
|
141
141
|
async function f(t, a, i) {
|
|
142
142
|
await p.renameTemplate(t, a, i).then(() => {
|
|
143
|
-
var
|
|
143
|
+
var d;
|
|
144
144
|
e.value.allTemplates = e.value.allTemplates.map((n) => n.templateId === a ? {
|
|
145
145
|
...n,
|
|
146
146
|
templateAlias: i,
|
|
147
147
|
templateId: a
|
|
148
|
-
} : n), ((
|
|
148
|
+
} : n), ((d = e.value.selectedTemplate) == null ? void 0 : d.templateId) === a && (e.value.selectedTemplate.templateAlias = i);
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
async function v(t, a) {
|
|
@@ -172,7 +172,7 @@ const q = /* @__PURE__ */ I(S, [["render", H]]), z = g("template", () => {
|
|
|
172
172
|
getAllTemplates: l,
|
|
173
173
|
publishTemplate: s,
|
|
174
174
|
getMainTemplateId: c,
|
|
175
|
-
setSelectedTemplate:
|
|
175
|
+
setSelectedTemplate: r,
|
|
176
176
|
saveTemplate: u,
|
|
177
177
|
setMainPageTemplate: o,
|
|
178
178
|
addNewTemplate: T,
|
package/dist/package.json
CHANGED