@ozdao/martyrs 0.2.519 → 0.2.520
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chats.server.cjs +198 -1
- package/dist/chats.server.js +198 -1
- package/dist/{main-Wr1_4rwl.cjs → main-BM3GslOO.cjs} +6 -6
- package/dist/{main-DgGUrhjT.js → main-Qcn7YlTx.js} +1832 -1828
- 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/Feed/Feed.vue.cjs +0 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +0 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.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 +40 -50
- 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 +9 -0
- package/dist/martyrs/src/modules/auth/views/store/auth.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.js +9 -0
- package/dist/martyrs/src/modules/auth/views/store/auth.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/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 +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.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/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 +0 -1
- 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 +0 -1
- 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 +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +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/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 +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +1 -1
- 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/router/music.cjs +0 -1
- package/dist/martyrs/src/modules/music/router/music.cjs.map +1 -1
- package/dist/martyrs/src/modules/music/router/music.js +0 -1
- 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 +2 -3
- 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 +2 -3
- 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/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/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 +5 -5
- 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 +5 -5
- 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/pages/CategoryEdit.vue.cjs +2 -3
- 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 +2 -3
- 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 +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- 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 +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.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 +2 -2
- 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 +2 -2
- 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/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 +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/notifications.server.cjs +0 -24
- package/dist/notifications.server.js +0 -24
- package/dist/orders.server.cjs +1 -4
- package/dist/orders.server.js +1 -4
- package/dist/organizations.server.cjs +115 -39
- package/dist/organizations.server.js +115 -39
- package/dist/style.css +9 -9
- package/dist/{web-42I-Howt.cjs → web-B0cfxzgu.cjs} +1 -1
- package/dist/{web-ByhZ_fIu.js → web-DVR8m2fm.js} +1 -1
- package/package.json +1 -1
- package/src/components/Feed/Feed.old.vue +0 -1
- package/src/components/Feed/Feed.vue +0 -30
- package/src/modules/auth/FIXES.md +2 -26
- 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 +15 -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/views/mixins/mixins.js +7 -0
- 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/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/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/typography.scss +20 -5
- package/dist/martyrs/src/components/Address/Address.vue2.cjs.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/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/CLAUDE.MD +0 -15
- 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/organizations/store/departments.js +0 -137
- package/src/modules/organizations/store/invites.js +0 -76
- package/src/modules/organizations/store/memberships.js +0 -110
|
@@ -16,7 +16,7 @@ import { V as Verifier, a as Validator } from "./globals.verifier-DFqKQ7hK.js";
|
|
|
16
16
|
const controllerFactory$2 = (db) => {
|
|
17
17
|
const Department = db.department;
|
|
18
18
|
const readOne = (req, res) => {
|
|
19
|
-
Department.findOne({ _id: req.params._id }).populate("members.user").populate("subdepartments").then((department) => {
|
|
19
|
+
Department.findOne({ _id: req.params._id }).populate("members.user", "-password").populate("subdepartments").then((department) => {
|
|
20
20
|
if (!department) {
|
|
21
21
|
return res.status(404).send({ message: "Отдел не найден" });
|
|
22
22
|
}
|
|
@@ -25,38 +25,43 @@ const controllerFactory$2 = (db) => {
|
|
|
25
25
|
res.status(500).send({ message: err.message });
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
const read = (req, res) => {
|
|
29
|
-
|
|
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: {
|
package/dist/style.css
CHANGED
|
@@ -785,9 +785,6 @@ button[data-v-2ba40647]:disabled {
|
|
|
785
785
|
pointer-events: none;
|
|
786
786
|
transform: translate(-50%, -100%);
|
|
787
787
|
margin-top: -8px;
|
|
788
|
-
}.spoiler {
|
|
789
|
-
overflow: hidden;
|
|
790
|
-
transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
791
788
|
}
|
|
792
789
|
.icon-custom {
|
|
793
790
|
background: white;
|
|
@@ -1505,6 +1502,9 @@ to {
|
|
|
1505
1502
|
.menu-nav__link_active {
|
|
1506
1503
|
transform: translateX(0%);
|
|
1507
1504
|
opacity: 1;
|
|
1505
|
+
}.spoiler {
|
|
1506
|
+
overflow: hidden;
|
|
1507
|
+
transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
1508
1508
|
}
|
|
1509
1509
|
.rotate-180[data-v-2c43f1ca] {
|
|
1510
1510
|
transform: rotate(180deg);
|
|
@@ -2154,6 +2154,11 @@ to {
|
|
|
2154
2154
|
|
|
2155
2155
|
/* Add styles for the user card component here */
|
|
2156
2156
|
|
|
2157
|
+
.subdepartmentsartment[data-v-d50948c2] {
|
|
2158
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2159
|
+
margin-top: 1rem;
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2157
2162
|
/* Ваши стили */
|
|
2158
2163
|
.thc {
|
|
2159
2164
|
position: absolute;
|
|
@@ -2202,11 +2207,6 @@ to {
|
|
|
2202
2207
|
white-space: pre-line;
|
|
2203
2208
|
word-wrap: break-word;
|
|
2204
2209
|
}
|
|
2205
|
-
.subdepartmentsartment[data-v-7a0fa935] {
|
|
2206
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2207
|
-
margin-top: 1rem;
|
|
2208
|
-
}
|
|
2209
|
-
|
|
2210
2210
|
.documents[data-v-101cc538] {
|
|
2211
2211
|
display: flex;
|
|
2212
2212
|
flex-direction: column;
|
|
@@ -2569,7 +2569,7 @@ to { opacity: 1; transform: translateY(0);
|
|
|
2569
2569
|
width: 100%;
|
|
2570
2570
|
}
|
|
2571
2571
|
|
|
2572
|
-
.subspotsartment[data-v-
|
|
2572
|
+
.subspotsartment[data-v-a06dc1fc] {
|
|
2573
2573
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2574
2574
|
margin-top: 1rem;
|
|
2575
2575
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./main-
|
|
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
|
@@ -207,7 +207,6 @@ import BottomSheet from '@martyrs/src/components/BottomSheet/BottomSheet.vue';
|
|
|
207
207
|
|
|
208
208
|
import BlockSearch from '@martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue'
|
|
209
209
|
import BlockSorting from '@martyrs/src/modules/globals/views/components/blocks/BlockSorting.vue'
|
|
210
|
-
import BlockFilter from '@martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue'
|
|
211
210
|
|
|
212
211
|
import FiltersBar from '@martyrs/src/modules/globals/views/components/sections/Filters.vue'
|
|
213
212
|
|
|
@@ -35,35 +35,6 @@
|
|
|
35
35
|
/>
|
|
36
36
|
</Dropdown>
|
|
37
37
|
|
|
38
|
-
<!-- <template
|
|
39
|
-
v-if="filter"
|
|
40
|
-
>
|
|
41
|
-
<div
|
|
42
|
-
:class="filter.class || 'bg-light'"
|
|
43
|
-
class="flex-center flex pd-thin bg-light radius-medium aspect-1x1 h-100"
|
|
44
|
-
>
|
|
45
|
-
<IconFilter @click="() => filter.active = !filter.active" class="w-1r h-auto"/>
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<BottomSheet
|
|
50
|
-
:show="filter.active"
|
|
51
|
-
@toggle="() => filter.active = false"
|
|
52
|
-
class="z-index-10 pos-fixed pos-r-0"
|
|
53
|
-
:class="{
|
|
54
|
-
'pos-t-0': filter.active,
|
|
55
|
-
'pos-t-100': !filter.active
|
|
56
|
-
}"
|
|
57
|
-
>
|
|
58
|
-
<BlockFilter
|
|
59
|
-
v-model:filter="filter"
|
|
60
|
-
:options="filter.options"
|
|
61
|
-
@click_filter="() => { filter.active = false } "
|
|
62
|
-
class="h-max w-100 pd-small pd-b-5r bg-light"
|
|
63
|
-
/>
|
|
64
|
-
</BottomSheet>
|
|
65
|
-
</template> -->
|
|
66
|
-
|
|
67
38
|
<Dropdown
|
|
68
39
|
v-if="sort && !sort.hideButton"
|
|
69
40
|
:label="{
|
|
@@ -207,7 +178,6 @@ import BottomSheet from '@martyrs/src/components/BottomSheet/BottomSheet.vue';
|
|
|
207
178
|
|
|
208
179
|
import BlockSearch from '@martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue'
|
|
209
180
|
import BlockSorting from '@martyrs/src/modules/globals/views/components/blocks/BlockSorting.vue'
|
|
210
|
-
import BlockFilter from '@martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue'
|
|
211
181
|
|
|
212
182
|
import FiltersBar from '@martyrs/src/modules/globals/views/components/sections/Filters.vue'
|
|
213
183
|
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
- Привязку JWT к `sessionId`,
|
|
26
26
|
- Проверку `session.isActive === true` при валидации токена,
|
|
27
27
|
- Хендлер `logout` — деактивация сессии,
|
|
28
|
+
- Использовать вебсокеты для отображения онлайн, был в сети 15 секунд назад и так далее.
|
|
28
29
|
- Очистку всех сессий при сбросе пароля.
|
|
29
30
|
|
|
30
31
|
---
|
|
@@ -57,29 +58,4 @@
|
|
|
57
58
|
`auth` отвечает за личность,
|
|
58
59
|
`organizations` — за полномочия.
|
|
59
60
|
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
### 7. **Нет централизованного конфиг-менеджера**
|
|
63
|
-
- Время жизни токенов, secure-куки, mobile-режим — всё разнесено по коду в разных местах.
|
|
64
|
-
- Приходится искать руками `process.env.MOBILE_APP`, `SECURE`, `TTL` в разных модулях.
|
|
65
|
-
|
|
66
|
-
📌 **Решение:**
|
|
67
|
-
Создать `configs/auth.config.js`:
|
|
68
|
-
```js
|
|
69
|
-
export default {
|
|
70
|
-
jwt: {
|
|
71
|
-
secret: process.env.JWT_SECRET,
|
|
72
|
-
ttl: 86400,
|
|
73
|
-
},
|
|
74
|
-
otp: {
|
|
75
|
-
ttl: 300,
|
|
76
|
-
},
|
|
77
|
-
cookie: {
|
|
78
|
-
secure: process.env.NODE_ENV === 'production',
|
|
79
|
-
sameSite: 'Lax',
|
|
80
|
-
},
|
|
81
|
-
...
|
|
82
|
-
};
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
---
|
|
61
|
+
---
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
/>
|
|
27
27
|
|
|
28
28
|
<div>
|
|
29
|
-
<p class="h4">{{ name }}</p>
|
|
29
|
+
<p class="h4 mn-b-thin">{{ name }}</p>
|
|
30
30
|
<span class="t-transp mn-r-small">{{phone || email}}</span>
|
|
31
31
|
</div>
|
|
32
32
|
|
|
33
33
|
<div v-if="action || role" class="mn-l-auto flex-stretch flex-v-center flex">
|
|
34
34
|
<span
|
|
35
35
|
v-if="role"
|
|
36
|
-
class="flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-
|
|
36
|
+
class="flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-thin bg-main"
|
|
37
37
|
>
|
|
38
38
|
{{role}}
|
|
39
39
|
</span>
|
|
@@ -43,7 +43,7 @@ import { computed, onMounted, ref, onBeforeMount } from 'vue'
|
|
|
43
43
|
import { useRoute, useRouter } from 'vue-router'
|
|
44
44
|
// Import state
|
|
45
45
|
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
|
|
46
|
-
import
|
|
46
|
+
import invitesStore from '@martyrs/src/modules/organizations/store/invites.store.js'
|
|
47
47
|
// Import validation
|
|
48
48
|
import * as inputsValidation from '@martyrs/src/modules/auth/views/validations/inputs.validation'
|
|
49
49
|
const passswordValidation = ref(null)
|
|
@@ -52,7 +52,7 @@ const route = useRoute()
|
|
|
52
52
|
const router = useRouter()
|
|
53
53
|
// Lifecycles
|
|
54
54
|
onMounted(async () => {
|
|
55
|
-
await
|
|
55
|
+
await invitesStore.read({ code: route.query.inviteCode })
|
|
56
56
|
})
|
|
57
57
|
// Methods
|
|
58
58
|
async function onSubmit() {
|
|
@@ -157,27 +157,28 @@
|
|
|
157
157
|
|
|
158
158
|
<RouterView />
|
|
159
159
|
|
|
160
|
-
<Menu
|
|
161
|
-
<
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
160
|
+
<Menu class="mn-b-regular bg-light">
|
|
161
|
+
<template v-for="(module, moduleName) in modules" :key="moduleName">
|
|
162
|
+
<MenuItem
|
|
163
|
+
v-if="isModuleInstalled(moduleName) && (!module.visible || module.visible(auth))"
|
|
164
|
+
@click="router.push({
|
|
165
|
+
name: `${module.route}`,
|
|
166
|
+
params: {
|
|
167
|
+
_id: route.params._id,
|
|
168
|
+
user: route.params._id
|
|
169
|
+
}
|
|
170
|
+
})"
|
|
171
|
+
class="profile-menu-item cursor-pointer"
|
|
172
|
+
>
|
|
173
|
+
<component
|
|
174
|
+
:is="module.icon"
|
|
175
|
+
v-if="module.icon"
|
|
176
|
+
class="i-semi"
|
|
177
|
+
:icon="true"
|
|
178
|
+
/>
|
|
179
|
+
<span>{{ module.displayName }}</span>
|
|
180
|
+
</MenuItem>
|
|
181
|
+
</template>
|
|
181
182
|
</Menu>
|
|
182
183
|
|
|
183
184
|
<Menu
|
|
@@ -270,7 +271,8 @@ import { useRoute, useRouter } from 'vue-router'
|
|
|
270
271
|
// Import state
|
|
271
272
|
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
|
|
272
273
|
import * as users from '@martyrs/src/modules/auth/views/store/users.js'
|
|
273
|
-
import
|
|
274
|
+
import membershipsStore from '@martyrs/src/modules/organizations/store/memberships.store.js'
|
|
275
|
+
import { useGlobalMixins } from '@martyrs/src/modules/globals/views/mixins/mixins.js'
|
|
274
276
|
// Accessing router
|
|
275
277
|
const route = useRoute()
|
|
276
278
|
const router = useRouter()
|
|
@@ -278,22 +280,26 @@ const router = useRouter()
|
|
|
278
280
|
const show = ref(false)
|
|
279
281
|
|
|
280
282
|
const store = inject('store')
|
|
283
|
+
const { isModuleInstalled } = useGlobalMixins()
|
|
281
284
|
|
|
282
|
-
const
|
|
285
|
+
const modules = {
|
|
283
286
|
events: {
|
|
284
287
|
displayName: 'Events',
|
|
285
288
|
route: 'User Events',
|
|
286
|
-
icon: IconEvents
|
|
289
|
+
icon: IconEvents,
|
|
290
|
+
visible: () => true
|
|
287
291
|
},
|
|
288
292
|
organizations: {
|
|
289
293
|
displayName: 'Groups',
|
|
290
294
|
route: 'User Organizations',
|
|
291
|
-
icon: IconGroups
|
|
295
|
+
icon: IconGroups,
|
|
296
|
+
visible: () => true
|
|
292
297
|
},
|
|
293
298
|
blogposts: {
|
|
294
299
|
displayName: 'Posts',
|
|
295
300
|
route: 'User Posts',
|
|
296
|
-
icon: IconCommunity
|
|
301
|
+
icon: IconCommunity,
|
|
302
|
+
visible: () => true
|
|
297
303
|
},
|
|
298
304
|
orders: {
|
|
299
305
|
displayName: 'Orders',
|
|
@@ -309,27 +315,6 @@ const moduleMapping = {
|
|
|
309
315
|
}
|
|
310
316
|
}
|
|
311
317
|
|
|
312
|
-
const filteredModules = computed(() => {
|
|
313
|
-
return store.modules
|
|
314
|
-
.map(moduleName => {
|
|
315
|
-
return {
|
|
316
|
-
name: moduleName,
|
|
317
|
-
...moduleMapping[moduleName]
|
|
318
|
-
}
|
|
319
|
-
})
|
|
320
|
-
.filter(module => {
|
|
321
|
-
// Проверяем существование маппинга для модуля
|
|
322
|
-
if (!moduleMapping[module.name]) return false;
|
|
323
|
-
|
|
324
|
-
// Проверяем видимость модуля, если есть условие visible
|
|
325
|
-
if (module.visible && typeof module.visible === 'function') {
|
|
326
|
-
return module.visible(auth);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
// По умолчанию показываем модуль, если есть маппинг
|
|
330
|
-
return true;
|
|
331
|
-
})
|
|
332
|
-
})
|
|
333
318
|
|
|
334
319
|
onMounted(async () => {
|
|
335
320
|
await users.actions.read({ _id: route.params._id, user: auth.state.user._id });
|
|
@@ -337,7 +322,7 @@ onMounted(async () => {
|
|
|
337
322
|
})
|
|
338
323
|
|
|
339
324
|
const handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {
|
|
340
|
-
|
|
325
|
+
membershipsStore.handleMembershipUpdate(users.state.current, membership, status, target, statusName, statusNumber)
|
|
341
326
|
};
|
|
342
327
|
|
|
343
328
|
function logout () {
|
|
@@ -12,13 +12,11 @@ const features = computed(() => tm('auth.features'))
|
|
|
12
12
|
|
|
13
13
|
<template>
|
|
14
14
|
<Slider :showDots="true" :slideCount="features.length" class="auth_slider h-100">
|
|
15
|
-
<div class="carousel__slide" v-for="(feature, index) in features" :key="index">
|
|
16
|
-
<div class="
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
<p class='t-center t-transp w-100'>{{ feature.description }}</p>
|
|
21
|
-
</div>
|
|
15
|
+
<div class="grid o-hidden h-100 carousel__slide" style=" grid-template-rows: 1fr auto;" v-for="(feature, index) in features" :key="index">
|
|
16
|
+
<div class="h-100 background-div" :style="`background-image: url(/features/${index}.png);`"></div>
|
|
17
|
+
<div class="h-100 pd-big">
|
|
18
|
+
<h5 class="t-center w-100 mn-b-regular">{{ feature.title }}</h5>
|
|
19
|
+
<p class='t-center t-transp w-100'>{{ feature.description }}</p>
|
|
22
20
|
</div>
|
|
23
21
|
</div>
|
|
24
22
|
</Slider>
|