@ozdao/prometheus-framework 0.2.252 → 0.2.254

Sign up to get free protection for your applications and to get access to all the features.
Files changed (310) hide show
  1. package/dist/auth.server.js +298 -14
  2. package/dist/auth.server.mjs +298 -14
  3. package/dist/builder.js +4 -4
  4. package/dist/builder.mjs +4 -4
  5. package/dist/chats.server.js +110 -0
  6. package/dist/chats.server.mjs +111 -0
  7. package/dist/community.server.js +38 -21
  8. package/dist/community.server.mjs +38 -21
  9. package/dist/events.server.js +38 -18
  10. package/dist/events.server.mjs +38 -17
  11. package/dist/files.server.js +12 -3
  12. package/dist/files.server.mjs +12 -3
  13. package/dist/gallery.server.js +17 -4
  14. package/dist/gallery.server.mjs +17 -4
  15. package/dist/organizations.server.js +43 -26
  16. package/dist/organizations.server.mjs +43 -26
  17. package/dist/products.server.js +49 -23
  18. package/dist/products.server.mjs +49 -22
  19. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +15 -3
  20. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/auth.client.js +16 -4
  22. package/dist/prometheus-framework/src/modules/auth/auth.client.js.map +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs +95 -0
  24. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs.map +1 -0
  25. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js +95 -0
  26. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js.map +1 -0
  27. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs +284 -0
  28. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -0
  29. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +284 -0
  30. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -0
  31. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs +2 -0
  32. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs.map +1 -0
  33. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js +2 -0
  34. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js.map +1 -0
  35. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +85 -0
  36. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs.map +1 -0
  37. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +85 -0
  38. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -0
  39. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +176 -0
  40. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -0
  41. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js +176 -0
  42. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -0
  43. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +2 -0
  44. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +1 -0
  45. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +2 -0
  46. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +1 -0
  47. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs +114 -0
  48. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.map +1 -0
  49. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +114 -0
  50. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -0
  51. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs +72 -0
  52. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs.map +1 -0
  53. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js +72 -0
  54. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js.map +1 -0
  55. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +97 -0
  56. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -0
  57. package/dist/prometheus-framework/src/modules/auth/views/router/users.js +97 -0
  58. package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -0
  59. package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs +95 -0
  60. package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs.map +1 -0
  61. package/dist/prometheus-framework/src/modules/auth/views/store/users.js +95 -0
  62. package/dist/prometheus-framework/src/modules/auth/views/store/users.js.map +1 -0
  63. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +32 -2
  64. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs.map +1 -1
  65. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +32 -2
  66. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js.map +1 -1
  67. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +2 -2
  68. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs.map +1 -1
  69. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +2 -2
  70. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js.map +1 -1
  71. package/dist/prometheus-framework/src/modules/chats/chats.client.cjs +31 -0
  72. package/dist/prometheus-framework/src/modules/chats/chats.client.cjs.map +1 -0
  73. package/dist/prometheus-framework/src/modules/chats/chats.client.js +31 -0
  74. package/dist/prometheus-framework/src/modules/chats/chats.client.js.map +1 -0
  75. package/dist/prometheus-framework/src/modules/community/community.client.cjs +42 -7
  76. package/dist/prometheus-framework/src/modules/community/community.client.cjs.map +1 -1
  77. package/dist/prometheus-framework/src/modules/community/community.client.js +59 -24
  78. package/dist/prometheus-framework/src/modules/community/community.client.js.map +1 -1
  79. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +68 -70
  80. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
  81. package/dist/prometheus-framework/src/modules/community/router/blogposts.js +68 -70
  82. package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
  83. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +26 -3
  84. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs.map +1 -1
  85. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +27 -4
  86. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js.map +1 -1
  87. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs +2 -2
  88. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs.map +1 -1
  89. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js +2 -2
  90. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js.map +1 -1
  91. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
  93. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  95. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
  97. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  98. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
  99. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +2 -2
  100. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +1 -1
  101. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  102. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +1 -1
  103. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +4 -1
  104. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs.map +1 -1
  105. package/dist/prometheus-framework/src/modules/orders/orders.client.js +4 -1
  106. package/dist/prometheus-framework/src/modules/orders/orders.client.js.map +1 -1
  107. package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs +63 -0
  108. package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs.map +1 -0
  109. package/dist/prometheus-framework/src/modules/orders/store/testimonials.js +63 -0
  110. package/dist/prometheus-framework/src/modules/orders/store/testimonials.js.map +1 -0
  111. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -2
  112. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
  114. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs.map +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  132. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
  134. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs.map +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +60 -11
  138. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs.map +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +95 -46
  140. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js.map +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +6 -10
  142. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +8 -12
  144. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
  145. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +500 -500
  146. package/dist/prometheus-framework/src/modules/pages/pages.client.js +500 -500
  147. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs +179 -0
  148. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs.map +1 -0
  149. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js +179 -0
  150. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js.map +1 -0
  151. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +64 -0
  152. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -0
  153. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +64 -0
  154. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -0
  155. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +2 -2
  156. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -2
  157. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
  158. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  159. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
  160. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
  161. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
  163. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  164. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
  165. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +156 -0
  166. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs.map +1 -0
  167. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +157 -0
  168. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js.map +1 -0
  169. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs.map +1 -1
  171. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js.map +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs.map +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
  177. package/dist/prometheus-framework/src/modules/products/products.client.cjs +72 -7
  178. package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
  179. package/dist/prometheus-framework/src/modules/products/products.client.js +114 -49
  180. package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
  181. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs +46 -0
  182. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs.map +1 -0
  183. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js +46 -0
  184. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js.map +1 -0
  185. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +79 -36
  186. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs.map +1 -1
  187. package/dist/prometheus-framework/src/modules/products/router/products.router.js +78 -35
  188. package/dist/prometheus-framework/src/modules/products/router/products.router.js.map +1 -1
  189. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs +57 -0
  190. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs.map +1 -0
  191. package/dist/prometheus-framework/src/modules/products/store/marketplace.js +57 -0
  192. package/dist/prometheus-framework/src/modules/products/store/marketplace.js.map +1 -0
  193. package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +21 -2
  194. package/dist/prometheus-framework/src/modules/reports/reports.client.cjs.map +1 -1
  195. package/dist/prometheus-framework/src/modules/reports/reports.client.js +20 -1
  196. package/dist/prometheus-framework/src/modules/reports/reports.client.js.map +1 -1
  197. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs.map +1 -1
  199. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  200. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
  201. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +2 -2
  202. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs.map +1 -1
  203. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +2 -2
  204. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js.map +1 -1
  205. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +2 -2
  206. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs.map +1 -1
  207. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +2 -2
  208. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
  209. package/dist/reports.server.js +21 -8
  210. package/dist/reports.server.mjs +21 -8
  211. package/package.json +9 -1
  212. package/src/builder/webpack/webpack.config.client.js +2 -2
  213. package/src/builder/webpack/webpack.config.server.js +1 -1
  214. package/src/builder/webpack/webpack.config.spa.js +1 -1
  215. package/src/builder/webpack/webpack.config.ssr.js +1 -1
  216. package/src/modules/auth/auth.client.js +16 -3
  217. package/src/modules/auth/auth.server.js +22 -1
  218. package/src/modules/{users → auth/controllers}/routes/users.routes.js +1 -1
  219. package/src/modules/auth/controllers/services/auth.service.js +0 -1
  220. package/src/modules/{users → auth/views}/components/pages/Profile.vue +1 -1
  221. package/src/modules/{users → auth/views}/components/pages/ProfileEdit.vue +2 -2
  222. package/src/modules/{users → auth/views}/components/sections/FeaturedUsers.vue +2 -2
  223. package/src/modules/auth/views/router/users.js +79 -0
  224. package/src/modules/backoffice/backoffice.client.js +53 -11
  225. package/src/modules/backoffice/router/backoffice.js +29 -2
  226. package/src/modules/chats/chats.client.js +48 -0
  227. package/src/modules/chats/chats.server.js +32 -0
  228. package/src/modules/community/community.client.js +56 -10
  229. package/src/modules/community/community.server.js +35 -14
  230. package/src/modules/community/models/comment.model.js +7 -7
  231. package/src/modules/community/models/reaction.model.js +5 -5
  232. package/src/modules/community/router/blogposts.js +55 -57
  233. package/src/modules/events/events.server.js +37 -16
  234. package/src/modules/events/models/ticket.model.js +6 -6
  235. package/src/modules/files/files.server.js +17 -7
  236. package/src/modules/gallery/gallery.client.js +44 -8
  237. package/src/modules/gallery/gallery.server.js +28 -9
  238. package/src/modules/gallery/router/gallery.router.js +2 -2
  239. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  240. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
  241. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  242. package/src/modules/orders/orders.client.js +4 -1
  243. package/src/modules/orders/orders.server.js +1 -0
  244. package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
  245. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  246. package/src/modules/organizations/components/pages/Department.vue +1 -1
  247. package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
  248. package/src/modules/organizations/components/pages/Members.vue +1 -1
  249. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  250. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  251. package/src/modules/organizations/controllers/organizations.controller.js +0 -2
  252. package/src/modules/organizations/models/department.model.js +7 -7
  253. package/src/modules/organizations/models/membership.model.js +5 -5
  254. package/src/modules/organizations/organizations.client.js +71 -16
  255. package/src/modules/organizations/organizations.server.js +43 -18
  256. package/src/modules/organizations/router/organizations.js +6 -13
  257. package/src/modules/{marketplace → products}/components/layouts/Marketplace.vue +20 -19
  258. package/src/modules/{marketplace → products}/components/pages/Catalog.vue +5 -5
  259. package/src/modules/products/components/pages/Products.vue +2 -2
  260. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  261. package/src/modules/{marketplace → products}/components/sections/Filters.vue +12 -15
  262. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  263. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  264. package/src/modules/products/models/category.model.js +3 -3
  265. package/src/modules/products/models/product.model.js +7 -7
  266. package/src/modules/products/products.client.js +93 -25
  267. package/src/modules/products/products.server.js +47 -16
  268. package/src/modules/products/router/marketplace.router.js +38 -0
  269. package/src/modules/products/router/products.router.js +72 -32
  270. package/src/modules/reports/models/report.model.js +4 -4
  271. package/src/modules/reports/reports.client.js +35 -14
  272. package/src/modules/reports/reports.server.js +27 -8
  273. package/src/modules/spots/components/layouts/Spots.vue +1 -1
  274. package/src/modules/spots/components/pages/Map.vue +1 -1
  275. package/src/modules/spots/components/pages/Spot.vue +1 -1
  276. package/src/modules/backoffice/router/admin.js +0 -51
  277. package/src/modules/landing/components/pages/404.vue +0 -3
  278. package/src/modules/landing/components/pages/Farming.vue +0 -226
  279. package/src/modules/landing/components/pages/Governance.vue +0 -144
  280. package/src/modules/landing/components/pages/Home.vue +0 -51
  281. package/src/modules/landing/components/pages/Hotel.vue +0 -43
  282. package/src/modules/landing/router/landing.js +0 -39
  283. package/src/modules/legal/components/pages/Legal.vue +0 -62
  284. package/src/modules/legal/components/pages/legal/Cookies.vue +0 -370
  285. package/src/modules/legal/components/pages/legal/EULA.vue +0 -2145
  286. package/src/modules/legal/components/pages/legal/Privacy.vue +0 -4284
  287. package/src/modules/legal/components/pages/legal/Terms.vue +0 -1283
  288. package/src/modules/legal/legal.client.js +0 -18
  289. package/src/modules/legal/router/legal.js +0 -59
  290. package/src/modules/marketplace/router/marketplace.js +0 -54
  291. package/src/modules/users/router/users.js +0 -90
  292. package/src/modules/users/users.client.js +0 -22
  293. package/src/modules/users/users.server.js +0 -13
  294. /package/src/modules/{users → auth/controllers}/middlewares/visitor.logger.js +0 -0
  295. /package/src/modules/{users/controllers/users.controller.js → auth/controllers/services/users.service.js} +0 -0
  296. /package/src/modules/{users → auth}/models/request.model.js +0 -0
  297. /package/src/modules/{users → auth}/models/user.model.js +0 -0
  298. /package/src/modules/{users → auth}/models/visitor.model.js +0 -0
  299. /package/src/modules/{users → auth/views}/components/blocks/CardUser.vue +0 -0
  300. /package/src/modules/{users → auth/views}/components/pages/ProfileBlogposts.vue +0 -0
  301. /package/src/modules/{users → auth/views}/components/pages/ProfileComments.vue +0 -0
  302. /package/src/modules/{users → auth/views}/components/pages/ProfileLikes.vue +0 -0
  303. /package/src/modules/{users → auth/views}/components/sections/ProfileCompletion.vue +0 -0
  304. /package/src/modules/{users → auth/views}/router/account.js +0 -0
  305. /package/src/modules/{users → auth/views}/store/users.js +0 -0
  306. /package/src/modules/{projects/controller → governance/controllers/factories}/projects.controller.js +0 -0
  307. /package/src/modules/{projects → governance/controllers}/routes/projects.routes.js +0 -0
  308. /package/src/modules/{projects → governance}/models/project.model.js +0 -0
  309. /package/src/modules/{projects → governance/views}/store/projects.js +0 -0
  310. /package/src/modules/{marketplace → products}/store/marketplace.js +0 -0
@@ -1,10 +1,21 @@
1
- // Import Vue components (layouts, blocks, sections, elements, and pages)
1
+ // Store
2
+ import * as storeDepartments from './store/departments.js';
3
+ import * as storeMemberships from './store/memberships.js';
4
+ import * as storeOrganizations from './store/organizations.js';
5
+ import * as storeInvites from './store/invites.js';
6
+
7
+ // Router
8
+ import routerOrganization from './router/organizations';
9
+
10
+ // Views
11
+ // Pages
2
12
  import Organization from './components/pages/Organization.vue';
3
13
  import Department from './components/pages/Department.vue';
4
14
  import OrganizationEdit from './components/pages/OrganizationEdit.vue';
5
15
  import Organizations from './components/pages/Organizations.vue';
6
16
  import DepartmentEdit from './components/pages/DepartmentEdit.vue';
7
17
 
18
+ // Blocks
8
19
  import CardOrganization from './components/blocks/CardOrganization.vue';
9
20
  import EditArray from './components/blocks/EditArray.vue';
10
21
  import Unit from './components/blocks/Unit.vue';
@@ -15,23 +26,27 @@ import EmptyState from './components/blocks/EmptyState.vue';
15
26
  import Contacts from './components/blocks/Contacts.vue';
16
27
  import Socials from './components/blocks/Socials.vue';
17
28
 
29
+ // Sections
18
30
  import MembersAdd from './components/sections/MembersAdd.vue';
19
31
  import DetailsTabSection from './components/sections/DetailsTabSection.vue';
20
32
  import OrganizationsSection from './components/sections/Organizations.vue';
21
33
  import Publics from './components/sections/Publics.vue';
22
34
  import Documents from './components/sections/Documents.vue';
23
35
 
36
+ // Elements
24
37
  import ButtonToggleMembership from './components/elements/ButtonToggleMembership.vue';
25
38
 
26
- // Import Vuex store modules
27
-
28
- import * as departmentsStore from './store/departments.js';
29
- import * as membershipsStore from './store/memberships.js';
30
- import * as organizationStore from './store/organizations.js';
31
- import * as invitesStore from './store/invites.js';
32
-
33
- // Import Vue Router routes
34
- import organizationsRouter from './router/organizations.js';
39
+ // Пример функции инициализации для модуля организаций
40
+ function initializeOrganization(app, store, router, options = {}) {
41
+ const route = options.route || 'Home';
42
+
43
+ router.addRoute(route, routerOrganization);
44
+
45
+ store.addStore('departments', storeDepartments);
46
+ store.addStore('memberships', storeMemberships);
47
+ store.addStore('organizations', storeOrganizations);
48
+ store.addStore('invites', storeInvites);
49
+ }
35
50
 
36
51
  // Export components, store modules, and routes
37
52
  export {
@@ -55,13 +70,53 @@ export {
55
70
  Publics,
56
71
  Documents,
57
72
  ButtonToggleMembership,
58
- departmentsStore,
59
- membershipsStore,
60
- organizationStore,
61
- invitesStore,
62
- organizationsRouter
73
+ storeDepartments,
74
+ storeMemberships,
75
+ storeOrganizations,
76
+ storeInvites,
77
+ routerOrganization
63
78
  };
64
79
 
65
80
 
81
+ const ModuleOrganization = {
82
+ initialize: initializeOrganization,
83
+ views: {
84
+ store: {
85
+ storeDepartments,
86
+ storeMemberships,
87
+ storeOrganizations,
88
+ storeInvites
89
+ },
90
+ router: {
91
+ routerOrganization
92
+ },
93
+ components: {
94
+ // Pages
95
+ Organization,
96
+ Department,
97
+ OrganizationEdit,
98
+ Organizations,
99
+ DepartmentEdit,
100
+ // Blocks
101
+ CardOrganization,
102
+ EditArray,
103
+ Unit,
104
+ DepartmentSub,
105
+ CardDepartment,
106
+ Rating,
107
+ EmptyState,
108
+ Contacts,
109
+ Socials,
110
+ // Sections
111
+ MembersAdd,
112
+ DetailsTabSection,
113
+ OrganizationsSection,
114
+ Publics,
115
+ Documents,
116
+ // Elements
117
+ ButtonToggleMembership
118
+ }
119
+ }
120
+ }
66
121
 
67
-
122
+ export default ModuleOrganization;
@@ -1,31 +1,56 @@
1
- // Importing controllers
1
+ // Импортируем контроллеры
2
2
  const DepartmentsController = require('./controllers/departments.controller.js');
3
3
  const OrganizationsController = require('./controllers/organizations.controller.js');
4
4
  const MembershipsController = require('./controllers/memberships.controller.js');
5
5
  const InvitesController = require('./controllers/invites.controller.js');
6
- // Importing routes
6
+
7
+ // Импортируем роуты
7
8
  const departmentsRoutes = require('./routes/departments.routes.js');
8
9
  const organizationsRoutes = require('./routes/organizations.routes.js');
9
10
  const membershipsRoutes = require('./routes/memberships.routes.js');
10
- const invitesRoutes = require('./routes/invites.routes.js')
11
- // Importing models
11
+ const invitesRoutes = require('./routes/invites.routes.js');
12
+
13
+ // Импортируем модели
12
14
  const DepartmentModel = require('./models/department.model.js');
13
15
  const OrganizationModel = require('./models/organization.model.js');
14
16
  const MembershipModel = require('./models/membership.model.js');
15
17
  const InviteModel = require('./models/invite.model.js');
16
18
 
17
- // Exporting
19
+ function initializeOrganization(app, db, origins, publicPath) {
20
+ // Настраиваем модели в объекте базы данных
21
+ db.department = DepartmentModel(db);
22
+ db.organization = OrganizationModel(db);
23
+ db.membership = MembershipModel(db);
24
+ db.invite = InviteModel(db);
25
+
26
+ // Настраиваем маршруты, если объект приложения передан
27
+ if (app) {
28
+ departmentsRoutes(app, db, origins, publicPath);
29
+ organizationsRoutes(app, db, origins, publicPath);
30
+ membershipsRoutes(app, db, origins, publicPath);
31
+ invitesRoutes(app, db, origins, publicPath);
32
+ }
33
+ }
34
+
35
+ // Экспортируем функцию инициализации, контроллеры, роуты и модели
18
36
  module.exports = {
19
- DepartmentsController,
20
- OrganizationsController,
21
- MembershipsController,
22
- InvitesController,
23
- departmentsRoutes,
24
- organizationsRoutes,
25
- membershipsRoutes,
26
- invitesRoutes,
27
- DepartmentModel,
28
- OrganizationModel,
29
- MembershipModel,
30
- InviteModel
31
- };
37
+ initialize: initializeOrganization,
38
+ models: {
39
+ DepartmentModel,
40
+ OrganizationModel,
41
+ MembershipModel,
42
+ InviteModel,
43
+ },
44
+ routes: {
45
+ departmentsRoutes,
46
+ organizationsRoutes,
47
+ membershipsRoutes,
48
+ invitesRoutes,
49
+ },
50
+ controllers: {
51
+ DepartmentsController,
52
+ OrganizationsController,
53
+ MembershipsController,
54
+ InvitesController,
55
+ }
56
+ };
@@ -1,10 +1,9 @@
1
- import layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';
2
-
3
1
  import membersRoutes from './members.router.js';
4
2
  import departmentRoutes from './departments.router.js'
3
+ import backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'
5
4
 
6
- import productRoutes from '@pf/src/modules/products/router/products.router.js'
7
5
  import { createEventRoutes } from '@pf/src/modules/events/router/events';
6
+ import { createProductRoutes } from '@pf/src/modules/products/router/products.router';
8
7
  import categoriesRoutes from '@pf/src/modules/products/router/categories.router.js'
9
8
  import leftoversRoutes from '@pf/src/modules/products/router/leftovers.router.js'
10
9
 
@@ -12,15 +11,10 @@ import paymentsRoutes from '@pf/src/modules/wallet/views/router/payments.router.
12
11
  import ordersBackofficeRoutes from '@pf/src/modules/orders/router/orders.backoffice.router.js'
13
12
  import galleryBackofficeRoutes from '@pf/src/modules/gallery/router/gallery.backoffice.router.js'
14
13
 
15
- import backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'
16
-
17
14
  import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
18
15
 
19
- const eventsRoutes = createEventRoutes('Organization_');
20
-
21
- const organizations = [{
16
+ const organizations = {
22
17
  path: 'organizations',
23
- component: layoutEmpty,
24
18
  meta: {
25
19
  title: {
26
20
  en: 'Organizations',
@@ -50,7 +44,6 @@ const organizations = [{
50
44
  ru: 'Группа'
51
45
  },
52
46
  },
53
- component: layoutEmpty,
54
47
  children: [
55
48
  {
56
49
  path: '',
@@ -68,8 +61,8 @@ const organizations = [{
68
61
  },
69
62
  ...membersRoutes,
70
63
  ...departmentRoutes,
71
- ...productRoutes,
72
- eventsRoutes,
64
+ createProductRoutes('Organization_'),
65
+ createEventRoutes('Organization_'),
73
66
  ...categoriesRoutes,
74
67
  ...leftoversRoutes,
75
68
  ...paymentsRoutes,
@@ -89,6 +82,6 @@ const organizations = [{
89
82
  beforeEnter: [validationAuth.requiresAuth],
90
83
  component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue'),
91
84
  }]
92
- }];
85
+ };
93
86
 
94
87
  export default organizations;
@@ -6,7 +6,7 @@
6
6
 
7
7
  <span
8
8
  v-if="localPosition.city || localPosition.state || localPosition.country"
9
- @click="a => { store.globals.state.isOpenLocationPopup = true }"
9
+ @click="a => { globals.state.isOpenLocationPopup = true }"
10
10
  class="t-main t-semi cursor-pointer "
11
11
  >
12
12
  <template v-if="localPosition.city">{{localPosition.city}}, </template>
@@ -14,7 +14,7 @@
14
14
  <template v-if="localPosition.country">{{localPosition.country}}</template>
15
15
  </span>
16
16
 
17
- <span v-else @click="a => { store.globals.state.isOpenLocationPopup = true }" class="h2 pd-l-small pd-r-small pd-t-micro pd-b-micro d-inline-block t-semi radius-extra bg-main t-black cursor-pointer">
17
+ <span v-else @click="a => { globals.state.isOpenLocationPopup = true }" class="h2 pd-l-small pd-r-small pd-t-micro pd-b-micro d-inline-block t-semi radius-extra bg-main t-black cursor-pointer">
18
18
  The World
19
19
  </span>
20
20
  </h2>
@@ -23,8 +23,8 @@
23
23
  <div class="gap-thin cols-2-1_3">
24
24
  <div class="desktop-only radius-big o-hidden">
25
25
  <BlockFilter
26
- v-model:filter="store.marketplace.state.filter"
27
- :options="store.marketplace.state.filter.options"
26
+ v-model:filter="marketplace.state.filter"
27
+ :options="marketplace.state.filter.options"
28
28
  class="h-100 w-100 pd-small bg-light"
29
29
  />
30
30
  </div>
@@ -42,15 +42,16 @@
42
42
  <script setup="props">
43
43
  // Import libs
44
44
  import { computed, onMounted, watch, ref } from 'vue'
45
- import { useStore } from '@/store'
46
45
  import { useRoute, useRouter,onBeforeRouteLeave } from 'vue-router'
47
46
  import { useI18n } from 'vue-i18n'
48
47
 
49
-
50
48
  import BlockFilter from '@pf/src/modules/globals/views/components/blocks/BlockFilter.vue'
51
49
 
50
+ import * as marketplace from '@pf/src/modules/products/store/marketplace';
51
+ import * as globals from '@pf/src/modules/globals/views/store/globals'
52
+ import * as categories from '@pf/src/modules/products/store/categories';
53
+
52
54
  // Accessing router and store
53
- const store = useStore()
54
55
  const route = useRoute()
55
56
  const router = useRouter()
56
57
 
@@ -90,27 +91,27 @@
90
91
  if (route.query) {
91
92
  const query = route.query;
92
93
 
93
- store.marketplace.state.filter.selected.categories = query.categories ? query.categories.split(',') : [];
94
- store.marketplace.state.filter.selected.prices = query.prices ? query.prices.split(',') : [];
95
- store.marketplace.state.filter.selected.delivery = query.delivery ? query.delivery.split(',') : [];
94
+ marketplace.state.filter.selected.categories = query.categories ? query.categories.split(',') : [];
95
+ marketplace.state.filter.selected.prices = query.prices ? query.prices.split(',') : [];
96
+ marketplace.state.filter.selected.delivery = query.delivery ? query.delivery.split(',') : [];
96
97
  }
97
98
 
98
- if (route.query.sortParam) store.marketplace.state.sort.param = route.query.sortParam
99
- if (route.query.sortOrder) store.marketplace.state.sort.order = route.query.sortOrder
99
+ if (route.query.sortParam) marketplace.state.sort.param = route.query.sortParam
100
+ if (route.query.sortOrder) marketplace.state.sort.order = route.query.sortOrder
100
101
 
101
102
  onMounted(async () => {
102
103
  let options = {
103
104
  status: 'published'
104
105
  }
105
106
 
106
- let categoriesFilter = await store.categories.actions.fetchCategories(options);
107
+ let categoriesFilter = await categories.actions.fetchCategories(options);
107
108
 
108
109
  categoriesFilter = categoriesFilter.map(category => ({
109
110
  value: category.url,
110
111
  label: category.name
111
112
  }));
112
113
 
113
- const index = store.marketplace.state.filter.options.findIndex(option => option.value === 'categories');
114
+ const index = marketplace.state.filter.options.findIndex(option => option.value === 'categories');
114
115
 
115
116
  const categoryOption = {
116
117
  title: 'Categories',
@@ -119,13 +120,13 @@
119
120
  };
120
121
 
121
122
  if (index !== -1) {
122
- store.marketplace.state.filter.options[index] = categoryOption;
123
+ marketplace.state.filter.options[index] = categoryOption;
123
124
  } else {
124
- store.marketplace.state.filter.options.unshift(categoryOption);
125
+ marketplace.state.filter.options.unshift(categoryOption);
125
126
  }
126
127
  })
127
128
 
128
- watch(() => store.marketplace.state.sort, (newSortValue, oldSortValue) => {
129
+ watch(() => marketplace.state.sort, (newSortValue, oldSortValue) => {
129
130
  let query = { ...route.query}
130
131
 
131
132
  query.sortParam = newSortValue.param
@@ -136,7 +137,7 @@
136
137
  }, { deep: true });
137
138
 
138
139
 
139
- watch(() => store.marketplace.state.filter.selected, (newFilterValue, oldFilterValue) => {
140
+ watch(() => marketplace.state.filter.selected, (newFilterValue, oldFilterValue) => {
140
141
  // Переводим фильтр в формат query
141
142
  const query = { ...route.query };
142
143
 
@@ -161,7 +162,7 @@
161
162
  router.replace({ query });
162
163
  }, { deep: true })
163
164
 
164
- watch(() => store.globals.state.position, (newPosition) => {
165
+ watch(() => globals.state.position, (newPosition) => {
165
166
  // get the current route
166
167
  const currentRoute = { ...router.currentRoute.value };
167
168
 
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <Feed
3
- v-model:sort="store.marketplace.state.sort"
4
- v-model:filter="store.marketplace.state.filter"
3
+ v-model:sort="marketplace.state.sort"
4
+ v-model:filter="marketplace.state.filter"
5
5
  :search="true"
6
6
  :showLoadMore="false"
7
7
  :states="{
@@ -20,7 +20,7 @@
20
20
  categories: route.query.categories,
21
21
  prices: route.query.prices,
22
22
  delivery: route.query.delivery,
23
- location: store.globals.state.position?.location,
23
+ location: globals.state.position?.location,
24
24
  contain: ['products'],
25
25
  }"
26
26
  v-slot="{
@@ -43,16 +43,16 @@
43
43
  <script setup>
44
44
  import { computed,reactive,ref, onMounted,watch } from 'vue'
45
45
  import { useRoute } from 'vue-router'
46
- import { useStore } from '@/store'
47
46
 
48
47
  import * as organization from '@pf/src/modules/organizations/store/organizations'
48
+ import * as marketplace from '@pf/src/modules/products/store/marketplace';
49
+ import * as globals from '@pf/src/modules/globals/views/store/globals'
49
50
 
50
51
  import Feed from '@pf/src/components/Feed/Feed.vue'
51
52
 
52
53
  import CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'
53
54
 
54
55
  const route = useRoute()
55
- const store = useStore()
56
56
  </script>
57
57
 
58
58
  <style lang="scss">
@@ -76,7 +76,7 @@
76
76
  :user="auth.state.access"
77
77
  class="h-max"
78
78
  @click.capture="$router.push({
79
- name: 'Product Organization',
79
+ name: 'Organization_Product',
80
80
  params: {
81
81
  _id: route.params._id,
82
82
  product: product._id
@@ -108,7 +108,7 @@
108
108
  // Accessing router and store
109
109
  import * as auth from '@pf/src/modules/auth/views/store/auth';
110
110
  import * as products from '@pf/src/modules/products/store/products';
111
- import * as marketplace from '@pf/src/modules/marketplace/store/marketplace';
111
+ import * as marketplace from '@pf/src/modules/products/store/marketplace';
112
112
  import * as categories from '@pf/src/modules/products/store/categories';
113
113
 
114
114
  const route = useRoute()
@@ -89,7 +89,7 @@ const route = useRoute()
89
89
  const router = useRouter()
90
90
 
91
91
  import * as categories from '@pf/src/modules/products/store/categories';
92
- import * as marketplace from '@pf/src/modules/marketplace/store/marketplace';
92
+ import * as marketplace from '@pf/src/modules/products/store/marketplace';
93
93
 
94
94
  let options = {
95
95
  status: 'published'
@@ -7,7 +7,7 @@
7
7
  :label="t('categoriesTitle')"
8
8
  class="cursor-pointer pd-thin t-semi radius-extra uppercase p-medium"
9
9
  :class="[
10
- store.marketplace.state.filter.categories.length > 0 ? 'bg-white t-black' : ''
10
+ marketplace.state.filter.categories.length > 0 ? 'bg-white t-black' : ''
11
11
  ]"
12
12
  >
13
13
  <div class="w-100 h-100 radius-semi o-hidden bg-black">
@@ -17,8 +17,8 @@
17
17
  name="categories"
18
18
  :value="category.url"
19
19
  class="cursor-pointer w-100 bg-black t-white radius-small pd-small"
20
- :radio="store.marketplace.state.filter.categories"
21
- @update:radio="event => store.marketplace.state.filter.categories = event"
20
+ :radio="marketplace.state.filter.categories"
21
+ @update:radio="event => marketplace.state.filter.categories = event"
22
22
  />
23
23
  </div>
24
24
  </Dropdown>
@@ -28,7 +28,7 @@
28
28
  :label="t('filters.price.title')"
29
29
  class="cursor-pointer pd-thin t-semi radius-extra uppercase p-medium"
30
30
  :class="[
31
- store.marketplace.state.filter.prices.length > 0 ? 'bg-white t-black' : ''
31
+ marketplace.state.filter.prices.length > 0 ? 'bg-white t-black' : ''
32
32
  ]"
33
33
  >
34
34
  <div class="w-100 h-100 radius-semi o-hidden bg-black">
@@ -38,8 +38,8 @@
38
38
  name="prices"
39
39
  :value="price.value"
40
40
  class="cursor-pointer w-100 mn-t-small bg-black t-white radius-small pd-small"
41
- :radio="store.marketplace.state.filter.prices"
42
- @update:radio="event => store.marketplace.state.filter.prices = event"
41
+ :radio="marketplace.state.filter.prices"
42
+ @update:radio="event => marketplace.state.filter.prices = event"
43
43
  />
44
44
  </div>
45
45
  </Dropdown>
@@ -49,7 +49,7 @@
49
49
  id="fitlerDelivery"
50
50
  class="cursor-pointer pd-thin t-semi radius-extra uppercase p-medium"
51
51
  :class="[
52
- store.marketplace.state.filter.delivery.length > 0 ? 'bg-white t-black' : ''
52
+ marketplace.state.filter.delivery.length > 0 ? 'bg-white t-black' : ''
53
53
  ]"
54
54
  >
55
55
  <div class="w-100 h-100 radius-semi o-hidden bg-black">
@@ -59,8 +59,8 @@
59
59
  name="prices"
60
60
  :value="delivery.value"
61
61
  class="cursor-pointer w-100 mn-t-small bg-black t-white radius-small pd-small"
62
- :radio="store.marketplace.state.filter.delivery"
63
- @update:radio="event => store.marketplace.state.filter.delivery = event"
62
+ :radio="marketplace.state.filter.delivery"
63
+ @update:radio="event => marketplace.state.filter.delivery = event"
64
64
  />
65
65
  </div>
66
66
  </Dropdown>
@@ -72,18 +72,15 @@
72
72
  <script setup>
73
73
  import { computed, onMounted, ref } from 'vue'
74
74
 
75
-
76
75
  import Checkbox from "@pf/src/components/Checkbox/Checkbox.vue";
77
76
  import Radio from "@pf/src/components/Radio/Radio.vue";
78
77
  import Select from "@pf/src/components/Select/Select.vue";
79
78
  import Dropdown from "@pf/src/components/Dropdown/Dropdown.vue";
80
79
 
81
- import { useStore } from '@/store'
82
80
  import { useI18n } from 'vue-i18n'
83
81
 
84
- const store = useStore()
85
-
86
- const categories = computed(() => store.categories.state.all)
82
+ import * as marketplace from '@pf/src/modules/products/store/marketplace';
83
+ import * as categories from '@pf/src/modules/products/store/categories';
87
84
 
88
85
  const delivery = [
89
86
  { label: 'Pickup', value: 'pickup' },
@@ -148,7 +145,7 @@
148
145
  status: 'published'
149
146
  }
150
147
 
151
- await store.categories.actions.fetchCategories(options)
148
+ await categories.actions.fetchCategories(options)
152
149
  })
153
150
 
154
151
 
@@ -108,7 +108,7 @@
108
108
  <button
109
109
  v-for="(preset,index) in presets"
110
110
  :key="preset"
111
- @click.stop="router.push({name: 'Product Recommmendation', query: {mood: preset}})"
111
+ @click.stop="router.push({name: 'ProductRecommmendation', query: {mood: preset}})"
112
112
  class="
113
113
  uppercase
114
114
  pd-thin
@@ -18,7 +18,7 @@
18
18
  <CardProduct
19
19
  v-else
20
20
  @click="$router.push({
21
- name: 'Product Organization',
21
+ name: 'Organization_Product',
22
22
  params: {
23
23
  _id: value.organization,
24
24
  product: value._id
@@ -1,5 +1,5 @@
1
- module.exports = (mongoose) => {
2
- const СategorySchema = new mongoose.Schema({
1
+ module.exports = (db) => {
2
+ const СategorySchema = new db.mongoose.Schema({
3
3
  name: {
4
4
  type: String,
5
5
  required: true,
@@ -69,7 +69,7 @@ module.exports = (mongoose) => {
69
69
 
70
70
  СategorySchema.index({ 'owner.target': 1, 'creator.target': 1});
71
71
 
72
- const Сategory = mongoose.model('Сategory', СategorySchema, 'categories');
72
+ const Сategory = db.mongoose.model('Сategory', СategorySchema, 'categories');
73
73
 
74
74
  return Сategory;
75
75
  }
@@ -1,5 +1,5 @@
1
- module.exports = (mongoose) => {
2
- const ProductSchema = new mongoose.Schema({
1
+ module.exports = (db) => {
2
+ const ProductSchema = new db.mongoose.Schema({
3
3
  status: {type: String},
4
4
  name: {type: String},
5
5
  category: {type: Array},
@@ -19,7 +19,7 @@ module.exports = (mongoose) => {
19
19
  prices: { type: Array},
20
20
  //
21
21
  variants: [{
22
- _id: { type: mongoose.Schema.Types.ObjectId, auto: true },
22
+ _id: { type: db.mongoose.Schema.Types.ObjectId, auto: true },
23
23
  name: { type: String },
24
24
  price:{ type: Number },
25
25
  options: [{
@@ -30,7 +30,7 @@ module.exports = (mongoose) => {
30
30
  }],
31
31
  ingredients: [{
32
32
  _id: {
33
- type: mongoose.Schema.Types.ObjectId,
33
+ type: db.mongoose.Schema.Types.ObjectId,
34
34
  ref: 'Product',
35
35
  },
36
36
  price: {
@@ -65,11 +65,11 @@ module.exports = (mongoose) => {
65
65
  }],
66
66
  // Refactor
67
67
  owner: {
68
- type: mongoose.Schema.Types.ObjectId,
68
+ type: db.mongoose.Schema.Types.ObjectId,
69
69
  ref: 'User',
70
70
  },
71
71
  organization: {
72
- type: mongoose.Schema.Types.ObjectId,
72
+ type: db.mongoose.Schema.Types.ObjectId,
73
73
  ref: 'Organization',
74
74
  },
75
75
  }, {
@@ -83,7 +83,7 @@ module.exports = (mongoose) => {
83
83
  ProductSchema.index({ price: 1 }); // Создаем индекс
84
84
 
85
85
 
86
- const Product = mongoose.model('Product', ProductSchema);
86
+ const Product = db.mongoose.model('Product', ProductSchema);
87
87
 
88
88
  return Product;
89
89
  }