@ozdao/prometheus-framework 0.2.39 → 0.2.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (296) 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 +1 -1
  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 +3 -3
  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 +3 -3
  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 +3 -3
  58. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/auth/store/auth.js +8 -8
  60. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  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 +3 -3
  126. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  128. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
  130. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  134. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +45 -42
  138. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  140. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +6 -6
  144. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +3 -3
  148. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
  150. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +60 -55
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  156. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  160. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  162. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +18 -17
  164. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +20 -21
  166. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +7 -7
  167. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  169. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  171. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  173. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +6 -6
  177. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  181. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  183. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +37 -34
  185. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +23 -23
  187. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  189. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
  190. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +7 -7
  192. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  194. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  196. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  198. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +31 -30
  200. package/dist/prometheus-framework.cjs.js +20 -20
  201. package/dist/prometheus-framework.es.js +1278 -1288
  202. package/dist/style.css +1 -1
  203. package/package.json +1 -1
  204. package/src/components/Button/Button.vue +2 -3
  205. package/src/components/Chips/Chips.vue +9 -3
  206. package/src/components/Countdown/Countdown.vue +4 -3
  207. package/src/components/Dropdown/Dropdown.vue +9 -3
  208. package/src/components/Feed/Feed.vue +7 -11
  209. package/src/components/Feed/Masonry.vue +177 -0
  210. package/src/components/FieldBig/FieldBig.vue +3 -3
  211. package/src/components/Header/Header.vue +2 -0
  212. package/src/components/Navigation/Navigation.vue +2 -0
  213. package/src/components/Shader/Shader.vue +161 -116
  214. package/src/components/Slider/Slider.vue +92 -0
  215. package/src/modules/applications/applications.client.js +2 -0
  216. package/src/modules/applications/components/sections/SubscribeNewsletter.vue +114 -0
  217. package/src/modules/applications/controllers/applications.controller.js +125 -136
  218. package/src/modules/applications/models/application.model.js +22 -7
  219. package/src/modules/applications/routes/applications.routes.js +29 -13
  220. package/src/modules/auth/controllers/auth.controller.js +2 -3
  221. package/src/modules/auth/store/auth.js +3 -5
  222. package/src/modules/chats/components/blocks/ChatMessage.vue +3 -2
  223. package/src/modules/chats/components/pages/ChatPage.vue +6 -6
  224. package/src/modules/chats/components/sections/ChatWindow.vue +57 -12
  225. package/src/modules/chats/store/chat.store.js +6 -1
  226. package/src/modules/community/community.client.js +0 -2
  227. package/src/modules/community/components/blocks/CardBlogpost.vue +71 -33
  228. package/src/modules/community/components/layouts/Community.vue +65 -26
  229. package/src/modules/community/components/pages/Blog.vue +37 -0
  230. package/src/modules/community/components/pages/BlogPost.vue +5 -6
  231. package/src/modules/community/components/pages/Community.vue +1 -0
  232. package/src/modules/community/components/pages/CreateBlogPost.vue +1 -0
  233. package/src/modules/community/components/sections/Feed.vue +1 -1
  234. package/src/modules/community/components/sections/HotPosts.vue +64 -24
  235. package/src/modules/community/components/sections/JoinUs.vue +4 -5
  236. package/src/modules/community/store/blogposts.js +1 -0
  237. package/src/modules/constructor/components/elements/Embed.vue +7 -6
  238. package/src/modules/constructor/components/elements/Image.vue +2 -2
  239. package/src/modules/constructor/components/elements/Textarea.vue +1 -1
  240. package/src/modules/constructor/components/sections/Constructor.vue +3 -19
  241. package/src/modules/events/components/pages/EditEvent.vue +48 -3
  242. package/src/modules/events/components/pages/Event.vue +16 -8
  243. package/src/modules/events/components/sections/HeroEvent.vue +32 -28
  244. package/src/modules/events/components/sections/SectionMainGuest.vue +3 -2
  245. package/src/modules/events/components/sections/SectionPreviousEvents.vue +22 -15
  246. package/src/modules/events/models/event.model.js +9 -0
  247. package/src/modules/files/middlewares/server/middlewareBusboy.js +14 -3
  248. package/src/modules/files/routes/files.routes.js +9 -1
  249. package/src/modules/globals/components/blocks/CardHeader.vue +6 -3
  250. package/src/modules/globals/utils/mailing.js +12 -0
  251. package/src/modules/icons/entities/IconEarn.vue +20 -0
  252. package/src/modules/icons/entities/IconFeatured.vue +14 -0
  253. package/src/modules/icons/entities/IconFollowing.vue +17 -0
  254. package/src/modules/icons/entities/IconPopular.vue +14 -0
  255. package/src/modules/icons/entities/IconRecent.vue +17 -0
  256. package/src/modules/icons/navigation/IconAdd.vue +1 -3
  257. package/src/modules/icons/navigation/IconArrow.vue +21 -0
  258. package/src/modules/icons/navigation/IconCheckmark.vue +16 -0
  259. package/src/modules/icons/navigation/IconChevronRight.vue +2 -2
  260. package/src/modules/icons/navigation/IconEdit.vue +16 -2
  261. package/src/modules/icons/navigation/IconEllipsis.vue +16 -0
  262. package/src/modules/icons/placeholders/PlaceholderChat.vue +9 -0
  263. package/src/modules/landing/components/sections/MobileApp.vue +38 -21
  264. package/src/modules/landing/components/sections/SectionEarn.vue +104 -0
  265. package/src/modules/landing/components/sections/SectionFeatures.vue +7 -8
  266. package/src/modules/marketplace/components/layouts/Marketplace.vue +3 -3
  267. package/src/modules/orders/components/blocks/StatusHistory.vue +7 -1
  268. package/src/modules/orders/components/pages/Order.vue +3 -4
  269. package/src/modules/orders/store/shopcart.js +21 -5
  270. package/src/modules/organizations/components/blocks/CardOrganization.vue +6 -6
  271. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  272. package/src/modules/organizations/components/sections/DetailsTab.vue +42 -43
  273. package/src/modules/organizations/components/sections/Publics.vue +3 -4
  274. package/src/modules/payments/controller/payments.controller.js +54 -200
  275. package/src/modules/payments/controller/payments.tinkoff.controller.js +242 -0
  276. package/src/modules/payments/models/payment.model.js +22 -0
  277. package/src/modules/payments/routes/payments.routes.js +4 -25
  278. package/src/modules/payments/routes/payments.tinkoff.routes.js +58 -0
  279. package/src/modules/products/components/pages/Product.vue +3 -1
  280. package/src/modules/products/components/sections/HeroRecommendation.vue +9 -170
  281. package/src/modules/products/components/sections/MenuSection.vue +4 -4
  282. package/src/modules/products/components/sections/PopularProducts.vue +3 -3
  283. package/src/modules/products/components/sections/SectionProduct.vue +3 -0
  284. package/src/modules/products/controllers/products.controller.js +188 -109
  285. package/src/modules/products/models/product.model.js +1 -0
  286. package/src/modules/spots/components/layouts/Spots.vue +2 -2
  287. package/src/modules/wallet/components/pages/Wallet.vue +73 -88
  288. package/src/modules/wallet/controllers/crypto.controller.js +79 -0
  289. package/src/modules/wallet/models/wallet.model.js +27 -0
  290. package/src/styles/base/all.scss +4 -0
  291. package/src/styles/base/backgrounds.scss +2 -2
  292. package/src/styles/base/shadow_transitions_hover_refactor.scss +11 -1
  293. package/src/styles/typography.scss +19 -12
  294. package/src/modules/community/components/sections/SubscribeNewsletter.vue +0 -67
  295. package/src/modules/constructor/components/elements/Youtube.vue +0 -52
  296. /package/src/modules/{orders/models/payment.model.js → payments/models/payment.tinkoff.model.js} +0 -0
@@ -1,27 +1,56 @@
1
1
  <template>
2
- <div class="chat-window">
3
- <div class="h-max-20r o-scroll flex-nowrap flex-column flex gap-thin ">
4
- <ChatMessage
5
- v-for="message in messages"
6
- :key="message._id"
7
- :message="message"
8
- />
9
- </div>
10
- <input class="bg-white w-100 radius-big pd-small" placeholder="Enter your message" type="text" v-model="newMessage" @keyup.enter="sendMessage" />
2
+ <div class="bg-white radius-semi bg-white o-hidden pos-relative">
3
+
4
+ <div ref="allMessages" class="chat-messages o-scroll h-max-20r">
5
+ <div class="pos-relative h-min-20r flex-justify-end flex flex-column br-b br-solid br-black-transp-10">
6
+ <transition name="scaleIn" mode="out-in">
7
+ <div v-if="messages.length < 1" class="flex-center w-100 h-100 flex-column flex pos-absolute">
8
+ <PlaceholderChat class="radius-100 mn-b-thin"/>
9
+ <h4>Here you can view your chat history</h4>
10
+ <p>Feel free to ask if you have any questions.</p>
11
+ </div>
12
+
13
+ <TransitionGroup v-else name="list" tag="ul" class="w-100 o-hidden">
14
+ <ChatMessage
15
+ v-for="message in messages"
16
+ :key="message._id"
17
+ :message="message"
18
+ />
19
+
20
+ </TransitionGroup>
21
+ </transition>
22
+
23
+ </div>
24
+ </div>
25
+
26
+
27
+ <div class="flex-nowrap flex-v-center flex bg-white w-100 radius-big pd-small">
28
+ <IconAdd
29
+ class="mn-r-thin t-transp i-regular"
30
+ />
31
+ <input class="" placeholder="Enter your message" type="text" v-model="newMessage" @keyup.enter="sendMessage" />
32
+ </div>
11
33
  </div>
12
34
  </template>
13
35
 
14
36
  <script setup>
15
- import { ref, computed } from 'vue';
37
+ import { ref, computed, watch } from 'vue';
38
+
39
+ import IconAdd from '@pf/src/modules/icons/navigation/IconAdd.vue'
40
+ import PlaceholderChat from '@pf/src/modules/icons/placeholders/PlaceholderChat.vue'
41
+
16
42
  import ChatMessage from '../blocks/ChatMessage.vue';
17
43
  import chatStore from '../../store/chat.store.js';
18
44
 
19
45
  const newMessage = ref('');
46
+ const allMessages = ref(null)
47
+
48
+ // Вычисляемые свойства
20
49
  const messages = computed(() => chatStore.state.messages);
21
50
 
51
+ // Функция для отправки сообщения
22
52
  const sendMessage = () => {
23
53
  if (newMessage.value) {
24
-
25
54
  const message = {
26
55
  text: newMessage.value,
27
56
  username: chatStore.state.username,
@@ -29,12 +58,28 @@ const sendMessage = () => {
29
58
  };
30
59
 
31
60
  chatStore.methods.addMessage(message);
61
+ console.log(allMessages.value.lastElementChild.offsetHeight)
62
+ allMessages.value.scrollTop = allMessages.value.lastElementChild.offsetHeight
32
63
 
33
64
  newMessage.value = '';
34
65
  }
35
66
  };
67
+
68
+ // // При добавлении нового сообщения автоматически прокручиваем вниз
69
+ watch(chatStore.state.messages, () => {
70
+ allMessages.value.scrollTop = allMessages.value.lastElementChild.offsetHeight
71
+ }, {deep: true});
72
+
36
73
  </script>
37
74
 
38
75
  <style>
39
- /* Стили остаются без изменений */
76
+ .list-enter-active,
77
+ .list-leave-active {
78
+ transition: all 0.5s ease;
79
+ }
80
+ .list-enter-from,
81
+ .list-leave-to {
82
+ opacity: 0;
83
+ transform: translateX(30px);
84
+ }
40
85
  </style>
@@ -9,8 +9,12 @@ const state = reactive({
9
9
 
10
10
  const methods = {
11
11
  connectWebSocket() {
12
+ console.log('process env')
13
+ console.log(process.env.WSS_URL)
14
+
12
15
  return new Promise(function(resolve, reject) {
13
- state.websocket = new WebSocket('wss://localhost:8080');
16
+
17
+ state.websocket = new WebSocket(process.env.WSS_URL);
14
18
 
15
19
  state.websocket.onopen = function() {
16
20
  resolve(state.websocket);
@@ -28,6 +32,7 @@ const methods = {
28
32
  });
29
33
  },
30
34
  setMessages(messages) {
35
+ console.log(process.env.API_URL)
31
36
  state.messages = messages;
32
37
  },
33
38
  addMessage(message) {
@@ -7,7 +7,6 @@ import FooterBlogpost from './components/blocks/FooterBlogpost.vue';
7
7
  import Activity from './components/blocks/Activity.vue';
8
8
  import CardBlogpost from './components/blocks/CardBlogpost.vue';
9
9
  import Feed from './components/sections/Feed.vue';
10
- import SubscribeNewsletter from './components/sections/SubscribeNewsletter.vue';
11
10
  import JoinUs from './components/sections/JoinUs.vue';
12
11
  import Comments from './components/sections/Comments.vue';
13
12
  import HotPosts from './components/sections/HotPosts.vue';
@@ -30,7 +29,6 @@ export {
30
29
  Activity,
31
30
  CardBlogpost,
32
31
  Feed,
33
- SubscribeNewsletter,
34
32
  JoinUs,
35
33
  Comments,
36
34
  HotPosts,
@@ -1,39 +1,50 @@
1
1
  <template>
2
2
  <article
3
- class="pos-relative bg-grey radius-big"
3
+ class="pos-relative bg-grey radius-big flex-column flex"
4
4
  >
5
5
 
6
- <IconEdit
6
+ <router-link
7
7
  v-if="user && user === blogpost.creator.target._id"
8
- @click.stop="$router.push({
8
+ :to="{
9
9
  name: 'Edit BlogPost',
10
10
  params: {
11
11
  url: blogpost.url
12
12
  }
13
- })"
14
- class="z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
15
- />
13
+ }"
14
+ class="
15
+ cursor-pointer
16
+ pos-absolute pos-t-regular pos-r-regular
17
+ radius-extra pd-thin bg-second
18
+ "
19
+ >
20
+ <IconEdit
21
+ class="i-regular"
22
+ classes="fill-white"
23
+ />
24
+ </router-link>
16
25
 
17
26
  <CardHeader
18
- :class="{
19
- 'mn-b-small pd-medium': type !== 'short',
20
- 'flex-child-order-last flex-child mn-l-small': type === 'short',
21
- }"
22
- :entity="blogpost"
23
- :entityType="'blogpost'"
24
- :user="user"
25
- :owner="blogpost.owner"
26
- :creator="blogpost.creator"
27
- :date="blogpost.createdAt"
28
-
29
- />
27
+ :class="{
28
+ 'mn-b-small pd-medium': type !== 'short',
29
+ 'flex-child-order-last flex-child mn-l-small': type === 'short',
30
+ }"
31
+ :entity="blogpost"
32
+ :entityType="'blogpost'"
33
+ :user="user"
34
+ :owner="blogpost.owner"
35
+ :creator="blogpost.creator"
36
+ :date="blogpost.createdAt"
37
+ />
38
+
39
+ <!-- <Image :prop="{content:firstImage.content}" class="h-100"/> -->
40
+
30
41
  <template
31
42
  v-if="firstImage && firstImage.content && type !== 'blogpostPage'"
32
43
  >
33
44
  <img
34
45
  :src="(FILE_SERVER_URL || '') + firstImage.content"
35
46
  alt="Blog post image"
36
- class="mn-b-medium object-fit-cover w-100 h-20r"
47
+ class="mn-b-medium object-fit-cover w-100 h-min-10r h-100"
37
48
  />
38
49
  </template>
39
50
 
@@ -41,11 +52,11 @@
41
52
  v-if="!firstImage?.content && firstVideo && firstVideo.content && type !== 'blogpostPage'"
42
53
  >
43
54
  <div class="flex-center flex">
44
- <video controls class="mn-b-medium object-fit-cover w-100 h-20r">
45
- <source :src="firstVideo.content" type="video/mp4">
46
- Your browser does not support the video tag.
47
- </video>
48
- </div>
55
+ <video controls class="mn-b-medium object-fit-cover w-100 h-min-10r h-max-20r">
56
+ <source :src="firstVideo.content" type="video/mp4">
57
+ Your browser does not support the video tag.
58
+ </video>
59
+ </div>
49
60
  </template>
50
61
 
51
62
  <section
@@ -54,30 +65,40 @@
54
65
 
55
66
  <div v-if="type !== 'blogpostPage'" class="cursor-pointer mn-b-thin flex-nowrap flex w-100">
56
67
 
57
- <h3
58
- @click="router.push({
68
+ <Text
69
+ :text="blogpost.name || ''"
70
+ :maxLen="80"
71
+ class="h3 d-block"
72
+ @click="router.push({
59
73
  name: 'BlogPost',
60
74
  params: {
61
75
  url: blogpost.url
62
76
  }
63
77
  })"
64
- class="">
65
- {{blogpost.name}}
66
- </h3>
78
+ />
67
79
 
68
- <div v-if="blogpost.status === 'draft'" 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">
80
+ <div
81
+ v-if="blogpost.status === 'draft'"
82
+ 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"
83
+ >
69
84
  {{blogpost.status}}
70
85
  </div>
71
86
 
72
87
  </div>
88
+
73
89
  <p
74
- v-if="firstText && firstText.content && type !== 'blogpostPage'"
90
+ v-if="firstText && firstText.content && type !== 'blogpostPage' && !hideDescription"
75
91
  class='mn-b-small t-transp p-big'
76
92
  >
77
93
  {{firstText.content.slice(0,120)}}...
78
94
  </p>
79
95
 
80
- <h3 v-if="type === 'blogpostPage'" class="mn-b-small h2">{{blogpost.name}}</h3>
96
+ <h3
97
+ v-if="type === 'blogpostPage'"
98
+ class="mn-b-small h2"
99
+ >
100
+ {{blogpost.name}}
101
+ </h3>
81
102
 
82
103
  <slot></slot>
83
104
 
@@ -102,6 +123,9 @@
102
123
  import CardHeader from '@pf/src/modules/globals/components/blocks/CardHeader.vue'
103
124
  import FooterBlogpost from '@pf/src/modules/community/components/blocks/FooterBlogpost.vue'
104
125
 
126
+ import Image from '@pf/src/modules/constructor/components/elements/Image.vue';
127
+
128
+ import Text from '@pf/src/components/Text/Text.vue'
105
129
  import Chips from '@pf/src/components/Chips/Chips.vue'
106
130
 
107
131
  import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
@@ -112,7 +136,21 @@
112
136
 
113
137
  const router = useRouter()
114
138
 
115
- const props = defineProps(['blogpost','user', 'type'])
139
+ const props = defineProps({
140
+ blogpost: {
141
+ type: Object,
142
+ },
143
+ user: {
144
+ type: String,
145
+ },
146
+ type: {
147
+ type: String,
148
+ },
149
+ hideDescription: {
150
+ type: Boolean,
151
+ default: false
152
+ }
153
+ })
116
154
 
117
155
  const firstImage = computed(() => {
118
156
  return props.blogpost.content.find(block => block.type === 'ImageUpload');
@@ -1,48 +1,73 @@
1
1
  <template>
2
- <div style="grid-template-columns: 1fr 3fr 1fr;" class="cols-3 gap-thin pd-thin">
2
+ <div style="grid-template-columns: 2fr 4fr 2fr;" class="cols-3 gap-thin pd-thin">
3
3
 
4
- <ul class="w-100 bg-grey radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex">
4
+ <ul 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">
5
5
  <li
6
- :class="{'t-white bg-black': route.params.category === 'featured' }"
7
- @click="router.push({name: 'Blog', params: { category: 'featured' } })"
8
- class="cursor-pointer t-medium pd-thin radius-small">👑 Featured</li>
6
+ :class="{'t-black bg-white': route.params.category === 'featured' }"
7
+ @click="router.push({name: 'Blog', params: { category: 'featured' } })"
8
+ class="cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"
9
+ >
10
+ <IconFeatured class="i-medium mn-r-thin t-transp"/>
11
+ Featured
12
+ </li>
9
13
  <li
10
- :class="{'t-white bg-black': route.params.category === 'popular' }"
11
- @click="router.push({name: 'Blog', params: { category: 'popular' } })"
12
- class="cursor-pointer t-medium pd-thin radius-small">🔥 Popular</li>
14
+ :class="{'t-black bg-white': route.params.category === 'popular' }"
15
+ @click="router.push({name: 'Blog', params: { category: 'popular' } })"
16
+ class="cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"
17
+ >
18
+ <IconPopular class="i-medium mn-r-thin t-transp"/>
19
+ Popular
20
+ </li>
13
21
  <li
14
- :class="{'t-white bg-black': route.params.category === 'new'}"
15
- @click="router.push({name: 'Blog', params: { category: 'new' } })"
16
- class="cursor-pointer t-medium pd-thin radius-small">🆕 New</li>
22
+ :class="{'t-black bg-white': route.params.category === 'new'}"
23
+ @click="router.push({name: 'Blog', params: { category: 'new' } })"
24
+ class="cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"
25
+ >
26
+ <IconRecent class="i-medium mn-r-thin t-transp"/>
27
+ Recent
28
+ </li>
17
29
  <li
18
- v-if="auth.state.user._id"
19
- :class="{'t-white bg-black': route.params.category === 'following'}"
20
- @click="router.push({name: 'Blog', params: { category: 'following' } })"
21
- class="cursor-pointer t-medium pd-thin radius-small">👥 Following</li>
22
-
23
- <router-link :to="{name: 'Create BlogPost'}" class="button mn-t-small bg-main w-100">Create Post</router-link>
30
+ v-if="auth.state.user._id"
31
+ :class="{'t-white bg-black': route.params.category === 'following'}"
32
+ @click="router.push({name: 'Blog', params: { category: 'following' } })"
33
+ class="cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"
34
+ >
35
+ <IconFollowing class="i-medium mn-r-thin t-transp"/>
36
+ Following
37
+ </li>
38
+
39
+ <router-link
40
+ :to="{
41
+ name: 'Create BlogPost'
42
+ }"
43
+ class="button t-medium mn-t-small bg-main w-100"
44
+ >
45
+ Create Post
46
+ </router-link>
24
47
  </ul>
25
48
 
26
49
  <section class="pos-relative">
27
50
 
28
- <header class="bg-black t-white radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex">
29
- <h2 class="pos-relative flex-v-center flex-nowrap flex t-left">
30
- <span class="">Topics for </span>
51
+ <header class="bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex">
52
+ <h2 class="pos-relative flex-v-center flex-nowrap flex">
53
+ <span class="mn-r-small">Topics for </span>
31
54
 
32
55
  <Select
33
56
  :options="['today','week','month','year']"
34
57
  v-model:select="blog.state.filter.period"
35
58
  placeholder="Select type"
36
59
  class="
60
+ t-semi
37
61
  pos-relative
38
62
  w-max
39
- mn-l-small
40
- bg-grey
63
+ bg-main t-black
41
64
  pd-thin
42
65
  radius-medium
43
66
  h2
44
67
  t-center
45
- t-black
68
+ br-solid
69
+ br-2px
70
+ br-black-transp-10
46
71
  "
47
72
  />
48
73
  </h2>
@@ -56,10 +81,19 @@
56
81
 
57
82
  </section>
58
83
 
59
- <div class="bg-grey radius-big pd-medium">
84
+ <div class="align-self-start bg-grey radius-big pd-medium">
60
85
  <div class="gap-thin flex-nowrap flex">
61
- <p class="mn-b-small">POPULAR COMMUNITIES</p>
62
- <button class="radius-extra flex-center flex i-medium bg-main ">+</button>
86
+ <p class="t-medium mn-b-small">Popular Communities</p>
87
+
88
+ <router-link
89
+ v-if="auth.state.user._id"
90
+ :to="{
91
+ name: 'Create Organization'
92
+ }"
93
+ class="t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"
94
+ >
95
+ +
96
+ </router-link>
63
97
  </div>
64
98
 
65
99
 
@@ -111,6 +145,11 @@
111
145
  import Feed from '@pf/src/components/Feed/Feed.vue'
112
146
  import CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'
113
147
 
148
+ import IconFeatured from '@pf/src/modules/icons/entities/IconFeatured.vue'
149
+ import IconPopular from '@pf/src/modules/icons/entities/IconPopular.vue'
150
+ import IconRecent from '@pf/src/modules/icons/entities/IconRecent.vue'
151
+ import IconFollowing from '@pf/src/modules/icons/entities/IconFollowing.vue'
152
+
114
153
  // Import state
115
154
  import * as blog from '@pf/src/modules/community/store/blogposts.js';
116
155
  import * as auth from '@pf/src/modules/auth/store/auth'
@@ -1,5 +1,42 @@
1
1
  <template>
2
2
  <section>
3
+
4
+
5
+
6
+ <!-- <Feed
7
+ :showLoadMore="false"
8
+ :states="{
9
+ empty: {
10
+ title: 'No Blogposts Found',
11
+ description: 'Currently, there are no blogposts available.'
12
+ }
13
+ }"
14
+ :store="{
15
+ read: (options) => blog.read(options),
16
+ state: blog.state.all
17
+ }"
18
+ :options="{
19
+ skip: 0,
20
+ limit: 8,
21
+ user: auth.state.user._id,
22
+ period: 'year'
23
+ }"
24
+ v-slot="{
25
+ items
26
+ }"
27
+ class="cols-4 gap-thin"
28
+ >
29
+ <CardBlogpost
30
+ v-for="(blogpost,index) in items"
31
+ :key="blogpost._id"
32
+ :blogpost="blogpost"
33
+ :user="user"
34
+ class="mn-b-medium"
35
+ :class="`div${index}`"
36
+ />
37
+ </Feed>
38
+
39
+ -->
3
40
  <Feed
4
41
  :category="route.params.category"
5
42
  :user="auth.state.user._id"
@@ -27,9 +27,6 @@
27
27
  :user="auth.state.user._id"
28
28
  :type="'blogpostPage'"
29
29
  class="mn-b-medium"
30
- :class="{
31
- 'br-b br-solid br-black-transp-10': index !== blogpost.length - 1
32
- }"
33
30
  >
34
31
  <section>
35
32
  <component
@@ -53,7 +50,7 @@
53
50
 
54
51
  </CardBlogpost>
55
52
 
56
-
53
+ <h3 class="mn-b-small">Recommended Communities</h3>
57
54
  <Publics
58
55
  class="mn-b-small"
59
56
  />
@@ -83,6 +80,7 @@
83
80
 
84
81
  import Image from '@pf/src/modules/constructor/components/elements/Image.vue';
85
82
  import VideoPlayer from '@pf/src/modules/constructor/components/elements/VideoPlayer.vue';
83
+ import Embed from '@pf/src/modules/constructor/components/elements/Embed.vue';
86
84
 
87
85
  import * as blog from '@pf/src/modules/community/store/blogposts.js';
88
86
  import * as auth from '@pf/src/modules/auth/store/auth';
@@ -111,12 +109,13 @@
111
109
  'Caption': 'p',
112
110
  'ImageUpload': Image,
113
111
  'Video': VideoPlayer,
114
- 'Link': 'a'
112
+ 'Link': 'a',
113
+ 'Embed': Embed
115
114
  };
116
115
 
117
116
  function getBlockProps(block) {
118
117
  if (block.type === 'Textarea') {
119
- return { innerHTML: block.content, class: "p-medium" };
118
+ return { innerHTML: block.content, class: "p-big" };
120
119
  } else if (block.type === 'H2') {
121
120
  return { innerHTML: block.content, class: "h3" };
122
121
  } else if (block.type === 'Caption') {
@@ -7,6 +7,7 @@
7
7
 
8
8
  <div class="">
9
9
 
10
+
10
11
  <CardBlogpost
11
12
  v-for="blogpost in filteredBlogPosts"
12
13
  :key="blogpost._id"
@@ -13,6 +13,7 @@
13
13
  <Textarea
14
14
  v-if="post"
15
15
  :prop="post"
16
+ :setFocus="true"
16
17
  content="name"
17
18
  placeholder="Enter post title"
18
19
  class="h2"
@@ -20,7 +20,7 @@
20
20
  :key="blogpost._id"
21
21
  :blogpost="blogpost"
22
22
  :user="user"
23
- class="mn-b-medium"
23
+ class="h-max-40r mn-b-medium"
24
24
  />
25
25
 
26
26
  <transition
@@ -1,36 +1,76 @@
1
1
  <template>
2
- <section class="community-feed">
3
- <h2 class="w-m-75r mn-auto pd-t-big pd-b-big t-center">Discover the Vibrant Community</h2>
4
-
5
- <Feed
6
- :skip="0"
7
- :limit="3"
8
- :user="auth.state.user._id"
9
- :period="'year'"
10
- class="flex flex-wrap gap-thin"
11
- />
2
+ <section class="pd-thin">
3
+ <div class="bg-grey radius-big pd-t-big pd-b-big">
4
+
5
+ <h2 class="w-100 pd-b-small t-center flex-center flex">
6
+ Discover Our
7
+ <router-link
8
+ :to="{ name:'Blog' }"
9
+ class="transition-ease-in hover-bg-black hover-t-white transition-timing-1 hover-scale-0 bg-main cursor-pointer pd-thin mn-l-thin radius-extra flex flex-v-center"
10
+ >
11
+ <b>Community</b>
12
+ <IconArrow class="mn-l-thin radius-extra bg-white i-big"/>
13
+ </router-link>
14
+ </h2>
15
+
16
+ <Slider
17
+ :store="{
18
+ read: (options) => blog.read(options)
19
+ }"
20
+ :options="{
21
+ skip: 0,
22
+ limit: 8,
23
+ user: auth.state.user._id,
24
+ period: 'year'
25
+ }"
26
+ :text="{
27
+ messages: {
28
+ en: {
29
+ title: 'No Blogposts Found',
30
+ description: 'Currently, there are no blogposts available.'
31
+ }
32
+ }
33
+ }"
34
+ v-slot="{
35
+ item
36
+ }"
37
+ class="slider-hotpost"
38
+ >
39
+ <CardBlogpost
40
+ :key="item._id"
41
+ :blogpost="item"
42
+ :user="user"
43
+ :hideDescription="true"
44
+ class="bg-white flex flex-column h-35r"
45
+ />
46
+ </Slider>
47
+ </div>
12
48
  </section>
13
49
  </template>
14
50
 
15
51
  <script setup="props">
16
52
  import { ref, onMounted } from 'vue'
17
- import Feed from '@pf/src/modules/community/components/sections/Feed.vue';
53
+
54
+ import Feed from '@pf/src/components/Feed/Feed.vue'
55
+ import Slider from '@pf/src/components/Slider/Slider.vue'
56
+
57
+ import IconArrow from '@pf/src/modules/icons/navigation/IconArrow.vue'
58
+
59
+
60
+ import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';
18
61
  // Import state
19
62
  import * as blog from '@pf/src/modules/community/store/blogposts.js';
20
63
  import * as auth from '@pf/src/modules/auth/store/auth'
21
64
  </script>
22
65
 
23
- <style scoped>
24
- .community-feed {
25
- padding: 20px;
26
- }
27
-
28
- .grid-container {
29
- display: grid;
30
- grid-template-columns: 1fr 1fr 1fr 1fr; /* создаём две колонки */
31
- grid-gap: 20px;
32
- }
33
-
34
-
35
- </style>
66
+ <style lang="scss" >
67
+ .slider-hotpost .embla__slide {
68
+ flex: 0 0 25%;
69
+ }
36
70
 
71
+ @media screen and (max-width: 1025px) {
72
+ .slider-hotpost .embla__slide {
73
+ flex: 0 0 75%;
74
+ }
75
+ }
76
+ </style>