@ozdao/prometheus-framework 0.2.29 → 0.2.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (326) hide show
  1. package/dist/addMembersQuantity-3505b6f3.mjs +98 -0
  2. package/dist/addMembersQuantity-fb552ca0.js +97 -0
  3. package/dist/auth.server.js +6 -9
  4. package/dist/auth.server.mjs +6 -9
  5. package/dist/community.server.js +28 -21
  6. package/dist/community.server.mjs +28 -21
  7. package/dist/events.server.js +1 -1
  8. package/dist/events.server.mjs +1 -1
  9. package/dist/files.server.js +114 -111
  10. package/dist/files.server.mjs +114 -111
  11. package/dist/gallery.server.js +3 -3
  12. package/dist/gallery.server.mjs +3 -3
  13. package/dist/globals.server.js +1 -1
  14. package/dist/globals.server.mjs +1 -1
  15. package/dist/index-a8dffc0c.js +213 -0
  16. package/dist/index-d769324d.mjs +214 -0
  17. package/dist/mailing-37c2ba41.mjs +68 -0
  18. package/dist/mailing-fe16a26a.js +67 -0
  19. package/dist/main.css +1 -1
  20. package/dist/middlewares.server.js +1 -1
  21. package/dist/middlewares.server.mjs +1 -1
  22. package/dist/organizations.server.js +125 -25
  23. package/dist/organizations.server.mjs +125 -25
  24. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +49 -2
  26. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +2 -49
  28. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
  30. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
  32. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  34. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  36. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  38. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
  39. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +62 -2
  40. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
  41. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -62
  42. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  44. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  46. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  48. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  50. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  52. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  54. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  60. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  62. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  68. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  76. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  78. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  80. package/dist/prometheus-framework.cjs.js +30 -29
  81. package/dist/prometheus-framework.es.js +2478 -2282
  82. package/dist/reports.server.js +1 -1
  83. package/dist/reports.server.mjs +1 -1
  84. package/dist/style.css +1 -1
  85. package/dist/users.server.js +1 -1
  86. package/dist/users.server.mjs +1 -1
  87. package/package.json +4 -2
  88. package/src/assets/images/logo.svg +7 -7
  89. package/src/components/Block/Block.vue +77 -0
  90. package/src/components/Breadcrumbs/Breadcrumbs.vue +2 -2
  91. package/src/components/Button/Button.vue +32 -227
  92. package/src/components/Checkbox/Checkbox.vue +1 -1
  93. package/src/components/Chips/Chips.vue +8 -8
  94. package/src/components/DatePicker/DatePicker.vue +3 -4
  95. package/src/components/EditImages/EditImages.vue +32 -14
  96. package/src/{modules/globals/components/sections → components/Feed}/Feed.vue +60 -45
  97. package/src/components/FieldBig/FieldBig.vue +16 -5
  98. package/src/components/FieldPhone/FieldPhone.vue +2 -1
  99. package/src/components/Footer/Footer.vue +36 -27
  100. package/src/components/Header/Header.vue +161 -166
  101. package/src/components/Loader/Loader.vue +9 -2
  102. package/src/components/LocationMarker/LocationMarker.vue +38 -12
  103. package/src/components/LocationSelection/LocationSelection.vue +67 -75
  104. package/src/components/Magnifier/Magnifier.vue +3 -3
  105. package/src/components/Navigation/Navigation.vue +16 -16
  106. package/src/components/Popup/Popup.vue +8 -6
  107. package/src/components/Select/Select.vue +35 -6
  108. package/src/components/SelectMulti/SelectMulti.vue +5 -13
  109. package/src/components/Shader/Shader.vue +128 -0
  110. package/src/components/Sidebar/Sidebar.vue +71 -35
  111. package/src/components/Spoiler/Spoiler.vue +1 -1
  112. package/src/components/Tab/Tab.vue +1 -1
  113. package/src/components/Tooltip/Tooltip.vue +1 -1
  114. package/src/components/UploadImage/UploadImage.vue +4 -4
  115. package/src/components/UploadImageMultiple/UploadImageMultiple.vue +54 -10
  116. package/src/modules/applications/controllers/applications.controller.js +0 -1
  117. package/src/modules/auth/components/pages/EnterCode.vue +1 -1
  118. package/src/modules/auth/components/pages/EnterPassword.vue +3 -3
  119. package/src/modules/auth/components/pages/ResetPassword.vue +1 -2
  120. package/src/modules/auth/components/pages/SignIn.vue +26 -10
  121. package/src/modules/auth/components/pages/SignUp.vue +1 -2
  122. package/src/modules/auth/controllers/twofa.controller.js +4 -4
  123. package/src/modules/auth/localization/EnterCode.json +2 -2
  124. package/src/modules/auth/localization/EnterPassword.json +2 -2
  125. package/src/modules/auth/localization/ResetPassword.json +2 -2
  126. package/src/modules/auth/localization/SignIn.json +3 -3
  127. package/src/modules/auth/localization/SignUp.json +3 -3
  128. package/src/modules/auth/utils/server/verifyAppleIdToken.js +0 -1
  129. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  130. package/src/modules/backoffice/components/pages/Dashboard.vue +171 -120
  131. package/src/modules/backoffice/router/backoffice.js +119 -129
  132. package/src/modules/chats/components/blocks/ChatMessage.vue +25 -0
  133. package/src/modules/chats/components/pages/ChatPage.vue +50 -0
  134. package/src/modules/chats/components/sections/ChatWindow.vue +38 -0
  135. package/src/modules/chats/controllers/chats.controller.js +32 -0
  136. package/src/modules/chats/models/chat.model.js +26 -0
  137. package/src/modules/chats/routes/chats.routes.js +53 -0
  138. package/src/modules/chats/store/chat.store.js +61 -0
  139. package/src/modules/community/components/blocks/CardBlogpost.vue +19 -4
  140. package/src/modules/community/components/layouts/Community.vue +96 -39
  141. package/src/modules/community/components/pages/Blog.vue +4 -3
  142. package/src/modules/community/components/pages/BlogPost.vue +10 -1
  143. package/src/modules/community/components/pages/CreateBlogPost.vue +36 -17
  144. package/src/modules/community/components/sections/HotPosts.vue +3 -3
  145. package/src/modules/community/components/sections/JoinUs.vue +19 -13
  146. package/src/modules/community/controllers/blog.controller.js +3 -4
  147. package/src/modules/community/controllers/utils/queryProcessor.js +16 -17
  148. package/src/modules/community/models/blogpost.model.js +6 -3
  149. package/src/modules/community/store/blogposts.js +1 -0
  150. package/src/modules/constructor/components/elements/Embed.vue +12 -1
  151. package/src/modules/constructor/components/elements/ImageUpload.vue +2 -2
  152. package/src/modules/constructor/components/elements/Textarea.vue +6 -1
  153. package/src/modules/constructor/components/elements/Video.vue +79 -0
  154. package/src/modules/constructor/components/elements/VideoPlayer.vue +59 -0
  155. package/src/modules/constructor/components/elements/Youtube.vue +52 -0
  156. package/src/modules/constructor/components/sections/Constructor.vue +27 -3
  157. package/src/modules/events/components/layouts/layoutEvents.vue +7 -28
  158. package/src/modules/files/controllers/files.controller.js +9 -22
  159. package/src/modules/files/middlewares/server/index.js +2 -2
  160. package/src/modules/files/middlewares/server/middlewareBusboy.js +137 -0
  161. package/src/modules/files/routes/files.routes.js +9 -9
  162. package/src/modules/globals/localization/vue-i18n.js +8 -1
  163. package/src/modules/globals/mixins/mixins.js +23 -13
  164. package/src/modules/globals/router/routerGuards.js +2 -2
  165. package/src/modules/globals/store/globals.js +86 -9
  166. package/src/modules/globals/utils/mailing.js +24 -3
  167. package/src/modules/icons/entities/IconCommunity.vue +4 -4
  168. package/src/modules/icons/entities/IconEvents.vue +1 -1
  169. package/src/modules/icons/entities/IconGroups.vue +1 -1
  170. package/src/modules/icons/entities/IconPrice.vue +5 -0
  171. package/src/modules/icons/entities/IconProfile.vue +5 -0
  172. package/src/modules/icons/entities/IconShopcart.vue +5 -0
  173. package/src/modules/icons/entities/IconTime.vue +5 -0
  174. package/src/modules/icons/icons.client.js +4 -0
  175. package/src/modules/icons/labels/LabelAppStore.vue +24 -24
  176. package/src/modules/icons/labels/LabelGooglePlay.vue +9 -9
  177. package/src/modules/icons/logos/Logotype.vue +20 -0
  178. package/src/modules/icons/navigation/IconAdd.vue +17 -0
  179. package/src/modules/icons/navigation/IconChevronBottom.vue +18 -0
  180. package/src/modules/icons/navigation/IconChevronRight.vue +3 -3
  181. package/src/modules/icons/navigation/IconDelete.vue +19 -0
  182. package/src/modules/icons/navigation/IconMinus.vue +15 -0
  183. package/src/modules/icons/navigation/IconSearch.vue +17 -0
  184. package/src/modules/icons/navigation/IconUpload.vue +16 -0
  185. package/src/modules/icons/placeholders/PlaceholderImage.vue +5 -0
  186. package/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue +20 -0
  187. package/src/modules/icons/placeholders/PlaceholderUserpic.vue +4 -18
  188. package/src/modules/icons/socials/instagram.vue +1 -1
  189. package/src/modules/icons/socials/line.vue +1 -1
  190. package/src/modules/icons/socials/reddit.vue +1 -1
  191. package/src/modules/icons/socials/telegram.vue +1 -1
  192. package/src/modules/icons/socials/twitter.vue +1 -1
  193. package/src/modules/icons/socials/youtube.vue +1 -1
  194. package/src/modules/landing/components/sections/Guide.vue +92 -0
  195. package/src/modules/landing/components/sections/MobileApp.vue +23 -12
  196. package/src/modules/marketplace/components/layouts/Marketplace.vue +76 -188
  197. package/src/modules/marketplace/components/pages/Catalog.vue +65 -119
  198. package/src/modules/marketplace/components/sections/Filters.vue +195 -0
  199. package/src/modules/marketplace/store/marketplace.js +2 -2
  200. package/src/modules/middlewares/client/auth.validation.js +0 -6
  201. package/src/modules/middlewares/client/states.validation.js +2 -8
  202. package/src/modules/middlewares/server/authJwt.js +1 -1
  203. package/src/modules/mobile/components/Menu/MenuItem.vue +3 -6
  204. package/src/modules/openai/controllers/openai.controller.js +0 -1
  205. package/src/modules/orders/components/blocks/CardOrder.vue +166 -0
  206. package/src/modules/orders/components/blocks/CardOrderItem.vue +59 -66
  207. package/src/modules/orders/components/blocks/Positions.vue +4 -4
  208. package/src/modules/orders/components/pages/EditOrder.vue +78 -142
  209. package/src/modules/orders/components/pages/FormOrder.vue +192 -0
  210. package/src/modules/orders/components/pages/Order.vue +326 -120
  211. package/src/modules/orders/components/pages/Orders.vue +13 -9
  212. package/src/modules/orders/components/pages/{ViewOrder.vue → Orders_refact.vue} +13 -10
  213. package/src/modules/orders/components/partials/ShopCart.vue +22 -13
  214. package/src/modules/orders/components/sections/EmptyState.vue +1 -1
  215. package/src/modules/orders/components/sections/{Form.vue → FormOrderDetails.vue} +38 -106
  216. package/src/modules/orders/controllers/orders.controller.js +37 -28
  217. package/src/modules/orders/models/order.model.js +39 -9
  218. package/src/modules/orders/router/orders.router.js +23 -2
  219. package/src/modules/orders/routes/orders.routes.js +14 -17
  220. package/src/modules/orders/store/orders.js +24 -9
  221. package/src/modules/orders/store/shopcart.js +20 -19
  222. package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
  223. package/src/modules/organizations/components/blocks/CardOrganization.vue +98 -46
  224. package/src/modules/organizations/components/blocks/Rating.vue +1 -1
  225. package/src/modules/organizations/components/blocks/Socials.vue +11 -3
  226. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
  227. package/src/modules/organizations/components/pages/Department.vue +1 -1
  228. package/src/modules/organizations/components/pages/DepartmentEdit.vue +4 -4
  229. package/src/modules/organizations/components/pages/Members.vue +6 -4
  230. package/src/modules/organizations/components/pages/Organization.vue +120 -49
  231. package/src/modules/organizations/components/pages/OrganizationEdit.vue +8 -1
  232. package/src/modules/organizations/components/pages/Organizations.vue +27 -6
  233. package/src/modules/organizations/components/sections/DetailsTab.vue +11 -9
  234. package/src/modules/organizations/components/sections/Feed.vue +0 -3
  235. package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
  236. package/src/modules/organizations/controllers/organizations.controller.js +126 -15
  237. package/src/modules/organizations/controllers/utils/addMembersQuantity.js +19 -9
  238. package/src/modules/organizations/models/organization.model.js +5 -2
  239. package/src/modules/organizations/router/members.router.js +1 -3
  240. package/src/modules/organizations/router/organizations.js +8 -6
  241. package/src/modules/organizations/router/products.router.js +36 -2
  242. package/src/modules/organizations/store/organizations.js +38 -84
  243. package/src/modules/pages/controllers/pages.controller.js +0 -4
  244. package/src/modules/payments/controller/payments.controller.js +1 -1
  245. package/src/modules/products/components/blocks/CardLeftover.vue +17 -22
  246. package/src/modules/products/components/blocks/CardPosition.vue +96 -49
  247. package/src/modules/products/components/blocks/CardProduct.vue +24 -53
  248. package/src/modules/products/components/blocks/Images360.vue +4 -4
  249. package/src/modules/products/components/blocks/ImagesThumbnails.vue +2 -7
  250. package/src/modules/products/components/blocks/ListPositions.vue +74 -0
  251. package/src/modules/products/components/elements/Price.vue +11 -5
  252. package/src/modules/products/components/elements/THC.vue +6 -6
  253. package/src/modules/products/components/pages/{LeftoverAdd.vue → EditLeftover.vue} +93 -79
  254. package/src/modules/products/components/pages/Leftovers.vue +74 -70
  255. package/src/modules/products/components/pages/Product.vue +4 -7
  256. package/src/modules/products/components/pages/ProductEdit.vue +230 -88
  257. package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
  258. package/src/modules/products/components/pages/Products.vue +6 -3
  259. package/src/modules/products/components/pages/ProductsBackoffice.vue +3 -5
  260. package/src/modules/products/components/sections/EditModifications.vue +3 -3
  261. package/src/modules/products/components/sections/EditProductInfo.vue +40 -50
  262. package/src/modules/products/components/sections/FilterProducts.vue +57 -18
  263. package/src/modules/products/components/sections/HeroRecommendation.vue +233 -99
  264. package/src/modules/products/components/sections/MenuSection.vue +127 -0
  265. package/src/modules/products/components/sections/PopularProducts.vue +81 -37
  266. package/src/modules/products/components/sections/SectionProduct.vue +21 -23
  267. package/src/modules/products/controllers/leftovers.controller.js +11 -1
  268. package/src/modules/products/controllers/products.controller.js +100 -97
  269. package/src/modules/products/models/leftover.model.js +6 -4
  270. package/src/modules/products/models/product.model.js +13 -1
  271. package/src/modules/products/routes/products.routes.js +4 -4
  272. package/src/modules/products/store/leftovers.js +4 -24
  273. package/src/modules/products/store/products.js +44 -30
  274. package/src/modules/spots/components/blocks/CardSpot.vue +43 -72
  275. package/src/modules/spots/components/layouts/Spots.vue +9 -91
  276. package/src/modules/spots/components/pages/Map.vue +171 -62
  277. package/src/modules/spots/components/pages/Spot.vue +1 -1
  278. package/src/modules/spots/components/pages/SpotEdit.vue +131 -174
  279. package/src/modules/spots/controllers/spots.controller.js +1 -0
  280. package/src/modules/spots/models/spot.model.js +6 -3
  281. package/src/modules/spots/store/spots.js +42 -48
  282. package/src/modules/users/components/pages/Profile.vue +6 -28
  283. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  284. package/src/modules/users/components/pages/ProfileEdit.vue +1 -1
  285. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  286. package/src/modules/users/components/pages/ProfileOrganizations.vue +1 -1
  287. package/src/modules/users/router/users.js +1 -1
  288. package/src/modules/wallet/components/pages/Wallet.vue +105 -109
  289. package/src/modules/wallet/controllers/crypto.controller.js +129 -0
  290. package/src/modules/wallet/models/reward.model.js +53 -0
  291. package/src/modules/wallet/routes/crypto.routes.js +36 -0
  292. package/src/modules/wallet/store/wallet.js +52 -49
  293. package/src/styles/base/all.scss +144 -12
  294. package/src/styles/base/backgrounds.scss +2 -34
  295. package/src/styles/base/borders.scss +18 -23
  296. package/src/styles/base/scrolling.scss +97 -29
  297. package/src/styles/base/{shadows.scss → shadow_transitions_hover_refactor.scss} +55 -2
  298. package/src/styles/config.scss +69 -17
  299. package/src/styles/layout.scss +12 -182
  300. package/src/styles/reset.scss +20 -21
  301. package/src/styles/responsive.scss +4 -67
  302. package/src/styles/theme.scss +3 -4
  303. package/src/styles/typography.scss +15 -17
  304. package/src/assets/fonts/AvenirNext-Bold.woff2 +0 -0
  305. package/src/assets/fonts/AvenirNext-DemiBold.woff2 +0 -0
  306. package/src/assets/fonts/AvenirNext-Heavy.woff2 +0 -0
  307. package/src/assets/fonts/AvenirNext-Medium.woff2 +0 -0
  308. package/src/assets/fonts/AvenirNext-Regular.woff2 +0 -0
  309. package/src/assets/fonts/AvenirNext-UltraLight.woff2 +0 -0
  310. package/src/modules/files/middlewares/server/md.js +0 -152
  311. package/src/modules/files/middlewares/server/middlewareMulter.js +0 -121
  312. package/src/modules/organizations/controllers/organizations.new.controller.js +0 -372
  313. package/src/modules/products/components/blocks/EditCategories.vue +0 -68
  314. package/src/modules/products/components/sections/EditParameters.vue +0 -58
  315. package/src/modules/products/components/sections/EditProductImages.vue +0 -67
  316. package/src/modules/spots/components/sections/Feed.vue +0 -64
  317. package/src/styles/base/border-radius.scss +0 -47
  318. package/src/styles/base/cursors.scss +0 -23
  319. package/src/styles/base/height.scss +0 -60
  320. package/src/styles/base/hovers.scss +0 -110
  321. package/src/styles/base/positions.scss +0 -192
  322. package/src/styles/base/transitions.scss +0 -137
  323. package/src/styles/base/width.scss +0 -2
  324. package/src/styles/components/block.scss +0 -18
  325. package/src/styles/components/breadcrumbs.scss +0 -0
  326. package/src/styles/components/input.scss +0 -319
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="product-images">
3
- <div class="no-responsive cols-4 thumbnails">
3
+ <div class="no-responsive cols-4 gap-thin">
4
4
  <img
5
5
  v-for="(image, index) in images"
6
6
  :key="index"
@@ -11,7 +11,7 @@
11
11
  </div>
12
12
  <Popup @close-popup="closePopup" :isPopupOpen="isPopupVisible" class="radius-medium o-hidden">
13
13
  <Magnifier
14
- :imageSrc="path + images[selectedimageIndex]"
14
+ :imageSrc="(FILE_SERVER_URL || '') + images[selectedimageIndex]"
15
15
  class="magnifier z-index-4"
16
16
  />
17
17
  </Popup>
@@ -53,11 +53,6 @@ const closePopup = () => {
53
53
  flex-direction: column;
54
54
  }
55
55
 
56
- .thumbnails {
57
- display: flex;
58
- gap: 10px;
59
- }
60
-
61
56
  .thumbnail {
62
57
  width: 100%;
63
58
  max-width: 8rem;
@@ -0,0 +1,74 @@
1
+ <template>
2
+ <div>
3
+ <ul
4
+ class="flex-column flex-wrap"
5
+ >
6
+ <span
7
+ v-if="order.positions.length === 0"
8
+ class="w-100"
9
+ >
10
+ No positions added yet
11
+ </span>
12
+
13
+ <li
14
+ v-for="(product, index) in order.positions"
15
+ :key="product._id"
16
+ class="w-100 gap-small flex-stretch flex-center flex-nowrap flex"
17
+ >
18
+ <span
19
+ class="flex-v-center flex radius-medium pd-small bg-white w-100"
20
+ >
21
+ {{ product.name }}
22
+ </span>
23
+
24
+ <CardPosition
25
+ :products='[]'
26
+ :product='product'
27
+ @add="deleteProduct(index)"
28
+ />
29
+ </li>
30
+ </ul>
31
+ </div>
32
+ </template>
33
+
34
+ <script setup>
35
+ import { ref, computed } from 'vue';
36
+ import { useRouter, useRoute } from 'vue-router';
37
+
38
+ import Field from '@pf/src/components/Field/Field.vue';
39
+ import CardPosition from '@pf/src/modules/products/components/blocks/CardPosition.vue';
40
+
41
+ import * as leftovers from '@pf/src/modules/products/store/leftovers';
42
+
43
+ const router = useRouter();
44
+ const route = useRoute();
45
+
46
+ const props = defineProps({
47
+ order: Object
48
+ });
49
+
50
+ function deleteProduct(index) {
51
+ leftovers.actions.deleteItemFromLeftover(props.order.positions[index]);
52
+ }
53
+ </script>
54
+
55
+
56
+ <style lang="scss" >
57
+ .vue-select {
58
+ background: #f7f7f7;
59
+ border-radius: 0.5rem;
60
+ border: 0;
61
+ height: 3rem;
62
+ padding-left: 1rem;
63
+
64
+ z-index: 4;
65
+ .vue-input {
66
+ input {
67
+ font-size: 1.125rem;
68
+ font-weight: 300;
69
+ background: #f7f7f7; }
70
+ }
71
+ }
72
+ </style>
73
+
74
+
@@ -1,9 +1,16 @@
1
1
  <template>
2
- <div class="price-tag radius-small">
2
+ <div
3
+ class="price-tag radius-small"
4
+ :class="
5
+ {
6
+ 'bg-main': !product.sale,
7
+ 'bg-third-small': product.sale,
8
+ }
9
+ "
10
+ >
3
11
  <p
4
12
  :class="
5
- {
6
- 't-main': product.sale,
13
+ {
7
14
  'h4': !size,
8
15
  'h5 t-semi pd-thin': size === 'small',
9
16
  'h3 t-semi pd-small': size === 'big'
@@ -12,7 +19,7 @@
12
19
  >
13
20
  {{product.price }} {{returnCurrency()}}
14
21
  </p>
15
- <p v-if="product.sale" class="t-transp t-main p-medium line-through price">{{(product.price / 100) * (100 + product.sale) }} {{returnCurrency()}} </p>
22
+ <p v-if="product.sale" class="pd-r-small t-transp t-transp p-medium line-through price">{{(product.price / 100) * (100 + product.sale) }} {{returnCurrency()}} </p>
16
23
  </div>
17
24
  </template>
18
25
 
@@ -51,7 +58,6 @@ const props = defineProps({
51
58
  display: flex;
52
59
  align-items: center;
53
60
  width: fit-content;
54
- background: #00ff88;
55
61
  color: black;
56
62
  }
57
63
 
@@ -4,16 +4,16 @@
4
4
  <p class="t-white h6">THC</p>
5
5
  <!-- Polygon bg -->
6
6
  <svg v-if="Number(product.information[1].value) >= 18" width="60" height="66" viewBox="0 0 60 66" fill="none" xmlns="http://www.w3.org/2000/svg">
7
- <path fill="#FF0000" stroke="white" stroke-width="3" d="M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z" />
7
+ <path fill="#FF0000" stroke="rgb(var(--white))" stroke-width="3" d="M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z" />
8
8
  </svg>
9
9
  <svg v-if="Number(product.information[1].value) <= 18 && Number(product.information[1].value) >= 14" width="60" height="66" viewBox="0 0 60 66" fill="none" xmlns="http://www.w3.org/2000/svg">
10
- <path fill="#FF0099" stroke="white" stroke-width="3" d="M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z" />
10
+ <path fill="#FF0099" stroke="rgb(var(--white))" stroke-width="3" d="M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z" />
11
11
  </svg>
12
12
  <svg v-if="Number(product.information[1].value) <= 14 && Number(product.information[1].value) >= 10" width="60" height="66" viewBox="0 0 60 66" fill="none" xmlns="http://www.w3.org/2000/svg">
13
- <path fill="#EB00FF" stroke="white" stroke-width="3" d="M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z" />
13
+ <path fill="#EB00FF" stroke="rgb(var(--white))" stroke-width="3" d="M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z" />
14
14
  </svg>
15
15
  <svg v-if="Number(product.information[1].value) <= 10" width="60" height="66" viewBox="0 0 60 66" fill="none" xmlns="http://www.w3.org/2000/svg">
16
- <path fill="#00FF29" stroke="white" stroke-width="3" d="M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z" />
16
+ <path fill="#00FF29" stroke="rgb(var(--white))" stroke-width="3" d="M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z" />
17
17
  </svg>
18
18
  </div>
19
19
  </template>
@@ -49,8 +49,8 @@ const props = defineProps({
49
49
  .thc {
50
50
  position: absolute;
51
51
 
52
- right: 0%;
53
- top: 0%;
52
+ right: 1rem;
53
+ top: 1rem;
54
54
 
55
55
  display: flex;
56
56
  flex-direction: column;
@@ -1,90 +1,106 @@
1
1
  <template>
2
- <header class="mn-b-medium flex-v-center flex-nowrap flex">
3
- <h2 class="mn-r-medium">Inventory</h2>
4
- <!-- <button
5
- @click="$router.push({
6
- name: 'LeftoverAdd'
7
- })"
8
- class="radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second">
9
- +
10
- </button> -->
2
+ <header class="mn-b-medium gap-small flex-v-center flex-nowrap flex">
3
+ <h2 class="">{{route.params.leftover ? 'Edit ' : 'Add ' }} Inventory</h2>
4
+
5
+ <Select
6
+ v-model:select="leftovers.state.current.type"
7
+ :options="[
8
+ 'stock-in',
9
+ 'stock-out',
10
+ 'write-off'
11
+ ]"
12
+ :placeholder="'Select type'"
13
+ class="bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"
14
+ />
11
15
  </header>
12
-
13
- <h5 class="mn-b-small">Select Type</h5>
14
-
15
- <Select
16
- v-model:select="leftovers.state.current.type"
17
- :options="[
18
- 'stock-in',
19
- 'stock-out',
20
- 'write-off'
21
- ]"
22
- :placeholder="'Select type'"
23
- class="mn-b-semi bg-grey pd-medium radius-small"
24
- />
25
16
 
26
-
27
- <h5 class="mn-b-small">Add Position</h5>
28
-
29
- <div class="mn-b-semi gap-thin flex-nowrap flex">
17
+ <Block
18
+ title="Add Position"
19
+ class="mn-b-semi"
20
+ >
30
21
  <CardPosition
31
- @add="addProduct"
22
+ @add="(item) => globals.actions.add(
23
+ leftovers.state.current.positions,
24
+ item
25
+ )"
32
26
  :products="Products"
33
27
  />
34
- </div>
35
-
36
-
37
- <h5
38
- class="mn-b-small"
39
- >
40
- Invetory Sheet
41
- <a
42
- class="mn-l-thin t-main"
43
- @click="resetOrderList"
44
- >
45
- Reset
46
- </a>
47
- </h5>
48
-
28
+ </Block>
49
29
 
50
-
51
- <LeftoverPositions
52
- :order="leftovers.state.current"
53
- :products="Products"
30
+ <Block
31
+ title="Invetory Sheet"
32
+ placeholder="No positions added yet"
54
33
  class="mn-b-semi"
55
- />
56
-
57
- <section class="gap-thin flex-v-center flex-nojustify flex">
58
- <h3 class="mn-r-auto">
59
- In total: {{formatPrice(totalPrice)}}
60
- </h3>
61
- <a
62
- @click="onSubmit()"
63
- class="bg-main button"
64
- >
65
- Save
66
- </a>
67
- <a
68
- v-if="route.params._id"
69
- @click="onDelete()"
70
- class="t-white bg-red button"
71
- >
72
- Delete
73
- </a>
74
- </section>
34
+ >
35
+ <CardPosition
36
+ v-for="(product, index) in leftovers.state.current.positions"
37
+ :key="product._id"
38
+ :product="product"
39
+ :array="leftovers.state.current.positions"
40
+ :products="Products"
41
+ @add="(item) => globals.actions.add(
42
+ leftovers.state.current.positions,
43
+ item
44
+ )"
45
+ @update="(item) => globals.actions.update(
46
+ leftovers.state.current.positions,
47
+ item,
48
+ index
49
+ )"
50
+ @delete="(item) => globals.actions.delete(
51
+ leftovers.state.current.positions,
52
+ item,
53
+ index
54
+ )"
55
+ />
56
+ </Block>
57
+
58
+ <Block class="">
59
+ <section class="gap-thin flex-v-center flex-nojustify flex">
60
+
61
+ <h3 class="mn-r-auto">
62
+ In total: {{formatPrice(totalPrice)}}
63
+ </h3>
64
+
65
+ <a
66
+ @click="onSubmit()"
67
+ class="bg-main button"
68
+ >
69
+ Save
70
+ </a>
71
+
72
+ <a
73
+ class="t-white bg-second button"
74
+ @click="onReset()"
75
+ >
76
+ Reset
77
+ </a>
78
+
79
+ <a
80
+ v-if="route.params.leftover"
81
+ @click="onDelete()"
82
+ class="t-white bg-red button"
83
+ >
84
+ Delete
85
+ </a>
86
+ </section>
87
+ </Block>
75
88
  </template>
76
89
 
77
90
 
78
91
  <script setup>
92
+ import Block from '@pf/src/components/Block/Block.vue';
93
+
79
94
  import Field from '@pf/src/components/Field/Field.vue';
80
95
  import Select from '@pf/src/components/Select/Select.vue';
81
96
  import SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue';
82
97
 
83
- import LeftoverPositions from '@pf/src/modules/products/components/blocks/LeftoverPositions.vue'
84
98
  import CardPosition from '@pf/src/modules/products/components/blocks/CardPosition.vue';
99
+
85
100
  import { computed, onMounted, ref, reactive } from 'vue';
86
101
  import { useRoute, useRouter } from 'vue-router';
87
102
 
103
+ import * as globals from '@pf/src/modules/globals/store/globals';
88
104
  import * as leftovers from '@pf/src/modules/products/store/leftovers';
89
105
  import * as products from '@pf/src/modules/products/store/products';
90
106
 
@@ -92,6 +108,7 @@
92
108
  const router = useRouter();
93
109
 
94
110
  const Products = ref(products.state.all); // Обновите это значение соответствующим образом
111
+ const productNew = ref(null);
95
112
 
96
113
  const totalPrice = computed(() => {
97
114
  return leftovers.state.current.positions.reduce((sum, position) => {
@@ -100,9 +117,9 @@
100
117
  });
101
118
 
102
119
  onMounted(async () => {
103
- if (route.params._id) {
120
+ if (route.params.leftover) {
104
121
  try {
105
- await leftovers.actions.fetch(route.params._id);
122
+ await leftovers.actions.fetch(route.params.leftover);
106
123
  } catch (error) {
107
124
  console.error('error');
108
125
  }
@@ -112,7 +129,8 @@
112
129
 
113
130
  try {
114
131
  const productsResponse = await products.actions.read({
115
- organization: '65141c476cf9860013b49f6d'
132
+ organization: route.params._id,
133
+ limit: 100
116
134
  });
117
135
  Products.value = productsResponse;
118
136
  } catch (error) {
@@ -120,20 +138,16 @@
120
138
  }
121
139
  });
122
140
 
123
- function resetOrderList() {
124
- if (route.params._id) {
125
- leftovers.actions.fetch(route.params._id);
141
+ function onReset() {
142
+ if (route.params.leftover) {
143
+ leftovers.actions.fetch(route.params.leftover);
126
144
  } else {
127
145
  leftovers.state.current = { type: "", order: "", positions: [] };
128
146
  }
129
147
  }
130
148
 
131
- function addProduct(product) {
132
- leftovers.actions.addProductToLeftover(product);
133
- }
134
-
135
149
  function onSubmit() {
136
- if (route.params._id) {
150
+ if (route.params.leftover) {
137
151
  leftovers.actions.update(leftovers.state.current).then(
138
152
  () => router.push({ name: 'Backoffice Leftovers' }),
139
153
  (error) => console.error('error')
@@ -147,7 +161,7 @@
147
161
  }
148
162
 
149
163
  function onDelete() {
150
- leftovers.actions.delete(route.params._id).then(
164
+ leftovers.actions.delete(route.params.leftover).then(
151
165
  () => router.push({ name: 'Backoffice Leftovers' }),
152
166
  (error) => console.error('error')
153
167
  );
@@ -1,74 +1,78 @@
1
1
  <template>
2
- <header class="mn-b-medium flex-v-center flex-nowrap flex">
3
- <h2 class="mn-r-medium">Inventory</h2>
4
- <button
5
- @click="$router.push({
6
- name: 'LeftoverAdd'
7
- })"
8
- class="radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second">
9
- +
10
- </button>
11
- </header>
12
-
13
- <section class="mn-b-semi pd-medium bg-grey radius-big">
14
- <p class="mn-b-thin">Spended:</p>
15
- <h3>{{formatPrice(totalPrice)}}</h3>
16
- </section>
17
-
18
- <!-- <h3>Low Stock</h3>
19
-
20
- <section class="mn-b-semi pd-medium bg-grey radius-big">
21
- <div>
22
- Name: Code Red
23
- Left: 3
24
- <button>add</button>
25
- </div>
26
- <div>
27
- Name: Code Red
28
- Left: 3
29
- <button>add</button>
30
- </div>
31
- <div>
32
- Name: Code Red
33
- Left: 3
34
- <button>add</button>
35
- </div>
36
- </section> -->
37
-
38
- <Tab
39
- v-model:selected="tab"
40
- :tabs="[
41
- { name: 'All', value: 'all' },
42
- { name: 'Stock-In', value: 'stock-in' },
43
- { name: 'Stock-Out', value: 'stock-out' },
44
- { name: 'Write-Off', value: 'write-off' },
45
- ]"
46
- class="mn-b-small o-hidden h5 radius-big bg-grey"
47
- />
48
-
49
- <Feed
50
- :states="{
51
- empty: {
52
- title: 'No Leftovers Found',
53
- description: 'Currently, there are no leftovers available.'
54
- }
55
- }"
56
- :store="{
57
- read: (options) => leftovers.actions.read(options)
58
- }"
59
- :options="{
60
- limit: 15,
61
- // user: user
62
- }"
63
- v-slot="{
64
- items
65
- }"
66
- >
67
- <CardLeftover
68
- v-for="leftover in items"
69
- :leftover="leftover"
2
+ <div class="pd-thin">
3
+ <header class="mn-b-medium flex-v-center flex-nowrap flex">
4
+ <h2 class="mn-r-medium">Inventory</h2>
5
+ <button
6
+ @click="$router.push({
7
+ name: 'LeftoverAdd'
8
+ })"
9
+ class="radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second">
10
+ +
11
+ </button>
12
+ </header>
13
+
14
+ <section class="mn-b-semi pd-medium bg-grey radius-big">
15
+ <p class="mn-b-thin">Spended:</p>
16
+ <h3>{{formatPrice(totalPrice)}}</h3>
17
+ </section>
18
+
19
+ <!-- <h3>Low Stock</h3>
20
+
21
+ <section class="mn-b-semi pd-medium bg-grey radius-big">
22
+ <div>
23
+ Name: Code Red
24
+ Left: 3
25
+ <button>add</button>
26
+ </div>
27
+ <div>
28
+ Name: Code Red
29
+ Left: 3
30
+ <button>add</button>
31
+ </div>
32
+ <div>
33
+ Name: Code Red
34
+ Left: 3
35
+ <button>add</button>
36
+ </div>
37
+ </section> -->
38
+
39
+ <Tab
40
+ v-model:selected="tab"
41
+ :tabs="[
42
+ { name: 'All', value: 'all' },
43
+ { name: 'Stock-In', value: 'stock-in' },
44
+ { name: 'Stock-Out', value: 'stock-out' },
45
+ { name: 'Write-Off', value: 'write-off' },
46
+ ]"
47
+ class="mn-b-small o-hidden h5 radius-big bg-grey"
70
48
  />
71
- </Feed>
49
+
50
+ <Feed
51
+ :states="{
52
+ empty: {
53
+ title: 'No Leftovers Found',
54
+ description: 'Currently, there are no leftovers available.'
55
+ }
56
+ }"
57
+ :store="{
58
+ read: (options) => leftovers.actions.read(options)
59
+ }"
60
+ :options="{
61
+ limit: 15,
62
+ organization: route.params._id
63
+ // user: user
64
+ }"
65
+ v-slot="{
66
+ items
67
+ }"
68
+ >
69
+ <CardLeftover
70
+ v-for="leftover in items"
71
+ :leftover="leftover"
72
+ class="bg-grey pd-small radius-big"
73
+ />
74
+ </Feed>
75
+ </div>
72
76
  </template>
73
77
 
74
78
 
@@ -77,7 +81,7 @@
77
81
  import { useRoute, useRouter } from 'vue-router'
78
82
 
79
83
  import Tab from '@pf/src/components/Tab/Tab.vue'
80
- import Feed from '@pf/src/modules/globals/components/sections/Feed.vue'
84
+ import Feed from '@pf/src/components/Feed/Feed.vue'
81
85
  import CardLeftover from '../blocks/CardLeftover.vue'
82
86
 
83
87
  import * as leftovers from '@pf/src/modules/products/store/leftovers' // Убедитесь, что путь к вашему файлу стора верный
@@ -1,12 +1,9 @@
1
1
  <template>
2
- <div>
3
- <Breadcrumbs class="section"/>
4
-
5
- <SectionProduct :product="product" class="section"/>
2
+ <div class="flex flex-column w-100 o-hidden gap-thin pd-thin">
3
+ <!-- <Breadcrumbs class="bg-grey radius-big pd-small"/> -->
4
+ <SectionProduct v-if="product" :product="product" class="pos-relative"/>
6
5
 
7
6
  <PopularProducts />
8
- <!-- Partials (need to remove) -->
9
- <Footer/>
10
7
  </div>
11
8
  </template>
12
9
 
@@ -32,7 +29,7 @@
32
29
  const route = useRoute()
33
30
  const router = useRouter()
34
31
 
35
- await products.actions.read({ _id: route.params.product });
32
+ await products.actions.fetchProduct(route.params.product);
36
33
 
37
34
  route.meta.title.en = products.state.current.name
38
35
  route.meta.title.ru = products.state.current.name