@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,4 +1,4 @@
|
|
|
1
|
-
import { A as ABAC } from "./abac-
|
|
1
|
+
import { A as ABAC } from "./abac-CnJsrv8S.js";
|
|
2
2
|
import { a as applyCredentialsSchema } from "./credentials.schema-C9FB2EyY.js";
|
|
3
3
|
import { a as applyOwnershipSchema } from "./ownership.schema-BqH4v5vH.js";
|
|
4
4
|
import { a as applyEngagementSchema } from "./engagement.schema-Dh1adRsn.js";
|
|
@@ -8,7 +8,7 @@ import { uuid } from "uuidv4";
|
|
|
8
8
|
import { q as queryProcessorGlobals } from "./queryProcessor-CVcLPEnv.js";
|
|
9
9
|
import { Types } from "mongoose";
|
|
10
10
|
import { g as globalsabac } from "./globals.abac-DNdtSYop.js";
|
|
11
|
-
import { C as
|
|
11
|
+
import { C as CacheNamespaced } from "./globals.logger-VRHh-WUW.js";
|
|
12
12
|
import { a as addUserStatusFields, b as addMembersQuantity } from "./addUserStatusFields-Cc-JpmPo.js";
|
|
13
13
|
import jwt from "jsonwebtoken";
|
|
14
14
|
import * as googleMapsServicesJs from "@googlemaps/google-maps-services-js";
|
|
@@ -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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (
|
|
39
|
-
|
|
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
|
-
}
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
74
|
-
}
|
|
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
|
|
532
|
-
|
|
533
|
-
|
|
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
|
|
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(
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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.
|
|
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: {
|
|
@@ -1014,7 +1090,7 @@ const controllerFactory = (db) => {
|
|
|
1014
1090
|
const Organization = db.organization;
|
|
1015
1091
|
const Department = db.department;
|
|
1016
1092
|
const Membership = db.membership;
|
|
1017
|
-
const cache = new
|
|
1093
|
+
const cache = new CacheNamespaced({ ttlSeconds: 60 * 5 });
|
|
1018
1094
|
const read = async (req, res) => {
|
|
1019
1095
|
console.log("controller query", req.query);
|
|
1020
1096
|
try {
|
|
@@ -1216,7 +1292,7 @@ const organizationsRoutes = function(app, db) {
|
|
|
1216
1292
|
app.post("/api/organizations/create", controller.create);
|
|
1217
1293
|
app.post("/api/organizations/:_id/update", controller.update);
|
|
1218
1294
|
app.delete("/api/organizations/:_id/delete", controller.delete);
|
|
1219
|
-
app.get("/api/
|
|
1295
|
+
app.get("/api/organizations/check-accesses", [authJwt.verifyToken()], controller.checkAccesses);
|
|
1220
1296
|
};
|
|
1221
1297
|
const initOrganizationPolicies = function initializeOrganizationPolicies(abacAccessControl, db) {
|
|
1222
1298
|
const Organization = db.organization;
|
package/dist/products.server.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const globals_logger = require("./globals.logger-
|
|
3
|
+
const globals_logger = require("./globals.logger-BuW7JHMY.cjs");
|
|
4
4
|
const queryProcessor = require("./queryProcessor-B_X680wC.cjs");
|
|
5
5
|
const OpenAI = require("openai");
|
|
6
6
|
const mongoose = require("mongoose");
|
|
@@ -11,12 +11,12 @@ const ownership_schema = require("./ownership.schema-D1p5XSpt.cjs");
|
|
|
11
11
|
const authJwt = require("./authJwt-BIZ2GIfT.cjs");
|
|
12
12
|
const globals_abac = require("./globals.abac-CPXLas7N.cjs");
|
|
13
13
|
const globals_verifier = require("./globals.verifier-C0zj_LLo.cjs");
|
|
14
|
-
const crud = require("./crud-
|
|
15
|
-
const abac = require("./abac-
|
|
14
|
+
const crud = require("./crud-CC6k6yY5.cjs");
|
|
15
|
+
const abac = require("./abac-DOyUjhee.cjs");
|
|
16
16
|
const controllerFactory$1 = (db) => {
|
|
17
17
|
const Category = db.category;
|
|
18
|
-
const logger = new globals_logger.
|
|
19
|
-
const cache = new globals_logger.
|
|
18
|
+
const logger = new globals_logger.LoggerNamespaced(db);
|
|
19
|
+
const cache = new globals_logger.CacheNamespaced();
|
|
20
20
|
const generateSlug = async (name, parentId = null) => {
|
|
21
21
|
const baseSlug = name.toLowerCase().replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").trim("-");
|
|
22
22
|
let slug = baseSlug;
|
package/dist/products.server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as
|
|
1
|
+
import { L as LoggerNamespaced, C as CacheNamespaced } from "./globals.logger-VRHh-WUW.js";
|
|
2
2
|
import { q as queryProcessorGlobals } from "./queryProcessor-CVcLPEnv.js";
|
|
3
3
|
import OpenAI from "openai";
|
|
4
4
|
import { Types } from "mongoose";
|
|
@@ -9,12 +9,12 @@ import { a as applyOwnershipSchema } from "./ownership.schema-BqH4v5vH.js";
|
|
|
9
9
|
import { m as middlewareFactory } from "./authJwt-J1csaMWA.js";
|
|
10
10
|
import { g as globalsabac } from "./globals.abac-DNdtSYop.js";
|
|
11
11
|
import { a as Validator, V as Verifier } from "./globals.verifier-DFqKQ7hK.js";
|
|
12
|
-
import { C as CRUD } from "./crud-
|
|
13
|
-
import { A as ABAC } from "./abac-
|
|
12
|
+
import { C as CRUD } from "./crud-BIFl1W1i.js";
|
|
13
|
+
import { A as ABAC } from "./abac-CnJsrv8S.js";
|
|
14
14
|
const controllerFactory$1 = (db) => {
|
|
15
15
|
const Category = db.category;
|
|
16
|
-
const logger = new
|
|
17
|
-
const cache = new
|
|
16
|
+
const logger = new LoggerNamespaced(db);
|
|
17
|
+
const cache = new CacheNamespaced();
|
|
18
18
|
const generateSlug = async (name, parentId = null) => {
|
|
19
19
|
const baseSlug = name.toLowerCase().replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").trim("-");
|
|
20
20
|
let slug = baseSlug;
|
package/dist/rents.server.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const index = require("./index-BFxqqmgh.cjs");
|
|
4
4
|
const globals_abac = require("./globals.abac-CPXLas7N.cjs");
|
|
5
|
-
const globals_logger = require("./globals.logger-
|
|
5
|
+
const globals_logger = require("./globals.logger-BuW7JHMY.cjs");
|
|
6
6
|
const globals_verifier = require("./globals.verifier-C0zj_LLo.cjs");
|
|
7
7
|
const queryProcessor = require("./queryProcessor-B_X680wC.cjs");
|
|
8
8
|
const queryValidatorConfig = {
|
|
@@ -61,8 +61,8 @@ const queryVerifier = new globals_verifier.Verifier(queryValidatorConfig);
|
|
|
61
61
|
const bodyVerifier = new globals_verifier.Verifier(bodyValidatorConfig);
|
|
62
62
|
const controller = (db) => {
|
|
63
63
|
const Rent = db.rent;
|
|
64
|
-
const logger = new globals_logger.
|
|
65
|
-
const cache = new globals_logger.
|
|
64
|
+
const logger = new globals_logger.LoggerNamespaced(db);
|
|
65
|
+
const cache = new globals_logger.CacheNamespaced({ ttlSeconds: 300 });
|
|
66
66
|
const cacheMetadata = /* @__PURE__ */ new Map();
|
|
67
67
|
const invalidateCacheForRent = async (rentId, productId, startDate, endDate) => {
|
|
68
68
|
const specificTags = [`rent:${rentId}`, `product:${productId}`];
|
package/dist/rents.server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { m as middlewareIndexFactory } from "./index-_Edcmck_.js";
|
|
2
2
|
import { g as globalsabac } from "./globals.abac-DNdtSYop.js";
|
|
3
|
-
import { L as
|
|
3
|
+
import { L as LoggerNamespaced, C as CacheNamespaced } from "./globals.logger-VRHh-WUW.js";
|
|
4
4
|
import { a as Validator, V as Verifier } from "./globals.verifier-DFqKQ7hK.js";
|
|
5
5
|
import { q as queryProcessorGlobals } from "./queryProcessor-CVcLPEnv.js";
|
|
6
6
|
const queryValidatorConfig = {
|
|
@@ -59,8 +59,8 @@ const queryVerifier = new Verifier(queryValidatorConfig);
|
|
|
59
59
|
const bodyVerifier = new Verifier(bodyValidatorConfig);
|
|
60
60
|
const controller = (db) => {
|
|
61
61
|
const Rent = db.rent;
|
|
62
|
-
const logger = new
|
|
63
|
-
const cache = new
|
|
62
|
+
const logger = new LoggerNamespaced(db);
|
|
63
|
+
const cache = new CacheNamespaced({ ttlSeconds: 300 });
|
|
64
64
|
const cacheMetadata = /* @__PURE__ */ new Map();
|
|
65
65
|
const invalidateCacheForRent = async (rentId, productId, startDate, endDate) => {
|
|
66
66
|
const specificTags = [`rent:${rentId}`, `product:${productId}`];
|
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);
|
|
@@ -1532,28 +1532,27 @@ to {
|
|
|
1532
1532
|
transform: translateY(0);
|
|
1533
1533
|
}
|
|
1534
1534
|
|
|
1535
|
-
.hidden[data-v-
|
|
1535
|
+
.hidden[data-v-35fd35e3] {
|
|
1536
1536
|
opacity: 0;
|
|
1537
1537
|
width: 0;
|
|
1538
1538
|
display: none;
|
|
1539
1539
|
}
|
|
1540
|
-
.visible[data-v-
|
|
1540
|
+
.visible[data-v-35fd35e3] {
|
|
1541
1541
|
opacity: 1;
|
|
1542
1542
|
display: block;
|
|
1543
1543
|
}
|
|
1544
|
-
|
|
1545
1544
|
/* Scrollbar styles */
|
|
1546
|
-
[data-v-
|
|
1545
|
+
[data-v-35fd35e3]::-webkit-scrollbar {
|
|
1547
1546
|
width: 6px;
|
|
1548
1547
|
}
|
|
1549
|
-
[data-v-
|
|
1548
|
+
[data-v-35fd35e3]::-webkit-scrollbar-track {
|
|
1550
1549
|
background: transparent;
|
|
1551
1550
|
}
|
|
1552
|
-
[data-v-
|
|
1551
|
+
[data-v-35fd35e3]::-webkit-scrollbar-thumb {
|
|
1553
1552
|
background-color: var(--grey-micro);
|
|
1554
1553
|
border-radius: 3px;
|
|
1555
1554
|
}
|
|
1556
|
-
[data-v-
|
|
1555
|
+
[data-v-35fd35e3]::-webkit-scrollbar-thumb:hover {
|
|
1557
1556
|
background-color: var(--grey-small);
|
|
1558
1557
|
}
|
|
1559
1558
|
.eye[data-v-4241147a] {
|
|
@@ -2155,6 +2154,11 @@ to {
|
|
|
2155
2154
|
|
|
2156
2155
|
/* Add styles for the user card component here */
|
|
2157
2156
|
|
|
2157
|
+
.subdepartmentsartment[data-v-d50948c2] {
|
|
2158
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2159
|
+
margin-top: 1rem;
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2158
2162
|
/* Ваши стили */
|
|
2159
2163
|
.thc {
|
|
2160
2164
|
position: absolute;
|
|
@@ -2203,11 +2207,6 @@ to {
|
|
|
2203
2207
|
white-space: pre-line;
|
|
2204
2208
|
word-wrap: break-word;
|
|
2205
2209
|
}
|
|
2206
|
-
.subdepartmentsartment[data-v-7a0fa935] {
|
|
2207
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2208
|
-
margin-top: 1rem;
|
|
2209
|
-
}
|
|
2210
|
-
|
|
2211
2210
|
.documents[data-v-101cc538] {
|
|
2212
2211
|
display: flex;
|
|
2213
2212
|
flex-direction: column;
|
|
@@ -2557,7 +2556,7 @@ to { opacity: 1; transform: translateY(0);
|
|
|
2557
2556
|
.custom-table td[data-v-b85cde7e] {
|
|
2558
2557
|
vertical-align: middle;
|
|
2559
2558
|
}
|
|
2560
|
-
.border-b[data-v-
|
|
2559
|
+
.border-b[data-v-4201929e] {
|
|
2561
2560
|
border-bottom: 1px solid rgba(var(--black), 0.1);
|
|
2562
2561
|
}
|
|
2563
2562
|
|
|
@@ -2570,7 +2569,7 @@ to { opacity: 1; transform: translateY(0);
|
|
|
2570
2569
|
width: 100%;
|
|
2571
2570
|
}
|
|
2572
2571
|
|
|
2573
|
-
.subspotsartment[data-v-
|
|
2572
|
+
.subspotsartment[data-v-a06dc1fc] {
|
|
2574
2573
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2575
2574
|
margin-top: 1rem;
|
|
2576
2575
|
}
|
package/dist/wallet.server.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const QRCode = require("qrcode");
|
|
4
4
|
const index = require("./index-BFxqqmgh.cjs");
|
|
5
5
|
const tickets_controller = require("./tickets.controller-DdnndM6c.cjs");
|
|
6
|
-
const globals_observer = require("./globals.observer-
|
|
6
|
+
const globals_observer = require("./globals.observer-C_FYclgV.cjs");
|
|
7
7
|
const Stripe = require("stripe");
|
|
8
8
|
const bignumber_js = require("bignumber.js");
|
|
9
9
|
const mongoose = require("mongoose");
|
|
@@ -139,7 +139,7 @@ class StripeWebhook extends Webhook {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
const RoutesPayments = function(app, db, origins, publicPath) {
|
|
142
|
-
const observer = new globals_observer.
|
|
142
|
+
const observer = new globals_observer.ObserverNamespaced();
|
|
143
143
|
new StripeWebhook(app, db, observer);
|
|
144
144
|
const controller = controllerFactory(db);
|
|
145
145
|
console.log("payments ticket", publicPath);
|
package/dist/wallet.server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as QRCode from "qrcode";
|
|
2
2
|
import { m as middlewareIndexFactory } from "./index-_Edcmck_.js";
|
|
3
3
|
import { c as controllerFactory$1 } from "./tickets.controller-C56OvH6v.js";
|
|
4
|
-
import { O as
|
|
4
|
+
import { O as ObserverNamespaced } from "./globals.observer-MZsqaE6F.js";
|
|
5
5
|
import Stripe from "stripe";
|
|
6
6
|
import { BigNumber } from "bignumber.js";
|
|
7
7
|
import { Types } from "mongoose";
|
|
@@ -120,7 +120,7 @@ class StripeWebhook extends Webhook {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
const RoutesPayments = function(app, db, origins, publicPath) {
|
|
123
|
-
const observer = new
|
|
123
|
+
const observer = new ObserverNamespaced();
|
|
124
124
|
new StripeWebhook(app, db, observer);
|
|
125
125
|
const controller = controllerFactory(db);
|
|
126
126
|
console.log("payments ticket", publicPath);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./main-
|
|
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;
|
package/package.json
CHANGED
|
@@ -48,22 +48,29 @@ export default function createSsrDevServer(projectRoot, { clientConfig, apiConfi
|
|
|
48
48
|
const jsonStats = stats.toJson();
|
|
49
49
|
|
|
50
50
|
if (stats.hasErrors()) {
|
|
51
|
-
console.error(chalk.red("
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
} else {
|
|
62
|
-
console.error(chalk.red(err.slice()));
|
|
51
|
+
console.error(chalk.red("❌ Ошибка компиляции"));
|
|
52
|
+
|
|
53
|
+
jsonStats.errors.forEach((err, index) => {
|
|
54
|
+
console.error(chalk.red(`\n=== ОШИБКА ${index + 1} ===`));
|
|
55
|
+
|
|
56
|
+
// Основное сообщение ошибки
|
|
57
|
+
if (err.message) {
|
|
58
|
+
let message = err.message.replace(/\u001b\[[0-9;]*m/g, '');
|
|
59
|
+
console.error(chalk.red(message));
|
|
63
60
|
}
|
|
61
|
+
|
|
62
|
+
// ФАЙЛ ГДЕ ОШИБКА
|
|
63
|
+
if (err.moduleName) {
|
|
64
|
+
console.error(chalk.yellow(`📄 ФАЙЛ: ${err.moduleName}`));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
console.error(''); // пустая строка для разделения
|
|
64
68
|
});
|
|
69
|
+
|
|
65
70
|
return;
|
|
66
71
|
}
|
|
72
|
+
|
|
73
|
+
|
|
67
74
|
const { entrypoints, outputPath } = jsonStats;
|
|
68
75
|
const { main: { assets: [mainChunkPath] } } = entrypoints;
|
|
69
76
|
const mainModulePath = path.resolve(outputPath, mainChunkPath.name);
|
|
@@ -139,6 +146,7 @@ export default function createSsrDevServer(projectRoot, { clientConfig, apiConfi
|
|
|
139
146
|
const clientDevMiddleware = devMiddleware(clientCompiler, {
|
|
140
147
|
publicPath: clientConfig.output.publicPath,
|
|
141
148
|
serverSideRender: true,
|
|
149
|
+
stats: 'minimal', // или 'errors-only'
|
|
142
150
|
stats: {
|
|
143
151
|
children: true
|
|
144
152
|
},
|
|
@@ -144,21 +144,22 @@ export default (projectRoot) => {
|
|
|
144
144
|
level: 'verbose',
|
|
145
145
|
},
|
|
146
146
|
stats: {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
147
|
+
// Минимальный вывод
|
|
148
|
+
preset: 'minimal',
|
|
149
|
+
// Или более детальная настройка:
|
|
150
|
+
modules: false,
|
|
151
|
+
chunks: false,
|
|
152
|
+
chunkModules: false,
|
|
153
|
+
chunkOrigins: false,
|
|
154
|
+
entrypoints: false,
|
|
155
|
+
assets: false,
|
|
156
|
+
moduleTrace: false,
|
|
157
|
+
errorDetails: false,
|
|
158
|
+
// Показывать только ошибки и предупреждения
|
|
159
|
+
errors: true,
|
|
160
160
|
warnings: true,
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
// Цвета в терминале
|
|
162
|
+
colors: true
|
|
163
|
+
}
|
|
163
164
|
};
|
|
164
165
|
};
|
|
@@ -119,7 +119,7 @@ async function Submit() {
|
|
|
119
119
|
<slot></slot>
|
|
120
120
|
</span>
|
|
121
121
|
<!-- Loading state -->
|
|
122
|
-
<Loader v-else-if="loading && !error && showLoader" class="button-content pos-relative pos-t-0 pos-l-0 loading"/>
|
|
122
|
+
<Loader v-else-if="loading && !error && showLoader" class="icon button-content pos-relative pos-t-0 pos-l-0 loading"/>
|
|
123
123
|
<!-- Success state -->
|
|
124
124
|
<span v-else-if="finished && showSucces" class="button-content t-semi t-center w-100 loading t-black">
|
|
125
125
|
<template v-if="text.success">
|
|
@@ -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
|
|