@feedmepos/mf-brand-app-builder 0.5.26 → 0.5.27-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-DEIvviJQ.js → App-DpN-3RMq.js} +7 -7
- package/dist/{AssetsSettings-DJOCXmyp.js → AssetsSettings-DhprCc4v.js} +18 -18
- package/dist/{BrandkitView-BLrEQyV-.js → BrandkitView-DVGcxme0.js} +1983 -1920
- package/dist/{BuilderView-DdAGA5SN.js → BuilderView-XZdpUr77.js} +8 -8
- package/dist/{ImageUpload-duukH8--.js → ImageUpload-CYQowgsH.js} +8 -8
- package/dist/{LinkButton-DNXBKGCn.js → LinkButton-De-YNclu.js} +1 -1
- package/dist/{ListRepeater-k1T9LJtE.js → ListRepeater-ayXiMxxo.js} +1 -1
- package/dist/{ManagementSettings-DHh2g_XJ.js → ManagementSettings-CueLn4v_.js} +6 -6
- package/dist/{ProjectView-DKXRpIC6.js → ProjectView-ByxaVBFb.js} +1 -1
- package/dist/{app-2jWXL_YL.js → app-BRc29qxl.js} +13 -9
- package/dist/app.js +1 -1
- package/dist/brand-core/src/brandkit.d.ts +1 -1
- package/dist/{brandkit-CqTsCHzt.js → brandkit-OeLZ05mv.js} +1 -1
- package/dist/client/merchant/src/app.d.ts +4 -0
- package/dist/{image-S7-2rbQS.js → image-D_Djf1PS.js} +7 -7
- package/dist/{index-CPs0rWCO.js → index-Bk6TOZrx.js} +15 -15
- package/dist/{index-CawZ03Z8.js → index-C1rSMuKA.js} +1 -1
- package/dist/index-C4vwWvn_.js +112 -0
- package/dist/{index-C6_vWPi0.js → index-D0LOMBBD.js} +27 -27
- package/dist/{main-CtWAQnuH.js → main-CzQ3NgS-.js} +3 -3
- package/dist/package.json +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index-BUEKCOG0.js +0 -112
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { resolveComponent as V, TransitionGroup as qn, defineComponent as se, nextTick as rn, h as ma, isRef as Qn, isReactive as eo, isProxy as to, toRaw as ao, ref as q, computed as ie, createElementBlock as Z, openBlock as N, Fragment as Le, renderList as vt, createElementVNode as I, createVNode as w, createBlock as ae, createCommentVNode as Q, toDisplayString as j, unref as v, withCtx as M, normalizeClass as ye, watch as tt, withDirectives as Gt, withModifiers as ba, vShow as Xt, createTextVNode as no, onMounted as ln, resolveDynamicComponent as Ma, mergeProps as oo, normalizeProps as ro, guardReactiveProps as io, normalizeStyle as lo, renderSlot as wa, provide as so, inject as co, markRaw as uo } from "vue";
|
|
2
|
-
import { T as po, u as Ge } from "./index-
|
|
2
|
+
import { T as po, u as Ge } from "./index-Bk6TOZrx.js";
|
|
3
3
|
import { defineStore as mo, storeToRefs as bo } from "pinia";
|
|
4
4
|
import { p as fo } from "./views-BDWw3w14.js";
|
|
5
|
-
import { A as go } from "./index-
|
|
5
|
+
import { A as go } from "./index-D0LOMBBD.js";
|
|
6
6
|
import { v as Ra } from "./v4-CKwdnpQf.js";
|
|
7
7
|
import { _ as ho } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
|
|
8
8
|
import { B as sn } from "./BaDivider-Cp9gfB4r.js";
|
|
9
9
|
import { useI18n as Ze, useCoreStore as We } from "@feedmepos/mf-common";
|
|
10
|
-
import { C as $a, _ as yo, a as vo } from "./main-
|
|
10
|
+
import { C as $a, _ as yo, a as vo } from "./main-CzQ3NgS-.js";
|
|
11
11
|
import { useDialog as To, components as xo, useSnackbar as Co } from "@feedmepos/ui-library";
|
|
12
12
|
import { useRouter as dn } from "vue-router";
|
|
13
|
-
import { u as Ia, a as _o, b as wo } from "./brandkit-
|
|
14
|
-
import { u as Ea } from "./index-
|
|
13
|
+
import { u as Ia, a as _o, b as wo } from "./brandkit-OeLZ05mv.js";
|
|
14
|
+
import { u as Ea } from "./index-C1rSMuKA.js";
|
|
15
15
|
import { K as Io, V as Eo } from "./vue-sonner-CBFYmm8_.js";
|
|
16
|
-
import { F as So, a as Ao } from "./app-
|
|
16
|
+
import { F as So, a as Ao } from "./app-BRc29qxl.js";
|
|
17
17
|
/**!
|
|
18
18
|
* Sortable 1.14.0
|
|
19
19
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -6605,7 +6605,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
|
|
|
6605
6605
|
}
|
|
6606
6606
|
async function g() {
|
|
6607
6607
|
var y;
|
|
6608
|
-
const f = `${"https://{slug}.
|
|
6608
|
+
const f = `${"https://{slug}.feedmedev.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((y = r.currentBusiness.value) == null ? void 0 : y.id)}`)}`;
|
|
6609
6609
|
l.promise(
|
|
6610
6610
|
async () => {
|
|
6611
6611
|
var x;
|
|
@@ -8171,7 +8171,7 @@ _t.toString = Oa.bind(null, function(t, e, a) {
|
|
|
8171
8171
|
const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full flex gap-8 justify-end items-center" }, _l = /* @__PURE__ */ se({
|
|
8172
8172
|
__name: "PreviewQrCode",
|
|
8173
8173
|
setup(t) {
|
|
8174
|
-
const e = q(), a = We(), n = Ge(), { t: o } = Ze(), r = q(!1), l = ie(() => `${`${"https://{slug}.
|
|
8174
|
+
const e = q(), a = We(), n = Ge(), { t: o } = Ze(), r = q(!1), l = ie(() => `${`${"https://{slug}.feedmedev.vip".replace("{slug}", `${a.currentBusiness.value.url ?? a.currentBusiness.value._id}`)}`}/preview/${n.state.selectedTemplate.templateId}`);
|
|
8175
8175
|
function i() {
|
|
8176
8176
|
Io.promise(navigator.clipboard.writeText(l.value), {
|
|
8177
8177
|
loading: o("brand.template.shareMenu.copying"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as y, ref as b, resolveComponent as w, createElementBlock as r, openBlock as s, createVNode as c, createCommentVNode as
|
|
2
|
-
import { r as g, I as h } from "./image-
|
|
1
|
+
import { defineComponent as y, ref as b, resolveComponent as w, createElementBlock as r, openBlock as s, createVNode as c, createCommentVNode as f, Fragment as C, createElementVNode as i, unref as u } from "vue";
|
|
2
|
+
import { r as g, I as h } from "./image-D_Djf1PS.js";
|
|
3
3
|
import { useCoreStore as I } from "@feedmepos/mf-common";
|
|
4
|
-
import "./main-
|
|
4
|
+
import "./main-CzQ3NgS-.js";
|
|
5
5
|
import { _ as $ } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
|
|
6
6
|
import { C as k } from "./CircularProgress-DdblYCtV.js";
|
|
7
7
|
import { v as F } from "./v4-CKwdnpQf.js";
|
|
@@ -22,12 +22,12 @@ const B = { class: "w-full h-[210px] relative" }, P = { class: "absolute z-[1] t
|
|
|
22
22
|
o
|
|
23
23
|
).then((m) => {
|
|
24
24
|
var p;
|
|
25
|
-
const l = `https://image.
|
|
25
|
+
const l = `https://image.feedmedev.cc/business/${a.currentBusiness.value._id}/${m.imagePath}`;
|
|
26
26
|
e.context.node.input(l);
|
|
27
27
|
const n = new Image();
|
|
28
28
|
(p = e.context) != null && p.ignoreUpdate || (n.onload = () => {
|
|
29
|
-
var
|
|
30
|
-
((
|
|
29
|
+
var d;
|
|
30
|
+
((d = e.context.node.at("$root")) == null ? void 0 : d._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
|
|
31
31
|
}), n.src = g(l);
|
|
32
32
|
}).finally(() => t.value = !1);
|
|
33
33
|
}
|
|
@@ -60,10 +60,10 @@ const B = { class: "w-full h-[210px] relative" }, P = { class: "absolute z-[1] t
|
|
|
60
60
|
class: "!text-[16px] text-fm-color-typo-white"
|
|
61
61
|
})
|
|
62
62
|
])
|
|
63
|
-
], 64)) :
|
|
63
|
+
], 64)) : f("", !0),
|
|
64
64
|
t.value ? (s(), r("div", z, [
|
|
65
65
|
c(u(k))
|
|
66
|
-
])) :
|
|
66
|
+
])) : f("", !0)
|
|
67
67
|
]);
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as I, ref as f, computed as k, onBeforeMount as L, resolveComponent as c, createBlock as v, openBlock as u, withCtx as m, createElementVNode as a, createVNode as r, createElementBlock as x, Fragment as M, renderList as F, toDisplayString as P, withModifiers as R } from "vue";
|
|
2
2
|
import { B as y } from "./BaDivider-Cp9gfB4r.js";
|
|
3
3
|
import { _ as W } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
|
|
4
|
-
import { u as $ } from "./index-
|
|
4
|
+
import { u as $ } from "./index-Bk6TOZrx.js";
|
|
5
5
|
import "@feedmepos/mf-common";
|
|
6
6
|
const j = {
|
|
7
7
|
key: 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, resolveComponent as y, createBlock as s, openBlock as c, unref as u, withCtx as i, createElementBlock as m, Fragment as x, renderList as g, createElementVNode as p, createVNode as n, resolveDynamicComponent as F } from "vue";
|
|
2
|
-
import { F as f } from "./app-
|
|
2
|
+
import { F as f } from "./app-BRc29qxl.js";
|
|
3
3
|
const h = { class: "flex justify-end gap-4 items-center w-full py-16 px-12 border-b" }, z = { class: "flex flex-col gap-4 w-full p-12" }, I = /* @__PURE__ */ b({
|
|
4
4
|
__name: "ListRepeater",
|
|
5
5
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as C, ref as y, computed as S, watch as $, resolveComponent as d, createElementBlock as k, openBlock as g, createElementVNode as o, createVNode as u, toDisplayString as _, unref as i, createBlock as F, withCtx as U } from "vue";
|
|
2
2
|
import { useCoreStore as P, useI18n as V } from "@feedmepos/mf-common";
|
|
3
|
-
import { B as h } from "./index-
|
|
3
|
+
import { B as h } from "./index-C4vwWvn_.js";
|
|
4
4
|
import { K as q } from "./vue-sonner-CBFYmm8_.js";
|
|
5
|
-
import { r as I, I as T } from "./image-
|
|
5
|
+
import { r as I, I as T } from "./image-D_Djf1PS.js";
|
|
6
6
|
import { useSnackbar as A } from "@feedmepos/ui-library";
|
|
7
7
|
const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
|
|
8
8
|
"brand",
|
|
@@ -510,12 +510,12 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
|
|
|
510
510
|
url: "",
|
|
511
511
|
thumbnail: ""
|
|
512
512
|
}), x = S(
|
|
513
|
-
() => "https://{slug}.
|
|
513
|
+
() => "https://{slug}.feedmedev.vip".replace("https://{slug}", "")
|
|
514
514
|
);
|
|
515
515
|
function B() {
|
|
516
516
|
var t, e;
|
|
517
517
|
navigator.clipboard.writeText(
|
|
518
|
-
"https://{slug}.
|
|
518
|
+
"https://{slug}.feedmedev.vip".replace(
|
|
519
519
|
"{slug}",
|
|
520
520
|
((t = s.currentBusiness.value) == null ? void 0 : t.url) ?? ((e = s.currentBusiness.value) == null ? void 0 : e._id)
|
|
521
521
|
)
|
|
@@ -574,9 +574,9 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
|
|
|
574
574
|
await h.updateBusinessProfile(s.currentBusiness.value._id, {
|
|
575
575
|
name: a.value.name,
|
|
576
576
|
url: a.value.url,
|
|
577
|
-
thumbnail: `https://image.
|
|
577
|
+
thumbnail: `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`,
|
|
578
578
|
coverPhoto: s.currentBusiness.value.coverPhoto
|
|
579
|
-
}), a.value.thumbnail = `https://image.
|
|
579
|
+
}), a.value.thumbnail = `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`;
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
return $(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, createElementBlock as D, openBlock as I, normalizeClass as m, createElementVNode as E, toDisplayString as C, ref as x, computed as J, watch as K, resolveComponent as l, unref as h, Fragment as v, renderList as W, createVNode as B, createCommentVNode as s, createBlock as r, withCtx as P, h as L } from "vue";
|
|
2
|
-
import { u as Z } from "./index-
|
|
2
|
+
import { u as Z } from "./index-Bk6TOZrx.js";
|
|
3
3
|
import { useCoreStore as q, useI18n as X } from "@feedmepos/mf-common";
|
|
4
4
|
import { p as y } from "./views-BDWw3w14.js";
|
|
5
5
|
import { useRouter as b } from "vue-router";
|
|
@@ -4502,6 +4502,8 @@ const wn = {
|
|
|
4502
4502
|
"zh-CN": "简体中文",
|
|
4503
4503
|
"zh-TW": "繁體中文",
|
|
4504
4504
|
"th-TH": "ไทย",
|
|
4505
|
+
"ko-KR": "한국어",
|
|
4506
|
+
"vi-VN": "Tiếng Việt",
|
|
4505
4507
|
selectLanguage: "选择语言"
|
|
4506
4508
|
},
|
|
4507
4509
|
member: {
|
|
@@ -5034,6 +5036,8 @@ const wn = {
|
|
|
5034
5036
|
"zh-CN": "簡體中文",
|
|
5035
5037
|
"zh-TW": "繁體中文",
|
|
5036
5038
|
"th-TH": "ไทย",
|
|
5039
|
+
"ko-KR": "한국어",
|
|
5040
|
+
"vi-VN": "Tiếng Việt",
|
|
5037
5041
|
selectLanguage: "選擇語言"
|
|
5038
5042
|
},
|
|
5039
5043
|
member: {
|
|
@@ -7105,12 +7109,12 @@ const wn = {
|
|
|
7105
7109
|
{
|
|
7106
7110
|
path: "/",
|
|
7107
7111
|
name: "brandkit",
|
|
7108
|
-
component: H(() => import("./BrandkitView-
|
|
7112
|
+
component: H(() => import("./BrandkitView-DVGcxme0.js"))
|
|
7109
7113
|
},
|
|
7110
7114
|
{
|
|
7111
7115
|
path: "/projects",
|
|
7112
7116
|
name: "projects",
|
|
7113
|
-
component: H(() => import("./ProjectView-
|
|
7117
|
+
component: H(() => import("./ProjectView-ByxaVBFb.js"))
|
|
7114
7118
|
},
|
|
7115
7119
|
{
|
|
7116
7120
|
path: "/builder",
|
|
@@ -7120,7 +7124,7 @@ const wn = {
|
|
|
7120
7124
|
path: ":templateId(.*)*",
|
|
7121
7125
|
name: "builder",
|
|
7122
7126
|
component: H(
|
|
7123
|
-
() => import("./BuilderView-
|
|
7127
|
+
() => import("./BuilderView-XZdpUr77.js")
|
|
7124
7128
|
)
|
|
7125
7129
|
}
|
|
7126
7130
|
]
|
|
@@ -7135,14 +7139,14 @@ const wn = {
|
|
|
7135
7139
|
path: "assets",
|
|
7136
7140
|
name: "settings-assets",
|
|
7137
7141
|
component: H(
|
|
7138
|
-
() => import("./AssetsSettings-
|
|
7142
|
+
() => import("./AssetsSettings-DhprCc4v.js")
|
|
7139
7143
|
)
|
|
7140
7144
|
},
|
|
7141
7145
|
{
|
|
7142
7146
|
path: "management",
|
|
7143
7147
|
name: "settings-management",
|
|
7144
7148
|
component: H(
|
|
7145
|
-
() => import("./ManagementSettings-
|
|
7149
|
+
() => import("./ManagementSettings-CueLn4v_.js")
|
|
7146
7150
|
)
|
|
7147
7151
|
}
|
|
7148
7152
|
]
|
|
@@ -11821,7 +11825,7 @@ const Ac = (e) => {
|
|
|
11821
11825
|
),
|
|
11822
11826
|
BaListRepeater: K(
|
|
11823
11827
|
H(
|
|
11824
|
-
() => import("./ListRepeater-
|
|
11828
|
+
() => import("./ListRepeater-ayXiMxxo.js")
|
|
11825
11829
|
)
|
|
11826
11830
|
),
|
|
11827
11831
|
BaTextStyleList: K(
|
|
@@ -11841,13 +11845,13 @@ const Ac = (e) => {
|
|
|
11841
11845
|
),
|
|
11842
11846
|
BaImageUpload: K(
|
|
11843
11847
|
H(
|
|
11844
|
-
() => import("./ImageUpload-
|
|
11848
|
+
() => import("./ImageUpload-CYQowgsH.js")
|
|
11845
11849
|
),
|
|
11846
11850
|
{ props: ["ignoreUpdate"] }
|
|
11847
11851
|
),
|
|
11848
11852
|
BaLinkButton: K(
|
|
11849
11853
|
H(
|
|
11850
|
-
() => import("./LinkButton-
|
|
11854
|
+
() => import("./LinkButton-De-YNclu.js")
|
|
11851
11855
|
)
|
|
11852
11856
|
),
|
|
11853
11857
|
BaSwitch: K(
|
|
@@ -11869,7 +11873,7 @@ const Ac = (e) => {
|
|
|
11869
11873
|
"th-TH": { ...Dn, ...yr },
|
|
11870
11874
|
"ko-KR": { ...Bn, ...wr },
|
|
11871
11875
|
"vi-VN": { ...zn, ...Mr }
|
|
11872
|
-
}, Pc = H(() => import("./App-
|
|
11876
|
+
}, Pc = H(() => import("./App-DpN-3RMq.js"));
|
|
11873
11877
|
export {
|
|
11874
11878
|
hn as F,
|
|
11875
11879
|
pn as a,
|
package/dist/app.js
CHANGED
|
@@ -1148,6 +1148,8 @@ export declare const i18nMessages: {
|
|
|
1148
1148
|
"zh-CN": string;
|
|
1149
1149
|
"zh-TW": string;
|
|
1150
1150
|
"th-TH": string;
|
|
1151
|
+
"ko-KR": string;
|
|
1152
|
+
"vi-VN": string;
|
|
1151
1153
|
selectLanguage: string;
|
|
1152
1154
|
};
|
|
1153
1155
|
member: {
|
|
@@ -2285,6 +2287,8 @@ export declare const i18nMessages: {
|
|
|
2285
2287
|
"zh-CN": string;
|
|
2286
2288
|
"zh-TW": string;
|
|
2287
2289
|
"th-TH": string;
|
|
2290
|
+
"ko-KR": string;
|
|
2291
|
+
"vi-VN": string;
|
|
2288
2292
|
selectLanguage: string;
|
|
2289
2293
|
};
|
|
2290
2294
|
member: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as r, a as p } from "./index-
|
|
1
|
+
import { H as r, a as p } from "./index-D0LOMBBD.js";
|
|
2
2
|
const i = () => p().PWA_ICON_SERVICE_BACKEND;
|
|
3
|
-
async function
|
|
3
|
+
async function d(e, t, a) {
|
|
4
4
|
const n = new FormData();
|
|
5
5
|
return n.append("file", a), (await r.Put(
|
|
6
|
-
"https://api.
|
|
6
|
+
"https://api.feedmedev.vip",
|
|
7
7
|
`/image/${e}/${t}`,
|
|
8
8
|
{
|
|
9
9
|
headers: {
|
|
@@ -13,9 +13,9 @@ async function s(e, t, a) {
|
|
|
13
13
|
}
|
|
14
14
|
)).data;
|
|
15
15
|
}
|
|
16
|
-
async function
|
|
16
|
+
async function s(e, t) {
|
|
17
17
|
return (await r.Delete(
|
|
18
|
-
"https://api.
|
|
18
|
+
"https://api.feedmedev.vip",
|
|
19
19
|
`/image/${e}/${t}`
|
|
20
20
|
)).data;
|
|
21
21
|
}
|
|
@@ -29,8 +29,8 @@ async function o(e, t) {
|
|
|
29
29
|
})).data;
|
|
30
30
|
}
|
|
31
31
|
const f = {
|
|
32
|
-
uploadImage:
|
|
33
|
-
deleteImage:
|
|
32
|
+
uploadImage: d,
|
|
33
|
+
deleteImage: s,
|
|
34
34
|
uploadAppIcon: o
|
|
35
35
|
};
|
|
36
36
|
function u(e) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { H as d } from "./index-
|
|
1
|
+
import { H as d } from "./index-D0LOMBBD.js";
|
|
2
2
|
import { defineStore as w } from "pinia";
|
|
3
3
|
import { ref as y } from "vue";
|
|
4
4
|
import { v as I } from "./v4-CKwdnpQf.js";
|
|
5
5
|
async function g(e) {
|
|
6
6
|
return (await d.Get(
|
|
7
|
-
"https://api.
|
|
7
|
+
"https://api.feedmedev.vip",
|
|
8
8
|
`/template/${e}`
|
|
9
9
|
)).data;
|
|
10
10
|
}
|
|
11
11
|
async function A(e, l, p) {
|
|
12
12
|
return (await d.Get(
|
|
13
|
-
"https://api.
|
|
13
|
+
"https://api.feedmedev.vip",
|
|
14
14
|
`/template/${e}/${l}/${p}`
|
|
15
15
|
)).data;
|
|
16
16
|
}
|
|
17
17
|
async function P(e, l, p, m) {
|
|
18
18
|
return (await d.Put(
|
|
19
|
-
"https://api.
|
|
19
|
+
"https://api.feedmedev.vip",
|
|
20
20
|
`/template/${e}/${l}/${p.templateId}`,
|
|
21
21
|
{
|
|
22
22
|
data: {
|
|
@@ -29,7 +29,7 @@ async function P(e, l, p, m) {
|
|
|
29
29
|
}
|
|
30
30
|
async function M(e, l, p) {
|
|
31
31
|
return (await d.Put(
|
|
32
|
-
"https://api.
|
|
32
|
+
"https://api.feedmedev.vip",
|
|
33
33
|
`/template/${e}/active${p ? `/${p}` : ""}`,
|
|
34
34
|
{
|
|
35
35
|
data: {
|
|
@@ -40,19 +40,19 @@ async function M(e, l, p) {
|
|
|
40
40
|
}
|
|
41
41
|
async function b(e, l) {
|
|
42
42
|
return (await d.Get(
|
|
43
|
-
"https://api.
|
|
43
|
+
"https://api.feedmedev.vip",
|
|
44
44
|
`/template/${e}/active${l ? `/${l}` : ""}`
|
|
45
45
|
)).data;
|
|
46
46
|
}
|
|
47
47
|
async function U(e, l, p) {
|
|
48
48
|
return await d.Head(
|
|
49
|
-
"https://api.
|
|
49
|
+
"https://api.feedmedev.vip",
|
|
50
50
|
`/template/${e}/${l}/${p}`
|
|
51
51
|
).then((c) => c.status === 200).catch(() => !1);
|
|
52
52
|
}
|
|
53
53
|
async function B(e, l, p) {
|
|
54
54
|
return (await d.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 B(e, l, p) {
|
|
|
63
63
|
}
|
|
64
64
|
async function x(e, l, p) {
|
|
65
65
|
return (await d.Delete(
|
|
66
|
-
"https://api.
|
|
66
|
+
"https://api.feedmedev.vip",
|
|
67
67
|
`/template/${e}/${l}/${p}`
|
|
68
68
|
)).data;
|
|
69
69
|
}
|
|
@@ -120,7 +120,7 @@ const i = {
|
|
|
120
120
|
t
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
async function
|
|
123
|
+
async function v(a, t) {
|
|
124
124
|
i.setMainPageTemplateId(
|
|
125
125
|
a,
|
|
126
126
|
e.value.selectedTemplate.templateId,
|
|
@@ -129,7 +129,7 @@ const i = {
|
|
|
129
129
|
e.value.activeTemplateId = e.value.selectedTemplate.templateId;
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function o(a = {}) {
|
|
133
133
|
let t = "Untitled", s = 2;
|
|
134
134
|
e.value.allTemplates.forEach((r) => {
|
|
135
135
|
if (!r.templateAlias.startsWith("Untitled")) return;
|
|
@@ -145,7 +145,7 @@ const i = {
|
|
|
145
145
|
};
|
|
146
146
|
e.value.allTemplates.push(n), e.value.selectedTemplate = n;
|
|
147
147
|
}
|
|
148
|
-
async function
|
|
148
|
+
async function f(a, t, s) {
|
|
149
149
|
await i.renameTemplate(a, t, s).then(() => {
|
|
150
150
|
var n;
|
|
151
151
|
e.value.allTemplates = e.value.allTemplates.map((r) => r.templateId === t ? {
|
|
@@ -185,9 +185,9 @@ const i = {
|
|
|
185
185
|
getMainTemplateId: m,
|
|
186
186
|
setSelectedTemplate: c,
|
|
187
187
|
saveTemplate: T,
|
|
188
|
-
setMainPageTemplate:
|
|
189
|
-
addNewTemplate:
|
|
190
|
-
renameTemplate:
|
|
188
|
+
setMainPageTemplate: v,
|
|
189
|
+
addNewTemplate: o,
|
|
190
|
+
renameTemplate: f,
|
|
191
191
|
deleteTemplate: h,
|
|
192
192
|
unpublishTemplate: $
|
|
193
193
|
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { H as a, a as i } from "./index-D0LOMBBD.js";
|
|
2
|
+
const o = () => i().PORTAL_V2_BACKEND, d = () => i().LICENSE_BACKEND;
|
|
3
|
+
async function p(t) {
|
|
4
|
+
return (await a.Get(
|
|
5
|
+
"https://api.feedmedev.vip",
|
|
6
|
+
`/short-url/${t}`
|
|
7
|
+
)).data;
|
|
8
|
+
}
|
|
9
|
+
async function c(t, e, s) {
|
|
10
|
+
return await a.Post(
|
|
11
|
+
"https://api.feedmedev.vip",
|
|
12
|
+
"/short-url",
|
|
13
|
+
{
|
|
14
|
+
data: {
|
|
15
|
+
slug: t,
|
|
16
|
+
oldSlug: e,
|
|
17
|
+
type: "BUSINESS",
|
|
18
|
+
businessId: s
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
).then((n) => n.data).catch((n) => {
|
|
22
|
+
var r;
|
|
23
|
+
throw (r = n.response) == null ? void 0 : r.data;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
async function u(t) {
|
|
27
|
+
return (await a.Get(
|
|
28
|
+
"https://api.feedmedev.vip",
|
|
29
|
+
`/metadata/${t}/config`
|
|
30
|
+
)).data;
|
|
31
|
+
}
|
|
32
|
+
async function f(t, e, s) {
|
|
33
|
+
return (await a.Post(
|
|
34
|
+
"https://api.feedmedev.vip",
|
|
35
|
+
`/metadata/${t}/config`,
|
|
36
|
+
{
|
|
37
|
+
data: {
|
|
38
|
+
name: e,
|
|
39
|
+
backgroundColor: "#ffffff",
|
|
40
|
+
country: s
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
)).data;
|
|
44
|
+
}
|
|
45
|
+
async function m(t) {
|
|
46
|
+
return (await a.Get(
|
|
47
|
+
"https://api.feedmedev.vip",
|
|
48
|
+
`/metadata/${t}/brandkit`
|
|
49
|
+
)).data;
|
|
50
|
+
}
|
|
51
|
+
async function h(t, e) {
|
|
52
|
+
return (await a.Post(
|
|
53
|
+
"https://api.feedmedev.vip",
|
|
54
|
+
`/metadata/${t}/brandkit`,
|
|
55
|
+
{
|
|
56
|
+
data: e
|
|
57
|
+
}
|
|
58
|
+
)).data;
|
|
59
|
+
}
|
|
60
|
+
async function l(t, e) {
|
|
61
|
+
return (await a.Get(
|
|
62
|
+
"https://api.feedmedev.vip",
|
|
63
|
+
`/metadata/${t}/brandkit/template-history/${e}`
|
|
64
|
+
)).data;
|
|
65
|
+
}
|
|
66
|
+
async function v(t, e, s) {
|
|
67
|
+
return (await a.Post(
|
|
68
|
+
"https://api.feedmedev.vip",
|
|
69
|
+
`/metadata/${t}/brandkit/template-restore/${e}/${s}`,
|
|
70
|
+
{}
|
|
71
|
+
)).data;
|
|
72
|
+
}
|
|
73
|
+
async function y(t, e) {
|
|
74
|
+
return (await a.Delete(
|
|
75
|
+
"https://api.feedmedev.vip",
|
|
76
|
+
`/metadata/${t}/brandkit/template-history/${e}`
|
|
77
|
+
)).data;
|
|
78
|
+
}
|
|
79
|
+
async function $(t, e) {
|
|
80
|
+
return await a.Put(
|
|
81
|
+
o(),
|
|
82
|
+
`businesses/${t}/profile`,
|
|
83
|
+
{
|
|
84
|
+
data: e
|
|
85
|
+
}
|
|
86
|
+
).catch((n) => {
|
|
87
|
+
var r;
|
|
88
|
+
throw (r = n.response) == null ? void 0 : r.data;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
async function w(t) {
|
|
92
|
+
return await a.Get(
|
|
93
|
+
d(),
|
|
94
|
+
`api/business/${t}/feature/miniprogram`
|
|
95
|
+
).then((e) => e.data).catch(() => !1);
|
|
96
|
+
}
|
|
97
|
+
const g = {
|
|
98
|
+
getGlobalSlug: p,
|
|
99
|
+
setShortUrl: c,
|
|
100
|
+
getBusinessMetadata: u,
|
|
101
|
+
setBusinessMetadata: f,
|
|
102
|
+
getBusinessBrandkit: m,
|
|
103
|
+
setBusinessBrandkit: h,
|
|
104
|
+
getTemplateHistory: l,
|
|
105
|
+
restoreTemplateVersion: v,
|
|
106
|
+
clearTemplateHistory: y,
|
|
107
|
+
updateBusinessProfile: $,
|
|
108
|
+
getBusinessPremiumStatus: w
|
|
109
|
+
};
|
|
110
|
+
export {
|
|
111
|
+
g as B
|
|
112
|
+
};
|