@ozdao/martyrs 0.2.506 → 0.2.507
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/auth.server.cjs +1 -1
- package/dist/auth.server.js +1 -1
- package/dist/builder.cjs +52 -60
- package/dist/builder.js +52 -60
- package/dist/chats.server.cjs +1 -1
- package/dist/chats.server.js +1 -1
- package/dist/events.server.cjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/{mailing-q7sR8gCV.cjs → mailing-Bs9ThyVZ.cjs} +1 -24
- package/dist/{mailing-C11EYWm-.js → mailing-DzlhsxCC.js} +1 -24
- package/dist/main-AWSb_d2P.cjs +11 -0
- package/dist/{main-DC__VS5b.js → main-Dq-UfO4G.js} +2562 -2477
- package/dist/martyrs/src/components/Button/{Button.vue.cjs → Button.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +2 -2
- package/dist/martyrs/src/components/Button/{Button.vue.cjs.map → Button.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs +3 -3
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +3 -3
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs +0 -93
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js +1 -94
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs +93 -0
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js +94 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +14 -45
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +21 -52
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.cjs +14 -6
- package/dist/martyrs/src/components/Field/Field.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.js +14 -6
- package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs +58 -11
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +60 -13
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js.map +1 -1
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs +2 -2
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js +2 -2
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.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/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 +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- 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 +42 -10
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +44 -12
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +12 -16
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +22 -26
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +13 -17
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +34 -38
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs +13 -9
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +13 -9
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +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 +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
- 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/auth/views/router/users.cjs +0 -4
- package/dist/martyrs/src/modules/auth/views/router/users.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/router/users.js +0 -4
- package/dist/martyrs/src/modules/auth/views/router/users.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs +431 -0
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js +431 -0
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js.map +1 -0
- package/dist/martyrs/src/modules/community/router/blogposts.cjs +17 -0
- package/dist/martyrs/src/modules/community/router/blogposts.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/router/blogposts.js +17 -0
- package/dist/martyrs/src/modules/community/router/blogposts.js.map +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 +1 -3
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -3
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- 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/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/views/classes/globals.websocket.cjs +4 -6
- 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 +4 -6
- package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.cjs +5 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.js +6 -3
- package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.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/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 +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 +2 -3
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +2 -3
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js.map +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/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 +324 -0
- 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.vue2.js +324 -0
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.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/icons/entities/IconLock.vue.cjs +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconLock.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconLock.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconLock.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/icons.client.cjs +2 -0
- package/dist/martyrs/src/modules/icons/icons.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/icons.client.js +116 -114
- package/dist/martyrs/src/modules/icons/icons.client.js.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +5 -3
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js +117 -115
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js.map +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/landing/components/sections/SubscribeNewsletter.vue.cjs +11 -36
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +11 -36
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/landing.client.cjs +3 -0
- package/dist/martyrs/src/modules/landing/landing.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/landing.client.js +3 -0
- package/dist/martyrs/src/modules/landing/landing.client.js.map +1 -1
- package/dist/martyrs/src/modules/landing/locales/en.cjs +12 -0
- package/dist/martyrs/src/modules/landing/locales/en.cjs.map +1 -0
- package/dist/martyrs/src/modules/landing/locales/en.js +12 -0
- package/dist/martyrs/src/modules/landing/locales/en.js.map +1 -0
- package/dist/martyrs/src/modules/landing/locales/index.cjs +10 -0
- package/dist/martyrs/src/modules/landing/locales/index.cjs.map +1 -0
- package/dist/martyrs/src/modules/landing/locales/index.js +10 -0
- package/dist/martyrs/src/modules/landing/locales/index.js.map +1 -0
- package/dist/martyrs/src/modules/landing/locales/ru.cjs +12 -0
- package/dist/martyrs/src/modules/landing/locales/ru.cjs.map +1 -0
- package/dist/martyrs/src/modules/landing/locales/ru.js +12 -0
- package/dist/martyrs/src/modules/landing/locales/ru.js.map +1 -0
- 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 +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
- 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 +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js.map +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/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 +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js.map +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 +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +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/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/music/router/music.cjs +2 -4
- package/dist/martyrs/src/modules/music/router/music.cjs.map +1 -1
- package/dist/martyrs/src/modules/music/router/music.js +2 -4
- package/dist/martyrs/src/modules/music/router/music.js.map +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/blocks/CardApplication.vue.cjs +86 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +86 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.cjs +103 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js +103 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.cjs +194 -0
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js +194 -0
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs +138 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +138 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs +189 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +189 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.cjs +173 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +173 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.cjs +233 -0
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js +233 -0
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.cjs +234 -0
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js +234 -0
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js.map +1 -0
- 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 +10 -9
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +10 -9
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +9 -83
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -84
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +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/ApplicationDetails.vue.cjs +119 -0
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +119 -0
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.cjs +139 -0
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +139 -0
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -3
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +1 -3
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/locales/en.cjs +38 -0
- package/dist/martyrs/src/modules/orders/locales/en.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/locales/en.js +38 -0
- package/dist/martyrs/src/modules/orders/locales/en.js.map +1 -0
- package/dist/martyrs/src/modules/orders/locales/index.cjs +10 -0
- package/dist/martyrs/src/modules/orders/locales/index.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/locales/index.js +10 -0
- package/dist/martyrs/src/modules/orders/locales/index.js.map +1 -0
- package/dist/martyrs/src/modules/orders/locales/ru.cjs +38 -0
- package/dist/martyrs/src/modules/orders/locales/ru.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/locales/ru.js +38 -0
- package/dist/martyrs/src/modules/orders/locales/ru.js.map +1 -0
- package/dist/martyrs/src/modules/orders/orders.client.cjs +78 -3
- package/dist/martyrs/src/modules/orders/orders.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.js +80 -5
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/orders/router/applications.router.cjs +17 -0
- package/dist/martyrs/src/modules/orders/router/applications.router.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/router/applications.router.js +17 -0
- package/dist/martyrs/src/modules/orders/router/applications.router.js.map +1 -0
- package/dist/martyrs/src/modules/orders/router/customers.router.cjs +18 -0
- package/dist/martyrs/src/modules/orders/router/customers.router.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/router/customers.router.js +18 -0
- package/dist/martyrs/src/modules/orders/router/customers.router.js.map +1 -0
- package/dist/martyrs/src/modules/orders/store/applications.cjs +4 -42
- package/dist/martyrs/src/modules/orders/store/applications.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/store/applications.js +3 -41
- package/dist/martyrs/src/modules/orders/store/applications.js.map +1 -1
- package/dist/martyrs/src/modules/orders/store/models/application.cjs +20 -0
- package/dist/martyrs/src/modules/orders/store/models/application.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/store/models/application.js +20 -0
- package/dist/martyrs/src/modules/orders/store/models/application.js.map +1 -0
- package/dist/martyrs/src/modules/orders/store/models/customer.cjs +13 -1
- package/dist/martyrs/src/modules/orders/store/models/customer.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/store/models/customer.js +13 -1
- package/dist/martyrs/src/modules/orders/store/models/customer.js.map +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/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/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/DepartmentEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +16 -192
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +17 -193
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.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/DetailsTabSection.vue.cjs +2 -11
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +6 -15
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js.map +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 +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +85 -89
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +92 -96
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs +4 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.js +4 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.js.map +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/pages/views/components/pages/Page.vue.cjs +3 -6
- package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.js +3 -6
- package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.js.map +1 -1
- 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/CardCategory.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +22 -19
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +22 -19
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +28 -19
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +28 -19
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
- 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/Products.vue.cjs +360 -105
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +378 -123
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- 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 +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/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 +33 -3
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +34 -4
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +2 -2
- package/dist/martyrs/src/modules/products/router/products.router.cjs +15 -0
- package/dist/martyrs/src/modules/products/router/products.router.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/router/products.router.js +15 -0
- package/dist/martyrs/src/modules/products/router/products.router.js.map +1 -1
- package/dist/martyrs/src/modules/products/store/categories.cjs +25 -7
- package/dist/martyrs/src/modules/products/store/categories.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/store/categories.js +25 -7
- package/dist/martyrs/src/modules/products/store/categories.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.cjs +2 -2
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +2 -2
- 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 +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- 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/pages/Spots.vue.cjs +345 -0
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +345 -0
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -0
- 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/spots/router/spots.cjs +17 -0
- package/dist/martyrs/src/modules/spots/router/spots.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/router/spots.js +17 -0
- package/dist/martyrs/src/modules/spots/router/spots.js.map +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/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/notifications.server.cjs +1 -1
- package/dist/notifications.server.js +1 -1
- package/dist/orders.server.cjs +459 -201
- package/dist/orders.server.js +459 -201
- package/dist/organizations.server.cjs +1 -1
- package/dist/organizations.server.js +1 -1
- package/dist/products.server.cjs +428 -255
- package/dist/products.server.js +428 -255
- package/dist/style.css +115 -139
- package/dist/{tickets.controller-DQQcjyui.js → tickets.controller-C56OvH6v.js} +1 -1
- package/dist/{tickets.controller-D0V0gJCA.cjs → tickets.controller-DdnndM6c.cjs} +1 -1
- package/dist/wallet.server.cjs +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/{web-B1bEJ1W9.js → web-BXajFCU2.js} +1 -1
- package/dist/{web-D5i9k2Vv.cjs → web-DaBwwCQ5.cjs} +1 -1
- package/package.json +1 -1
- package/src/builder/modes/ssr.dev.js +10 -10
- package/src/builder/rspack/rspack.config.ssr.client.js +50 -50
- package/src/components/Checkbox/Checkbox.vue +3 -4
- package/src/components/Feed/Feed.old.vue +522 -0
- package/src/components/Feed/Feed.vue +4 -4
- package/src/components/Field/Field.vue +7 -1
- package/src/components/FieldBig/FieldBig.vue +62 -8
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/modules/STYLES.MD +198 -0
- package/src/modules/auth/views/components/pages/Profile.vue +1 -1
- package/src/modules/auth/views/components/pages/ProfileEdit.vue +42 -8
- package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +9 -11
- package/src/modules/auth/views/components/pages/ProfileEditProfile.vue +9 -11
- package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +7 -4
- package/src/modules/auth/views/router/users.js +0 -4
- package/src/modules/community/components/pages/Posts.vue +444 -0
- package/src/modules/community/router/blogposts.js +15 -0
- package/src/modules/globals/views/classes/globals.websocket.js +7 -8
- package/src/modules/globals/views/components/blocks/Card.vue +2 -1
- package/src/modules/globals/views/components/layouts/Client.vue +1 -2
- package/src/modules/globals/views/components/partials/FooterAlt.vue +161 -188
- package/src/modules/globals/views/components/sections/Filters.vue +261 -121
- package/src/modules/globals/views/components/sections/filters/FilterCheckbox.vue +78 -0
- package/src/modules/globals/views/components/sections/filters/FilterDateRange.vue +177 -0
- package/src/modules/globals/views/components/sections/filters/FilterRange.vue +51 -50
- package/src/modules/icons/entities/IconLock.vue +14 -0
- package/src/modules/icons/icons.client.js +2 -1
- package/src/modules/icons/pages/IconsPage.vue +4 -2
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +11 -61
- package/src/modules/landing/landing.client.js +6 -0
- package/src/modules/landing/locales/en.js +9 -0
- package/src/modules/landing/locales/index.js +7 -0
- package/src/modules/landing/locales/ru.js +9 -0
- package/src/modules/music/components/pages/Album.vue +1 -1
- package/src/modules/music/components/pages/Playlist.vue +1 -1
- package/src/modules/music/components/pages/Track.vue +1 -1
- package/src/modules/orders/components/blocks/CardApplication.vue +74 -0
- package/src/modules/orders/components/blocks/CardCustomer.vue +90 -0
- package/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue +199 -0
- package/src/modules/orders/components/forms/FormApplicationDetails.vue +117 -0
- package/src/modules/orders/components/forms/FormCustomerDetails.vue +165 -0
- package/src/modules/orders/components/forms/FormSelectCustomer.vue +172 -0
- package/src/modules/orders/components/pages/Applications.vue +240 -0
- package/src/modules/orders/components/pages/Customers.vue +239 -0
- package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +4 -75
- package/src/modules/orders/components/sections/ApplicationDetails.vue +91 -0
- package/src/modules/orders/components/sections/CustomerDetails.vue +107 -0
- package/src/modules/orders/locales/en.js +35 -0
- package/src/modules/orders/locales/index.js +7 -0
- package/src/modules/orders/locales/ru.js +35 -0
- package/src/modules/orders/middlewares/applications.verifier.js +189 -0
- package/src/modules/orders/middlewares/customers.verifier.js +251 -0
- package/src/modules/orders/models/application.model.js +21 -0
- package/src/modules/orders/models/customer.model.js +26 -0
- package/src/modules/orders/orders.client.js +86 -1
- package/src/modules/orders/orders.server.js +3 -1
- package/src/modules/orders/router/applications.router.js +15 -0
- package/src/modules/orders/router/customers.router.js +17 -0
- package/src/modules/orders/routes/applications.routes.js +124 -12
- package/src/modules/orders/routes/customers.routes.js +43 -0
- package/src/modules/orders/store/applications.js +3 -159
- package/src/modules/orders/store/models/application.js +18 -0
- package/src/modules/orders/store/models/customer.js +12 -0
- package/src/modules/organizations/components/pages/Organization.new.vue +593 -0
- package/src/modules/organizations/components/pages/Organization.vue +10 -201
- package/src/modules/organizations/components/sections/DetailsTabSection.vue +2 -2
- package/src/modules/organizations/configs/navigation.organization.config.js +69 -85
- package/src/modules/organizations/router/organizations.js +5 -0
- package/src/modules/pages/views/components/pages/Page.vue +1 -1
- package/src/modules/products/TASKS.MD +157 -0
- package/src/modules/products/components/blocks/CardCategory.vue +1 -1
- package/src/modules/products/components/blocks/ProductImages.vue +1 -1
- package/src/modules/products/components/pages/Categories.vue +27 -22
- package/src/modules/products/components/pages/CategoryEdit.vue +24 -13
- package/src/modules/products/components/pages/Products.vue +414 -173
- package/src/modules/products/components/sections/ProductsRecommended.vue +46 -2
- package/src/modules/products/controllers/categories.controller.js +321 -282
- package/src/modules/products/controllers/configs/products.lookup.config.js +9 -0
- package/src/modules/products/controllers/products.controller.js +2 -1
- package/src/modules/products/controllers/queries/products.queries.js +183 -11
- package/src/modules/products/middlewares/categories.verifier.js +58 -15
- package/src/modules/products/migrations/categories-to-materialized-path.js +433 -0
- package/src/modules/products/migrations/path-to-url.js +27 -0
- package/src/modules/products/models/category.model.js +8 -23
- package/src/modules/products/router/products.router.js +12 -0
- package/src/modules/products/store/categories.js +26 -7
- package/src/modules/rents/TASK.MD +161 -0
- package/src/modules/spots/components/pages/Spots.vue +342 -0
- package/src/modules/spots/router/spots.js +15 -0
- package/src/styles/base/all.scss +2 -3
- package/src/styles/layout.scss +16 -0
- package/dist/main-w3rPUBVh.cjs +0 -11
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.cjs +0 -96
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js +0 -96
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js.map +0 -1
- package/dist/martyrs/src/components/Button/Button.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/orders/components/sections/FormAddCustomer.vue.cjs +0 -155
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +0 -155
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +0 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +0 -81
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.js +0 -81
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.js.map +0 -1
- package/src/modules/orders/components/sections/FormAddCustomer.vue +0 -152
- package/src/modules/orders/components/sections/FormCustomerDetails.vue +0 -67
- package/src/modules/orders/controllers/applications.controller.js +0 -122
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import Validator from '@martyrs/src/modules/globals/controllers/classes/globals.validator.js';
|
|
2
|
+
import Verifier from '@martyrs/src/modules/globals/controllers/classes/globals.verifier.js';
|
|
3
|
+
|
|
4
|
+
export default (function (db) {
|
|
5
|
+
|
|
6
|
+
// Верификатор для создания
|
|
7
|
+
const createVerifier = new Verifier({
|
|
8
|
+
email: {
|
|
9
|
+
rule: 'optional',
|
|
10
|
+
validator: Validator.schema()
|
|
11
|
+
.string()
|
|
12
|
+
.email('Invalid email format')
|
|
13
|
+
.max(255, 'Email must not exceed 255 characters')
|
|
14
|
+
},
|
|
15
|
+
phone: {
|
|
16
|
+
rule: 'optional',
|
|
17
|
+
validator: Validator.schema()
|
|
18
|
+
.string()
|
|
19
|
+
.pattern(/^\+?[1-9]\d{1,14}$/, 'Invalid phone format')
|
|
20
|
+
},
|
|
21
|
+
'profile.name': {
|
|
22
|
+
rule: 'optional',
|
|
23
|
+
validator: Validator.schema()
|
|
24
|
+
.string()
|
|
25
|
+
.min(1, 'Name must be at least 1 character')
|
|
26
|
+
.max(255, 'Name must not exceed 255 characters')
|
|
27
|
+
},
|
|
28
|
+
'profile.description': {
|
|
29
|
+
rule: 'optional',
|
|
30
|
+
validator: Validator.schema()
|
|
31
|
+
.string()
|
|
32
|
+
.max(1000, 'Description must not exceed 1000 characters')
|
|
33
|
+
},
|
|
34
|
+
'profile.photo': {
|
|
35
|
+
rule: 'optional',
|
|
36
|
+
validator: Validator.schema()
|
|
37
|
+
.string()
|
|
38
|
+
.max(500, 'Photo URL must not exceed 500 characters')
|
|
39
|
+
},
|
|
40
|
+
source: {
|
|
41
|
+
rule: 'optional',
|
|
42
|
+
default: 'web',
|
|
43
|
+
validator: Validator.schema()
|
|
44
|
+
.string()
|
|
45
|
+
.oneOf(['web', 'mobile', 'api', 'import', 'manual', 'referral', 'social', 'email'])
|
|
46
|
+
},
|
|
47
|
+
'referral.code': {
|
|
48
|
+
rule: 'optional',
|
|
49
|
+
validator: Validator.schema()
|
|
50
|
+
.string()
|
|
51
|
+
.max(50, 'Referral code must not exceed 50 characters')
|
|
52
|
+
},
|
|
53
|
+
'referral.source': {
|
|
54
|
+
rule: 'optional',
|
|
55
|
+
validator: Validator.schema()
|
|
56
|
+
.string()
|
|
57
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid referral source ID format')
|
|
58
|
+
},
|
|
59
|
+
tags: {
|
|
60
|
+
rule: 'optional',
|
|
61
|
+
validator: Validator.schema()
|
|
62
|
+
.array()
|
|
63
|
+
.items(Validator.schema().string().max(50))
|
|
64
|
+
.max(20, 'Cannot have more than 20 tags')
|
|
65
|
+
},
|
|
66
|
+
notes: {
|
|
67
|
+
rule: 'optional',
|
|
68
|
+
validator: Validator.schema()
|
|
69
|
+
.string()
|
|
70
|
+
.max(2000, 'Notes must not exceed 2000 characters')
|
|
71
|
+
},
|
|
72
|
+
status: {
|
|
73
|
+
rule: 'optional',
|
|
74
|
+
default: 'active',
|
|
75
|
+
validator: Validator.schema()
|
|
76
|
+
.string()
|
|
77
|
+
.oneOf(['active', 'inactive', 'blocked'])
|
|
78
|
+
},
|
|
79
|
+
'identity.type': {
|
|
80
|
+
rule: 'required',
|
|
81
|
+
validator: Validator.schema()
|
|
82
|
+
.string()
|
|
83
|
+
.oneOf(['Visitor', 'User', 'Organization'])
|
|
84
|
+
},
|
|
85
|
+
'identity.target': {
|
|
86
|
+
rule: 'optional',
|
|
87
|
+
validator: Validator.schema()
|
|
88
|
+
.string()
|
|
89
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid identity target ID format')
|
|
90
|
+
},
|
|
91
|
+
owner: {
|
|
92
|
+
rule: 'required',
|
|
93
|
+
validator: Validator.schema().object({
|
|
94
|
+
type: Validator.schema().string().oneOf(['user', 'organization', 'User', 'Organization']),
|
|
95
|
+
target: Validator.schema().string().pattern(/^[0-9a-fA-F]{24}$/)
|
|
96
|
+
})
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
// Верификатор для обновления
|
|
101
|
+
const updateVerifier = new Verifier({
|
|
102
|
+
_id: {
|
|
103
|
+
rule: 'required',
|
|
104
|
+
validator: Validator.schema()
|
|
105
|
+
.string()
|
|
106
|
+
.required('Customer ID is required')
|
|
107
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid ID format')
|
|
108
|
+
},
|
|
109
|
+
email: {
|
|
110
|
+
rule: 'optional',
|
|
111
|
+
validator: Validator.schema()
|
|
112
|
+
.string()
|
|
113
|
+
.email('Invalid email format')
|
|
114
|
+
.max(255, 'Email must not exceed 255 characters')
|
|
115
|
+
},
|
|
116
|
+
phone: {
|
|
117
|
+
rule: 'optional',
|
|
118
|
+
validator: Validator.schema()
|
|
119
|
+
.string()
|
|
120
|
+
.pattern(/^\+?[1-9]\d{1,14}$/, 'Invalid phone format')
|
|
121
|
+
},
|
|
122
|
+
'profile.name': {
|
|
123
|
+
rule: 'optional',
|
|
124
|
+
validator: Validator.schema()
|
|
125
|
+
.string()
|
|
126
|
+
.min(1, 'Name must be at least 1 character')
|
|
127
|
+
.max(255, 'Name must not exceed 255 characters')
|
|
128
|
+
},
|
|
129
|
+
'profile.description': {
|
|
130
|
+
rule: 'optional',
|
|
131
|
+
validator: Validator.schema()
|
|
132
|
+
.string()
|
|
133
|
+
.max(1000, 'Description must not exceed 1000 characters')
|
|
134
|
+
},
|
|
135
|
+
'profile.photo': {
|
|
136
|
+
rule: 'optional',
|
|
137
|
+
validator: Validator.schema()
|
|
138
|
+
.string()
|
|
139
|
+
.max(500, 'Photo URL must not exceed 500 characters')
|
|
140
|
+
},
|
|
141
|
+
source: {
|
|
142
|
+
rule: 'optional',
|
|
143
|
+
validator: Validator.schema()
|
|
144
|
+
.string()
|
|
145
|
+
.oneOf(['web', 'mobile', 'api', 'import', 'manual', 'referral', 'social', 'email'])
|
|
146
|
+
},
|
|
147
|
+
'referral.code': {
|
|
148
|
+
rule: 'optional',
|
|
149
|
+
validator: Validator.schema()
|
|
150
|
+
.string()
|
|
151
|
+
.max(50, 'Referral code must not exceed 50 characters')
|
|
152
|
+
},
|
|
153
|
+
'referral.source': {
|
|
154
|
+
rule: 'optional',
|
|
155
|
+
validator: Validator.schema()
|
|
156
|
+
.string()
|
|
157
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid referral source ID format')
|
|
158
|
+
},
|
|
159
|
+
tags: {
|
|
160
|
+
rule: 'optional',
|
|
161
|
+
validator: Validator.schema()
|
|
162
|
+
.array()
|
|
163
|
+
.items(Validator.schema().string().max(50))
|
|
164
|
+
.max(20, 'Cannot have more than 20 tags')
|
|
165
|
+
},
|
|
166
|
+
notes: {
|
|
167
|
+
rule: 'optional',
|
|
168
|
+
validator: Validator.schema()
|
|
169
|
+
.string()
|
|
170
|
+
.max(2000, 'Notes must not exceed 2000 characters')
|
|
171
|
+
},
|
|
172
|
+
status: {
|
|
173
|
+
rule: 'optional',
|
|
174
|
+
validator: Validator.schema()
|
|
175
|
+
.string()
|
|
176
|
+
.oneOf(['active', 'inactive', 'blocked'])
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
// Верификатор для чтения
|
|
181
|
+
const readVerifier = new Verifier({
|
|
182
|
+
_id: {
|
|
183
|
+
rule: 'optional',
|
|
184
|
+
validator: Validator.schema()
|
|
185
|
+
.string()
|
|
186
|
+
.pattern(/^[0-9a-fA-F]{24}$/)
|
|
187
|
+
},
|
|
188
|
+
owner: {
|
|
189
|
+
rule: 'optional',
|
|
190
|
+
validator: Validator.schema().string()
|
|
191
|
+
},
|
|
192
|
+
status: {
|
|
193
|
+
rule: 'optional',
|
|
194
|
+
validator: Validator.schema()
|
|
195
|
+
.string()
|
|
196
|
+
.oneOf(['active', 'inactive', 'blocked'])
|
|
197
|
+
},
|
|
198
|
+
source: {
|
|
199
|
+
rule: 'optional',
|
|
200
|
+
validator: Validator.schema()
|
|
201
|
+
.string()
|
|
202
|
+
.oneOf(['web', 'mobile', 'api', 'import', 'manual', 'referral', 'social', 'email'])
|
|
203
|
+
},
|
|
204
|
+
skip: {
|
|
205
|
+
rule: 'optional',
|
|
206
|
+
default: 0,
|
|
207
|
+
validator: Validator.schema()
|
|
208
|
+
.integer()
|
|
209
|
+
.min(0)
|
|
210
|
+
},
|
|
211
|
+
limit: {
|
|
212
|
+
rule: 'optional',
|
|
213
|
+
default: 20,
|
|
214
|
+
validator: Validator.schema()
|
|
215
|
+
.integer()
|
|
216
|
+
.min(1)
|
|
217
|
+
.max(100)
|
|
218
|
+
},
|
|
219
|
+
sortParam: {
|
|
220
|
+
rule: 'optional',
|
|
221
|
+
validator: Validator.schema()
|
|
222
|
+
.string()
|
|
223
|
+
.oneOf(['profile.name', 'email', 'phone', 'lastActivity', 'createdAt', 'updatedAt'])
|
|
224
|
+
},
|
|
225
|
+
sortOrder: {
|
|
226
|
+
rule: 'optional',
|
|
227
|
+
default: 'desc',
|
|
228
|
+
validator: Validator.schema()
|
|
229
|
+
.string()
|
|
230
|
+
.oneOf(['asc', 'desc'])
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
// Верификатор для удаления
|
|
235
|
+
const deleteVerifier = new Verifier({
|
|
236
|
+
_id: {
|
|
237
|
+
rule: 'required',
|
|
238
|
+
validator: Validator.schema()
|
|
239
|
+
.string()
|
|
240
|
+
.required('Customer ID is required')
|
|
241
|
+
.pattern(/^[0-9a-fA-F]{24}$/)
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
return {
|
|
246
|
+
createVerifier,
|
|
247
|
+
readVerifier,
|
|
248
|
+
updateVerifier,
|
|
249
|
+
deleteVerifier
|
|
250
|
+
};
|
|
251
|
+
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import applyOwnershipSchema from '@martyrs/src/modules/globals/models/schemas/ownership.schema.js';
|
|
2
|
+
|
|
1
3
|
export default db => {
|
|
2
4
|
const ApplicationSchema = new db.mongoose.Schema(
|
|
3
5
|
{
|
|
@@ -20,11 +22,30 @@ export default db => {
|
|
|
20
22
|
type: String,
|
|
21
23
|
},
|
|
22
24
|
},
|
|
25
|
+
text: {
|
|
26
|
+
type: String,
|
|
27
|
+
},
|
|
28
|
+
chat: {
|
|
29
|
+
type: String,
|
|
30
|
+
},
|
|
31
|
+
customer: {
|
|
32
|
+
type: {
|
|
33
|
+
type: String,
|
|
34
|
+
enum: ['Customer'],
|
|
35
|
+
},
|
|
36
|
+
target: {
|
|
37
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
|
38
|
+
ref: 'Customer',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
23
41
|
},
|
|
24
42
|
{
|
|
25
43
|
timestamps: { currentTime: () => Date.now() },
|
|
26
44
|
}
|
|
27
45
|
);
|
|
46
|
+
|
|
47
|
+
applyOwnershipSchema(ApplicationSchema, db);
|
|
48
|
+
|
|
28
49
|
const Application = db.mongoose.model('Application', ApplicationSchema);
|
|
29
50
|
return Application;
|
|
30
51
|
};
|
|
@@ -16,10 +16,34 @@ export default db => {
|
|
|
16
16
|
refPath: 'target.type',
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
|
+
source: {
|
|
20
|
+
type: String,
|
|
21
|
+
enum: ['web', 'mobile', 'api', 'import', 'manual', 'referral', 'social', 'email'],
|
|
22
|
+
default: 'web',
|
|
23
|
+
},
|
|
19
24
|
referral: {
|
|
20
25
|
code: {
|
|
21
26
|
type: String,
|
|
22
27
|
},
|
|
28
|
+
source: {
|
|
29
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
|
30
|
+
ref: 'Customer',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
tags: [{
|
|
34
|
+
type: String,
|
|
35
|
+
}],
|
|
36
|
+
notes: {
|
|
37
|
+
type: String,
|
|
38
|
+
},
|
|
39
|
+
lastActivity: {
|
|
40
|
+
type: Date,
|
|
41
|
+
default: Date.now,
|
|
42
|
+
},
|
|
43
|
+
status: {
|
|
44
|
+
type: String,
|
|
45
|
+
enum: ['active', 'inactive', 'blocked'],
|
|
46
|
+
default: 'active',
|
|
23
47
|
},
|
|
24
48
|
},
|
|
25
49
|
{
|
|
@@ -31,6 +55,8 @@ export default db => {
|
|
|
31
55
|
applyCredentialsSchema(CustomerSchema, db);
|
|
32
56
|
applyProfileSchema(CustomerSchema, db);
|
|
33
57
|
applyOwnershipSchema(CustomerSchema, db);
|
|
58
|
+
|
|
59
|
+
|
|
34
60
|
CustomerSchema.index(
|
|
35
61
|
{
|
|
36
62
|
owner: 1,
|
|
@@ -2,31 +2,43 @@
|
|
|
2
2
|
import * as storeOrders from './store/orders.js';
|
|
3
3
|
import * as storeShopcart from './store/shopcart.js';
|
|
4
4
|
import * as storeTestimonials from './store/testimonials.js';
|
|
5
|
+
import storeCustomers from './store/customers.store.js';
|
|
6
|
+
import storeApplications from './store/applications.js';
|
|
5
7
|
// Router
|
|
6
8
|
import addRoutes from '@martyrs/src/modules/globals/views/router/addRoutes.js';
|
|
7
9
|
import routerOrders from './router/orders.router.js';
|
|
10
|
+
import routerCustomers from './router/customers.router.js';
|
|
11
|
+
import routerApplications from './router/applications.router.js';
|
|
8
12
|
// Views
|
|
9
13
|
import OrderCreate from './components/pages/OrderCreate.vue';
|
|
10
14
|
import OrderCreateBackoffice from './components/pages/OrderCreateBackoffice.vue';
|
|
11
15
|
import Orders from './components/pages/Orders.vue';
|
|
16
|
+
import Customers from './components/pages/Customers.vue';
|
|
17
|
+
import Applications from './components/pages/Applications.vue';
|
|
12
18
|
// import Favorites from './components/pages/Favorites.vue';
|
|
13
19
|
// Importing blocks components
|
|
14
20
|
import CardOrder from './components/blocks/CardOrder.vue';
|
|
15
21
|
import CardOrderItem from './components/blocks/CardOrderItem.vue';
|
|
16
22
|
import CardOrderUser from './components/blocks/CardOrderUser.vue';
|
|
23
|
+
import CardCustomer from './components/blocks/CardCustomer.vue';
|
|
17
24
|
import StatusHistory from './components/blocks/StatusHistory.vue';
|
|
18
25
|
// Importing sections components
|
|
19
26
|
import AskToLogin from './components/sections/AskToLogin.vue';
|
|
20
27
|
import EmptyState from './components/sections/EmptyState.vue';
|
|
21
|
-
import FormCustomerDetails from './components/
|
|
28
|
+
import FormCustomerDetails from './components/forms/FormCustomerDetails.vue';
|
|
22
29
|
import FormDelivery from './components/sections/FormDelivery.vue';
|
|
23
30
|
import FormPayment from './components/sections/FormPayment.vue';
|
|
24
31
|
import Succes from './components/sections/Succes.vue';
|
|
25
32
|
// Importing partials components
|
|
26
33
|
import ShopCart from './components/partials/ShopCart.vue';
|
|
27
34
|
|
|
35
|
+
import { i18nManager } from '@martyrs/src/modules/globals/views/classes/globals.i18n.js';
|
|
36
|
+
import locales from './locales/index.js';
|
|
37
|
+
|
|
28
38
|
// Пример функции инициализации для модуля заказов
|
|
29
39
|
function initializeOrders(app, store, router, options = {}) {
|
|
40
|
+
// Регистрируем локализацию для модуля orders
|
|
41
|
+
i18nManager.register('orders', locales);
|
|
30
42
|
const route = options.route || 'Home';
|
|
31
43
|
const routeBackoffice = options.routeBackoffice || 'Backoffice Root';
|
|
32
44
|
const routeOrganizations = options.routeOrganizations || 'OrganizationRoot';
|
|
@@ -99,9 +111,75 @@ function initializeOrders(app, store, router, options = {}) {
|
|
|
99
111
|
console.log('Route keys:', orgOrdersList?.keys);
|
|
100
112
|
}
|
|
101
113
|
|
|
114
|
+
// Customer routes for backoffice
|
|
115
|
+
if (!options.withBackoffice) {
|
|
116
|
+
addRoutes(router, {
|
|
117
|
+
parentName: routeBackoffice,
|
|
118
|
+
basePath: 'customers',
|
|
119
|
+
routes: routerCustomers,
|
|
120
|
+
routeNamePrefix: 'Backoffice',
|
|
121
|
+
filterConfig: {
|
|
122
|
+
include: ['CustomersList'],
|
|
123
|
+
},
|
|
124
|
+
meta: {
|
|
125
|
+
context: 'backoffice',
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Customer routes for organizations
|
|
131
|
+
if (!options.withOrganizationRoutes) {
|
|
132
|
+
addRoutes(router, {
|
|
133
|
+
parentName: routeOrganizations,
|
|
134
|
+
basePath: 'customers',
|
|
135
|
+
routes: routerCustomers,
|
|
136
|
+
routeNamePrefix: 'Organization',
|
|
137
|
+
filterConfig: {
|
|
138
|
+
include: ['CustomersList'],
|
|
139
|
+
},
|
|
140
|
+
meta: {
|
|
141
|
+
context: 'organization',
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Application routes for backoffice
|
|
147
|
+
if (!options.withBackoffice) {
|
|
148
|
+
addRoutes(router, {
|
|
149
|
+
parentName: routeBackoffice,
|
|
150
|
+
basePath: 'applications',
|
|
151
|
+
routes: routerApplications,
|
|
152
|
+
routeNamePrefix: 'Backoffice',
|
|
153
|
+
filterConfig: {
|
|
154
|
+
include: ['Applications'],
|
|
155
|
+
},
|
|
156
|
+
meta: {
|
|
157
|
+
context: 'backoffice',
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// Application routes for organizations
|
|
163
|
+
if (!options.withOrganizationRoutes) {
|
|
164
|
+
addRoutes(router, {
|
|
165
|
+
parentName: routeOrganizations,
|
|
166
|
+
basePath: 'applications',
|
|
167
|
+
routes: routerApplications,
|
|
168
|
+
routeNamePrefix: 'Organization',
|
|
169
|
+
filterConfig: {
|
|
170
|
+
include: ['Applications'],
|
|
171
|
+
},
|
|
172
|
+
meta: {
|
|
173
|
+
context: 'organization',
|
|
174
|
+
},
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
102
178
|
store.addStore('orders', storeOrders);
|
|
103
179
|
store.addStore('shopcart', storeShopcart);
|
|
104
180
|
store.addStore('testimonials', storeTestimonials);
|
|
181
|
+
store.addStore('customers', storeCustomers);
|
|
182
|
+
store.addStore('applications', storeApplications);
|
|
105
183
|
}
|
|
106
184
|
|
|
107
185
|
const ModuleOrder = {
|
|
@@ -111,13 +189,19 @@ const ModuleOrder = {
|
|
|
111
189
|
storeOrders,
|
|
112
190
|
storeShopcart,
|
|
113
191
|
storeTestimonials,
|
|
192
|
+
storeCustomers,
|
|
193
|
+
storeApplications,
|
|
114
194
|
},
|
|
115
195
|
router: {
|
|
116
196
|
routerOrders,
|
|
197
|
+
routerCustomers,
|
|
198
|
+
routerApplications,
|
|
117
199
|
},
|
|
118
200
|
components: {
|
|
119
201
|
// Pages
|
|
120
202
|
Orders,
|
|
203
|
+
Customers,
|
|
204
|
+
Applications,
|
|
121
205
|
// Order,
|
|
122
206
|
OrderCreate,
|
|
123
207
|
OrderCreateBackoffice,
|
|
@@ -126,6 +210,7 @@ const ModuleOrder = {
|
|
|
126
210
|
CardOrderItem,
|
|
127
211
|
CardOrder,
|
|
128
212
|
CardOrderUser,
|
|
213
|
+
CardCustomer,
|
|
129
214
|
StatusHistory,
|
|
130
215
|
// Sections
|
|
131
216
|
FormCustomerDetails,
|
|
@@ -6,6 +6,7 @@ import ModelOrder from './models/order.model.js';
|
|
|
6
6
|
import ModelTestimonial from './models/testimonial.model.js';
|
|
7
7
|
import RoutesApplications from './routes/applications.routes.js';
|
|
8
8
|
import RoutesOrder from './routes/orders.routes.js';
|
|
9
|
+
import RoutesCustomers from './routes/customers.routes.js';
|
|
9
10
|
function initializeOrders(app, db, origins, publicPath) {
|
|
10
11
|
// Setup models in the database object
|
|
11
12
|
db.order = ModelOrder(db);
|
|
@@ -16,7 +17,7 @@ function initializeOrders(app, db, origins, publicPath) {
|
|
|
16
17
|
if (app) {
|
|
17
18
|
RoutesOrder(app, db, origins, publicPath);
|
|
18
19
|
RoutesApplications(app, db, origins, publicPath);
|
|
19
|
-
|
|
20
|
+
RoutesCustomers(app, db);
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
export const models = {
|
|
@@ -25,6 +26,7 @@ export const models = {
|
|
|
25
26
|
};
|
|
26
27
|
export const routes = {
|
|
27
28
|
RoutesOrder,
|
|
29
|
+
RoutesCustomers,
|
|
28
30
|
};
|
|
29
31
|
export const controllers = {
|
|
30
32
|
FactoryOrder,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const applicationsRoutes = [
|
|
2
|
+
{
|
|
3
|
+
path: '',
|
|
4
|
+
name: 'Applications',
|
|
5
|
+
component: () => import('@martyrs/src/modules/orders/components/pages/Applications.vue'),
|
|
6
|
+
meta: {
|
|
7
|
+
title: {
|
|
8
|
+
en: 'Applications',
|
|
9
|
+
ru: 'Заявки',
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
export default applicationsRoutes;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Customers from '@martyrs/src/modules/orders/components/pages/Customers.vue';
|
|
2
|
+
|
|
3
|
+
const customersRoutes = [
|
|
4
|
+
{
|
|
5
|
+
path: '',
|
|
6
|
+
name: 'CustomersList',
|
|
7
|
+
component: Customers,
|
|
8
|
+
meta: {
|
|
9
|
+
title: {
|
|
10
|
+
en: 'Customers',
|
|
11
|
+
ru: 'Клиенты',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
export default customersRoutes;
|
|
@@ -1,12 +1,124 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import CRUD from '@martyrs/src/modules/globals/controllers/classes/crud/crud.js';
|
|
2
|
+
import ABAC from '@martyrs/src/modules/globals/controllers/classes/abac/abac.js';
|
|
3
|
+
import mailing from '@martyrs/src/modules/globals/controllers/utils/mailing.js';
|
|
4
|
+
import axios from 'axios';
|
|
5
|
+
|
|
6
|
+
import verifierFactory from '../middlewares/applications.verifier.js';
|
|
7
|
+
|
|
8
|
+
const { getInstance } = ABAC;
|
|
9
|
+
|
|
10
|
+
export default function setupApplicationsRoutes(app, db) {
|
|
11
|
+
const abac = getInstance(db);
|
|
12
|
+
const verifier = verifierFactory(db);
|
|
13
|
+
|
|
14
|
+
const applicationsCRUD = new CRUD({
|
|
15
|
+
app,
|
|
16
|
+
db,
|
|
17
|
+
model: db.application,
|
|
18
|
+
modelName: 'application',
|
|
19
|
+
basePath: '/api/applications',
|
|
20
|
+
|
|
21
|
+
auth: true,
|
|
22
|
+
|
|
23
|
+
verifiers: {
|
|
24
|
+
create: verifier.createVerifier,
|
|
25
|
+
read: verifier.readVerifier,
|
|
26
|
+
update: verifier.updateVerifier,
|
|
27
|
+
delete: verifier.deleteVerifier
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
abac: abac,
|
|
31
|
+
|
|
32
|
+
cache: {
|
|
33
|
+
enabled: true,
|
|
34
|
+
ttl: 300,
|
|
35
|
+
tags: ['application', 'orders']
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
events: {
|
|
39
|
+
enabled: true,
|
|
40
|
+
logReads: false
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// Добавляем кастомный роут для телеграм вебхука
|
|
45
|
+
applicationsCRUD.addAction('telegram-webhook', {
|
|
46
|
+
method: 'post',
|
|
47
|
+
path: '/telegram-webhook',
|
|
48
|
+
auth: false,
|
|
49
|
+
abac: { enabled: false },
|
|
50
|
+
handler: async (req, res) => {
|
|
51
|
+
const update = req.body;
|
|
52
|
+
|
|
53
|
+
if (update.callback_query) {
|
|
54
|
+
const callbackQuery = update.callback_query;
|
|
55
|
+
const callbackData = callbackQuery.data;
|
|
56
|
+
const [action, applicationId] = callbackData.split('_');
|
|
57
|
+
|
|
58
|
+
try {
|
|
59
|
+
let updatedApplication = null;
|
|
60
|
+
switch (action) {
|
|
61
|
+
case 'confirm':
|
|
62
|
+
updatedApplication = await db.application.findOneAndUpdate({ _id: applicationId }, { status: 'confirmed' }, { new: true });
|
|
63
|
+
break;
|
|
64
|
+
case 'lost':
|
|
65
|
+
updatedApplication = await db.application.findOneAndUpdate({ _id: applicationId }, { status: 'lost' }, { new: true });
|
|
66
|
+
break;
|
|
67
|
+
case 'delete':
|
|
68
|
+
updatedApplication = await db.application.findOneAndDelete({ _id: applicationId });
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (!updatedApplication) {
|
|
73
|
+
console.log('Application not found or not updated.');
|
|
74
|
+
} else {
|
|
75
|
+
console.log('Application updated:', updatedApplication);
|
|
76
|
+
}
|
|
77
|
+
} catch (err) {
|
|
78
|
+
console.log('Error updating application:', err);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const queryId = callbackQuery.id;
|
|
82
|
+
const telegramToken = '6206215053:AAHYCYzpFZF9jDZC-TC03NSff8oo2ExqsSU';
|
|
83
|
+
axios.post(`https://api.telegram.org/bot${telegramToken}/answerCallbackQuery`, {
|
|
84
|
+
callback_query_id: queryId,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
res.sendStatus(200);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// Добавляем публичный роут для создания заявок пользователями
|
|
93
|
+
applicationsCRUD.addAction('public-create', {
|
|
94
|
+
method: 'post',
|
|
95
|
+
path: '/public',
|
|
96
|
+
auth: false,
|
|
97
|
+
abac: { enabled: false },
|
|
98
|
+
handler: async (req, res) => {
|
|
99
|
+
try {
|
|
100
|
+
const applicationData = {
|
|
101
|
+
...req.body,
|
|
102
|
+
owner: {
|
|
103
|
+
type: 'platform',
|
|
104
|
+
target: '000000000000000000000000' // заглушка для отдела платформы
|
|
105
|
+
},
|
|
106
|
+
creator: {
|
|
107
|
+
type: 'platform',
|
|
108
|
+
target: '000000000000000000000000'
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
const application = new db.application(applicationData);
|
|
113
|
+
const saved = await application.save();
|
|
114
|
+
|
|
115
|
+
res.status(201).json(saved);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.error('Error creating public application:', error);
|
|
118
|
+
res.status(500).json({ error: error.message });
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
return applicationsCRUD;
|
|
124
|
+
}
|