@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeaturedUsers.vue.js","sources":["../../../../../../../../src/modules/auth/views/components/sections/FeaturedUsers.vue"],"sourcesContent":["<template>\n <div class=\"o-hidden w-100\">\n <div class=\"flex-center flex w-100\">\n <h2 class=\"t-center h2 w-max-50 mn-b-big\">\n Ask the hundreds shaping your entertainment for decades\n </h2>\n </div>\n <Marquee\n class=\"mn-b-thin\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'normal'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(0,6)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <Marquee\n class=\"mn-b-thin\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'reverse'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(7,14)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <Marquee\n class=\"mn-b-big\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'normal'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(15,22)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <p class=\"w-m-33r mn-r-auto mn-l-auto t-center mn-b-small p-big\">\n Together, we're shaping the future of the globals music community.\n </p>\n <router-link :to=\"{ name: 'Sign In' }\" class=\"bg-black mn-r-auto mn-l-auto t-medium t-white button\">\n Join Now\n </router-link>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted } from 'vue';\n\nimport * as users from '@pf/src/modules/auth/views/store/users'\n\nimport Marquee from '@pf/src/components/Marquee/Marquee.vue'\n\nimport CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue'\n\nconst usersList = ref([])\n\nonMounted(async() => {\n usersList.value = await users.actions.read({\n limit: 25\n })\n});\n</script>\n\n<style lang=\"scss\">\n .selector {\n flex-grow: 1;\n flex-basis: 0;\n min-width: 0;\n }\n</style>\n"],"names":["users.actions"],"mappings":";;;;;;;;;;;;AAwFA,UAAM,YAAY,IAAI,EAAE;AAExB,cAAU,YAAW;AACnB,gBAAU,QAAQ,MAAMA,QAAc,KAAK;AAAA,QACzC,OAAO;AAAA,MACX,CAAG;AAAA,IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const _hoisted_1 = { class: "w-100 mn-b-semi radius-medium pd-medium bg-second t-black" };
5
+ const _hoisted_2 = { class: "mn-b-thin flex-v-center flex-nowrap flex" };
6
+ const _hoisted_3 = { class: "mn-l-thin uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin" };
7
+ const _hoisted_4 = { class: "w-100 h-2r pos-relative pd-nano bg-black radius-big" };
8
+ const _sfc_main = {
9
+ __name: "ProfileCompletion",
10
+ props: {
11
+ user: Object,
12
+ target: Object,
13
+ cta: Boolean,
14
+ percentage: Number,
15
+ text: String,
16
+ text_cta: String
17
+ },
18
+ setup(__props) {
19
+ const completionPercentage = vue.ref(0);
20
+ const calculateCompletion = (profileObject) => {
21
+ let totalProperties = 0;
22
+ let filledProperties = 0;
23
+ function recurse(obj) {
24
+ for (let key in obj) {
25
+ if (obj.hasOwnProperty(key)) {
26
+ if (obj[key] && typeof obj[key] === "object" && !Array.isArray(obj[key])) {
27
+ recurse(obj[key]);
28
+ } else {
29
+ totalProperties++;
30
+ if (obj[key] != null && obj[key] !== "") {
31
+ filledProperties++;
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+ recurse(profileObject);
38
+ return totalProperties === 0 ? 0 : Math.round(filledProperties / totalProperties * 100);
39
+ };
40
+ if (__props.target) completionPercentage.value = calculateCompletion(__props.target);
41
+ return (_ctx, _cache) => {
42
+ const _component_router_link = vue.resolveComponent("router-link");
43
+ return vue.openBlock(), vue.createElementBlock("section", _hoisted_1, [
44
+ vue.createElementVNode("div", _hoisted_2, [
45
+ vue.createElementVNode("h4", null, vue.toDisplayString(__props.text), 1),
46
+ vue.createElementVNode("h4", _hoisted_3, vue.toDisplayString(__props.percentage || completionPercentage.value) + "% ", 1),
47
+ __props.cta ? (vue.openBlock(), vue.createBlock(_component_router_link, {
48
+ key: 0,
49
+ to: {
50
+ name: "User Edit Profile",
51
+ params: { _id: __props.user }
52
+ },
53
+ class: "mn-l-auto uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin"
54
+ }, {
55
+ default: vue.withCtx(() => [
56
+ vue.createTextVNode(vue.toDisplayString(__props.text_cta), 1)
57
+ ]),
58
+ _: 1
59
+ }, 8, ["to"])) : vue.createCommentVNode("", true)
60
+ ]),
61
+ vue.createElementVNode("div", _hoisted_4, [
62
+ vue.createElementVNode("div", {
63
+ style: vue.normalizeStyle(`width: ${completionPercentage.value}%`),
64
+ class: "h-100 bg-second mn-b-thin radius-big"
65
+ }, null, 4)
66
+ ])
67
+ ]);
68
+ };
69
+ }
70
+ };
71
+ exports.default = _sfc_main;
72
+ //# sourceMappingURL=ProfileCompletion.vue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileCompletion.vue.cjs","sources":["../../../../../../../../src/modules/auth/views/components/sections/ProfileCompletion.vue"],"sourcesContent":["<template>\n <section class=\"w-100 mn-b-semi radius-medium pd-medium bg-second t-black\">\n <div class=\"mn-b-thin flex-v-center flex-nowrap flex\"> \n <h4>\n {{text}}\n </h4>\n\n <h4 class=\"mn-l-thin uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin\">\n {{ percentage || completionPercentage }}%\n </h4>\n\n <router-link\n v-if=\"cta\"\n :to=\"{\n name: 'User Edit Profile',\n params: { _id: user }\n }\"\n class=\"mn-l-auto uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin\"\n >\n {{text_cta}}\n </router-link>\n </div> \n\n <div class=\" w-100 h-2r pos-relative pd-nano bg-black radius-big\">\n <div :style=\"`width: ${completionPercentage}%`\"class=\"h-100 bg-second mn-b-thin radius-big\">\n </div>\n </div>\n \n </section>\n</template>\n\n<script setup>\nimport { ref, onMounted } from 'vue'\n\nconst { user, cta, target} = defineProps({\n user: Object,\n target: Object,\n cta: Boolean,\n percentage: Number,\n text: String,\n text_cta: String,\n})\n\nconst completionPercentage = ref(0)\n\nconst calculateCompletion = (profileObject) => {\n let totalProperties = 0;\n let filledProperties = 0;\n\n function recurse(obj) {\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n if (obj[key] && typeof obj[key] === 'object' && !Array.isArray(obj[key])) {\n recurse(obj[key]); // Recurse into nested objects\n } else {\n totalProperties++;\n if (obj[key] != null && obj[key] !== '') {\n filledProperties++;\n }\n }\n }\n }\n }\n\n recurse(profileObject);\n\n return (totalProperties === 0 ? 0 : Math.round((filledProperties / totalProperties) * 100));\n\n};\n\n\nif (target) completionPercentage.value = calculateCompletion(target)\n</script>\n\n<style scoped>\n</style>"],"names":["ref"],"mappings":";;;;;;;;;;;;;;;;;;AA2CA,UAAM,uBAAuBA,IAAG,IAAC,CAAC;AAElC,UAAM,sBAAsB,CAAC,kBAAkB;AAC3C,UAAI,kBAAkB;AACtB,UAAI,mBAAmB;AAEvB,eAAS,QAAQ,KAAK;AAClB,iBAAS,OAAO,KAAK;AACjB,cAAI,IAAI,eAAe,GAAG,GAAG;AACzB,gBAAI,IAAI,GAAG,KAAK,OAAO,IAAI,GAAG,MAAM,YAAY,CAAC,MAAM,QAAQ,IAAI,GAAG,CAAC,GAAG;AACtE,sBAAQ,IAAI,GAAG,CAAC;AAAA,YACpC,OAAuB;AACH;AACA,kBAAI,IAAI,GAAG,KAAK,QAAQ,IAAI,GAAG,MAAM,IAAI;AACrC;AAAA,cACH;AAAA,YACJ;AAAA,UACJ;AAAA,QACJ;AAAA,MACJ;AAED,cAAQ,aAAa;AAEvB,aAAQ,oBAAoB,IAAI,IAAI,KAAK,MAAO,mBAAmB,kBAAmB,GAAG;AAAA,IAE3F;AAGA,QAAI,QAAM,OAAE,sBAAqB,QAAQ,oBAAoB,QAAA,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,72 @@
1
+ import { ref, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, withCtx, createTextVNode, createCommentVNode, normalizeStyle } from "vue";
2
+ const _hoisted_1 = { class: "w-100 mn-b-semi radius-medium pd-medium bg-second t-black" };
3
+ const _hoisted_2 = { class: "mn-b-thin flex-v-center flex-nowrap flex" };
4
+ const _hoisted_3 = { class: "mn-l-thin uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin" };
5
+ const _hoisted_4 = { class: "w-100 h-2r pos-relative pd-nano bg-black radius-big" };
6
+ const _sfc_main = {
7
+ __name: "ProfileCompletion",
8
+ props: {
9
+ user: Object,
10
+ target: Object,
11
+ cta: Boolean,
12
+ percentage: Number,
13
+ text: String,
14
+ text_cta: String
15
+ },
16
+ setup(__props) {
17
+ const completionPercentage = ref(0);
18
+ const calculateCompletion = (profileObject) => {
19
+ let totalProperties = 0;
20
+ let filledProperties = 0;
21
+ function recurse(obj) {
22
+ for (let key in obj) {
23
+ if (obj.hasOwnProperty(key)) {
24
+ if (obj[key] && typeof obj[key] === "object" && !Array.isArray(obj[key])) {
25
+ recurse(obj[key]);
26
+ } else {
27
+ totalProperties++;
28
+ if (obj[key] != null && obj[key] !== "") {
29
+ filledProperties++;
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ recurse(profileObject);
36
+ return totalProperties === 0 ? 0 : Math.round(filledProperties / totalProperties * 100);
37
+ };
38
+ if (__props.target) completionPercentage.value = calculateCompletion(__props.target);
39
+ return (_ctx, _cache) => {
40
+ const _component_router_link = resolveComponent("router-link");
41
+ return openBlock(), createElementBlock("section", _hoisted_1, [
42
+ createElementVNode("div", _hoisted_2, [
43
+ createElementVNode("h4", null, toDisplayString(__props.text), 1),
44
+ createElementVNode("h4", _hoisted_3, toDisplayString(__props.percentage || completionPercentage.value) + "% ", 1),
45
+ __props.cta ? (openBlock(), createBlock(_component_router_link, {
46
+ key: 0,
47
+ to: {
48
+ name: "User Edit Profile",
49
+ params: { _id: __props.user }
50
+ },
51
+ class: "mn-l-auto uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin"
52
+ }, {
53
+ default: withCtx(() => [
54
+ createTextVNode(toDisplayString(__props.text_cta), 1)
55
+ ]),
56
+ _: 1
57
+ }, 8, ["to"])) : createCommentVNode("", true)
58
+ ]),
59
+ createElementVNode("div", _hoisted_4, [
60
+ createElementVNode("div", {
61
+ style: normalizeStyle(`width: ${completionPercentage.value}%`),
62
+ class: "h-100 bg-second mn-b-thin radius-big"
63
+ }, null, 4)
64
+ ])
65
+ ]);
66
+ };
67
+ }
68
+ };
69
+ export {
70
+ _sfc_main as default
71
+ };
72
+ //# sourceMappingURL=ProfileCompletion.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileCompletion.vue.js","sources":["../../../../../../../../src/modules/auth/views/components/sections/ProfileCompletion.vue"],"sourcesContent":["<template>\n <section class=\"w-100 mn-b-semi radius-medium pd-medium bg-second t-black\">\n <div class=\"mn-b-thin flex-v-center flex-nowrap flex\"> \n <h4>\n {{text}}\n </h4>\n\n <h4 class=\"mn-l-thin uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin\">\n {{ percentage || completionPercentage }}%\n </h4>\n\n <router-link\n v-if=\"cta\"\n :to=\"{\n name: 'User Edit Profile',\n params: { _id: user }\n }\"\n class=\"mn-l-auto uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin\"\n >\n {{text_cta}}\n </router-link>\n </div> \n\n <div class=\" w-100 h-2r pos-relative pd-nano bg-black radius-big\">\n <div :style=\"`width: ${completionPercentage}%`\"class=\"h-100 bg-second mn-b-thin radius-big\">\n </div>\n </div>\n \n </section>\n</template>\n\n<script setup>\nimport { ref, onMounted } from 'vue'\n\nconst { user, cta, target} = defineProps({\n user: Object,\n target: Object,\n cta: Boolean,\n percentage: Number,\n text: String,\n text_cta: String,\n})\n\nconst completionPercentage = ref(0)\n\nconst calculateCompletion = (profileObject) => {\n let totalProperties = 0;\n let filledProperties = 0;\n\n function recurse(obj) {\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n if (obj[key] && typeof obj[key] === 'object' && !Array.isArray(obj[key])) {\n recurse(obj[key]); // Recurse into nested objects\n } else {\n totalProperties++;\n if (obj[key] != null && obj[key] !== '') {\n filledProperties++;\n }\n }\n }\n }\n }\n\n recurse(profileObject);\n\n return (totalProperties === 0 ? 0 : Math.round((filledProperties / totalProperties) * 100));\n\n};\n\n\nif (target) completionPercentage.value = calculateCompletion(target)\n</script>\n\n<style scoped>\n</style>"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA2CA,UAAM,uBAAuB,IAAI,CAAC;AAElC,UAAM,sBAAsB,CAAC,kBAAkB;AAC3C,UAAI,kBAAkB;AACtB,UAAI,mBAAmB;AAEvB,eAAS,QAAQ,KAAK;AAClB,iBAAS,OAAO,KAAK;AACjB,cAAI,IAAI,eAAe,GAAG,GAAG;AACzB,gBAAI,IAAI,GAAG,KAAK,OAAO,IAAI,GAAG,MAAM,YAAY,CAAC,MAAM,QAAQ,IAAI,GAAG,CAAC,GAAG;AACtE,sBAAQ,IAAI,GAAG,CAAC;AAAA,YACpC,OAAuB;AACH;AACA,kBAAI,IAAI,GAAG,KAAK,QAAQ,IAAI,GAAG,MAAM,IAAI;AACrC;AAAA,cACH;AAAA,YACJ;AAAA,UACJ;AAAA,QACJ;AAAA,MACJ;AAED,cAAQ,aAAa;AAEvB,aAAQ,oBAAoB,IAAI,IAAI,KAAK,MAAO,mBAAmB,kBAAmB,GAAG;AAAA,IAE3F;AAGA,QAAI,QAAM,OAAE,sBAAqB,QAAQ,oBAAoB,QAAA,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const auth_validation = require("../middlewares/auth.validation.cjs");
4
+ const users = {
5
+ path: "users",
6
+ name: "Users",
7
+ meta: {
8
+ title: {
9
+ en: "Users",
10
+ ru: "Пользователи"
11
+ }
12
+ },
13
+ children: [{
14
+ path: ":_id",
15
+ name: "User Profile",
16
+ meta: {
17
+ title: {
18
+ en: "Profile",
19
+ ru: "Профиль"
20
+ }
21
+ },
22
+ component: () => Promise.resolve().then(() => require(
23
+ /* webpackChunkName: "profile" */
24
+ "../components/pages/Profile.vue.cjs"
25
+ ))
26
+ }, {
27
+ path: ":_id/edit",
28
+ name: "User Edit Profile",
29
+ beforeEnter: [
30
+ auth_validation.requiresAuth
31
+ ],
32
+ meta: {
33
+ title: {
34
+ en: "Edit Profile",
35
+ ru: "Редактировать Профиль"
36
+ }
37
+ },
38
+ component: () => Promise.resolve().then(() => require(
39
+ /* webpackChunkName: "profile" */
40
+ "../components/pages/ProfileEdit.vue.cjs"
41
+ ))
42
+ }, {
43
+ path: ":_id/blogposts",
44
+ name: "User Blogposts",
45
+ meta: {
46
+ title: {
47
+ en: "Posts",
48
+ ru: "Посты"
49
+ }
50
+ },
51
+ component: () => Promise.resolve().then(() => require(
52
+ /* webpackChunkName: "profile" */
53
+ "../components/pages/ProfileBlogposts.vue.cjs"
54
+ ))
55
+ }, {
56
+ path: ":user/events",
57
+ name: "User Events",
58
+ meta: {
59
+ title: {
60
+ en: "Events",
61
+ ru: "События"
62
+ }
63
+ },
64
+ component: () => Promise.resolve().then(() => require(
65
+ /* webpackChunkName: "profile" */
66
+ "../../../events/components/pages/EventsBackoffice.vue.cjs"
67
+ ))
68
+ }, {
69
+ path: ":_id/organizations",
70
+ name: "User Organizations",
71
+ meta: {
72
+ title: {
73
+ en: "Groups",
74
+ ru: "Группы"
75
+ }
76
+ },
77
+ component: () => Promise.resolve().then(() => require(
78
+ /* webpackChunkName: "profile" */
79
+ "../../../organizations/components/pages/Organizations.vue.cjs"
80
+ ))
81
+ }, {
82
+ path: ":_id/wallet",
83
+ name: "User Wallet",
84
+ meta: {
85
+ title: {
86
+ en: "Wallet",
87
+ ru: "Кошелек"
88
+ }
89
+ },
90
+ component: () => Promise.resolve().then(() => require(
91
+ /* webpackChunkName: "profile" */
92
+ "../../../wallet/views/components/pages/Wallet.vue.cjs"
93
+ ))
94
+ }]
95
+ };
96
+ exports.default = users;
97
+ //# sourceMappingURL=users.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.cjs","sources":["../../../../../../../src/modules/auth/views/router/users.js"],"sourcesContent":["import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst users = {\n path: 'users',\n name: 'Users',\n meta: {\n title: {\n en: 'Users',\n ru: 'Пользователи'\n },\n },\n children: [{\n path: ':_id',\n name: 'User Profile',\n meta: {\n title: {\n en: 'Profile',\n ru: 'Профиль'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '../components/pages/Profile.vue'),\n },{\n path: ':_id/edit',\n name: 'User Edit Profile',\n beforeEnter: [\n validationAuth.requiresAuth,\n ],\n meta: {\n title: {\n en: 'Edit Profile',\n ru: 'Редактировать Профиль'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '../components/pages/ProfileEdit.vue'),\n },{\n path: ':_id/blogposts',\n name: 'User Blogposts',\n meta: {\n title: {\n en: 'Posts',\n ru: 'Посты'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '../components/pages/ProfileBlogposts.vue'),\n },{\n path: ':user/events',\n name: 'User Events',\n meta: {\n title: {\n en: 'Events',\n ru: 'События'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '@pf/src/modules/events/components/pages/EventsBackoffice.vue'),\n },{\n path: ':_id/organizations',\n name: 'User Organizations',\n meta: {\n title: {\n en: 'Groups',\n ru: 'Группы'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '@pf/src/modules/organizations/components/pages/Organizations.vue'),\n },{\n path: ':_id/wallet',\n name: 'User Wallet',\n meta: {\n title: {\n en: 'Wallet',\n ru: 'Кошелек'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '@pf/src/modules/wallet/views/components/pages/Wallet.vue'),\n }]\n}\n\n\nexport default users;"],"names":["validationAuth.requiresAuth"],"mappings":";;;AAEK,MAAC,QAAQ;AAAA,EACZ,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,IAAI;AAAA,MACJ,IAAI;AAAA,IACL;AAAA,EACF;AAAA,EACD,UAAU,CAAC;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACL,MAAM;AAAA,MACH,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACH,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAkC;AAAA,IAAiC,CAAC;AAAA,EAChG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,aAAa;AAAA,MACXA,gBAA2B;AAAA,IAC5B;AAAA,IACD,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAkC;AAAA,IAAqC,CAAC;AAAA,EACpG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAkC;AAAA,IAA0C,CAAC;AAAA,EACzG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAkC;AAAA,IAA8D,CAAC;AAAA,EAC7H,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACL,MAAM;AAAA,MACH,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACH,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAkC;AAAA,IAAkE,CAAC;AAAA,EACjI,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACL,MAAM;AAAA,MACH,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACH,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAkC;AAAA,IAA0D,CAAC;AAAA,EACzH,CAAG;AACH;;"}
@@ -0,0 +1,97 @@
1
+ import { requiresAuth } from "../middlewares/auth.validation.js";
2
+ const users = {
3
+ path: "users",
4
+ name: "Users",
5
+ meta: {
6
+ title: {
7
+ en: "Users",
8
+ ru: "Пользователи"
9
+ }
10
+ },
11
+ children: [{
12
+ path: ":_id",
13
+ name: "User Profile",
14
+ meta: {
15
+ title: {
16
+ en: "Profile",
17
+ ru: "Профиль"
18
+ }
19
+ },
20
+ component: () => import(
21
+ /* webpackChunkName: "profile" */
22
+ "../components/pages/Profile.vue.js"
23
+ )
24
+ }, {
25
+ path: ":_id/edit",
26
+ name: "User Edit Profile",
27
+ beforeEnter: [
28
+ requiresAuth
29
+ ],
30
+ meta: {
31
+ title: {
32
+ en: "Edit Profile",
33
+ ru: "Редактировать Профиль"
34
+ }
35
+ },
36
+ component: () => import(
37
+ /* webpackChunkName: "profile" */
38
+ "../components/pages/ProfileEdit.vue.js"
39
+ )
40
+ }, {
41
+ path: ":_id/blogposts",
42
+ name: "User Blogposts",
43
+ meta: {
44
+ title: {
45
+ en: "Posts",
46
+ ru: "Посты"
47
+ }
48
+ },
49
+ component: () => import(
50
+ /* webpackChunkName: "profile" */
51
+ "../components/pages/ProfileBlogposts.vue.js"
52
+ )
53
+ }, {
54
+ path: ":user/events",
55
+ name: "User Events",
56
+ meta: {
57
+ title: {
58
+ en: "Events",
59
+ ru: "События"
60
+ }
61
+ },
62
+ component: () => import(
63
+ /* webpackChunkName: "profile" */
64
+ "../../../events/components/pages/EventsBackoffice.vue.js"
65
+ )
66
+ }, {
67
+ path: ":_id/organizations",
68
+ name: "User Organizations",
69
+ meta: {
70
+ title: {
71
+ en: "Groups",
72
+ ru: "Группы"
73
+ }
74
+ },
75
+ component: () => import(
76
+ /* webpackChunkName: "profile" */
77
+ "../../../organizations/components/pages/Organizations.vue.js"
78
+ )
79
+ }, {
80
+ path: ":_id/wallet",
81
+ name: "User Wallet",
82
+ meta: {
83
+ title: {
84
+ en: "Wallet",
85
+ ru: "Кошелек"
86
+ }
87
+ },
88
+ component: () => import(
89
+ /* webpackChunkName: "profile" */
90
+ "../../../wallet/views/components/pages/Wallet.vue.js"
91
+ )
92
+ }]
93
+ };
94
+ export {
95
+ users as default
96
+ };
97
+ //# sourceMappingURL=users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.js","sources":["../../../../../../../src/modules/auth/views/router/users.js"],"sourcesContent":["import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst users = {\n path: 'users',\n name: 'Users',\n meta: {\n title: {\n en: 'Users',\n ru: 'Пользователи'\n },\n },\n children: [{\n path: ':_id',\n name: 'User Profile',\n meta: {\n title: {\n en: 'Profile',\n ru: 'Профиль'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '../components/pages/Profile.vue'),\n },{\n path: ':_id/edit',\n name: 'User Edit Profile',\n beforeEnter: [\n validationAuth.requiresAuth,\n ],\n meta: {\n title: {\n en: 'Edit Profile',\n ru: 'Редактировать Профиль'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '../components/pages/ProfileEdit.vue'),\n },{\n path: ':_id/blogposts',\n name: 'User Blogposts',\n meta: {\n title: {\n en: 'Posts',\n ru: 'Посты'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '../components/pages/ProfileBlogposts.vue'),\n },{\n path: ':user/events',\n name: 'User Events',\n meta: {\n title: {\n en: 'Events',\n ru: 'События'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '@pf/src/modules/events/components/pages/EventsBackoffice.vue'),\n },{\n path: ':_id/organizations',\n name: 'User Organizations',\n meta: {\n title: {\n en: 'Groups',\n ru: 'Группы'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '@pf/src/modules/organizations/components/pages/Organizations.vue'),\n },{\n path: ':_id/wallet',\n name: 'User Wallet',\n meta: {\n title: {\n en: 'Wallet',\n ru: 'Кошелек'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '@pf/src/modules/wallet/views/components/pages/Wallet.vue'),\n }]\n}\n\n\nexport default users;"],"names":["validationAuth.requiresAuth"],"mappings":";AAEK,MAAC,QAAQ;AAAA,EACZ,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,IAAI;AAAA,MACJ,IAAI;AAAA,IACL;AAAA,EACF;AAAA,EACD,UAAU,CAAC;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACL,MAAM;AAAA,MACH,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACH,WAAW,MAAM;AAAA;AAAA,MAAyC;AAAA,IAAiC;AAAA,EAC/F,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,aAAa;AAAA,MACXA;AAAAA,IACD;AAAA,IACD,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM;AAAA;AAAA,MAAyC;AAAA,IAAqC;AAAA,EACnG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM;AAAA;AAAA,MAAyC;AAAA,IAA0C;AAAA,EACxG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM;AAAA;AAAA,MAAyC;AAAA,IAA8D;AAAA,EAC5H,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACL,MAAM;AAAA,MACH,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACH,WAAW,MAAM;AAAA;AAAA,MAAyC;AAAA,IAAkE;AAAA,EAChI,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACL,MAAM;AAAA,MACH,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACH,WAAW,MAAM;AAAA;AAAA,MAAyC;AAAA,IAA0D;AAAA,EACxH,CAAG;AACH;"}
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const vue = require("vue");
4
+ const axiosInstance = require("../../../globals/views/utils/axios-instance.cjs");
5
+ const state = vue.reactive({
6
+ all: [],
7
+ current: {
8
+ _id: "",
9
+ username: "",
10
+ email: "",
11
+ phone: "",
12
+ status: "",
13
+ profile: {
14
+ name: "",
15
+ photo: "",
16
+ description: "",
17
+ birthday: ""
18
+ },
19
+ socials: {
20
+ facebook: "",
21
+ twitter: "",
22
+ instagram: "",
23
+ telegram: ""
24
+ },
25
+ roles: []
26
+ }
27
+ });
28
+ const actions = {
29
+ async create(user) {
30
+ try {
31
+ const response = await axiosInstance.default.post("/api/users", user);
32
+ mutations.set(response.data, "current");
33
+ return Promise.resolve(response.data);
34
+ } catch (error) {
35
+ console.error(error);
36
+ return Promise.reject(error);
37
+ }
38
+ },
39
+ async read(options = {}) {
40
+ try {
41
+ const response = await axiosInstance.default.get("/api/users", { params: options });
42
+ if (options._id) {
43
+ mutations.set(response.data[0], "current");
44
+ } else {
45
+ mutations.set(response.data, "all");
46
+ }
47
+ return Promise.resolve(response.data);
48
+ } catch (error) {
49
+ console.error(error);
50
+ return Promise.reject(error);
51
+ }
52
+ },
53
+ async update(user) {
54
+ try {
55
+ const response = await axiosInstance.default.put(`/api/users/${user._id}`, user);
56
+ mutations.set(response.data, "current");
57
+ return Promise.resolve(response.data);
58
+ } catch (error) {
59
+ console.error(error);
60
+ return Promise.reject(error);
61
+ }
62
+ },
63
+ async delete(user) {
64
+ try {
65
+ await axiosInstance.default.delete(`/api/users/${user._id}`);
66
+ const index = state.all.findIndex((u) => u._id === user._id);
67
+ if (index !== -1) {
68
+ state.all.splice(index, 1);
69
+ }
70
+ } catch (error) {
71
+ console.error(error);
72
+ }
73
+ }
74
+ };
75
+ const mutations = {
76
+ set(user, property) {
77
+ state[property] = user;
78
+ },
79
+ clean() {
80
+ state.current = {
81
+ phone: "",
82
+ name: "",
83
+ surname: "",
84
+ birthday: "",
85
+ city: "",
86
+ address: "",
87
+ roles: [],
88
+ orders: []
89
+ };
90
+ }
91
+ };
92
+ exports.actions = actions;
93
+ exports.mutations = mutations;
94
+ exports.state = state;
95
+ //# sourceMappingURL=users.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.cjs","sources":["../../../../../../../src/modules/auth/views/store/users.js"],"sourcesContent":["import { reactive, ref, computed, toRefs, watch } from \"vue\";\n\nimport $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';\n\nconst state = reactive({\n all: [],\n \n current: {\n _id: \"\",\n username: \"\",\n email: \"\",\n phone: \"\",\n\n status: \"\",\n\n profile: {\n name: \"\",\n photo: \"\",\n description: \"\",\n birthday: \"\",\n },\n socials: {\n facebook: \"\",\n twitter: \"\",\n instagram: \"\",\n telegram: \"\"\n },\n\n roles: []\n },\n});\n\nconst actions = {\n\n async create(user) {\n try {\n const response = await $axios.post('/api/users', user);\n mutations.set(response.data, 'current');\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async read(options = {}) { \n\n try {\n const response = await $axios.get('/api/users', { params: options });\n \n if (options._id) {\n mutations.set(response.data[0], 'current');\n } else {\n mutations.set(response.data, 'all');\n }\n\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async update(user) {\n try {\n const response = await $axios.put(`/api/users/${user._id}`, user);\n mutations.set(response.data, 'current');\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async delete(user) {\n try {\n await $axios.delete(`/api/users/${user._id}`);\n const index = state.all.findIndex(u => u._id === user._id);\n if (index !== -1) {\n state.all.splice(index, 1);\n }\n } catch (error) {\n console.error(error);\n }\n }\n};\n\nconst mutations = {\n set(user, property) {\n state[property] = user;\n },\n\n clean() {\n state.current = {\n phone: '',\n name: '',\n surname: '',\n birthday: '',\n city: '',\n address: '',\n roles: [],\n orders: [],\n };\n }\n};\n\nexport {\n state,\n actions,\n mutations\n};"],"names":["reactive","$axios"],"mappings":";;;;AAIK,MAAC,QAASA,IAAAA,SAAS;AAAA,EACtB,KAAK,CAAE;AAAA,EAEP,SAAS;AAAA,IACP,KAAK;AAAA,IACL,UAAU;AAAA,IACV,OAAO;AAAA,IACP,OAAO;AAAA,IAEP,QAAQ;AAAA,IAER,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,MACb,UAAU;AAAA,IACX;AAAA,IACD,SAAS;AAAA,MACP,UAAU;AAAA,MACV,SAAS;AAAA,MACT,WAAW;AAAA,MACX,UAAU;AAAA,IACX;AAAA,IAED,OAAO,CAAE;AAAA,EACV;AACH,CAAC;AAEI,MAAC,UAAU;AAAA,EAEd,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAMC,cAAM,QAAC,KAAK,cAAc,IAAI;AACrD,gBAAU,IAAI,SAAS,MAAM,SAAS;AACtC,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,KAAK,UAAU,IAAI;AAEvB,QAAI;AACF,YAAM,WAAW,MAAMA,cAAAA,QAAO,IAAI,cAAc,EAAE,QAAQ,QAAO,CAAE;AAEnE,UAAI,QAAQ,KAAK;AACf,kBAAU,IAAI,SAAS,KAAK,CAAC,GAAG,SAAS;AAAA,MACjD,OAAa;AACL,kBAAU,IAAI,SAAS,MAAM,KAAK;AAAA,MACnC;AAED,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAMA,cAAM,QAAC,IAAI,cAAc,KAAK,GAAG,IAAI,IAAI;AAChE,gBAAU,IAAI,SAAS,MAAM,SAAS;AACtC,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAMA,cAAAA,QAAO,OAAO,cAAc,KAAK,GAAG,EAAE;AAC5C,YAAM,QAAQ,MAAM,IAAI,UAAU,OAAK,EAAE,QAAQ,KAAK,GAAG;AACzD,UAAI,UAAU,IAAI;AAChB,cAAM,IAAI,OAAO,OAAO,CAAC;AAAA,MAC1B;AAAA,IACF,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AAAA,IACpB;AAAA,EACF;AACH;AAEK,MAAC,YAAY;AAAA,EAChB,IAAI,MAAM,UAAU;AAClB,UAAM,QAAQ,IAAI;AAAA,EACnB;AAAA,EAED,QAAQ;AACN,UAAM,UAAU;AAAA,MACd,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,MACT,UAAU;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,MACT,OAAO,CAAE;AAAA,MACT,QAAQ,CAAE;AAAA,IAChB;AAAA,EACG;AACH;;;;"}
@@ -0,0 +1,95 @@
1
+ import { reactive } from "vue";
2
+ import $axios from "../../../globals/views/utils/axios-instance.js";
3
+ const state = reactive({
4
+ all: [],
5
+ current: {
6
+ _id: "",
7
+ username: "",
8
+ email: "",
9
+ phone: "",
10
+ status: "",
11
+ profile: {
12
+ name: "",
13
+ photo: "",
14
+ description: "",
15
+ birthday: ""
16
+ },
17
+ socials: {
18
+ facebook: "",
19
+ twitter: "",
20
+ instagram: "",
21
+ telegram: ""
22
+ },
23
+ roles: []
24
+ }
25
+ });
26
+ const actions = {
27
+ async create(user) {
28
+ try {
29
+ const response = await $axios.post("/api/users", user);
30
+ mutations.set(response.data, "current");
31
+ return Promise.resolve(response.data);
32
+ } catch (error) {
33
+ console.error(error);
34
+ return Promise.reject(error);
35
+ }
36
+ },
37
+ async read(options = {}) {
38
+ try {
39
+ const response = await $axios.get("/api/users", { params: options });
40
+ if (options._id) {
41
+ mutations.set(response.data[0], "current");
42
+ } else {
43
+ mutations.set(response.data, "all");
44
+ }
45
+ return Promise.resolve(response.data);
46
+ } catch (error) {
47
+ console.error(error);
48
+ return Promise.reject(error);
49
+ }
50
+ },
51
+ async update(user) {
52
+ try {
53
+ const response = await $axios.put(`/api/users/${user._id}`, user);
54
+ mutations.set(response.data, "current");
55
+ return Promise.resolve(response.data);
56
+ } catch (error) {
57
+ console.error(error);
58
+ return Promise.reject(error);
59
+ }
60
+ },
61
+ async delete(user) {
62
+ try {
63
+ await $axios.delete(`/api/users/${user._id}`);
64
+ const index = state.all.findIndex((u) => u._id === user._id);
65
+ if (index !== -1) {
66
+ state.all.splice(index, 1);
67
+ }
68
+ } catch (error) {
69
+ console.error(error);
70
+ }
71
+ }
72
+ };
73
+ const mutations = {
74
+ set(user, property) {
75
+ state[property] = user;
76
+ },
77
+ clean() {
78
+ state.current = {
79
+ phone: "",
80
+ name: "",
81
+ surname: "",
82
+ birthday: "",
83
+ city: "",
84
+ address: "",
85
+ roles: [],
86
+ orders: []
87
+ };
88
+ }
89
+ };
90
+ export {
91
+ actions,
92
+ mutations,
93
+ state
94
+ };
95
+ //# sourceMappingURL=users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.js","sources":["../../../../../../../src/modules/auth/views/store/users.js"],"sourcesContent":["import { reactive, ref, computed, toRefs, watch } from \"vue\";\n\nimport $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';\n\nconst state = reactive({\n all: [],\n \n current: {\n _id: \"\",\n username: \"\",\n email: \"\",\n phone: \"\",\n\n status: \"\",\n\n profile: {\n name: \"\",\n photo: \"\",\n description: \"\",\n birthday: \"\",\n },\n socials: {\n facebook: \"\",\n twitter: \"\",\n instagram: \"\",\n telegram: \"\"\n },\n\n roles: []\n },\n});\n\nconst actions = {\n\n async create(user) {\n try {\n const response = await $axios.post('/api/users', user);\n mutations.set(response.data, 'current');\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async read(options = {}) { \n\n try {\n const response = await $axios.get('/api/users', { params: options });\n \n if (options._id) {\n mutations.set(response.data[0], 'current');\n } else {\n mutations.set(response.data, 'all');\n }\n\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async update(user) {\n try {\n const response = await $axios.put(`/api/users/${user._id}`, user);\n mutations.set(response.data, 'current');\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async delete(user) {\n try {\n await $axios.delete(`/api/users/${user._id}`);\n const index = state.all.findIndex(u => u._id === user._id);\n if (index !== -1) {\n state.all.splice(index, 1);\n }\n } catch (error) {\n console.error(error);\n }\n }\n};\n\nconst mutations = {\n set(user, property) {\n state[property] = user;\n },\n\n clean() {\n state.current = {\n phone: '',\n name: '',\n surname: '',\n birthday: '',\n city: '',\n address: '',\n roles: [],\n orders: [],\n };\n }\n};\n\nexport {\n state,\n actions,\n mutations\n};"],"names":[],"mappings":";;AAIK,MAAC,QAAS,SAAS;AAAA,EACtB,KAAK,CAAE;AAAA,EAEP,SAAS;AAAA,IACP,KAAK;AAAA,IACL,UAAU;AAAA,IACV,OAAO;AAAA,IACP,OAAO;AAAA,IAEP,QAAQ;AAAA,IAER,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,MACb,UAAU;AAAA,IACX;AAAA,IACD,SAAS;AAAA,MACP,UAAU;AAAA,MACV,SAAS;AAAA,MACT,WAAW;AAAA,MACX,UAAU;AAAA,IACX;AAAA,IAED,OAAO,CAAE;AAAA,EACV;AACH,CAAC;AAEI,MAAC,UAAU;AAAA,EAEd,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,KAAK,cAAc,IAAI;AACrD,gBAAU,IAAI,SAAS,MAAM,SAAS;AACtC,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,KAAK,UAAU,IAAI;AAEvB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,IAAI,cAAc,EAAE,QAAQ,QAAO,CAAE;AAEnE,UAAI,QAAQ,KAAK;AACf,kBAAU,IAAI,SAAS,KAAK,CAAC,GAAG,SAAS;AAAA,MACjD,OAAa;AACL,kBAAU,IAAI,SAAS,MAAM,KAAK;AAAA,MACnC;AAED,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,IAAI,cAAc,KAAK,GAAG,IAAI,IAAI;AAChE,gBAAU,IAAI,SAAS,MAAM,SAAS;AACtC,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,OAAO,OAAO,cAAc,KAAK,GAAG,EAAE;AAC5C,YAAM,QAAQ,MAAM,IAAI,UAAU,OAAK,EAAE,QAAQ,KAAK,GAAG;AACzD,UAAI,UAAU,IAAI;AAChB,cAAM,IAAI,OAAO,OAAO,CAAC;AAAA,MAC1B;AAAA,IACF,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AAAA,IACpB;AAAA,EACF;AACH;AAEK,MAAC,YAAY;AAAA,EAChB,IAAI,MAAM,UAAU;AAClB,UAAM,QAAQ,IAAI;AAAA,EACnB;AAAA,EAED,QAAQ;AACN,UAAM,UAAU;AAAA,MACd,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,MACT,UAAU;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,MACT,OAAO,CAAE;AAAA,MACT,QAAQ,CAAE;AAAA,IAChB;AAAA,EACG;AACH;"}
@@ -1,5 +1,35 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const backoffice = require("./router/backoffice.cjs");
4
- exports.backofficeRoutes = backoffice.default;
4
+ const Backoffice = require("./components/layouts/Backoffice.vue.cjs");
5
+ const Dashboard = require("./components/pages/Dashboard.vue.cjs");
6
+ const Sidebar = require("./components/partials/Sidebar.vue.cjs");
7
+ function initializeBackoffice(app, store, router, options = {}) {
8
+ const route = options.route || "Home";
9
+ router.addRoute(route, backoffice.default);
10
+ }
11
+ const ModuleBackoffice = {
12
+ initialize: initializeBackoffice,
13
+ views: {
14
+ router: {
15
+ routerBackoffice: backoffice.default
16
+ },
17
+ components: {
18
+ // Layouts
19
+ BackofficeLayout: Backoffice.default,
20
+ // Pages
21
+ Dashboard: Dashboard.default,
22
+ // Admin components
23
+ // AdminDashboard,
24
+ // FastOrders,
25
+ // UserEdit,
26
+ // Users,
27
+ // ProductEdit,
28
+ // Backcalls,
29
+ // Partials
30
+ Sidebar: Sidebar.default
31
+ }
32
+ }
33
+ };
34
+ exports.default = ModuleBackoffice;
5
35
  //# sourceMappingURL=backoffice.client.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"backoffice.client.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"backoffice.client.cjs","sources":["../../../../../src/modules/backoffice/backoffice.client.js"],"sourcesContent":["// Router\nimport routerBackoffice from './router/backoffice';\n\n// Views\n// Layouts\nimport BackofficeLayout from './components/layouts/Backoffice.vue';\n\n// Pages\nimport Dashboard from './components/pages/Dashboard.vue';\n\n// Admin components\n// import AdminDashboard from './components/admin/Dashboard.vue';\n// import FastOrders from './components/admin/FastOrders.vue';\n// import UserEdit from './components/admin/UserEdit.vue';\n// import Users from './components/admin/Users.vue';\n// import ProductEdit from './components/admin/ProductEdit.vue';\n// import Backcalls from './components/admin/Backcalls.vue';\n\n// Partials\nimport Sidebar from './components/partials/Sidebar.vue';\n\n// Пример функции инициализации для модуля бэкофиса\nfunction initializeBackoffice(app, store, router, options = {}) {\n const route = options.route || 'Home';\n\n // const routesBackoffice = createBackofficeRoutes();\n // const routesAdmin = createAdminRoutes();\n \n router.addRoute(route, routerBackoffice);\n // router.addRoute(`${route}.admin`, routerBackoffice);\n}\n\nconst ModuleBackoffice = {\n initialize: initializeBackoffice,\n views: {\n router: {\n routerBackoffice\n },\n components: {\n // Layouts\n BackofficeLayout,\n // Pages\n Dashboard,\n // Admin components\n // AdminDashboard,\n // FastOrders,\n // UserEdit,\n // Users,\n // ProductEdit,\n // Backcalls,\n // Partials\n Sidebar\n }\n }\n}\n\nexport default ModuleBackoffice;"],"names":["routerBackoffice","BackofficeLayout","Dashboard","Sidebar"],"mappings":";;;;;;AAsBA,SAAS,qBAAqB,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AAC9D,QAAM,QAAQ,QAAQ,SAAS;AAK/B,SAAO,SAAS,OAAOA,WAAAA,OAAgB;AAEzC;AAEK,MAAC,mBAAmB;AAAA,EACvB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,QAAQ;AAAA,MACZ,kBAAMA,WAAgB;AAAA,IACjB;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,kBAAMC,WAAgB;AAAA;AAAA,MAEtB,WAAMC,UAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MASf,SAAMC,QAAO;AAAA,IACR;AAAA,EACF;AACH;;"}