@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
@@ -0,0 +1,114 @@
1
+ <template>
2
+ <section class="pd-thin">
3
+ <div class="pos-relative o-hidden t-black bg-main pd-big radius-big">
4
+ <div class="pos-relative z-index-1">
5
+ <header class="t-center z-index-1 mn-b-big">
6
+ <h2 class="mn-l-auto mn-r-auto mn-b-medium">Stay Updated with <b>Latest in Cannabis</b></h2>
7
+ <p class="t-transp p-big">Subscribe to our newsletter for news, insights, and more from the Weeder universe.</p>
8
+ </header>
9
+
10
+ <div class="z-index-1 w-100 flex-nowrap flex">
11
+
12
+ <!-- v-model:field="store.applications.state.form.data.email" -->
13
+ <FieldBig
14
+ :input="email"
15
+ :typingSpeed="75"
16
+ :loopTyping="false"
17
+ :enableTyping="false"
18
+ placeholder="Please enter your email"
19
+ action="Subscribe"
20
+ @update:input="email = $event"
21
+ @action="sendApplication"
22
+ class="mn-l-auto mn-r-auto bg-white t-black w-50"
23
+ />
24
+ </div>
25
+ </div>
26
+
27
+ <div class="w-100 h-100 pos-absolute pos-b-50-negative pos-r-0 z-index-0 grid">
28
+ <div class="spiral"></div>
29
+ </div>
30
+
31
+ </div>
32
+ </section>
33
+ </template>
34
+
35
+ <script setup>
36
+ import { ref } from 'vue'
37
+
38
+ import FieldBig from "@pf/src/components/FieldBig/FieldBig.vue";
39
+
40
+ import * as globals from '@pf/src/modules/globals/store/globals.js';
41
+ import * as applications from '@pf/src/modules/applications/store/applications.js';
42
+
43
+ import * as inputsValidation from '@pf/src/modules/middlewares/client/inputs.validation'
44
+
45
+
46
+ let email = ref('')
47
+ let emailValidation = ref(false)
48
+
49
+ async function sendApplication() {
50
+ try {
51
+ await inputsValidation.validateInputs(
52
+ emailValidation,
53
+ inputsValidation.validateEmail,
54
+ email.value,
55
+ 'Wrong email'
56
+ )
57
+ } catch (error) {
58
+ globals.setError({
59
+ response: {
60
+ status: "Invalid Email",
61
+ data: {
62
+ message: "The email address entered is invalid. Please provide a valid email address."
63
+ }
64
+ }
65
+ });
66
+ return false
67
+ }
68
+
69
+ gtag('event', 'subscribe_newsletter', {
70
+ 'event_category': 'conversion',
71
+ 'event_label': 'Subscribe Newsletter'
72
+ });
73
+
74
+ try {
75
+ let application = {
76
+ type: 'newsletter',
77
+ contacts: {
78
+ email: email.value
79
+ }
80
+ };
81
+ const response = await applications.create(application);
82
+ return Promise.resolve(response.data);
83
+ } catch (error) {
84
+ console.log(error)
85
+ globals.setError(error)
86
+ return Promise.reject(error);
87
+ }
88
+ }
89
+ </script>
90
+
91
+ <style lang="scss">
92
+ .spiral {
93
+ background-image: url('https://weeder.delivery/spiral.jpg');
94
+ background-size: cover;
95
+ width: 100rem;
96
+ height: 100rem;
97
+ position: absolute;
98
+ top: 50%;
99
+ left: 50%;
100
+ opacity: 0.03;
101
+ transform: translate(-50%, -50%) rotate(0deg);
102
+ transform-origin: center center;
103
+ animation: spin 5s linear infinite;
104
+ }
105
+
106
+ @keyframes spin {
107
+ 0% {
108
+ transform: translate(-50%, -50%) rotate(0deg);
109
+ }
110
+ 100% {
111
+ transform: translate(-50%, -50%) rotate(360deg);
112
+ }
113
+ }
114
+ </style>
@@ -1,161 +1,150 @@
1
- // CONFIGS
2
- // const sms = require("../config/sms.config");
3
1
  // --------------------------------------------------
4
2
  // DEPENENCY
5
3
  // --------------------------------------------------
6
4
  const axios = require('axios');
7
- // --------------------------------------------------
8
- // Used models
9
5
  // --------------------------------------------------
10
- const db = require("../models");
11
- const Application = db.application;
6
+ // UTILS
7
+ // --------------------------------------------------
8
+ const { sendChatMessageTelegram } = require('@pf/src/modules/globals/utils/mailing');
12
9
  // --------------------------------------------------
13
10
  // METHODS
14
11
  // --------------------------------------------------
15
- exports.getAll = async (req, res) => {
16
- try {
17
- const applications = await Application.find({});
18
- if (!applications) {
19
- return res.status(404).send({ message: "Applications not found." });
20
- }
21
- res.status(200).send(applications);
22
- } catch (err) {
23
- res.status(500).send({ message: err });
24
- }
25
- };
26
-
27
- exports.create = async (req, res) => {
28
- try {
29
- const application = await Application.create(req.body);
30
- if (!application) {
31
- return res.status(404).send({ message: "Something wrong when creating application." });
32
- }
12
+ const middlewareFactory = (db) => {
13
+ const Application = db.application;
33
14
 
34
- const telegramToken = '6206215053:AAHYCYzpFZF9jDZC-TC03NSff8oo2ExqsSU';
35
- const chatIds = [6256868874, 2011851185]; // Массив с chat IDs
36
-
37
- // Форматирование текста сообщения
38
- const text = `New lead from raisex.co:\n Name: ${application.name}\n Phone: ${application.phone}\n Status: ${application.status}`;
39
-
40
- // Создание кнопок
41
- const inlineKeyboard = JSON.stringify({
42
- inline_keyboard: [
43
- [
44
- { text: 'Confirm', callback_data: `confirm_${application._id}` },
45
- { text: 'Lost', callback_data: `lost_${application._id}` },
46
- { text: 'Delete', callback_data: `delete_${application._id}` }
47
- ]
48
- ]
49
- });
50
-
51
- const telegramUrl = `https://api.telegram.org/bot${telegramToken}/sendMessage`;
52
-
53
- // Отправка сообщения каждому чату из массива
54
- for (const chatId of chatIds) {
55
- await axios.post(telegramUrl, {
56
- chat_id: chatId,
57
- text: text,
58
- // reply_markup: inlineKeyboard
59
- });
15
+ const read = async (req, res) => {
16
+ try {
17
+ const applications = await Application.find({});
18
+ if (!applications) {
19
+ return res.status(404).send({ message: "Applications not found." });
20
+ }
21
+ res.status(200).send(applications);
22
+ } catch (err) {
23
+ res.status(500).send({ message: err });
60
24
  }
25
+ };
61
26
 
62
- res.status(200).send(application);
63
-
64
- } catch (err) {
65
- res.status(500).send({ message: err });
66
- }
67
- };
68
-
27
+ const create = async (req, res) => {
28
+ try {
29
+ const application = await Application.create(req.body);
69
30
 
70
- exports.handleTelegramWebhook = async (req, res) => {
71
- const update = req.body;
31
+ if (!application) {
32
+ return res.status(404).send({ message: "Something wrong when creating application." });
33
+ }
72
34
 
73
- // Проверка, является ли это обратным вызовом от inline клавиатуры
74
- if (update.callback_query) {
75
- const callbackQuery = update.callback_query;
76
- const callbackData = callbackQuery.data;
35
+ try {
36
+ const messageSent = await sendChatMessageTelegram(process.env.TELEGRAM_BOT_USERS.split(","),`New application from ${req.body}`)
37
+ } catch (err) {
38
+ console.log(err)
39
+ }
40
+ res.status(200).send(application);
77
41
 
78
- // Разбор callback_data
79
- const [action, applicationId] = callbackData.split('_');
42
+ } catch (err) {
43
+ res.status(500).send({ message: err });
44
+ }
45
+ };
80
46
 
47
+ const update = async (req, res) => {
81
48
  try {
82
- // Выполнение действий в зависимости от callback_data
83
- let updatedApplication = null;
84
-
85
- switch (action) {
86
- case 'confirm':
87
- updatedApplication = await Application.findOneAndUpdate(
88
- { _id: applicationId },
89
- { status: 'confirmed' },
90
- { new: true }
91
- );
92
- break;
93
- case 'lost':
94
- updatedApplication = await Application.findOneAndUpdate(
95
- { _id: applicationId },
96
- { status: 'lost' },
97
- { new: true }
98
- );
99
- break;
100
- case 'delete':
101
- updatedApplication = await Application.findOneAndDelete({ _id: applicationId });
102
- break;
103
- }
104
-
105
- if (!updatedApplication) {
106
- console.log("Application not found or not updated.");
107
- } else {
108
- console.log("Application updated:", updatedApplication);
109
- }
110
-
49
+ const application = await Application.findOneAndUpdate({ _id: req.params._id }, req.body, { new: true });
50
+ if (!application) {
51
+ return res.status(404).send({ message: "Application not found." });
52
+ }
53
+ res.status(200).send(application);
111
54
  } catch (err) {
112
- console.log("Error updating application:", err);
55
+ res.status(500).send({ message: err });
113
56
  }
57
+ };
114
58
 
115
- // Ответ на callback query, чтобы убрать часы ожидания на кнопке
116
- const queryId = callbackQuery.id;
117
- const telegramToken = '6206215053:AAHYCYzpFZF9jDZC-TC03NSff8oo2ExqsSU';
118
- axios.post(`https://api.telegram.org/bot${telegramToken}/answerCallbackQuery`, {
119
- callback_query_id: queryId
120
- });
121
- }
122
-
123
- res.sendStatus(200);
124
- };
125
-
126
- exports.get = async (req, res) => {
127
- try {
128
- const application = await Application.findOne({ url: req.params.url });
129
- if (!application) {
130
- return res.status(404).send({ message: "Application not found." });
59
+ const deleteMethod = async (req, res) => {
60
+ try {
61
+ const application = await Application.findOneAndDelete({ _id: req.params._id });
62
+ if (!application) {
63
+ return res.status(404).send({ message: "Something wrong when deleting application." });
64
+ }
65
+ res.status(200).send(application);
66
+ } catch (err) {
67
+ res.status(500).send({ message: err });
131
68
  }
132
- res.status(200).send(application);
133
- } catch (err) {
134
- res.status(500).send({ message: err });
135
- }
136
- };
69
+ };
137
70
 
138
- exports.update = async (req, res) => {
139
- try {
140
- const application = await Application.findOneAndUpdate({ _id: req.params._id }, req.body, { new: true });
141
- if (!application) {
142
- return res.status(404).send({ message: "Application not found." });
71
+ const get = async (req, res) => {
72
+ try {
73
+ const application = await Application.findOne({ url: req.params.url });
74
+ if (!application) {
75
+ return res.status(404).send({ message: "Application not found." });
76
+ }
77
+ res.status(200).send(application);
78
+ } catch (err) {
79
+ res.status(500).send({ message: err });
143
80
  }
144
- res.status(200).send(application);
145
- } catch (err) {
146
- res.status(500).send({ message: err });
147
- }
148
- };
149
-
150
- exports.delete = async (req, res) => {
151
- try {
152
- const application = await Application.findOneAndDelete({ _id: req.params._id });
153
- if (!application) {
154
- return res.status(404).send({ message: "Something wrong when deleting application." });
81
+ };
82
+
83
+ const handleTelegramWebhook = async (req, res) => {
84
+ const update = req.body;
85
+
86
+ // Проверка, является ли это обратным вызовом от inline клавиатуры
87
+ if (update.callback_query) {
88
+ const callbackQuery = update.callback_query;
89
+ const callbackData = callbackQuery.data;
90
+
91
+ // Разбор callback_data
92
+ const [action, applicationId] = callbackData.split('_');
93
+
94
+ try {
95
+ // Выполнение действий в зависимости от callback_data
96
+ let updatedApplication = null;
97
+
98
+ switch (action) {
99
+ case 'confirm':
100
+ updatedApplication = await Application.findOneAndUpdate(
101
+ { _id: applicationId },
102
+ { status: 'confirmed' },
103
+ { new: true }
104
+ );
105
+ break;
106
+ case 'lost':
107
+ updatedApplication = await Application.findOneAndUpdate(
108
+ { _id: applicationId },
109
+ { status: 'lost' },
110
+ { new: true }
111
+ );
112
+ break;
113
+ case 'delete':
114
+ updatedApplication = await Application.findOneAndDelete({ _id: applicationId });
115
+ break;
116
+ }
117
+
118
+ if (!updatedApplication) {
119
+ console.log("Application not found or not updated.");
120
+ } else {
121
+ console.log("Application updated:", updatedApplication);
122
+ }
123
+
124
+ } catch (err) {
125
+ console.log("Error updating application:", err);
126
+ }
127
+
128
+ // Ответ на callback query, чтобы убрать часы ожидания на кнопке
129
+ const queryId = callbackQuery.id;
130
+ const telegramToken = '6206215053:AAHYCYzpFZF9jDZC-TC03NSff8oo2ExqsSU';
131
+ axios.post(`https://api.telegram.org/bot${telegramToken}/answerCallbackQuery`, {
132
+ callback_query_id: queryId
133
+ });
155
134
  }
156
- res.status(200).send(application);
157
- } catch (err) {
158
- res.status(500).send({ message: err });
159
- }
135
+
136
+ res.sendStatus(200);
137
+ };
138
+
139
+
140
+ return {
141
+ read,
142
+ create,
143
+ update,
144
+ delete: deleteMethod,
145
+ handleTelegramWebhook,
146
+ get
147
+ };
160
148
  };
161
149
 
150
+ module.exports = middlewareFactory;
@@ -1,13 +1,28 @@
1
1
  const mongoose = require('mongoose');
2
2
 
3
3
  const ApplicationSchema = new mongoose.Schema({
4
- status: {type: String, default: 'New'},
5
- deal: {type: String},
6
- name: {type: String},
7
- phone: {type: String},
8
- }, {
9
- timestamps: { currentTime: () => Date.now() }
10
- });
4
+ status: {
5
+ type: String,
6
+ default: 'created'
7
+ },
8
+ type: {
9
+ type: String,
10
+ default: 'newsletter'
11
+ },
12
+ contacts: {
13
+ name: {
14
+ type: String
15
+ },
16
+ phone: {
17
+ type: String
18
+ },
19
+ email: {
20
+ type: String
21
+ },
22
+ }
23
+ }, {
24
+ timestamps: { currentTime: () => Date.now() }
25
+ });
11
26
 
12
27
  const Application = mongoose.model("Application", ApplicationSchema);
13
28
 
@@ -1,16 +1,24 @@
1
- const controller = require("../controllers/applications.controller");
1
+ // Factories
2
+ const controllerFactory = require("../controllers/applications.controller");
3
+ // Middlewares
4
+ const middlewareFactoryGlobal = require('@pf/src/modules/middlewares/server');
5
+ module.exports = function(app, db, origins) {
6
+ const controller = controllerFactory(db);
7
+
8
+ const { authJwt } = middlewareFactoryGlobal(db);
2
9
 
3
- module.exports = function(app) {
4
10
  app.use(function(req, res, next) {
5
- res.header("Access-Control-Allow-Headers", "Access-Control-Allow-Origin: *", "x-access-token, Origin, Content-Type, Accept");
6
- next();
7
- });
11
+
12
+ const origin = req.headers.origin;
8
13
 
14
+ if (origins.includes(origin)) {
15
+ res.setHeader('Access-Control-Allow-Origin', origin);
16
+ }
9
17
 
10
- app.get(
11
- "/applications",
12
- controller.getAll
13
- );
18
+ res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
19
+
20
+ next();
21
+ });
14
22
 
15
23
  app.post(
16
24
  "/applications",
@@ -18,11 +26,11 @@ module.exports = function(app) {
18
26
  );
19
27
 
20
28
  app.get(
21
- "/applications/:_id",
22
- controller.get
29
+ "/applications",
30
+ controller.read
23
31
  );
24
32
 
25
- app.post(
33
+ app.post(
26
34
  "/applications/:_id",
27
35
  controller.update
28
36
  );
@@ -31,8 +39,16 @@ module.exports = function(app) {
31
39
  "/applications/:_id",
32
40
  controller.delete
33
41
  );
42
+
43
+ app.get(
44
+ "/applications/:_id",
45
+ controller.get
46
+ );
34
47
 
35
- app.post("/applications/telegram-webhook", controller.handleTelegramWebhook);
48
+ app.post(
49
+ "/applications/telegram-webhook",
50
+ controller.handleTelegramWebhook
51
+ );
36
52
 
37
53
  };
38
54
 
@@ -6,7 +6,7 @@ const { uuid } = require('uuidv4');
6
6
  const { verifyAppleIdToken } = require('../utils/server/verifyAppleIdToken')
7
7
  // Factory
8
8
  const controllerFactory = (db) => {
9
-
9
+
10
10
  const User = db.user;
11
11
  const Membership = db.membership;
12
12
  const Invite = db.invite;
@@ -38,7 +38,6 @@ const controllerFactory = (db) => {
38
38
  }
39
39
 
40
40
  try {
41
-
42
41
  let user = await User.findOne(query).populate('roles').exec();
43
42
 
44
43
  if ((type === 'email' || type === 'phone')) {
@@ -89,7 +88,7 @@ const controllerFactory = (db) => {
89
88
  }
90
89
  });
91
90
  } catch (err) {
92
- console.error(err);
91
+ // console.error(err);
93
92
  res.status(500).send({ message: err });
94
93
  }
95
94
  };
@@ -32,8 +32,6 @@
32
32
 
33
33
  const userCookie = await getCookie('user');
34
34
 
35
- console.log('user cookie is ' + userCookie)
36
-
37
35
  if (userCookie) {
38
36
  const { _id, email, phone, roles, accessToken } = userCookie;
39
37
 
@@ -212,8 +210,8 @@
212
210
 
213
211
  // Cookies
214
212
  const optionsDefault = {
215
- development: { secure: false, expires: 1 },
216
- production: { expires: 1, domain: process.env.API_URL, sameSite: 'none', secure: true }
213
+ development: { secure: false, expires: 7 },
214
+ production: { expires: 7, path: '/', domain: process.env.API_URL, sameSite: 'none', secure: true }
217
215
  };
218
216
 
219
217
  async function getCookie(name) {
@@ -226,7 +224,7 @@
226
224
  }
227
225
  }
228
226
 
229
- function setCookie(name, data, env = process.env.NODE_ENV) {
227
+ function setCookie(name, data, env = process.env.DOMAIN_URL) {
230
228
  if (process.env.MOBILE_APP) {
231
229
  // Если приложение запущено в Capacitor
232
230
  Preferences.set({
@@ -3,8 +3,9 @@
3
3
  class="pd-small"
4
4
  :class="{'bg-main-nano': message.username === 'Weeder Support'}"
5
5
  >
6
- <p class="w-100 p-small">
7
- <strong class="mn-r-auto">{{ message.username }} {{formatDate(message.createdAt)}}:</strong>
6
+ <p class="flex-v-center gap-thin flex-nowrap flex w-100 p-small">
7
+ <img v-if="message.username === 'Weeder Support'" src="/logo/logo.png" class="i-medium">
8
+ <strong class="mn-r-auto"><span class="t-semi">{{ message.username }}</span> <span class="t-transp">{{formatDate(message.createdAt)}}</span></strong>
8
9
  </p>
9
10
  <p>{{ message.text }}</p>
10
11
  </div>
@@ -1,15 +1,15 @@
1
1
  <template>
2
- <div class="chat-page">
3
- <aside class="chat-list">
2
+ <!-- <div class="chat-page h-max-20r"> -->
3
+ <!-- <aside class="chat-list"> -->
4
4
  <!-- Примерный список чатов. Должен быть дополнен реальной логикой -->
5
5
  <!-- <div v-for="chat in chats" :key="chat.id" @click="selectChat(chat.id)">
6
6
  Чат {{ chat.name }}
7
7
  </div> -->
8
- </aside>
9
- <main class="chat-main">
8
+ <!-- </aside> -->
9
+ <!-- <main class="chat-main"> -->
10
10
  <ChatWindow />
11
- </main>
12
- </div>
11
+ <!-- </main> -->
12
+ <!-- </div> -->
13
13
  </template>
14
14
 
15
15
  <script setup>