@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,177 @@
1
+ <script setup>
2
+ import { nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'
3
+
4
+ // Assuming the default props are handled similarly in JS
5
+ const props = defineProps({
6
+ columnWidth: { type: [Number, Array], default: 400 },
7
+ items: { type: Array, required: true },
8
+ gap: { type: Number, default: 0 },
9
+ rtl: { type: Boolean, default: false },
10
+ ssrColumns: { type: Number, default: 0 },
11
+ minColumns: { type: Number, default: 1 },
12
+ maxColumns: { type: Number, default: 3 },
13
+ keyMapper: { default: undefined },
14
+ })
15
+
16
+ const emit = defineEmits(['redraw', 'redrawSkip'])
17
+
18
+
19
+ const columns = ref([])
20
+ const wall = ref(null)
21
+ const scrollContainer = ref(null);
22
+
23
+ function useMasonryWall({
24
+ columns,
25
+ columnWidth,
26
+ emit,
27
+ gap,
28
+ items,
29
+ maxColumns,
30
+ minColumns,
31
+ rtl,
32
+ scrollContainer,
33
+ ssrColumns,
34
+ wall
35
+ }) {
36
+ // Helper function to recursively count the number of columns that can fit
37
+ function countIteratively(containerWidth, gap, count, consumed) {
38
+ const nextWidth = getColumnWidthTarget(count);
39
+ if (consumed + gap + nextWidth <= containerWidth) {
40
+ return countIteratively(containerWidth, gap, count + 1, consumed + gap + nextWidth);
41
+ }
42
+ return count;
43
+ }
44
+
45
+ // Calculate target width for a column at given index
46
+ function getColumnWidthTarget(columnIndex) {
47
+ const widths = Array.isArray(columnWidth.value) ? columnWidth.value : [columnWidth.value];
48
+ return widths[columnIndex % widths.length];
49
+ }
50
+
51
+ // Determine the number of columns based on the container's width
52
+ function columnCount() {
53
+ const count = countIteratively(
54
+ wall.value.getBoundingClientRect().width,
55
+ gap.value,
56
+ 0,
57
+ -gap.value // Account for initial gap
58
+ );
59
+ const boundedCount = Math.max(minColumns.value || 0, Math.min(count, maxColumns.value || count));
60
+ return boundedCount > 0 ? boundedCount : 1;
61
+ }
62
+
63
+ // Create columns arrays based on count
64
+ function createColumns(count) {
65
+ return Array.from({ length: count }, () => []);
66
+ }
67
+
68
+ // Initial columns setup for SSR
69
+ if (ssrColumns.value > 0) {
70
+ const newColumns = createColumns(ssrColumns.value);
71
+ props.items.forEach((_, i) => newColumns[i % ssrColumns.value].push(i));
72
+ columns.value = newColumns;
73
+ }
74
+
75
+ // Asynchronously fill columns with items
76
+ async function fillColumns(itemIndex) {
77
+ if (itemIndex >= props.items.length) return;
78
+ await nextTick();
79
+ const columnDivs = [...wall.value.children];
80
+ if (rtl.value) columnDivs.reverse();
81
+ const target = columnDivs.reduce((prev, curr) =>
82
+ curr.getBoundingClientRect().height < prev.getBoundingClientRect().height ? curr : prev
83
+ );
84
+ columns.value[+target.dataset.index].push(itemIndex);
85
+ await fillColumns(itemIndex + 1);
86
+ }
87
+
88
+ // Redraw columns, optionally forcing a refresh
89
+ async function redraw(force = false) {
90
+ if (columns.value.length === columnCount() && !force) {
91
+ emit('redrawSkip');
92
+ return;
93
+ }
94
+ columns.value = createColumns(columnCount());
95
+ // const scrollY = scrollContainer.value ? scrollContainer.value.scrollTop : window.scrollY;
96
+ await fillColumns(0);
97
+ // if (scrollContainer.value) {
98
+ // scrollContainer.value.scrollTop = scrollY;
99
+ // } else {
100
+ // window.scrollTo({ top: scrollY });
101
+ // }
102
+ emit('redraw');
103
+ }
104
+
105
+ // Observe wall size changes to trigger redraw
106
+ const resizeObserver = typeof ResizeObserver !== 'undefined' ? new ResizeObserver(() => redraw()) : undefined;
107
+
108
+ onMounted(() => {
109
+ redraw();
110
+ if (resizeObserver) resizeObserver.observe(wall.value);
111
+ });
112
+
113
+ onBeforeUnmount(() => {
114
+ if (resizeObserver) resizeObserver.unobserve(wall.value);
115
+ });
116
+
117
+ // Watchers for reactive properties
118
+ watch([items, rtl, columnWidth, gap, minColumns, maxColumns, ssrColumns], () => redraw(true));
119
+
120
+ return { getColumnWidthTarget };
121
+ }
122
+
123
+ const { getColumnWidthTarget } = useMasonryWall({
124
+ columns,
125
+ columnWidth: props.columnWidth,
126
+ emit,
127
+ gap: props.gap,
128
+ items: props.items,
129
+ maxColumns: props.maxColumns,
130
+ minColumns: props.minColumns,
131
+ rtl: props.rtl,
132
+ scrollContainer: props.scrollContainer,
133
+ ssrColumns: props.ssrColumns,
134
+ wall
135
+ });
136
+
137
+
138
+ </script>
139
+
140
+ <template>
141
+ <div
142
+ ref="wall"
143
+ class="masonry-wall"
144
+ :style="{ display: 'flex', gap: `${props.gap}px` }"
145
+ >
146
+ <div
147
+ v-for="(column, columnIndex) in columns"
148
+ :key="columnIndex"
149
+ class="masonry-column"
150
+ :data-index="columnIndex"
151
+ :style="{
152
+ 'display': 'flex',
153
+ 'flex-basis': `${getColumnWidthTarget(columnIndex)}px`,
154
+ 'flex-direction': 'column',
155
+ 'flex-grow': 1,
156
+ 'gap': `${props.gap}px`,
157
+ 'height': '-webkit-max-content, -moz-max-content, max-content',
158
+ 'min-width': 0,
159
+ }"
160
+ >
161
+ <div
162
+ v-for="(itemIndex, row) in column"
163
+ :key="props.keyMapper ? props.keyMapper(props.items[itemIndex], columnIndex, row, itemIndex) : itemIndex"
164
+ class="masonry-item"
165
+ >
166
+ <slot
167
+ :item="props.items[itemIndex]"
168
+ :column="columnIndex"
169
+ :row="row"
170
+ :index="itemIndex"
171
+ >
172
+ {{ props.items[itemIndex] }}
173
+ </slot>
174
+ </div>
175
+ </div>
176
+ </div>
177
+ </template>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="pd-thin radius-extra flex-nowrap flex">
2
+ <div class=" pd-thin radius-extra flex-nowrap flex">
3
3
  <Field
4
4
  v-model:field="inputField"
5
5
  @update:field="updateInput"
@@ -7,9 +7,9 @@
7
7
  @input="handleInput"
8
8
  @focus="handleFocus"
9
9
  @blur="checkInput"
10
- class="w-100 t-semi uppercase pd-small p-big"
10
+ class="w-100 p-medium t-regular uppercase pd-small"
11
11
  />
12
- <button v-if="action" @click="emitAction" class="w-max hover-bg-black hover-t-white t-black bg-main button" v-html="action"/>
12
+ <button v-if="action" @click="emitAction" class="t-medium radius-big uppercase cursor-pointer pd-l-semi pd-r-semi w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main" v-html="action"/>
13
13
  </div>
14
14
  </template>
15
15
 
@@ -61,6 +61,8 @@
61
61
  <Button
62
62
  :submit="a => store.shopcart.actions.toggleShopcart()"
63
63
  :counter="store.shopcart.getters.cartTotalAmount"
64
+ :showSucces="false"
65
+ :showLoader="false"
64
66
  class="pd-zero mn-l-auto"
65
67
  >
66
68
  <IconShopcart class="i-semi"/>
@@ -111,4 +111,6 @@ const { t } = useI18n(text)
111
111
  color: rgb(var(--main)) !important;
112
112
  }
113
113
 
114
+ a:hover { cursor: pointer; color: rgb(var(--main));;}
115
+
114
116
  </style>
@@ -1,123 +1,168 @@
1
1
  <template>
2
- <canvas ref="refCanvas"></canvas>
2
+ <canvas id="glcanvas" ref="refCanvas"/>
3
3
  </template>
4
4
 
5
5
  <script setup>
6
- import {onMounted, ref} from 'vue'
7
-
8
- let refCanvas = ref(null)
9
- const vertexShaderSource = `
10
- void main() {
11
- gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
12
- }
13
- `;
14
-
15
- const fragmentShaderSource = `
16
- precision mediump float;
17
-
18
- #define time (iTime * 0.9)
19
-
20
- vec4 gradient(float f)
21
- {
22
- vec4 c = vec4(0);
23
- f = mod(f, 1.5);
24
- for (int i = 0; i < 3; ++i)
25
- c[i] = pow(0.5 + 0.5 * sin(2.0 * (f + 0.2 * float(i))), 10.0);
26
- return c;
27
- }
28
-
29
- float offset(float th)
30
- {
31
- return 0.5 * sin(25.0 * th) * sin(time);
32
- }
33
-
34
- vec4 tunnel(float th, float radius)
35
- {
36
- return gradient(offset(th + 0.25 * time) + 3.0 * log(3.0 * radius) - time);
37
- }
38
-
39
- void main() {
40
- vec2 p = -1.0 + 2.0 * gl_FragCoord.xy / iResolution.xy;
41
- p.x *= iResolution.x / iResolution.y;
42
- gl_FragColor = tunnel(atan(p.y, p.x), 2.0 * length(p));
43
- }
44
- `;
45
-
46
- onMounted(() => {
47
- const canvas = refCanvas.value;
48
- const gl = canvas.getContext("webgl");
49
-
50
- if (!gl) {
51
- console.error("Unable to initialize WebGL. Your browser may not support it.");
52
- return;
53
- }
54
-
55
- const vertexShader = createShader(gl, gl.VERTEX_SHADER, vertexShaderSource);
56
- const fragmentShader = createShader(gl, gl.FRAGMENT_SHADER, fragmentShaderSource);
57
-
58
- const program = createProgram(gl, vertexShader, fragmentShader);
59
-
60
- gl.useProgram(program);
61
-
62
- const positionAttributeLocation = gl.getAttribLocation(program, "a_position");
63
- const positionBuffer = gl.createBuffer();
64
-
65
- gl.bindBuffer(gl.ARRAY_BUFFER, positionBuffer);
66
-
67
- const positions = new Float32Array([-1, -1, 3, -1, -1, 3]);
68
- gl.bufferData(gl.ARRAY_BUFFER, positions, gl.STATIC_DRAW);
69
-
70
- const vao = gl.createVertexArray();
71
- gl.bindVertexArray(vao);
72
- gl.enableVertexAttribArray(positionAttributeLocation);
73
-
74
- const size = 2;
75
- const type = gl.FLOAT;
76
- const normalize = false;
77
- const stride = 0;
78
- const offset = 0;
79
-
80
- gl.vertexAttribPointer(
81
- positionAttributeLocation, size, type, normalize, stride, offset
82
- );
83
-
84
- gl.clearColor(0, 0, 0, 0);
85
- gl.clear(gl.COLOR_BUFFER_BIT);
86
-
87
- gl.useProgram(program);
88
- gl.bindVertexArray(vao);
89
-
90
- gl.drawArrays(gl.TRIANGLES, 0, 3);
91
- });
92
-
93
- function createShader(gl, type, source) {
94
- const shader = gl.createShader(type);
95
- gl.shaderSource(shader, source);
96
- gl.compileShader(shader);
97
-
98
- if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
99
- console.error(gl.getShaderInfoLog(shader));
100
- gl.deleteShader(shader);
101
- return null;
102
- }
103
-
104
- return shader;
105
- }
106
-
107
- function createProgram(gl, vertexShader, fragmentShader) {
108
- const program = gl.createProgram();
109
- gl.attachShader(program, vertexShader);
110
- gl.attachShader(program, fragmentShader);
111
- gl.linkProgram(program);
112
-
113
- if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
114
- console.error(gl.getProgramInfoLog(program));
115
- gl.deleteProgram(program);
116
- return null;
117
- }
118
-
119
- return program;
120
- }
6
+ import {onMounted, ref} from 'vue'
7
+
8
+ onMounted(() => {
9
+ const canvas = document.getElementById('glcanvas');
10
+ const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
11
+
12
+ const vsSource = `
13
+ attribute vec4 aVertexPosition;
14
+ void main() {
15
+ gl_Position = aVertexPosition;
16
+ }
17
+ `;
18
+
19
+ // Fragment shader (your GLSL code goes here)
20
+ const fsSource = `
21
+ precision mediump float;
22
+
23
+ const float PI = 3.14159265358979323846264;
24
+ const float TWOPI = PI * 2.0;
25
+ const vec4 WHITE = vec4(0.0, 1.0, 0.533, 1); // Для цвета F6F9F7
26
+ const vec4 BLACK = vec4(0.0, 0.9, 0.48, 1); // Для цвета EBF2ED
27
+
28
+ const int MAX_RINGS = 30;
29
+ const float RING_DISTANCE = 0.03;
30
+ const float WAVE_COUNT = 60.0;
31
+ const float WAVE_DEPTH = 0.08;
32
+
33
+ uniform float iTime;
34
+ uniform vec2 iResolution;
35
+
36
+ void main() {
37
+ float rot = mod(iTime * 0.6, TWOPI);
38
+ vec2 fragCoord = gl_FragCoord.xy;
39
+ vec2 pos = vec2(fragCoord.x / iResolution.x, fragCoord.y / iResolution.y);
40
+ pos = vec2(3.0 * (pos.x - 0.5), 3.0 * (pos.y - 0.4));
41
+ float x = pos.x;
42
+ float y = pos.y;
43
+
44
+ bool black = false;
45
+ float prevRingDist = RING_DISTANCE;
46
+ for (int i = 0; i < MAX_RINGS; i++) {
47
+ vec2 center = vec2(0.0, 0.7 - RING_DISTANCE * float(i) * 1.2);
48
+ float radius = 0.5 + RING_DISTANCE / (pow(float(i + 5), 1.1) * 0.006);
49
+ float dist = distance(center, pos);
50
+ dist = pow(dist, 0.3);
51
+ float ringDist = abs(dist - radius);
52
+ if (ringDist < RING_DISTANCE * prevRingDist * 7.0) {
53
+ float angle = atan(y - center.y, x - center.x);
54
+ float thickness = 1.1 * abs(dist - radius) / prevRingDist;
55
+ float depthFactor = WAVE_DEPTH * sin((angle + rot * radius) * WAVE_COUNT);
56
+ if (dist > radius) {
57
+ black = (thickness < RING_DISTANCE * 5.0 - depthFactor * 2.0);
58
+ } else {
59
+ black = (thickness < RING_DISTANCE * 5.0 + depthFactor);
60
+ }
61
+ break;
62
+ }
63
+ if (dist > radius) break;
64
+ prevRingDist = ringDist;
65
+ }
66
+
67
+ gl_FragColor = black ? BLACK : WHITE;
68
+ }
69
+
70
+ `;
71
+
72
+ function compileShader(gl, type, source) {
73
+ const shader = gl.createShader(type);
74
+ gl.shaderSource(shader, source);
75
+ gl.compileShader(shader);
76
+
77
+ // Check for compilation errors
78
+ if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
79
+ alert('An error occurred compiling the shaders: ' + gl.getShaderInfoLog(shader));
80
+ gl.deleteShader(shader);
81
+ return null;
82
+ }
83
+
84
+ return shader;
85
+ }
86
+
87
+ const vertexShader = compileShader(gl, gl.VERTEX_SHADER, vsSource);
88
+ const fragmentShader = compileShader(gl, gl.FRAGMENT_SHADER, fsSource);
89
+
90
+ // Create the shader program
91
+ const shaderProgram = gl.createProgram();
92
+
93
+ gl.attachShader(shaderProgram, vertexShader);
94
+ gl.attachShader(shaderProgram, fragmentShader);
95
+ gl.linkProgram(shaderProgram);
96
+
97
+ // Check for linking errors
98
+ if (!gl.getProgramParameter(shaderProgram, gl.LINK_STATUS)) {
99
+ alert('Unable to initialize the shader program: ' + gl.getProgramInfoLog(shaderProgram));
100
+ }
101
+
102
+ function resizeCanvasToDisplaySize(canvas) {
103
+ const width = canvas.clientWidth * window.devicePixelRatio;
104
+ const height = canvas.clientHeight * window.devicePixelRatio;
105
+ if (canvas.width !== width || canvas.height !== height) {
106
+ canvas.width = width;
107
+ canvas.height = height;
108
+ return true; // размер изменился
109
+ }
110
+ return false; // размер не изменился
111
+ }
112
+
113
+
114
+ function render() {
115
+ if (resizeCanvasToDisplaySize(gl.canvas)) {
116
+ gl.viewport(0, 0, gl.canvas.width, gl.canvas.height);
117
+ }
118
+ gl.clearColor(0.0, 0.0, 0.0, 1.0); // Clear to black, fully opaque
119
+ gl.clearDepth(1.0); // Clear everything
120
+ gl.enable(gl.DEPTH_TEST); // Enable depth testing
121
+ gl.depthFunc(gl.LEQUAL); // Near things obscure far things
122
+
123
+ // Clear the canvas before we start drawing on it
124
+ gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
125
+
126
+ // Set the shader program
127
+ gl.useProgram(shaderProgram);
128
+
129
+ // Set up geometry, attributes, uniforms here
130
+ // Create a buffer for the square's positions
131
+ const positionBuffer = gl.createBuffer();
132
+ gl.bindBuffer(gl.ARRAY_BUFFER, positionBuffer);
133
+
134
+ // Now create an array of positions for the square
135
+ const positions = [
136
+ -1.0, 1.0,
137
+ 1.0, 1.0,
138
+ -1.0, -1.0,
139
+ 1.0, -1.0,
140
+ ];
141
+
142
+ // Pass the positions to WebGL
143
+ gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(positions), gl.STATIC_DRAW);
144
+
145
+ // Tell WebGL how to pull out the positions from the position buffer
146
+ const vertexPosition = gl.getAttribLocation(shaderProgram, 'aVertexPosition');
147
+ gl.vertexAttribPointer(vertexPosition, 2, gl.FLOAT, false, 0, 0);
148
+ gl.enableVertexAttribArray(vertexPosition);
149
+
150
+ // Set the shader uniforms
151
+ var timeUniformLocation = gl.getUniformLocation(shaderProgram, 'iTime');
152
+ var resolutionUniformLocation = gl.getUniformLocation(shaderProgram, 'iResolution');
153
+
154
+ gl.uniform1f(timeUniformLocation, performance.now() / 3000.0);
155
+ gl.uniform2f(resolutionUniformLocation, gl.canvas.width, gl.canvas.height);
156
+
157
+ // Draw the scene
158
+ gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
159
+
160
+ // Call render again on the next frame
161
+ requestAnimationFrame(render);
162
+ }
163
+ requestAnimationFrame(render);
164
+
165
+ });
121
166
  </script>
122
167
 
123
168
  <style scoped>
@@ -0,0 +1,92 @@
1
+ <template>
2
+ <div class="embla" ref="emblaNode">
3
+ <div class="embla__container">
4
+
5
+ <div class="embla__slide pd-nano" v-for="(entity, key, index) in entitiesState" :key="key">
6
+ <transition name="fade" mode="out-in" appear>
7
+ <!-- <div
8
+ v-if="!isLoading && entitiesState.length > 0"
9
+ class="h-100 w-100 radius-big flex-center bg-grey"
10
+ >
11
+ <Loader class="pos-relative"/>
12
+ </div>
13
+ -->
14
+ <slot
15
+ :item="entity"
16
+ :user="user"
17
+ ></slot>
18
+ </transition>
19
+ </div>
20
+
21
+ </div>
22
+ </div>
23
+ </template>
24
+
25
+ <style scoped>
26
+
27
+ </style>
28
+
29
+ <script setup scoped>
30
+ import { ref, onMounted } from 'vue'
31
+ import { useRouter } from 'vue-router'
32
+ import { useI18n } from 'vue-i18n'
33
+
34
+ import emblaCarouselVue from 'embla-carousel-vue'
35
+ import Autoplay from 'embla-carousel-autoplay'
36
+
37
+ import Loader from '@pf/src/components/Loader/Loader.vue'
38
+
39
+ // Props for customization
40
+ const props = defineProps({
41
+ store: Object, // Expect a store object with a 'read' function
42
+ options: Object, // Options to pass to the store's read function
43
+ text: Object, // Optional: Custom text for i18n
44
+ });
45
+
46
+ const router = useRouter()
47
+
48
+ const { t } = useI18n(props.text || {
49
+ messages: {
50
+ en: {
51
+ title: 'Explore Our Collection',
52
+ },
53
+ }
54
+ })
55
+
56
+ const entitiesState = ref([])
57
+ const isLoading = ref(true);
58
+
59
+
60
+ const autoplayOptions = {
61
+ delay: 2000,
62
+ jump: false,
63
+ stopOnInteraction: false,
64
+ stopOnMouseEnter: false,
65
+ stopOnFocusIn: true,
66
+ stopOnLastSnap: false,
67
+ rootNode: (emblaRoot) => emblaRoot.parentElement
68
+ }
69
+
70
+ const [emblaNode, emblaApi] = emblaCarouselVue({ loop: true }, [Autoplay(autoplayOptions)])
71
+
72
+ const scrollTo = (index) => emblaApi.value && emblaApi.value.scrollTo(index);
73
+ // const onInit = (embla) => scrollSnaps.value = emblaApi.value.scrollSnapList();
74
+ const onSelect = (embla) => selectedIndex.value = emblaApi.value.selectedScrollSnap();
75
+
76
+ onMounted(async() => {
77
+ entitiesState.value = await props.store.read({
78
+ ...props.options
79
+ });
80
+
81
+ console.log(entitiesState.value)
82
+
83
+ isLoading.value = false;
84
+
85
+ onInit(emblaApi);
86
+ onSelect(emblaApi);
87
+
88
+ emblaApi.value.on('reInit', onInit);
89
+ emblaApi.value.on('reInit', onSelect);
90
+ emblaApi.value.on('select', onSelect);
91
+ });
92
+ </script>
@@ -0,0 +1,2 @@
1
+
2
+ import SubscribeNewsletter from './components/sections/SubscribeNewsletter.vue';