@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
@@ -757,10 +757,10 @@ var blogpost_model = (db) => {
757
757
  const Blogpost = db.mongoose.model("Blogpost", BlogpostSchema);
758
758
  return Blogpost;
759
759
  };
760
- var comment_model = (mongoose) => {
761
- const CommentSchema = new mongoose.Schema({
760
+ var comment_model = (db) => {
761
+ const CommentSchema = new db.mongoose.Schema({
762
762
  user: {
763
- type: mongoose.Schema.Types.ObjectId,
763
+ type: db.mongoose.Schema.Types.ObjectId,
764
764
  ref: "User",
765
765
  required: true
766
766
  },
@@ -772,7 +772,7 @@ var comment_model = (mongoose) => {
772
772
  },
773
773
  target: {
774
774
  // заменяем 'organization' на 'target', так как это может быть или User, или Organization
775
- type: mongoose.Schema.Types.ObjectId,
775
+ type: db.mongoose.Schema.Types.ObjectId,
776
776
  ref: function(value) {
777
777
  if (this.type === "blogpost") return "Blogpost";
778
778
  if (this.type === "comment") return "Comment";
@@ -782,12 +782,12 @@ var comment_model = (mongoose) => {
782
782
  required: true
783
783
  },
784
784
  parent: {
785
- type: mongoose.Schema.Types.ObjectId,
785
+ type: db.mongoose.Schema.Types.ObjectId,
786
786
  ref: "Comment",
787
787
  default: null
788
788
  },
789
789
  children: [{
790
- type: mongoose.Schema.Types.ObjectId,
790
+ type: db.mongoose.Schema.Types.ObjectId,
791
791
  ref: "Comment"
792
792
  }],
793
793
  depth: {
@@ -804,13 +804,13 @@ var comment_model = (mongoose) => {
804
804
  }
805
805
  });
806
806
  CommentSchema.index({ target: 1, parent: 1, depth: 1 });
807
- const Comment = mongoose.model("Comment", CommentSchema);
807
+ const Comment = db.mongoose.model("Comment", CommentSchema);
808
808
  return Comment;
809
809
  };
810
- var reaction_model = (mongoose) => {
811
- const ReactionSchema = new mongoose.Schema({
810
+ var reaction_model = (db) => {
811
+ const ReactionSchema = new db.mongoose.Schema({
812
812
  user: {
813
- type: mongoose.Schema.Types.ObjectId,
813
+ type: db.mongoose.Schema.Types.ObjectId,
814
814
  ref: function(value) {
815
815
  if (this.owner.type === "user") return "User";
816
816
  if (this.owner.type === "organization") return "Organization";
@@ -824,7 +824,7 @@ var reaction_model = (mongoose) => {
824
824
  required: true
825
825
  },
826
826
  target: {
827
- type: mongoose.Schema.Types.ObjectId,
827
+ type: db.mongoose.Schema.Types.ObjectId,
828
828
  ref: function(value) {
829
829
  if (this.owner.type === "event") return "Event";
830
830
  if (this.owner.type === "comment") return "Comment";
@@ -850,7 +850,7 @@ var reaction_model = (mongoose) => {
850
850
  }, {
851
851
  strict: false
852
852
  });
853
- const Reaction = mongoose.model("Reaction", ReactionSchema);
853
+ const Reaction = db.mongoose.model("Reaction", ReactionSchema);
854
854
  return Reaction;
855
855
  };
856
856
  const BlogController = blog_controller;
@@ -862,16 +862,33 @@ const reactionsRoutes = reactions_routes;
862
862
  const BlogpostModel = blogpost_model;
863
863
  const CommentModel = comment_model;
864
864
  const ReactionModel = reaction_model;
865
+ function initializeCommunity(app, db, origins, publicPath) {
866
+ db.blogpost = BlogpostModel(db);
867
+ db.comment = CommentModel(db);
868
+ db.reaction = ReactionModel(db);
869
+ if (app) {
870
+ blogRoutes(app, db);
871
+ commentsRoutes(app, db);
872
+ reactionsRoutes(app, db);
873
+ }
874
+ }
865
875
  var community_server = {
866
- BlogController,
867
- CommentsController,
868
- ReactionsController,
869
- blogRoutes,
870
- commentsRoutes,
871
- reactionsRoutes,
872
- BlogpostModel,
873
- CommentModel,
874
- ReactionModel
876
+ initialize: initializeCommunity,
877
+ models: {
878
+ BlogpostModel,
879
+ CommentModel,
880
+ ReactionModel
881
+ },
882
+ routes: {
883
+ blogRoutes,
884
+ commentsRoutes,
885
+ reactionsRoutes
886
+ },
887
+ controllers: {
888
+ BlogController,
889
+ CommentsController,
890
+ ReactionsController
891
+ }
875
892
  };
876
893
  const community_server$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(community_server);
877
894
  module.exports = community_server$1;
@@ -756,10 +756,10 @@ var blogpost_model = (db) => {
756
756
  const Blogpost = db.mongoose.model("Blogpost", BlogpostSchema);
757
757
  return Blogpost;
758
758
  };
759
- var comment_model = (mongoose) => {
760
- const CommentSchema = new mongoose.Schema({
759
+ var comment_model = (db) => {
760
+ const CommentSchema = new db.mongoose.Schema({
761
761
  user: {
762
- type: mongoose.Schema.Types.ObjectId,
762
+ type: db.mongoose.Schema.Types.ObjectId,
763
763
  ref: "User",
764
764
  required: true
765
765
  },
@@ -771,7 +771,7 @@ var comment_model = (mongoose) => {
771
771
  },
772
772
  target: {
773
773
  // заменяем 'organization' на 'target', так как это может быть или User, или Organization
774
- type: mongoose.Schema.Types.ObjectId,
774
+ type: db.mongoose.Schema.Types.ObjectId,
775
775
  ref: function(value) {
776
776
  if (this.type === "blogpost") return "Blogpost";
777
777
  if (this.type === "comment") return "Comment";
@@ -781,12 +781,12 @@ var comment_model = (mongoose) => {
781
781
  required: true
782
782
  },
783
783
  parent: {
784
- type: mongoose.Schema.Types.ObjectId,
784
+ type: db.mongoose.Schema.Types.ObjectId,
785
785
  ref: "Comment",
786
786
  default: null
787
787
  },
788
788
  children: [{
789
- type: mongoose.Schema.Types.ObjectId,
789
+ type: db.mongoose.Schema.Types.ObjectId,
790
790
  ref: "Comment"
791
791
  }],
792
792
  depth: {
@@ -803,13 +803,13 @@ var comment_model = (mongoose) => {
803
803
  }
804
804
  });
805
805
  CommentSchema.index({ target: 1, parent: 1, depth: 1 });
806
- const Comment = mongoose.model("Comment", CommentSchema);
806
+ const Comment = db.mongoose.model("Comment", CommentSchema);
807
807
  return Comment;
808
808
  };
809
- var reaction_model = (mongoose) => {
810
- const ReactionSchema = new mongoose.Schema({
809
+ var reaction_model = (db) => {
810
+ const ReactionSchema = new db.mongoose.Schema({
811
811
  user: {
812
- type: mongoose.Schema.Types.ObjectId,
812
+ type: db.mongoose.Schema.Types.ObjectId,
813
813
  ref: function(value) {
814
814
  if (this.owner.type === "user") return "User";
815
815
  if (this.owner.type === "organization") return "Organization";
@@ -823,7 +823,7 @@ var reaction_model = (mongoose) => {
823
823
  required: true
824
824
  },
825
825
  target: {
826
- type: mongoose.Schema.Types.ObjectId,
826
+ type: db.mongoose.Schema.Types.ObjectId,
827
827
  ref: function(value) {
828
828
  if (this.owner.type === "event") return "Event";
829
829
  if (this.owner.type === "comment") return "Comment";
@@ -849,7 +849,7 @@ var reaction_model = (mongoose) => {
849
849
  }, {
850
850
  strict: false
851
851
  });
852
- const Reaction = mongoose.model("Reaction", ReactionSchema);
852
+ const Reaction = db.mongoose.model("Reaction", ReactionSchema);
853
853
  return Reaction;
854
854
  };
855
855
  const BlogController = blog_controller;
@@ -861,16 +861,33 @@ const reactionsRoutes = reactions_routes;
861
861
  const BlogpostModel = blogpost_model;
862
862
  const CommentModel = comment_model;
863
863
  const ReactionModel = reaction_model;
864
+ function initializeCommunity(app, db, origins, publicPath) {
865
+ db.blogpost = BlogpostModel(db);
866
+ db.comment = CommentModel(db);
867
+ db.reaction = ReactionModel(db);
868
+ if (app) {
869
+ blogRoutes(app, db);
870
+ commentsRoutes(app, db);
871
+ reactionsRoutes(app, db);
872
+ }
873
+ }
864
874
  var community_server = {
865
- BlogController,
866
- CommentsController,
867
- ReactionsController,
868
- blogRoutes,
869
- commentsRoutes,
870
- reactionsRoutes,
871
- BlogpostModel,
872
- CommentModel,
873
- ReactionModel
875
+ initialize: initializeCommunity,
876
+ models: {
877
+ BlogpostModel,
878
+ CommentModel,
879
+ ReactionModel
880
+ },
881
+ routes: {
882
+ blogRoutes,
883
+ commentsRoutes,
884
+ reactionsRoutes
885
+ },
886
+ controllers: {
887
+ BlogController,
888
+ CommentsController,
889
+ ReactionsController
890
+ }
874
891
  };
875
892
  const community_server$1 = /* @__PURE__ */ getDefaultExportFromCjs(community_server);
876
893
  export {
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
2
  const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
4
3
  const require$$0 = require("mongoose");
5
4
  const queryProcessor$2 = require("./queryProcessor-CcsJEUBr.js");
6
5
  const metadata_schema = require("./metadata.schema-6slGhpQS.js");
7
6
  const require$$1 = require("stripe");
8
- const index = require("./index-CsS7qx1d.js");
9
7
  const tickets_controller = require("./tickets.controller-Dn5NbQEu.js");
8
+ const index = require("./index-CsS7qx1d.js");
10
9
  const common_schema = require("./common.schema-BFhpUXUt.js");
11
10
  const engagement_schema = require("./engagement.schema-D-9md46B.js");
12
11
  const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
@@ -568,7 +567,6 @@ const middlewareFactory = (db) => {
568
567
  };
569
568
  };
570
569
  var events_controller = middlewareFactory;
571
- const events_controller$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(events_controller);
572
570
  var verifyEvent;
573
571
  var hasRequiredVerifyEvent;
574
572
  function requireVerifyEvent() {
@@ -662,7 +660,6 @@ var events_routes = function(app, db, origins) {
662
660
  controller.delete
663
661
  );
664
662
  };
665
- const events_routes$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(events_routes);
666
663
  const controllerFactory = tickets_controller.tickets_controller;
667
664
  var tickets_routes = function(app, db, origins, publicPath) {
668
665
  const controller = controllerFactory(db, publicPath);
@@ -683,7 +680,6 @@ var tickets_routes = function(app, db, origins, publicPath) {
683
680
  controller.delete
684
681
  );
685
682
  };
686
- const tickets_routes$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(tickets_routes);
687
683
  const applyCommonSchema = common_schema.common_schema;
688
684
  const applyEngagementSchema = engagement_schema.engagement_schema;
689
685
  const applyOwnershipSchema = ownership_schema.ownership_schema;
@@ -768,11 +764,10 @@ var event_model = (db) => {
768
764
  const Event = db.mongoose.model("Event", EventSchema);
769
765
  return Event;
770
766
  };
771
- const event_model$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(event_model);
772
- var ticket_model = (mongoose) => {
773
- const TicketSchema = new mongoose.Schema({
767
+ var ticket_model = (db) => {
768
+ const TicketSchema = new db.mongoose.Schema({
774
769
  client: {
775
- type: mongoose.Schema.Types.ObjectId,
770
+ type: db.mongoose.Schema.Types.ObjectId,
776
771
  ref: "Client"
777
772
  },
778
773
  client_refactor: {
@@ -784,7 +779,7 @@ var ticket_model = (mongoose) => {
784
779
  }
785
780
  },
786
781
  user: {
787
- type: mongoose.Schema.Types.ObjectId,
782
+ type: db.mongoose.Schema.Types.ObjectId,
788
783
  ref: "User"
789
784
  },
790
785
  type: {
@@ -794,7 +789,7 @@ var ticket_model = (mongoose) => {
794
789
  required: true
795
790
  },
796
791
  target: {
797
- type: mongoose.Schema.Types.ObjectId,
792
+ type: db.mongoose.Schema.Types.ObjectId,
798
793
  ref: function(value) {
799
794
  if (this.type === "event") return "Event";
800
795
  if (this.type === "parking") return "Parking";
@@ -822,12 +817,37 @@ var ticket_model = (mongoose) => {
822
817
  }
823
818
  });
824
819
  TicketSchema.index({ user: 1, type: 1, target: 1 });
825
- const Ticket = mongoose.model("Ticket", TicketSchema);
820
+ const Ticket = db.mongoose.model("Ticket", TicketSchema);
826
821
  return Ticket;
827
822
  };
828
- const ticket_model$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(ticket_model);
829
- exports.EventModel = event_model$1;
830
- exports.EventsController = events_controller$1;
831
- exports.TicketModel = ticket_model$1;
832
- exports.eventsRoutes = events_routes$1;
833
- exports.ticketsRoutes = tickets_routes$1;
823
+ const EventsController = events_controller;
824
+ const TicketsController = tickets_controller.tickets_controller;
825
+ const eventsRoutes = events_routes;
826
+ const ticketsRoutes = tickets_routes;
827
+ const EventModel = event_model;
828
+ const TicketModel = ticket_model;
829
+ function initializeEvent(app, db, origins, publicPath) {
830
+ db.event = EventModel(db);
831
+ db.ticket = TicketModel(db);
832
+ if (app) {
833
+ eventsRoutes(app, db);
834
+ ticketsRoutes(app, db, origins, publicPath);
835
+ }
836
+ }
837
+ var events_server = {
838
+ initialize: initializeEvent,
839
+ models: {
840
+ EventModel,
841
+ TicketModel
842
+ },
843
+ routes: {
844
+ eventsRoutes,
845
+ ticketsRoutes
846
+ },
847
+ controllers: {
848
+ EventsController,
849
+ TicketsController
850
+ }
851
+ };
852
+ const events_server$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(events_server);
853
+ module.exports = events_server$1;
@@ -3,8 +3,8 @@ import require$$0 from "mongoose";
3
3
  import { q as queryProcessor$2 } from "./queryProcessor-CU4A6Y4N.mjs";
4
4
  import { s as seoFriendlyUrl, m as metadata_schema } from "./metadata.schema-CK5e2O3f.mjs";
5
5
  import require$$1 from "stripe";
6
- import { m as middlewares } from "./index-UIHE6Rk3.mjs";
7
6
  import { t as tickets_controller } from "./tickets.controller-CLL05IYf.mjs";
7
+ import { m as middlewares } from "./index-UIHE6Rk3.mjs";
8
8
  import { c as common_schema } from "./common.schema-ChBVARrs.mjs";
9
9
  import { e as engagement_schema } from "./engagement.schema-CCdSLKd4.mjs";
10
10
  import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
@@ -566,7 +566,6 @@ const middlewareFactory = (db) => {
566
566
  };
567
567
  };
568
568
  var events_controller = middlewareFactory;
569
- const events_controller$1 = /* @__PURE__ */ getDefaultExportFromCjs(events_controller);
570
569
  var verifyEvent;
571
570
  var hasRequiredVerifyEvent;
572
571
  function requireVerifyEvent() {
@@ -660,7 +659,6 @@ var events_routes = function(app, db, origins) {
660
659
  controller.delete
661
660
  );
662
661
  };
663
- const events_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(events_routes);
664
662
  const controllerFactory = tickets_controller;
665
663
  var tickets_routes = function(app, db, origins, publicPath) {
666
664
  const controller = controllerFactory(db, publicPath);
@@ -681,7 +679,6 @@ var tickets_routes = function(app, db, origins, publicPath) {
681
679
  controller.delete
682
680
  );
683
681
  };
684
- const tickets_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(tickets_routes);
685
682
  const applyCommonSchema = common_schema;
686
683
  const applyEngagementSchema = engagement_schema;
687
684
  const applyOwnershipSchema = ownership_schema;
@@ -766,11 +763,10 @@ var event_model = (db) => {
766
763
  const Event = db.mongoose.model("Event", EventSchema);
767
764
  return Event;
768
765
  };
769
- const event_model$1 = /* @__PURE__ */ getDefaultExportFromCjs(event_model);
770
- var ticket_model = (mongoose) => {
771
- const TicketSchema = new mongoose.Schema({
766
+ var ticket_model = (db) => {
767
+ const TicketSchema = new db.mongoose.Schema({
772
768
  client: {
773
- type: mongoose.Schema.Types.ObjectId,
769
+ type: db.mongoose.Schema.Types.ObjectId,
774
770
  ref: "Client"
775
771
  },
776
772
  client_refactor: {
@@ -782,7 +778,7 @@ var ticket_model = (mongoose) => {
782
778
  }
783
779
  },
784
780
  user: {
785
- type: mongoose.Schema.Types.ObjectId,
781
+ type: db.mongoose.Schema.Types.ObjectId,
786
782
  ref: "User"
787
783
  },
788
784
  type: {
@@ -792,7 +788,7 @@ var ticket_model = (mongoose) => {
792
788
  required: true
793
789
  },
794
790
  target: {
795
- type: mongoose.Schema.Types.ObjectId,
791
+ type: db.mongoose.Schema.Types.ObjectId,
796
792
  ref: function(value) {
797
793
  if (this.type === "event") return "Event";
798
794
  if (this.type === "parking") return "Parking";
@@ -820,14 +816,39 @@ var ticket_model = (mongoose) => {
820
816
  }
821
817
  });
822
818
  TicketSchema.index({ user: 1, type: 1, target: 1 });
823
- const Ticket = mongoose.model("Ticket", TicketSchema);
819
+ const Ticket = db.mongoose.model("Ticket", TicketSchema);
824
820
  return Ticket;
825
821
  };
826
- const ticket_model$1 = /* @__PURE__ */ getDefaultExportFromCjs(ticket_model);
822
+ const EventsController = events_controller;
823
+ const TicketsController = tickets_controller;
824
+ const eventsRoutes = events_routes;
825
+ const ticketsRoutes = tickets_routes;
826
+ const EventModel = event_model;
827
+ const TicketModel = ticket_model;
828
+ function initializeEvent(app, db, origins, publicPath) {
829
+ db.event = EventModel(db);
830
+ db.ticket = TicketModel(db);
831
+ if (app) {
832
+ eventsRoutes(app, db);
833
+ ticketsRoutes(app, db, origins, publicPath);
834
+ }
835
+ }
836
+ var events_server = {
837
+ initialize: initializeEvent,
838
+ models: {
839
+ EventModel,
840
+ TicketModel
841
+ },
842
+ routes: {
843
+ eventsRoutes,
844
+ ticketsRoutes
845
+ },
846
+ controllers: {
847
+ EventsController,
848
+ TicketsController
849
+ }
850
+ };
851
+ const events_server$1 = /* @__PURE__ */ getDefaultExportFromCjs(events_server);
827
852
  export {
828
- event_model$1 as EventModel,
829
- events_controller$1 as EventsController,
830
- ticket_model$1 as TicketModel,
831
- events_routes$1 as eventsRoutes,
832
- tickets_routes$1 as ticketsRoutes
853
+ events_server$1 as default
833
854
  };
@@ -291,10 +291,19 @@ var files_routes = function(app, db, origins, publicPath) {
291
291
  };
292
292
  const filesController = files_controller;
293
293
  const filesRoutes = files_routes;
294
+ function initializeFiles(app, db, origins, publicPath) {
295
+ if (app) {
296
+ filesRoutes(app, db, origins, publicPath);
297
+ }
298
+ }
294
299
  var files_server = {
295
- filesController,
296
- filesRoutes
297
- // FileModel
300
+ initialize: initializeFiles,
301
+ routes: {
302
+ filesRoutes
303
+ },
304
+ controllers: {
305
+ filesController
306
+ }
298
307
  };
299
308
  const files_server$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(files_server);
300
309
  module.exports = files_server$1;
@@ -290,10 +290,19 @@ var files_routes = function(app, db, origins, publicPath) {
290
290
  };
291
291
  const filesController = files_controller;
292
292
  const filesRoutes = files_routes;
293
+ function initializeFiles(app, db, origins, publicPath) {
294
+ if (app) {
295
+ filesRoutes(app, db, origins, publicPath);
296
+ }
297
+ }
293
298
  var files_server = {
294
- filesController,
295
- filesRoutes
296
- // FileModel
299
+ initialize: initializeFiles,
300
+ routes: {
301
+ filesRoutes
302
+ },
303
+ controllers: {
304
+ filesController
305
+ }
297
306
  };
298
307
  const files_server$1 = /* @__PURE__ */ getDefaultExportFromCjs(files_server);
299
308
  export {
@@ -189,13 +189,26 @@ var photo_model = (db) => {
189
189
  });
190
190
  return Photo;
191
191
  };
192
- const galleryController = gallery_controller;
192
+ const GalleryController = gallery_controller;
193
193
  const galleryRoutes = gallery_routes;
194
194
  const PhotoModel = photo_model;
195
+ function initializeGallery(app, db, origins, publicPath) {
196
+ db.photo = PhotoModel(db);
197
+ if (app) {
198
+ galleryRoutes(app, db);
199
+ }
200
+ }
195
201
  var gallery_server = {
196
- galleryController,
197
- galleryRoutes,
198
- PhotoModel
202
+ initialize: initializeGallery,
203
+ models: {
204
+ PhotoModel
205
+ },
206
+ routes: {
207
+ galleryRoutes
208
+ },
209
+ controllers: {
210
+ GalleryController
211
+ }
199
212
  };
200
213
  const gallery_server$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(gallery_server);
201
214
  module.exports = gallery_server$1;
@@ -188,13 +188,26 @@ var photo_model = (db) => {
188
188
  });
189
189
  return Photo;
190
190
  };
191
- const galleryController = gallery_controller;
191
+ const GalleryController = gallery_controller;
192
192
  const galleryRoutes = gallery_routes;
193
193
  const PhotoModel = photo_model;
194
+ function initializeGallery(app, db, origins, publicPath) {
195
+ db.photo = PhotoModel(db);
196
+ if (app) {
197
+ galleryRoutes(app, db);
198
+ }
199
+ }
194
200
  var gallery_server = {
195
- galleryController,
196
- galleryRoutes,
197
- PhotoModel
201
+ initialize: initializeGallery,
202
+ models: {
203
+ PhotoModel
204
+ },
205
+ routes: {
206
+ galleryRoutes
207
+ },
208
+ controllers: {
209
+ GalleryController
210
+ }
198
211
  };
199
212
  const gallery_server$1 = /* @__PURE__ */ getDefaultExportFromCjs(gallery_server);
200
213
  export {