@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.
@@ -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-BxQr98LR.js";
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.feedme.vip",
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.feedme.vip",
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.feedme.vip",
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.feedme.vip",
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.feedme.cc/api",
800
+ "https://license.feedmedev.cc/api",
801
801
  `/business/${s}/feature/miniprogram`
802
802
  )).data;
803
803
  }
@@ -1,4 +1,4 @@
1
- import { B as s } from "./index-T23clKe0.js";
1
+ import { B as s } from "./index-C4WOObjm.js";
2
2
  import { defineStore as n } from "pinia";
3
3
  import { ref as r } from "vue";
4
4
  const m = n("business", () => {
@@ -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-BxQr98LR.js";
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.feedme.vip",
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.feedme.vip",
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.feedme.vip",
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.feedme.vip",
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.feedme.vip",
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.feedme.vip",
49
+ "https://api.feedmedev.vip",
50
50
  `/template/${e}/${l}/${s}`
51
- ).then((d) => d.status === 200).catch(() => !1);
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.feedme.vip",
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.feedme.vip",
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 d(t) {
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((r) => {
130
- if (!r.templateAlias.startsWith("Untitled")) return;
131
- const n = r.templateAlias.split(" ");
132
- n.length === 1 && n[0] === "Untitled" ? t = "Untitled 2" : n.length === 2 && n[0] === "Untitled" && !isNaN(+n[1]) && (r.templateAlias.startsWith(`Untitled ${a}`) && (a += 1), t = `Untitled ${a}`);
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 r;
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), ((r = e.value.selectedTemplate) == null ? void 0 : r.templateId) === a && (e.value.selectedTemplate.templateAlias = i);
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: d,
175
+ setSelectedTemplate: r,
176
176
  saveTemplate: u,
177
177
  setMainPageTemplate: o,
178
178
  addNewTemplate: T,
@@ -37,6 +37,6 @@ interface IBusinessProfilePayload {
37
37
  name: string;
38
38
  thumbnail: string;
39
39
  url: string;
40
- coverPhoto: string;
40
+ coverPhoto: string | null;
41
41
  }
42
42
  export {};
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-brand-app-builder",
3
- "version": "0.5.12",
3
+ "version": "0.5.13-alpha",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-brand-app-builder",
3
- "version": "0.5.12",
3
+ "version": "0.5.13-alpha",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"