@ozdao/martyrs 0.2.519 → 0.2.520

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/dist/chats.server.cjs +198 -1
  2. package/dist/chats.server.js +198 -1
  3. package/dist/{main-Wr1_4rwl.cjs → main-BM3GslOO.cjs} +6 -6
  4. package/dist/{main-DgGUrhjT.js → main-Qcn7YlTx.js} +1832 -1828
  5. package/dist/martyrs/src/components/Address/{Address.vue2.cjs → Address.vue.cjs} +2 -2
  6. package/dist/martyrs/src/components/Address/{Address.vue2.js.map → Address.vue.cjs.map} +1 -1
  7. package/dist/martyrs/src/components/Address/{Address.vue2.js → Address.vue.js} +2 -2
  8. package/dist/martyrs/src/components/Address/Address.vue.js.map +1 -0
  9. package/dist/martyrs/src/components/Feed/Feed.vue.cjs +0 -1
  10. package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
  11. package/dist/martyrs/src/components/Feed/Feed.vue.js +0 -1
  12. package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
  13. package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue2.cjs → LocationMarker.vue.cjs} +2 -2
  14. package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue2.js.map → LocationMarker.vue.cjs.map} +1 -1
  15. package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue2.js → LocationMarker.vue.js} +2 -2
  16. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue.js.map +1 -0
  17. package/dist/martyrs/src/components/Select/{Select.vue2.cjs → Select.vue.cjs} +2 -2
  18. package/dist/martyrs/src/components/Select/{Select.vue2.js.map → Select.vue.cjs.map} +1 -1
  19. package/dist/martyrs/src/components/Select/{Select.vue2.js → Select.vue.js} +2 -2
  20. package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -0
  21. package/dist/martyrs/src/modules/auth/views/components/blocks/CardUser.vue.cjs +2 -2
  22. package/dist/martyrs/src/modules/auth/views/components/blocks/CardUser.vue.js +2 -2
  23. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
  24. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs.map +1 -1
  25. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
  26. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js.map +1 -1
  27. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
  28. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs.map +1 -1
  29. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +4 -4
  30. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js.map +1 -1
  31. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +40 -50
  32. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
  33. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +59 -69
  34. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
  35. package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +11 -13
  36. package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs.map +1 -1
  37. package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +11 -13
  38. package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
  39. package/dist/martyrs/src/modules/auth/views/store/auth.cjs +9 -0
  40. package/dist/martyrs/src/modules/auth/views/store/auth.cjs.map +1 -1
  41. package/dist/martyrs/src/modules/auth/views/store/auth.js +9 -0
  42. package/dist/martyrs/src/modules/auth/views/store/auth.js.map +1 -1
  43. package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.cjs +27 -11
  44. package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.cjs.map +1 -1
  45. package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js +28 -12
  46. package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js.map +1 -1
  47. package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.cjs +62 -0
  48. package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.cjs.map +1 -1
  49. package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js +63 -1
  50. package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js.map +1 -1
  51. package/dist/martyrs/src/modules/chats/store/chat.store.cjs +60 -1
  52. package/dist/martyrs/src/modules/chats/store/chat.store.cjs.map +1 -1
  53. package/dist/martyrs/src/modules/chats/store/chat.store.js +60 -1
  54. package/dist/martyrs/src/modules/chats/store/chat.store.js.map +1 -1
  55. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs +3 -3
  56. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
  57. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +3 -3
  58. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
  59. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  60. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  61. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs +50 -368
  62. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs.map +1 -1
  63. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js +53 -371
  64. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js.map +1 -1
  65. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  66. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs.map +1 -1
  67. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  68. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js.map +1 -1
  69. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +0 -1
  70. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
  71. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +0 -1
  72. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
  73. package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +2 -2
  74. package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
  75. package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +2 -2
  76. package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
  77. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  78. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  79. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  80. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
  81. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  82. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  83. package/dist/martyrs/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +2 -2
  84. package/dist/martyrs/src/modules/globals/views/components/partials/LocationSelection.vue.js +2 -2
  85. package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.cjs +1 -1
  86. package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs +7 -0
  87. package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs.map +1 -1
  88. package/dist/martyrs/src/modules/globals/views/mixins/mixins.js +7 -0
  89. package/dist/martyrs/src/modules/globals/views/mixins/mixins.js.map +1 -1
  90. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +1 -1
  91. package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.cjs +1 -1
  92. package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +1 -1
  93. package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.cjs +1 -1
  94. package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +1 -1
  95. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs +1 -1
  96. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +1 -1
  97. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs +180 -19
  98. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs.map +1 -1
  99. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +181 -20
  100. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js.map +1 -1
  101. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.cjs +1 -1
  102. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +1 -1
  103. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +1 -1
  104. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
  105. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.cjs +1 -1
  106. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +1 -1
  107. package/dist/martyrs/src/modules/music/router/music.cjs +0 -1
  108. package/dist/martyrs/src/modules/music/router/music.cjs.map +1 -1
  109. package/dist/martyrs/src/modules/music/router/music.js +0 -1
  110. package/dist/martyrs/src/modules/music/router/music.js.map +1 -1
  111. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.cjs +2 -2
  112. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.cjs.map +1 -1
  113. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js +2 -2
  114. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js.map +1 -1
  115. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs +1 -1
  116. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +1 -1
  117. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs +1 -1
  118. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +1 -1
  119. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  120. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  121. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +2 -3
  122. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs.map +1 -1
  123. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -3
  124. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js.map +1 -1
  125. package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  126. package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  127. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -24
  128. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
  129. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +5 -27
  130. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +1 -1
  131. package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.cjs +4 -1
  132. package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.cjs.map +1 -1
  133. package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js +4 -1
  134. package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js.map +1 -1
  135. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +3 -3
  136. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs.map +1 -1
  137. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +3 -3
  138. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js.map +1 -1
  139. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.cjs +195 -0
  140. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.cjs.map +1 -0
  141. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +195 -0
  142. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js.map +1 -0
  143. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.cjs +402 -0
  144. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.cjs.map +1 -0
  145. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +402 -0
  146. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js.map +1 -0
  147. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.cjs +86 -0
  148. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.cjs.map +1 -0
  149. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +86 -0
  150. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js.map +1 -0
  151. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs +10 -10
  152. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
  153. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +11 -11
  154. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
  155. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +279 -191
  156. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
  157. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +285 -197
  158. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
  159. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +5 -5
  160. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  161. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +5 -5
  162. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  163. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
  164. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs.map +1 -1
  165. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  166. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
  167. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  168. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs.map +1 -1
  169. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  170. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
  171. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  172. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  173. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
  174. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs.map +1 -1
  175. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  176. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js.map +1 -1
  177. package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.cjs +4 -4
  178. package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.cjs.map +1 -1
  179. package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.js +4 -4
  180. package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.js.map +1 -1
  181. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +42 -41
  182. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
  183. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +53 -52
  184. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
  185. package/dist/martyrs/src/modules/organizations/organizations.client.cjs +23 -16
  186. package/dist/martyrs/src/modules/organizations/organizations.client.cjs.map +1 -1
  187. package/dist/martyrs/src/modules/organizations/organizations.client.js +35 -28
  188. package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
  189. package/dist/martyrs/src/modules/organizations/router/departments.router.cjs +0 -18
  190. package/dist/martyrs/src/modules/organizations/router/departments.router.cjs.map +1 -1
  191. package/dist/martyrs/src/modules/organizations/router/departments.router.js +0 -18
  192. package/dist/martyrs/src/modules/organizations/router/departments.router.js.map +1 -1
  193. package/dist/martyrs/src/modules/organizations/store/departments.store.cjs +6 -0
  194. package/dist/martyrs/src/modules/organizations/store/departments.store.cjs.map +1 -0
  195. package/dist/martyrs/src/modules/organizations/store/departments.store.js +6 -0
  196. package/dist/martyrs/src/modules/organizations/store/departments.store.js.map +1 -0
  197. package/dist/martyrs/src/modules/organizations/store/invites.store.cjs +6 -0
  198. package/dist/martyrs/src/modules/organizations/store/invites.store.cjs.map +1 -0
  199. package/dist/martyrs/src/modules/organizations/store/invites.store.js +6 -0
  200. package/dist/martyrs/src/modules/organizations/store/invites.store.js.map +1 -0
  201. package/dist/martyrs/src/modules/organizations/store/memberships.store.cjs +20 -0
  202. package/dist/martyrs/src/modules/organizations/store/memberships.store.cjs.map +1 -0
  203. package/dist/martyrs/src/modules/organizations/store/memberships.store.js +20 -0
  204. package/dist/martyrs/src/modules/organizations/store/memberships.store.js.map +1 -0
  205. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -3
  206. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
  207. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -3
  208. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
  209. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  210. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  211. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +1 -1
  212. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  213. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +1 -1
  214. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
  215. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +1 -1
  216. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +1 -1
  217. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +1 -1
  218. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +1 -1
  219. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  220. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  221. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +2 -2
  222. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs.map +1 -1
  223. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +2 -2
  224. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js.map +1 -1
  225. package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  226. package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  227. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
  228. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
  229. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs +60 -272
  230. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs.map +1 -1
  231. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +62 -274
  232. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -1
  233. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +1 -1
  234. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +1 -1
  235. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  236. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  237. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
  238. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  239. package/dist/martyrs.cjs.js +1 -1
  240. package/dist/martyrs.css +1 -1
  241. package/dist/martyrs.es.js +1 -1
  242. package/dist/notifications.server.cjs +0 -24
  243. package/dist/notifications.server.js +0 -24
  244. package/dist/orders.server.cjs +1 -4
  245. package/dist/orders.server.js +1 -4
  246. package/dist/organizations.server.cjs +115 -39
  247. package/dist/organizations.server.js +115 -39
  248. package/dist/style.css +9 -9
  249. package/dist/{web-42I-Howt.cjs → web-B0cfxzgu.cjs} +1 -1
  250. package/dist/{web-ByhZ_fIu.js → web-DVR8m2fm.js} +1 -1
  251. package/package.json +1 -1
  252. package/src/components/Feed/Feed.old.vue +0 -1
  253. package/src/components/Feed/Feed.vue +0 -30
  254. package/src/modules/auth/FIXES.md +2 -26
  255. package/src/modules/auth/views/components/blocks/CardUser.vue +2 -2
  256. package/src/modules/auth/views/components/layouts/Auth.vue +1 -1
  257. package/src/modules/auth/views/components/pages/Invite.vue +2 -2
  258. package/src/modules/auth/views/components/pages/Profile.vue +33 -48
  259. package/src/modules/auth/views/components/sections/SliderFeatures.vue +5 -7
  260. package/src/modules/auth/views/store/auth.js +15 -0
  261. package/src/modules/chats/CLAUDE.md +137 -0
  262. package/src/modules/chats/components/blocks/ChatMessage.vue +12 -0
  263. package/src/modules/chats/components/sections/ChatWindow.vue +84 -2
  264. package/src/modules/chats/controllers/chats.controller.js +187 -0
  265. package/src/modules/chats/models/chat.model.js +21 -0
  266. package/src/modules/chats/routes/chats.routes.js +46 -0
  267. package/src/modules/chats/store/chat.store.js +67 -0
  268. package/src/modules/community/components/layouts/Community.vue +2 -2
  269. package/src/modules/community/components/pages/Posts.vue +3 -328
  270. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  271. package/src/modules/events/components/pages/Events.vue +2 -2
  272. package/src/modules/globals/views/mixins/mixins.js +7 -0
  273. package/src/modules/marketplace/views/components/layouts/Marketplace.vue +160 -8
  274. package/src/modules/notifications/controllers/notifications.controller.js +0 -6
  275. package/src/modules/notifications/services/notification.service.js +1 -17
  276. package/src/modules/notifications/services/web-push.service.js +0 -2
  277. package/src/modules/orders/components/blocks/CardOrderBackoffice.vue +2 -2
  278. package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
  279. package/src/modules/orders/controllers/orders.controller.js +2 -4
  280. package/src/modules/organizations/CLAUDE.md +259 -0
  281. package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -22
  282. package/src/modules/organizations/components/blocks/Socials.vue +1 -1
  283. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +3 -3
  284. package/src/modules/organizations/components/forms/AddExistingMembersForm.vue +191 -0
  285. package/src/modules/organizations/components/forms/DepartmentForm.vue +390 -0
  286. package/src/modules/organizations/components/forms/InviteForm.vue +81 -0
  287. package/src/modules/organizations/components/pages/Department.vue +10 -10
  288. package/src/modules/organizations/components/pages/DepartmentEdit.vue +8 -8
  289. package/src/modules/organizations/components/pages/Members.vue +265 -171
  290. package/src/modules/organizations/components/pages/Organization.new.vue +172 -183
  291. package/src/modules/organizations/components/pages/Organization.vue +6 -6
  292. package/src/modules/organizations/components/pages/OrganizationEdit.vue +1 -1
  293. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  294. package/src/modules/organizations/components/sections/Organizations.vue +2 -2
  295. package/src/modules/organizations/components/sections/Publics.vue +4 -4
  296. package/src/modules/organizations/configs/navigation.organization.config.js +40 -39
  297. package/src/modules/organizations/controllers/departments.controller.js +53 -34
  298. package/src/modules/organizations/controllers/invites.controller.js +44 -5
  299. package/src/modules/organizations/controllers/memberships.controller.js +43 -4
  300. package/src/modules/organizations/organizations.client.js +24 -15
  301. package/src/modules/organizations/router/departments.router.js +0 -18
  302. package/src/modules/organizations/routes/departments.routes.js +6 -8
  303. package/src/modules/organizations/routes/invites.routes.js +6 -4
  304. package/src/modules/organizations/routes/memberships.routes.js +6 -5
  305. package/src/modules/organizations/store/departments.store.js +5 -0
  306. package/src/modules/organizations/store/invites.store.js +5 -0
  307. package/src/modules/organizations/store/memberships.store.js +23 -0
  308. package/src/modules/products/components/pages/Products.vue +0 -1
  309. package/src/modules/spots/components/blocks/CardSpot.vue +1 -1
  310. package/src/modules/spots/components/pages/Spots.vue +3 -203
  311. package/src/styles/base/all.scss +0 -15
  312. package/src/styles/typography.scss +20 -5
  313. package/dist/martyrs/src/components/Address/Address.vue2.cjs.map +0 -1
  314. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs.map +0 -1
  315. package/dist/martyrs/src/components/Select/Select.vue2.cjs.map +0 -1
  316. package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +0 -76
  317. package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs.map +0 -1
  318. package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.js +0 -76
  319. package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.js.map +0 -1
  320. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +0 -280
  321. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +0 -1
  322. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +0 -280
  323. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +0 -1
  324. package/dist/martyrs/src/modules/organizations/store/departments.cjs +0 -121
  325. package/dist/martyrs/src/modules/organizations/store/departments.cjs.map +0 -1
  326. package/dist/martyrs/src/modules/organizations/store/departments.js +0 -121
  327. package/dist/martyrs/src/modules/organizations/store/departments.js.map +0 -1
  328. package/dist/martyrs/src/modules/organizations/store/invites.cjs +0 -64
  329. package/dist/martyrs/src/modules/organizations/store/invites.cjs.map +0 -1
  330. package/dist/martyrs/src/modules/organizations/store/invites.js +0 -64
  331. package/dist/martyrs/src/modules/organizations/store/invites.js.map +0 -1
  332. package/dist/martyrs/src/modules/organizations/store/memberships.cjs +0 -87
  333. package/dist/martyrs/src/modules/organizations/store/memberships.cjs.map +0 -1
  334. package/dist/martyrs/src/modules/organizations/store/memberships.js +0 -87
  335. package/dist/martyrs/src/modules/organizations/store/memberships.js.map +0 -1
  336. package/src/CLAUDE.MD +0 -15
  337. package/src/modules/globals/controllers/classes/globals.websocket.ws.js +0 -102
  338. package/src/modules/globals/views/components/blocks/BlockFilter.vue +0 -60
  339. package/src/modules/organizations/store/departments.js +0 -137
  340. package/src/modules/organizations/store/invites.js +0 -76
  341. package/src/modules/organizations/store/memberships.js +0 -110
@@ -16,7 +16,7 @@ import { V as Verifier, a as Validator } from "./globals.verifier-DFqKQ7hK.js";
16
16
  const controllerFactory$2 = (db) => {
17
17
  const Department = db.department;
18
18
  const readOne = (req, res) => {
19
- Department.findOne({ _id: req.params._id }).populate("members.user").populate("subdepartments").then((department) => {
19
+ Department.findOne({ _id: req.params._id }).populate("members.user", "-password").populate("subdepartments").then((department) => {
20
20
  if (!department) {
21
21
  return res.status(404).send({ message: "Отдел не найден" });
22
22
  }
@@ -25,38 +25,43 @@ const controllerFactory$2 = (db) => {
25
25
  res.status(500).send({ message: err.message });
26
26
  });
27
27
  };
28
- const read = (req, res) => {
29
- let query = {};
30
- let options = {};
31
- if (req.query.organization) {
32
- query.organization = new db.mongoose.Types.ObjectId(req.query.organization);
33
- }
34
- if (req.query.hidden) {
35
- query.hidden = req.query.hidden;
36
- }
37
- Department.find(query, null, options).populate("members.user").populate("subdepartments").then((departments) => {
38
- if (!departments) {
39
- return res.status(404).send({ message: "Departments not found" });
28
+ const read = async (req, res) => {
29
+ try {
30
+ const { skip = 0, limit = 10, organization, hidden, _id, search } = req.query;
31
+ let query = {};
32
+ if (_id) {
33
+ query._id = _id;
34
+ }
35
+ if (organization) {
36
+ query.organization = new db.mongoose.Types.ObjectId(organization);
37
+ }
38
+ if (hidden !== void 0) {
39
+ query.hidden = hidden === "true";
40
40
  }
41
+ if (search) {
42
+ query["profile.name"] = new RegExp(search, "i");
43
+ }
44
+ const departments = await Department.find(query).skip(parseInt(skip)).limit(parseInt(limit)).populate("members.user", "-password").populate("subdepartments").sort({ createdAt: -1 });
41
45
  res.send(departments);
42
- }).catch((err) => {
46
+ } catch (err) {
43
47
  res.status(500).send({ message: err.message });
44
- });
48
+ }
45
49
  };
46
50
  const create = async (req, res) => {
47
51
  try {
48
52
  const newDepartment = new Department({
49
53
  ...req.body,
50
- organization: req.params._id
54
+ organization: req.body.organization || req.params._id
51
55
  });
52
56
  const data = await newDepartment.save();
53
- res.send(data);
57
+ const populated = await Department.findById(data._id).populate("members.user", "-password").populate("subdepartments");
58
+ res.send(populated);
54
59
  } catch (err) {
55
60
  res.status(500).send({ message: err.message });
56
61
  }
57
62
  };
58
63
  const update = (req, res) => {
59
- Department.findOneAndUpdate({ _id: req.body._id }, req.body, { new: true }).then((department) => {
64
+ Department.findOneAndUpdate({ _id: req.body._id }, req.body, { new: true }).populate("members.user", "-password").populate("subdepartments").then((department) => {
60
65
  if (!department) {
61
66
  return res.status(404).send({ message: "Department not found" });
62
67
  }
@@ -65,15 +70,20 @@ const controllerFactory$2 = (db) => {
65
70
  res.status(500).send({ message: err.message });
66
71
  });
67
72
  };
68
- const deleteDepartment = (req, res) => {
69
- Department.findOneAndRemove({ _id: req.body._id, organization: req.params._id }).then((department) => {
73
+ const deleteDepartment = async (req, res) => {
74
+ try {
75
+ const { _id } = req.body;
76
+ if (!_id) {
77
+ return res.status(400).send({ message: "Department ID is required" });
78
+ }
79
+ const department = await Department.findOneAndRemove({ _id });
70
80
  if (!department) {
71
81
  return res.status(404).send({ message: "Department not found" });
72
82
  }
73
- res.send({ message: "Department deleted successfully" });
74
- }).catch((err) => {
83
+ res.send(department);
84
+ } catch (err) {
75
85
  res.status(500).send({ message: err.message });
76
- });
86
+ }
77
87
  };
78
88
  return {
79
89
  readOne,
@@ -505,10 +515,10 @@ const OrganizationModel = (db) => {
505
515
  const departmentsRoutes = function(app, db) {
506
516
  const controller = controllerFactory$2(db);
507
517
  app.get("/api/departments/read", controller.read);
518
+ app.post("/api/departments/create", controller.create);
519
+ app.put("/api/departments/update", controller.update);
520
+ app.post("/api/departments/delete", controller.delete);
508
521
  app.get("/api/departments/get/:_id", controller.readOne);
509
- app.post("/api/departments/:_id/create", controller.create);
510
- app.post("/api/departments/:_id/update", controller.update);
511
- app.delete("/api/departments/:_id/delete", controller.delete);
512
522
  };
513
523
  const { sendEmail, sendSms } = mailing;
514
524
  const сontrollerFactory = (db) => {
@@ -528,10 +538,17 @@ const сontrollerFactory = (db) => {
528
538
  };
529
539
  const read = async (req, res) => {
530
540
  try {
531
- const invites = await Invite.find({ "owner.target": req.params._id });
532
- if (!invites || invites.length === 0) {
533
- return res.status(200).send([]);
541
+ const { skip = 0, limit = 10, owner, target, search } = req.query;
542
+ const query = {};
543
+ if (owner) query["owner.user"] = owner;
544
+ if (target) query["owner.target"] = target;
545
+ if (search) {
546
+ query.$or = [
547
+ { email: new RegExp(search, "i") },
548
+ { phone: new RegExp(search, "i") }
549
+ ];
534
550
  }
551
+ const invites = await Invite.find(query).skip(parseInt(skip)).limit(parseInt(limit)).sort({ createdAt: -1 });
535
552
  res.send(invites);
536
553
  } catch (err) {
537
554
  res.status(500).send({ message: err.message });
@@ -598,13 +615,36 @@ const сontrollerFactory = (db) => {
598
615
  res.status(500).json({ message: "Something went wrong" });
599
616
  }
600
617
  };
618
+ const update = async (req, res) => {
619
+ try {
620
+ const { _id, ...updateData } = req.body;
621
+ if (!_id) {
622
+ return res.status(400).send({ message: "Invite ID is required" });
623
+ }
624
+ const invite = await Invite.findByIdAndUpdate(
625
+ _id,
626
+ updateData,
627
+ { new: true, runValidators: true }
628
+ );
629
+ if (!invite) {
630
+ return res.status(404).send({ message: "Invite not found" });
631
+ }
632
+ res.send(invite);
633
+ } catch (err) {
634
+ res.status(500).send({ message: err.message });
635
+ }
636
+ };
601
637
  const deleteInvite = async (req, res) => {
602
638
  try {
603
- const invite = await Invite.findOneAndDelete({ _id: req.params._id });
639
+ const { _id } = req.body;
640
+ if (!_id) {
641
+ return res.status(400).send({ message: "Invite ID is required" });
642
+ }
643
+ const invite = await Invite.findOneAndDelete({ _id });
604
644
  if (!invite) {
605
645
  return res.status(404).send({ message: "Invite not found" });
606
646
  }
607
- res.send({ message: "Invite deleted successfully" });
647
+ res.send(invite);
608
648
  } catch (err) {
609
649
  res.status(500).send({ message: err.message });
610
650
  }
@@ -613,16 +653,18 @@ const сontrollerFactory = (db) => {
613
653
  getOneByCode,
614
654
  read,
615
655
  create,
656
+ update,
616
657
  delete: deleteInvite
617
658
  };
618
659
  };
619
660
  const invitesRoutes = function(app, db) {
620
661
  const controller = сontrollerFactory(db);
621
662
  const { verifyInvites } = middlewareIndexFactory(db);
663
+ app.get("/api/invites/read", controller.read);
622
664
  app.get("/api/invites/get/:_id", controller.getOneByCode);
623
- app.get("/api/invites/:_id", controller.read);
624
665
  app.post("/api/invites/create", [verifyInvites.checkInviteExist, verifyInvites.checkUsersExist], controller.create);
625
- app.delete("/api/invites/delete/:_id", controller.delete);
666
+ app.put("/api/invites/update", controller.update);
667
+ app.post("/api/invites/delete", controller.delete);
626
668
  };
627
669
  const ObjectId$1 = { Types }.Types.ObjectId;
628
670
  const controllerFactory$1 = (db) => {
@@ -668,7 +710,30 @@ const controllerFactory$1 = (db) => {
668
710
  {
669
711
  $unwind: "$user"
670
712
  },
671
- // Pagination
713
+ {
714
+ $project: {
715
+ _id: 1,
716
+ user: {
717
+ _id: 1,
718
+ profile: 1,
719
+ roles: 1,
720
+ phone: 1,
721
+ email: 1,
722
+ username: 1,
723
+ socials: 1,
724
+ status: 1,
725
+ createdAt: 1,
726
+ updatedAt: 1
727
+ },
728
+ type: 1,
729
+ role: 1,
730
+ label: 1,
731
+ target: 1,
732
+ createdAt: 1,
733
+ updatedAt: 1
734
+ }
735
+ },
736
+ // Sorting and Pagination
672
737
  ...queryProcessorGlobals.getSortingOptions(req.query.sortParam, req.query.sortOrder),
673
738
  ...queryProcessorGlobals.getPaginationOptions(req.query.skip, req.query.limit)
674
739
  ]);
@@ -690,7 +755,8 @@ const controllerFactory$1 = (db) => {
690
755
  });
691
756
  try {
692
757
  const data = await newMembership.save();
693
- res.send(data);
758
+ const populated = await Membership.findById(data._id).populate("user", "-password");
759
+ res.send(populated);
694
760
  } catch (err) {
695
761
  console.log(err);
696
762
  res.status(500).send({ errorCode: "SERVER_ERROR" });
@@ -698,7 +764,7 @@ const controllerFactory$1 = (db) => {
698
764
  };
699
765
  const update = async (req, res) => {
700
766
  try {
701
- const membership = await Membership.findByIdAndUpdate(req.body._id, req.body, { new: true });
767
+ const membership = await Membership.findByIdAndUpdate(req.body._id, req.body, { new: true }).populate("user", "-password");
702
768
  if (!membership) {
703
769
  return res.status(404).send({ errorCode: "MEMBERSHIP_NOT_FOUND" });
704
770
  }
@@ -709,8 +775,17 @@ const controllerFactory$1 = (db) => {
709
775
  };
710
776
  const deleteMembership = async (req, res) => {
711
777
  const { _id, type, target, user, role } = req.body;
778
+ console.log("Delete membership request:", { _id, type, target, user, role });
712
779
  try {
713
- const membership = _id ? await Membership.findOneAndDelete({ _id: new ObjectId$1(_id) }) : await Membership.findOneAndDelete({ type, target, user, role });
780
+ const query = _id ? { _id: new ObjectId$1(_id) } : {
781
+ type,
782
+ target: new ObjectId$1(target),
783
+ user: new ObjectId$1(user),
784
+ role
785
+ };
786
+ console.log("Delete query:", query);
787
+ const membership = await Membership.findOneAndDelete(query);
788
+ console.log("Deleted membership:", membership);
714
789
  if (!membership) {
715
790
  return res.status(404).send({ errorCode: "MEMBERSHIP_NOT_FOUND" });
716
791
  }
@@ -732,10 +807,11 @@ const controllerFactory$1 = (db) => {
732
807
  };
733
808
  const membershipsRoutes = function(app, db) {
734
809
  const controller = controllerFactory$1(db);
735
- app.get("/api/memberships", controller.read);
810
+ app.get("/api/memberships/read", controller.read);
736
811
  app.post("/api/memberships/create", controller.create);
737
- app.post("/api/memberships/update", controller.update);
812
+ app.put("/api/memberships/update", controller.update);
738
813
  app.post("/api/memberships/delete", controller.deleteMembership);
814
+ app.get("/api/memberships", controller.read);
739
815
  };
740
816
  const lookupConfigs = {
741
817
  products: {
package/dist/style.css CHANGED
@@ -785,9 +785,6 @@ button[data-v-2ba40647]:disabled {
785
785
  pointer-events: none;
786
786
  transform: translate(-50%, -100%);
787
787
  margin-top: -8px;
788
- }.spoiler {
789
- overflow: hidden;
790
- transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
791
788
  }
792
789
  .icon-custom {
793
790
  background: white;
@@ -1505,6 +1502,9 @@ to {
1505
1502
  .menu-nav__link_active {
1506
1503
  transform: translateX(0%);
1507
1504
  opacity: 1;
1505
+ }.spoiler {
1506
+ overflow: hidden;
1507
+ transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
1508
1508
  }
1509
1509
  .rotate-180[data-v-2c43f1ca] {
1510
1510
  transform: rotate(180deg);
@@ -2154,6 +2154,11 @@ to {
2154
2154
 
2155
2155
  /* Add styles for the user card component here */
2156
2156
 
2157
+ .subdepartmentsartment[data-v-d50948c2] {
2158
+ border: 1px solid rgba(0, 0, 0, 0.1);
2159
+ margin-top: 1rem;
2160
+ }
2161
+
2157
2162
  /* Ваши стили */
2158
2163
  .thc {
2159
2164
  position: absolute;
@@ -2202,11 +2207,6 @@ to {
2202
2207
  white-space: pre-line;
2203
2208
  word-wrap: break-word;
2204
2209
  }
2205
- .subdepartmentsartment[data-v-7a0fa935] {
2206
- border: 1px solid rgba(0, 0, 0, 0.1);
2207
- margin-top: 1rem;
2208
- }
2209
-
2210
2210
  .documents[data-v-101cc538] {
2211
2211
  display: flex;
2212
2212
  flex-direction: column;
@@ -2569,7 +2569,7 @@ to { opacity: 1; transform: translateY(0);
2569
2569
  width: 100%;
2570
2570
  }
2571
2571
 
2572
- .subspotsartment[data-v-f240e93a] {
2572
+ .subspotsartment[data-v-a06dc1fc] {
2573
2573
  border: 1px solid rgba(0, 0, 0, 0.1);
2574
2574
  margin-top: 1rem;
2575
2575
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./main-Wr1_4rwl.cjs");class p extends c.WebPlugin{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],n="_cap_",o=Object.keys(this.impl).filter(i=>i.indexOf(n)===0);for(const i of o){const r=i.substring(n.length),a=(e=this.impl.getItem(i))!==null&&e!==void 0?e:"",{value:l}=await this.get({key:r});typeof l=="string"?s.push(r):(await this.set({key:r,value:a}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}exports.PreferencesWeb=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./main-BM3GslOO.cjs");class p extends c.WebPlugin{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],n="_cap_",o=Object.keys(this.impl).filter(i=>i.indexOf(n)===0);for(const i of o){const r=i.substring(n.length),a=(e=this.impl.getItem(i))!==null&&e!==void 0?e:"",{value:l}=await this.get({key:r});typeof l=="string"?s.push(r):(await this.set({key:r,value:a}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}exports.PreferencesWeb=p;
@@ -1,4 +1,4 @@
1
- import { W as p } from "./main-DgGUrhjT.js";
1
+ import { W as p } from "./main-Qcn7YlTx.js";
2
2
  class f extends p {
3
3
  constructor() {
4
4
  super(...arguments), this.group = "CapacitorStorage";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/martyrs",
3
- "version": "0.2.519",
3
+ "version": "0.2.520",
4
4
  "description": "Fullstack framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",
@@ -207,7 +207,6 @@ import BottomSheet from '@martyrs/src/components/BottomSheet/BottomSheet.vue';
207
207
 
208
208
  import BlockSearch from '@martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue'
209
209
  import BlockSorting from '@martyrs/src/modules/globals/views/components/blocks/BlockSorting.vue'
210
- import BlockFilter from '@martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue'
211
210
 
212
211
  import FiltersBar from '@martyrs/src/modules/globals/views/components/sections/Filters.vue'
213
212
 
@@ -35,35 +35,6 @@
35
35
  />
36
36
  </Dropdown>
37
37
 
38
- <!-- <template
39
- v-if="filter"
40
- >
41
- <div
42
- :class="filter.class || 'bg-light'"
43
- class="flex-center flex pd-thin bg-light radius-medium aspect-1x1 h-100"
44
- >
45
- <IconFilter @click="() => filter.active = !filter.active" class="w-1r h-auto"/>
46
- </div>
47
-
48
-
49
- <BottomSheet
50
- :show="filter.active"
51
- @toggle="() => filter.active = false"
52
- class="z-index-10 pos-fixed pos-r-0"
53
- :class="{
54
- 'pos-t-0': filter.active,
55
- 'pos-t-100': !filter.active
56
- }"
57
- >
58
- <BlockFilter
59
- v-model:filter="filter"
60
- :options="filter.options"
61
- @click_filter="() => { filter.active = false } "
62
- class="h-max w-100 pd-small pd-b-5r bg-light"
63
- />
64
- </BottomSheet>
65
- </template> -->
66
-
67
38
  <Dropdown
68
39
  v-if="sort && !sort.hideButton"
69
40
  :label="{
@@ -207,7 +178,6 @@ import BottomSheet from '@martyrs/src/components/BottomSheet/BottomSheet.vue';
207
178
 
208
179
  import BlockSearch from '@martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue'
209
180
  import BlockSorting from '@martyrs/src/modules/globals/views/components/blocks/BlockSorting.vue'
210
- import BlockFilter from '@martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue'
211
181
 
212
182
  import FiltersBar from '@martyrs/src/modules/globals/views/components/sections/Filters.vue'
213
183
 
@@ -25,6 +25,7 @@
25
25
  - Привязку JWT к `sessionId`,
26
26
  - Проверку `session.isActive === true` при валидации токена,
27
27
  - Хендлер `logout` — деактивация сессии,
28
+ - Использовать вебсокеты для отображения онлайн, был в сети 15 секунд назад и так далее.
28
29
  - Очистку всех сессий при сбросе пароля.
29
30
 
30
31
  ---
@@ -57,29 +58,4 @@
57
58
  `auth` отвечает за личность,
58
59
  `organizations` — за полномочия.
59
60
 
60
- ---
61
-
62
- ### 7. **Нет централизованного конфиг-менеджера**
63
- - Время жизни токенов, secure-куки, mobile-режим — всё разнесено по коду в разных местах.
64
- - Приходится искать руками `process.env.MOBILE_APP`, `SECURE`, `TTL` в разных модулях.
65
-
66
- 📌 **Решение:**
67
- Создать `configs/auth.config.js`:
68
- ```js
69
- export default {
70
- jwt: {
71
- secret: process.env.JWT_SECRET,
72
- ttl: 86400,
73
- },
74
- otp: {
75
- ttl: 300,
76
- },
77
- cookie: {
78
- secure: process.env.NODE_ENV === 'production',
79
- sameSite: 'Lax',
80
- },
81
- ...
82
- };
83
- ```
84
-
85
- ---
61
+ ---
@@ -26,14 +26,14 @@
26
26
  />
27
27
 
28
28
  <div>
29
- <p class="h4">{{ name }}</p>
29
+ <p class="h4 mn-b-thin">{{ name }}</p>
30
30
  <span class="t-transp mn-r-small">{{phone || email}}</span>
31
31
  </div>
32
32
 
33
33
  <div v-if="action || role" class="mn-l-auto flex-stretch flex-v-center flex">
34
34
  <span
35
35
  v-if="role"
36
- class="flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"
36
+ class="flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-thin bg-main"
37
37
  >
38
38
  {{role}}
39
39
  </span>
@@ -18,7 +18,7 @@
18
18
  </transition>
19
19
  </router-view>
20
20
 
21
- <section class="w-100 desktop-only o-hidden radius-big bg-black t-white">
21
+ <section class="w-100 h-100 desktop-only o-hidden radius-big bg-black t-white">
22
22
  <SliderFeatures/>
23
23
  </section>
24
24
  </div>
@@ -43,7 +43,7 @@ import { computed, onMounted, ref, onBeforeMount } from 'vue'
43
43
  import { useRoute, useRouter } from 'vue-router'
44
44
  // Import state
45
45
  import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
46
- import * as invites from '@martyrs/src/modules/organizations/store/invites.js'
46
+ import invitesStore from '@martyrs/src/modules/organizations/store/invites.store.js'
47
47
  // Import validation
48
48
  import * as inputsValidation from '@martyrs/src/modules/auth/views/validations/inputs.validation'
49
49
  const passswordValidation = ref(null)
@@ -52,7 +52,7 @@ const route = useRoute()
52
52
  const router = useRouter()
53
53
  // Lifecycles
54
54
  onMounted(async () => {
55
- await invites.actions.readOne(route.query.inviteCode)
55
+ await invitesStore.read({ code: route.query.inviteCode })
56
56
  })
57
57
  // Methods
58
58
  async function onSubmit() {
@@ -157,27 +157,28 @@
157
157
 
158
158
  <RouterView />
159
159
 
160
- <Menu v-if="filteredModules.length > 0" class="mn-b-regular bg-light">
161
- <MenuItem
162
- v-for="module in filteredModules"
163
- :key="module.name"
164
- @click="router.push({
165
- name: `${module.route}`,
166
- params: {
167
- _id: route.params._id,
168
- user: route.params._id
169
- }
170
- })"
171
- class="profile-menu-item cursor-pointer"
172
- >
173
- <component
174
- :is="module.icon"
175
- v-if="module.icon"
176
- class="i-semi"
177
- :icon="true"
178
- />
179
- <span>{{ module.displayName }}</span>
180
- </MenuItem>
160
+ <Menu class="mn-b-regular bg-light">
161
+ <template v-for="(module, moduleName) in modules" :key="moduleName">
162
+ <MenuItem
163
+ v-if="isModuleInstalled(moduleName) && (!module.visible || module.visible(auth))"
164
+ @click="router.push({
165
+ name: `${module.route}`,
166
+ params: {
167
+ _id: route.params._id,
168
+ user: route.params._id
169
+ }
170
+ })"
171
+ class="profile-menu-item cursor-pointer"
172
+ >
173
+ <component
174
+ :is="module.icon"
175
+ v-if="module.icon"
176
+ class="i-semi"
177
+ :icon="true"
178
+ />
179
+ <span>{{ module.displayName }}</span>
180
+ </MenuItem>
181
+ </template>
181
182
  </Menu>
182
183
 
183
184
  <Menu
@@ -270,7 +271,8 @@ import { useRoute, useRouter } from 'vue-router'
270
271
  // Import state
271
272
  import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
272
273
  import * as users from '@martyrs/src/modules/auth/views/store/users.js'
273
- import * as memberships from '@martyrs/src/modules/organizations/store/memberships.js'
274
+ import membershipsStore from '@martyrs/src/modules/organizations/store/memberships.store.js'
275
+ import { useGlobalMixins } from '@martyrs/src/modules/globals/views/mixins/mixins.js'
274
276
  // Accessing router
275
277
  const route = useRoute()
276
278
  const router = useRouter()
@@ -278,22 +280,26 @@ const router = useRouter()
278
280
  const show = ref(false)
279
281
 
280
282
  const store = inject('store')
283
+ const { isModuleInstalled } = useGlobalMixins()
281
284
 
282
- const moduleMapping = {
285
+ const modules = {
283
286
  events: {
284
287
  displayName: 'Events',
285
288
  route: 'User Events',
286
- icon: IconEvents
289
+ icon: IconEvents,
290
+ visible: () => true
287
291
  },
288
292
  organizations: {
289
293
  displayName: 'Groups',
290
294
  route: 'User Organizations',
291
- icon: IconGroups
295
+ icon: IconGroups,
296
+ visible: () => true
292
297
  },
293
298
  blogposts: {
294
299
  displayName: 'Posts',
295
300
  route: 'User Posts',
296
- icon: IconCommunity
301
+ icon: IconCommunity,
302
+ visible: () => true
297
303
  },
298
304
  orders: {
299
305
  displayName: 'Orders',
@@ -309,27 +315,6 @@ const moduleMapping = {
309
315
  }
310
316
  }
311
317
 
312
- const filteredModules = computed(() => {
313
- return store.modules
314
- .map(moduleName => {
315
- return {
316
- name: moduleName,
317
- ...moduleMapping[moduleName]
318
- }
319
- })
320
- .filter(module => {
321
- // Проверяем существование маппинга для модуля
322
- if (!moduleMapping[module.name]) return false;
323
-
324
- // Проверяем видимость модуля, если есть условие visible
325
- if (module.visible && typeof module.visible === 'function') {
326
- return module.visible(auth);
327
- }
328
-
329
- // По умолчанию показываем модуль, если есть маппинг
330
- return true;
331
- })
332
- })
333
318
 
334
319
  onMounted(async () => {
335
320
  await users.actions.read({ _id: route.params._id, user: auth.state.user._id });
@@ -337,7 +322,7 @@ onMounted(async () => {
337
322
  })
338
323
 
339
324
  const handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {
340
- memberships.mutations.handleMembershipUpdate(users.state.current, membership, status, target, statusName, statusNumber)
325
+ membershipsStore.handleMembershipUpdate(users.state.current, membership, status, target, statusName, statusNumber)
341
326
  };
342
327
 
343
328
  function logout () {
@@ -12,13 +12,11 @@ const features = computed(() => tm('auth.features'))
12
12
 
13
13
  <template>
14
14
  <Slider :showDots="true" :slideCount="features.length" class="auth_slider h-100">
15
- <div class="carousel__slide" v-for="(feature, index) in features" :key="index">
16
- <div class="parent-div flex flex-h-center" >
17
- <div class="background-div" :style="`background-image: url(/features/${index}.png);`"></div>
18
- <div class="pd-big">
19
- <h5 class="t-center w-100 mn-b-regular">{{ feature.title }}</h5>
20
- <p class='t-center t-transp w-100'>{{ feature.description }}</p>
21
- </div>
15
+ <div class="grid o-hidden h-100 carousel__slide" style=" grid-template-rows: 1fr auto;" v-for="(feature, index) in features" :key="index">
16
+ <div class="h-100 background-div" :style="`background-image: url(/features/${index}.png);`"></div>
17
+ <div class="h-100 pd-big">
18
+ <h5 class="t-center w-100 mn-b-regular">{{ feature.title }}</h5>
19
+ <p class='t-center t-transp w-100'>{{ feature.description }}</p>
22
20
  </div>
23
21
  </div>
24
22
  </Slider>