@feedmepos/mf-brand-app-builder 0.5.18 → 0.5.19-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-CKxXz-yv.js → App-djqaTpJK.js} +7 -7
- package/dist/{AssetsSettings-D7stEXBP.js → AssetsSettings-DlxVE_kh.js} +40 -39
- package/dist/{BrandkitView-CGFsc8gN.js → BrandkitView-okuZYwD5.js} +2 -2
- package/dist/{BuilderView-h-AD0K_z.js → BuilderView-BYnQdLnw.js} +6 -6
- package/dist/{ImageUpload-Bu1QY9Tu.js → ImageUpload-hoE0aTOn.js} +7 -7
- package/dist/{LinkButton-DS5DH9B8.js → LinkButton-BGVmggik.js} +1 -1
- package/dist/{ListRepeater-Bjq_VTKB.js → ListRepeater-DCqV0LTM.js} +1 -1
- package/dist/{ManagementSettings-DWh1pA_2.js → ManagementSettings-CuQCt7cj.js} +14 -14
- package/dist/{ProjectView-BweZwCAj.js → ProjectView-D9Nlnspn.js} +1 -1
- package/dist/{app-DKN3IiyF.js → app-CAYGmzf1.js} +9 -9
- package/dist/app.js +1 -1
- package/dist/client/merchant/src/api/index.d.ts +2 -0
- package/dist/{image-BYlGZH0E.js → image-Bi_ML0ft.js} +15 -14
- package/dist/{index-DBOAICnu.js → index-BxfIC7wL.js} +15 -15
- package/dist/{index-BvuwuHni.js → index-D9RorkCV.js} +1 -1
- package/dist/{index-bSKZrhdP.js → index-aAXVQp3l.js} +19 -19
- package/dist/{index-DDahVJiF.js → index-nYUFS3mj.js} +185 -184
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as gt, resolveComponent as oe, openBlock as Ye, createElementBlock as Ze, createElementVNode as E, createVNode as I, withCtx as Ve, normalizeStyle as Qt, unref as Kt, createCommentVNode as Re, toDisplayString as or, ref as sr, watch as Lr, withDirectives as Dr, vShow as Fr, Fragment as Jt, Transition as jt } from "vue";
|
|
2
|
-
import { B as $t } from "./index-
|
|
2
|
+
import { B as $t } from "./index-aAXVQp3l.js";
|
|
3
3
|
import { K as ea } from "./ColorPicker-CHzKbuCD.js";
|
|
4
|
-
import { u as ra } from "./index-
|
|
4
|
+
import { u as ra } from "./index-D9RorkCV.js";
|
|
5
5
|
import { useCoreStore as ta } from "@feedmepos/mf-common";
|
|
6
6
|
import { u as aa } from "./index-DzaJbB6y.js";
|
|
7
7
|
import { _ as na } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { resolveComponent as Y, TransitionGroup as kn, defineComponent as ie, h as Kt, nextTick as Za, isRef as Rn, isReactive as Ln, isProxy as Mn, toRaw as $n, ref as q, computed as te, openBlock as F, createElementBlock as M, Fragment as Ie, renderList as nt, unref as A, createElementVNode as N, toDisplayString as Ee, createVNode as I, withCtx as k, createBlock as J, createCommentVNode as W, watch as $e, normalizeClass as ue, withDirectives as Ot, withModifiers as qt, vShow as Pt, createTextVNode as Zn, onMounted as Ua, resolveDynamicComponent as _a, mergeProps as Un, normalizeProps as Vn, guardReactiveProps as Yn, normalizeStyle as Hn, renderSlot as sa, provide as zn, inject as jn, markRaw as Wn } from "vue";
|
|
2
|
-
import { T as Xn, u as Oe } from "./index-
|
|
2
|
+
import { T as Xn, u as Oe } from "./index-BxfIC7wL.js";
|
|
3
3
|
import { defineStore as Gn, storeToRefs as Jn } from "pinia";
|
|
4
4
|
import { p as Kn } from "./views-BDWw3w14.js";
|
|
5
|
-
import { a as qn } from "./index-
|
|
5
|
+
import { a as qn } from "./index-nYUFS3mj.js";
|
|
6
6
|
import { v as xa } from "./v4-ANoOI1Qw.js";
|
|
7
7
|
import { _ as Qn } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
|
|
8
8
|
import { B as Va } from "./BaDivider-DWZv3fqi.js";
|
|
@@ -11,9 +11,9 @@ import { useCoreStore as Ne } from "@feedmepos/mf-common";
|
|
|
11
11
|
import { useDialog as ao, components as no, useSnackbar as oo } from "@feedmepos/ui-library";
|
|
12
12
|
import { useRouter as Ya } from "vue-router";
|
|
13
13
|
import { u as ca } from "./index-DzaJbB6y.js";
|
|
14
|
-
import { u as da } from "./index-
|
|
14
|
+
import { u as da } from "./index-D9RorkCV.js";
|
|
15
15
|
import { K as io, V as ro } from "./vue-sonner-PX6Req0V.js";
|
|
16
|
-
import { F as lo, a as so } from "./app-
|
|
16
|
+
import { F as lo, a as so } from "./app-CAYGmzf1.js";
|
|
17
17
|
const {
|
|
18
18
|
Axios: Zl,
|
|
19
19
|
AxiosError: co,
|
|
@@ -6044,7 +6044,7 @@ const Si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
6044
6044
|
}
|
|
6045
6045
|
async function h() {
|
|
6046
6046
|
var v;
|
|
6047
|
-
const T = `${"https://{slug}.
|
|
6047
|
+
const T = `${"https://{slug}.feedmedev.vip".replace("{slug}", `${i.currentBusiness.value.url ?? ((v = i.currentBusiness.value) == null ? void 0 : v.id)}`)}`;
|
|
6048
6048
|
r.promise(
|
|
6049
6049
|
async () => {
|
|
6050
6050
|
var b;
|
|
@@ -7606,7 +7606,7 @@ lt.toString = va.bind(null, function(t, e, a) {
|
|
|
7606
7606
|
const Or = { class: "flex items-center justify-center" }, Pr = { class: "w-full flex gap-8 justify-end items-center" }, kr = /* @__PURE__ */ ie({
|
|
7607
7607
|
__name: "PreviewQrCode",
|
|
7608
7608
|
setup(t) {
|
|
7609
|
-
const e = q(), a = Ne(), n = Oe(), o = q(!1), i = te(() => `${`${"https://{slug}.
|
|
7609
|
+
const e = q(), a = Ne(), n = Oe(), o = q(!1), i = te(() => `${`${"https://{slug}.feedmedev.vip".replace("{slug}", `${a.currentBusiness.value.url ?? a.currentBusiness.value._id}`)}`}/preview/${n.state.selectedTemplate.templateId}`);
|
|
7610
7610
|
function r() {
|
|
7611
7611
|
io.promise(navigator.clipboard.writeText(i.value), {
|
|
7612
7612
|
loading: "Copying...",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as y, ref as b, resolveComponent as w, openBlock as r, createElementBlock as s, createVNode as c, Fragment as C, createElementVNode as i, unref as u, createCommentVNode as
|
|
2
|
-
import { r as g, I as h } from "./image-
|
|
1
|
+
import { defineComponent as y, ref as b, resolveComponent as w, openBlock as r, createElementBlock as s, createVNode as c, Fragment as C, createElementVNode as i, unref as u, createCommentVNode as f } from "vue";
|
|
2
|
+
import { r as g, I as h } from "./image-Bi_ML0ft.js";
|
|
3
3
|
import { useCoreStore as I } from "@feedmepos/mf-common";
|
|
4
4
|
import "./main-pKSbpQEA.js";
|
|
5
5
|
import { _ as $ } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.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 ? (r(), s("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, openBlock as u, createBlock as v, withCtx as m, createElementBlock as x, createElementVNode as a, toDisplayString as P, createVNode as r, withModifiers as R, Fragment as M, renderList as F } from "vue";
|
|
2
2
|
import { B as y } from "./BaDivider-DWZv3fqi.js";
|
|
3
3
|
import { _ as W } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
|
|
4
|
-
import { u as $ } from "./index-
|
|
4
|
+
import { u as $ } from "./index-BxfIC7wL.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, openBlock as c, createBlock as s, 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-CAYGmzf1.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
|
-
import { defineComponent as j, ref as w, computed as z, watch as S, resolveComponent as m, openBlock as
|
|
1
|
+
import { defineComponent as j, ref as w, computed as z, watch as S, resolveComponent as m, openBlock as p, createElementBlock as y, createElementVNode as i, createVNode as l, unref as o, createBlock as F, withCtx as $, toDisplayString as C } from "vue";
|
|
2
2
|
import { useCoreStore as U } from "@feedmepos/mf-common";
|
|
3
|
-
import { B as g } from "./index-
|
|
3
|
+
import { B as g } from "./index-aAXVQp3l.js";
|
|
4
4
|
import { K as P } from "./vue-sonner-PX6Req0V.js";
|
|
5
|
-
import { r as V, I as q } from "./image-
|
|
5
|
+
import { r as V, I as q } from "./image-Bi_ML0ft.js";
|
|
6
6
|
import { useSnackbar as A } from "@feedmepos/ui-library";
|
|
7
7
|
const I = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), R = [
|
|
8
8
|
"brand",
|
|
@@ -505,17 +505,17 @@ const I = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), R = [
|
|
|
505
505
|
], L = { class: "w-full flex flex-col gap-40" }, T = { class: "flex flex-col gap-24" }, E = { class: "w-full flex items-center justify-between h-[36px]" }, D = { class: "w-full flex gap-32" }, K = { class: "relative shrink-0 h-[100px] w-[100px]" }, M = ["src"], N = { class: "absolute -top-8 -right-8 rounded-full h-32 w-32 border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white flex justify-center items-center" }, O = { class: "w-full flex flex-col gap-24 max-w-[400px]" }, G = { class: "text-fm-color-typo-secondary" }, ee = /* @__PURE__ */ j({
|
|
506
506
|
__name: "ManagementSettings",
|
|
507
507
|
setup(H) {
|
|
508
|
-
const s = U(), h = A(),
|
|
508
|
+
const s = U(), h = A(), d = w(!0), a = w({
|
|
509
509
|
name: "",
|
|
510
510
|
url: "",
|
|
511
511
|
thumbnail: ""
|
|
512
512
|
}), k = z(
|
|
513
|
-
() => "https://{slug}.
|
|
513
|
+
() => "https://{slug}.feedmedev.vip".replace("https://{slug}", "")
|
|
514
514
|
);
|
|
515
515
|
function _() {
|
|
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 I = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), R = [
|
|
|
574
574
|
await g.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 S(
|
|
@@ -589,23 +589,23 @@ const I = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), R = [
|
|
|
589
589
|
), (t, e) => {
|
|
590
590
|
var v, b;
|
|
591
591
|
const r = m("FmButton"), u = m("FmAvatar"), c = m("FmIcon"), f = m("FmTextField");
|
|
592
|
-
return
|
|
592
|
+
return p(), y("div", L, [
|
|
593
593
|
i("div", T, [
|
|
594
594
|
i("div", E, [
|
|
595
595
|
e[4] || (e[4] = i("h2", { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, " Business details ", -1)),
|
|
596
596
|
l(r, {
|
|
597
|
-
disabled:
|
|
597
|
+
disabled: d.value,
|
|
598
598
|
label: "Save",
|
|
599
599
|
onClick: x
|
|
600
600
|
}, null, 8, ["disabled"])
|
|
601
601
|
]),
|
|
602
602
|
i("div", D, [
|
|
603
603
|
i("div", K, [
|
|
604
|
-
a.value.thumbnail ? (
|
|
604
|
+
a.value.thumbnail ? (p(), y("img", {
|
|
605
605
|
key: 0,
|
|
606
606
|
class: "h-full w-full rounded-full",
|
|
607
607
|
src: o(V)(a.value.thumbnail)
|
|
608
|
-
}, null, 8, M)) : (
|
|
608
|
+
}, null, 8, M)) : (p(), F(u, {
|
|
609
609
|
key: 1,
|
|
610
610
|
name: ((v = o(s).currentBusiness.value) == null ? void 0 : v.name) ?? "",
|
|
611
611
|
class: "h-full w-full !fm-typo-en-title-md-600 bg-fm-color-primary-oats text-fm-color-primary"
|
|
@@ -632,7 +632,7 @@ const I = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), R = [
|
|
|
632
632
|
modelValue: a.value.name,
|
|
633
633
|
"onUpdate:modelValue": [
|
|
634
634
|
e[0] || (e[0] = (n) => a.value.name = n),
|
|
635
|
-
e[1] || (e[1] = (n) =>
|
|
635
|
+
e[1] || (e[1] = (n) => d.value = !1)
|
|
636
636
|
]
|
|
637
637
|
}, null, 8, ["modelValue"]),
|
|
638
638
|
l(f, {
|
|
@@ -642,7 +642,7 @@ const I = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), R = [
|
|
|
642
642
|
modelValue: a.value.url,
|
|
643
643
|
"onUpdate:modelValue": [
|
|
644
644
|
e[2] || (e[2] = (n) => a.value.url = n),
|
|
645
|
-
e[3] || (e[3] = (n) =>
|
|
645
|
+
e[3] || (e[3] = (n) => d.value = !1)
|
|
646
646
|
],
|
|
647
647
|
rules: [
|
|
648
648
|
(n) => !n || o(I).test(n) || "Min 6 characters, alphanumeric only",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Ee, openBlock as R, createElementBlock as U, normalizeClass as he, createElementVNode as A, toDisplayString as se, ref as $, computed as Qe, watch as de, resolveComponent as X, Fragment as Oe, renderList as De, createVNode as K, createCommentVNode as k, createBlock as L, unref as ae, withCtx as ee, h as ue } from "vue";
|
|
2
|
-
import { u as Te } from "./index-
|
|
2
|
+
import { u as Te } from "./index-BxfIC7wL.js";
|
|
3
3
|
import { useCoreStore as je } from "@feedmepos/mf-common";
|
|
4
4
|
import { p as re } from "./views-BDWw3w14.js";
|
|
5
5
|
import { useRouter as Ae } from "vue-router";
|
|
@@ -3,12 +3,12 @@ const vo = [
|
|
|
3
3
|
{
|
|
4
4
|
path: "/",
|
|
5
5
|
name: "brandkit",
|
|
6
|
-
component: L(() => import("./BrandkitView-
|
|
6
|
+
component: L(() => import("./BrandkitView-okuZYwD5.js"))
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
path: "/projects",
|
|
10
10
|
name: "projects",
|
|
11
|
-
component: L(() => import("./ProjectView-
|
|
11
|
+
component: L(() => import("./ProjectView-D9Nlnspn.js"))
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
path: "/builder",
|
|
@@ -18,7 +18,7 @@ const vo = [
|
|
|
18
18
|
path: ":templateId(.*)*",
|
|
19
19
|
name: "builder",
|
|
20
20
|
component: L(
|
|
21
|
-
() => import("./BuilderView-
|
|
21
|
+
() => import("./BuilderView-BYnQdLnw.js")
|
|
22
22
|
)
|
|
23
23
|
}
|
|
24
24
|
]
|
|
@@ -33,14 +33,14 @@ const vo = [
|
|
|
33
33
|
path: "assets",
|
|
34
34
|
name: "settings-assets",
|
|
35
35
|
component: L(
|
|
36
|
-
() => import("./AssetsSettings-
|
|
36
|
+
() => import("./AssetsSettings-DlxVE_kh.js")
|
|
37
37
|
)
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
path: "management",
|
|
41
41
|
name: "settings-management",
|
|
42
42
|
component: L(
|
|
43
|
-
() => import("./ManagementSettings-
|
|
43
|
+
() => import("./ManagementSettings-CuQCt7cj.js")
|
|
44
44
|
)
|
|
45
45
|
}
|
|
46
46
|
]
|
|
@@ -4706,7 +4706,7 @@ const go = (e) => {
|
|
|
4706
4706
|
),
|
|
4707
4707
|
BaListRepeater: U(
|
|
4708
4708
|
L(
|
|
4709
|
-
() => import("./ListRepeater-
|
|
4709
|
+
() => import("./ListRepeater-DCqV0LTM.js")
|
|
4710
4710
|
)
|
|
4711
4711
|
),
|
|
4712
4712
|
BaTextStyleList: U(
|
|
@@ -4726,13 +4726,13 @@ const go = (e) => {
|
|
|
4726
4726
|
),
|
|
4727
4727
|
BaImageUpload: U(
|
|
4728
4728
|
L(
|
|
4729
|
-
() => import("./ImageUpload-
|
|
4729
|
+
() => import("./ImageUpload-hoE0aTOn.js")
|
|
4730
4730
|
),
|
|
4731
4731
|
{ props: ["ignoreUpdate"] }
|
|
4732
4732
|
),
|
|
4733
4733
|
BaLinkButton: U(
|
|
4734
4734
|
L(
|
|
4735
|
-
() => import("./LinkButton-
|
|
4735
|
+
() => import("./LinkButton-BGVmggik.js")
|
|
4736
4736
|
)
|
|
4737
4737
|
),
|
|
4738
4738
|
BaSwitch: U(
|
|
@@ -4747,7 +4747,7 @@ const go = (e) => {
|
|
|
4747
4747
|
}
|
|
4748
4748
|
})
|
|
4749
4749
|
);
|
|
4750
|
-
}, ho = L(() => import("./App-
|
|
4750
|
+
}, ho = L(() => import("./App-djqaTpJK.js"));
|
|
4751
4751
|
export {
|
|
4752
4752
|
dn as F,
|
|
4753
4753
|
pn as a,
|
package/dist/app.js
CHANGED
|
@@ -14,6 +14,7 @@ export interface CountryConfigResponse {
|
|
|
14
14
|
KIOSK_BACKEND: string;
|
|
15
15
|
PORTAL_V2_BACKEND: string;
|
|
16
16
|
LICENSE_BACKEND: string;
|
|
17
|
+
PWA_ICON_SERVICE_BACKEND: string;
|
|
17
18
|
MDM_WORKER_BACKEND: string;
|
|
18
19
|
};
|
|
19
20
|
supported_countries: string[];
|
|
@@ -33,6 +34,7 @@ declare class ApiClient {
|
|
|
33
34
|
export declare const getApiConfig: () => {
|
|
34
35
|
PORTAL_V2_BACKEND: string;
|
|
35
36
|
LICENSE_BACKEND: string;
|
|
37
|
+
PWA_ICON_SERVICE_BACKEND: string;
|
|
36
38
|
};
|
|
37
39
|
export declare const Http: ApiClient;
|
|
38
40
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { H as r } from "./index-
|
|
2
|
-
|
|
1
|
+
import { H as r, b as p } from "./index-nYUFS3mj.js";
|
|
2
|
+
const i = () => p().PWA_ICON_SERVICE_BACKEND;
|
|
3
|
+
async function d(e, t, a) {
|
|
3
4
|
const n = new FormData();
|
|
4
5
|
return n.append("file", a), (await r.Put(
|
|
5
|
-
"https://api.
|
|
6
|
+
"https://api.feedmedev.vip",
|
|
6
7
|
`/image/${e}/${t}`,
|
|
7
8
|
{
|
|
8
9
|
headers: {
|
|
@@ -12,30 +13,30 @@ async function p(e, t, a) {
|
|
|
12
13
|
}
|
|
13
14
|
)).data;
|
|
14
15
|
}
|
|
15
|
-
async function
|
|
16
|
+
async function s(e, t) {
|
|
16
17
|
return (await r.Delete(
|
|
17
|
-
"https://api.
|
|
18
|
+
"https://api.feedmedev.vip",
|
|
18
19
|
`/image/${e}/${t}`
|
|
19
20
|
)).data;
|
|
20
21
|
}
|
|
21
|
-
async function
|
|
22
|
+
async function o(e, t) {
|
|
22
23
|
const a = new FormData();
|
|
23
|
-
return a.append("file", t), a.append("businessId", e), (await r.Put(
|
|
24
|
+
return a.append("file", t), a.append("businessId", e), (await r.Put(i(), "", {
|
|
24
25
|
headers: {
|
|
25
26
|
"Content-Type": "multipart/form-data"
|
|
26
27
|
},
|
|
27
28
|
data: a
|
|
28
29
|
})).data;
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
-
uploadImage:
|
|
32
|
-
deleteImage:
|
|
33
|
-
uploadAppIcon:
|
|
31
|
+
const f = {
|
|
32
|
+
uploadImage: d,
|
|
33
|
+
deleteImage: s,
|
|
34
|
+
uploadAppIcon: o
|
|
34
35
|
};
|
|
35
|
-
function
|
|
36
|
+
function u(e) {
|
|
36
37
|
return e.replace("images.feedme-dev.workers.dev", "image.feedmedev.vip").replace("image.feedmedev.cc", "image.feedmedev.vip");
|
|
37
38
|
}
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
f as I,
|
|
41
|
+
u as r
|
|
41
42
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { H as d } from "./index-
|
|
1
|
+
import { H as d } from "./index-nYUFS3mj.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-ANoOI1Qw.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
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { H as e, b as r } from "./index-
|
|
2
|
-
const o = () => r().PORTAL_V2_BACKEND,
|
|
3
|
-
async function
|
|
1
|
+
import { H as e, b as r } from "./index-nYUFS3mj.js";
|
|
2
|
+
const o = () => r().PORTAL_V2_BACKEND, d = () => r().LICENSE_BACKEND;
|
|
3
|
+
async function c(t) {
|
|
4
4
|
return (await e.Get(
|
|
5
|
-
"https://api.
|
|
5
|
+
"https://api.feedmedev.vip",
|
|
6
6
|
`/short-url/${t}`
|
|
7
7
|
)).data;
|
|
8
8
|
}
|
|
9
|
-
async function
|
|
9
|
+
async function u(t, a, n) {
|
|
10
10
|
return await e.Post(
|
|
11
|
-
"https://api.
|
|
11
|
+
"https://api.feedmedev.vip",
|
|
12
12
|
"/short-url",
|
|
13
13
|
{
|
|
14
14
|
data: {
|
|
@@ -23,15 +23,15 @@ async function p(t, a, n) {
|
|
|
23
23
|
throw (i = s.response) == null ? void 0 : i.data;
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
async function
|
|
26
|
+
async function p(t) {
|
|
27
27
|
return (await e.Get(
|
|
28
|
-
"https://api.
|
|
28
|
+
"https://api.feedmedev.vip",
|
|
29
29
|
`/metadata/${t}/config`
|
|
30
30
|
)).data;
|
|
31
31
|
}
|
|
32
32
|
async function f(t, a, n) {
|
|
33
33
|
return (await e.Post(
|
|
34
|
-
"https://api.
|
|
34
|
+
"https://api.feedmedev.vip",
|
|
35
35
|
`/metadata/${t}/config`,
|
|
36
36
|
{
|
|
37
37
|
data: {
|
|
@@ -44,13 +44,13 @@ async function f(t, a, n) {
|
|
|
44
44
|
}
|
|
45
45
|
async function m(t) {
|
|
46
46
|
return (await e.Get(
|
|
47
|
-
"https://api.
|
|
47
|
+
"https://api.feedmedev.vip",
|
|
48
48
|
`/metadata/${t}/brandkit`
|
|
49
49
|
)).data;
|
|
50
50
|
}
|
|
51
51
|
async function h(t, a) {
|
|
52
52
|
return (await e.Post(
|
|
53
|
-
"https://api.
|
|
53
|
+
"https://api.feedmedev.vip",
|
|
54
54
|
`/metadata/${t}/brandkit`,
|
|
55
55
|
{
|
|
56
56
|
data: a
|
|
@@ -69,22 +69,22 @@ async function B(t, a) {
|
|
|
69
69
|
throw (i = s.response) == null ? void 0 : i.data;
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
async function
|
|
72
|
+
async function v(t) {
|
|
73
73
|
return await e.Get(
|
|
74
|
-
|
|
74
|
+
d(),
|
|
75
75
|
`api/business/${t}/feature/miniprogram`
|
|
76
76
|
).then((a) => a.data).catch(() => !1);
|
|
77
77
|
}
|
|
78
|
-
const
|
|
79
|
-
getGlobalSlug:
|
|
80
|
-
setShortUrl:
|
|
81
|
-
getBusinessMetadata:
|
|
78
|
+
const l = {
|
|
79
|
+
getGlobalSlug: c,
|
|
80
|
+
setShortUrl: u,
|
|
81
|
+
getBusinessMetadata: p,
|
|
82
82
|
setBusinessMetadata: f,
|
|
83
83
|
getBusinessBrandkit: m,
|
|
84
84
|
setBusinessBrandkit: h,
|
|
85
85
|
updateBusinessProfile: B,
|
|
86
|
-
getBusinessPremiumStatus:
|
|
86
|
+
getBusinessPremiumStatus: v
|
|
87
87
|
};
|
|
88
88
|
export {
|
|
89
|
-
|
|
89
|
+
l as B
|
|
90
90
|
};
|