@ozdao/martyrs 0.2.537 → 0.2.539
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/martyrs/src/components/Button/{Button.vue2.cjs → Button.vue.cjs} +3 -3
- package/dist/martyrs/src/components/Button/{Button.vue2.js.map → Button.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Button/{Button.vue2.js → Button.vue.js} +3 -3
- package/dist/martyrs/src/components/Button/Button.vue.js.map +1 -0
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.cjs → Dropdown.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js.map → Dropdown.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js → Dropdown.vue.js} +2 -2
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +1 -0
- 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 +3 -3
- package/dist/martyrs/src/components/Feed/Feed.vue.js +3 -3
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/martyrs/src/components/Loader/{Loader.vue2.cjs → Loader.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Loader/{Loader.vue2.js.map → Loader.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Loader/{Loader.vue2.js → Loader.vue.js} +2 -2
- package/dist/martyrs/src/components/Loader/Loader.vue.js.map +1 -0
- 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.vue2.cjs → Menu.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Menu/{Menu.vue2.js → Menu.vue.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +1 -0
- package/dist/martyrs/src/components/Spoiler/{Spoiler.vue2.cjs → Spoiler.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Spoiler/{Spoiler.vue2.js.map → Spoiler.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Spoiler/{Spoiler.vue2.js → Spoiler.vue.js} +2 -2
- package/dist/martyrs/src/components/Spoiler/Spoiler.vue.js.map +1 -0
- package/dist/martyrs/src/components/Tab/{Tab.vue2.cjs → Tab.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Tab/{Tab.vue2.js.map → Tab.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Tab/{Tab.vue2.js → Tab.vue.js} +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue.js.map +1 -0
- 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 +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +2 -2
- 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.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +4 -4
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +4 -4
- 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/ProfileEditAccount.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +4 -4
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +4 -4
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.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/EditEventTickets.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +3 -3
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +3 -3
- 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 +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.cjs +3 -0
- package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js +3 -0
- package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.app.cjs +9 -9
- package/dist/martyrs/src/modules/globals/views/classes/globals.app.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.app.js +9 -9
- package/dist/martyrs/src/modules/globals/views/classes/globals.app.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/module-registry.cjs +3 -0
- package/dist/martyrs/src/modules/globals/views/classes/module-registry.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/module-registry.js +3 -0
- package/dist/martyrs/src/modules/globals/views/classes/module-registry.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/store.cjs +9 -0
- package/dist/martyrs/src/modules/globals/views/classes/store.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/store.js +9 -0
- package/dist/martyrs/src/modules/globals/views/classes/store.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +3 -3
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +3 -3
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
- 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 +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/{Filters.vue2.cjs → Filters.vue.cjs} +2 -2
- package/dist/martyrs/src/modules/globals/views/components/sections/{Filters.vue2.js.map → Filters.vue.cjs.map} +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/{Filters.vue2.js → Filters.vue.js} +2 -2
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue.js.map +1 -0
- 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/ColumnSettingsMenu.vue.cjs +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.cjs +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.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 +2 -2
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +2 -2
- 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/cards/AlbumCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.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/PlaylistForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs +3 -3
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.cjs +3 -3
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs +3 -3
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +1 -1
- 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/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 +2 -2
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +2 -2
- 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/OrderCreate.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- 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/ApplicationDetails.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +3 -3
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +8 -8
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +8 -8
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs +8 -8
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +8 -8
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +8 -8
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +8 -8
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +7 -7
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +7 -7
- 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 +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- 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 +2 -2
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.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/elements/{THC.vue2.cjs → THC.vue.cjs} +2 -2
- package/dist/martyrs/src/modules/products/components/elements/THC.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/products/components/elements/{THC.vue2.js → THC.vue.js} +2 -2
- package/dist/martyrs/src/modules/products/components/elements/THC.vue.js.map +1 -0
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +4 -4
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/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/EditAttributes.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +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/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/ProductConfigurator.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +3 -3
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.cjs +3 -3
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +3 -3
- 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/layouts/Spots.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.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/pages/Wallet.vue.cjs +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/notifications.server.cjs +27 -28
- package/dist/notifications.server.js +27 -28
- package/package.json +1 -1
- package/src/modules/auth/views/components/pages/SignIn.vue +2 -2
- package/src/modules/globals/globals.client.js +3 -0
- package/src/modules/globals/views/classes/globals.app.js +24 -12
- package/src/modules/globals/views/classes/module-registry.js +3 -0
- package/src/modules/globals/views/classes/store.js +13 -1
- package/src/modules/notifications/controllers/notifications.controller.js +37 -41
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Spoiler/Spoiler.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/elements/THC.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/elements/THC.vue2.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const Button = require("../../../../components/Button/Button.
|
|
5
|
-
const Tab = require("../../../../components/Tab/Tab.
|
|
4
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
5
|
+
const Tab = require("../../../../components/Tab/Tab.vue.cjs");
|
|
6
6
|
const IconEdit = require("../../../icons/navigation/IconEdit.vue.cjs");
|
|
7
7
|
const PlaceholderImage = require("../../../icons/placeholders/PlaceholderImage.vue.cjs");
|
|
8
8
|
const Image360 = require("../elements/Image360.vue.cjs");
|
|
9
9
|
const ProductImages = require("../blocks/ProductImages.vue.cjs");
|
|
10
|
-
;/* empty css
|
|
10
|
+
;/* empty css */
|
|
11
11
|
const Price = require("../elements/Price.vue.cjs");
|
|
12
12
|
const vueRouter = require("vue-router");
|
|
13
13
|
const vueI18n = require("vue-i18n");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed, ref, createElementBlock, openBlock, createElementVNode, createBlock, createCommentVNode, createVNode, unref, toDisplayString, Transition, withCtx, Fragment, renderList, createTextVNode } from "vue";
|
|
2
|
-
import _sfc_main$4 from "../../../../components/Button/Button.
|
|
3
|
-
import _sfc_main$3 from "../../../../components/Tab/Tab.
|
|
2
|
+
import _sfc_main$4 from "../../../../components/Button/Button.vue.js";
|
|
3
|
+
import _sfc_main$3 from "../../../../components/Tab/Tab.vue.js";
|
|
4
4
|
import _sfc_main$1 from "../../../icons/navigation/IconEdit.vue.js";
|
|
5
5
|
import PlaceholderImage from "../../../icons/placeholders/PlaceholderImage.vue.js";
|
|
6
6
|
import Image360 from "../elements/Image360.vue.js";
|
|
7
7
|
import ProductImages from "../blocks/ProductImages.vue.js";
|
|
8
|
-
/* empty css
|
|
8
|
+
/* empty css */
|
|
9
9
|
import _sfc_main$2 from "../elements/Price.vue.js";
|
|
10
10
|
import { useRoute, useRouter } from "vue-router";
|
|
11
11
|
import { useI18n } from "vue-i18n";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const dayjs_min = require("../../../../../../../../_virtual/dayjs.min.cjs");
|
|
5
|
-
const Tab = require("../../../../../../components/Tab/Tab.
|
|
6
|
-
const Button = require("../../../../../../components/Button/Button.
|
|
7
|
-
const Dropdown = require("../../../../../../components/Dropdown/Dropdown.
|
|
5
|
+
const Tab = require("../../../../../../components/Tab/Tab.vue.cjs");
|
|
6
|
+
const Button = require("../../../../../../components/Button/Button.vue.cjs");
|
|
7
|
+
const Dropdown = require("../../../../../../components/Dropdown/Dropdown.vue.cjs");
|
|
8
8
|
const Calendar = require("../../../../../../components/Calendar/Calendar.vue2.cjs");
|
|
9
9
|
const DateLabel = require("./DateLabel.vue.cjs");
|
|
10
10
|
const IconChevronRight = require("../../../../../icons/navigation/IconChevronRight.vue.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed, ref, watch, createElementBlock, openBlock, createElementVNode, createVNode, withCtx, createTextVNode } from "vue";
|
|
2
2
|
import dayjs from "../../../../../../../../_virtual/dayjs.min.js";
|
|
3
|
-
import _sfc_main$2 from "../../../../../../components/Tab/Tab.
|
|
4
|
-
import _sfc_main$3 from "../../../../../../components/Button/Button.
|
|
5
|
-
import _sfc_main$4 from "../../../../../../components/Dropdown/Dropdown.
|
|
3
|
+
import _sfc_main$2 from "../../../../../../components/Tab/Tab.vue.js";
|
|
4
|
+
import _sfc_main$3 from "../../../../../../components/Button/Button.vue.js";
|
|
5
|
+
import _sfc_main$4 from "../../../../../../components/Dropdown/Dropdown.vue.js";
|
|
6
6
|
import Calendar from "../../../../../../components/Calendar/Calendar.vue2.js";
|
|
7
7
|
import _sfc_main$1 from "./DateLabel.vue.js";
|
|
8
8
|
import IconNext from "../../../../../icons/navigation/IconChevronRight.vue.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const dayjs_min = require("../../../../../../../_virtual/dayjs.min.cjs");
|
|
5
|
-
;/* empty css
|
|
5
|
+
;/* empty css */
|
|
6
6
|
const Feed = require("../../../../../components/Feed/Feed.vue.cjs");
|
|
7
7
|
;/* empty css */
|
|
8
8
|
const GanttChart = require("./Gant/GanttChart.vue.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, createElementBlock, openBlock, createElementVNode, createVNode, unref, toDisplayString, withCtx } from "vue";
|
|
2
2
|
import dayjs from "../../../../../../../_virtual/dayjs.min.js";
|
|
3
|
-
/* empty css
|
|
3
|
+
/* empty css */
|
|
4
4
|
import _sfc_main$1 from "../../../../../components/Feed/Feed.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import _sfc_main$2 from "./Gant/GanttChart.vue.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
|
5
|
-
const Button = require("../../../../components/Button/Button.
|
|
5
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
6
6
|
const Select = require("../../../../components/Select/Select.vue.cjs");
|
|
7
7
|
const reports = require("../../store/reports.cjs");
|
|
8
8
|
const _sfc_main = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, ref, createElementBlock, openBlock, renderSlot, createVNode, withCtx, createElementVNode, createTextVNode } from "vue";
|
|
2
2
|
import _sfc_main$1 from "../../../../components/Popup/Popup.vue.js";
|
|
3
|
-
import _sfc_main$2 from "../../../../components/Button/Button.
|
|
3
|
+
import _sfc_main$2 from "../../../../components/Button/Button.vue.js";
|
|
4
4
|
import Select from "../../../../components/Select/Select.vue.js";
|
|
5
5
|
import { actions } from "../../store/reports.js";
|
|
6
6
|
const _sfc_main = {
|
|
@@ -3,10 +3,10 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
|
5
5
|
const vueI18n = require("vue-i18n");
|
|
6
|
-
;/* empty css
|
|
6
|
+
;/* empty css */
|
|
7
7
|
;/* empty css */
|
|
8
8
|
;/* empty css */
|
|
9
|
-
;/* empty css
|
|
9
|
+
;/* empty css */
|
|
10
10
|
const globals = require("../../../globals/views/store/globals.cjs");
|
|
11
11
|
const categories = require("../../../products/store/categories.cjs");
|
|
12
12
|
const marketplace = require("../../../marketplace/views/store/marketplace.cjs");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref, onMounted, watch, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, createCommentVNode, toDisplayString, withCtx, Transition, createBlock, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
|
3
3
|
import { useI18n } from "vue-i18n";
|
|
4
|
-
/* empty css
|
|
4
|
+
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
-
/* empty css
|
|
7
|
+
/* empty css */
|
|
8
8
|
import { state as state$1 } from "../../../globals/views/store/globals.js";
|
|
9
9
|
import { actions, state as state$2 } from "../../../products/store/categories.js";
|
|
10
10
|
import { state } from "../../../marketplace/views/store/marketplace.js";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
|
5
5
|
const index = require("../../../../../../node_modules/.pnpm/@googlemaps_js-api-loader@1.16.10/node_modules/@googlemaps/js-api-loader/dist/index.cjs");
|
|
6
|
-
const Button = require("../../../../components/Button/Button.
|
|
6
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
7
7
|
const organizations = require("../../../organizations/store/organizations.cjs");
|
|
8
8
|
const globals = require("../../../globals/views/store/globals.cjs");
|
|
9
9
|
const marketplace = require("../../../marketplace/views/store/marketplace.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, onMounted, createElementBlock, openBlock, createElementVNode, createVNode, withCtx, createTextVNode } from "vue";
|
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
|
3
3
|
import { Loader } from "../../../../../../node_modules/.pnpm/@googlemaps_js-api-loader@1.16.10/node_modules/@googlemaps/js-api-loader/dist/index.js";
|
|
4
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
|
4
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
|
5
5
|
import { actions, state as state$2 } from "../../../organizations/store/organizations.js";
|
|
6
6
|
import { state } from "../../../globals/views/store/globals.js";
|
|
7
7
|
import { state as state$1 } from "../../../marketplace/views/store/marketplace.js";
|
|
@@ -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 Spoiler = require("../../../../components/Spoiler/Spoiler.
|
|
4
|
+
const Spoiler = require("../../../../components/Spoiler/Spoiler.vue.cjs");
|
|
5
5
|
const Map = require("../../../../components/Map/Map.vue.cjs");
|
|
6
6
|
const SpotSub = require("../blocks/SpotSub.vue.cjs");
|
|
7
7
|
const CardUser = require("../../../auth/views/components/blocks/CardUser.vue.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock, openBlock, createVNode, createElementVNode, withCtx, createCommentVNode, Fragment, renderList, createBlock, toDisplayString } from "vue";
|
|
2
|
-
import _sfc_main$1 from "../../../../components/Spoiler/Spoiler.
|
|
2
|
+
import _sfc_main$1 from "../../../../components/Spoiler/Spoiler.vue.js";
|
|
3
3
|
import Map from "../../../../components/Map/Map.vue.js";
|
|
4
4
|
import SpotSub from "../blocks/SpotSub.vue.js";
|
|
5
5
|
import _sfc_main$2 from "../../../auth/views/components/blocks/CardUser.vue.js";
|
|
@@ -4,13 +4,13 @@ const vue = require("vue");
|
|
|
4
4
|
const vueRouter = require("vue-router");
|
|
5
5
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
|
6
6
|
const UploadImage = require("../../../../components/UploadImage/UploadImage.vue.cjs");
|
|
7
|
-
;/* empty css
|
|
7
|
+
;/* empty css */
|
|
8
8
|
const Field = require("../../../../components/Field/Field.vue.cjs");
|
|
9
9
|
const Select = require("../../../../components/Select/Select.vue.cjs");
|
|
10
10
|
const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
|
|
11
11
|
const Address = require("../../../../components/Address/Address.vue.cjs");
|
|
12
12
|
const LocationMarker = require("../../../../components/LocationMarker/LocationMarker.vue.cjs");
|
|
13
|
-
const Button = require("../../../../components/Button/Button.
|
|
13
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
14
14
|
;/* empty css */
|
|
15
15
|
const WorktimeEdit = require("../sections/WorktimeEdit.vue.cjs");
|
|
16
16
|
const spots = require("../../store/spots.cjs");
|
|
@@ -2,13 +2,13 @@ import { ref, onMounted, createElementBlock, openBlock, createVNode, createEleme
|
|
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
|
3
3
|
import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
|
|
4
4
|
import _sfc_main$3 from "../../../../components/UploadImage/UploadImage.vue.js";
|
|
5
|
-
/* empty css
|
|
5
|
+
/* empty css */
|
|
6
6
|
import Field from "../../../../components/Field/Field.vue.js";
|
|
7
7
|
import Select from "../../../../components/Select/Select.vue.js";
|
|
8
8
|
import _sfc_main$4 from "../../../../components/Checkbox/Checkbox.vue.js";
|
|
9
9
|
import _sfc_main$5 from "../../../../components/Address/Address.vue.js";
|
|
10
10
|
import _sfc_main$6 from "../../../../components/LocationMarker/LocationMarker.vue.js";
|
|
11
|
-
import _sfc_main$2 from "../../../../components/Button/Button.
|
|
11
|
+
import _sfc_main$2 from "../../../../components/Button/Button.vue.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import WorktimeEdit from "../sections/WorktimeEdit.vue.js";
|
|
14
14
|
import { actions, state } from "../../store/spots.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const vueI18n = require("vue-i18n");
|
|
5
|
-
const Button = require("../../../../components/Button/Button.
|
|
5
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
6
6
|
const Field = require("../../../../components/Field/Field.vue.cjs");
|
|
7
7
|
const Select = require("../../../../components/Select/Select.vue.cjs");
|
|
8
8
|
const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mergeModels, useModel, ref, computed, onMounted, createElementBlock, openBlock, createElementVNode, createVNode, toDisplayString, unref, withCtx, createTextVNode, Fragment, renderList, normalizeClass, createCommentVNode, createBlock } from "vue";
|
|
2
2
|
import { useI18n } from "vue-i18n";
|
|
3
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
|
3
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
|
4
4
|
import Field from "../../../../components/Field/Field.vue.js";
|
|
5
5
|
import Select from "../../../../components/Select/Select.vue.js";
|
|
6
6
|
import _sfc_main$3 from "../../../../components/Checkbox/Checkbox.vue.js";
|
|
@@ -6,10 +6,10 @@ const Web3 = require("web3");
|
|
|
6
6
|
const wallet_store = require("../../store/wallet.store.cjs");
|
|
7
7
|
const wallet = require("../../localization/wallet.json.cjs");
|
|
8
8
|
const Popup = require("../../../../../components/Popup/Popup.vue.cjs");
|
|
9
|
-
const Button = require("../../../../../components/Button/Button.
|
|
9
|
+
const Button = require("../../../../../components/Button/Button.vue.cjs");
|
|
10
10
|
require("vue-router");
|
|
11
11
|
;/* empty css */
|
|
12
|
-
;/* empty css
|
|
12
|
+
;/* empty css */
|
|
13
13
|
;/* empty css */
|
|
14
14
|
;/* empty css */
|
|
15
15
|
const ConnectMetamask = require("../elements/ConnectMetamask.vue.cjs");
|
|
@@ -4,10 +4,10 @@ import Web3 from "web3";
|
|
|
4
4
|
import { state, actions } from "../../store/wallet.store.js";
|
|
5
5
|
import text from "../../localization/wallet.json.js";
|
|
6
6
|
import _sfc_main$3 from "../../../../../components/Popup/Popup.vue.js";
|
|
7
|
-
import _sfc_main$1 from "../../../../../components/Button/Button.
|
|
7
|
+
import _sfc_main$1 from "../../../../../components/Button/Button.vue.js";
|
|
8
8
|
import "vue-router";
|
|
9
9
|
/* empty css */
|
|
10
|
-
/* empty css
|
|
10
|
+
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
import _sfc_main$2 from "../elements/ConnectMetamask.vue.js";
|
|
@@ -116,19 +116,25 @@ const NotificationsController = (db, wss, notificationService) => {
|
|
|
116
116
|
if (!userId && !anonymousId) {
|
|
117
117
|
return res.status(400).json({ message: "Either userId or anonymousId is required" });
|
|
118
118
|
}
|
|
119
|
-
let existingDevice
|
|
119
|
+
let existingDevice;
|
|
120
|
+
if (userId) {
|
|
121
|
+
existingDevice = await db.userDevice.findOne({ userId, deviceId });
|
|
122
|
+
} else {
|
|
123
|
+
existingDevice = await db.userDevice.findOne({ anonymousId, deviceId });
|
|
124
|
+
}
|
|
120
125
|
if (existingDevice) {
|
|
121
|
-
console.log("[RegisterDevice] Found existing device by
|
|
122
|
-
if (
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
console.log("[RegisterDevice] Found existing device by userId/anonymousId + deviceId, updating...");
|
|
127
|
+
if (existingDevice.deviceToken !== deviceToken) {
|
|
128
|
+
const tokenConflict = await db.userDevice.findOne({
|
|
129
|
+
deviceToken,
|
|
130
|
+
_id: { $ne: existingDevice._id }
|
|
131
|
+
});
|
|
132
|
+
if (tokenConflict) {
|
|
133
|
+
console.log("[RegisterDevice] Removing conflicting device with token:", tokenConflict._id);
|
|
134
|
+
await tokenConflict.deleteOne();
|
|
135
|
+
}
|
|
130
136
|
}
|
|
131
|
-
existingDevice.
|
|
137
|
+
existingDevice.deviceToken = deviceToken;
|
|
132
138
|
existingDevice.deviceType = deviceType;
|
|
133
139
|
existingDevice.lastActive = Date.now();
|
|
134
140
|
existingDevice.isActive = true;
|
|
@@ -136,13 +142,12 @@ const NotificationsController = (db, wss, notificationService) => {
|
|
|
136
142
|
console.log("[RegisterDevice] Device updated:", existingDevice._id);
|
|
137
143
|
return res.status(200).json(existingDevice);
|
|
138
144
|
}
|
|
139
|
-
|
|
140
|
-
if (
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
filter = { anonymousId, deviceId };
|
|
145
|
+
const tokenDevice = await db.userDevice.findOne({ deviceToken });
|
|
146
|
+
if (tokenDevice) {
|
|
147
|
+
console.log("[RegisterDevice] Token already exists for different device, removing old device:", tokenDevice._id);
|
|
148
|
+
await tokenDevice.deleteOne();
|
|
144
149
|
}
|
|
145
|
-
const
|
|
150
|
+
const deviceData = {
|
|
146
151
|
deviceId,
|
|
147
152
|
deviceType,
|
|
148
153
|
deviceToken,
|
|
@@ -151,19 +156,13 @@ const NotificationsController = (db, wss, notificationService) => {
|
|
|
151
156
|
isAnonymous: !userId
|
|
152
157
|
};
|
|
153
158
|
if (userId) {
|
|
154
|
-
|
|
155
|
-
updateData.$unset = { anonymousId: 1 };
|
|
159
|
+
deviceData.userId = userId;
|
|
156
160
|
} else {
|
|
157
|
-
|
|
158
|
-
updateData.$unset = { userId: 1 };
|
|
161
|
+
deviceData.anonymousId = anonymousId;
|
|
159
162
|
}
|
|
160
|
-
const device = await db.userDevice.
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
{ upsert: true, new: true, setDefaultsOnInsert: true }
|
|
164
|
-
);
|
|
165
|
-
console.log("[RegisterDevice] Device registered/updated:", device._id);
|
|
166
|
-
return res.status(200).json(device);
|
|
163
|
+
const device = await db.userDevice.create(deviceData);
|
|
164
|
+
console.log("[RegisterDevice] New device created:", device._id);
|
|
165
|
+
return res.status(201).json(device);
|
|
167
166
|
} catch (err) {
|
|
168
167
|
console.error("[RegisterDevice] Error:", err.message);
|
|
169
168
|
return res.status(500).json({ message: err.message });
|
|
@@ -114,19 +114,25 @@ const NotificationsController = (db, wss, notificationService) => {
|
|
|
114
114
|
if (!userId && !anonymousId) {
|
|
115
115
|
return res.status(400).json({ message: "Either userId or anonymousId is required" });
|
|
116
116
|
}
|
|
117
|
-
let existingDevice
|
|
117
|
+
let existingDevice;
|
|
118
|
+
if (userId) {
|
|
119
|
+
existingDevice = await db.userDevice.findOne({ userId, deviceId });
|
|
120
|
+
} else {
|
|
121
|
+
existingDevice = await db.userDevice.findOne({ anonymousId, deviceId });
|
|
122
|
+
}
|
|
118
123
|
if (existingDevice) {
|
|
119
|
-
console.log("[RegisterDevice] Found existing device by
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
console.log("[RegisterDevice] Found existing device by userId/anonymousId + deviceId, updating...");
|
|
125
|
+
if (existingDevice.deviceToken !== deviceToken) {
|
|
126
|
+
const tokenConflict = await db.userDevice.findOne({
|
|
127
|
+
deviceToken,
|
|
128
|
+
_id: { $ne: existingDevice._id }
|
|
129
|
+
});
|
|
130
|
+
if (tokenConflict) {
|
|
131
|
+
console.log("[RegisterDevice] Removing conflicting device with token:", tokenConflict._id);
|
|
132
|
+
await tokenConflict.deleteOne();
|
|
133
|
+
}
|
|
128
134
|
}
|
|
129
|
-
existingDevice.
|
|
135
|
+
existingDevice.deviceToken = deviceToken;
|
|
130
136
|
existingDevice.deviceType = deviceType;
|
|
131
137
|
existingDevice.lastActive = Date.now();
|
|
132
138
|
existingDevice.isActive = true;
|
|
@@ -134,13 +140,12 @@ const NotificationsController = (db, wss, notificationService) => {
|
|
|
134
140
|
console.log("[RegisterDevice] Device updated:", existingDevice._id);
|
|
135
141
|
return res.status(200).json(existingDevice);
|
|
136
142
|
}
|
|
137
|
-
|
|
138
|
-
if (
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
filter = { anonymousId, deviceId };
|
|
143
|
+
const tokenDevice = await db.userDevice.findOne({ deviceToken });
|
|
144
|
+
if (tokenDevice) {
|
|
145
|
+
console.log("[RegisterDevice] Token already exists for different device, removing old device:", tokenDevice._id);
|
|
146
|
+
await tokenDevice.deleteOne();
|
|
142
147
|
}
|
|
143
|
-
const
|
|
148
|
+
const deviceData = {
|
|
144
149
|
deviceId,
|
|
145
150
|
deviceType,
|
|
146
151
|
deviceToken,
|
|
@@ -149,19 +154,13 @@ const NotificationsController = (db, wss, notificationService) => {
|
|
|
149
154
|
isAnonymous: !userId
|
|
150
155
|
};
|
|
151
156
|
if (userId) {
|
|
152
|
-
|
|
153
|
-
updateData.$unset = { anonymousId: 1 };
|
|
157
|
+
deviceData.userId = userId;
|
|
154
158
|
} else {
|
|
155
|
-
|
|
156
|
-
updateData.$unset = { userId: 1 };
|
|
159
|
+
deviceData.anonymousId = anonymousId;
|
|
157
160
|
}
|
|
158
|
-
const device = await db.userDevice.
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
{ upsert: true, new: true, setDefaultsOnInsert: true }
|
|
162
|
-
);
|
|
163
|
-
console.log("[RegisterDevice] Device registered/updated:", device._id);
|
|
164
|
-
return res.status(200).json(device);
|
|
161
|
+
const device = await db.userDevice.create(deviceData);
|
|
162
|
+
console.log("[RegisterDevice] New device created:", device._id);
|
|
163
|
+
return res.status(201).json(device);
|
|
165
164
|
} catch (err) {
|
|
166
165
|
console.error("[RegisterDevice] Error:", err.message);
|
|
167
166
|
return res.status(500).json({ message: err.message });
|
package/package.json
CHANGED
|
@@ -118,8 +118,8 @@ import * as inputsValidation from '@martyrs/src/modules/auth/views/validations/i
|
|
|
118
118
|
|
|
119
119
|
// Get store
|
|
120
120
|
const store = useStore()
|
|
121
|
-
const auth = store.auth
|
|
122
|
-
const globals = store.globals
|
|
121
|
+
const auth = store.auth
|
|
122
|
+
const globals = store.globals
|
|
123
123
|
|
|
124
124
|
// Init validation
|
|
125
125
|
const phoneValidation = ref(null)
|
|
@@ -71,7 +71,10 @@ function initializeGlobals(app, store, router, config, options = {}) {
|
|
|
71
71
|
|
|
72
72
|
if (config && config.modules) storeGlobals.state.options = config.modules;
|
|
73
73
|
|
|
74
|
+
console.log('[DEBUG] initializeGlobals called with store:', !!store);
|
|
75
|
+
console.log('[DEBUG] Adding globals to store...');
|
|
74
76
|
store.addStore('globals', storeGlobals);
|
|
77
|
+
console.log('[DEBUG] globals added to store:', !!store.globals);
|
|
75
78
|
|
|
76
79
|
router.addRoute(route, {
|
|
77
80
|
path: '404',
|
|
@@ -50,8 +50,15 @@ export function createUniversalApp({
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
// Основная функция создания приложения
|
|
53
|
-
function createApp() {
|
|
53
|
+
async function createApp() {
|
|
54
54
|
const store = getStore();
|
|
55
|
+
console.log('[DEBUG createApp] store created:', !!store);
|
|
56
|
+
|
|
57
|
+
// Установить SSR store для useStore
|
|
58
|
+
if (typeof window === 'undefined') {
|
|
59
|
+
const { setSSRStore } = await import('./store.js');
|
|
60
|
+
setSSRStore(store);
|
|
61
|
+
}
|
|
55
62
|
const app = process.env.MOBILE_APP
|
|
56
63
|
? createVueApp(layoutApp, config)
|
|
57
64
|
: createVueSSRApp(layoutApp, config);
|
|
@@ -77,8 +84,10 @@ export function createUniversalApp({
|
|
|
77
84
|
|
|
78
85
|
for (const moduleName of criticalModules) {
|
|
79
86
|
try {
|
|
87
|
+
console.log(`[DEBUG] Loading module ${moduleName}, context.store:`, !!context.store);
|
|
80
88
|
await moduleRegistry.load(moduleName, context);
|
|
81
89
|
await moduleRegistry.initialize(moduleName, context);
|
|
90
|
+
console.log(`[DEBUG] Module ${moduleName} initialized, store.${moduleName}:`, !!context.store[moduleName]);
|
|
82
91
|
} catch (error) {
|
|
83
92
|
console.error(`Failed to load critical module ${moduleName}:`, error);
|
|
84
93
|
}
|
|
@@ -193,19 +202,21 @@ export function createUniversalApp({
|
|
|
193
202
|
// FOR SSR / SERVER ENTRY
|
|
194
203
|
async function renderApp({ url, cookies, languages, ssrContext }) {
|
|
195
204
|
const { app, router, store, i18n, meta, moduleRegistry } = await createApp();
|
|
205
|
+
console.log('[DEBUG SSR] After createApp - store.globals:', !!store.globals);
|
|
196
206
|
|
|
197
|
-
|
|
198
|
-
//
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
moduleRegistry.loadingPromises.clear();
|
|
207
|
+
|
|
208
|
+
// if (typeof window === 'undefined') {
|
|
209
|
+
// moduleRegistry.initialized.clear();
|
|
210
|
+
// moduleRegistry.modules.clear();
|
|
211
|
+
// moduleRegistry.loadingPromises.clear();
|
|
203
212
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
213
|
+
// // На сервере загружаем auth для SSR рендеринга (vue-app-renderer требует его)
|
|
214
|
+
// const context = { app, store, router, config };
|
|
215
|
+
// await moduleRegistry.load('globals', context);
|
|
216
|
+
// await moduleRegistry.initialize('globals', context);
|
|
217
|
+
// await moduleRegistry.load('auth', context);
|
|
218
|
+
// await moduleRegistry.initialize('auth', context);
|
|
219
|
+
// }
|
|
209
220
|
|
|
210
221
|
const context = {
|
|
211
222
|
app,
|
|
@@ -244,6 +255,7 @@ export function createUniversalApp({
|
|
|
244
255
|
}
|
|
245
256
|
|
|
246
257
|
// Передаем только модули текущего роута + критические модули
|
|
258
|
+
// Это не реальные модули а метаданные для дегидратации
|
|
247
259
|
const criticalModules = ['globals', 'auth', 'organizations', 'backoffice'];
|
|
248
260
|
const allModulesForRoute = [...new Set([...criticalModules, ...currentRouteModules])];
|
|
249
261
|
|
|
@@ -97,8 +97,11 @@ export class ModuleRegistry {
|
|
|
97
97
|
// Инициализируем модуль
|
|
98
98
|
// Поддерживаем оба варианта: module.initialize и module.default.initialize для обратной совместимости
|
|
99
99
|
const initFunc = module.initialize || (module.default && module.default.initialize);
|
|
100
|
+
console.log(`[DEBUG registry] Module ${name} initFunc found:`, !!initFunc);
|
|
100
101
|
if (initFunc) {
|
|
102
|
+
console.log(`[DEBUG registry] Calling initialize for ${name}`);
|
|
101
103
|
await initFunc(app, store, router, config);
|
|
104
|
+
console.log(`[DEBUG registry] Module ${name} initialize completed`);
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
this.initialized.set(name, true);
|
|
@@ -67,9 +67,21 @@ export function createStore() {
|
|
|
67
67
|
// Синглтон для клиента
|
|
68
68
|
let clientStore = null;
|
|
69
69
|
|
|
70
|
+
// Store для SSR должен создаваться в createApp и передаваться сюда
|
|
71
|
+
let ssrStore = null;
|
|
72
|
+
|
|
73
|
+
export function setSSRStore(store) {
|
|
74
|
+
ssrStore = store;
|
|
75
|
+
}
|
|
76
|
+
|
|
70
77
|
export function useStore() {
|
|
71
78
|
if (typeof window === 'undefined') {
|
|
72
|
-
// SSR:
|
|
79
|
+
// SSR: используем переданный store
|
|
80
|
+
if (ssrStore) {
|
|
81
|
+
return ssrStore;
|
|
82
|
+
}
|
|
83
|
+
// Fallback для обратной совместимости
|
|
84
|
+
console.warn('[WARN] SSR store not set, creating new store instance');
|
|
73
85
|
return createStore();
|
|
74
86
|
}
|
|
75
87
|
// Client: синглтон
|