@ozdao/martyrs 0.2.521 → 0.2.523
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/auth.server.cjs +1 -1
- package/dist/auth.server.js +1 -1
- package/dist/chats.server.cjs +22 -4
- package/dist/chats.server.js +22 -4
- package/dist/events.server.cjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/globals.server.cjs +40 -0
- package/dist/globals.server.js +40 -0
- package/dist/{mailing-Bs9ThyVZ.cjs → mailing-DCvDBHVh.cjs} +0 -3
- package/dist/{mailing-DzlhsxCC.js → mailing-DuEFRsa3.js} +0 -3
- package/dist/martyrs/src/components/Button/Button.vue.cjs +1 -1
- package/dist/martyrs/src/components/Button/Button.vue.js +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/Carousel.vue.cjs +1 -1
- package/dist/martyrs/src/components/Feed/Carousel.vue.js +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +2 -2
- package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -2
- 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.vue.cjs → Loader.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Loader/{Loader.vue.js → Loader.vue2.js} +2 -2
- package/dist/martyrs/src/components/Loader/{Loader.vue.cjs.map → Loader.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue.js +1 -1
- package/dist/martyrs/src/components/Menu/{Menu.vue.cjs → Menu.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Menu/{Menu.vue.js → Menu.vue2.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Select/{Select.vue.cjs → Select.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Select/Select.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Select/{Select.vue.js → Select.vue2.js} +2 -2
- package/dist/martyrs/src/components/Select/{Select.vue.cjs.map → Select.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Spoiler/{Spoiler.vue.cjs → Spoiler.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Spoiler/Spoiler.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Spoiler/{Spoiler.vue.js → Spoiler.vue2.js} +2 -2
- package/dist/martyrs/src/components/Spoiler/{Spoiler.vue.cjs.map → Spoiler.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Tab/{Tab.vue.cjs → Tab.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
- package/dist/martyrs/src/components/Tab/{Tab.vue.cjs.map → Tab.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.cjs +4 -6
- package/dist/martyrs/src/modules/auth/views/store/auth.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.js +4 -6
- package/dist/martyrs/src/modules/auth/views/store/auth.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.cjs +5 -1
- 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 +5 -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 +38 -11
- package/dist/martyrs/src/modules/chats/store/chat.store.cjs.map +1 -1
- package/dist/martyrs/src/modules/chats/store/chat.store.js +38 -11
- package/dist/martyrs/src/modules/chats/store/chat.store.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +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/CreateBlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/globals.client.cjs +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
- 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/classes/globals.websocket.cjs +29 -4
- package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js +29 -4
- package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js.map +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/blocks/PopupDateSelector.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.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/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/sections/{Filters.vue.cjs → Filters.vue2.cjs} +2 -2
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/sections/{Filters.vue.js → Filters.vue2.js} +2 -2
- package/dist/martyrs/src/modules/globals/views/components/sections/{Filters.vue.cjs.map → Filters.vue2.js.map} +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.js +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/Inventory.vue.cjs +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/landing/components/sections/SectionGuide.vue.cjs +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.cjs +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +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 +2 -2
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +2 -2
- 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/Artist.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Artist.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/SearchResults.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.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/components/pages/TrackCreate.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/music/router/music.cjs +2 -2
- package/dist/martyrs/src/modules/music/router/music.js +2 -2
- package/dist/martyrs/src/modules/notifications/components/pages/Notifications.vue.cjs +1 -1
- package/dist/martyrs/src/modules/notifications/components/pages/Notifications.vue.js +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.cjs +14 -3
- package/dist/martyrs/src/modules/notifications/notifications.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.js +14 -3
- package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/store/notifications.store.cjs +2 -0
- package/dist/martyrs/src/modules/notifications/store/notifications.store.cjs.map +1 -1
- package/dist/martyrs/src/modules/notifications/store/notifications.store.js +2 -0
- package/dist/martyrs/src/modules/notifications/store/notifications.store.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/forms/FormSelectCustomer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.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/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
- 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 +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +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.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +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.js +3 -3
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Image360.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Image360.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +3 -3
- 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/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- 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/rents/views/components/pages/Rents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.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/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/Spot.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- 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 +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
- package/dist/notifications.server.cjs +21 -33
- package/dist/notifications.server.js +21 -33
- package/dist/orders.server.cjs +1 -1
- package/dist/orders.server.js +1 -1
- package/dist/organizations.server.cjs +1 -1
- package/dist/organizations.server.js +1 -1
- package/dist/{tickets.controller-DdnndM6c.cjs → tickets.controller-9zoaVPcx.cjs} +1 -1
- package/dist/{tickets.controller-C56OvH6v.js → tickets.controller-C8sWVqbB.js} +1 -1
- package/dist/wallet.server.cjs +1 -1
- package/dist/wallet.server.js +1 -1
- package/package.json +1 -1
- package/src/modules/auth/views/store/auth.js +6 -10
- package/src/modules/chats/components/sections/ChatWindow.vue +10 -1
- package/src/modules/chats/models/chat.model.js +5 -1
- package/src/modules/chats/routes/chats.routes.js +17 -2
- package/src/modules/chats/store/chat.store.js +49 -11
- package/src/modules/globals/controllers/classes/globals.websocket.js +56 -2
- package/src/modules/globals/controllers/utils/mailing.js +0 -4
- package/src/modules/globals/globals.client.js +3 -4
- package/src/modules/globals/views/classes/globals.websocket.js +40 -4
- package/src/modules/notifications/controllers/notifications.controller.js +27 -36
- package/src/modules/notifications/notifications.client.js +17 -4
- package/src/modules/notifications/store/notifications.store.js +2 -0
- package/dist/martyrs/src/components/Loader/Loader.vue.js.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +0 -1
- package/dist/martyrs/src/components/Select/Select.vue.js.map +0 -1
- package/dist/martyrs/src/components/Spoiler/Spoiler.vue.js.map +0 -1
- package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue.js.map +0 -1
- package/src/modules/chats/CLAUDE.md +0 -137
- package/src/modules/globals/views/classes/globals.websocket.ws.js +0 -212
package/dist/_virtual/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs");
|
|
4
|
-
const index = require("../node_modules/
|
|
5
|
-
var
|
|
6
|
-
const
|
|
7
|
-
exports.default =
|
|
4
|
+
const index = require("../node_modules/lodash.merge/index.cjs");
|
|
5
|
+
var lodash_mergeExports = index.__require();
|
|
6
|
+
const merge = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(lodash_mergeExports);
|
|
7
|
+
exports.default = merge;
|
|
8
8
|
//# sourceMappingURL=index.cjs.map
|
package/dist/_virtual/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireLodash_merge } from "../node_modules/lodash.merge/index.js";
|
|
3
|
+
var lodash_mergeExports = requireLodash_merge();
|
|
4
|
+
const merge = /* @__PURE__ */ getDefaultExportFromCjs(lodash_mergeExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
merge as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/_virtual/index2.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const _commonjsHelpers = require("./_commonjsHelpers.cjs");
|
|
4
|
-
const index = require("../node_modules/
|
|
5
|
-
var
|
|
6
|
-
const
|
|
7
|
-
exports.default =
|
|
4
|
+
const index = require("../node_modules/fast-deep-equal/index.cjs");
|
|
5
|
+
var fastDeepEqualExports = index.__require();
|
|
6
|
+
const equal = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(fastDeepEqualExports);
|
|
7
|
+
exports.default = equal;
|
|
8
8
|
//# sourceMappingURL=index2.cjs.map
|
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireFastDeepEqual } from "../node_modules/fast-deep-equal/index.js";
|
|
3
|
+
var fastDeepEqualExports = requireFastDeepEqual();
|
|
4
|
+
const equal = /* @__PURE__ */ getDefaultExportFromCjs(fastDeepEqualExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
equal as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index2.js.map
|
package/dist/auth.server.cjs
CHANGED
|
@@ -6,7 +6,7 @@ const bcrypt = require("bcryptjs");
|
|
|
6
6
|
const jwt = require("jsonwebtoken");
|
|
7
7
|
const mongoose = require("mongoose");
|
|
8
8
|
const jwkToPem = require("jwk-to-pem");
|
|
9
|
-
const mailing = require("./mailing-
|
|
9
|
+
const mailing = require("./mailing-DCvDBHVh.cjs");
|
|
10
10
|
const addUserStatusFields = require("./addUserStatusFields-7-66sf45.cjs");
|
|
11
11
|
const credentials_schema = require("./credentials.schema-DwhGdrwC.cjs");
|
|
12
12
|
const socials_schema = require("./socials.schema-CtpSF9dE.cjs");
|
package/dist/auth.server.js
CHANGED
|
@@ -4,7 +4,7 @@ import bcrypt from "bcryptjs";
|
|
|
4
4
|
import jwt from "jsonwebtoken";
|
|
5
5
|
import { Types } from "mongoose";
|
|
6
6
|
import jwkToPem from "jwk-to-pem";
|
|
7
|
-
import { m as mailing } from "./mailing-
|
|
7
|
+
import { m as mailing } from "./mailing-DuEFRsa3.js";
|
|
8
8
|
import { a as addUserStatusFields, b as addMembersQuantity } from "./addUserStatusFields-Cc-JpmPo.js";
|
|
9
9
|
import { a as applyCredentialsSchema } from "./credentials.schema-C9FB2EyY.js";
|
|
10
10
|
import { a as applySocialsSchema } from "./socials.schema-BOZV82Mp.js";
|
package/dist/chats.server.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
require("./mailing-
|
|
3
|
+
require("./mailing-DCvDBHVh.cjs");
|
|
4
4
|
const index = require("./index-BFxqqmgh.cjs");
|
|
5
5
|
const controllerFactory = (db) => {
|
|
6
6
|
const ChatMessage = db.chat;
|
|
@@ -180,7 +180,13 @@ const ChatModel = (db) => {
|
|
|
180
180
|
userId: {
|
|
181
181
|
type: db.mongoose.Schema.Types.ObjectId,
|
|
182
182
|
ref: "User",
|
|
183
|
-
required:
|
|
183
|
+
required: false
|
|
184
|
+
// Make optional for anonymous users
|
|
185
|
+
},
|
|
186
|
+
anonymousId: {
|
|
187
|
+
type: String,
|
|
188
|
+
required: false
|
|
189
|
+
// For anonymous users
|
|
184
190
|
},
|
|
185
191
|
chatId: {
|
|
186
192
|
type: String,
|
|
@@ -218,14 +224,26 @@ const chatsRoutes = function(app, db, wss) {
|
|
|
218
224
|
const controller = controllerFactory(db);
|
|
219
225
|
index.middlewareIndexFactory(db);
|
|
220
226
|
wss.registerModule("chat", async (ws, msg) => {
|
|
227
|
+
console.log("[CHAT WebSocket] Received message type:", msg.type, "from ws.id:", ws.id);
|
|
221
228
|
if (msg.type === "joinChat") {
|
|
222
|
-
|
|
229
|
+
console.log("[CHAT WebSocket] joinChat request for chatId:", msg.chatId);
|
|
230
|
+
if (!msg.chatId) {
|
|
231
|
+
console.log("[CHAT WebSocket] No chatId provided for joinChat");
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
223
234
|
if (!ws.activeChats) ws.activeChats = /* @__PURE__ */ new Set();
|
|
224
235
|
ws.activeChats.add(msg.chatId);
|
|
236
|
+
console.log("[CHAT WebSocket] Client", ws.id, "joined chat:", msg.chatId);
|
|
237
|
+
console.log("[CHAT WebSocket] Client activeChats:", Array.from(ws.activeChats));
|
|
225
238
|
}
|
|
226
239
|
if (msg.type === "message") {
|
|
227
240
|
console.log("[CHAT] Received message:", msg);
|
|
228
|
-
const
|
|
241
|
+
const messageData = {
|
|
242
|
+
...msg,
|
|
243
|
+
userId: ws.userId || void 0,
|
|
244
|
+
anonymousId: ws.anonymousId || void 0
|
|
245
|
+
};
|
|
246
|
+
const savedMessage = await controller.saveMessage(messageData);
|
|
229
247
|
console.log("[CHAT] Saved message:", savedMessage);
|
|
230
248
|
wss.broadcastToModuleWithFilter(
|
|
231
249
|
"chat",
|
package/dist/chats.server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./mailing-
|
|
1
|
+
import "./mailing-DuEFRsa3.js";
|
|
2
2
|
import { m as middlewareIndexFactory } from "./index-_Edcmck_.js";
|
|
3
3
|
const controllerFactory = (db) => {
|
|
4
4
|
const ChatMessage = db.chat;
|
|
@@ -178,7 +178,13 @@ const ChatModel = (db) => {
|
|
|
178
178
|
userId: {
|
|
179
179
|
type: db.mongoose.Schema.Types.ObjectId,
|
|
180
180
|
ref: "User",
|
|
181
|
-
required:
|
|
181
|
+
required: false
|
|
182
|
+
// Make optional for anonymous users
|
|
183
|
+
},
|
|
184
|
+
anonymousId: {
|
|
185
|
+
type: String,
|
|
186
|
+
required: false
|
|
187
|
+
// For anonymous users
|
|
182
188
|
},
|
|
183
189
|
chatId: {
|
|
184
190
|
type: String,
|
|
@@ -216,14 +222,26 @@ const chatsRoutes = function(app, db, wss) {
|
|
|
216
222
|
const controller = controllerFactory(db);
|
|
217
223
|
middlewareIndexFactory(db);
|
|
218
224
|
wss.registerModule("chat", async (ws, msg) => {
|
|
225
|
+
console.log("[CHAT WebSocket] Received message type:", msg.type, "from ws.id:", ws.id);
|
|
219
226
|
if (msg.type === "joinChat") {
|
|
220
|
-
|
|
227
|
+
console.log("[CHAT WebSocket] joinChat request for chatId:", msg.chatId);
|
|
228
|
+
if (!msg.chatId) {
|
|
229
|
+
console.log("[CHAT WebSocket] No chatId provided for joinChat");
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
221
232
|
if (!ws.activeChats) ws.activeChats = /* @__PURE__ */ new Set();
|
|
222
233
|
ws.activeChats.add(msg.chatId);
|
|
234
|
+
console.log("[CHAT WebSocket] Client", ws.id, "joined chat:", msg.chatId);
|
|
235
|
+
console.log("[CHAT WebSocket] Client activeChats:", Array.from(ws.activeChats));
|
|
223
236
|
}
|
|
224
237
|
if (msg.type === "message") {
|
|
225
238
|
console.log("[CHAT] Received message:", msg);
|
|
226
|
-
const
|
|
239
|
+
const messageData = {
|
|
240
|
+
...msg,
|
|
241
|
+
userId: ws.userId || void 0,
|
|
242
|
+
anonymousId: ws.anonymousId || void 0
|
|
243
|
+
};
|
|
244
|
+
const savedMessage = await controller.saveMessage(messageData);
|
|
227
245
|
console.log("[CHAT] Saved message:", savedMessage);
|
|
228
246
|
wss.broadcastToModuleWithFilter(
|
|
229
247
|
"chat",
|
package/dist/events.server.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const queryProcessor$1 = require("./queryProcessor-B_X680wC.cjs");
|
|
|
4
4
|
const metadata_schema = require("./metadata.schema-RlxNv46L.cjs");
|
|
5
5
|
const Stripe = require("stripe");
|
|
6
6
|
const mongoose = require("mongoose");
|
|
7
|
-
const tickets_controller = require("./tickets.controller-
|
|
7
|
+
const tickets_controller = require("./tickets.controller-9zoaVPcx.cjs");
|
|
8
8
|
const common_schema = require("./common.schema-BzFEVNn3.cjs");
|
|
9
9
|
const engagement_schema = require("./engagement.schema-JADHu8pj.cjs");
|
|
10
10
|
const ownership_schema = require("./ownership.schema-D1p5XSpt.cjs");
|
package/dist/events.server.js
CHANGED
|
@@ -2,7 +2,7 @@ import { q as queryProcessorGlobals } from "./queryProcessor-CVcLPEnv.js";
|
|
|
2
2
|
import { c as createFriendlyURL, a as applyMetadataSchema } from "./metadata.schema-CWmcDJN7.js";
|
|
3
3
|
import Stripe from "stripe";
|
|
4
4
|
import { Types } from "mongoose";
|
|
5
|
-
import { c as controllerFactory } from "./tickets.controller-
|
|
5
|
+
import { c as controllerFactory } from "./tickets.controller-C8sWVqbB.js";
|
|
6
6
|
import { a as applyCommonSchema } from "./common.schema-Bw1O5_2Q.js";
|
|
7
7
|
import { a as applyEngagementSchema } from "./engagement.schema-Dh1adRsn.js";
|
|
8
8
|
import { a as applyOwnershipSchema } from "./ownership.schema-BqH4v5vH.js";
|
package/dist/globals.server.cjs
CHANGED
|
@@ -37,6 +37,7 @@ class WebSocketManager {
|
|
|
37
37
|
}
|
|
38
38
|
this.modules = /* @__PURE__ */ new Map();
|
|
39
39
|
this.userConnections = /* @__PURE__ */ new Map();
|
|
40
|
+
this.anonymousConnections = /* @__PURE__ */ new Set();
|
|
40
41
|
this.rpcMethods = /* @__PURE__ */ new Map();
|
|
41
42
|
this.app.ws("/api/ws", {
|
|
42
43
|
maxPayloadLength: 16 * 1024 * 1024,
|
|
@@ -78,6 +79,8 @@ class WebSocketManager {
|
|
|
78
79
|
ws.subscriptions = /* @__PURE__ */ new Set();
|
|
79
80
|
if (ws.userId) {
|
|
80
81
|
this._trackUserConnection(ws.userId, ws);
|
|
82
|
+
} else {
|
|
83
|
+
this.anonymousConnections.add(ws);
|
|
81
84
|
}
|
|
82
85
|
},
|
|
83
86
|
// Обработчик входящих сообщений
|
|
@@ -88,9 +91,11 @@ class WebSocketManager {
|
|
|
88
91
|
const msg = JSON.parse(msgStr);
|
|
89
92
|
if (msg.type === "subscribe" && msg.module && this.modules.has(msg.module)) {
|
|
90
93
|
ws.subscriptions.add(msg.module);
|
|
94
|
+
console.log(`[WebSocket Server] Client ${ws.userId || "anonymous"} subscribed to module: ${msg.module}`);
|
|
91
95
|
return;
|
|
92
96
|
} else if (msg.type === "unsubscribe" && msg.module) {
|
|
93
97
|
ws.subscriptions.delete(msg.module);
|
|
98
|
+
console.log(`[WebSocket Server] Client ${ws.userId || "anonymous"} unsubscribed from module: ${msg.module}`);
|
|
94
99
|
return;
|
|
95
100
|
}
|
|
96
101
|
if (msg.type === "rpc") {
|
|
@@ -98,11 +103,18 @@ class WebSocketManager {
|
|
|
98
103
|
return;
|
|
99
104
|
}
|
|
100
105
|
const moduleName = msg.module;
|
|
106
|
+
console.log(`[WebSocket Server] Message from ${ws.userId || "anonymous"}, module: ${moduleName}, type: ${msg.type}, subscriptions:`, Array.from(ws.subscriptions));
|
|
101
107
|
if (moduleName && this.modules.has(moduleName)) {
|
|
108
|
+
if (msg.type !== "subscribe" && msg.type !== "unsubscribe" && !ws.subscriptions.has(moduleName)) {
|
|
109
|
+
console.log(`[WebSocket Server] Client not subscribed to module: ${moduleName}, ignoring message`);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
102
112
|
const handler = this.modules.get(moduleName);
|
|
103
113
|
Promise.resolve(handler(ws, msg)).catch((err) => {
|
|
104
114
|
console.error(`Error in handler for module ${moduleName}:`, err);
|
|
105
115
|
});
|
|
116
|
+
} else {
|
|
117
|
+
console.log(`[WebSocket Server] Module ${moduleName} not registered`);
|
|
106
118
|
}
|
|
107
119
|
} catch (err) {
|
|
108
120
|
console.error("Invalid message or handler error:", err);
|
|
@@ -133,6 +145,8 @@ class WebSocketManager {
|
|
|
133
145
|
if (this.userConnections.get(userId).size === 0) {
|
|
134
146
|
this.userConnections.delete(userId);
|
|
135
147
|
}
|
|
148
|
+
} else {
|
|
149
|
+
this.anonymousConnections.delete(ws);
|
|
136
150
|
}
|
|
137
151
|
if (ws.subscriptions && typeof ws.subscriptions.clear === "function") {
|
|
138
152
|
ws.subscriptions.clear();
|
|
@@ -300,6 +314,19 @@ class WebSocketManager {
|
|
|
300
314
|
}
|
|
301
315
|
}
|
|
302
316
|
}
|
|
317
|
+
for (const ws of this.anonymousConnections) {
|
|
318
|
+
if (ws.subscriptions.has(moduleName)) {
|
|
319
|
+
try {
|
|
320
|
+
const ok = ws.send(message, false);
|
|
321
|
+
if (!ok) {
|
|
322
|
+
failedSends++;
|
|
323
|
+
}
|
|
324
|
+
} catch (err) {
|
|
325
|
+
failedSends++;
|
|
326
|
+
console.warn("Failed to broadcast message to anonymous:", err);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
303
330
|
if (failedSends > 0) {
|
|
304
331
|
console.warn(`Failed to send broadcast to ${failedSends} connections due to backpressure or closed sockets`);
|
|
305
332
|
}
|
|
@@ -323,6 +350,19 @@ class WebSocketManager {
|
|
|
323
350
|
}
|
|
324
351
|
}
|
|
325
352
|
}
|
|
353
|
+
for (const ws of this.anonymousConnections) {
|
|
354
|
+
if (!ws.subscriptions.has(moduleName)) continue;
|
|
355
|
+
if (!filterFn(ws)) continue;
|
|
356
|
+
try {
|
|
357
|
+
const ok = ws.send(message, false);
|
|
358
|
+
if (!ok) {
|
|
359
|
+
failedSends++;
|
|
360
|
+
}
|
|
361
|
+
} catch (err) {
|
|
362
|
+
failedSends++;
|
|
363
|
+
console.warn("Failed to send filtered broadcast to anonymous:", err);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
326
366
|
if (failedSends > 0) {
|
|
327
367
|
console.warn(`Failed to send filtered broadcast to ${failedSends} connections due to backpressure or closed sockets`);
|
|
328
368
|
}
|
package/dist/globals.server.js
CHANGED
|
@@ -18,6 +18,7 @@ class WebSocketManager {
|
|
|
18
18
|
}
|
|
19
19
|
this.modules = /* @__PURE__ */ new Map();
|
|
20
20
|
this.userConnections = /* @__PURE__ */ new Map();
|
|
21
|
+
this.anonymousConnections = /* @__PURE__ */ new Set();
|
|
21
22
|
this.rpcMethods = /* @__PURE__ */ new Map();
|
|
22
23
|
this.app.ws("/api/ws", {
|
|
23
24
|
maxPayloadLength: 16 * 1024 * 1024,
|
|
@@ -59,6 +60,8 @@ class WebSocketManager {
|
|
|
59
60
|
ws.subscriptions = /* @__PURE__ */ new Set();
|
|
60
61
|
if (ws.userId) {
|
|
61
62
|
this._trackUserConnection(ws.userId, ws);
|
|
63
|
+
} else {
|
|
64
|
+
this.anonymousConnections.add(ws);
|
|
62
65
|
}
|
|
63
66
|
},
|
|
64
67
|
// Обработчик входящих сообщений
|
|
@@ -69,9 +72,11 @@ class WebSocketManager {
|
|
|
69
72
|
const msg = JSON.parse(msgStr);
|
|
70
73
|
if (msg.type === "subscribe" && msg.module && this.modules.has(msg.module)) {
|
|
71
74
|
ws.subscriptions.add(msg.module);
|
|
75
|
+
console.log(`[WebSocket Server] Client ${ws.userId || "anonymous"} subscribed to module: ${msg.module}`);
|
|
72
76
|
return;
|
|
73
77
|
} else if (msg.type === "unsubscribe" && msg.module) {
|
|
74
78
|
ws.subscriptions.delete(msg.module);
|
|
79
|
+
console.log(`[WebSocket Server] Client ${ws.userId || "anonymous"} unsubscribed from module: ${msg.module}`);
|
|
75
80
|
return;
|
|
76
81
|
}
|
|
77
82
|
if (msg.type === "rpc") {
|
|
@@ -79,11 +84,18 @@ class WebSocketManager {
|
|
|
79
84
|
return;
|
|
80
85
|
}
|
|
81
86
|
const moduleName = msg.module;
|
|
87
|
+
console.log(`[WebSocket Server] Message from ${ws.userId || "anonymous"}, module: ${moduleName}, type: ${msg.type}, subscriptions:`, Array.from(ws.subscriptions));
|
|
82
88
|
if (moduleName && this.modules.has(moduleName)) {
|
|
89
|
+
if (msg.type !== "subscribe" && msg.type !== "unsubscribe" && !ws.subscriptions.has(moduleName)) {
|
|
90
|
+
console.log(`[WebSocket Server] Client not subscribed to module: ${moduleName}, ignoring message`);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
83
93
|
const handler = this.modules.get(moduleName);
|
|
84
94
|
Promise.resolve(handler(ws, msg)).catch((err) => {
|
|
85
95
|
console.error(`Error in handler for module ${moduleName}:`, err);
|
|
86
96
|
});
|
|
97
|
+
} else {
|
|
98
|
+
console.log(`[WebSocket Server] Module ${moduleName} not registered`);
|
|
87
99
|
}
|
|
88
100
|
} catch (err) {
|
|
89
101
|
console.error("Invalid message or handler error:", err);
|
|
@@ -114,6 +126,8 @@ class WebSocketManager {
|
|
|
114
126
|
if (this.userConnections.get(userId).size === 0) {
|
|
115
127
|
this.userConnections.delete(userId);
|
|
116
128
|
}
|
|
129
|
+
} else {
|
|
130
|
+
this.anonymousConnections.delete(ws);
|
|
117
131
|
}
|
|
118
132
|
if (ws.subscriptions && typeof ws.subscriptions.clear === "function") {
|
|
119
133
|
ws.subscriptions.clear();
|
|
@@ -281,6 +295,19 @@ class WebSocketManager {
|
|
|
281
295
|
}
|
|
282
296
|
}
|
|
283
297
|
}
|
|
298
|
+
for (const ws of this.anonymousConnections) {
|
|
299
|
+
if (ws.subscriptions.has(moduleName)) {
|
|
300
|
+
try {
|
|
301
|
+
const ok = ws.send(message, false);
|
|
302
|
+
if (!ok) {
|
|
303
|
+
failedSends++;
|
|
304
|
+
}
|
|
305
|
+
} catch (err) {
|
|
306
|
+
failedSends++;
|
|
307
|
+
console.warn("Failed to broadcast message to anonymous:", err);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
284
311
|
if (failedSends > 0) {
|
|
285
312
|
console.warn(`Failed to send broadcast to ${failedSends} connections due to backpressure or closed sockets`);
|
|
286
313
|
}
|
|
@@ -304,6 +331,19 @@ class WebSocketManager {
|
|
|
304
331
|
}
|
|
305
332
|
}
|
|
306
333
|
}
|
|
334
|
+
for (const ws of this.anonymousConnections) {
|
|
335
|
+
if (!ws.subscriptions.has(moduleName)) continue;
|
|
336
|
+
if (!filterFn(ws)) continue;
|
|
337
|
+
try {
|
|
338
|
+
const ok = ws.send(message, false);
|
|
339
|
+
if (!ok) {
|
|
340
|
+
failedSends++;
|
|
341
|
+
}
|
|
342
|
+
} catch (err) {
|
|
343
|
+
failedSends++;
|
|
344
|
+
console.warn("Failed to send filtered broadcast to anonymous:", err);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
307
347
|
if (failedSends > 0) {
|
|
308
348
|
console.warn(`Failed to send filtered broadcast to ${failedSends} connections due to backpressure or closed sockets`);
|
|
309
349
|
}
|
|
@@ -60,11 +60,8 @@ async function sendEmail(to, subject, text, files = []) {
|
|
|
60
60
|
}
|
|
61
61
|
async function sendSms(phone, message) {
|
|
62
62
|
const sessionUrl = `https://api.sms.to/sms/send?api_key=${process.env.SMS_API_KEY}&to=${phone}&message=${encodeURIComponent(message)}&sender_id=${encodeURIComponent(process.env.APP_NAME)}`;
|
|
63
|
-
console.log(`Phone:${phone} message:${message} session: ${sessionUrl}`);
|
|
64
63
|
try {
|
|
65
64
|
const response = await axios.get(sessionUrl);
|
|
66
|
-
console.log(response);
|
|
67
|
-
console.log("SMS sent");
|
|
68
65
|
return true;
|
|
69
66
|
} catch (error) {
|
|
70
67
|
console.log(error);
|
|
@@ -42,11 +42,8 @@ async function sendEmail(to, subject, text, files = []) {
|
|
|
42
42
|
}
|
|
43
43
|
async function sendSms(phone, message) {
|
|
44
44
|
const sessionUrl = `https://api.sms.to/sms/send?api_key=${process.env.SMS_API_KEY}&to=${phone}&message=${encodeURIComponent(message)}&sender_id=${encodeURIComponent(process.env.APP_NAME)}`;
|
|
45
|
-
console.log(`Phone:${phone} message:${message} session: ${sessionUrl}`);
|
|
46
45
|
try {
|
|
47
46
|
const response = await axios.get(sessionUrl);
|
|
48
|
-
console.log(response);
|
|
49
|
-
console.log("SMS sent");
|
|
50
47
|
return true;
|
|
51
48
|
} catch (error) {
|
|
52
49
|
console.log(error);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const Loader = require("../Loader/Loader.
|
|
4
|
+
const Loader = require("../Loader/Loader.vue2.cjs");
|
|
5
5
|
const IconCheckmark = require("../../modules/icons/navigation/IconCheckmark.vue.cjs");
|
|
6
6
|
const IconCross = require("../../modules/icons/navigation/IconCross.vue.cjs");
|
|
7
7
|
;/* empty css */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, createElementBlock, openBlock, normalizeClass, withModifiers, createVNode, createCommentVNode, Transition, withCtx, createBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
|
-
import Loader from "../Loader/Loader.
|
|
2
|
+
import Loader from "../Loader/Loader.vue2.js";
|
|
3
3
|
import _sfc_main$1 from "../../modules/icons/navigation/IconCheckmark.vue.js";
|
|
4
4
|
import _sfc_main$2 from "../../modules/icons/navigation/IconCross.vue.js";
|
|
5
5
|
/* empty css */
|
|
@@ -1,95 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const vueDraggableNext_esmBundler = require("../../../../node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs");
|
|
5
|
-
const UploadImageMultiple = require("../UploadImageMultiple/UploadImageMultiple.vue.cjs");
|
|
6
|
-
const IconCross = require("../../modules/icons/navigation/IconCross.vue.cjs");
|
|
7
|
-
require("./EditImages.vue2.cjs");
|
|
8
|
-
const _hoisted_1 = { class: "flex-nowrap flex gap-small" };
|
|
9
|
-
const _hoisted_2 = { class: "pos-relative" };
|
|
10
|
-
const _hoisted_3 = ["src"];
|
|
11
|
-
const _hoisted_4 = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small"
|
|
14
|
-
};
|
|
15
|
-
const _sfc_main = {
|
|
16
|
-
__name: "EditImages",
|
|
17
|
-
props: {
|
|
18
|
-
images: Array,
|
|
19
|
-
text: Object,
|
|
20
|
-
options: Object,
|
|
21
|
-
uploadPath: {
|
|
22
|
-
type: Object,
|
|
23
|
-
default: "unsorted"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
emits: ["update:images"],
|
|
27
|
-
setup(__props, { emit: __emit }) {
|
|
28
|
-
const props = __props;
|
|
29
|
-
const emit = __emit;
|
|
30
|
-
const localImages = vue.ref([...props.images]);
|
|
31
|
-
vue.watchEffect(() => {
|
|
32
|
-
localImages.value = [...props.images];
|
|
33
|
-
});
|
|
34
|
-
const emitChanges = () => {
|
|
35
|
-
emit("update:images", localImages.value);
|
|
36
|
-
};
|
|
37
|
-
const onImagesUpdate = (newImages) => {
|
|
38
|
-
localImages.value = [...localImages.value, ...newImages];
|
|
39
|
-
emitChanges();
|
|
40
|
-
};
|
|
41
|
-
const deleteImage = (index) => {
|
|
42
|
-
localImages.value.splice(index, 1);
|
|
43
|
-
emitChanges();
|
|
44
|
-
};
|
|
45
|
-
return (_ctx, _cache) => {
|
|
46
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
47
|
-
localImages.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(vueDraggableNext_esmBundler.VueDraggableNext), {
|
|
48
|
-
key: 0,
|
|
49
|
-
class: "gap-small flex dragArea list-group w-full",
|
|
50
|
-
modelValue: localImages.value,
|
|
51
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localImages.value = $event),
|
|
52
|
-
onChange: emitChanges
|
|
53
|
-
}, {
|
|
54
|
-
default: vue.withCtx(() => [
|
|
55
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(localImages.value, (image, index) => {
|
|
56
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
57
|
-
vue.createElementVNode("img", {
|
|
58
|
-
loading: "lazy",
|
|
59
|
-
class: "i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",
|
|
60
|
-
src: (_ctx.FILE_SERVER_URL || "") + image
|
|
61
|
-
}, null, 8, _hoisted_3),
|
|
62
|
-
vue.createVNode(IconCross.default, {
|
|
63
|
-
onClick: ($event) => deleteImage(index),
|
|
64
|
-
class: "cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"
|
|
65
|
-
}, null, 8, ["onClick"])
|
|
66
|
-
]);
|
|
67
|
-
}), 256))
|
|
68
|
-
]),
|
|
69
|
-
_: 1
|
|
70
|
-
}, 8, ["modelValue"])) : vue.createCommentVNode("", true),
|
|
71
|
-
localImages.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
72
|
-
vue.createVNode(UploadImageMultiple.default, {
|
|
73
|
-
"onUpdate:images": onImagesUpdate,
|
|
74
|
-
text: "Add",
|
|
75
|
-
options: {
|
|
76
|
-
showText: false
|
|
77
|
-
},
|
|
78
|
-
uploadPath: "photos",
|
|
79
|
-
class: "radius-big"
|
|
80
|
-
})
|
|
81
|
-
])) : vue.createCommentVNode("", true),
|
|
82
|
-
localImages.value.length < 1 ? (vue.openBlock(), vue.createBlock(UploadImageMultiple.default, {
|
|
83
|
-
key: 2,
|
|
84
|
-
"onUpdate:images": onImagesUpdate,
|
|
85
|
-
uploadPath: props.uploadPath,
|
|
86
|
-
text: props.text,
|
|
87
|
-
options: props.options,
|
|
88
|
-
class: "w-100 pd-medium"
|
|
89
|
-
}, null, 8, ["uploadPath", "text", "options"])) : vue.createCommentVNode("", true)
|
|
90
|
-
]);
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
exports.default = _sfc_main;
|
|
95
2
|
//# sourceMappingURL=EditImages.vue.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditImages.vue.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"EditImages.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,95 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { VueDraggableNext } from "../../../../node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
|
|
3
|
-
import _sfc_main$2 from "../UploadImageMultiple/UploadImageMultiple.vue.js";
|
|
4
|
-
import _sfc_main$1 from "../../modules/icons/navigation/IconCross.vue.js";
|
|
5
|
-
import "./EditImages.vue2.js";
|
|
6
|
-
const _hoisted_1 = { class: "flex-nowrap flex gap-small" };
|
|
7
|
-
const _hoisted_2 = { class: "pos-relative" };
|
|
8
|
-
const _hoisted_3 = ["src"];
|
|
9
|
-
const _hoisted_4 = {
|
|
10
|
-
key: 1,
|
|
11
|
-
class: "i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small"
|
|
12
|
-
};
|
|
13
|
-
const _sfc_main = {
|
|
14
|
-
__name: "EditImages",
|
|
15
|
-
props: {
|
|
16
|
-
images: Array,
|
|
17
|
-
text: Object,
|
|
18
|
-
options: Object,
|
|
19
|
-
uploadPath: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default: "unsorted"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
emits: ["update:images"],
|
|
25
|
-
setup(__props, { emit: __emit }) {
|
|
26
|
-
const props = __props;
|
|
27
|
-
const emit = __emit;
|
|
28
|
-
const localImages = ref([...props.images]);
|
|
29
|
-
watchEffect(() => {
|
|
30
|
-
localImages.value = [...props.images];
|
|
31
|
-
});
|
|
32
|
-
const emitChanges = () => {
|
|
33
|
-
emit("update:images", localImages.value);
|
|
34
|
-
};
|
|
35
|
-
const onImagesUpdate = (newImages) => {
|
|
36
|
-
localImages.value = [...localImages.value, ...newImages];
|
|
37
|
-
emitChanges();
|
|
38
|
-
};
|
|
39
|
-
const deleteImage = (index) => {
|
|
40
|
-
localImages.value.splice(index, 1);
|
|
41
|
-
emitChanges();
|
|
42
|
-
};
|
|
43
|
-
return (_ctx, _cache) => {
|
|
44
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
45
|
-
localImages.value.length > 0 ? (openBlock(), createBlock(unref(VueDraggableNext), {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: "gap-small flex dragArea list-group w-full",
|
|
48
|
-
modelValue: localImages.value,
|
|
49
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localImages.value = $event),
|
|
50
|
-
onChange: emitChanges
|
|
51
|
-
}, {
|
|
52
|
-
default: withCtx(() => [
|
|
53
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(localImages.value, (image, index) => {
|
|
54
|
-
return openBlock(), createElementBlock("div", _hoisted_2, [
|
|
55
|
-
createElementVNode("img", {
|
|
56
|
-
loading: "lazy",
|
|
57
|
-
class: "i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",
|
|
58
|
-
src: (_ctx.FILE_SERVER_URL || "") + image
|
|
59
|
-
}, null, 8, _hoisted_3),
|
|
60
|
-
createVNode(_sfc_main$1, {
|
|
61
|
-
onClick: ($event) => deleteImage(index),
|
|
62
|
-
class: "cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"
|
|
63
|
-
}, null, 8, ["onClick"])
|
|
64
|
-
]);
|
|
65
|
-
}), 256))
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
}, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
69
|
-
localImages.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
70
|
-
createVNode(_sfc_main$2, {
|
|
71
|
-
"onUpdate:images": onImagesUpdate,
|
|
72
|
-
text: "Add",
|
|
73
|
-
options: {
|
|
74
|
-
showText: false
|
|
75
|
-
},
|
|
76
|
-
uploadPath: "photos",
|
|
77
|
-
class: "radius-big"
|
|
78
|
-
})
|
|
79
|
-
])) : createCommentVNode("", true),
|
|
80
|
-
localImages.value.length < 1 ? (openBlock(), createBlock(_sfc_main$2, {
|
|
81
|
-
key: 2,
|
|
82
|
-
"onUpdate:images": onImagesUpdate,
|
|
83
|
-
uploadPath: props.uploadPath,
|
|
84
|
-
text: props.text,
|
|
85
|
-
options: props.options,
|
|
86
|
-
class: "w-100 pd-medium"
|
|
87
|
-
}, null, 8, ["uploadPath", "text", "options"])) : createCommentVNode("", true)
|
|
88
|
-
]);
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
export {
|
|
93
|
-
_sfc_main as default
|
|
94
|
-
};
|
|
1
|
+
|
|
95
2
|
//# sourceMappingURL=EditImages.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditImages.vue.js","sources":[
|
|
1
|
+
{"version":3,"file":"EditImages.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|