@ozdao/prometheus-framework 0.2.251 → 0.2.253

Sign up to get free protection for your applications and to get access to all the features.
Files changed (450) 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/community.server.js +38 -21
  6. package/dist/community.server.mjs +38 -21
  7. package/dist/events.server.js +38 -18
  8. package/dist/events.server.mjs +38 -17
  9. package/dist/gallery.server.js +17 -4
  10. package/dist/gallery.server.mjs +17 -4
  11. package/dist/organizations.server.js +43 -26
  12. package/dist/organizations.server.mjs +43 -26
  13. package/dist/products.server.js +49 -23
  14. package/dist/products.server.mjs +49 -22
  15. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  17. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  19. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
  21. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +15 -3
  24. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
  25. package/dist/prometheus-framework/src/modules/auth/auth.client.js +16 -4
  26. package/dist/prometheus-framework/src/modules/auth/auth.client.js.map +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs +95 -0
  28. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs.map +1 -0
  29. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js +95 -0
  30. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js.map +1 -0
  31. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
  32. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
  33. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  37. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs +284 -0
  38. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -0
  39. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +284 -0
  40. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -0
  41. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs +2 -0
  42. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs.map +1 -0
  43. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js +2 -0
  44. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js.map +1 -0
  45. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +85 -0
  46. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs.map +1 -0
  47. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +85 -0
  48. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -0
  49. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +176 -0
  50. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -0
  51. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js +176 -0
  52. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -0
  53. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +2 -0
  54. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +1 -0
  55. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +2 -0
  56. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +1 -0
  57. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs +114 -0
  64. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.map +1 -0
  65. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +114 -0
  66. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -0
  67. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs +72 -0
  68. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs.map +1 -0
  69. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js +72 -0
  70. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js.map +1 -0
  71. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +97 -0
  72. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -0
  73. package/dist/prometheus-framework/src/modules/auth/views/router/users.js +97 -0
  74. package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -0
  75. package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs +95 -0
  76. package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs.map +1 -0
  77. package/dist/prometheus-framework/src/modules/auth/views/store/users.js +95 -0
  78. package/dist/prometheus-framework/src/modules/auth/views/store/users.js.map +1 -0
  79. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +32 -2
  80. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs.map +1 -1
  81. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +32 -2
  82. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js.map +1 -1
  83. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +2 -2
  84. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs.map +1 -1
  85. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +2 -2
  86. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js.map +1 -1
  87. package/dist/prometheus-framework/src/modules/community/community.client.cjs +42 -7
  88. package/dist/prometheus-framework/src/modules/community/community.client.cjs.map +1 -1
  89. package/dist/prometheus-framework/src/modules/community/community.client.js +59 -24
  90. package/dist/prometheus-framework/src/modules/community/community.client.js.map +1 -1
  91. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
  94. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +2 -2
  95. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +3 -3
  96. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
  97. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
  98. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  99. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +68 -70
  102. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
  103. package/dist/prometheus-framework/src/modules/community/router/blogposts.js +68 -70
  104. package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
  105. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
  110. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
  112. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  113. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
  117. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
  119. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
  122. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  123. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +26 -3
  124. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs.map +1 -1
  125. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +27 -4
  126. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js.map +1 -1
  127. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs +2 -2
  128. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs.map +1 -1
  129. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js +2 -2
  130. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js.map +1 -1
  131. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
  132. package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
  133. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
  134. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
  135. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
  136. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
  137. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
  138. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +2 -2
  139. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  141. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
  142. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  143. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  145. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
  147. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  149. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +4 -4
  150. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
  151. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
  152. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
  153. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +4 -4
  154. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +1 -1
  155. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +4 -4
  156. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +1 -1
  157. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  159. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  161. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +4 -1
  162. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs.map +1 -1
  163. package/dist/prometheus-framework/src/modules/orders/orders.client.js +4 -1
  164. package/dist/prometheus-framework/src/modules/orders/orders.client.js.map +1 -1
  165. package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs +63 -0
  166. package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs.map +1 -0
  167. package/dist/prometheus-framework/src/modules/orders/store/testimonials.js +63 -0
  168. package/dist/prometheus-framework/src/modules/orders/store/testimonials.js.map +1 -0
  169. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -2
  170. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
  171. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
  172. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +1 -1
  173. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs.map +1 -1
  175. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
  177. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
  181. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  182. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
  183. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +5 -5
  184. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
  185. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
  186. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
  187. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
  188. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
  189. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  190. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
  191. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  192. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  193. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
  194. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  195. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +3 -3
  196. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  197. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
  199. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +4 -4
  200. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs.map +1 -1
  201. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +4 -4
  202. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
  203. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
  204. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  205. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +60 -11
  206. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs.map +1 -1
  207. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +95 -46
  208. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js.map +1 -1
  209. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +6 -10
  210. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
  211. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +8 -12
  212. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
  213. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +786 -773
  214. package/dist/prometheus-framework/src/modules/pages/pages.client.js +786 -773
  215. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
  216. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
  217. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
  220. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
  221. package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +5 -7
  222. package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs.map +1 -1
  223. package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -3
  224. package/dist/prometheus-framework/src/modules/pages/views/store/pages.js.map +1 -1
  225. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  227. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
  229. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  231. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs +178 -0
  232. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs.map +1 -0
  233. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js +178 -0
  234. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js.map +1 -0
  235. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +62 -0
  236. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -0
  237. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +62 -0
  238. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -0
  239. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
  242. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  243. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
  244. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  245. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
  246. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  247. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +3 -3
  248. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -3
  249. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
  250. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  251. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
  252. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
  253. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +3 -3
  254. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  255. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
  257. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  258. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
  259. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +156 -0
  260. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs.map +1 -0
  261. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +157 -0
  262. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js.map +1 -0
  263. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs.map +1 -1
  265. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +1 -1
  266. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js.map +1 -1
  267. package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs +128 -0
  268. package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs.map +1 -0
  269. package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js +128 -0
  270. package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js.map +1 -0
  271. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +2 -2
  272. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs.map +1 -1
  273. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +2 -2
  274. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
  275. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  277. package/dist/prometheus-framework/src/modules/products/products.client.cjs +74 -7
  278. package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
  279. package/dist/prometheus-framework/src/modules/products/products.client.js +114 -47
  280. package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
  281. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs +46 -0
  282. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs.map +1 -0
  283. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js +46 -0
  284. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js.map +1 -0
  285. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +79 -36
  286. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs.map +1 -1
  287. package/dist/prometheus-framework/src/modules/products/router/products.router.js +78 -35
  288. package/dist/prometheus-framework/src/modules/products/router/products.router.js.map +1 -1
  289. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs +57 -0
  290. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs.map +1 -0
  291. package/dist/prometheus-framework/src/modules/products/store/marketplace.js +57 -0
  292. package/dist/prometheus-framework/src/modules/products/store/marketplace.js.map +1 -0
  293. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +3 -3
  294. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  295. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  297. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs.map +1 -1
  299. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  300. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
  301. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +3 -3
  302. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs.map +1 -1
  303. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +3 -3
  304. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js.map +1 -1
  305. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +2 -2
  306. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs.map +1 -1
  307. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +2 -2
  308. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
  309. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
  310. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
  311. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
  312. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  313. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
  315. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  317. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
  318. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  319. package/package.json +1 -1
  320. package/src/builder/webpack/webpack.config.client.js +2 -2
  321. package/src/builder/webpack/webpack.config.server.js +1 -1
  322. package/src/builder/webpack/webpack.config.spa.js +1 -1
  323. package/src/builder/webpack/webpack.config.ssr.js +1 -1
  324. package/src/modules/auth/auth.client.js +16 -3
  325. package/src/modules/auth/auth.server.js +22 -1
  326. package/src/modules/{users → auth/controllers}/routes/users.routes.js +1 -1
  327. package/src/modules/auth/controllers/services/auth.service.js +0 -1
  328. package/src/modules/{users → auth/views}/components/pages/Profile.vue +1 -1
  329. package/src/modules/{users → auth/views}/components/pages/ProfileEdit.vue +2 -2
  330. package/src/modules/{users → auth/views}/components/sections/FeaturedUsers.vue +2 -2
  331. package/src/modules/auth/views/router/users.js +79 -0
  332. package/src/modules/backoffice/backoffice.client.js +53 -11
  333. package/src/modules/backoffice/router/backoffice.js +29 -2
  334. package/src/modules/community/community.client.js +56 -10
  335. package/src/modules/community/community.server.js +35 -14
  336. package/src/modules/community/models/comment.model.js +7 -7
  337. package/src/modules/community/models/reaction.model.js +5 -5
  338. package/src/modules/community/router/blogposts.js +55 -57
  339. package/src/modules/events/events.server.js +37 -16
  340. package/src/modules/events/models/ticket.model.js +6 -6
  341. package/src/modules/gallery/gallery.client.js +44 -8
  342. package/src/modules/gallery/gallery.server.js +28 -9
  343. package/src/modules/gallery/router/gallery.router.js +2 -2
  344. package/src/modules/globals/globals.client.js +15 -14
  345. package/src/modules/governance/controllers/factories/initiatives.controller.js +94 -0
  346. package/src/modules/governance/controllers/factories/tasks.controller.js +94 -0
  347. package/src/modules/governance/controllers/factories/votes.controller.js +68 -0
  348. package/src/modules/governance/controllers/factories/votings.controller.js +112 -0
  349. package/src/modules/governance/controllers/routes/initiatives.routes.js +13 -0
  350. package/src/modules/governance/controllers/routes/tasks.routes.js +13 -0
  351. package/src/modules/governance/controllers/routes/votes.routes.js +11 -0
  352. package/src/modules/governance/controllers/routes/votings.routes.js +14 -0
  353. package/src/modules/governance/models/initiative.model.js +25 -0
  354. package/src/modules/governance/models/task.model.js +21 -0
  355. package/src/modules/governance/models/vote.model.js +20 -0
  356. package/src/modules/governance/models/voting.model.js +22 -0
  357. package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +18 -0
  358. package/src/modules/governance/views/components/blocks/CardTaskItem.vue +19 -0
  359. package/src/modules/governance/views/components/blocks/CardVotingItem.vue +18 -0
  360. package/src/modules/governance/views/components/pages/Initiative.vue +22 -0
  361. package/src/modules/governance/views/components/pages/InitiativeCreate.vue +24 -0
  362. package/src/modules/governance/views/components/pages/Initiatives.vue +19 -0
  363. package/src/modules/governance/views/components/pages/Task.vue +23 -0
  364. package/src/modules/governance/views/components/pages/TaskCreate.vue +25 -0
  365. package/src/modules/governance/views/components/pages/Tasks.vue +19 -0
  366. package/src/modules/governance/views/components/pages/Voting.vue +30 -0
  367. package/src/modules/governance/views/components/pages/VotingCreate.vue +25 -0
  368. package/src/modules/governance/views/components/pages/Votings.vue +19 -0
  369. package/src/modules/governance/views/components/partials/RewardDisplay.vue +19 -0
  370. package/src/modules/governance/views/components/partials/VoteDisplay.vue +21 -0
  371. package/src/modules/governance/views/components/partials/VotingResult.vue +21 -0
  372. package/src/modules/governance/views/components/sections/FormInitiativeDetails.vue +37 -0
  373. package/src/modules/governance/views/components/sections/FormTaskDetails.vue +41 -0
  374. package/src/modules/governance/views/components/sections/FormVotingDetails.vue +37 -0
  375. package/src/modules/governance/views/components/sections/VoteForm.vue +29 -0
  376. package/src/modules/governance/views/store/initiatives.js +102 -0
  377. package/src/modules/governance/views/store/tasks.js +104 -0
  378. package/src/modules/governance/views/store/votes.js +115 -0
  379. package/src/modules/governance/views/store/votings.js +81 -0
  380. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  381. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
  382. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  383. package/src/modules/orders/orders.client.js +4 -1
  384. package/src/modules/orders/orders.server.js +1 -0
  385. package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
  386. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  387. package/src/modules/organizations/components/pages/Department.vue +1 -1
  388. package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
  389. package/src/modules/organizations/components/pages/Members.vue +1 -1
  390. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  391. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  392. package/src/modules/organizations/controllers/organizations.controller.js +0 -2
  393. package/src/modules/organizations/models/department.model.js +7 -7
  394. package/src/modules/organizations/models/membership.model.js +5 -5
  395. package/src/modules/organizations/organizations.client.js +71 -16
  396. package/src/modules/organizations/organizations.server.js +43 -18
  397. package/src/modules/organizations/router/organizations.js +6 -13
  398. package/src/modules/pages/views/store/pages.js +1 -3
  399. package/src/modules/{marketplace → products}/components/layouts/Marketplace.vue +19 -19
  400. package/src/modules/{marketplace → products}/components/pages/Catalog.vue +0 -2
  401. package/src/modules/products/components/pages/Products.vue +2 -2
  402. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  403. package/src/modules/{marketplace → products}/components/sections/Filters.vue +12 -15
  404. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  405. package/src/modules/products/components/sections/MenuSection.vue +8 -9
  406. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  407. package/src/modules/products/models/category.model.js +3 -3
  408. package/src/modules/products/models/product.model.js +7 -7
  409. package/src/modules/products/products.client.js +95 -27
  410. package/src/modules/products/products.server.js +47 -16
  411. package/src/modules/products/router/marketplace.router.js +38 -0
  412. package/src/modules/products/router/products.router.js +72 -32
  413. package/src/modules/spots/components/layouts/Spots.vue +1 -1
  414. package/src/modules/spots/components/pages/Map.vue +1 -1
  415. package/src/modules/spots/components/pages/Spot.vue +1 -1
  416. package/src/modules/backoffice/router/admin.js +0 -51
  417. package/src/modules/landing/components/pages/404.vue +0 -3
  418. package/src/modules/landing/components/pages/Farming.vue +0 -226
  419. package/src/modules/landing/components/pages/Governance.vue +0 -144
  420. package/src/modules/landing/components/pages/Home.vue +0 -51
  421. package/src/modules/landing/components/pages/Hotel.vue +0 -43
  422. package/src/modules/landing/router/landing.js +0 -39
  423. package/src/modules/legal/components/pages/Legal.vue +0 -62
  424. package/src/modules/legal/components/pages/legal/Cookies.vue +0 -370
  425. package/src/modules/legal/components/pages/legal/EULA.vue +0 -2145
  426. package/src/modules/legal/components/pages/legal/Privacy.vue +0 -4284
  427. package/src/modules/legal/components/pages/legal/Terms.vue +0 -1283
  428. package/src/modules/legal/legal.client.js +0 -18
  429. package/src/modules/legal/router/legal.js +0 -59
  430. package/src/modules/marketplace/router/marketplace.js +0 -55
  431. package/src/modules/users/router/users.js +0 -90
  432. package/src/modules/users/users.client.js +0 -22
  433. package/src/modules/users/users.server.js +0 -13
  434. /package/src/modules/{users → auth/controllers}/middlewares/visitor.logger.js +0 -0
  435. /package/src/modules/{users/controllers/users.controller.js → auth/controllers/services/users.service.js} +0 -0
  436. /package/src/modules/{users → auth}/models/request.model.js +0 -0
  437. /package/src/modules/{users → auth}/models/user.model.js +0 -0
  438. /package/src/modules/{users → auth}/models/visitor.model.js +0 -0
  439. /package/src/modules/{users → auth/views}/components/blocks/CardUser.vue +0 -0
  440. /package/src/modules/{users → auth/views}/components/pages/ProfileBlogposts.vue +0 -0
  441. /package/src/modules/{users → auth/views}/components/pages/ProfileComments.vue +0 -0
  442. /package/src/modules/{users → auth/views}/components/pages/ProfileLikes.vue +0 -0
  443. /package/src/modules/{users → auth/views}/components/sections/ProfileCompletion.vue +0 -0
  444. /package/src/modules/{users → auth/views}/router/account.js +0 -0
  445. /package/src/modules/{users → auth/views}/store/users.js +0 -0
  446. /package/src/modules/{projects/controller → governance/controllers/factories}/projects.controller.js +0 -0
  447. /package/src/modules/{projects → governance/controllers}/routes/projects.routes.js +0 -0
  448. /package/src/modules/{projects → governance}/models/project.model.js +0 -0
  449. /package/src/modules/{projects → governance/views}/store/projects.js +0 -0
  450. /package/src/modules/{marketplace → products}/store/marketplace.js +0 -0
@@ -1,14 +1,14 @@
1
1
  const accessesSchema = require('./schemas/accesses.schema.js');
2
2
 
3
- module.exports = (mongoose) => {
3
+ module.exports = (db) => {
4
4
  // Схема отдела
5
- const departmentSchema = new mongoose.Schema({
5
+ const departmentSchema = new db.mongoose.Schema({
6
6
  owner: {
7
- type: mongoose.Schema.Types.ObjectId,
7
+ type: db.mongoose.Schema.Types.ObjectId,
8
8
  ref: 'User',
9
9
  },
10
10
  organization: {
11
- type: mongoose.Schema.Types.ObjectId,
11
+ type: db.mongoose.Schema.Types.ObjectId,
12
12
  ref: 'Organization',
13
13
  },
14
14
  profile: {
@@ -37,7 +37,7 @@ module.exports = (mongoose) => {
37
37
  members: [
38
38
  {
39
39
  user: {
40
- type: mongoose.Schema.Types.ObjectId,
40
+ type: db.mongoose.Schema.Types.ObjectId,
41
41
  ref: 'User',
42
42
  },
43
43
  position: {
@@ -48,7 +48,7 @@ module.exports = (mongoose) => {
48
48
  ],
49
49
  subdepartments: [
50
50
  {
51
- type: mongoose.Schema.Types.ObjectId,
51
+ type: db.mongoose.Schema.Types.ObjectId,
52
52
  ref: 'Department',
53
53
  },
54
54
  ],
@@ -58,7 +58,7 @@ module.exports = (mongoose) => {
58
58
 
59
59
  departmentSchema.index({ organization: 1 })
60
60
 
61
- const Department = mongoose.model('Department', departmentSchema);
61
+ const Department = db.mongoose.model('Department', departmentSchema);
62
62
 
63
63
  return Department
64
64
  }
@@ -1,7 +1,7 @@
1
- module.exports = (mongoose) => {
2
- const MembershipSchema = new mongoose.Schema({
1
+ module.exports = (db) => {
2
+ const MembershipSchema = new db.mongoose.Schema({
3
3
  user: {
4
- type: mongoose.Schema.Types.ObjectId,
4
+ type: db.mongoose.Schema.Types.ObjectId,
5
5
  ref: 'User',
6
6
  required: true,
7
7
  },
@@ -20,7 +20,7 @@ module.exports = (mongoose) => {
20
20
  default: 'subscriber'
21
21
  },
22
22
  target: { // заменяем 'organization' на 'target', так как это может быть или User, или Organization
23
- type: mongoose.Schema.Types.ObjectId,
23
+ type: db.mongoose.Schema.Types.ObjectId,
24
24
  ref: function (value) {
25
25
  if (this.type === 'user') return 'User';
26
26
  if (this.type === 'organization') return 'Organization';
@@ -33,7 +33,7 @@ module.exports = (mongoose) => {
33
33
 
34
34
  MembershipSchema.index({ user: 1, target: 1});
35
35
 
36
- const Membership = mongoose.model('Membership', MembershipSchema);
36
+ const Membership = db.mongoose.model('Membership', MembershipSchema);
37
37
 
38
38
  return Membership;
39
39
  }
@@ -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;
@@ -1,9 +1,7 @@
1
1
  import { reactive, watch } from "vue";
2
- import axios from "axios";
3
2
  import { setError } from "@pf/src/modules/globals/views/store/globals";
4
3
 
5
- const clientUrl = process.env.API_URL;
6
- const $axios = axios.create({ baseURL: clientUrl });
4
+ import $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';
7
5
 
8
6
  const state = reactive({
9
7
  all: [],
@@ -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,15 @@
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 categories from '@pf/src/modules/products/store/categories';
52
+
52
53
  // Accessing router and store
53
- const store = useStore()
54
54
  const route = useRoute()
55
55
  const router = useRouter()
56
56
 
@@ -90,27 +90,27 @@
90
90
  if (route.query) {
91
91
  const query = route.query;
92
92
 
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(',') : [];
93
+ marketplace.state.filter.selected.categories = query.categories ? query.categories.split(',') : [];
94
+ marketplace.state.filter.selected.prices = query.prices ? query.prices.split(',') : [];
95
+ marketplace.state.filter.selected.delivery = query.delivery ? query.delivery.split(',') : [];
96
96
  }
97
97
 
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
98
+ if (route.query.sortParam) marketplace.state.sort.param = route.query.sortParam
99
+ if (route.query.sortOrder) marketplace.state.sort.order = route.query.sortOrder
100
100
 
101
101
  onMounted(async () => {
102
102
  let options = {
103
103
  status: 'published'
104
104
  }
105
105
 
106
- let categoriesFilter = await store.categories.actions.fetchCategories(options);
106
+ let categoriesFilter = await categories.actions.fetchCategories(options);
107
107
 
108
108
  categoriesFilter = categoriesFilter.map(category => ({
109
109
  value: category.url,
110
110
  label: category.name
111
111
  }));
112
112
 
113
- const index = store.marketplace.state.filter.options.findIndex(option => option.value === 'categories');
113
+ const index = marketplace.state.filter.options.findIndex(option => option.value === 'categories');
114
114
 
115
115
  const categoryOption = {
116
116
  title: 'Categories',
@@ -119,13 +119,13 @@
119
119
  };
120
120
 
121
121
  if (index !== -1) {
122
- store.marketplace.state.filter.options[index] = categoryOption;
122
+ marketplace.state.filter.options[index] = categoryOption;
123
123
  } else {
124
- store.marketplace.state.filter.options.unshift(categoryOption);
124
+ marketplace.state.filter.options.unshift(categoryOption);
125
125
  }
126
126
  })
127
127
 
128
- watch(() => store.marketplace.state.sort, (newSortValue, oldSortValue) => {
128
+ watch(() => marketplace.state.sort, (newSortValue, oldSortValue) => {
129
129
  let query = { ...route.query}
130
130
 
131
131
  query.sortParam = newSortValue.param
@@ -136,7 +136,7 @@
136
136
  }, { deep: true });
137
137
 
138
138
 
139
- watch(() => store.marketplace.state.filter.selected, (newFilterValue, oldFilterValue) => {
139
+ watch(() => marketplace.state.filter.selected, (newFilterValue, oldFilterValue) => {
140
140
  // Переводим фильтр в формат query
141
141
  const query = { ...route.query };
142
142
 
@@ -161,7 +161,7 @@
161
161
  router.replace({ query });
162
162
  }, { deep: true })
163
163
 
164
- watch(() => store.globals.state.position, (newPosition) => {
164
+ watch(() => globals.state.position, (newPosition) => {
165
165
  // get the current route
166
166
  const currentRoute = { ...router.currentRoute.value };
167
167
 
@@ -43,7 +43,6 @@
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'
49
48
 
@@ -52,7 +51,6 @@
52
51
  import CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'
53
52
 
54
53
  const route = useRoute()
55
- const store = useStore()
56
54
  </script>
57
55
 
58
56
  <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
@@ -11,7 +11,7 @@
11
11
 
12
12
  <ul v-else class="gap-thin grid-container">
13
13
  <router-link :to="getMarketplaceLink([category.url])"
14
- v-for="(category,index) in store.categories.state.all.slice(0,5)"
14
+ v-for="(category,index) in categories.state.all.slice(0,5)"
15
15
  :key="category"
16
16
  class="cursor-pointer hover-scale-0 flex-v-center flex-h-center flex-nowrap flex-row flex bg-light radius-big pd-medium grid-item"
17
17
  >
@@ -22,7 +22,7 @@
22
22
  autoplay loop muted
23
23
  >
24
24
  <source
25
- src="/output.webm"
25
+ :src="'/output.webm'"
26
26
  type="video/webm"
27
27
  >
28
28
  </video>
@@ -68,14 +68,13 @@
68
68
  import Loader from '@pf/src/components/Loader/Loader.vue'
69
69
 
70
70
  import { useRouter } from 'vue-router'
71
- import { useStore } from '@/store';
72
71
  import { useI18n } from 'vue-i18n'
73
72
 
74
-
75
- const store = useStore()
73
+ import * as categories from '@pf/src/modules/products/store/categories';
74
+ import * as products from '@pf/src/modules/products/store/products';
75
+
76
76
  const router = useRouter()
77
77
 
78
-
79
78
  const text = {
80
79
  locale: 'en',
81
80
  messages: {
@@ -88,7 +87,7 @@
88
87
  }
89
88
  }
90
89
 
91
- store.categories.state.all.forEach( category => {
90
+ categories.state.all.forEach( category => {
92
91
  category.localization.forEach( localization => {
93
92
  text.messages[localization.locale].categories.push(localization.text)
94
93
  })
@@ -100,8 +99,8 @@
100
99
  const menu = ref(false)
101
100
 
102
101
  onMounted( async () => {
103
- countProduct.value = await store.products.actions.read({count: true})
104
- await store.categories.actions.fetchCategories()
102
+ countProduct.value = await products.actions.read({count: true})
103
+ await categories.actions.fetchCategories()
105
104
  menu.value = true
106
105
  })
107
106
 
@@ -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