@ozdao/prometheus-framework 0.2.38 → 0.2.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (278) hide show
  1. package/dist/auth.server.js +1 -2
  2. package/dist/auth.server.mjs +1 -2
  3. package/dist/files.server.js +1 -2
  4. package/dist/files.server.mjs +1 -2
  5. package/dist/globals.server.js +1 -1
  6. package/dist/globals.server.mjs +1 -1
  7. package/dist/mailing-10560277.mjs +78 -0
  8. package/dist/mailing-902d13d5.js +77 -0
  9. package/dist/main.css +1 -1
  10. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Button/Button.vue.js +225 -2
  12. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -225
  14. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
  16. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
  18. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +13 -9
  20. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
  21. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -0
  22. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +26 -22
  24. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +29 -30
  26. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Field/Field.vue.js +76 -2
  28. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -76
  30. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  32. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -70
  34. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
  36. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -95
  38. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -0
  39. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +69 -0
  40. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
  42. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
  44. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  46. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +10 -7
  48. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +18 -15
  50. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  52. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +16 -13
  54. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  56. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +23 -20
  58. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +1 -1
  60. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/auth/store/auth.js +8 -8
  62. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/community/community.client.js +18 -20
  64. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +88 -62
  66. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +97 -68
  68. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +35 -34
  70. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +18 -18
  72. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
  73. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +5 -5
  75. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +4 -4
  77. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +65 -19
  79. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +9 -9
  81. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +8 -7
  83. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -6
  85. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  86. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
  87. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  88. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -65
  89. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +64 -70
  91. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
  92. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  96. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +5 -5
  98. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +6 -5
  100. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  102. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  104. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +43 -42
  106. package/dist/prometheus-framework/src/modules/icons/entities/IconFeatured.vue.cjs +1 -0
  107. package/dist/prometheus-framework/src/modules/icons/entities/IconFeatured.vue.js +30 -0
  108. package/dist/prometheus-framework/src/modules/icons/entities/IconFollowing.vue.cjs +1 -0
  109. package/dist/prometheus-framework/src/modules/icons/entities/IconFollowing.vue.js +47 -0
  110. package/dist/prometheus-framework/src/modules/icons/entities/IconPopular.vue.cjs +1 -0
  111. package/dist/prometheus-framework/src/modules/icons/entities/IconPopular.vue.js +28 -0
  112. package/dist/prometheus-framework/src/modules/icons/entities/IconRecent.vue.cjs +1 -0
  113. package/dist/prometheus-framework/src/modules/icons/entities/IconRecent.vue.js +45 -0
  114. package/dist/prometheus-framework/src/modules/icons/navigation/IconArrow.vue.cjs +1 -0
  115. package/dist/prometheus-framework/src/modules/icons/navigation/IconArrow.vue.js +32 -0
  116. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +3 -3
  118. package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.js +25 -14
  120. package/dist/prometheus-framework/src/modules/icons/navigation/IconEllipsis.vue.cjs +1 -0
  121. package/dist/prometheus-framework/src/modules/icons/navigation/IconEllipsis.vue.js +44 -0
  122. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +90 -67
  124. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  126. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
  132. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +45 -42
  134. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +6 -6
  140. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  142. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
  144. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +60 -55
  148. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  150. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +18 -17
  158. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +20 -21
  160. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +7 -7
  161. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  163. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  165. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  167. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  169. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +6 -6
  171. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  175. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +37 -34
  179. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +23 -23
  181. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  183. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
  184. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +6 -6
  186. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  188. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  190. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +31 -30
  194. package/dist/prometheus-framework.cjs.js +20 -20
  195. package/dist/prometheus-framework.es.js +1003 -999
  196. package/dist/style.css +1 -1
  197. package/package.json +1 -1
  198. package/src/components/Button/Button.vue +2 -3
  199. package/src/components/Chips/Chips.vue +9 -3
  200. package/src/components/Dropdown/Dropdown.vue +9 -3
  201. package/src/components/Feed/Feed.vue +7 -11
  202. package/src/components/Feed/Masonry.vue +177 -0
  203. package/src/components/FieldBig/FieldBig.vue +3 -3
  204. package/src/components/LocationSelection/LocationSelection.vue +1 -1
  205. package/src/components/Navigation/Navigation.vue +2 -0
  206. package/src/components/Shader/Shader.vue +161 -116
  207. package/src/components/Slider/Slider.vue +92 -0
  208. package/src/modules/applications/applications.client.js +2 -0
  209. package/src/modules/applications/components/sections/SubscribeNewsletter.vue +114 -0
  210. package/src/modules/applications/controllers/applications.controller.js +125 -136
  211. package/src/modules/applications/models/application.model.js +22 -7
  212. package/src/modules/applications/routes/applications.routes.js +29 -13
  213. package/src/modules/auth/components/pages/EnterCode.vue +4 -1
  214. package/src/modules/auth/components/pages/EnterPassword.vue +4 -1
  215. package/src/modules/auth/components/pages/ResetPassword.vue +4 -1
  216. package/src/modules/auth/components/pages/SignUp.vue +4 -1
  217. package/src/modules/auth/controllers/auth.controller.js +2 -3
  218. package/src/modules/auth/localization/SignUp.json +1 -1
  219. package/src/modules/auth/store/auth.js +3 -5
  220. package/src/modules/chats/components/blocks/ChatMessage.vue +3 -2
  221. package/src/modules/chats/components/pages/ChatPage.vue +6 -6
  222. package/src/modules/chats/components/sections/ChatWindow.vue +57 -12
  223. package/src/modules/chats/store/chat.store.js +6 -1
  224. package/src/modules/community/community.client.js +0 -2
  225. package/src/modules/community/components/blocks/CardBlogpost.vue +71 -33
  226. package/src/modules/community/components/layouts/Community.vue +63 -24
  227. package/src/modules/community/components/pages/Blog.vue +37 -0
  228. package/src/modules/community/components/pages/BlogPost.vue +5 -6
  229. package/src/modules/community/components/pages/Community.vue +1 -0
  230. package/src/modules/community/components/sections/Feed.vue +1 -1
  231. package/src/modules/community/components/sections/HotPosts.vue +64 -24
  232. package/src/modules/community/components/sections/JoinUs.vue +4 -5
  233. package/src/modules/community/store/blogposts.js +1 -0
  234. package/src/modules/constructor/components/elements/Embed.vue +7 -6
  235. package/src/modules/constructor/components/elements/Image.vue +2 -2
  236. package/src/modules/constructor/components/elements/Textarea.vue +1 -1
  237. package/src/modules/constructor/components/sections/Constructor.vue +2 -18
  238. package/src/modules/files/middlewares/server/middlewareBusboy.js +1 -1
  239. package/src/modules/files/routes/files.routes.js +9 -1
  240. package/src/modules/globals/components/blocks/CardHeader.vue +6 -3
  241. package/src/modules/globals/utils/mailing.js +12 -0
  242. package/src/modules/icons/entities/IconEarn.vue +20 -0
  243. package/src/modules/icons/entities/IconFeatured.vue +14 -0
  244. package/src/modules/icons/entities/IconFollowing.vue +17 -0
  245. package/src/modules/icons/entities/IconPopular.vue +14 -0
  246. package/src/modules/icons/entities/IconRecent.vue +17 -0
  247. package/src/modules/icons/navigation/IconAdd.vue +1 -3
  248. package/src/modules/icons/navigation/IconArrow.vue +21 -0
  249. package/src/modules/icons/navigation/IconCheckmark.vue +16 -0
  250. package/src/modules/icons/navigation/IconChevronRight.vue +2 -2
  251. package/src/modules/icons/navigation/IconEdit.vue +16 -2
  252. package/src/modules/icons/navigation/IconEllipsis.vue +16 -0
  253. package/src/modules/icons/placeholders/PlaceholderChat.vue +9 -0
  254. package/src/modules/landing/components/sections/MobileApp.vue +38 -21
  255. package/src/modules/landing/components/sections/SectionEarn.vue +104 -0
  256. package/src/modules/landing/components/sections/SectionFeatures.vue +80 -0
  257. package/src/modules/landing/components/sections/{Guide.vue → SectionGuide.vue} +1 -1
  258. package/src/modules/landing/components/sections/SectionHeroToken.vue +138 -0
  259. package/src/modules/landing/components/sections/SectionRoadmap.vue +108 -0
  260. package/src/modules/marketplace/components/layouts/Marketplace.vue +2 -2
  261. package/src/modules/orders/components/blocks/StatusHistory.vue +7 -1
  262. package/src/modules/orders/components/pages/Order.vue +3 -4
  263. package/src/modules/organizations/components/blocks/CardOrganization.vue +6 -6
  264. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  265. package/src/modules/organizations/components/sections/DetailsTab.vue +42 -43
  266. package/src/modules/organizations/components/sections/Publics.vue +3 -4
  267. package/src/modules/products/components/sections/HeroRecommendation.vue +9 -170
  268. package/src/modules/products/components/sections/MenuSection.vue +4 -4
  269. package/src/modules/products/components/sections/PopularProducts.vue +3 -3
  270. package/src/modules/spots/components/layouts/Spots.vue +2 -2
  271. package/src/modules/wallet/components/pages/Wallet.vue +1 -1
  272. package/src/styles/base/all.scss +4 -0
  273. package/src/styles/base/backgrounds.scss +2 -2
  274. package/src/styles/base/shadow_transitions_hover_refactor.scss +11 -1
  275. package/src/styles/typography.scss +19 -12
  276. package/src/modules/community/components/sections/SubscribeNewsletter.vue +0 -67
  277. package/src/modules/constructor/components/elements/Youtube.vue +0 -52
  278. package/src/modules/landing/components/sections/HeroGovernance.vue +0 -156
@@ -1,102 +1,128 @@
1
- import { computed as d, openBlock as o, createElementBlock as l, createBlock as p, withModifiers as v, createCommentVNode as s, createVNode as f, normalizeClass as k, createElementVNode as a, createTextVNode as x, unref as w, toDisplayString as i, renderSlot as B } from "vue";
2
- import E from "../../../globals/components/blocks/CardHeader.vue.js";
3
- import P from "./FooterBlogpost.vue.js";
4
- import V from "../../../../components/Chips/Chips.vue.js";
5
- import $ from "../../../icons/navigation/IconEdit.vue.js";
6
- import { useRouter as C } from "vue-router";
7
- const z = { class: "pos-relative bg-grey radius-big" }, I = ["src"], N = {
1
+ import { computed as u, resolveComponent as v, openBlock as t, createElementBlock as l, createBlock as f, withCtx as x, createVNode as r, createCommentVNode as s, normalizeClass as k, createElementVNode as m, createTextVNode as w, unref as B, toDisplayString as d, renderSlot as C } from "vue";
2
+ import P from "../../../globals/components/blocks/CardHeader.vue.js";
3
+ import V from "./FooterBlogpost.vue.js";
4
+ import E from "../../../../components/Text/Text.vue.js";
5
+ import $ from "../../../../components/Chips/Chips.vue.js";
6
+ import S from "../../../icons/navigation/IconEdit.vue.js";
7
+ import { useRouter as N } from "vue-router";
8
+ const R = { class: "pos-relative bg-grey radius-big flex-column flex" }, T = ["src"], j = {
8
9
  key: 2,
9
10
  class: "flex-center flex"
10
- }, R = {
11
+ }, z = {
11
12
  controls: "",
12
- class: "mn-b-medium object-fit-cover w-100 h-20r"
13
- }, T = ["src"], S = { class: "pd-t-zero pd-medium" }, j = {
13
+ class: "mn-b-medium object-fit-cover w-100 h-min-10r h-max-20r"
14
+ }, D = ["src"], I = { class: "pd-t-zero pd-medium" }, L = {
14
15
  key: 0,
15
16
  class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
16
- }, L = {
17
+ }, U = {
17
18
  key: 0,
18
19
  class: "pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"
19
- }, U = {
20
+ }, A = {
20
21
  key: 1,
21
22
  class: "mn-b-small t-transp p-big"
22
- }, A = {
23
+ }, F = {
23
24
  key: 2,
24
25
  class: "mn-b-small h2"
25
- }, H = {
26
+ }, Q = {
26
27
  __name: "CardBlogpost",
27
- props: ["blogpost", "user", "type"],
28
- setup(t) {
29
- const h = C(), c = t, r = d(() => c.blogpost.content.find((e) => e.type === "ImageUpload")), u = d(() => c.blogpost.content.find((e) => e.type === "Video")), m = d(() => c.blogpost.content.find((e) => e.type === "Textarea"));
30
- return (e, n) => {
31
- var g, b;
32
- return o(), l("article", z, [
33
- t.user && t.user === t.blogpost.creator.target._id ? (o(), p($, {
28
+ props: {
29
+ blogpost: {
30
+ type: Object
31
+ },
32
+ user: {
33
+ type: String
34
+ },
35
+ type: {
36
+ type: String
37
+ },
38
+ hideDescription: {
39
+ type: Boolean,
40
+ default: !1
41
+ }
42
+ },
43
+ setup(e) {
44
+ const h = N(), a = e, n = u(() => a.blogpost.content.find((o) => o.type === "ImageUpload")), i = u(() => a.blogpost.content.find((o) => o.type === "Video")), c = u(() => a.blogpost.content.find((o) => o.type === "Textarea"));
45
+ return (o, g) => {
46
+ var p, b;
47
+ const y = v("router-link");
48
+ return t(), l("article", R, [
49
+ e.user && e.user === e.blogpost.creator.target._id ? (t(), f(y, {
34
50
  key: 0,
35
- onClick: n[0] || (n[0] = v((y) => e.$router.push({
51
+ to: {
36
52
  name: "Edit BlogPost",
37
53
  params: {
38
- url: t.blogpost.url
54
+ url: e.blogpost.url
39
55
  }
40
- }), ["stop"])),
41
- class: "z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
42
- })) : s("", !0),
43
- f(E, {
56
+ },
57
+ class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
58
+ }, {
59
+ default: x(() => [
60
+ r(S, {
61
+ class: "i-regular",
62
+ classes: "fill-white"
63
+ })
64
+ ]),
65
+ _: 1
66
+ }, 8, ["to"])) : s("", !0),
67
+ r(P, {
44
68
  class: k({
45
- "mn-b-small pd-medium": t.type !== "short",
46
- "flex-child-order-last flex-child mn-l-small": t.type === "short"
69
+ "mn-b-small pd-medium": e.type !== "short",
70
+ "flex-child-order-last flex-child mn-l-small": e.type === "short"
47
71
  }),
48
- entity: t.blogpost,
72
+ entity: e.blogpost,
49
73
  entityType: "blogpost",
50
- user: t.user,
51
- owner: t.blogpost.owner,
52
- creator: t.blogpost.creator,
53
- date: t.blogpost.createdAt
74
+ user: e.user,
75
+ owner: e.blogpost.owner,
76
+ creator: e.blogpost.creator,
77
+ date: e.blogpost.createdAt
54
78
  }, null, 8, ["class", "entity", "user", "owner", "creator", "date"]),
55
- r.value && r.value.content && t.type !== "blogpostPage" ? (o(), l("img", {
79
+ n.value && n.value.content && e.type !== "blogpostPage" ? (t(), l("img", {
56
80
  key: 1,
57
- src: (e.FILE_SERVER_URL || "") + r.value.content,
81
+ src: (o.FILE_SERVER_URL || "") + n.value.content,
58
82
  alt: "Blog post image",
59
- class: "mn-b-medium object-fit-cover w-100 h-20r"
60
- }, null, 8, I)) : s("", !0),
61
- !((g = r.value) != null && g.content) && u.value && u.value.content && t.type !== "blogpostPage" ? (o(), l("div", N, [
62
- a("video", R, [
63
- a("source", {
64
- src: u.value.content,
83
+ class: "mn-b-medium object-fit-cover w-100 h-min-10r h-100"
84
+ }, null, 8, T)) : s("", !0),
85
+ !((p = n.value) != null && p.content) && i.value && i.value.content && e.type !== "blogpostPage" ? (t(), l("div", j, [
86
+ m("video", z, [
87
+ m("source", {
88
+ src: i.value.content,
65
89
  type: "video/mp4"
66
- }, null, 8, T),
67
- x(" Your browser does not support the video tag. ")
90
+ }, null, 8, D),
91
+ w(" Your browser does not support the video tag. ")
68
92
  ])
69
93
  ])) : s("", !0),
70
- a("section", S, [
71
- t.type !== "blogpostPage" ? (o(), l("div", j, [
72
- a("h3", {
73
- onClick: n[1] || (n[1] = (y) => w(h).push({
94
+ m("section", I, [
95
+ e.type !== "blogpostPage" ? (t(), l("div", L, [
96
+ r(E, {
97
+ text: e.blogpost.name || "",
98
+ maxLen: 80,
99
+ class: "h3 d-block",
100
+ onClick: g[0] || (g[0] = (O) => B(h).push({
74
101
  name: "BlogPost",
75
102
  params: {
76
- url: t.blogpost.url
103
+ url: e.blogpost.url
77
104
  }
78
- })),
79
- class: ""
80
- }, i(t.blogpost.name), 1),
81
- t.blogpost.status === "draft" ? (o(), l("div", L, i(t.blogpost.status), 1)) : s("", !0)
105
+ }))
106
+ }, null, 8, ["text"]),
107
+ e.blogpost.status === "draft" ? (t(), l("div", U, d(e.blogpost.status), 1)) : s("", !0)
82
108
  ])) : s("", !0),
83
- m.value && m.value.content && t.type !== "blogpostPage" ? (o(), l("p", U, i(m.value.content.slice(0, 120)) + "... ", 1)) : s("", !0),
84
- t.type === "blogpostPage" ? (o(), l("h3", A, i(t.blogpost.name), 1)) : s("", !0),
85
- B(e.$slots, "default"),
86
- t.type !== "short" && ((b = t.blogpost.tags) == null ? void 0 : b.length) > 0 ? (o(), p(V, {
109
+ c.value && c.value.content && e.type !== "blogpostPage" && !e.hideDescription ? (t(), l("p", A, d(c.value.content.slice(0, 120)) + "... ", 1)) : s("", !0),
110
+ e.type === "blogpostPage" ? (t(), l("h3", F, d(e.blogpost.name), 1)) : s("", !0),
111
+ C(o.$slots, "default"),
112
+ e.type !== "short" && ((b = e.blogpost.tags) == null ? void 0 : b.length) > 0 ? (t(), f($, {
87
113
  key: 3,
88
- chips: t.blogpost.tags
114
+ chips: e.blogpost.tags
89
115
  }, null, 8, ["chips"])) : s("", !0)
90
116
  ]),
91
- f(P, {
117
+ r(V, {
92
118
  class: "pd-t-zero pd-medium",
93
- blogpost: t.blogpost,
94
- user: t.user
119
+ blogpost: e.blogpost,
120
+ user: e.user
95
121
  }, null, 8, ["blogpost", "user"])
96
122
  ]);
97
123
  };
98
124
  }
99
125
  };
100
126
  export {
101
- H as default
127
+ Q as default
102
128
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router"),f=require("../../../../components/Select/Select.vue2.cjs"),g=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),m=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),u=require("../../../organizations/store/organizations.cjs"),b=require("../../../organizations/store/memberships.cjs"),w={style:{"grid-template-columns":"1fr 3fr 1fr"},class:"cols-3 gap-thin pd-thin"},_={class:"w-100 bg-grey radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex"},k={class:"pos-relative"},y={class:"bg-black t-white radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex"},v={class:"pos-relative flex-v-center flex-nowrap flex t-left"},C=e.createElementVNode("span",{class:""},"Topics for ",-1),N={class:"bg-grey radius-big pd-medium"},x=e.createElementVNode("div",{class:"gap-thin flex-nowrap flex"},[e.createElementVNode("p",{class:"mn-b-small"},"POPULAR COMMUNITIES"),e.createElementVNode("button",{class:"radius-extra flex-center flex i-medium bg-main"},"+")],-1),V={__name:"Community",setup(E){const r=d.useRoute(),a=d.useRouter(),p=({membership:c,status:o,target:n},l,t)=>{b.mutations.handleMembershipUpdate(u.state.current,c,o,n,l,t)};return(c,o)=>{const n=e.resolveComponent("router-link"),l=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",w,[e.createElementVNode("ul",_,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="featured"},"cursor-pointer t-medium pd-thin radius-small"]),onClick:o[0]||(o[0]=t=>e.unref(a).push({name:"Blog",params:{category:"featured"}}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="popular"},"cursor-pointer t-medium pd-thin radius-small"]),onClick:o[1]||(o[1]=t=>e.unref(a).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="new"},"cursor-pointer t-medium pd-thin radius-small"]),onClick:o[2]||(o[2]=t=>e.unref(a).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),i.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="following"},"cursor-pointer t-medium pd-thin radius-small"]),onClick:o[3]||(o[3]=t=>e.unref(a).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0),e.createVNode(n,{to:{name:"Create BlogPost"},class:"button mn-t-small bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode("Create Post")]),_:1})]),e.createElementVNode("section",k,[e.createElementVNode("header",y,[e.createElementVNode("h2",v,[C,e.createVNode(f.default,{options:["today","week","month","year"],select:m.state.filter.period,"onUpdate:select":o[4]||(o[4]=t=>m.state.filter.period=t),placeholder:"Select type",class:"pos-relative w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createVNode(l,null,{default:e.withCtx(({Component:t,route:s})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{ref:"page",key:s.query}))]),_:2},1024)]),_:1})]),e.createElementVNode("div",N,[x,e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createVNode(g.default,{states:{empty:{title:"No Organization Found",description:"Currently, there are no organization available."}},store:{read:t=>u.actions.read(t),state:u.state},options:{user:i.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,s=>(e.openBlock(),e.createBlock(h.default,{key:s._id,organization:s,user:i.state.user,showProducts:!1,showRating:!1,showFeatured:!1,showFollowers:!1,onUpdateMembership:p,class:"mn-b-thin w-100 pd-0 bg-white radius-big o-hidden"},null,8,["organization","user"]))),128))]),_:1},8,["states","store","options"])]),_:1})])])}}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router"),f=require("../../../../components/Select/Select.vue.cjs"),g=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),x=require("../../../icons/entities/IconFeatured.vue.cjs"),b=require("../../../icons/entities/IconPopular.vue.cjs"),_=require("../../../icons/entities/IconRecent.vue.cjs"),w=require("../../../icons/entities/IconFollowing.vue.cjs"),m=require("../../store/blogposts.cjs"),l=require("../../../auth/store/auth.cjs"),c=require("../../../organizations/store/organizations.cjs"),k=require("../../../organizations/store/memberships.cjs"),N={style:{"grid-template-columns":"1fr 3fr 1fr"},class:"cols-3 gap-thin pd-thin"},V={class:"align-self-start pos-sticky pos-t-0 w-100 bg-grey radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex"},v={class:"pos-relative"},C={class:"bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex"},y={class:"pos-relative flex-v-center flex-nowrap flex"},B=e.createElementVNode("span",{class:"mn-r-small"},"Topics for ",-1),q={class:"bg-grey radius-big pd-medium"},E={class:"gap-thin flex-nowrap flex"},z=e.createElementVNode("p",{class:"t-medium mn-b-small"},"Popular Communities",-1),T={__name:"Community",setup(F){const o=d.useRoute(),a=d.useRouter(),p=({membership:u,status:r,target:s},i,t)=>{k.mutations.handleMembershipUpdate(c.state.current,u,r,s,i,t)};return(u,r)=>{const s=e.resolveComponent("router-link"),i=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("ul",V,[e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="featured"},"cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"]),onClick:r[0]||(r[0]=t=>e.unref(a).push({name:"Blog",params:{category:"featured"}}))},[e.createVNode(x.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Featured ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="popular"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:r[1]||(r[1]=t=>e.unref(a).push({name:"Blog",params:{category:"popular"}}))},[e.createVNode(b.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Popular ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="new"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:r[2]||(r[2]=t=>e.unref(a).push({name:"Blog",params:{category:"new"}}))},[e.createVNode(_.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Recent ")],2),l.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(o).params.category==="following"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:r[3]||(r[3]=t=>e.unref(a).push({name:"Blog",params:{category:"following"}}))},[e.createVNode(w.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Following ")],2)):e.createCommentVNode("",!0),e.createVNode(s,{to:{name:"Create BlogPost"},class:"button t-medium mn-t-small bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Create Post ")]),_:1})]),e.createElementVNode("section",v,[e.createElementVNode("header",C,[e.createElementVNode("h2",y,[B,e.createVNode(f.default,{options:["today","week","month","year"],select:m.state.filter.period,"onUpdate:select":r[4]||(r[4]=t=>m.state.filter.period=t),placeholder:"Select type",class:"t-semi pos-relative w-max bg-main t-black pd-thin radius-medium h2 t-center br-solid br-2px br-black-transp-10"},null,8,["select"])])]),e.createVNode(i,null,{default:e.withCtx(({Component:t,route:n})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{ref:"page",key:n.query}))]),_:2},1024)]),_:1})]),e.createElementVNode("div",q,[e.createElementVNode("div",E,[z,l.state.user._id?(e.openBlock(),e.createBlock(s,{key:0,to:{name:"Create Organization"},class:"t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" + ")]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createVNode(g.default,{states:{empty:{title:"No Organization Found",description:"Currently, there are no organization available."}},store:{read:t=>c.actions.read(t),state:c.state},options:{user:l.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,n=>(e.openBlock(),e.createBlock(h.default,{key:n._id,organization:n,user:l.state.user,showProducts:!1,showRating:!1,showFeatured:!1,showFollowers:!1,onUpdateMembership:p,class:"mn-b-thin w-100 pd-0 bg-white radius-big o-hidden"},null,8,["organization","user"]))),128))]),_:1},8,["states","store","options"])]),_:1})])])}}};exports.default=T;
@@ -1,78 +1,93 @@
1
- import { resolveComponent as h, openBlock as a, createElementBlock as c, createElementVNode as o, normalizeClass as p, unref as s, createCommentVNode as x, createVNode as r, withCtx as l, createTextVNode as v, Transition as b, createBlock as _, resolveDynamicComponent as C, Fragment as B, renderList as $ } from "vue";
2
- import { useRoute as N, useRouter as F } from "vue-router";
3
- import M from "../../../../components/Select/Select.vue2.js";
1
+ import { resolveComponent as b, openBlock as a, createElementBlock as g, createElementVNode as r, normalizeClass as d, unref as o, createVNode as s, createTextVNode as i, createCommentVNode as x, withCtx as n, Transition as w, createBlock as _, resolveDynamicComponent as C, Fragment as $, renderList as B } from "vue";
2
+ import { useRoute as F, useRouter as z } from "vue-router";
3
+ import N from "../../../../components/Select/Select.vue.js";
4
4
  import P from "../../../../components/Feed/Feed.vue.js";
5
- import U from "../../../organizations/components/blocks/CardOrganization.vue.js";
6
- import { state as w } from "../../store/blogposts.js";
7
- import { state as f } from "../../../auth/store/auth.js";
8
- import { actions as z, state as y } from "../../../organizations/store/organizations.js";
9
- import { mutations as O } from "../../../organizations/store/memberships.js";
10
- const R = {
5
+ import M from "../../../organizations/components/blocks/CardOrganization.vue.js";
6
+ import R from "../../../icons/entities/IconFeatured.vue.js";
7
+ import U from "../../../icons/entities/IconPopular.vue.js";
8
+ import V from "../../../icons/entities/IconRecent.vue.js";
9
+ import O from "../../../icons/entities/IconFollowing.vue.js";
10
+ import { state as y } from "../../store/blogposts.js";
11
+ import { state as c } from "../../../auth/store/auth.js";
12
+ import { actions as T, state as v } from "../../../organizations/store/organizations.js";
13
+ import { mutations as E } from "../../../organizations/store/memberships.js";
14
+ const S = {
11
15
  style: { "grid-template-columns": "1fr 3fr 1fr" },
12
16
  class: "cols-3 gap-thin pd-thin"
13
- }, T = { class: "w-100 bg-grey radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex" }, V = { class: "pos-relative" }, E = { class: "bg-black t-white radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex" }, I = { class: "pos-relative flex-v-center flex-nowrap flex t-left" }, S = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), L = { class: "bg-grey radius-big pd-medium" }, q = /* @__PURE__ */ o("div", { class: "gap-thin flex-nowrap flex" }, [
14
- /* @__PURE__ */ o("p", { class: "mn-b-small" }, "POPULAR COMMUNITIES"),
15
- /* @__PURE__ */ o("button", { class: "radius-extra flex-center flex i-medium bg-main" }, "+")
16
- ], -1), Y = {
17
+ }, q = { class: "align-self-start pos-sticky pos-t-0 w-100 bg-grey radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex" }, D = { class: "pos-relative" }, I = { class: "bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex" }, L = { class: "pos-relative flex-v-center flex-nowrap flex" }, j = /* @__PURE__ */ r("span", { class: "mn-r-small" }, "Topics for ", -1), A = { class: "bg-grey radius-big pd-medium" }, G = { class: "gap-thin flex-nowrap flex" }, H = /* @__PURE__ */ r("p", { class: "t-medium mn-b-small" }, "Popular Communities", -1), ne = {
17
18
  __name: "Community",
18
- setup(A) {
19
- const i = N(), n = F(), k = ({ membership: g, status: t, target: u }, d, e) => {
20
- O.handleMembershipUpdate(y.current, g, t, u, d, e);
19
+ setup(J) {
20
+ const l = F(), m = z(), k = ({ membership: h, status: t, target: p }, f, e) => {
21
+ E.handleMembershipUpdate(v.current, h, t, p, f, e);
21
22
  };
22
- return (g, t) => {
23
- const u = h("router-link"), d = h("router-view");
24
- return a(), c("div", R, [
25
- o("ul", T, [
26
- o("li", {
27
- class: p([{ "t-white bg-black": s(i).params.category === "featured" }, "cursor-pointer t-medium pd-thin radius-small"]),
28
- onClick: t[0] || (t[0] = (e) => s(n).push({ name: "Blog", params: { category: "featured" } }))
29
- }, "👑 Featured", 2),
30
- o("li", {
31
- class: p([{ "t-white bg-black": s(i).params.category === "popular" }, "cursor-pointer t-medium pd-thin radius-small"]),
32
- onClick: t[1] || (t[1] = (e) => s(n).push({ name: "Blog", params: { category: "popular" } }))
33
- }, "🔥 Popular", 2),
34
- o("li", {
35
- class: p([{ "t-white bg-black": s(i).params.category === "new" }, "cursor-pointer t-medium pd-thin radius-small"]),
36
- onClick: t[2] || (t[2] = (e) => s(n).push({ name: "Blog", params: { category: "new" } }))
37
- }, "🆕 New", 2),
38
- f.user._id ? (a(), c("li", {
23
+ return (h, t) => {
24
+ const p = b("router-link"), f = b("router-view");
25
+ return a(), g("div", S, [
26
+ r("ul", q, [
27
+ r("li", {
28
+ class: d([{ "t-black bg-white": o(l).params.category === "featured" }, "cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"]),
29
+ onClick: t[0] || (t[0] = (e) => o(m).push({ name: "Blog", params: { category: "featured" } }))
30
+ }, [
31
+ s(R, { class: "i-medium mn-r-thin t-transp" }),
32
+ i(" Featured ")
33
+ ], 2),
34
+ r("li", {
35
+ class: d([{ "t-black bg-white": o(l).params.category === "popular" }, "cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),
36
+ onClick: t[1] || (t[1] = (e) => o(m).push({ name: "Blog", params: { category: "popular" } }))
37
+ }, [
38
+ s(U, { class: "i-medium mn-r-thin t-transp" }),
39
+ i(" Popular ")
40
+ ], 2),
41
+ r("li", {
42
+ class: d([{ "t-black bg-white": o(l).params.category === "new" }, "cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),
43
+ onClick: t[2] || (t[2] = (e) => o(m).push({ name: "Blog", params: { category: "new" } }))
44
+ }, [
45
+ s(V, { class: "i-medium mn-r-thin t-transp" }),
46
+ i(" Recent ")
47
+ ], 2),
48
+ c.user._id ? (a(), g("li", {
39
49
  key: 0,
40
- class: p([{ "t-white bg-black": s(i).params.category === "following" }, "cursor-pointer t-medium pd-thin radius-small"]),
41
- onClick: t[3] || (t[3] = (e) => s(n).push({ name: "Blog", params: { category: "following" } }))
42
- }, "👥 Following", 2)) : x("", !0),
43
- r(u, {
44
- to: { name: "Create BlogPost" },
45
- class: "button mn-t-small bg-main w-100"
50
+ class: d([{ "t-white bg-black": o(l).params.category === "following" }, "cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),
51
+ onClick: t[3] || (t[3] = (e) => o(m).push({ name: "Blog", params: { category: "following" } }))
52
+ }, [
53
+ s(O, { class: "i-medium mn-r-thin t-transp" }),
54
+ i(" Following ")
55
+ ], 2)) : x("", !0),
56
+ s(p, {
57
+ to: {
58
+ name: "Create BlogPost"
59
+ },
60
+ class: "button t-medium mn-t-small bg-main w-100"
46
61
  }, {
47
- default: l(() => [
48
- v("Create Post")
62
+ default: n(() => [
63
+ i(" Create Post ")
49
64
  ]),
50
65
  _: 1
51
66
  })
52
67
  ]),
53
- o("section", V, [
54
- o("header", E, [
55
- o("h2", I, [
56
- S,
57
- r(M, {
68
+ r("section", D, [
69
+ r("header", I, [
70
+ r("h2", L, [
71
+ j,
72
+ s(N, {
58
73
  options: ["today", "week", "month", "year"],
59
- select: w.filter.period,
60
- "onUpdate:select": t[4] || (t[4] = (e) => w.filter.period = e),
74
+ select: y.filter.period,
75
+ "onUpdate:select": t[4] || (t[4] = (e) => y.filter.period = e),
61
76
  placeholder: "Select type",
62
- class: "pos-relative w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"
77
+ class: "t-semi pos-relative w-max bg-main t-black pd-thin radius-medium h2 t-center br-solid br-2px br-black-transp-10"
63
78
  }, null, 8, ["select"])
64
79
  ])
65
80
  ]),
66
- r(d, null, {
67
- default: l(({ Component: e, route: m }) => [
68
- r(b, {
81
+ s(f, null, {
82
+ default: n(({ Component: e, route: u }) => [
83
+ s(w, {
69
84
  name: "scaleIn",
70
85
  mode: "out-in"
71
86
  }, {
72
- default: l(() => [
87
+ default: n(() => [
73
88
  (a(), _(C(e), {
74
89
  ref: "page",
75
- key: m.query
90
+ key: u.query
76
91
  }))
77
92
  ]),
78
93
  _: 2
@@ -81,11 +96,25 @@ const R = {
81
96
  _: 1
82
97
  })
83
98
  ]),
84
- o("div", L, [
85
- q,
86
- r(b, { name: "slide-fade" }, {
87
- default: l(() => [
88
- r(P, {
99
+ r("div", A, [
100
+ r("div", G, [
101
+ H,
102
+ c.user._id ? (a(), _(p, {
103
+ key: 0,
104
+ to: {
105
+ name: "Create Organization"
106
+ },
107
+ class: "t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"
108
+ }, {
109
+ default: n(() => [
110
+ i(" + ")
111
+ ]),
112
+ _: 1
113
+ })) : x("", !0)
114
+ ]),
115
+ s(w, { name: "slide-fade" }, {
116
+ default: n(() => [
117
+ s(P, {
89
118
  states: {
90
119
  empty: {
91
120
  title: "No Organization Found",
@@ -93,23 +122,23 @@ const R = {
93
122
  }
94
123
  },
95
124
  store: {
96
- read: (e) => z.read(e),
97
- state: y
125
+ read: (e) => T.read(e),
126
+ state: v
98
127
  },
99
128
  options: {
100
- user: f.user._id,
129
+ user: c.user._id,
101
130
  sort: "numberOfMemberships",
102
131
  contain: ["blogposts"],
103
132
  limit: 10
104
133
  }
105
134
  }, {
106
- default: l(({
135
+ default: n(({
107
136
  items: e
108
137
  }) => [
109
- (a(!0), c(B, null, $(e, (m) => (a(), _(U, {
110
- key: m._id,
111
- organization: m,
112
- user: f.user,
138
+ (a(!0), g($, null, B(e, (u) => (a(), _(M, {
139
+ key: u._id,
140
+ organization: u,
141
+ user: c.user,
113
142
  showProducts: !1,
114
143
  showRating: !1,
115
144
  showFeatured: !1,
@@ -129,5 +158,5 @@ const R = {
129
158
  }
130
159
  };
131
160
  export {
132
- Y as default
161
+ ne as default
133
162
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const d=require("../../../../components/EmptyState/EmptyState.vue.cjs"),p=require("../blocks/CardBlogpost.vue.cjs"),m=require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs"),g=require("../../../organizations/components/sections/Publics.vue.cjs"),f=require("../sections/Comments.vue.cjs"),v=require("../../../constructor/components/elements/Image.vue.cjs"),k=require("../../../constructor/components/elements/VideoPlayer.vue.cjs"),y=require("../../store/blogposts.cjs"),n=require("../../../auth/store/auth.cjs"),B=require("vue-router"),b={class:"pd-thin"},h=["href"],C={__name:"BlogPost",setup(_){const u=B.useRoute(),t=e.ref(null),a=e.ref(!0);e.onMounted(async()=>{a.value=!0;const r=await y.read({user:n.state.user._id,url:u.params.url});t.value=r[0],a.value=!1});const c={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:v.default,Video:k.default,Link:"a"};function i(r){return r.type==="Textarea"?{innerHTML:r.content,class:"p-medium"}:r.type==="H2"?{innerHTML:r.content,class:"h3"}:r.type==="Caption"?{innerHTML:r.content}:r.type==="ImageUpload"?{src:r.content}:{}}return(r,l)=>(e.openBlock(),e.createElementBlock("section",b,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,o=>e.createVNode(m.default,{key:o})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!a.value&&!t.value?(e.openBlock(),e.createBlock(d.default,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!a.value&&t.value?(e.openBlock(),e.createBlock(p.default,{key:0,onClick:l[0]||(l[0]=o=>r.$router.push({name:"Blogpost",params:{url:t.value.url}})),blogpost:t.value,user:n.state.user._id,type:"blogpostPage",class:e.normalizeClass(["mn-b-medium",{"br-b br-solid br-black-transp-10":r.index!==t.value.length-1}])},{default:e.withCtx(()=>[e.createElementVNode("section",null,[t.value&&t.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.value.content,(o,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[o.type]),e.mergeProps({key:s,index:s,component:o,prop:o,class:o.class,content:"content"},i(o),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)]),t.value.source?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.value.source,target:"_blank",class:"mn-b-semi d-block w-max radius-big pd-thin bg-black t-white"}," Check Source 🔗 ",8,h)):e.createCommentVNode("",!0)]),_:1},8,["blogpost","user","class"])):e.createCommentVNode("",!0),e.createVNode(g.default,{class:"mn-b-small"}),!a.value&&t.value?(e.openBlock(),e.createBlock(f.default,{key:1,type:"blogpost",target:t.value._id,owner:n.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const d=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../blocks/CardBlogpost.vue.cjs"),p=require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs"),g=require("../../../organizations/components/sections/Publics.vue.cjs"),f=require("../sections/Comments.vue.cjs"),v=require("../../../constructor/components/elements/Image.vue.cjs"),k=require("../../../constructor/components/elements/VideoPlayer.vue.cjs"),y=require("../../../constructor/components/elements/Embed.vue.cjs"),B=require("../../store/blogposts.cjs"),a=require("../../../auth/store/auth.cjs"),_=require("vue-router"),h={class:"pd-thin"},C=["href"],b=e.createElementVNode("h3",{class:"mn-b-small"},"Recommended Communities",-1),V={__name:"BlogPost",setup(N){const u=_.useRoute(),t=e.ref(null),n=e.ref(!0);e.onMounted(async()=>{n.value=!0;const r=await B.read({user:a.state.user._id,url:u.params.url});t.value=r[0],n.value=!1});const c={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:v.default,Video:k.default,Link:"a",Embed:y.default};function i(r){return r.type==="Textarea"?{innerHTML:r.content,class:"p-big"}:r.type==="H2"?{innerHTML:r.content,class:"h3"}:r.type==="Caption"?{innerHTML:r.content}:r.type==="ImageUpload"?{src:r.content}:{}}return(r,s)=>(e.openBlock(),e.createElementBlock("section",h,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,o=>e.createVNode(p.default,{key:o})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&!t.value?(e.openBlock(),e.createBlock(d.default,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&t.value?(e.openBlock(),e.createBlock(m.default,{key:0,onClick:s[0]||(s[0]=o=>r.$router.push({name:"Blogpost",params:{url:t.value.url}})),blogpost:t.value,user:a.state.user._id,type:"blogpostPage",class:"mn-b-medium"},{default:e.withCtx(()=>[e.createElementVNode("section",null,[t.value&&t.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.value.content,(o,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[o.type]),e.mergeProps({key:l,index:l,component:o,prop:o,class:o.class,content:"content"},i(o),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)]),t.value.source?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.value.source,target:"_blank",class:"mn-b-semi d-block w-max radius-big pd-thin bg-black t-white"}," Check Source 🔗 ",8,C)):e.createCommentVNode("",!0)]),_:1},8,["blogpost","user"])):e.createCommentVNode("",!0),b,e.createVNode(g.default,{class:"mn-b-small"}),!n.value&&t.value?(e.openBlock(),e.createBlock(f.default,{key:1,type:"blogpost",target:t.value._id,owner:a.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=V;
@@ -1,50 +1,52 @@
1
- import { ref as d, onMounted as h, openBlock as a, createElementBlock as l, createVNode as s, TransitionGroup as f, withCtx as u, Fragment as g, renderList as _, createCommentVNode as o, Transition as k, createBlock as i, normalizeClass as C, createElementVNode as B, resolveDynamicComponent as $, mergeProps as T } from "vue";
1
+ import { ref as d, onMounted as k, openBlock as n, createElementBlock as l, createVNode as s, TransitionGroup as f, withCtx as u, Fragment as _, renderList as g, createCommentVNode as o, Transition as C, createBlock as i, createElementVNode as v, resolveDynamicComponent as B, mergeProps as $ } from "vue";
2
2
  import "../../../../components/Loader/Loader.vue.js";
3
- import w from "../../../../components/EmptyState/EmptyState.vue.js";
4
- import x from "../blocks/CardBlogpost.vue.js";
5
- import L from "../../../icons/skeletons/SkeletonBlogpost.vue.js";
6
- import H from "../../../organizations/components/sections/Publics.vue.js";
7
- import M from "../sections/Comments.vue.js";
8
- import P from "../../../constructor/components/elements/Image.vue.js";
9
- import N from "../../../constructor/components/elements/VideoPlayer.vue.js";
3
+ import T from "../../../../components/EmptyState/EmptyState.vue.js";
4
+ import w from "../blocks/CardBlogpost.vue.js";
5
+ import x from "../../../icons/skeletons/SkeletonBlogpost.vue.js";
6
+ import L from "../../../organizations/components/sections/Publics.vue.js";
7
+ import H from "../sections/Comments.vue.js";
8
+ import M from "../../../constructor/components/elements/Image.vue.js";
9
+ import P from "../../../constructor/components/elements/VideoPlayer.vue.js";
10
+ import N from "../../../constructor/components/elements/Embed.vue.js";
10
11
  import { read as V } from "../../store/blogposts.js";
11
12
  import { state as m } from "../../../auth/store/auth.js";
12
13
  import { useRoute as E } from "vue-router";
13
- const F = { class: "pd-thin" }, I = ["href"], W = {
14
+ const F = { class: "pd-thin" }, I = ["href"], R = /* @__PURE__ */ v("h3", { class: "mn-b-small" }, "Recommended Communities", -1), Y = {
14
15
  __name: "BlogPost",
15
16
  setup(S) {
16
- const v = E(), e = d(null), n = d(!0);
17
- h(async () => {
18
- n.value = !0;
19
- const t = await V({ user: m.user._id, url: v.params.url });
20
- e.value = t[0], n.value = !1;
17
+ const y = E(), e = d(null), a = d(!0);
18
+ k(async () => {
19
+ a.value = !0;
20
+ const t = await V({ user: m.user._id, url: y.params.url });
21
+ e.value = t[0], a.value = !1;
21
22
  });
22
- const y = {
23
+ const h = {
23
24
  Textarea: "p",
24
25
  H2: "h2",
25
26
  Bullets: "p",
26
27
  Caption: "p",
27
- ImageUpload: P,
28
- Video: N,
29
- Link: "a"
28
+ ImageUpload: M,
29
+ Video: P,
30
+ Link: "a",
31
+ Embed: N
30
32
  };
31
33
  function b(t) {
32
- 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 } : {};
34
+ return t.type === "Textarea" ? { innerHTML: t.content, class: "p-big" } : t.type === "H2" ? { innerHTML: t.content, class: "h3" } : t.type === "Caption" ? { innerHTML: t.content } : t.type === "ImageUpload" ? { src: t.content } : {};
33
35
  }
34
- return (t, p) => (a(), l("section", F, [
36
+ return (t, p) => (n(), l("section", F, [
35
37
  s(f, {
36
38
  tag: "ul",
37
39
  name: "fade",
38
40
  class: "o-hidden bg-grey radius-big"
39
41
  }, {
40
42
  default: u(() => [
41
- n.value ? (a(), l(g, { key: 0 }, _(3, (r) => s(L, { key: r })), 64)) : o("", !0)
43
+ a.value ? (n(), l(_, { key: 0 }, g(3, (r) => s(x, { key: r })), 64)) : o("", !0)
42
44
  ]),
43
45
  _: 1
44
46
  }),
45
- s(k, { name: "fade" }, {
47
+ s(C, { name: "fade" }, {
46
48
  default: u(() => [
47
- !n.value && !e.value ? (a(), i(w, {
49
+ !a.value && !e.value ? (n(), i(T, {
48
50
  key: 0,
49
51
  title: "No Blogpost Found",
50
52
  description: "Currently, there are no blogposts available. Please check back later.",
@@ -59,19 +61,17 @@ const F = { class: "pd-thin" }, I = ["href"], W = {
59
61
  class: "container"
60
62
  }, {
61
63
  default: u(() => [
62
- !n.value && e.value ? (a(), i(x, {
64
+ !a.value && e.value ? (n(), i(w, {
63
65
  key: 0,
64
66
  onClick: p[0] || (p[0] = (r) => t.$router.push({ name: "Blogpost", params: { url: e.value.url } })),
65
67
  blogpost: e.value,
66
68
  user: m.user._id,
67
69
  type: "blogpostPage",
68
- class: C(["mn-b-medium", {
69
- "br-b br-solid br-black-transp-10": t.index !== e.value.length - 1
70
- }])
70
+ class: "mn-b-medium"
71
71
  }, {
72
72
  default: u(() => [
73
- B("section", null, [
74
- e.value && e.value.content ? (a(!0), l(g, { key: 0 }, _(e.value.content, (r, c) => (a(), i($(y[r.type]), T({
73
+ v("section", null, [
74
+ e.value && e.value.content ? (n(!0), l(_, { key: 0 }, g(e.value.content, (r, c) => (n(), i(B(h[r.type]), $({
75
75
  key: c,
76
76
  index: c,
77
77
  component: r,
@@ -80,7 +80,7 @@ const F = { class: "pd-thin" }, I = ["href"], W = {
80
80
  content: "content"
81
81
  }, b(r), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : o("", !0)
82
82
  ]),
83
- e.value.source ? (a(), l("a", {
83
+ e.value.source ? (n(), l("a", {
84
84
  key: 0,
85
85
  href: e.value.source,
86
86
  target: "_blank",
@@ -88,9 +88,10 @@ const F = { class: "pd-thin" }, I = ["href"], W = {
88
88
  }, " Check Source 🔗 ", 8, I)) : o("", !0)
89
89
  ]),
90
90
  _: 1
91
- }, 8, ["blogpost", "user", "class"])) : o("", !0),
92
- s(H, { class: "mn-b-small" }),
93
- !n.value && e.value ? (a(), i(M, {
91
+ }, 8, ["blogpost", "user"])) : o("", !0),
92
+ R,
93
+ s(L, { class: "mn-b-small" }),
94
+ !a.value && e.value ? (n(), i(H, {
94
95
  key: 1,
95
96
  type: "blogpost",
96
97
  target: e.value._id,
@@ -103,5 +104,5 @@ const F = { class: "pd-thin" }, I = ["href"], W = {
103
104
  }
104
105
  };
105
106
  export {
106
- W as default
107
+ Y as default
107
108
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../blocks/CardBlogpost.vue.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs");const l=require("../../store/blogposts.cjs"),_=require("../../../auth/store/auth.cjs"),f=require("vue-router");require("./Community.vue2.cjs");const b=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),v=r=>(e.pushScopeId("data-v-dc16ad95"),r=r(),e.popScopeId(),r),g={class:"flex-v-center flex-nowrap flex mn-b-medium"},h=v(()=>e.createElementVNode("h3",{class:"mn-r-medium"},"Blog",-1)),k={class:""},w={class:"flex-nowrap flex pd-t-zero pd-b-zero pd-big"},y=["onClick"],C=["onClick"],B={__name:"Community",async setup(r){let s,c;const i=f.useRouter();[s,c]=e.withAsyncContext(()=>l.read()),await s,c(),console.log(l.state),e.ref({title:"",content:"",categories:[]});const d=async t=>{window.confirm("Are you sure you want to delete this post?")&&(console.log(t),await l.remove(t))};let u=e.ref("all");const a=e.computed(()=>u.value==="all"?l.state.all:l.state.all.filter(t=>t.categories.includes(u.value)));return e.computed(()=>{for(let t of a.value)if(t.blocks&&t.blocks.length>0){const n=t.blocks.find(o=>o.type.name==="ImageUpload");if(n)return n.content}return null}),(t,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",g,[h,e.createElementVNode("button",{onClick:n[0]||(n[0]=o=>e.unref(i).push({name:"Create BlogPost"})),class:"t-white bg-second button-small button"},"+")]),e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,o=>(e.openBlock(),e.createBlock(p.default,{key:o._id,blogpost:o,owner:_.state.user._id,class:"mn-b-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("button",{class:"mn-r-thin button-small w-100 button",onClick:m=>t.$router.push({path:"/community/posts/"+o.url+"/edit"})},"Edit",8,y),e.createElementVNode("button",{class:"button-small w-100 button",onClick:m=>d(o._id)},"Delete",8,C)])]),_:2},1032,["blogpost","owner"]))),128))])]))}},E=b.default(B,[["__scopeId","data-v-dc16ad95"]]);exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../blocks/CardBlogpost.vue.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs");const l=require("../../store/blogposts.cjs"),_=require("../../../auth/store/auth.cjs"),f=require("vue-router");require("./Community.vue2.cjs");const b=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),v=r=>(e.pushScopeId("data-v-e98ee39a"),r=r(),e.popScopeId(),r),g={class:"flex-v-center flex-nowrap flex mn-b-medium"},h=v(()=>e.createElementVNode("h3",{class:"mn-r-medium"},"Blog",-1)),k={class:""},w={class:"flex-nowrap flex pd-t-zero pd-b-zero pd-big"},y=["onClick"],C=["onClick"],B={__name:"Community",async setup(r){let s,c;const i=f.useRouter();[s,c]=e.withAsyncContext(()=>l.read()),await s,c(),console.log(l.state),e.ref({title:"",content:"",categories:[]});const d=async t=>{window.confirm("Are you sure you want to delete this post?")&&(console.log(t),await l.remove(t))};let u=e.ref("all");const a=e.computed(()=>u.value==="all"?l.state.all:l.state.all.filter(t=>t.categories.includes(u.value)));return e.computed(()=>{for(let t of a.value)if(t.blocks&&t.blocks.length>0){const n=t.blocks.find(o=>o.type.name==="ImageUpload");if(n)return n.content}return null}),(t,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",g,[h,e.createElementVNode("button",{onClick:n[0]||(n[0]=o=>e.unref(i).push({name:"Create BlogPost"})),class:"t-white bg-second button-small button"},"+")]),e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,o=>(e.openBlock(),e.createBlock(p.default,{key:o._id,blogpost:o,owner:_.state.user._id,class:"mn-b-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("button",{class:"mn-r-thin button-small w-100 button",onClick:m=>t.$router.push({path:"/community/posts/"+o.url+"/edit"})},"Edit",8,y),e.createElementVNode("button",{class:"button-small w-100 button",onClick:m=>d(o._id)},"Delete",8,C)])]),_:2},1032,["blogpost","owner"]))),128))])]))}},E=b.default(B,[["__scopeId","data-v-e98ee39a"]]);exports.default=E;