@ozdao/prometheus-framework 0.0.97 → 0.0.98

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/Feed-0dbe15b9.js +1 -0
  2. package/dist/Feed-4df9352b.js +1 -0
  3. package/dist/Feed-6fd26cb4.mjs +367 -0
  4. package/dist/Feed-e9bddb71.mjs +439 -0
  5. package/dist/Image-3fee8409.mjs +477 -0
  6. package/dist/Image-d5c4d8d9.js +9 -0
  7. package/dist/Product-943b64bb.mjs +838 -0
  8. package/dist/Product-abf86516.js +7 -0
  9. package/dist/ProductEdit-ba3fef8c.mjs +350 -0
  10. package/dist/ProductEdit-e71dbe52.js +1 -0
  11. package/dist/ProfileBlogposts-5c0f3b58.js +1 -0
  12. package/dist/ProfileBlogposts-5c6ab74a.mjs +64 -0
  13. package/dist/ProfileComments-12b51ae3.js +1 -0
  14. package/dist/ProfileComments-d6779ee2.mjs +44 -0
  15. package/dist/ProfileEvents-c9aa3d41.mjs +56 -0
  16. package/dist/ProfileEvents-d0c5e3dc.js +1 -0
  17. package/dist/ProfileLikes-05911934.mjs +44 -0
  18. package/dist/ProfileLikes-c068c6c6.js +1 -0
  19. package/dist/community.client.cjs +1 -1
  20. package/dist/community.client.js +3 -3
  21. package/dist/events.client.cjs +2 -1
  22. package/dist/events.client.js +8646 -408
  23. package/dist/main.css +1 -1
  24. package/dist/organizations.client-7e51b4a8.js +3 -0
  25. package/dist/organizations.client-bf73e73d.mjs +3017 -0
  26. package/dist/organizations.client.cjs +1 -1
  27. package/dist/organizations.client.js +3 -3
  28. package/dist/style.css +1 -1
  29. package/dist/users.client.cjs +1 -1
  30. package/dist/users.client.js +147 -157
  31. package/package.json +2 -1
  32. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -2
  33. package/src/modules/events/components/blocks/CardEvent.vue +6 -2
  34. package/src/modules/events/components/pages/EditEvent.vue +50 -32
  35. package/src/modules/users/components/pages/ProfileEdit.vue +3 -3
  36. package/src/styles/layout.scss +0 -1
@@ -1,10 +1,10 @@
1
- import { openBlock as u, createElementBlock as _, renderSlot as I, createElementVNode as i, defineComponent as z, h as x, ref as V, resolveComponent as B, toDisplayString as $, createBlock as w, withCtx as v, createTextVNode as E, createCommentVNode as y, reactive as O, onMounted as R, unref as c, Fragment as F, renderList as T, normalizeClass as j, createVNode as o, withAsyncContext as A } from "vue";
2
- import { a as G, s as p, b as D, F as h, _ as Y } from "./auth-cfeacd61.mjs";
1
+ import { openBlock as u, createElementBlock as _, renderSlot as N, createElementVNode as i, defineComponent as z, h as x, ref as V, resolveComponent as O, toDisplayString as $, createBlock as w, withCtx as v, createTextVNode as E, createCommentVNode as y, reactive as B, onMounted as R, unref as c, Fragment as F, renderList as T, normalizeClass as j, createVNode as d, withAsyncContext as A } from "vue";
2
+ import { a as G, s as p, b as D, F as g, _ as Y } from "./auth-cfeacd61.mjs";
3
3
  import { _ as H } from "./_plugin-vue_export-helper-dad06003.mjs";
4
4
  import { B as q, m as J } from "./ButtonFollow-6765c266.mjs";
5
5
  import { _ as K } from "./Socials-8193477c.mjs";
6
6
  import { I as Q, P as W } from "./IconEdit-eacf3856.mjs";
7
- import { useRoute as S, useRouter as L } from "vue-router";
7
+ import { useRoute as L, useRouter as S } from "vue-router";
8
8
  import "./inputs.validation-14e8e01f.mjs";
9
9
  import { _ as X } from "./UploadImage-1b4c2a5e.mjs";
10
10
  import "./auth.validation-3fd4cc7c.mjs";
@@ -12,9 +12,9 @@ import "./globals-96ba60e4.mjs";
12
12
  import "vue-i18n";
13
13
  const ee = { class: "mobile-menu-section mn-semi pd-r-zero pd-t-thin pd-b-thin pd-medium bg-grey radius-medium" }, Z = {
14
14
  __name: "Menu",
15
- setup(s) {
15
+ setup(t) {
16
16
  return (e, m) => (u(), _("section", ee, [
17
- I(e.$slots, "default")
17
+ N(e.$slots, "default")
18
18
  ]));
19
19
  }
20
20
  }, te = {}, se = {
@@ -29,15 +29,15 @@ const ee = { class: "mobile-menu-section mn-semi pd-r-zero pd-t-thin pd-b-thin p
29
29
  }, null, -1), ie = [
30
30
  re
31
31
  ];
32
- function ne(s, e) {
32
+ function ne(t, e) {
33
33
  return u(), _("svg", se, ie);
34
34
  }
35
35
  const ae = /* @__PURE__ */ H(te, [["render", ne]]), P = z({
36
- setup(s, { slots: e }) {
36
+ setup(t, { slots: e }) {
37
37
  return () => {
38
- const m = e.default ? e.default() : [], f = [], C = [];
39
- return m.forEach((t) => {
40
- t.toString(), t.props && t.props.icon ? f.push(t) : C.push(t);
38
+ const m = e.default ? e.default() : [], f = [], h = [];
39
+ return m.forEach((s) => {
40
+ s.toString(), s.props && s.props.icon ? f.push(s) : h.push(s);
41
41
  }), x(
42
42
  "div",
43
43
  {
@@ -73,7 +73,7 @@ const ae = /* @__PURE__ */ H(te, [["render", ne]]), P = z({
73
73
  {
74
74
  class: ["p-big", "t-medium", "mn-r-auto"]
75
75
  },
76
- C
76
+ h
77
77
  )
78
78
  ]
79
79
  ),
@@ -83,31 +83,31 @@ const ae = /* @__PURE__ */ H(te, [["render", ne]]), P = z({
83
83
  );
84
84
  };
85
85
  }
86
- }), le = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, N = {
86
+ }), le = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, I = {
87
87
  __name: "ProfileCompletion",
88
88
  props: {
89
89
  user: Object,
90
90
  target: Object,
91
91
  cta: Boolean
92
92
  },
93
- setup(s) {
94
- const { user: e, cta: m, target: f } = s, C = V(0), t = (g) => {
95
- let d = 0, l = 0;
96
- function n(r) {
93
+ setup(t) {
94
+ const { user: e, cta: m, target: f } = t, h = V(0), s = (C) => {
95
+ let o = 0, l = 0;
96
+ function a(r) {
97
97
  for (let b in r)
98
- r.hasOwnProperty(b) && (r[b] && typeof r[b] == "object" && !Array.isArray(r[b]) ? n(r[b]) : (d++, r[b] != null && r[b] !== "" && l++));
98
+ r.hasOwnProperty(b) && (r[b] && typeof r[b] == "object" && !Array.isArray(r[b]) ? a(r[b]) : (o++, r[b] != null && r[b] !== "" && l++));
99
99
  }
100
- return n(g), d === 0 ? 0 : Math.round(l / d * 100);
100
+ return a(C), o === 0 ? 0 : Math.round(l / o * 100);
101
101
  };
102
- return f && (C.value = t(f)), (g, d) => {
103
- const l = B("router-link");
102
+ return f && (h.value = s(f)), (C, o) => {
103
+ const l = O("router-link");
104
104
  return u(), _("section", le, [
105
- i("h3", null, " Profile completed at " + $(C.value) + "% ", 1),
106
- s.cta ? (u(), w(l, {
105
+ i("h3", null, " Profile completed at " + $(h.value) + "% ", 1),
106
+ t.cta ? (u(), w(l, {
107
107
  key: 0,
108
108
  to: {
109
109
  name: "User Edit Profile",
110
- params: { _id: s.user }
110
+ params: { _id: t.user }
111
111
  },
112
112
  class: "mn-t-regular t-black bg-white w-100 button"
113
113
  }, {
@@ -131,7 +131,7 @@ const ae = /* @__PURE__ */ H(te, [["render", ne]]), P = z({
131
131
  }, null, -1), me = [
132
132
  ue
133
133
  ];
134
- function ce(s, e) {
134
+ function ce(t, e) {
135
135
  return u(), _("svg", de, me);
136
136
  }
137
137
  const pe = /* @__PURE__ */ H(oe, [["render", ce]]), _e = {}, fe = {
@@ -146,7 +146,7 @@ const pe = /* @__PURE__ */ H(oe, [["render", ce]]), _e = {}, fe = {
146
146
  }, null, -1), Ce = [
147
147
  he
148
148
  ];
149
- function ge(s, e) {
149
+ function ge(t, e) {
150
150
  return u(), _("svg", fe, Ce);
151
151
  }
152
152
  const ve = /* @__PURE__ */ H(_e, [["render", ge]]), be = {}, we = {
@@ -173,10 +173,10 @@ const ve = /* @__PURE__ */ H(_e, [["render", ge]]), be = {}, we = {
173
173
  xe,
174
174
  Pe
175
175
  ];
176
- function Me(s, e) {
176
+ function Me(t, e) {
177
177
  return u(), _("svg", we, ke);
178
178
  }
179
- const Ve = /* @__PURE__ */ H(be, [["render", Me]]), M = G.create({ baseURL: process.env.API_URL, withCredentials: !0 }), a = O({
179
+ const Ve = /* @__PURE__ */ H(be, [["render", Me]]), M = G.create({ baseURL: process.env.API_URL, withCredentials: !0 }), n = B({
180
180
  all: [],
181
181
  current: {
182
182
  _id: "",
@@ -198,47 +198,47 @@ const Ve = /* @__PURE__ */ H(be, [["render", Me]]), M = G.create({ baseURL: proc
198
198
  roles: []
199
199
  }
200
200
  }), U = {
201
- async create(s) {
201
+ async create(t) {
202
202
  try {
203
- const e = await M.post("/api/users", s);
203
+ const e = await M.post("/api/users", t);
204
204
  return k.set(e.data, "current"), Promise.resolve(e.data);
205
205
  } catch (e) {
206
206
  return console.error(e), Promise.reject(e);
207
207
  }
208
208
  },
209
- async read(s = {}) {
210
- s.params = {}, s._id && (s.params._id = s._id), s.user && (s.params.user = s.user);
209
+ async read(t = {}) {
210
+ t.params = {}, t._id && (t.params._id = t._id), t.user && (t.params.user = t.user);
211
211
  try {
212
- const e = await M.get("/api/users", { params: s.params });
213
- return s._id ? k.set(e.data[0], "current") : k.set(e.data, "all"), Promise.resolve(e.data);
212
+ const e = await M.get("/api/users", { params: t.params });
213
+ return t._id ? k.set(e.data[0], "current") : k.set(e.data, "all"), Promise.resolve(e.data);
214
214
  } catch (e) {
215
215
  return console.error(e), Promise.reject(e);
216
216
  }
217
217
  },
218
- async update(s) {
219
- console.log(s);
218
+ async update(t) {
219
+ console.log(t);
220
220
  try {
221
- const e = await M.put(`/api/users/${s._id}`, s);
221
+ const e = await M.put(`/api/users/${t._id}`, t);
222
222
  return k.set(e.data, "current"), Promise.resolve(e.data);
223
223
  } catch (e) {
224
224
  return console.error(e), Promise.reject(e);
225
225
  }
226
226
  },
227
- async delete(s) {
227
+ async delete(t) {
228
228
  try {
229
- await M.delete(`/api/users/${s._id}`);
230
- const e = a.all.findIndex((m) => m._id === s._id);
231
- e !== -1 && a.all.splice(e, 1);
229
+ await M.delete(`/api/users/${t._id}`);
230
+ const e = n.all.findIndex((m) => m._id === t._id);
231
+ e !== -1 && n.all.splice(e, 1);
232
232
  } catch (e) {
233
233
  console.error(e);
234
234
  }
235
235
  }
236
236
  }, k = {
237
- set(s, e) {
238
- a[e] = s;
237
+ set(t, e) {
238
+ n[e] = t;
239
239
  },
240
240
  clean() {
241
- a.current = {
241
+ n.current = {
242
242
  phone: "",
243
243
  name: "",
244
244
  surname: "",
@@ -249,43 +249,43 @@ const Ve = /* @__PURE__ */ H(be, [["render", Me]]), M = G.create({ baseURL: proc
249
249
  orders: []
250
250
  };
251
251
  }
252
- }, ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
252
+ }, ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
253
253
  __proto__: null,
254
254
  actions: U,
255
255
  mutations: k,
256
- state: a
256
+ state: n
257
257
  }, Symbol.toStringTag, { value: "Module" }));
258
258
  const Ue = { class: "for-transition w-100" }, He = {
259
259
  _id: "dash",
260
260
  class: "pd-b-extra pd-thin w-100"
261
- }, Ze = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, Ee = ["src"], Se = { class: "mn-thin" }, Le = { class: "mn-small t-main t-semi" }, Ne = { class: "mn-medium flex-center flex-nowrap flex" }, Ie = { class: "t-semi mn-small" }, ze = {
261
+ }, Ze = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, Ee = ["src"], Le = { class: "mn-thin" }, Se = { class: "mn-small t-main t-semi" }, Ie = { class: "mn-medium flex-center flex-nowrap flex" }, Ne = { class: "t-semi mn-small" }, ze = {
262
262
  key: 4,
263
263
  class: "mn-t-small mn-thin"
264
- }, Be = /* @__PURE__ */ i("span", null, "Events", -1), Oe = /* @__PURE__ */ i("span", null, "Groups", -1), Re = /* @__PURE__ */ i("span", null, "Posts", -1), Fe = /* @__PURE__ */ i("span", null, " Settings ", -1), Te = /* @__PURE__ */ i("span", { class: "t-red" }, " Logout ", -1), je = {
264
+ }, Oe = /* @__PURE__ */ i("span", null, "Events", -1), Be = /* @__PURE__ */ i("span", null, "Groups", -1), Re = /* @__PURE__ */ i("span", null, "Posts", -1), Fe = /* @__PURE__ */ i("span", null, " Settings ", -1), Te = /* @__PURE__ */ i("span", { class: "t-red" }, " Logout ", -1), je = {
265
265
  __name: "Profile",
266
- setup(s) {
267
- const e = S(), m = L(), f = V(!1);
266
+ setup(t) {
267
+ const e = L(), m = S(), f = V(!1);
268
268
  R(async () => {
269
269
  await U.read({ _id: e.params._id, user: p.user._id }), f.value = !0;
270
270
  });
271
- const C = ({ membership: g, isMember: d, targetId: l }) => {
272
- J.handleMembershipUpdate(a.current, g, d, l);
271
+ const h = ({ membership: C, isMember: o, targetId: l }) => {
272
+ J.handleMembershipUpdate(n.current, C, o, l);
273
273
  };
274
- function t() {
274
+ function s() {
275
275
  D.logout(), m.push({ name: "Sign In" });
276
276
  }
277
- return (g, d) => (u(), _("div", Ue, [
277
+ return (C, o) => (u(), _("div", Ue, [
278
278
  i("div", He, [
279
- c(e).params._id === p.user._id && f.value ? (u(), w(N, {
279
+ c(e).params._id === p.user._id && f.value ? (u(), w(I, {
280
280
  key: 0,
281
281
  user: p.user._id,
282
- target: a.current,
282
+ target: n.current,
283
283
  cta: !0
284
284
  }, null, 8, ["user", "target"])) : y("", !0),
285
285
  i("section", Ze, [
286
286
  c(e).params._id === p.user._id ? (u(), w(Q, {
287
287
  key: 0,
288
- onClick: d[0] || (d[0] = (l) => g.$router.push({
288
+ onClick: o[0] || (o[0] = (l) => C.$router.push({
289
289
  name: "User Edit Profile",
290
290
  params: {
291
291
  _id: p.user._id
@@ -293,74 +293,74 @@ const Ue = { class: "for-transition w-100" }, He = {
293
293
  })),
294
294
  class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
295
295
  })) : y("", !0),
296
- a.current.profile.photo.length > 0 ? (u(), _("img", {
296
+ n.current.profile.photo.length > 0 ? (u(), _("img", {
297
297
  key: 1,
298
- src: (g.FILE_SERVER_URL || "") + a.current.profile.photo,
298
+ src: (C.FILE_SERVER_URL || "") + n.current.profile.photo,
299
299
  class: "radius-extra bg-white mn-small i-extra"
300
300
  }, null, 8, Ee)) : (u(), w(W, {
301
301
  key: 2,
302
302
  class: "radius-medium mn-small i-extra"
303
303
  })),
304
- i("h3", Se, $(a.current.profile.name ? a.current.profile.name : "Не указан"), 1),
305
- i("p", Le, " @" + $(a.current.username ? a.current.username : "Не указан"), 1),
306
- i("div", Ne, [
307
- (u(!0), _(F, null, T(a.current.roles, (l, n) => (u(), _("div", {
308
- class: j(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": n !== a.current.roles.length - 1 }])
304
+ i("h3", Le, $(n.current.profile.name ? n.current.profile.name : "Не указан"), 1),
305
+ i("p", Se, " @" + $(n.current.username ? n.current.username : "Не указан"), 1),
306
+ i("div", Ie, [
307
+ (u(!0), _(F, null, T(n.current.roles, (l, a) => (u(), _("div", {
308
+ class: j(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": a !== n.current.roles.length - 1 }])
309
309
  }, $(l.icon) + " " + $(l.name), 3))), 256))
310
310
  ]),
311
- i("p", Ie, " 👨‍👨‍👧‍👧 " + $(a.current.numberOfMemberships) + " followers ", 1),
311
+ i("p", Ne, " 👨‍👨‍👧‍👧 " + $(n.current.numberOfMemberships) + " followers ", 1),
312
312
  p.user._id && c(e).params._id && c(e).params._id !== p.user._id ? (u(), w(q, {
313
313
  key: 3,
314
314
  type: "user",
315
- isMember: a.current.isMember,
316
- targetId: a.current._id,
315
+ isMember: n.current.isMember,
316
+ targetId: n.current._id,
317
317
  userId: p.user._id,
318
318
  class: "w-min mn-auto",
319
- onUpdateMembership: C
319
+ onUpdateMembership: h
320
320
  }, null, 8, ["isMember", "targetId", "userId"])) : y("", !0),
321
- Object.values(a.current.socials).some((l) => l) ? (u(), _("h4", ze, " Find Me in Socials ")) : y("", !0),
322
- o(K, {
323
- telegram: a.current.socials.telegram,
324
- facebook: a.current.socials.facebook,
325
- instagram: a.current.socials.instagram,
326
- twitter: a.current.socials.twitter,
321
+ Object.values(n.current.socials).some((l) => l) ? (u(), _("h4", ze, " Find Me in Socials ")) : y("", !0),
322
+ d(K, {
323
+ telegram: n.current.socials.telegram,
324
+ facebook: n.current.socials.facebook,
325
+ instagram: n.current.socials.instagram,
326
+ twitter: n.current.socials.twitter,
327
327
  class: "mn-r-auto mn-l-auto"
328
328
  }, null, 8, ["telegram", "facebook", "instagram", "twitter"])
329
329
  ]),
330
- o(Z, null, {
330
+ d(Z, null, {
331
331
  default: v(() => [
332
- o(P, {
333
- onClick: d[1] || (d[1] = (l) => c(m).push({ name: "User Events", params: { _id: c(e).params._id } })),
332
+ d(P, {
333
+ onClick: o[1] || (o[1] = (l) => c(m).push({ name: "User Events", params: { _id: c(e).params._id } })),
334
334
  class: "cursor-pointer"
335
335
  }, {
336
336
  default: v(() => [
337
- o(pe, {
337
+ d(pe, {
338
338
  class: "i-semi",
339
339
  icon: !0
340
340
  }),
341
- Be
341
+ Oe
342
342
  ]),
343
343
  _: 1
344
344
  }),
345
- o(P, {
346
- onClick: d[2] || (d[2] = (l) => c(m).push({ name: "User Organizations", params: { _id: c(e).params._id } })),
345
+ d(P, {
346
+ onClick: o[2] || (o[2] = (l) => c(m).push({ name: "User Organizations", params: { _id: c(e).params._id } })),
347
347
  class: "cursor-pointer"
348
348
  }, {
349
349
  default: v(() => [
350
- o(ve, {
350
+ d(ve, {
351
351
  class: "i-semi",
352
352
  icon: !0
353
353
  }),
354
- Oe
354
+ Be
355
355
  ]),
356
356
  _: 1
357
357
  }),
358
- o(P, {
359
- onClick: d[3] || (d[3] = (l) => c(m).push({ name: "User Blogposts", params: { _id: c(e).params._id } })),
358
+ d(P, {
359
+ onClick: o[3] || (o[3] = (l) => c(m).push({ name: "User Blogposts", params: { _id: c(e).params._id } })),
360
360
  class: "cursor-pointer"
361
361
  }, {
362
362
  default: v(() => [
363
- o(Ve, {
363
+ d(Ve, {
364
364
  class: "i-semi",
365
365
  icon: !0
366
366
  }),
@@ -373,8 +373,8 @@ const Ue = { class: "for-transition w-100" }, He = {
373
373
  }),
374
374
  p.user._id === c(e).params._id ? (u(), w(Z, { key: 1 }, {
375
375
  default: v(() => [
376
- o(P, {
377
- onClick: d[4] || (d[4] = (l) => c(m).push({
376
+ d(P, {
377
+ onClick: o[4] || (o[4] = (l) => c(m).push({
378
378
  name: "User Edit Profile",
379
379
  params: {
380
380
  _id: c(e).params._id
@@ -387,9 +387,9 @@ const Ue = { class: "for-transition w-100" }, He = {
387
387
  ]),
388
388
  _: 1
389
389
  }),
390
- o(P, {
390
+ d(P, {
391
391
  class: "cursor-pointer",
392
- onClick: d[5] || (d[5] = (l) => t())
392
+ onClick: o[5] || (o[5] = (l) => s())
393
393
  }, {
394
394
  default: v(() => [
395
395
  Te
@@ -406,31 +406,31 @@ const Ue = { class: "for-transition w-100" }, He = {
406
406
  __proto__: null,
407
407
  default: je
408
408
  }, Symbol.toStringTag, { value: "Module" }));
409
- const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Username", -1), Ye = /* @__PURE__ */ i("p", { class: "mn-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), qe = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Profile", -1), Je = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, Ke = /* @__PURE__ */ i("h4", null, "Upload userpic", -1), Qe = /* @__PURE__ */ i("p", { class: "mn-thin" }, "Select your birthday if you want to receive your birthday gift.", -1), We = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Socials", -1), Xe = /* @__PURE__ */ i("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), et = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Account", -1), tt = /* @__PURE__ */ i("p", { class: "mn-thin" }, "If you want to change your account details please contact the administratior: admin@thecommunephuket.com", -1), st = {
409
+ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Username", -1), Ye = /* @__PURE__ */ i("p", { class: "mn-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), qe = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Profile", -1), Je = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, Ke = /* @__PURE__ */ i("h4", null, "Upload userpic", -1), Qe = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Socials", -1), We = /* @__PURE__ */ i("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), Xe = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Account", -1), et = /* @__PURE__ */ i("p", { class: "mn-thin" }, "If you want to change your account details please contact the administratior: admin@thecommunephuket.com", -1), tt = {
410
410
  __name: "ProfileEdit",
411
- async setup(s) {
411
+ async setup(t) {
412
412
  let e, m;
413
413
  V(null);
414
- const f = S(), C = L();
414
+ const f = L(), h = S();
415
415
  [e, m] = A(() => U.read({ _id: p.user._id })), await e, m();
416
- const t = V(a.current);
417
- async function g() {
418
- await U.update(a.current);
416
+ const s = V(n.current);
417
+ async function C() {
418
+ await U.update(n.current);
419
419
  }
420
- function d() {
421
- C.replace({ name: "User Profile", params: { _id: a.current._id } });
420
+ function o() {
421
+ h.replace({ name: "User Profile", params: { _id: n.current._id } });
422
422
  }
423
- return (l, n) => (u(), _("div", Ge, [
424
- c(f).params._id === p.user._id ? (u(), w(N, {
423
+ return (l, a) => (u(), _("div", Ge, [
424
+ c(f).params._id === p.user._id ? (u(), w(I, {
425
425
  key: 0,
426
426
  user: p.user._id,
427
- target: t.value,
427
+ target: s.value,
428
428
  cta: !1
429
429
  }, null, 8, ["user", "target"])) : y("", !0),
430
430
  De,
431
- o(h, {
432
- field: t.value.username,
433
- "onUpdate:field": n[0] || (n[0] = (r) => t.value.username = r),
431
+ d(g, {
432
+ field: s.value.username,
433
+ "onUpdate:field": a[0] || (a[0] = (r) => s.value.username = r),
434
434
  label: "Username",
435
435
  placeholder: "Not specified",
436
436
  class: "mn-thin w-100 bg-grey pd-medium radius-small",
@@ -440,94 +440,84 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
440
440
  Ye,
441
441
  qe,
442
442
  i("div", Je, [
443
- o(X, {
444
- photo: t.value.profile.photo,
445
- "onUpdate:photo": n[1] || (n[1] = (r) => t.value.profile.photo = r),
446
- uploadPath: "users/" + t.value._id + "/avatars",
443
+ d(X, {
444
+ photo: s.value.profile.photo,
445
+ "onUpdate:photo": a[1] || (a[1] = (r) => s.value.profile.photo = r),
446
+ uploadPath: "users/" + s.value._id + "/avatars",
447
447
  class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-thin radius-extra"
448
448
  }, null, 8, ["photo", "uploadPath"]),
449
449
  Ke
450
450
  ]),
451
- o(h, {
452
- field: t.value.profile.name,
453
- "onUpdate:field": n[2] || (n[2] = (r) => t.value.profile.name = r),
451
+ d(g, {
452
+ field: s.value.profile.name,
453
+ "onUpdate:field": a[2] || (a[2] = (r) => s.value.profile.name = r),
454
454
  label: "Name",
455
455
  placeholder: "Not specified",
456
456
  class: "mn-thin bg-grey pd-medium radius-small",
457
457
  validation: l.organizationName
458
458
  }, null, 8, ["field", "validation"]),
459
- o(h, {
460
- field: t.value.profile.description,
461
- "onUpdate:field": n[3] || (n[3] = (r) => t.value.profile.description = r),
459
+ d(g, {
460
+ field: s.value.profile.description,
461
+ "onUpdate:field": a[3] || (a[3] = (r) => s.value.profile.description = r),
462
462
  label: "Description",
463
463
  placeholder: "Not specified",
464
- class: "mn-thin bg-grey pd-medium radius-small",
464
+ class: "mn-semi bg-grey pd-medium radius-small",
465
465
  disabled: "true",
466
466
  validation: l.organizationName
467
467
  }, null, 8, ["field", "validation"]),
468
468
  Qe,
469
- o(h, {
470
- field: t.value.birthday,
471
- "onUpdate:field": n[4] || (n[4] = (r) => t.value.birthday = r),
472
- label: "Birthday",
473
- type: "date",
474
- placeholder: "Not specified",
475
- class: "mn-semi bg-grey pd-medium radius-small",
476
- validation: l.organizationName
477
- }, null, 8, ["field", "validation"]),
478
469
  We,
479
- Xe,
480
- o(h, {
481
- field: t.value.socials.instagram,
482
- "onUpdate:field": n[5] || (n[5] = (r) => t.value.socials.instagram = r),
470
+ d(g, {
471
+ field: s.value.socials.instagram,
472
+ "onUpdate:field": a[4] || (a[4] = (r) => s.value.socials.instagram = r),
483
473
  label: "Instagram",
484
474
  placeholder: "",
485
475
  class: "mn-thin bg-grey pd-medium radius-small"
486
476
  }, null, 8, ["field"]),
487
- o(h, {
488
- field: t.value.socials.twitter,
489
- "onUpdate:field": n[6] || (n[6] = (r) => t.value.socials.twitter = r),
477
+ d(g, {
478
+ field: s.value.socials.twitter,
479
+ "onUpdate:field": a[5] || (a[5] = (r) => s.value.socials.twitter = r),
490
480
  label: "Twitter",
491
481
  placeholder: "",
492
482
  class: "mn-thin bg-grey pd-medium radius-small"
493
483
  }, null, 8, ["field"]),
494
- o(h, {
495
- field: t.value.socials.facebook,
496
- "onUpdate:field": n[7] || (n[7] = (r) => t.value.socials.facebook = r),
484
+ d(g, {
485
+ field: s.value.socials.facebook,
486
+ "onUpdate:field": a[6] || (a[6] = (r) => s.value.socials.facebook = r),
497
487
  label: "Facebook",
498
488
  placeholder: "",
499
489
  class: "mn-thin bg-grey pd-medium radius-small"
500
490
  }, null, 8, ["field"]),
501
- o(h, {
502
- field: t.value.socials.telegram,
503
- "onUpdate:field": n[8] || (n[8] = (r) => t.value.socials.telegram = r),
491
+ d(g, {
492
+ field: s.value.socials.telegram,
493
+ "onUpdate:field": a[7] || (a[7] = (r) => s.value.socials.telegram = r),
504
494
  label: "Telegram",
505
495
  placeholder: "",
506
496
  class: "mn-semi bg-grey pd-medium radius-small"
507
497
  }, null, 8, ["field"]),
498
+ Xe,
508
499
  et,
509
- tt,
510
- o(h, {
511
- field: t.value.phone,
512
- "onUpdate:field": n[9] || (n[9] = (r) => t.value.phone = r),
500
+ d(g, {
501
+ field: s.value.phone,
502
+ "onUpdate:field": a[8] || (a[8] = (r) => s.value.phone = r),
513
503
  label: "Phone",
514
504
  placeholder: "Not specified",
515
505
  class: "mn-thin bg-grey pd-medium mn-thin radius-small",
516
506
  disabled: "true",
517
507
  validation: l.organizationName
518
508
  }, null, 8, ["field", "validation"]),
519
- o(h, {
520
- field: t.value.email,
521
- "onUpdate:field": n[10] || (n[10] = (r) => t.value.email = r),
509
+ d(g, {
510
+ field: s.value.email,
511
+ "onUpdate:field": a[9] || (a[9] = (r) => s.value.email = r),
522
512
  label: "Email",
523
513
  placeholder: "Not specified",
524
514
  class: "mn-thin bg-grey pd-medium radius-small",
525
515
  disabled: !0,
526
516
  validation: l.organizationName
527
517
  }, null, 8, ["field", "validation"]),
528
- o(Y, {
529
- submit: g,
530
- callback: d,
518
+ d(Y, {
519
+ submit: C,
520
+ callback: o,
531
521
  class: "mn-thin"
532
522
  }, {
533
523
  default: v(() => [
@@ -537,10 +527,10 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
537
527
  })
538
528
  ]));
539
529
  }
540
- }, rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
530
+ }, st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
541
531
  __proto__: null,
542
- default: st
543
- }, Symbol.toStringTag, { value: "Module" })), Ct = [{
532
+ default: tt
533
+ }, Symbol.toStringTag, { value: "Module" })), ht = [{
544
534
  path: "profile/:_id",
545
535
  name: "User Profile",
546
536
  meta: {
@@ -561,7 +551,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
561
551
  },
562
552
  component: () => import(
563
553
  /* webpackChunkName: "profile" */
564
- "./ProfileBlogposts-6f80b734.mjs"
554
+ "./ProfileBlogposts-5c6ab74a.mjs"
565
555
  )
566
556
  }, {
567
557
  path: "profile/:_id/comments",
@@ -574,7 +564,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
574
564
  },
575
565
  component: () => import(
576
566
  /* webpackChunkName: "profile" */
577
- "./ProfileComments-c7230f42.mjs"
567
+ "./ProfileComments-d6779ee2.mjs"
578
568
  )
579
569
  }, {
580
570
  path: "profile/:_id/edit",
@@ -585,7 +575,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
585
575
  ru: "Редактировать Профиль"
586
576
  }
587
577
  },
588
- component: () => Promise.resolve().then(() => rt)
578
+ component: () => Promise.resolve().then(() => st)
589
579
  }, {
590
580
  path: "profile/:_id/events",
591
581
  name: "User Events",
@@ -597,7 +587,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
597
587
  },
598
588
  component: () => import(
599
589
  /* webpackChunkName: "profile" */
600
- "./ProfileEvents-2f22e7cf.mjs"
590
+ "./ProfileEvents-c9aa3d41.mjs"
601
591
  )
602
592
  }, {
603
593
  path: "profile/:_id/likes",
@@ -610,7 +600,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
610
600
  },
611
601
  component: () => import(
612
602
  /* webpackChunkName: "profile" */
613
- "./ProfileLikes-e4fa0792.mjs"
603
+ "./ProfileLikes-05911934.mjs"
614
604
  )
615
605
  }, {
616
606
  path: "profile/:_id/organizations",
@@ -628,7 +618,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
628
618
  }];
629
619
  export {
630
620
  je as Profile,
631
- st as ProfileEdit,
632
- Ct as usersRoutes,
633
- ht as usersStore
621
+ tt as ProfileEdit,
622
+ ht as usersRoutes,
623
+ ft as usersStore
634
624
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.0.97",
3
+ "version": "0.0.98",
4
4
  "description": "Web3 Framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",
@@ -143,6 +143,7 @@
143
143
  "@capacitor/core": "^5.4.2",
144
144
  "@googlemaps/google-maps-services-js": "^3.3.37",
145
145
  "@intlify/unplugin-vue-i18n": "^1.0.1",
146
+ "@vuepic/vue-datepicker": "^7.0.0",
146
147
  "libphonenumber-js": "^1.10.41",
147
148
  "mongoose": "^7.5.2",
148
149
  "multer": "^1.4.5-lts.1",
@@ -1,9 +1,8 @@
1
1
  <template>
2
2
  <article
3
- class="bg-grey radius-big"
3
+ class="pos-relative bg-grey radius-big"
4
4
  >
5
5
 
6
-
7
6
  <IconEdit
8
7
  v-if="user === blogpost.creator.target._id"
9
8
  @click.stop="$router.push({