@ozdao/martyrs 0.2.518 → 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.
- package/dist/_virtual/index.cjs +4 -4
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.cjs +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/{abac-Cf_9lCSh.js → abac-CnJsrv8S.js} +3 -3
- package/dist/{abac-6LjoG9u-.cjs → abac-DOyUjhee.cjs} +3 -3
- package/dist/builder.cjs +27 -25
- package/dist/builder.js +27 -25
- package/dist/chats.server.cjs +198 -1
- package/dist/chats.server.js +198 -1
- package/dist/{crud-sE7GLPbj.js → crud-BIFl1W1i.js} +6 -6
- package/dist/{crud-JN_LFj01.cjs → crud-CC6k6yY5.cjs} +6 -6
- package/dist/{globals.logger-CZMgIMlM.cjs → globals.logger-BuW7JHMY.cjs} +63 -53
- package/dist/{globals.logger-Bf6rRU7j.js → globals.logger-VRHh-WUW.js} +63 -53
- package/dist/{globals.observer-CV2wCzzh.cjs → globals.observer-C_FYclgV.cjs} +36 -1
- package/dist/{globals.observer-CDqUjVU5.js → globals.observer-MZsqaE6F.js} +36 -1
- package/dist/globals.server.cjs +1 -1
- package/dist/globals.server.js +1 -1
- package/dist/inventory.server.cjs +276 -376
- package/dist/inventory.server.js +276 -376
- package/dist/main-BM3GslOO.cjs +11 -0
- package/dist/{main-wmEhGVvD.js → main-Qcn7YlTx.js} +1834 -1830
- package/dist/martyrs/src/components/Address/{Address.vue2.cjs → Address.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Address/{Address.vue2.js.map → Address.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Address/{Address.vue2.js → Address.vue.js} +2 -2
- package/dist/martyrs/src/components/Address/Address.vue.js.map +1 -0
- package/dist/martyrs/src/components/Button/Button.vue.cjs +1 -1
- package/dist/martyrs/src/components/Button/Button.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Button/Button.vue.js +1 -1
- package/dist/martyrs/src/components/Button/Button.vue.js.map +1 -1
- package/dist/martyrs/src/components/Chips/{Chips.vue.cjs → Chips.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Chips/{Chips.vue.js → Chips.vue2.js} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.cjs → Dropdown.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.js → Dropdown.vue2.js} +2 -2
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.cjs.map → Dropdown.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs +0 -93
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js +1 -94
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs +93 -0
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js +94 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +2 -3
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -3
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.js +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.js +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.js.map +1 -1
- package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue2.cjs → LocationMarker.vue.cjs} +2 -2
- package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue2.js.map → LocationMarker.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue2.js → LocationMarker.vue.js} +2 -2
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue.js.map +1 -0
- package/dist/martyrs/src/components/Select/{Select.vue2.cjs → Select.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Select/{Select.vue2.js.map → Select.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Select/{Select.vue2.js → Select.vue.js} +2 -2
- package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/blocks/CardUser.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/blocks/CardUser.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +4 -4
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +41 -51
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +59 -69
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +11 -13
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +11 -13
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.cjs +10 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.js +10 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.cjs +6 -0
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js +6 -0
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.cjs +27 -11
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js +28 -12
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.cjs +62 -0
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js +63 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js.map +1 -1
- package/dist/martyrs/src/modules/chats/store/chat.store.cjs +60 -1
- package/dist/martyrs/src/modules/chats/store/chat.store.cjs.map +1 -1
- package/dist/martyrs/src/modules/chats/store/chat.store.js +60 -1
- package/dist/martyrs/src/modules/chats/store/chat.store.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs +3 -3
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +3 -3
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs +50 -368
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js +53 -371
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +2 -3
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +2 -3
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/LocationSelection.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.cjs +16 -3
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.js +17 -4
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs +7 -0
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.js +7 -0
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.js.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.cjs +67 -43
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +68 -44
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.cjs +22 -7
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +23 -8
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.cjs +47 -32
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +48 -33
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.cjs +47 -26
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +48 -27
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.cjs +42 -52
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +43 -53
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs +18 -18
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/store/{ inventory.store.cjs → inventory.store.cjs} +46 -2
- package/dist/martyrs/src/modules/inventory/store/inventory.store.cjs.map +1 -0
- package/dist/martyrs/src/modules/inventory/store/{ inventory.store.js → inventory.store.js} +46 -2
- package/dist/martyrs/src/modules/inventory/store/inventory.store.js.map +1 -0
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs +180 -19
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +181 -20
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +1 -1
- package/dist/martyrs/src/modules/music/router/music.cjs +1 -2
- package/dist/martyrs/src/modules/music/router/music.cjs.map +1 -1
- package/dist/martyrs/src/modules/music/router/music.js +1 -2
- package/dist/martyrs/src/modules/music/router/music.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +3 -4
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +3 -4
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.cjs +2 -2
- package/dist/martyrs/src/modules/orders/orders.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.js +2 -2
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/orders/router/customers.router.cjs +1 -1
- package/dist/martyrs/src/modules/orders/router/customers.router.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/router/customers.router.js +1 -1
- package/dist/martyrs/src/modules/orders/router/customers.router.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -24
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +5 -27
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.cjs +4 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js +4 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +3 -3
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.cjs +195 -0
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +195 -0
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.cjs +402 -0
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +402 -0
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.cjs +86 -0
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +86 -0
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs +10 -10
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +11 -11
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +279 -191
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +285 -197
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +7 -7
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +7 -7
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.cjs +4 -4
- package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.js +4 -4
- package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +42 -41
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +53 -52
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.cjs +23 -16
- package/dist/martyrs/src/modules/organizations/organizations.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.js +35 -28
- package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/departments.router.cjs +0 -18
- package/dist/martyrs/src/modules/organizations/router/departments.router.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/departments.router.js +0 -18
- package/dist/martyrs/src/modules/organizations/router/departments.router.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/store/departments.store.cjs +6 -0
- package/dist/martyrs/src/modules/organizations/store/departments.store.cjs.map +1 -0
- package/dist/martyrs/src/modules/organizations/store/departments.store.js +6 -0
- package/dist/martyrs/src/modules/organizations/store/departments.store.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/store/invites.store.cjs +6 -0
- package/dist/martyrs/src/modules/organizations/store/invites.store.cjs.map +1 -0
- package/dist/martyrs/src/modules/organizations/store/invites.store.js +6 -0
- package/dist/martyrs/src/modules/organizations/store/invites.store.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/store/memberships.store.cjs +20 -0
- package/dist/martyrs/src/modules/organizations/store/memberships.store.cjs.map +1 -0
- package/dist/martyrs/src/modules/organizations/store/memberships.store.js +20 -0
- package/dist/martyrs/src/modules/organizations/store/memberships.store.js.map +1 -0
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +3 -4
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +3 -4
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +2 -2
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +3 -3
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +3 -3
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs +60 -272
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +62 -274
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +4 -4
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/music.server.cjs +9 -9
- package/dist/music.server.js +9 -9
- package/dist/notifications.server.cjs +0 -24
- package/dist/notifications.server.js +0 -24
- package/dist/orders.server.cjs +3 -6
- package/dist/orders.server.js +3 -6
- package/dist/organizations.server.cjs +119 -43
- package/dist/organizations.server.js +119 -43
- package/dist/products.server.cjs +5 -5
- package/dist/products.server.js +5 -5
- package/dist/rents.server.cjs +3 -3
- package/dist/rents.server.js +3 -3
- package/dist/style.css +16 -17
- package/dist/wallet.server.cjs +2 -2
- package/dist/wallet.server.js +2 -2
- package/dist/{web-B5wZTKbK.cjs → web-B0cfxzgu.cjs} +1 -1
- package/dist/{web-520xCgXy.js → web-DVR8m2fm.js} +1 -1
- package/package.json +1 -1
- package/src/builder/modes/ssr.rspack.dev.js +20 -12
- package/src/builder/rspack/rspack.config.base.js +16 -15
- package/src/components/Button/Button.vue +1 -1
- package/src/components/Feed/Feed.old.vue +0 -1
- package/src/components/Feed/Feed.vue +1 -31
- package/src/components/Loader/Loader.vue +1 -1
- package/src/modules/auth/FIXES.md +61 -0
- package/src/modules/auth/PROMT.md +33 -0
- package/src/modules/auth/auth.server.js +1 -0
- package/src/modules/auth/views/components/blocks/CardUser.vue +2 -2
- package/src/modules/auth/views/components/layouts/Auth.vue +1 -1
- package/src/modules/auth/views/components/pages/Invite.vue +2 -2
- package/src/modules/auth/views/components/pages/Profile.vue +33 -48
- package/src/modules/auth/views/components/sections/SliderFeatures.vue +5 -7
- package/src/modules/auth/views/store/auth.js +16 -1
- package/src/modules/auth//320/220/320/240/320/245/320/230/320/242/320/225/320/232/320/242/320/243/320/240/320/220.md +445 -0
- package/src/modules/backoffice/components/partials/Sidebar.vue +6 -0
- package/src/modules/chats/CLAUDE.md +137 -0
- package/src/modules/chats/components/blocks/ChatMessage.vue +12 -0
- package/src/modules/chats/components/sections/ChatWindow.vue +84 -2
- package/src/modules/chats/controllers/chats.controller.js +187 -0
- package/src/modules/chats/models/chat.model.js +21 -0
- package/src/modules/chats/routes/chats.routes.js +46 -0
- package/src/modules/chats/store/chat.store.js +67 -0
- package/src/modules/community/components/layouts/Community.vue +2 -2
- package/src/modules/community/components/pages/Posts.vue +3 -328
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Events.vue +2 -2
- package/src/modules/globals/controllers/classes/globals.cache.js +64 -55
- package/src/modules/globals/controllers/classes/globals.logger.js +40 -4
- package/src/modules/globals/controllers/classes/globals.observer.js +54 -4
- package/src/modules/globals/views/components/partials/Header.vue +1 -1
- package/src/modules/globals/views/components/partials/Sidebar.vue +17 -13
- package/src/modules/globals/views/mixins/mixins.js +7 -0
- package/src/modules/inventory/CLAUDE.md +330 -0
- package/src/modules/inventory/PROMT.md +25 -0
- package/src/modules/inventory/components/forms/AdjustmentForm.vue +53 -36
- package/src/modules/inventory/components/forms/ColumnSettingsMenu.vue +11 -6
- package/src/modules/inventory/components/forms/HistoryView.vue +21 -9
- package/src/modules/inventory/components/forms/StockAlertsForm.vue +33 -22
- package/src/modules/inventory/components/pages/Inventory.vue +40 -40
- package/src/modules/inventory/components/pages/InventoryEdit.vue +1 -1
- package/src/modules/inventory/docs/01-intro.md +126 -0
- package/src/modules/inventory/docs/02-architecture.md +266 -0
- package/src/modules/inventory/docs/03-components-and-relationships.md +338 -0
- package/src/modules/inventory/docs/04-business-logic-and-algorithms.md +376 -0
- package/src/modules/inventory/docs/05-api-specification.md +356 -0
- package/src/modules/inventory/docs/06-access-control.md +320 -0
- package/src/modules/inventory/inventory.server.js +6 -2
- package/src/modules/inventory/{services → middlewares}/inventory.verifier.js +5 -16
- package/src/modules/inventory/models/stock.availability.model.js +20 -7
- package/src/modules/inventory/routes/inventory.routes.js +14 -17
- package/src/modules/inventory/services/adjustment.service.js +137 -0
- package/src/modules/inventory/services/audit.service.js +160 -0
- package/src/modules/inventory/services/availability.service.js +323 -0
- package/src/modules/inventory/services/inventory.helpers.old.js +217 -0
- package/src/modules/inventory/store/{ inventory.store.js → inventory.store.js} +0 -14
- package/src/modules/inventory/workers/inventory.availability.worker.js +29 -30
- package/src/modules/marketplace/views/components/layouts/Marketplace.vue +160 -8
- package/src/modules/notifications/controllers/notifications.controller.js +0 -6
- package/src/modules/notifications/services/notification.service.js +1 -17
- package/src/modules/notifications/services/web-push.service.js +0 -2
- package/src/modules/orders/components/blocks/CardOrderBackoffice.vue +2 -2
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
- package/src/modules/orders/controllers/orders.controller.js +2 -4
- package/src/modules/orders/orders.client.js +2 -2
- package/src/modules/orders/router/customers.router.js +1 -1
- package/src/modules/organizations/CLAUDE.md +259 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -22
- package/src/modules/organizations/components/blocks/Socials.vue +1 -1
- package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +3 -3
- package/src/modules/organizations/components/forms/AddExistingMembersForm.vue +191 -0
- package/src/modules/organizations/components/forms/DepartmentForm.vue +390 -0
- package/src/modules/organizations/components/forms/InviteForm.vue +81 -0
- package/src/modules/organizations/components/pages/Department.vue +10 -10
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +8 -8
- package/src/modules/organizations/components/pages/Members.vue +265 -171
- package/src/modules/organizations/components/pages/Organization.new.vue +172 -183
- package/src/modules/organizations/components/pages/Organization.vue +6 -6
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/Organizations.vue +2 -2
- package/src/modules/organizations/components/sections/Publics.vue +4 -4
- package/src/modules/organizations/configs/navigation.organization.config.js +40 -39
- package/src/modules/organizations/controllers/departments.controller.js +53 -34
- package/src/modules/organizations/controllers/invites.controller.js +44 -5
- package/src/modules/organizations/controllers/memberships.controller.js +43 -4
- package/src/modules/organizations/organizations.client.js +24 -15
- package/src/modules/organizations/router/departments.router.js +0 -18
- package/src/modules/organizations/routes/departments.routes.js +6 -8
- package/src/modules/organizations/routes/invites.routes.js +6 -4
- package/src/modules/organizations/routes/memberships.routes.js +6 -5
- package/src/modules/organizations/routes/organizations.routes.js +1 -1
- package/src/modules/organizations/store/departments.store.js +5 -0
- package/src/modules/organizations/store/invites.store.js +5 -0
- package/src/modules/organizations/store/memberships.store.js +23 -0
- package/src/modules/products/components/pages/Products.vue +0 -1
- package/src/modules/spots/components/blocks/CardSpot.vue +1 -1
- package/src/modules/spots/components/pages/Spots.vue +3 -203
- package/src/styles/base/all.scss +0 -15
- package/src/styles/responsive.scss +1 -31
- package/src/styles/typography.scss +20 -5
- package/dist/main-CSzPfQYR.cjs +0 -11
- package/dist/martyrs/src/components/Address/Address.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.js.map +0 -1
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +0 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Select/Select.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +0 -76
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.js +0 -76
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.js.map +0 -1
- package/dist/martyrs/src/modules/inventory/store/ inventory.store.cjs.map +0 -1
- package/dist/martyrs/src/modules/inventory/store/ inventory.store.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +0 -280
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +0 -280
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/store/departments.cjs +0 -121
- package/dist/martyrs/src/modules/organizations/store/departments.cjs.map +0 -1
- package/dist/martyrs/src/modules/organizations/store/departments.js +0 -121
- package/dist/martyrs/src/modules/organizations/store/departments.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/store/invites.cjs +0 -64
- package/dist/martyrs/src/modules/organizations/store/invites.cjs.map +0 -1
- package/dist/martyrs/src/modules/organizations/store/invites.js +0 -64
- package/dist/martyrs/src/modules/organizations/store/invites.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/store/memberships.cjs +0 -87
- package/dist/martyrs/src/modules/organizations/store/memberships.cjs.map +0 -1
- package/dist/martyrs/src/modules/organizations/store/memberships.js +0 -87
- package/dist/martyrs/src/modules/organizations/store/memberships.js.map +0 -1
- package/src/modules/globals/controllers/classes/globals.websocket.ws.js +0 -102
- package/src/modules/globals/views/components/blocks/BlockFilter.vue +0 -60
- package/src/modules/inventory/docs/README.md +0 -291
- package/src/modules/inventory/models/stock.balance.model.js +0 -43
- package/src/modules/inventory/services/inventory.crud.js +0 -710
- package/src/modules/inventory/tests/inventory.test.js +0 -281
- package/src/modules/organizations/store/departments.js +0 -137
- package/src/modules/organizations/store/invites.js +0 -76
- package/src/modules/organizations/store/memberships.js +0 -110
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="for-transition bg-white radius-
|
|
2
|
+
<div class="for-transition bg-white radius-medium w-100">
|
|
3
3
|
<div class="">
|
|
4
4
|
<EmptyState
|
|
5
5
|
v-if="organizations < 1"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
// Import state
|
|
44
44
|
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
|
|
45
45
|
import * as organization from '@martyrs/src/modules/organizations/store/organizations.js'
|
|
46
|
-
import
|
|
46
|
+
import membershipsStore from '@martyrs/src/modules/organizations/store/memberships.store.js'
|
|
47
47
|
|
|
48
48
|
const props = defineProps({
|
|
49
49
|
owner: {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
v-if="!publics || publics.length < 1"
|
|
5
5
|
title="Unfortunately, we couldn't find any recommendations for you"
|
|
6
6
|
description="Explore and find a community or organization that suits your interests."
|
|
7
|
-
class="radius-
|
|
7
|
+
class="radius-medium bg-light pd-medium"
|
|
8
8
|
/>
|
|
9
9
|
|
|
10
10
|
<div v-else class="w-max gap-thin flex-nowrap flex">
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:organization="organization"
|
|
16
16
|
:user="auth.state.user"
|
|
17
17
|
@updateMembership="event => handleMembershipUpdate(event, 'isSubscriber', 'numberOfSubscribers')"
|
|
18
|
-
class="w-max-20r radius-
|
|
18
|
+
class="w-max-20r radius-medium"
|
|
19
19
|
/>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
|
|
30
30
|
import * as organization from '@martyrs/src/modules/organizations/store/organizations.js'
|
|
31
|
-
import
|
|
31
|
+
import membershipsStore from '@martyrs/src/modules/organizations/store/memberships.store.js'
|
|
32
32
|
|
|
33
33
|
let publics = ref(null)
|
|
34
34
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
// Methods
|
|
44
44
|
const handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {
|
|
45
|
-
|
|
45
|
+
membershipsStore.handleMembershipUpdate(publics.value, membership, status, target, statusName, statusNumber)
|
|
46
46
|
};
|
|
47
47
|
</script>
|
|
48
48
|
|
|
@@ -14,7 +14,8 @@ import IconAddress from '@martyrs/src/modules/icons/entities/IconAddress.vue';
|
|
|
14
14
|
|
|
15
15
|
// Import global mixins for access control
|
|
16
16
|
import { useGlobalMixins } from '@martyrs/src/modules/globals/views/mixins/mixins.js';
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
const { hasAccess, isModuleInstalled } = useGlobalMixins();
|
|
18
19
|
|
|
19
20
|
// Organization backoffice navigation configuration
|
|
20
21
|
export const navigationItems = [
|
|
@@ -68,44 +69,44 @@ export const navigationItems = [
|
|
|
68
69
|
name: 'Organization_Products',
|
|
69
70
|
params: { _id: route.params._id }
|
|
70
71
|
}),
|
|
71
|
-
visible: () =>
|
|
72
|
+
visible: () => isModuleInstalled('products')
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
title: 'Events',
|
|
76
|
+
iconComponent: IconEvents,
|
|
77
|
+
route: (auth, route) => ({
|
|
78
|
+
name: 'Organization_Events',
|
|
79
|
+
params: { _id: route.params._id }
|
|
80
|
+
}),
|
|
81
|
+
visible: () => isModuleInstalled('events')
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
title: 'Posts',
|
|
85
|
+
iconComponent: IconCommunity,
|
|
86
|
+
route: (auth, route) => ({
|
|
87
|
+
name: 'Organization_Posts',
|
|
88
|
+
params: { _id: route.params._id }
|
|
89
|
+
}),
|
|
90
|
+
visible: () => isModuleInstalled('blogposts')
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
title: 'Spots',
|
|
94
|
+
iconComponent: IconAddress,
|
|
95
|
+
route: (auth, route) => ({
|
|
96
|
+
name: 'Organization_Spots',
|
|
97
|
+
params: { _id: route.params._id }
|
|
98
|
+
}),
|
|
99
|
+
visible: () => isModuleInstalled('spots')
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
title: 'Gallery',
|
|
103
|
+
iconComponent: IconGallery,
|
|
104
|
+
route: (auth, route) => ({
|
|
105
|
+
name: 'Backoffice Gallery',
|
|
106
|
+
params: { _id: route.params._id }
|
|
107
|
+
}),
|
|
108
|
+
visible: () => isModuleInstalled('gallery')
|
|
72
109
|
},
|
|
73
|
-
// {
|
|
74
|
-
// title: 'Events',
|
|
75
|
-
// iconComponent: IconEvents,
|
|
76
|
-
// route: (auth, route) => ({
|
|
77
|
-
// name: 'Organization_Events',
|
|
78
|
-
// params: { _id: route.params._id }
|
|
79
|
-
// }),
|
|
80
|
-
// visible: () => true // Public access
|
|
81
|
-
// },
|
|
82
|
-
// {
|
|
83
|
-
// title: 'Posts',
|
|
84
|
-
// iconComponent: IconCommunity,
|
|
85
|
-
// route: (auth, route) => ({
|
|
86
|
-
// name: 'Organization_Posts',
|
|
87
|
-
// params: { _id: route.params._id }
|
|
88
|
-
// }),
|
|
89
|
-
// visible: () => true // Public access
|
|
90
|
-
// },
|
|
91
|
-
// {
|
|
92
|
-
// title: 'Spots',
|
|
93
|
-
// iconComponent: IconAddress,
|
|
94
|
-
// route: (auth, route) => ({
|
|
95
|
-
// name: 'Organization_Spots',
|
|
96
|
-
// params: { _id: route.params._id }
|
|
97
|
-
// }),
|
|
98
|
-
// visible: () => true // Public access
|
|
99
|
-
// },
|
|
100
|
-
// {
|
|
101
|
-
// title: 'Gallery',
|
|
102
|
-
// iconComponent: IconGallery,
|
|
103
|
-
// route: (auth, route) => ({
|
|
104
|
-
// name: 'Backoffice Gallery',
|
|
105
|
-
// params: { _id: route.params._id }
|
|
106
|
-
// }),
|
|
107
|
-
// visible: () => true // Public access
|
|
108
|
-
// },
|
|
109
110
|
]
|
|
110
111
|
},
|
|
111
112
|
{
|
|
@@ -155,7 +156,7 @@ export const navigationItems = [
|
|
|
155
156
|
name: 'Organization_Rents',
|
|
156
157
|
params: { _id: route.params._id }
|
|
157
158
|
}),
|
|
158
|
-
visible: (auth, route) => hasAccess(
|
|
159
|
+
visible: (auth, route) => isModuleInstalled('events') && hasAccess(
|
|
159
160
|
route.params._id,
|
|
160
161
|
'orders',
|
|
161
162
|
'read',
|
|
@@ -2,7 +2,7 @@ const controllerFactory = db => {
|
|
|
2
2
|
const Department = db.department;
|
|
3
3
|
const readOne = (req, res) => {
|
|
4
4
|
Department.findOne({ _id: req.params._id })
|
|
5
|
-
.populate('members.user')
|
|
5
|
+
.populate('members.user', '-password')
|
|
6
6
|
.populate('subdepartments')
|
|
7
7
|
.then(department => {
|
|
8
8
|
if (!department) {
|
|
@@ -14,42 +14,56 @@ const controllerFactory = db => {
|
|
|
14
14
|
res.status(500).send({ message: err.message });
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
|
-
const read = (req, res) => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
query
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
const read = async (req, res) => {
|
|
18
|
+
try {
|
|
19
|
+
const { skip = 0, limit = 10, organization, hidden, _id, search } = req.query;
|
|
20
|
+
|
|
21
|
+
let query = {};
|
|
22
|
+
if (_id) {
|
|
23
|
+
query._id = _id;
|
|
24
|
+
}
|
|
25
|
+
if (organization) {
|
|
26
|
+
query.organization = new db.mongoose.Types.ObjectId(organization);
|
|
27
|
+
}
|
|
28
|
+
if (hidden !== undefined) {
|
|
29
|
+
query.hidden = hidden === 'true';
|
|
30
|
+
}
|
|
31
|
+
if (search) {
|
|
32
|
+
query['profile.name'] = new RegExp(search, 'i');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const departments = await Department
|
|
36
|
+
.find(query)
|
|
37
|
+
.skip(parseInt(skip))
|
|
38
|
+
.limit(parseInt(limit))
|
|
39
|
+
.populate('members.user', '-password')
|
|
40
|
+
.populate('subdepartments')
|
|
41
|
+
.sort({ createdAt: -1 });
|
|
42
|
+
|
|
43
|
+
res.send(departments);
|
|
44
|
+
} catch (err) {
|
|
45
|
+
res.status(500).send({ message: err.message });
|
|
25
46
|
}
|
|
26
|
-
Department.find(query, null, options)
|
|
27
|
-
.populate('members.user')
|
|
28
|
-
.populate('subdepartments')
|
|
29
|
-
.then(departments => {
|
|
30
|
-
if (!departments) {
|
|
31
|
-
return res.status(404).send({ message: 'Departments not found' });
|
|
32
|
-
}
|
|
33
|
-
res.send(departments);
|
|
34
|
-
})
|
|
35
|
-
.catch(err => {
|
|
36
|
-
res.status(500).send({ message: err.message });
|
|
37
|
-
});
|
|
38
47
|
};
|
|
39
48
|
const create = async (req, res) => {
|
|
40
49
|
try {
|
|
41
50
|
const newDepartment = new Department({
|
|
42
51
|
...req.body,
|
|
43
|
-
organization: req.params._id,
|
|
52
|
+
organization: req.body.organization || req.params._id,
|
|
44
53
|
});
|
|
45
54
|
const data = await newDepartment.save();
|
|
46
|
-
|
|
55
|
+
const populated = await Department.findById(data._id)
|
|
56
|
+
.populate('members.user', '-password')
|
|
57
|
+
.populate('subdepartments');
|
|
58
|
+
res.send(populated);
|
|
47
59
|
} catch (err) {
|
|
48
60
|
res.status(500).send({ message: err.message });
|
|
49
61
|
}
|
|
50
62
|
};
|
|
51
63
|
const update = (req, res) => {
|
|
52
64
|
Department.findOneAndUpdate({ _id: req.body._id }, req.body, { new: true })
|
|
65
|
+
.populate('members.user', '-password')
|
|
66
|
+
.populate('subdepartments')
|
|
53
67
|
.then(department => {
|
|
54
68
|
if (!department) {
|
|
55
69
|
return res.status(404).send({ message: 'Department not found' });
|
|
@@ -60,17 +74,22 @@ const controllerFactory = db => {
|
|
|
60
74
|
res.status(500).send({ message: err.message });
|
|
61
75
|
});
|
|
62
76
|
};
|
|
63
|
-
const deleteDepartment = (req, res) => {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
res.status(
|
|
73
|
-
}
|
|
77
|
+
const deleteDepartment = async (req, res) => {
|
|
78
|
+
try {
|
|
79
|
+
const { _id } = req.body;
|
|
80
|
+
if (!_id) {
|
|
81
|
+
return res.status(400).send({ message: 'Department ID is required' });
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const department = await Department.findOneAndRemove({ _id });
|
|
85
|
+
if (!department) {
|
|
86
|
+
return res.status(404).send({ message: 'Department not found' });
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
res.send(department);
|
|
90
|
+
} catch (err) {
|
|
91
|
+
res.status(500).send({ message: err.message });
|
|
92
|
+
}
|
|
74
93
|
};
|
|
75
94
|
return {
|
|
76
95
|
readOne,
|
|
@@ -18,10 +18,24 @@ const сontrollerFactory = db => {
|
|
|
18
18
|
};
|
|
19
19
|
const read = async (req, res) => {
|
|
20
20
|
try {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
const { skip = 0, limit = 10, owner, target, search } = req.query;
|
|
22
|
+
|
|
23
|
+
const query = {};
|
|
24
|
+
if (owner) query['owner.user'] = owner;
|
|
25
|
+
if (target) query['owner.target'] = target;
|
|
26
|
+
if (search) {
|
|
27
|
+
query.$or = [
|
|
28
|
+
{ email: new RegExp(search, 'i') },
|
|
29
|
+
{ phone: new RegExp(search, 'i') }
|
|
30
|
+
];
|
|
24
31
|
}
|
|
32
|
+
|
|
33
|
+
const invites = await Invite
|
|
34
|
+
.find(query)
|
|
35
|
+
.skip(parseInt(skip))
|
|
36
|
+
.limit(parseInt(limit))
|
|
37
|
+
.sort({ createdAt: -1 });
|
|
38
|
+
|
|
25
39
|
res.send(invites);
|
|
26
40
|
} catch (err) {
|
|
27
41
|
res.status(500).send({ message: err.message });
|
|
@@ -88,13 +102,37 @@ const сontrollerFactory = db => {
|
|
|
88
102
|
res.status(500).json({ message: 'Something went wrong' });
|
|
89
103
|
}
|
|
90
104
|
};
|
|
105
|
+
const update = async (req, res) => {
|
|
106
|
+
try {
|
|
107
|
+
const { _id, ...updateData } = req.body;
|
|
108
|
+
if (!_id) {
|
|
109
|
+
return res.status(400).send({ message: 'Invite ID is required' });
|
|
110
|
+
}
|
|
111
|
+
const invite = await Invite.findByIdAndUpdate(
|
|
112
|
+
_id,
|
|
113
|
+
updateData,
|
|
114
|
+
{ new: true, runValidators: true }
|
|
115
|
+
);
|
|
116
|
+
if (!invite) {
|
|
117
|
+
return res.status(404).send({ message: 'Invite not found' });
|
|
118
|
+
}
|
|
119
|
+
res.send(invite);
|
|
120
|
+
} catch (err) {
|
|
121
|
+
res.status(500).send({ message: err.message });
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
|
|
91
125
|
const deleteInvite = async (req, res) => {
|
|
92
126
|
try {
|
|
93
|
-
const
|
|
127
|
+
const { _id } = req.body;
|
|
128
|
+
if (!_id) {
|
|
129
|
+
return res.status(400).send({ message: 'Invite ID is required' });
|
|
130
|
+
}
|
|
131
|
+
const invite = await Invite.findOneAndDelete({ _id });
|
|
94
132
|
if (!invite) {
|
|
95
133
|
return res.status(404).send({ message: 'Invite not found' });
|
|
96
134
|
}
|
|
97
|
-
res.send(
|
|
135
|
+
res.send(invite);
|
|
98
136
|
} catch (err) {
|
|
99
137
|
res.status(500).send({ message: err.message });
|
|
100
138
|
}
|
|
@@ -103,6 +141,7 @@ const сontrollerFactory = db => {
|
|
|
103
141
|
getOneByCode,
|
|
104
142
|
read,
|
|
105
143
|
create,
|
|
144
|
+
update,
|
|
106
145
|
delete: deleteInvite,
|
|
107
146
|
};
|
|
108
147
|
};
|
|
@@ -47,7 +47,30 @@ const controllerFactory = db => {
|
|
|
47
47
|
{
|
|
48
48
|
$unwind: '$user',
|
|
49
49
|
},
|
|
50
|
-
|
|
50
|
+
{
|
|
51
|
+
$project: {
|
|
52
|
+
_id: 1,
|
|
53
|
+
user: {
|
|
54
|
+
_id: 1,
|
|
55
|
+
profile: 1,
|
|
56
|
+
roles: 1,
|
|
57
|
+
phone: 1,
|
|
58
|
+
email: 1,
|
|
59
|
+
username: 1,
|
|
60
|
+
socials: 1,
|
|
61
|
+
status: 1,
|
|
62
|
+
createdAt: 1,
|
|
63
|
+
updatedAt: 1
|
|
64
|
+
},
|
|
65
|
+
type: 1,
|
|
66
|
+
role: 1,
|
|
67
|
+
label: 1,
|
|
68
|
+
target: 1,
|
|
69
|
+
createdAt: 1,
|
|
70
|
+
updatedAt: 1
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
// Sorting and Pagination
|
|
51
74
|
...queryProcessorGlobals.getSortingOptions(req.query.sortParam, req.query.sortOrder),
|
|
52
75
|
...queryProcessorGlobals.getPaginationOptions(req.query.skip, req.query.limit),
|
|
53
76
|
]);
|
|
@@ -69,7 +92,9 @@ const controllerFactory = db => {
|
|
|
69
92
|
});
|
|
70
93
|
try {
|
|
71
94
|
const data = await newMembership.save();
|
|
72
|
-
|
|
95
|
+
const populated = await Membership.findById(data._id)
|
|
96
|
+
.populate('user', '-password');
|
|
97
|
+
res.send(populated);
|
|
73
98
|
} catch (err) {
|
|
74
99
|
console.log(err);
|
|
75
100
|
res.status(500).send({ errorCode: 'SERVER_ERROR' });
|
|
@@ -77,7 +102,8 @@ const controllerFactory = db => {
|
|
|
77
102
|
};
|
|
78
103
|
const update = async (req, res) => {
|
|
79
104
|
try {
|
|
80
|
-
const membership = await Membership.findByIdAndUpdate(req.body._id, req.body, { new: true })
|
|
105
|
+
const membership = await Membership.findByIdAndUpdate(req.body._id, req.body, { new: true })
|
|
106
|
+
.populate('user', '-password');
|
|
81
107
|
if (!membership) {
|
|
82
108
|
return res.status(404).send({ errorCode: 'MEMBERSHIP_NOT_FOUND' });
|
|
83
109
|
}
|
|
@@ -88,9 +114,22 @@ const controllerFactory = db => {
|
|
|
88
114
|
};
|
|
89
115
|
const deleteMembership = async (req, res) => {
|
|
90
116
|
const { _id, type, target, user, role } = req.body;
|
|
117
|
+
console.log('Delete membership request:', { _id, type, target, user, role });
|
|
91
118
|
try {
|
|
92
119
|
// Обрабатываем сценарий когда мы не знаем _id нашего membership
|
|
93
|
-
const
|
|
120
|
+
const query = _id
|
|
121
|
+
? { _id: new ObjectId(_id) }
|
|
122
|
+
: {
|
|
123
|
+
type,
|
|
124
|
+
target: new ObjectId(target),
|
|
125
|
+
user: new ObjectId(user),
|
|
126
|
+
role
|
|
127
|
+
};
|
|
128
|
+
console.log('Delete query:', query);
|
|
129
|
+
|
|
130
|
+
const membership = await Membership.findOneAndDelete(query);
|
|
131
|
+
console.log('Deleted membership:', membership);
|
|
132
|
+
|
|
94
133
|
if (!membership) {
|
|
95
134
|
return res.status(404).send({ errorCode: 'MEMBERSHIP_NOT_FOUND' });
|
|
96
135
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Store
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import departmentsStore from './store/departments.store.js';
|
|
3
|
+
import invitesStore from './store/invites.store.js';
|
|
4
|
+
import membershipsStore from './store/memberships.store.js';
|
|
5
5
|
import * as storeOrganizations from './store/organizations.js';
|
|
6
6
|
|
|
7
7
|
// Router
|
|
@@ -10,11 +10,16 @@ import routerOrganization from './router/organizations.js';
|
|
|
10
10
|
// Views
|
|
11
11
|
// Pages
|
|
12
12
|
import Department from './components/pages/Department.vue';
|
|
13
|
-
import
|
|
13
|
+
import Members from './components/pages/Members.vue';
|
|
14
14
|
import Organization from './components/pages/Organization.vue';
|
|
15
15
|
import OrganizationEdit from './components/pages/OrganizationEdit.vue';
|
|
16
16
|
import Organizations from './components/pages/Organizations.vue';
|
|
17
17
|
|
|
18
|
+
// Forms
|
|
19
|
+
import DepartmentForm from './components/forms/DepartmentForm.vue';
|
|
20
|
+
import InviteForm from './components/forms/InviteForm.vue';
|
|
21
|
+
import AddExistingMembersForm from './components/forms/AddExistingMembersForm.vue';
|
|
22
|
+
|
|
18
23
|
// Blocks
|
|
19
24
|
import CardDepartment from './components/blocks/CardDepartment.vue';
|
|
20
25
|
import CardOrganization from './components/blocks/CardOrganization.vue';
|
|
@@ -40,24 +45,27 @@ function initializeOrganization(app, store, router, options = {}) {
|
|
|
40
45
|
|
|
41
46
|
router.addRoute(route, routerOrganization);
|
|
42
47
|
|
|
43
|
-
store.addStore('departments', storeDepartments);
|
|
44
|
-
store.addStore('memberships', storeMemberships);
|
|
45
48
|
store.addStore('organizations', storeOrganizations);
|
|
46
|
-
store.addStore('invites', storeInvites);
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
// Export components, store modules, and routes
|
|
50
52
|
export {
|
|
53
|
+
AddExistingMembersForm,
|
|
51
54
|
ButtonToggleMembership,
|
|
52
55
|
CardDepartment,
|
|
53
56
|
CardOrganization,
|
|
54
57
|
Contacts,
|
|
55
58
|
Department,
|
|
56
|
-
|
|
59
|
+
DepartmentForm,
|
|
57
60
|
DepartmentSub,
|
|
61
|
+
departmentsStore,
|
|
58
62
|
Documents,
|
|
59
63
|
EmptyState,
|
|
64
|
+
InviteForm,
|
|
65
|
+
invitesStore,
|
|
66
|
+
Members,
|
|
60
67
|
MembersAdd,
|
|
68
|
+
membershipsStore,
|
|
61
69
|
Organization,
|
|
62
70
|
OrganizationEdit,
|
|
63
71
|
Organizations,
|
|
@@ -67,9 +75,6 @@ export {
|
|
|
67
75
|
Socials,
|
|
68
76
|
Unit,
|
|
69
77
|
routerOrganization,
|
|
70
|
-
storeDepartments,
|
|
71
|
-
storeInvites,
|
|
72
|
-
storeMemberships,
|
|
73
78
|
storeOrganizations,
|
|
74
79
|
};
|
|
75
80
|
|
|
@@ -77,10 +82,10 @@ const ModuleOrganization = {
|
|
|
77
82
|
initialize: initializeOrganization,
|
|
78
83
|
views: {
|
|
79
84
|
store: {
|
|
80
|
-
|
|
81
|
-
|
|
85
|
+
departmentsStore,
|
|
86
|
+
invitesStore,
|
|
87
|
+
membershipsStore,
|
|
82
88
|
storeOrganizations,
|
|
83
|
-
storeInvites,
|
|
84
89
|
},
|
|
85
90
|
router: {
|
|
86
91
|
routerOrganization,
|
|
@@ -89,9 +94,13 @@ const ModuleOrganization = {
|
|
|
89
94
|
// Pages
|
|
90
95
|
Organization,
|
|
91
96
|
Department,
|
|
97
|
+
Members,
|
|
92
98
|
OrganizationEdit,
|
|
93
99
|
Organizations,
|
|
94
|
-
|
|
100
|
+
// Forms
|
|
101
|
+
DepartmentForm,
|
|
102
|
+
InviteForm,
|
|
103
|
+
AddExistingMembersForm,
|
|
95
104
|
// Blocks
|
|
96
105
|
CardOrganization,
|
|
97
106
|
Unit,
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import * as validationAuth from '@martyrs/src/modules/auth/views/middlewares/auth.validation.js';
|
|
2
2
|
|
|
3
3
|
const departmentRoutes = [
|
|
4
|
-
{
|
|
5
|
-
path: 'departments/create',
|
|
6
|
-
name: 'Department Creation',
|
|
7
|
-
meta: {
|
|
8
|
-
title: 'Создание отдела',
|
|
9
|
-
},
|
|
10
|
-
beforeEnter: [validationAuth.requiresAuth],
|
|
11
|
-
component: () => import('@martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue'),
|
|
12
|
-
},
|
|
13
4
|
{
|
|
14
5
|
path: 'departments/:department',
|
|
15
6
|
name: 'Department',
|
|
@@ -19,15 +10,6 @@ const departmentRoutes = [
|
|
|
19
10
|
beforeEnter: [validationAuth.requiresAuth],
|
|
20
11
|
component: () => import('@martyrs/src/modules/organizations/components/pages/Department.vue'),
|
|
21
12
|
},
|
|
22
|
-
{
|
|
23
|
-
path: 'departments/:department/edit',
|
|
24
|
-
name: 'Department Edit',
|
|
25
|
-
meta: {
|
|
26
|
-
title: 'Редактирование отдела',
|
|
27
|
-
},
|
|
28
|
-
beforeEnter: [validationAuth.requiresAuth],
|
|
29
|
-
component: () => import('@martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue'),
|
|
30
|
-
},
|
|
31
13
|
];
|
|
32
14
|
|
|
33
15
|
export default departmentRoutes;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import controllerFactory from '../controllers/departments.controller.js';
|
|
2
2
|
export default (function (app, db) {
|
|
3
3
|
const controller = controllerFactory(db);
|
|
4
|
-
//
|
|
4
|
+
// Standard Store routes
|
|
5
5
|
app.get('/api/departments/read', controller.read);
|
|
6
|
-
|
|
6
|
+
app.post('/api/departments/create', controller.create);
|
|
7
|
+
app.put('/api/departments/update', controller.update);
|
|
8
|
+
app.post('/api/departments/delete', controller.delete);
|
|
9
|
+
|
|
10
|
+
// Legacy routes for backward compatibility (can be removed later)
|
|
7
11
|
app.get('/api/departments/get/:_id', controller.readOne);
|
|
8
|
-
// Add organization department
|
|
9
|
-
app.post('/api/departments/:_id/create', controller.create);
|
|
10
|
-
// Update organization department
|
|
11
|
-
app.post('/api/departments/:_id/update', controller.update);
|
|
12
|
-
// Delete organization department
|
|
13
|
-
app.delete('/api/departments/:_id/delete', controller.delete);
|
|
14
12
|
});
|
|
@@ -3,12 +3,14 @@ import controllerFactory from '../controllers/invites.controller.js';
|
|
|
3
3
|
export default (function (app, db) {
|
|
4
4
|
const controller = controllerFactory(db);
|
|
5
5
|
const { verifyInvites } = middlewareFactoryAuth(db);
|
|
6
|
-
//
|
|
6
|
+
// Read invites with query parameters
|
|
7
|
+
app.get('/api/invites/read', controller.read);
|
|
8
|
+
// Get one invite by code
|
|
7
9
|
app.get('/api/invites/get/:_id', controller.getOneByCode);
|
|
8
|
-
// Get all organiztions invite
|
|
9
|
-
app.get('/api/invites/:_id', controller.read);
|
|
10
10
|
// Create invite in organization
|
|
11
11
|
app.post('/api/invites/create', [verifyInvites.checkInviteExist, verifyInvites.checkUsersExist], controller.create);
|
|
12
|
+
// Update invite
|
|
13
|
+
app.put('/api/invites/update', controller.update);
|
|
12
14
|
// Delete invite in organization
|
|
13
|
-
app.
|
|
15
|
+
app.post('/api/invites/delete', controller.delete);
|
|
14
16
|
});
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import controllerFactory from '../controllers/memberships.controller.js';
|
|
2
2
|
export default (function (app, db) {
|
|
3
3
|
const controller = controllerFactory(db);
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
// Standard Store routes
|
|
5
|
+
app.get('/api/memberships/read', controller.read);
|
|
6
6
|
app.post('/api/memberships/create', controller.create);
|
|
7
|
-
|
|
8
|
-
app.post('/api/memberships/update', controller.update);
|
|
9
|
-
// Delete organization membder
|
|
7
|
+
app.put('/api/memberships/update', controller.update);
|
|
10
8
|
app.post('/api/memberships/delete', controller.deleteMembership);
|
|
9
|
+
|
|
10
|
+
// Legacy route for backward compatibility
|
|
11
|
+
app.get('/api/memberships', controller.read);
|
|
11
12
|
});
|
|
@@ -20,5 +20,5 @@ export default (function (app, db) {
|
|
|
20
20
|
app.post('/api/organizations/create', controller.create);
|
|
21
21
|
app.post('/api/organizations/:_id/update', controller.update);
|
|
22
22
|
app.delete('/api/organizations/:_id/delete', controller.delete);
|
|
23
|
-
app.get('/api/
|
|
23
|
+
app.get('/api/organizations/check-accesses', [authJwt.verifyToken()], controller.checkAccesses);
|
|
24
24
|
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import Store from '@martyrs/src/modules/globals/views/classes/globals.store.js';
|
|
2
|
+
|
|
3
|
+
const membershipsStore = new Store('/api/memberships');
|
|
4
|
+
|
|
5
|
+
// Add handleMembershipUpdate method
|
|
6
|
+
membershipsStore.handleMembershipUpdate = function(user, membership, status, target, statusName, statusNumber) {
|
|
7
|
+
if (!user) return;
|
|
8
|
+
|
|
9
|
+
// status comes as boolean from ButtonToggleMembership
|
|
10
|
+
if (status === true || status === 'active') {
|
|
11
|
+
user[statusName] = true;
|
|
12
|
+
if (statusNumber) {
|
|
13
|
+
user[statusNumber] = (user[statusNumber] || 0) + 1;
|
|
14
|
+
}
|
|
15
|
+
} else {
|
|
16
|
+
user[statusName] = false;
|
|
17
|
+
if (statusNumber) {
|
|
18
|
+
user[statusNumber] = Math.max((user[statusNumber] || 0) - 1, 0);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default membershipsStore;
|
|
@@ -266,7 +266,6 @@
|
|
|
266
266
|
|
|
267
267
|
import FilterProducts from '@martyrs/src/modules/products/components/sections/FilterProducts.vue'
|
|
268
268
|
import BlockSearch from '@martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue'
|
|
269
|
-
import BlockFilter from '@martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue'
|
|
270
269
|
import Filters from '@martyrs/src/modules/globals/views/components/sections/Filters.vue'
|
|
271
270
|
import Spoiler from "@martyrs/src/components/Spoiler/Spoiler.vue"
|
|
272
271
|
import Field from "@martyrs/src/components/Field/Field.vue"
|