@ozdao/prometheus-framework 0.1.30 → 0.1.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/BackofficeGallery-02c9721b.mjs +304 -0
  2. package/dist/BackofficeGallery-1d117a40.js +1 -0
  3. package/dist/BackofficeReports-cb4b180d.mjs +44 -0
  4. package/dist/BackofficeReports-d021871f.js +1 -0
  5. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-505c3ca5.js +1 -0
  6. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs +1945 -0
  7. package/dist/Button-2ca405bd.js +1 -0
  8. package/dist/Button-c59d387c.mjs +283 -0
  9. package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  10. package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  11. package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js +1 -0
  12. package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs +1 -0
  13. package/dist/CardOrganization-18c1e3fa.mjs +297 -0
  14. package/dist/CardOrganization-7d679e75.js +1 -0
  15. package/dist/Chips-2ada5eda.mjs +200 -0
  16. package/dist/Chips-8d0a1d2c.js +1 -0
  17. package/dist/Dashboard-239fb7a6.mjs +52 -0
  18. package/dist/Dashboard-94267906.js +1 -0
  19. package/dist/EULA-8265b0cf.mjs +4218 -0
  20. package/dist/EULA-cbb27503.js +1 -0
  21. package/dist/Feed-66095e66.js +1 -0
  22. package/dist/Feed-76fc4475.mjs +383 -0
  23. package/dist/Feed-e55bc6fa.js +1 -0
  24. package/dist/Feed-ef6c6ca3.mjs +371 -0
  25. package/dist/IconEdit-c98d3d06.mjs +339 -0
  26. package/dist/IconEdit-e4d0cc6e.js +1 -0
  27. package/dist/Image-052a3cc2.mjs +480 -0
  28. package/dist/Image-c90ee624.js +9 -0
  29. package/dist/MenuItem-0b249b94.mjs +93 -0
  30. package/dist/MenuItem-8b70d2cf.js +1 -0
  31. package/dist/Product-4b58701f.js +7 -0
  32. package/dist/Product-a6251018.mjs +844 -0
  33. package/dist/ProductEdit-3ff2af92.js +1 -0
  34. package/dist/ProductEdit-f901314c.mjs +306 -0
  35. package/dist/ProfileBlogposts-57931834.mjs +70 -0
  36. package/dist/ProfileBlogposts-af88ce98.js +1 -0
  37. package/dist/ProfileEvents-588eadf9.js +1 -0
  38. package/dist/ProfileEvents-ed7f9603.mjs +62 -0
  39. package/dist/ProfileOrganizations-7911deec.mjs +219 -0
  40. package/dist/ProfileOrganizations-ae258581.js +1 -0
  41. package/dist/Publics-50c0ff6c.js +1 -0
  42. package/dist/Publics-f34131bf.mjs +45 -0
  43. package/dist/Select-11ddabf5.mjs +79 -0
  44. package/dist/Select-3ca5ab39.js +1 -0
  45. package/dist/Socials-3fe01af1.mjs +275 -0
  46. package/dist/Socials-b19d0cb1.js +1 -0
  47. package/dist/addMembersQuantity-ea216f92.mjs +85 -0
  48. package/dist/addMembersQuantity-f922d82b.js +84 -0
  49. package/dist/auth-98fe3efb.mjs +612 -0
  50. package/dist/auth-acbe3ae1.js +7 -0
  51. package/dist/auth.client.cjs +7 -8
  52. package/dist/auth.client.js +435 -439
  53. package/dist/auth.validation-495e9d6d.js +1 -0
  54. package/dist/auth.validation-e265b496.mjs +23 -0
  55. package/dist/backoffice.client.cjs +1 -1
  56. package/dist/backoffice.client.js +55 -28
  57. package/dist/click-outside-0b0727d1.js +2 -0
  58. package/dist/click-outside-6101836c.mjs +19 -0
  59. package/dist/community.client.cjs +1 -1
  60. package/dist/community.client.js +121 -121
  61. package/dist/community.server.js +35 -5
  62. package/dist/community.server.mjs +35 -5
  63. package/dist/components/Button/Button.vue.d.ts +3 -0
  64. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  65. package/dist/components/CardHeader/CardHeader.vue.d.ts +3 -0
  66. package/dist/components/Dropdown/Dropdown.vue.d.ts +3 -0
  67. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  68. package/dist/components/Field/Field.vue.d.ts +1 -1
  69. package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
  70. package/dist/components/Popup/Popup.vue.d.ts +2 -1
  71. package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
  72. package/dist/components/Select/Select.vue.d.ts +1 -1
  73. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  74. package/dist/components/Upload/Upload.vue.d.ts +1 -1
  75. package/dist/events.client.cjs +2 -2
  76. package/dist/events.client.js +219 -217
  77. package/dist/events.server.js +2 -9
  78. package/dist/events.server.mjs +2 -9
  79. package/dist/legal.client.cjs +1 -1
  80. package/dist/legal.client.js +2565 -2545
  81. package/dist/main.css +1 -1
  82. package/dist/main.d.ts +1 -1
  83. package/dist/modules/backoffice/components/pages/Dashboard.vue.d.ts +6 -0
  84. package/dist/modules/icons/navigation/IconCross.vue.d.ts +4 -0
  85. package/dist/modules/legal/components/pages/legal/EULA.vue.d.ts +2 -0
  86. package/dist/modules/organizations/components/elements/ButtonFollow.vue.d.ts +1 -1
  87. package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +12 -0
  88. package/dist/modules/organizations/components/sections/DetailsTab.vue.d.ts +2 -58
  89. package/dist/modules/organizations/components/sections/Feed.vue.d.ts +1 -1
  90. package/dist/modules/reports/components/pages/BackofficeReports.vue.d.ts +2 -0
  91. package/dist/modules/reports/components/sections/FormReport.vue.d.ts +75 -0
  92. package/dist/modules/reports/store/reports.d.ts +41 -0
  93. package/dist/organizations-a241b21d.js +1 -0
  94. package/dist/organizations-ea9de495.mjs +122 -0
  95. package/dist/organizations.client-292e8444.js +3 -0
  96. package/dist/organizations.client-6fc91683.mjs +3072 -0
  97. package/dist/organizations.client.cjs +1 -1
  98. package/dist/organizations.client.js +51 -49
  99. package/dist/organizations.server.js +20 -28
  100. package/dist/organizations.server.mjs +20 -28
  101. package/dist/prometheus-framework.cjs.js +19 -19
  102. package/dist/prometheus-framework.es.js +1635 -1608
  103. package/dist/reports-270f69df.js +1 -0
  104. package/dist/reports-79cd9459.mjs +91 -0
  105. package/dist/reports.client.cjs +1 -0
  106. package/dist/reports.client.js +8 -0
  107. package/dist/reports.server.js +159 -0
  108. package/dist/reports.server.mjs +160 -0
  109. package/dist/states.validation-02ba0aee.js +1 -0
  110. package/dist/states.validation-e5f4fa3a.mjs +13 -0
  111. package/dist/style.css +1 -1
  112. package/dist/users.client.cjs +1 -1
  113. package/dist/users.client.js +286 -242
  114. package/dist/users.server.js +6 -18
  115. package/dist/users.server.mjs +6 -18
  116. package/package.json +9 -1
  117. package/src/components/Button/Button.vue +66 -60
  118. package/src/components/CardHeader/CardHeader.vue +51 -50
  119. package/src/components/Dropdown/Dropdown.vue +28 -12
  120. package/src/components/FieldPhone/click-outside.js +0 -48
  121. package/src/components/Popup/Popup.vue +74 -23
  122. package/src/components/Select/Select.vue +10 -6
  123. package/src/main.ts +1 -1
  124. package/src/modules/auth/components/pages/EnterPassword.vue +6 -0
  125. package/src/modules/auth/router/auth.js +1 -1
  126. package/src/modules/auth/store/auth.js +1 -1
  127. package/src/modules/backoffice/components/layouts/Backoffice.vue +3 -3
  128. package/src/modules/backoffice/components/pages/Dashboard.vue +62 -0
  129. package/src/modules/backoffice/router/backoffice.js +26 -0
  130. package/src/modules/community/components/blocks/CardBlogpost.vue +3 -0
  131. package/src/modules/community/components/layouts/Community.vue +4 -4
  132. package/src/modules/community/components/pages/CreateBlogPost.vue +27 -28
  133. package/src/modules/community/components/sections/Comments.vue +4 -2
  134. package/src/modules/community/components/sections/Feed.vue +1 -1
  135. package/src/modules/community/controllers/blog.controller.js +22 -3
  136. package/src/modules/community/controllers/comments.controller.js +23 -5
  137. package/src/modules/events/components/blocks/CardEvent.vue +4 -0
  138. package/src/modules/events/components/pages/EditEvent.vue +27 -28
  139. package/src/modules/events/components/sections/Feed.vue +1 -1
  140. package/src/modules/events/controllers/events.controller.js +3 -10
  141. package/src/modules/gallery/components/sections/BackofficeGallery.vue +7 -23
  142. package/src/modules/icons/navigation/IconCross.vue +22 -0
  143. package/src/modules/legal/components/pages/Legal.vue +3 -0
  144. package/src/modules/legal/components/pages/legal/EULA.vue +2148 -0
  145. package/src/modules/legal/router/legal.js +11 -4
  146. package/src/modules/middlewares/client/auth.validation.js +14 -0
  147. package/src/modules/mobile/components/Menu/Menu.vue +1 -1
  148. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  149. package/src/modules/organizations/components/elements/ButtonFollow.vue +9 -7
  150. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +101 -0
  151. package/src/modules/organizations/components/pages/Organization.vue +1 -34
  152. package/src/modules/organizations/components/sections/DetailsTab.vue +86 -8
  153. package/src/modules/organizations/controllers/memberships.controller.js +10 -7
  154. package/src/modules/organizations/controllers/organizations.controller.js +9 -20
  155. package/src/modules/organizations/controllers/utils/addMembersQuantity.js +21 -0
  156. package/src/modules/organizations/controllers/utils/addUserStatusFields.js +65 -0
  157. package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +18 -0
  158. package/src/modules/organizations/models/membership.model.js +5 -5
  159. package/src/modules/organizations/store/memberships.js +6 -6
  160. package/src/modules/organizations/store/organizations.js +0 -1
  161. package/src/modules/products/products.server.js +5 -0
  162. package/src/modules/reports/components/pages/BackofficeReports.vue +67 -0
  163. package/src/modules/reports/components/sections/FormReport.vue +114 -0
  164. package/src/modules/reports/controllers/reports.controller.js +67 -0
  165. package/src/modules/reports/models/report.model.js +58 -0
  166. package/src/modules/reports/reports.client.js +17 -0
  167. package/src/modules/reports/reports.server.js +13 -0
  168. package/src/modules/reports/routes/reports.routes.js +43 -0
  169. package/src/modules/reports/store/reports.js +118 -0
  170. package/src/modules/users/components/pages/Profile.vue +57 -10
  171. package/src/modules/users/controllers/users.controller.js +6 -19
  172. package/src/styles/base/all.scss +2 -0
  173. package/src/styles/layout.scss +39 -63
  174. package/src/styles/theme.scss +0 -1
  175. package/src/styles/components/popup.scss +0 -55
@@ -1,27 +1,28 @@
1
1
  import { resolveComponent as Y, openBlock as i, createElementBlock as p, createElementVNode as o, createVNode as h, normalizeClass as B, unref as c, createCommentVNode as v, withCtx as k, Transition as G, createBlock as I, resolveDynamicComponent as Q, ref as g, onMounted as F, computed as V, createTextVNode as T, createStaticVNode as Z, TransitionGroup as H, Fragment as D, renderList as U, mergeProps as ee, watch as te, toDisplayString as N, watchEffect as se, isRef as W, withAsyncContext as ae, pushScopeId as oe, popScopeId as ne } from "vue";
2
2
  import { useRoute as z, useRouter as A } from "vue-router";
3
- import { S as le } from "./Select-90d4b7c8.mjs";
4
- import { s as M, r as L, c as re, u as q, a as R, b as ie, d as K, _ as ue } from "./Feed-7c8c901a.mjs";
5
- import { e as os, f as ns } from "./Feed-7c8c901a.mjs";
6
- import { s as w } from "./auth-b047fdc0.mjs";
7
- import { _ as ce, a as pe, b as de, c as me } from "./Image-1f7252c0.mjs";
8
- import { c as ge } from "./Chips-9cf6c0da.mjs";
9
- import { r as rs } from "./Chips-9cf6c0da.mjs";
10
- import { _ as _e, S as he, C as fe } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-19e23006.mjs";
11
- import { _ as ve, F as be } from "./Button-d8e72ac0.mjs";
12
- import { a as ye } from "./organizations-aed4245d.mjs";
3
+ import { S as le } from "./Select-11ddabf5.mjs";
4
+ import { s as M, r as L, c as re, u as q, a as R, b as ie, d as K, _ as ue } from "./Feed-76fc4475.mjs";
5
+ import { e as os, f as ns } from "./Feed-76fc4475.mjs";
6
+ import { s as w } from "./auth-98fe3efb.mjs";
7
+ import { _ as ce, a as pe, b as de, c as me } from "./Image-052a3cc2.mjs";
8
+ import { b as ge } from "./IconEdit-c98d3d06.mjs";
9
+ import { _ as _e, S as he, C as fe } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs";
10
+ import { _ as ve, F as be } from "./Button-c59d387c.mjs";
11
+ import { a as ye } from "./organizations-ea9de495.mjs";
13
12
  import { _ as we } from "./EmptyState-34d85f10.mjs";
14
13
  import { _ as X } from "./_plugin-vue_export-helper-dad06003.mjs";
15
- import { _ as xe } from "./Publics-538180a8.mjs";
14
+ import { _ as xe } from "./Publics-f34131bf.mjs";
16
15
  import { useI18n as $e } from "vue-i18n";
17
16
  import "./globals-96ba60e4.mjs";
18
- import "./Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs";
19
- import "./IconEdit-eacf3856.mjs";
20
- import "./index-0ab9d59c.mjs";
17
+ import { r as rs } from "./Chips-2ada5eda.mjs";
18
+ import "./index-a661083c.mjs";
21
19
  import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
22
- import "./CardOrganization-3f4a13d3.mjs";
23
- import "./ButtonFollow-00d85977.mjs";
24
- const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, Ce = { class: "flex-v-center flex-nowrap flex t-left" }, Te = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), Se = { class: "w-100 bg-grey pd-small radius-big mn-semi flex-nowrap flex" }, Be = { class: "" }, Ie = {
20
+ import "./reports-79cd9459.mjs";
21
+ import "./click-outside-6101836c.mjs";
22
+ import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
23
+ import "./CardOrganization-18c1e3fa.mjs";
24
+ import "./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs";
25
+ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, Ce = { class: "flex-v-center flex-nowrap flex t-left" }, Te = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), Se = { class: "w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex" }, Be = { class: "" }, Ie = {
25
26
  __name: "Community",
26
27
  setup(d) {
27
28
  const n = z(), s = A();
@@ -42,15 +43,15 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
42
43
  ]),
43
44
  o("ul", Se, [
44
45
  o("li", {
45
- class: B([{ "t-white bg-black": c(n).params.category === "featured" }, "mn-r-small t-medium pd-thin radius-small"]),
46
+ class: B([{ "t-white bg-black": c(n).params.category === "featured" }, "t-medium pd-thin radius-small"]),
46
47
  onClick: a[1] || (a[1] = (t) => c(s).push({ name: "Blog" }))
47
48
  }, "👑 Featured", 2),
48
49
  o("li", {
49
- class: B([{ "t-white bg-black": c(n).params.category === "popular" }, "mn-r-small t-medium pd-thin radius-small"]),
50
+ class: B([{ "t-white bg-black": c(n).params.category === "popular" }, "t-medium pd-thin radius-small"]),
50
51
  onClick: a[2] || (a[2] = (t) => c(s).push({ name: "Blog", params: { category: "popular" } }))
51
52
  }, "🔥 Popular", 2),
52
53
  o("li", {
53
- class: B([{ "t-white bg-black": c(n).params.category === "new" }, "mn-r-small t-medium pd-thin radius-small"]),
54
+ class: B([{ "t-white bg-black": c(n).params.category === "new" }, "t-medium pd-thin radius-small"]),
54
55
  onClick: a[3] || (a[3] = (t) => c(s).push({ name: "Blog", params: { category: "new" } }))
55
56
  }, "🆕 New", 2),
56
57
  w.user._id ? (i(), p("li", {
@@ -87,13 +88,13 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
87
88
  }, Ne = { class: "w-full h-full" }, ze = {
88
89
  key: 1,
89
90
  class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
90
- }, Oe = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, je = { class: "w-m-66r t-left pd-big bg-white radius-big" }, De = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Final Touches", -1), Ue = /* @__PURE__ */ o("h5", { class: "mn-thin" }, "Add to public:", -1), Ae = {
91
+ }, Oe = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, je = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Final Touches", -1), De = /* @__PURE__ */ o("h5", { class: "mn-thin" }, "Add to public:", -1), Ue = {
91
92
  key: 0,
92
93
  class: "mn-thin"
93
- }, Le = {
94
+ }, Ae = {
94
95
  key: 1,
95
96
  class: "mn-medium br-grey br-2px br-solid pd-small radius-big"
96
- }, Ee = {
97
+ }, Le = {
97
98
  __name: "CreateBlogPost",
98
99
  setup(d) {
99
100
  const n = z(), s = A();
@@ -210,48 +211,47 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
210
211
  h(ge, {
211
212
  title: "Добавить участника",
212
213
  onClosePopup: $,
213
- isPopupOpen: f.value
214
+ isPopupOpen: f.value,
215
+ class: "w-m-33r t-left pd-big bg-white radius-big"
214
216
  }, {
215
217
  default: k(() => [
216
- o("div", je, [
217
- De,
218
- h(_e, {
219
- onTagsChanged: u[4] || (u[4] = (b) => c(e).tags = b),
220
- tags: c(e).tags
221
- }, null, 8, ["tags"]),
222
- Ue,
223
- h(he, {
224
- modelValue: t.value,
225
- "onUpdate:modelValue": u[5] || (u[5] = (b) => t.value = b),
226
- options: c(a),
227
- multiple: !1,
228
- taggable: !1,
229
- placeholder: "Type to search or add tag",
230
- label: "name",
231
- "track-by": "_id",
232
- class: "mn-medium bg-grey radius-medium pd-small"
233
- }, null, 8, ["modelValue", "options"]),
234
- t.value ? (i(), p("h5", Ae, "Options:")) : v("", !0),
235
- t.value ? (i(), p("div", Le, [
236
- h(fe, {
237
- label: "Hide Author",
238
- radio: c(e).creator.hidden,
239
- "onUpdate:radio": u[6] || (u[6] = (b) => c(e).creator.hidden = b),
240
- name: "prices",
241
- class: "w-100"
242
- }, null, 8, ["radio"])
243
- ])) : v("", !0),
244
- h(ve, {
245
- submit: O,
246
- callback: r.redirectTo,
247
- class: "w-100 bg-black t-white"
248
- }, {
249
- default: k(() => [
250
- T("Publish")
251
- ]),
252
- _: 1
253
- }, 8, ["callback"])
254
- ])
218
+ je,
219
+ h(_e, {
220
+ onTagsChanged: u[4] || (u[4] = (b) => c(e).tags = b),
221
+ tags: c(e).tags
222
+ }, null, 8, ["tags"]),
223
+ De,
224
+ h(he, {
225
+ modelValue: t.value,
226
+ "onUpdate:modelValue": u[5] || (u[5] = (b) => t.value = b),
227
+ options: c(a),
228
+ multiple: !1,
229
+ taggable: !1,
230
+ placeholder: "Type to search or add tag",
231
+ label: "name",
232
+ "track-by": "_id",
233
+ class: "mn-medium bg-grey radius-medium pd-small"
234
+ }, null, 8, ["modelValue", "options"]),
235
+ t.value ? (i(), p("h5", Ue, "Options:")) : v("", !0),
236
+ t.value ? (i(), p("div", Ae, [
237
+ h(fe, {
238
+ label: "Hide Author",
239
+ radio: c(e).creator.hidden,
240
+ "onUpdate:radio": u[6] || (u[6] = (b) => c(e).creator.hidden = b),
241
+ name: "prices",
242
+ class: "w-100"
243
+ }, null, 8, ["radio"])
244
+ ])) : v("", !0),
245
+ h(ve, {
246
+ submit: O,
247
+ callback: r.redirectTo,
248
+ class: "w-100 bg-black t-white"
249
+ }, {
250
+ default: k(() => [
251
+ T("Publish")
252
+ ]),
253
+ _: 1
254
+ }, 8, ["callback"])
255
255
  ]),
256
256
  _: 1
257
257
  }, 8, ["isPopupOpen"])
@@ -259,18 +259,18 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
259
259
  }
260
260
  }, J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
261
261
  __proto__: null,
262
- default: Ee
263
- }, Symbol.toStringTag, { value: "Module" })), Ve = {}, He = {
262
+ default: Le
263
+ }, Symbol.toStringTag, { value: "Module" })), Ee = {}, Ve = {
264
264
  width: "100%",
265
265
  height: "20rem",
266
266
  xmlns: "http://www.w3.org/2000/svg"
267
- }, qe = /* @__PURE__ */ Z('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>', 6), Re = [
268
- qe
267
+ }, He = /* @__PURE__ */ Z('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>', 6), qe = [
268
+ He
269
269
  ];
270
- function Je(d, n) {
271
- return i(), p("svg", He, Re);
270
+ function Re(d, n) {
271
+ return i(), p("svg", Ve, qe);
272
272
  }
273
- const Ge = /* @__PURE__ */ X(Ve, [["render", Je]]), Qe = { class: "pd-thin" }, We = {
273
+ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "pd-thin" }, Qe = {
274
274
  __name: "BlogPost",
275
275
  setup(d) {
276
276
  const n = z(), s = g(null), e = g(!0);
@@ -289,14 +289,14 @@ const Ge = /* @__PURE__ */ X(Ve, [["render", Je]]), Qe = { class: "pd-thin" }, W
289
289
  function m(t) {
290
290
  return t.type === "Textarea" ? { innerHTML: t.content, class: "p-medium" } : t.type === "H2" ? { innerHTML: t.content, class: "h3" } : t.type === "Caption" ? { innerHTML: t.content } : t.type === "ImageUpload" ? { src: t.content } : {};
291
291
  }
292
- return (t, _) => (i(), p("section", Qe, [
292
+ return (t, _) => (i(), p("section", Ge, [
293
293
  h(H, {
294
294
  tag: "ul",
295
295
  name: "fade",
296
296
  class: "o-hidden bg-grey radius-big"
297
297
  }, {
298
298
  default: k(() => [
299
- e.value ? (i(), p(D, { key: 0 }, U(3, (l) => h(Ge, { key: l })), 64)) : v("", !0)
299
+ e.value ? (i(), p(D, { key: 0 }, U(3, (l) => h(Je, { key: l })), 64)) : v("", !0)
300
300
  ]),
301
301
  _: 1
302
302
  }),
@@ -353,10 +353,10 @@ const Ge = /* @__PURE__ */ X(Ve, [["render", Je]]), Qe = { class: "pd-thin" }, W
353
353
  })
354
354
  ]));
355
355
  }
356
- }, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
356
+ }, We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
357
357
  __proto__: null,
358
- default: We
359
- }, Symbol.toStringTag, { value: "Module" })), Xe = {
358
+ default: Qe
359
+ }, Symbol.toStringTag, { value: "Module" })), Ke = {
360
360
  __name: "Blog",
361
361
  setup(d) {
362
362
  const n = z(), s = A();
@@ -385,19 +385,19 @@ const Ge = /* @__PURE__ */ X(Ve, [["render", Je]]), Qe = { class: "pd-thin" }, W
385
385
  }, null, 8, ["category", "user", "period"])
386
386
  ]));
387
387
  }
388
- }, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
388
+ }, Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
389
389
  __proto__: null,
390
- default: Xe
391
- }, Symbol.toStringTag, { value: "Module" })), Ze = { class: "w-100 cols-4 t-left flex-nowrap flex" }, et = {
390
+ default: Ke
391
+ }, Symbol.toStringTag, { value: "Module" })), Ye = { class: "w-100 cols-4 t-left flex-nowrap flex" }, Ze = {
392
392
  key: 0,
393
393
  class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
394
- }, tt = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), st = { class: "t-semi uppercase" }, at = /* @__PURE__ */ o("br", null, null, -1), ot = {
394
+ }, et = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), tt = { class: "t-semi uppercase" }, st = /* @__PURE__ */ o("br", null, null, -1), at = {
395
395
  key: 1,
396
396
  class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
397
- }, nt = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "💬", -1), lt = { class: "t-semi uppercase" }, rt = /* @__PURE__ */ o("br", null, null, -1), it = {
397
+ }, ot = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "💬", -1), nt = { class: "t-semi uppercase" }, lt = /* @__PURE__ */ o("br", null, null, -1), rt = {
398
398
  key: 2,
399
399
  class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
400
- }, ut = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), ct = { class: "t-semi uppercase" }, pt = /* @__PURE__ */ o("br", null, null, -1), Xt = {
400
+ }, it = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), ut = { class: "t-semi uppercase" }, ct = /* @__PURE__ */ o("br", null, null, -1), Xt = {
401
401
  __name: "Activity",
402
402
  props: {
403
403
  likes: Number,
@@ -405,34 +405,34 @@ const Ge = /* @__PURE__ */ X(Ve, [["render", Je]]), Qe = { class: "pd-thin" }, W
405
405
  subscriptions: Number
406
406
  },
407
407
  setup(d) {
408
- return (n, s) => (i(), p("section", Ze, [
409
- d.likes ? (i(), p("div", et, [
410
- tt,
411
- o("span", st, [
408
+ return (n, s) => (i(), p("section", Ye, [
409
+ d.likes ? (i(), p("div", Ze, [
410
+ et,
411
+ o("span", tt, [
412
412
  T(N(d.likes), 1),
413
- at,
413
+ st,
414
414
  T("likes")
415
415
  ])
416
416
  ])) : v("", !0),
417
- d.comments ? (i(), p("div", ot, [
418
- nt,
419
- o("span", lt, [
417
+ d.comments ? (i(), p("div", at, [
418
+ ot,
419
+ o("span", nt, [
420
420
  T(N(d.comments), 1),
421
- rt,
421
+ lt,
422
422
  T("comments")
423
423
  ])
424
424
  ])) : v("", !0),
425
- d.subscriptions ? (i(), p("div", it, [
426
- ut,
427
- o("span", ct, [
425
+ d.subscriptions ? (i(), p("div", rt, [
426
+ it,
427
+ o("span", ut, [
428
428
  T(N(d.subscriptions), 1),
429
- pt,
429
+ ct,
430
430
  T("subscriptions")
431
431
  ])
432
432
  ])) : v("", !0)
433
433
  ]));
434
434
  }
435
- }, dt = { class: "pd-thin radius-extra flex-nowrap flex" }, mt = ["innerHTML"], gt = {
435
+ }, pt = { class: "pd-thin radius-extra flex-nowrap flex" }, dt = ["innerHTML"], mt = {
436
436
  __name: "FieldBig",
437
437
  props: {
438
438
  input: String,
@@ -496,7 +496,7 @@ const Ge = /* @__PURE__ */ X(Ve, [["render", Je]]), Qe = { class: "pd-thin" }, W
496
496
  s.enableTyping && E();
497
497
  }), se(() => {
498
498
  l.value || (clearInterval(f.value), clearInterval(S));
499
- }), (x, y) => (i(), p("div", dt, [
499
+ }), (x, y) => (i(), p("div", pt, [
500
500
  h(be, {
501
501
  field: c(t),
502
502
  "onUpdate:field": [
@@ -514,24 +514,24 @@ const Ge = /* @__PURE__ */ X(Ve, [["render", Je]]), Qe = { class: "pd-thin" }, W
514
514
  onClick: O,
515
515
  class: "w-min hover_bg-white hover-t-black t-black bg-main button",
516
516
  innerHTML: d.action
517
- }, null, 8, mt)) : v("", !0)
517
+ }, null, 8, dt)) : v("", !0)
518
518
  ]));
519
519
  }
520
520
  };
521
- const _t = { class: "pd-thin" }, ht = { class: "o-hidden t-black bg-main pd-big radius-big" }, ft = /* @__PURE__ */ o("header", { class: "t-center z-index-1 mn-big" }, [
521
+ const gt = { class: "pd-thin" }, _t = { class: "o-hidden t-black bg-main pd-big radius-big" }, ht = /* @__PURE__ */ o("header", { class: "t-center z-index-1 mn-big" }, [
522
522
  /* @__PURE__ */ o("h2", { class: "mn-l-auto mn-r-auto w-m-40r mn-medium" }, "Stay Updated with The Latest in Cannabis."),
523
523
  /* @__PURE__ */ o("p", { class: "t-transp p-big" }, "Subscribe to our newsletter for news, insights, and more from the Weeder universe.")
524
- ], -1), vt = { class: "z-index-1 mn-big w-100 flex-nowrap flex" }, bt = /* @__PURE__ */ o("div", { class: "w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid" }, [
524
+ ], -1), ft = { class: "z-index-1 mn-big w-100 flex-nowrap flex" }, vt = /* @__PURE__ */ o("div", { class: "w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid" }, [
525
525
  /* @__PURE__ */ o("div", { class: "spiral" })
526
526
  ], -1), Yt = {
527
527
  __name: "SubscribeNewsletter",
528
528
  setup(d) {
529
529
  let n = g("");
530
- return (s, e) => (i(), p("section", _t, [
531
- o("div", ht, [
532
- ft,
533
- o("div", vt, [
534
- h(gt, {
530
+ return (s, e) => (i(), p("section", gt, [
531
+ o("div", _t, [
532
+ ht,
533
+ o("div", ft, [
534
+ h(mt, {
535
535
  input: c(n),
536
536
  typingSpeed: 75,
537
537
  loopTyping: !1,
@@ -543,12 +543,12 @@ const _t = { class: "pd-thin" }, ht = { class: "o-hidden t-black bg-main pd-big
543
543
  class: "mn-l-auto mn-r-auto bg-white t-black w-50"
544
544
  }, null, 8, ["input"])
545
545
  ]),
546
- bt
546
+ vt
547
547
  ])
548
548
  ]));
549
549
  }
550
550
  };
551
- const yt = { class: "container container-joinus" }, wt = { class: "content" }, xt = { class: "h0 mn-big" }, $t = /* @__PURE__ */ o("p", { class: "w-m-33r t-center mn-small p-big" }, "Together, we're shaping the future of the globals cannabis community.", -1), kt = /* @__PURE__ */ o("button", { class: "bg-black t-white button" }, "Join Now", -1), Zt = {
551
+ const bt = { class: "container container-joinus" }, yt = { class: "content" }, wt = { class: "h0 mn-big" }, xt = /* @__PURE__ */ o("p", { class: "w-m-33r t-center mn-small p-big" }, "Together, we're shaping the future of the globals cannabis community.", -1), $t = /* @__PURE__ */ o("button", { class: "bg-black t-white button" }, "Join Now", -1), Zt = {
552
552
  __name: "JoinUs",
553
553
  setup(d) {
554
554
  const n = g(120950), s = g([
@@ -583,16 +583,16 @@ const yt = { class: "container container-joinus" }, wt = { class: "content" }, x
583
583
  });
584
584
  });
585
585
  };
586
- return (t, _) => (i(), p("div", yt, [
587
- o("div", wt, [
588
- o("span", xt, N(n.value.toLocaleString()), 1),
589
- $t,
590
- kt
586
+ return (t, _) => (i(), p("div", bt, [
587
+ o("div", yt, [
588
+ o("span", wt, N(n.value.toLocaleString()), 1),
589
+ xt,
590
+ $t
591
591
  ])
592
592
  ]));
593
593
  }
594
594
  };
595
- const Pt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Ct = { class: "community-feed" }, Tt = /* @__PURE__ */ Pt(() => /* @__PURE__ */ o("h2", { class: "w-m-75r mn-auto pd-t-big pd-b-big t-center" }, "Discover the Vibrant Community", -1)), St = { class: "grid-container" }, Bt = {
595
+ const kt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Pt = { class: "community-feed" }, Ct = /* @__PURE__ */ kt(() => /* @__PURE__ */ o("h2", { class: "w-m-75r mn-auto pd-t-big pd-b-big t-center" }, "Discover the Vibrant Community", -1)), Tt = { class: "grid-container" }, St = {
596
596
  __name: "HotPosts",
597
597
  async setup(d) {
598
598
  let n, s;
@@ -618,9 +618,9 @@ const Pt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Ct = { class: "comm
618
618
  return "";
619
619
  }
620
620
  };
621
- return (t, _) => (i(), p("section", Ct, [
622
- Tt,
623
- o("div", St, [
621
+ return (t, _) => (i(), p("section", Pt, [
622
+ Ct,
623
+ o("div", Tt, [
624
624
  (i(!0), p(D, null, U(e.value, (l, f) => (i(), I(K, {
625
625
  blogpost: l,
626
626
  owner: w.user._id,
@@ -630,7 +630,7 @@ const Pt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Ct = { class: "comm
630
630
  ])
631
631
  ]));
632
632
  }
633
- }, es = /* @__PURE__ */ X(Bt, [["__scopeId", "data-v-18db0d1b"]]), ts = [
633
+ }, es = /* @__PURE__ */ X(St, [["__scopeId", "data-v-18db0d1b"]]), ts = [
634
634
  {
635
635
  path: "community",
636
636
  component: Ie,
@@ -651,7 +651,7 @@ const Pt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Ct = { class: "comm
651
651
  },
652
652
  title_hide: !0
653
653
  },
654
- component: () => Promise.resolve().then(() => Ye)
654
+ component: () => Promise.resolve().then(() => Xe)
655
655
  }]
656
656
  },
657
657
  {
@@ -675,7 +675,7 @@ const Pt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Ct = { class: "comm
675
675
  ru: "Пост"
676
676
  }
677
677
  },
678
- component: () => Promise.resolve().then(() => Ke)
678
+ component: () => Promise.resolve().then(() => We)
679
679
  },
680
680
  {
681
681
  path: "community/posts/:url/edit",
@@ -692,12 +692,12 @@ const Pt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Ct = { class: "comm
692
692
  ];
693
693
  export {
694
694
  Xt as Activity,
695
- Xe as Blog,
696
- We as BlogPost,
695
+ Ke as Blog,
696
+ Qe as BlogPost,
697
697
  K as CardBlogpost,
698
698
  de as Comments,
699
699
  Ie as Community,
700
- Ee as CreateBlogPost,
700
+ Le as CreateBlogPost,
701
701
  ue as Feed,
702
702
  os as FooterBlogpost,
703
703
  es as HotPosts,
@@ -5,6 +5,20 @@ const require$$1 = require("mongoose");
5
5
  const index = require("./index-21dfdbd9.js");
6
6
  require("jsonwebtoken");
7
7
  require("mongodb");
8
+ async function getBlockedMembers$1(Membership, userId) {
9
+ const memberships = await Membership.find({ user: userId });
10
+ return memberships.filter((membership) => membership.role === "blocked").map((membership) => membership.target);
11
+ }
12
+ function addConditionsForBlocked$1(matchStage, field, blockedMembers) {
13
+ const conditionsForBlocked = { "$nin": blockedMembers };
14
+ if (matchStage[field]) {
15
+ matchStage[field] = { "$eq": matchStage[field], ...conditionsForBlocked };
16
+ } else {
17
+ matchStage[field] = conditionsForBlocked;
18
+ }
19
+ }
20
+ var excludeBlockedMembers = { getBlockedMembers: getBlockedMembers$1, addConditionsForBlocked: addConditionsForBlocked$1 };
21
+ const { getBlockedMembers, addConditionsForBlocked } = excludeBlockedMembers;
8
22
  const controllerFactory$3 = (db) => {
9
23
  const Blogpost = db.blogpost;
10
24
  db.organization;
@@ -29,6 +43,14 @@ const controllerFactory$3 = (db) => {
29
43
  if (req.query.creator) {
30
44
  matchStage["creator.target"] = new db.mongoose.Types.ObjectId(req.query.creator);
31
45
  }
46
+ if (req.query.user) {
47
+ const blockedMembers = await getBlockedMembers(Membership, req.query.user);
48
+ console.log(blockedMembers);
49
+ if (blockedMembers.length > 0) {
50
+ addConditionsForBlocked(matchStage, "owner.target", blockedMembers);
51
+ addConditionsForBlocked(matchStage, "creator.target", blockedMembers);
52
+ }
53
+ }
32
54
  if (req.query.tags) {
33
55
  matchStage["tags"] = { $in: req.query.tags.split(",") };
34
56
  }
@@ -75,7 +97,6 @@ const controllerFactory$3 = (db) => {
75
97
  }
76
98
  }
77
99
  query.push({ $match: matchStage });
78
- console.log(matchStage);
79
100
  query.push({
80
101
  $lookup: {
81
102
  from: "comments",
@@ -244,11 +265,20 @@ const controllerFactory$3 = (db) => {
244
265
  var blog_controller = controllerFactory$3;
245
266
  const commentControllerFactory = (db) => {
246
267
  const Comment = db.comment;
268
+ const Membership = db.membership;
247
269
  const read = async (req, res) => {
248
270
  try {
249
- const comments = await Comment.find({ target: req.query.target }).populate({
271
+ let conditions = { target: req.query.target };
272
+ if (req.query.user) {
273
+ const memberships = await Membership.find({ user: req.query.user });
274
+ const blockedMembers = memberships.filter((membership) => membership.role === "blocked").map((membership) => membership.target);
275
+ if (blockedMembers.length > 0) {
276
+ conditions.user = { "$nin": blockedMembers };
277
+ }
278
+ }
279
+ const comments = await Comment.find(conditions).populate({
250
280
  path: "user",
251
- select: "username profile.photo _id"
281
+ select: "username profile.photo profile.name _id"
252
282
  });
253
283
  if (!comments) {
254
284
  return res.status(404).send({ message: "Comments not found." });
@@ -275,7 +305,7 @@ const commentControllerFactory = (db) => {
275
305
  const data = await comment.save();
276
306
  const populatedComment = await Comment.findOne({ _id: data._id }).populate({
277
307
  path: "user",
278
- select: "username profile.photo _id"
308
+ select: "username profile.photo profile.name _id"
279
309
  });
280
310
  res.status(200).send(populatedComment);
281
311
  } catch (err) {
@@ -289,7 +319,7 @@ const commentControllerFactory = (db) => {
289
319
  try {
290
320
  const comment = await Comment.findByIdAndUpdate(req.params._id, req.body, { new: true }).populate({
291
321
  path: "user",
292
- select: "username profile.photo _id"
322
+ select: "username profile.photo profile.name _id"
293
323
  });
294
324
  if (!comment) {
295
325
  return res.status(404).send({ message: "Comment not found." });
@@ -4,6 +4,20 @@ import require$$1 from "mongoose";
4
4
  import { s as server$1 } from "./index-fa8d5df4.mjs";
5
5
  import "jsonwebtoken";
6
6
  import "mongodb";
7
+ async function getBlockedMembers$1(Membership, userId) {
8
+ const memberships = await Membership.find({ user: userId });
9
+ return memberships.filter((membership) => membership.role === "blocked").map((membership) => membership.target);
10
+ }
11
+ function addConditionsForBlocked$1(matchStage, field, blockedMembers) {
12
+ const conditionsForBlocked = { "$nin": blockedMembers };
13
+ if (matchStage[field]) {
14
+ matchStage[field] = { "$eq": matchStage[field], ...conditionsForBlocked };
15
+ } else {
16
+ matchStage[field] = conditionsForBlocked;
17
+ }
18
+ }
19
+ var excludeBlockedMembers = { getBlockedMembers: getBlockedMembers$1, addConditionsForBlocked: addConditionsForBlocked$1 };
20
+ const { getBlockedMembers, addConditionsForBlocked } = excludeBlockedMembers;
7
21
  const controllerFactory$3 = (db) => {
8
22
  const Blogpost = db.blogpost;
9
23
  db.organization;
@@ -28,6 +42,14 @@ const controllerFactory$3 = (db) => {
28
42
  if (req.query.creator) {
29
43
  matchStage["creator.target"] = new db.mongoose.Types.ObjectId(req.query.creator);
30
44
  }
45
+ if (req.query.user) {
46
+ const blockedMembers = await getBlockedMembers(Membership, req.query.user);
47
+ console.log(blockedMembers);
48
+ if (blockedMembers.length > 0) {
49
+ addConditionsForBlocked(matchStage, "owner.target", blockedMembers);
50
+ addConditionsForBlocked(matchStage, "creator.target", blockedMembers);
51
+ }
52
+ }
31
53
  if (req.query.tags) {
32
54
  matchStage["tags"] = { $in: req.query.tags.split(",") };
33
55
  }
@@ -74,7 +96,6 @@ const controllerFactory$3 = (db) => {
74
96
  }
75
97
  }
76
98
  query.push({ $match: matchStage });
77
- console.log(matchStage);
78
99
  query.push({
79
100
  $lookup: {
80
101
  from: "comments",
@@ -243,11 +264,20 @@ const controllerFactory$3 = (db) => {
243
264
  var blog_controller = controllerFactory$3;
244
265
  const commentControllerFactory = (db) => {
245
266
  const Comment = db.comment;
267
+ const Membership = db.membership;
246
268
  const read = async (req, res) => {
247
269
  try {
248
- const comments = await Comment.find({ target: req.query.target }).populate({
270
+ let conditions = { target: req.query.target };
271
+ if (req.query.user) {
272
+ const memberships = await Membership.find({ user: req.query.user });
273
+ const blockedMembers = memberships.filter((membership) => membership.role === "blocked").map((membership) => membership.target);
274
+ if (blockedMembers.length > 0) {
275
+ conditions.user = { "$nin": blockedMembers };
276
+ }
277
+ }
278
+ const comments = await Comment.find(conditions).populate({
249
279
  path: "user",
250
- select: "username profile.photo _id"
280
+ select: "username profile.photo profile.name _id"
251
281
  });
252
282
  if (!comments) {
253
283
  return res.status(404).send({ message: "Comments not found." });
@@ -274,7 +304,7 @@ const commentControllerFactory = (db) => {
274
304
  const data = await comment.save();
275
305
  const populatedComment = await Comment.findOne({ _id: data._id }).populate({
276
306
  path: "user",
277
- select: "username profile.photo _id"
307
+ select: "username profile.photo profile.name _id"
278
308
  });
279
309
  res.status(200).send(populatedComment);
280
310
  } catch (err) {
@@ -288,7 +318,7 @@ const commentControllerFactory = (db) => {
288
318
  try {
289
319
  const comment = await Comment.findByIdAndUpdate(req.params._id, req.body, { new: true }).populate({
290
320
  path: "user",
291
- select: "username profile.photo _id"
321
+ select: "username profile.photo profile.name _id"
292
322
  });
293
323
  if (!comment) {
294
324
  return res.status(404).send({ message: "Comment not found." });
@@ -22,6 +22,7 @@ declare const _default: {
22
22
  readonly submit?: Function | undefined;
23
23
  readonly callback?: Function | undefined;
24
24
  readonly callbackDelay?: number | undefined;
25
+ readonly showSucces?: boolean | undefined;
25
26
  };
26
27
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
27
28
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -49,6 +50,7 @@ declare const _default: {
49
50
  readonly submit?: Function | undefined;
50
51
  readonly callback?: Function | undefined;
51
52
  readonly callbackDelay?: number | undefined;
53
+ readonly showSucces?: boolean | undefined;
52
54
  };
53
55
  }> & {} & import("vue").ComponentCustomProperties & {};
54
56
  __isFragment?: undefined;
@@ -60,6 +62,7 @@ declare const _default: {
60
62
  readonly submit?: Function | undefined;
61
63
  readonly callback?: Function | undefined;
62
64
  readonly callbackDelay?: number | undefined;
65
+ readonly showSucces?: boolean | undefined;
63
66
  };
64
67
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
65
68
  $slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.vue"],"names":[],"mappings":"AAiKA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;CAmId,CAAA;AAGD,OAAO,mIAAmI,CAAA;AAE1I,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.vue"],"names":[],"mappings":"AA2JA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiId,CAAA;AAGD,OAAO,mIAAmI,CAAA;AAE1I,eAAe,SAAS,CAAA"}
@@ -1,6 +1,9 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
2
  $props: {
3
3
  readonly type?: any;
4
+ readonly entity?: any;
5
+ readonly entityType?: any;
6
+ readonly user?: any;
4
7
  readonly date?: any;
5
8
  readonly dateFormatted?: any;
6
9
  readonly owner?: any;