@ozdao/prometheus-framework 0.2.128 → 0.2.129

Sign up to get free protection for your applications and to get access to all the features.
Files changed (396) hide show
  1. package/LICENSE +1 -1
  2. package/dist/auth.server.js +12 -14
  3. package/dist/auth.server.mjs +12 -14
  4. package/dist/community.server.js +1 -1
  5. package/dist/community.server.mjs +1 -1
  6. package/dist/events.server.js +1 -1
  7. package/dist/events.server.mjs +1 -1
  8. package/dist/files.server.js +1 -1
  9. package/dist/files.server.mjs +1 -1
  10. package/dist/gallery.server.js +6 -2
  11. package/dist/gallery.server.mjs +6 -2
  12. package/dist/{index-BCCiEK_u.js → index-BshfsiQG.js} +8 -4
  13. package/dist/{index-B6a1mPgp.mjs → index-DKtnWDNC.mjs} +8 -4
  14. package/dist/{main-CmL_j3wv.mjs → main-DvdaURTh.mjs} +3261 -3154
  15. package/dist/main-hLtpe4Hr.js +92 -0
  16. package/dist/main.css +1 -1
  17. package/dist/middlewares.server.js +1 -1
  18. package/dist/middlewares.server.mjs +1 -1
  19. package/dist/node_modules/zod/lib/index.cjs +1 -1
  20. package/dist/node_modules/zod/lib/index.js +1162 -1033
  21. package/dist/orders.server.js +1 -1
  22. package/dist/orders.server.mjs +1 -1
  23. package/dist/organizations.server.js +1 -1
  24. package/dist/organizations.server.mjs +1 -1
  25. package/dist/products.server.js +1 -1
  26. package/dist/products.server.mjs +1 -1
  27. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -1
  29. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  30. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +1 -89
  31. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  33. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.cjs +1 -0
  34. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js +73 -0
  35. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +23 -22
  37. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +1 -27
  39. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +27 -1
  41. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +1 -58
  43. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +58 -1
  45. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +144 -112
  47. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +5 -5
  49. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -1
  51. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  52. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -127
  53. package/dist/prometheus-framework/src/components/Menu/MenuItem.vue.cjs +1 -0
  54. package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/MenuItem.vue.js +1 -1
  55. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -0
  56. package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue.js +6 -6
  57. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +77 -1
  59. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  60. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -77
  61. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
  63. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  64. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
  65. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  67. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  68. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  69. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/auth/store/auth.js +7 -6
  71. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +114 -77
  73. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +7 -22
  75. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +62 -70
  77. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +2 -2
  79. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  83. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +17 -16
  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 +66 -0
  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 +0 -66
  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 +1 -1
  91. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  97. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +5 -5
  101. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +9 -9
  103. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs +1 -0
  104. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js +18 -0
  105. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -0
  106. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +46 -0
  107. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +20 -16
  109. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +10 -10
  113. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  115. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +27 -4
  117. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +14 -12
  119. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +111 -93
  123. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  125. package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.js +13 -14
  127. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +20 -22
  133. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  135. package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +5 -4
  137. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  141. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -4
  143. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  145. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -0
  146. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +154 -0
  147. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  149. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  151. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  157. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -0
  158. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +27 -0
  159. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -7
  161. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  163. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +26 -27
  165. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  167. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  169. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +22 -23
  171. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +30 -29
  175. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +72 -51
  179. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +5 -5
  181. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +51 -53
  183. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +22 -22
  185. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  187. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  189. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +62 -48
  191. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +43 -44
  193. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +5 -5
  195. package/dist/prometheus-framework.cjs.js +1 -1
  196. package/dist/prometheus-framework.es.js +24 -25
  197. package/dist/reports.server.js +1 -1
  198. package/dist/reports.server.mjs +1 -1
  199. package/dist/style.css +1 -1
  200. package/dist/wallet.server.js +1 -1
  201. package/dist/wallet.server.mjs +1 -1
  202. package/dist/{web-Bk_OtXgv.js → web-CVIepGUM.js} +1 -1
  203. package/dist/{web-BHzpMOmk.mjs → web-Dt2JR41o.mjs} +1 -1
  204. package/package.json +3 -2
  205. package/src/{modules/mobile/components → components}/BottomSheet/BottomSheet.vue +24 -21
  206. package/src/components/Button/Button.vue +20 -3
  207. package/src/components/Feed/Feed.vue +28 -3
  208. package/src/components/FieldBig/FieldBig.vue +2 -2
  209. package/src/components/Sidebar/Sidebar.vue +13 -5
  210. package/src/components/index.js +0 -1
  211. package/src/main.js +0 -4
  212. package/src/modules/auth/controllers/auth.controller.js +14 -16
  213. package/src/modules/auth/router/auth.js +1 -4
  214. package/src/modules/auth/store/auth.js +28 -24
  215. package/src/modules/backoffice/components/pages/Dashboard.vue +29 -56
  216. package/src/modules/backoffice/router/backoffice.js +4 -15
  217. package/src/modules/community/components/blocks/CardBlogpost.vue +28 -26
  218. package/src/modules/community/components/layouts/Community.vue +1 -1
  219. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  220. package/src/modules/gallery/components/pages/Gallery.vue +1 -2
  221. package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -1
  222. package/src/modules/gallery/router/gallery.backoffice.router.js +14 -0
  223. package/src/modules/globals/components/blocks/BlockFilter.vue +44 -0
  224. package/src/modules/globals/components/blocks/CardHeader.vue +5 -3
  225. package/src/modules/globals/components/layouts/Client.vue +99 -43
  226. package/src/modules/globals/components/pages/401.vue +5 -0
  227. package/src/modules/globals/components/pages/404.vue +5 -0
  228. package/src/modules/globals/components/partials/Footer.vue +17 -5
  229. package/src/modules/globals/components/partials/Header.vue +37 -18
  230. package/src/modules/globals/components/partials/Navigation.vue +7 -2
  231. package/src/modules/landing/components/sections/MobileApp.vue +2 -2
  232. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
  233. package/src/modules/landing/router/landing.js +2 -12
  234. package/src/modules/legal/components/pages/Legal.vue +2 -2
  235. package/src/modules/marketplace/components/layouts/Marketplace.vue +30 -13
  236. package/src/modules/marketplace/components/pages/Catalog.vue +2 -1
  237. package/src/modules/marketplace/router/marketplace.js +12 -10
  238. package/src/modules/marketplace/store/marketplace.js +25 -1
  239. package/src/modules/middlewares/client/auth.validation.js +5 -2
  240. package/src/modules/middlewares/server/authJwt.js +12 -6
  241. package/src/modules/middlewares/server/verifyAccesses.js +7 -3
  242. package/src/modules/orders/components/pages/OrderCreate.vue +34 -22
  243. package/src/modules/orders/components/sections/AskToLogin.vue +8 -7
  244. package/src/modules/orders/components/sections/FormDelivery.vue +6 -6
  245. package/src/modules/orders/router/orders.router.js +6 -3
  246. package/src/modules/organizations/components/pages/Members.vue +2 -2
  247. package/src/modules/organizations/components/pages/Organization.vue +2 -2
  248. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +204 -0
  249. package/src/modules/organizations/router/backoffice.router.js +25 -0
  250. package/src/modules/organizations/router/organizations.js +3 -1
  251. package/src/modules/pages/router/pages.router.js +15 -0
  252. package/src/modules/products/components/blocks/ImagesThumbnails.vue +11 -12
  253. package/src/modules/products/components/pages/Product.vue +7 -3
  254. package/src/modules/products/components/pages/ProductRecommmendation.vue +6 -5
  255. package/src/modules/products/components/sections/FilterProducts.vue +6 -6
  256. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  257. package/src/modules/products/components/sections/PopularProducts.vue +1 -3
  258. package/src/modules/products/components/sections/SectionProduct.vue +8 -8
  259. package/src/modules/spots/components/layouts/Spots.vue +33 -31
  260. package/src/modules/spots/components/pages/Map.vue +380 -353
  261. package/src/modules/spots/router/spots.js +3 -1
  262. package/src/modules/users/components/pages/Profile.vue +4 -4
  263. package/src/modules/users/components/pages/ProfileEdit.vue +4 -3
  264. package/src/modules/wallet/controllers/routes/payments.routes.js +0 -1
  265. package/src/styles/base/all.scss +4 -0
  266. package/src/styles/config.scss +2 -1
  267. package/src/styles/layout.scss +0 -1
  268. package/dist/credentials.schema-CDZCKfEI.mjs +0 -106
  269. package/dist/credentials.schema-CfhPcsuI.js +0 -105
  270. package/dist/index-CGIn4v5E.mjs +0 -217
  271. package/dist/index-CL9l0HRS.js +0 -216
  272. package/dist/main-8APITHuW.mjs +0 -14201
  273. package/dist/main-8N2Jmsuk.js +0 -91
  274. package/dist/main-BJvlNekm.mjs +0 -13631
  275. package/dist/main-BQisDfLk.js +0 -92
  276. package/dist/main-BV1Yv9Hy.js +0 -92
  277. package/dist/main-Ba3zK8PO.js +0 -92
  278. package/dist/main-Btlny-89.mjs +0 -14207
  279. package/dist/main-Bw0PvTs-.mjs +0 -13616
  280. package/dist/main-ByCtZbHD.mjs +0 -13752
  281. package/dist/main-CF35oB7q.js +0 -92
  282. package/dist/main-CX2ISR43.mjs +0 -13629
  283. package/dist/main-CXObXjv-.js +0 -92
  284. package/dist/main-CkeuHuCY.mjs +0 -13619
  285. package/dist/main-CnfcBov2.mjs +0 -13740
  286. package/dist/main-D0va05OD.js +0 -92
  287. package/dist/main-D50VqYhy.js +0 -91
  288. package/dist/main-D8gNZLSa.js +0 -92
  289. package/dist/main-DL3vRQCi.js +0 -92
  290. package/dist/main-DPsHxX0l.mjs +0 -13633
  291. package/dist/main-DTlUA63C.mjs +0 -13617
  292. package/dist/main-DfD5hLQo.mjs +0 -13633
  293. package/dist/main-Dh6Zfei9.js +0 -92
  294. package/dist/main-DmNP-t33.mjs +0 -13625
  295. package/dist/main-Ds3Z5x5d.mjs +0 -14206
  296. package/dist/main-DwyUYWFX.js +0 -92
  297. package/dist/main-VcxO-jAt.js +0 -92
  298. package/dist/main-cffh4bbv.js +0 -92
  299. package/dist/main-o_2eO2tP.mjs +0 -14208
  300. package/dist/main-pGo7JpSP.js +0 -92
  301. package/dist/metadata.schema-BLGSCSmy.mjs +0 -55
  302. package/dist/metadata.schema-Cu_mPkjE.js +0 -77
  303. package/dist/metadata.schema-DWR97jhW.js +0 -54
  304. package/dist/metadata.schema-cbFgazeK.mjs +0 -78
  305. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +0 -1
  306. package/dist/node_modules/@noble/hashes/esm/sha512.js +0 -126
  307. package/dist/node_modules/vue-meta/dist/vue-meta.esm-browser.min.cjs +0 -7
  308. package/dist/node_modules/vue-meta/dist/vue-meta.esm-browser.min.js +0 -38
  309. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/mergeArrays.cjs +0 -2
  310. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +0 -43
  311. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +0 -1
  312. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +0 -1
  313. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +0 -1
  314. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +0 -373
  315. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +0 -1
  316. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +0 -1
  317. package/dist/prometheus-framework/src/components/FieldPhone/utils.cjs +0 -1
  318. package/dist/prometheus-framework/src/components/FieldPhone/utils.js +0 -259
  319. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +0 -1
  320. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +0 -62
  321. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +0 -1
  322. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +0 -1
  323. package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.cjs +0 -1
  324. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +0 -1
  325. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +0 -1
  326. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +0 -1
  327. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +0 -110
  328. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +0 -1
  329. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +0 -1
  330. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +0 -1
  331. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +0 -27
  332. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.cjs +0 -1
  333. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.js +0 -29
  334. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +0 -1
  335. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +0 -1
  336. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +0 -65
  337. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +0 -1
  338. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +0 -87
  339. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +0 -1
  340. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +0 -1
  341. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +0 -1
  342. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +0 -51
  343. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +0 -1
  344. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +0 -1
  345. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +0 -1
  346. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +0 -53
  347. package/dist/queryProcessor-BJdKh0Ow.mjs +0 -162
  348. package/dist/queryProcessor-BJoJAetd.mjs +0 -162
  349. package/dist/queryProcessor-BUDoM96e.js +0 -148
  350. package/dist/queryProcessor-Cl6sU582.mjs +0 -149
  351. package/dist/queryProcessor-DRMo_GWK.js +0 -161
  352. package/dist/queryProcessor-DWf9tsis.js +0 -161
  353. package/dist/web-B2xhKZNK.js +0 -1
  354. package/dist/web-B8tq3Fda.mjs +0 -54
  355. package/dist/web-BDaOF322.js +0 -1
  356. package/dist/web-BEJCRWop.mjs +0 -54
  357. package/dist/web-BNKN7kk3.mjs +0 -54
  358. package/dist/web-BX5um81l.js +0 -1
  359. package/dist/web-ByJkgGrt.js +0 -1
  360. package/dist/web-C0sFgeYh.mjs +0 -54
  361. package/dist/web-CQQEUA9l.js +0 -1
  362. package/dist/web-CQiHBOEN.mjs +0 -54
  363. package/dist/web-CXzcKdk4.mjs +0 -54
  364. package/dist/web-CciQvENI.js +0 -1
  365. package/dist/web-CkrMHYIU.js +0 -1
  366. package/dist/web-CtVocufd.js +0 -1
  367. package/dist/web-CvRd3N_J.mjs +0 -54
  368. package/dist/web-D0ugI6ra.js +0 -1
  369. package/dist/web-D2Em-p-C.mjs +0 -54
  370. package/dist/web-D9Cfcy5k.js +0 -1
  371. package/dist/web-DEysqj0n.js +0 -1
  372. package/dist/web-DNq1tHCE.mjs +0 -54
  373. package/dist/web-DTzbVshr.mjs +0 -54
  374. package/dist/web-Douq6xn6.js +0 -1
  375. package/dist/web-DtWmpLE-.mjs +0 -54
  376. package/dist/web-TGdVOTnw.js +0 -1
  377. package/dist/web-VFuzUsNl.mjs +0 -54
  378. package/dist/web-_W9a_nWD.mjs +0 -54
  379. package/dist/web-kg3KgbAF.js +0 -1
  380. package/dist/web-nVxTNRH4.mjs +0 -54
  381. package/src/components/Magnifier/Magnifier.vue +0 -89
  382. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue.cjs +0 -0
  383. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue.js +0 -0
  384. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue2.cjs +0 -0
  385. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue2.js +0 -0
  386. /package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue2.cjs +0 -0
  387. /package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue2.js +0 -0
  388. /package/src/{modules/mobile/components → components}/Menu/Menu.vue +0 -0
  389. /package/src/{modules/mobile/components → components}/Menu/MenuItem.vue +0 -0
  390. /package/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue +0 -0
  391. /package/src/modules/{mobile/components/BottomNavigation → globals/components/partials}/BottomNavigation.vue +0 -0
  392. /package/src/modules/{mobile/components/NavigationBar → globals/components/partials}/NavigationBar.vue +0 -0
  393. /package/src/modules/{mobile/components/Walkthrough → globals/components/sections}/Walkthrough.vue +0 -0
  394. /package/src/modules/{landing → pages}/components/pages/Page.vue +0 -0
  395. /package/src/modules/{backoffice/components/admin → pages/components/pages}/PageEdit.vue +0 -0
  396. /package/src/modules/{backoffice/components/admin → pages/components/pages}/Pages.vue +0 -0
@@ -14,10 +14,33 @@ const state = reactive({
14
14
  result:[]
15
15
  },
16
16
  filter: {
17
+ active: false,
17
18
  categories: [],
18
19
  prices: [],
19
20
  delivery: [],
20
- extra: []
21
+ extra: [],
22
+ options: [{
23
+ title: 'Categories',
24
+ value: 'categories',
25
+ options: []
26
+ },{
27
+ title: 'Delivery',
28
+ value: 'delivery',
29
+ options: [
30
+ { label: 'Pickup', value: 'pickup' },
31
+ { label: 'Courier', value: 'courier' },
32
+ { label: 'Post', value: 'post' }
33
+ ]
34
+ },{
35
+ title: 'Prices',
36
+ value: 'prices',
37
+ options: [
38
+ { label: 'Under 300฿', value: '<300' },
39
+ { label: '300฿ to 600฿', value: '300-600' },
40
+ { label: '600฿ to 1200฿', value: '600-1200' },
41
+ { label: '$1200 and above', value: '>1200' }
42
+ ]
43
+ }],
21
44
  },
22
45
  sort: {
23
46
  param: 'distance',
@@ -35,6 +58,7 @@ const state = reactive({
35
58
  }
36
59
  });
37
60
 
61
+
38
62
  // History
39
63
  const history = []; history.push(state);
40
64
 
@@ -1,4 +1,4 @@
1
- import * as auth from '../../../modules/auth/store/auth'
1
+ import * as auth from '@pf/src/modules/auth/store/auth'
2
2
 
3
3
  function requiresAuth(to, from, next) {
4
4
 
@@ -16,14 +16,17 @@ function requiresAdmin(to, from, next) {
16
16
  const isAdmin = auth.state.access.roles?.includes('ROLE_ADMIN') ? auth.state.access.roles.includes('ROLE_ADMIN') : false;
17
17
 
18
18
  if (isAdmin !== true) {
19
- return next('/404');
19
+ return next('/401');
20
20
  }
21
21
 
22
22
  next();
23
23
  }
24
24
 
25
25
  function requiresNoAuth(to, from, next) {
26
+ console.log('hello')
27
+
26
28
  const isLogin = auth.state.access.status;
29
+ console.log(auth.state.access)
27
30
  // to.meta.requiresNoAuth
28
31
  if (isLogin) {
29
32
  return next('/profile/' + auth.state.user._id);
@@ -6,23 +6,29 @@ const middlewareFactory = (db) => {
6
6
 
7
7
  const verifyToken = async (req, res, next) => {
8
8
  try {
9
- console.log(req.cookies);
10
-
9
+ if (!req.cookies.user) {
10
+ // Вместо возврата ошибки, просто устанавливаем req.userId как null
11
+ req.userId = null;
12
+ return next();
13
+ }
14
+
11
15
  let user = JSON.parse(req.cookies.user);
12
16
  let token = req.headers["x-access-token"] || user.accessToken;
13
17
 
14
18
  if (!token) {
15
- return res.status(403).send({ message: "No token provided!" });
19
+ // Также устанавливаем req.userId как null
20
+ req.userId = null;
21
+ return next();
16
22
  }
17
23
 
18
24
  const decoded = jwt.verify(token, process.env.SECRET_KEY);
19
25
  req.userId = decoded._id;
20
-
21
- console.log('success');
26
+
22
27
  next();
23
28
  } catch (err) {
24
29
  console.log(err);
25
- return res.status(401).send({ message: "Unauthorized!" });
30
+ req.userId = null;
31
+ next();
26
32
  }
27
33
  };
28
34
 
@@ -6,11 +6,15 @@ const middlewareFactory = (db) => {
6
6
  const verifyRead = (resource) => {
7
7
  return async (req, res, next) => {
8
8
  try {
9
- // Получаем идентификатор организации из запроса
10
- const ownerOrgId = new db.mongoose.Types.ObjectId(req.query.owner);;
11
-
9
+ if (req.userId === null) {
10
+ req.query.status = 'published';
11
+ return next();
12
+ }
12
13
  // Получаем текущего пользователя
13
14
  const userId = new db.mongoose.Types.ObjectId(req.userId);
15
+
16
+ // Получаем идентификатор организации из запроса
17
+ const ownerOrgId = new db.mongoose.Types.ObjectId(req.query.owner);;
14
18
 
15
19
  // Проверяем, является ли пользователь владельцем организации
16
20
  const isOwnerOfOrg = await Organization.exists({
@@ -3,7 +3,7 @@
3
3
  <section class="pd-thin">
4
4
 
5
5
  <!-- Ask to login -->
6
- <AskToLogin class="mn-b-big" v-if="auth.state.access.status === false" />
6
+ <AskToLogin class="mn-b-thin" v-if="auth.state.access.status === false" />
7
7
 
8
8
  <!-- Order form -->
9
9
  <div class="gap-small mn-b-thin cols-2">
@@ -37,10 +37,11 @@
37
37
  <!-- Order positions -->
38
38
  <div
39
39
  v-if="shopcart.state.positions.length > 0"
40
+ class="bg-light pd-medium radius-big"
40
41
  >
41
- <p class="p-big mn-b-small">Your Order</p>
42
-
43
- <ul class="mn-b-semi">
42
+ <h4 class="font-second mn-b-thin">Your Order</h4>
43
+
44
+ <ul class="flex gap-thin flex-wrap mn-b-thin">
44
45
  <CardOrderItem
45
46
  v-for="product in shopcart.state.positions"
46
47
  :key="product._id"
@@ -49,39 +50,29 @@
49
50
  :increase="product => shopcart.actions.incrementItemQuantity(product._id)"
50
51
  :decrease="product => shopcart.actions.decrementItemQuantity(product._id)"
51
52
  :remove="product => shopcart.actions.removeProduct(product._id)"
53
+ class="w-100 bg-white pd-small radius-medium"
52
54
  />
53
55
  </ul>
54
56
 
55
57
  <div
56
- style="border-bottom: 1px solid #f7f7f7; border-top: 1px solid #f7f7f7;" class="pd-b-medium pd-t-medium mn-b-medium"
58
+ class="bg-main pd-thin radius-medium mn-b-thin"
57
59
  >
58
- <p class="mn-b-thin">
60
+ <p class="pd-small br-b br-solid br-black-transp-10">
59
61
  Subtotal:
60
62
  {{ returnCurrency() }}
61
63
  {{ cartTotalPrice }}
62
64
  </p>
63
- <p class="mn-b-thin">
65
+ <p class="pd-small br-b br-solid br-black-transp-10">
64
66
  Delivery:
65
67
  {{ returnCurrency() }}
66
- {{
67
- Math.trunc(100 + 20 * orderOrganization[0]?.distance - 7,5 * (orderOrganization[0]?.distance / 10))
68
- }}
68
+ {{ deliveryCost }}
69
69
  </p>
70
- <p class="h3">
70
+ <p class="pd-small h3">
71
71
  Total:
72
72
  {{ returnCurrency() }}
73
- {{
74
- Math.trunc(100 + 20 * orderOrganization[0]?.distance - 7,5 * (orderOrganization[0]?.distance / 10)) + cartTotalPrice.value
75
- }}
73
+ {{ deliveryCost + cartTotalPrice.value }}
76
74
  </p>
77
75
  </div>
78
-
79
- <p class='mn-b-thin'>
80
- By making this purchase you agree to the General Terms and Conditions.
81
- </p>
82
- <p class='mn-b-small'>
83
- I agree that placing the order places me under an obligation to make a payment in accordance with the General Terms and Conditions.
84
- </p>
85
76
  <!-- Send order -->
86
77
  <button
87
78
  v-if="orders.state.current.status !== true && shopcart.state.positions.length > 0"
@@ -94,10 +85,17 @@
94
85
  || errorPayment
95
86
  "
96
87
  @click="handleCreate()"
97
- class="bg-main pd-small radius-big w-100 button"
88
+ class="bg-main mn-b-small pd-small radius-big w-100 button"
98
89
  >
99
90
  Place an Order
100
91
  </button>
92
+
93
+ <p class='mn-b-thin'>
94
+ I agree that placing the order places me under an obligation to make a payment in accordance with <a class="t-semi font-second t-second" href="/legal/terms-of-use" target="_blank">Terms of Use.</a>
95
+ </p>
96
+ <p >
97
+
98
+ </p>
101
99
  </div>
102
100
 
103
101
  </div>
@@ -145,6 +143,20 @@ const router = useRouter()
145
143
  const order = computed(() => orders.state.current)
146
144
  const user = computed(() => users.state.current)
147
145
  const cartTotalPrice = computed(() => shopcart.getters.cartTotalPrice)
146
+ const deliveryCost = computed(() => {
147
+ if (orders.state.current.delivery.type === 'pickup') return 0;
148
+ if (orders.state.current.delivery.type === 'mail') return 350;
149
+ if (orders.state.current.delivery.type === 'courier') {
150
+ const distance = orderOrganization.value[0]?.distance || 0;
151
+ return Math.trunc(100 + 20 * distance - 7.5 * (distance / 10));
152
+ }
153
+ return 0;
154
+ });
155
+
156
+ // Computed property for total cost
157
+ const totalCost = computed(() => {
158
+ return deliveryCost.value + cartTotalPrice.value.value;
159
+ });
148
160
  // Organization
149
161
  const orderOrganization = ref({})
150
162
 
@@ -5,7 +5,8 @@
5
5
  bg-black
6
6
  t-white
7
7
  pd-big
8
- radius-medium
8
+ radius-big
9
+ flex-v-center
9
10
  flex-nowrap
10
11
  flex
11
12
  "
@@ -20,16 +21,16 @@
20
21
  src="@/assets/icons/cross-white.svg"
21
22
  > -->
22
23
 
23
- <p class="mn-r-auto">
24
- <span class="t-semi">Already registered?</span><br>
25
- <span>Log in to your account to checkout faster.</span>
26
- </p>
24
+ <div class="mn-r-auto">
25
+ <h3 class="t-semi mn-b-small">Already registered?</h3>
26
+ <span class="p-medium t-transp">Sign in to your account to checkout faster.</span>
27
+ </div>
27
28
 
28
29
  <button
29
30
  @click="toggleSignInPopup()"
30
- class="button"
31
+ class="button h-4r bg-main"
31
32
  >
32
- Log In
33
+ Sign In
33
34
  </button>
34
35
  </div>
35
36
  </template>
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <Block title="Delivery" class="mn-b-thin" :tooltip="'Delivery by mail takes 3-5 days.'">
3
3
 
4
- <h4 class="mn-b-thin">Spot</h4>
4
+ <!-- <h4 class="mn-b-thin">Select spot</h4>
5
5
  <div class="mn-b-small flex-nowrap flex">
6
6
 
7
- </div>
7
+ </div> -->
8
8
 
9
- <h4 class="mn-b-thin">Select zone</h4>
9
+ <h4 class="font-second mn-b-thin">Select deliverty type</h4>
10
10
  <div class="mn-b-small flex-nowrap flex">
11
11
  <Radio
12
12
  v-model:radio="order.delivery.type"
@@ -24,20 +24,20 @@
24
24
  v-model:radio="order.delivery.type"
25
25
  label="Post"
26
26
  value="mail"
27
- class="bg-white pd-medium radius-small w-100 mn-r-small"
27
+ class="bg-white pd-medium radius-small w-100"
28
28
  />
29
29
  </div>
30
30
 
31
31
 
32
32
 
33
- <h4 class="mn-b-thin">Address</h4>
33
+ <h4 class="font-second mn-b-thin">Address</h4>
34
34
  <Address
35
35
  label="Location"
36
36
  :apiKey="GOOGLE_MAPS_API_KEY"
37
37
  :address="order.delivery.address"
38
38
  :location="order.delivery.location"
39
39
  placeholder="Enter your address"
40
- class="bg-white radius-tl-medium radius-tr-medium t-black br-grey-transp-25 br-solid br-2px pd-medium"
40
+ class="bg-white radius-tl-medium radius-tr-medium t-black pd-medium"
41
41
  @update:location="newLocation => {
42
42
  order.delivery.location = newLocation;
43
43
  }"
@@ -1,12 +1,13 @@
1
- import layoutEmpty from '@pf/src/modules/globals/components/layouts/Empty.vue'
1
+ import layoutEmpty from '@pf/src/modules/globals/components/layouts/Empty.vue';
2
2
 
3
3
  const orders = {
4
4
  path: 'orders',
5
5
  component: layoutEmpty,
6
+ name: 'Orders',
6
7
  meta: {
7
8
  title: {
8
- en: 'Marketplace',
9
- ru: 'Маркетплейс'
9
+ en: 'Orders',
10
+ ru: 'Заказы'
10
11
  }
11
12
  },
12
13
  children: [{
@@ -43,4 +44,6 @@ const orders = {
43
44
  }]
44
45
  };
45
46
 
47
+
48
+
46
49
  export default orders;
@@ -174,8 +174,8 @@ import PlaceholderUserpic from '@pf/src/modules/icons/placeholders/PlaceholderUs
174
174
  import MembersAdd from '@pf/src/modules/organizations/components/sections/MembersAdd.vue';
175
175
 
176
176
  // Mobile Module
177
- import Menu from '@pf/src/modules/mobile/components/Menu/Menu.vue'
178
- import MenuItem from '@pf/src/modules/mobile/components/Menu/MenuItem.vue'
177
+ import Menu from '@pf/src/components/Menu/Menu.vue'
178
+ import MenuItem from '@pf/src/components/Menu/MenuItem.vue'
179
179
 
180
180
  import CardUser from '@pf/src/modules/users/components/blocks/CardUser.vue';
181
181
  import CardDepartment from '@pf/src/modules/organizations/components/blocks/CardDepartment.vue';
@@ -150,8 +150,8 @@
150
150
  import Block from '@pf/src/components/Block/Block.vue'
151
151
  import Feed from '@pf/src/components/Feed/Feed.vue'
152
152
  // Mobile Module
153
- import Menu from '@pf/src/modules/mobile/components/Menu/Menu.vue'
154
- import MenuItem from '@pf/src/modules/mobile/components/Menu/MenuItem.vue'
153
+ import Menu from '@pf/src/components/Menu/Menu.vue'
154
+ import MenuItem from '@pf/src/components/Menu/MenuItem.vue'
155
155
  // Organizations
156
156
  import DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';
157
157
  import User from '@pf/src/modules/users/components/blocks/CardUser.vue';
@@ -0,0 +1,204 @@
1
+ <template>
2
+ <div class="">
3
+ <h1 class="pd-medium radius-medium bg-light mn-b-small">Welcome to Backoffice</h1>
4
+
5
+ <Menu
6
+ class="bg-light mn-b-semi"
7
+ >
8
+ <MenuItem
9
+ v-if="hasAccess(route.params._id, 'members', 'read', auth.state.accesses)"
10
+ @click="router.push({
11
+ name: 'Organization Members',
12
+ params: {
13
+ _id: route.params._id
14
+ }
15
+ })"
16
+ class="cursor-pointer"
17
+ >
18
+ <IconGroups class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
19
+ <span>
20
+ Members
21
+ </span>
22
+ </MenuItem>
23
+
24
+ <!-- <MenuItem
25
+ @click="router.push({
26
+ name: 'Backoffice Community',
27
+ params: {
28
+ _id: route.params._id
29
+ }
30
+ })"
31
+ class="cursor-pointer">
32
+ <span>
33
+ Community
34
+ </span>
35
+ </MenuItem> -->
36
+
37
+ <MenuItem
38
+ v-if="hasAccess(route.params._id, 'products', 'read', auth.state.accesses)"
39
+ @click="router.push({
40
+ name: 'Products',
41
+ params: {
42
+ _id: route.params._id
43
+ }
44
+ })"
45
+ class="cursor-pointer">
46
+ <IconProducts class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
47
+ <span>
48
+ Products
49
+ </span>
50
+ </MenuItem>
51
+
52
+ <MenuItem
53
+ v-if="hasAccess(route.params._id, 'leftovers', 'read', auth.state.accesses)"
54
+ @click="router.push({
55
+ name: 'Leftovers',
56
+ params: {
57
+ _id: route.params._id
58
+ }
59
+ })"
60
+ class="cursor-pointer">
61
+ <IconLeftovers class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
62
+ <span>
63
+ Leftovers
64
+ </span>
65
+ </MenuItem>
66
+
67
+ <MenuItem
68
+ v-if="hasAccess(route.params._id, 'orders', 'read', auth.state.accesses)"
69
+ @click="router.push({
70
+ name: 'Backoffice Orders',
71
+ params: {
72
+ _id: route.params._id
73
+ }
74
+ })"
75
+ class="cursor-pointer">
76
+ <IconOrders class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
77
+ <span>
78
+ Orders
79
+ </span>
80
+ </MenuItem>
81
+
82
+ <MenuItem
83
+ v-if="hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)"
84
+ @click="router.push({
85
+ name: 'Backoffice Gallery',
86
+ params: {
87
+ _id: route.params._id
88
+ }
89
+ })"
90
+ class="cursor-pointer">
91
+ <IconGallery class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
92
+ <span>
93
+ Gallery
94
+ </span>
95
+ </MenuItem>
96
+
97
+ <MenuItem
98
+ v-if="hasAccess(route.params._id, 'events', 'read', auth.state.accesses)"
99
+ @click="router.push({
100
+ name: 'Backoffice Events',
101
+ params: {
102
+ _id: route.params._id
103
+ }
104
+ })"
105
+ class="cursor-pointer">
106
+ <IconEvents class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
107
+ <span>
108
+ Events
109
+ </span>
110
+ </MenuItem>
111
+
112
+ <!-- <MenuItem
113
+ @click="router.push({
114
+ name: 'Payments',
115
+ params: {
116
+ _id: route.params._id
117
+ }
118
+ })"
119
+ class="cursor-pointer">
120
+ <span>
121
+ Payments
122
+ </span>
123
+ </MenuItem> -->
124
+ </Menu>
125
+
126
+ <!-- <Menu
127
+ class="bg-light"
128
+ >
129
+ <MenuItem
130
+ @click="router.push({
131
+ name: 'Backoffice Organizations',
132
+ params: {
133
+ _id: route.params._id
134
+ }
135
+ })"
136
+ class="cursor-pointer">
137
+ <span>
138
+ Organizations
139
+ </span>
140
+ </MenuItem>
141
+
142
+ <MenuItem
143
+ @click="router.push({
144
+ name: 'Backoffice Reports',
145
+ params: {
146
+ _id: route.params._id
147
+ }
148
+ })"
149
+ class="cursor-pointer">
150
+ <span>
151
+ Reports
152
+ </span>
153
+ </MenuItem>
154
+ </Menu> -->
155
+ </div>
156
+ </template>
157
+
158
+ <script setup="props">
159
+ /////////////////////////////
160
+ // COMPONENT DEPENDENCIES
161
+ /////////////////////////////
162
+ import { ref, onMounted } from 'vue';
163
+
164
+ // Mobile Module
165
+ import Menu from '@pf/src/components/Menu/Menu.vue'
166
+ import MenuItem from '@pf/src/components/Menu/MenuItem.vue'
167
+ import SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue'
168
+
169
+ import IconProducts from '@pf/src/modules/icons/entities/IconProducts.vue'
170
+ import IconEvents from '@pf/src/modules/icons/entities/IconEvents.vue'
171
+ import IconGroups from '@pf/src/modules/icons/entities/IconGroups.vue'
172
+ import IconCommunity from '@pf/src/modules/icons/entities/IconCommunity.vue'
173
+ import IconGallery from '@pf/src/modules/icons/entities/IconGallery.vue'
174
+ import IconOrders from '@pf/src/modules/icons/entities/IconOrders.vue'
175
+ import IconLeftovers from '@pf/src/modules/icons/entities/IconLeftovers.vue'
176
+ /////////////////////////////
177
+ // HELPERS
178
+ /////////////////////////////
179
+ import { useRoute, useRouter } from 'vue-router'
180
+
181
+ import * as auth from '@pf/src/modules/auth/store/auth'
182
+
183
+ import * as organizations from '@pf/src/modules/organizations/store/organizations'
184
+
185
+ const route = useRoute()
186
+ const router = useRouter()
187
+ /////////////////////////////
188
+ // CREATED
189
+ /////////////////////////////
190
+ const props = defineProps({
191
+ favorites: Array,
192
+ });
193
+
194
+ const selectedOrganization = ref(null);
195
+ const publics = ref([]);
196
+ /////////////////////////////
197
+ // MOUNTED
198
+ /////////////////////////////
199
+ onMounted(async () =>{
200
+ })
201
+ </script>
202
+
203
+ <style lang="scss">
204
+ </style>
@@ -0,0 +1,25 @@
1
+ import layoutEmpty from '@pf/src/modules/globals/components/layouts/Empty.vue';
2
+
3
+ import * as validationAuth from '@pf/src/modules/middlewares/client/auth.validation.js';
4
+
5
+ const backofficeRoutes = [{
6
+ path: 'backoffice',
7
+ component: layoutEmpty,
8
+ // beforeEnter: [
9
+ // validationAuth.requiresAdmin,
10
+ // ],
11
+ children: [{
12
+ path: '',
13
+ name: 'Backoffice',
14
+ meta: {
15
+ title: {
16
+ en: 'Backoffice',
17
+ ru: 'Управление'
18
+ },
19
+ authorize: []
20
+ },
21
+ component: () => import(/* webpackChunkName: 'Organizations' */ '@pf/src/modules/organizations/components/pages/OrganizationBackoffice.vue'),
22
+ }]
23
+ }];
24
+
25
+ export default backofficeRoutes;
@@ -9,8 +9,9 @@ import leftoversRoutes from '@pf/src/modules/products/router/leftovers.router.js
9
9
 
10
10
  import paymentsRoutes from '@pf/src/modules/wallet/views/router/payments.router.js'
11
11
  import ordersBackofficeRoutes from '@pf/src/modules/orders/router/orders.backoffice.router.js'
12
+ import galleryBackofficeRoutes from '@pf/src/modules/gallery/router/gallery.backoffice.router.js'
12
13
 
13
- import backofficeRoutes from '@pf/src/modules/backoffice/router/backoffice.js'
14
+ import backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'
14
15
 
15
16
  import * as validationAuth from '@pf/src/modules/middlewares/client/auth.validation.js';
16
17
 
@@ -63,6 +64,7 @@ const organizations = [{
63
64
  ...leftoversRoutes,
64
65
  ...paymentsRoutes,
65
66
  ...ordersBackofficeRoutes,
67
+ ...galleryBackofficeRoutes,
66
68
  ...backofficeRoutes
67
69
  ],
68
70
  },{
@@ -0,0 +1,15 @@
1
+ const pages = [
2
+ {
3
+ path: 'pages/:url',
4
+ name: 'Page',
5
+ meta: {
6
+ title: {
7
+ en: 'Page',
8
+ ru: 'Страница'
9
+ }
10
+ },
11
+ component: () => import(/* webpackChunkName: 'Page' */ '@pf/src/modules/landing/components/pages/Page.vue')
12
+ }
13
+ ];
14
+
15
+ export default pages;
@@ -1,18 +1,17 @@
1
1
  <template>
2
- <div class="product-images">
3
- <div class="no-responsive cols-4 gap-thin">
2
+ <div class="o-scroll product-images">
3
+ <div class="no-responsive flex flex-nowrap gap-thin">
4
4
  <img
5
5
  v-for="(image, index) in images"
6
6
  :key="index"
7
7
  :src="(FILE_SERVER_URL || '') + image"
8
- @click="openPopup(index)"
9
- class="radius-medium bg-white o-hidden thumbnail"
8
+ @click="openPopup(image)"
9
+ class="flex-child flex-child-grow-1 aspect-1x1 radius-semi bg-white o-hidden thumbnail"
10
10
  />
11
11
  </div>
12
12
  <Popup @close-popup="closePopup" :isPopupOpen="isPopupVisible" class="radius-medium o-hidden">
13
- <Magnifier
14
- :imageSrc="(FILE_SERVER_URL || '') + images[selectedimageIndex]"
15
- class="magnifier z-index-4"
13
+ <PhotoViewer
14
+ :photoUrl="(FILE_SERVER_URL || '') + selectedImage"
16
15
  />
17
16
  </Popup>
18
17
  </div>
@@ -21,8 +20,8 @@
21
20
  <script setup>
22
21
  import { ref } from "vue";
23
22
 
24
- import Popup from '@pf/src/components/Popup/Popup.vue'
25
- import Magnifier from '@pf/src/components/Magnifier/Magnifier.vue'
23
+ import Popup from '@pf/src/components/Popup/Popup.vue'
24
+ import PhotoViewer from '@pf/src/components/PhotoViewer/PhotoViewer.vue'
26
25
 
27
26
  const props = defineProps({
28
27
  images: {
@@ -32,10 +31,10 @@ const props = defineProps({
32
31
  });
33
32
 
34
33
  const isPopupVisible = ref(false);
35
- const selectedimageIndex = ref(0);
34
+ const selectedImage = ref(null);
36
35
 
37
- const openPopup = (index) => {
38
- selectedimageIndex.value = index;
36
+ const openPopup = (image) => {
37
+ selectedImage.value = image;
39
38
  isPopupVisible.value = true;
40
39
  };
41
40