@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
|
@@ -163,63 +163,11 @@
|
|
|
163
163
|
/>
|
|
164
164
|
</Block>
|
|
165
165
|
|
|
166
|
-
<
|
|
166
|
+
<FormSelectCustomer
|
|
167
167
|
v-if="tabOrderCreate === 'customer'"
|
|
168
|
-
|
|
168
|
+
v-model:customer="orders.state.current.customer"
|
|
169
169
|
class="mn-b-semi"
|
|
170
|
-
|
|
171
|
-
label: '+',
|
|
172
|
-
function: () => openCustomerPopup()
|
|
173
|
-
}]"
|
|
174
|
-
>
|
|
175
|
-
<CardUser
|
|
176
|
-
v-if="orders.state.current.customer._id"
|
|
177
|
-
:user="orders.state.current.customer"
|
|
178
|
-
:photo="orders.state.current.customer.profile.photo"
|
|
179
|
-
:name="orders.state.current.customer.profile.name || orders.state.current.customer.phone || orders.state.current.customer.email"
|
|
180
|
-
@click="() => {
|
|
181
|
-
orders.mutations.resetCustomer(orders.state.current.customer)
|
|
182
|
-
}"
|
|
183
|
-
class="bg-white pd-thin h-4r radius-medium w-100 mn-b-thin"
|
|
184
|
-
/>
|
|
185
|
-
<Feed
|
|
186
|
-
v-else
|
|
187
|
-
:search="{
|
|
188
|
-
placeholder: 'Search customer...',
|
|
189
|
-
class: 'bg-white mn-b-thin'
|
|
190
|
-
}"
|
|
191
|
-
:states="{
|
|
192
|
-
empty: {
|
|
193
|
-
title: 'No Products Found',
|
|
194
|
-
description: 'Currently, there are no such products available.'
|
|
195
|
-
}
|
|
196
|
-
}"
|
|
197
|
-
:store="{
|
|
198
|
-
read: (options) => customers.read(options),
|
|
199
|
-
state: null
|
|
200
|
-
}"
|
|
201
|
-
:options="{
|
|
202
|
-
owner: route.params._id
|
|
203
|
-
}"
|
|
204
|
-
v-slot="{
|
|
205
|
-
items
|
|
206
|
-
}"
|
|
207
|
-
class="bg-light h-max-20r o-scroll"
|
|
208
|
-
>
|
|
209
|
-
<CardUser
|
|
210
|
-
v-for="(user, index) in items"
|
|
211
|
-
:key="user._id"
|
|
212
|
-
:user="user"
|
|
213
|
-
:photo="user.profile.photo"
|
|
214
|
-
:name="user.profile.name || user.phone || user.email"
|
|
215
|
-
@click="() => {
|
|
216
|
-
orders.state.current.customer = user
|
|
217
|
-
}"
|
|
218
|
-
class="bg-white pd-thin h-4r radius-medium w-100 mn-b-thin"
|
|
219
|
-
/>
|
|
220
|
-
</Feed>
|
|
221
|
-
|
|
222
|
-
</Block>
|
|
170
|
+
/>
|
|
223
171
|
|
|
224
172
|
<FormDelivery
|
|
225
173
|
v-if="tabOrderCreate === 'delivery'"
|
|
@@ -233,16 +181,6 @@
|
|
|
233
181
|
:organization="orderOrganization[0]"
|
|
234
182
|
/>
|
|
235
183
|
|
|
236
|
-
<Popup
|
|
237
|
-
title="Add customer"
|
|
238
|
-
@close-popup="closeCustomerPopup"
|
|
239
|
-
:isPopupOpen="isOpenCustomerPopup"
|
|
240
|
-
:class="'bg-white w-min-30r w-max-30r radius-big pd-medium'"
|
|
241
|
-
>
|
|
242
|
-
<FormAddCustomer
|
|
243
|
-
@callbackCustomer="closeCustomerPopup"
|
|
244
|
-
/>
|
|
245
|
-
</Popup>
|
|
246
184
|
|
|
247
185
|
<Block
|
|
248
186
|
class="mn-b-semi"
|
|
@@ -275,7 +213,7 @@
|
|
|
275
213
|
|
|
276
214
|
import BlockSearch from '@martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue'
|
|
277
215
|
|
|
278
|
-
import
|
|
216
|
+
import FormSelectCustomer from '@martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue'
|
|
279
217
|
import FormDelivery from '@martyrs/src/modules/orders/components/sections/FormDelivery.vue'
|
|
280
218
|
import FormPayment from '@martyrs/src/modules/orders/components/sections/FormPayment.vue'
|
|
281
219
|
|
|
@@ -396,15 +334,6 @@
|
|
|
396
334
|
}
|
|
397
335
|
}
|
|
398
336
|
|
|
399
|
-
const isOpenCustomerPopup = ref(false);
|
|
400
|
-
|
|
401
|
-
function openCustomerPopup() {
|
|
402
|
-
isOpenCustomerPopup.value = true;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
function closeCustomerPopup() {
|
|
406
|
-
isOpenCustomerPopup.value = false;
|
|
407
|
-
}
|
|
408
337
|
|
|
409
338
|
// Функции управления позициями заказа
|
|
410
339
|
function incrementOrderItemQuantity(productId, variantId) {
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="gap-small cols-1">
|
|
3
|
+
<Block title="Application Information">
|
|
4
|
+
<div class="gap-small">
|
|
5
|
+
<div class="flex">
|
|
6
|
+
<strong class="mn-r-auto">Name:</strong>
|
|
7
|
+
<span>{{ application.contacts?.name || 'Not specified' }}</span>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="flex">
|
|
10
|
+
<strong class="mn-r-auto">Email:</strong>
|
|
11
|
+
<span>{{ application.contacts?.email || 'Not specified' }}</span>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="flex">
|
|
14
|
+
<strong class="mn-r-auto">Phone:</strong>
|
|
15
|
+
<span>{{ application.contacts?.phone || 'Not specified' }}</span>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="flex">
|
|
18
|
+
<strong class="mn-r-auto">Status:</strong>
|
|
19
|
+
<StatusBadge :value="{
|
|
20
|
+
text: application.status,
|
|
21
|
+
color: application.status === 'completed' ? '#22c55e' : application.status === 'in_progress' ? '#f59e0b' : '#6b7280'
|
|
22
|
+
}" />
|
|
23
|
+
</div>
|
|
24
|
+
<div class="flex">
|
|
25
|
+
<strong class="mn-r-auto">Type:</strong>
|
|
26
|
+
<span>{{ application.type || 'Unknown' }}</span>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</Block>
|
|
30
|
+
|
|
31
|
+
<Block title="Additional Information">
|
|
32
|
+
<div class="gap-small">
|
|
33
|
+
<div class="flex">
|
|
34
|
+
<strong class="mn-r-auto">Created:</strong>
|
|
35
|
+
<span>{{ formatDate(application.createdAt) }}</span>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="flex">
|
|
38
|
+
<strong class="mn-r-auto">Updated:</strong>
|
|
39
|
+
<span>{{ formatDate(application.updatedAt) }}</span>
|
|
40
|
+
</div>
|
|
41
|
+
<div v-if="application.text">
|
|
42
|
+
<strong>Message:</strong>
|
|
43
|
+
<p class="mn-t-thin">{{ application.text }}</p>
|
|
44
|
+
</div>
|
|
45
|
+
<div v-if="application.chat">
|
|
46
|
+
<strong>Chat ID:</strong>
|
|
47
|
+
<p class="mn-t-thin">{{ application.chat }}</p>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</Block>
|
|
51
|
+
|
|
52
|
+
<div class="gap-thin flex mn-t-small">
|
|
53
|
+
<Button
|
|
54
|
+
@click="$emit('edit')"
|
|
55
|
+
class="w-100 pd-small radius-big bg-main t-black uppercase t-medium"
|
|
56
|
+
>
|
|
57
|
+
Edit
|
|
58
|
+
</Button>
|
|
59
|
+
<Button
|
|
60
|
+
@click="$emit('delete')"
|
|
61
|
+
class="w-100 pd-small radius-big bg-danger t-white uppercase t-medium"
|
|
62
|
+
>
|
|
63
|
+
Delete
|
|
64
|
+
</Button>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<script setup>
|
|
70
|
+
import Block from '@martyrs/src/components/Block/Block.vue';
|
|
71
|
+
import StatusBadge from '@martyrs/src/components/Table/StatusBadge.vue';
|
|
72
|
+
import Button from '@martyrs/src/components/Button/Button.vue';
|
|
73
|
+
import { useGlobalMixins } from '@martyrs/src/modules/globals/views/mixins/mixins.js';
|
|
74
|
+
|
|
75
|
+
const { formatDate } = useGlobalMixins();
|
|
76
|
+
|
|
77
|
+
defineProps({
|
|
78
|
+
application: {
|
|
79
|
+
type: Object,
|
|
80
|
+
required: true
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
defineEmits(['edit', 'delete']);
|
|
85
|
+
</script>
|
|
86
|
+
|
|
87
|
+
<style scoped>
|
|
88
|
+
.bg-danger {
|
|
89
|
+
background-color: #ef4444;
|
|
90
|
+
}
|
|
91
|
+
</style>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="gap-small cols-1">
|
|
3
|
+
<Block title="Customer Information">
|
|
4
|
+
<div class="gap-small">
|
|
5
|
+
<div class="flex">
|
|
6
|
+
<strong class="mn-r-auto">Name:</strong>
|
|
7
|
+
<span>{{ customer.profile?.name || 'Not specified' }}</span>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="flex">
|
|
10
|
+
<strong class="mn-r-auto">Email:</strong>
|
|
11
|
+
<span>{{ customer.email || 'Not specified' }}</span>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="flex">
|
|
14
|
+
<strong class="mn-r-auto">Phone:</strong>
|
|
15
|
+
<span>{{ customer.phone || 'Not specified' }}</span>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="flex">
|
|
18
|
+
<strong class="mn-r-auto">Status:</strong>
|
|
19
|
+
<StatusBadge :value="{
|
|
20
|
+
text: customer.status,
|
|
21
|
+
color: customer.status === 'active' ? '#22c55e' : customer.status === 'inactive' ? '#f59e0b' : '#ef4444'
|
|
22
|
+
}" />
|
|
23
|
+
</div>
|
|
24
|
+
<div class="flex">
|
|
25
|
+
<strong class="mn-r-auto">Source:</strong>
|
|
26
|
+
<span>{{ customer.source || 'Unknown' }}</span>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="flex">
|
|
29
|
+
<strong class="mn-r-auto">Type:</strong>
|
|
30
|
+
<span>{{ customer.identity?.type || 'Visitor' }}</span>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</Block>
|
|
34
|
+
|
|
35
|
+
<Block title="Additional Information">
|
|
36
|
+
<div class="gap-small">
|
|
37
|
+
<div v-if="customer.referral?.code" class="flex">
|
|
38
|
+
<strong class="mn-r-auto">Referral Code:</strong>
|
|
39
|
+
<span>{{ customer.referral.code }}</span>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="flex">
|
|
42
|
+
<strong class="mn-r-auto">Created:</strong>
|
|
43
|
+
<span>{{ formatDate(customer.createdAt) }}</span>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="flex">
|
|
46
|
+
<strong class="mn-r-auto">Last Activity:</strong>
|
|
47
|
+
<span>{{ formatDate(customer.lastActivity || customer.updatedAt) }}</span>
|
|
48
|
+
</div>
|
|
49
|
+
<div v-if="customer.tags && customer.tags.length > 0">
|
|
50
|
+
<strong>Tags:</strong>
|
|
51
|
+
<div class="flex flex-wrap gap-nano mn-t-thin">
|
|
52
|
+
<span
|
|
53
|
+
v-for="tag in customer.tags"
|
|
54
|
+
:key="tag"
|
|
55
|
+
class="bg-light pd-nano radius-small t-small"
|
|
56
|
+
>
|
|
57
|
+
{{ tag }}
|
|
58
|
+
</span>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div v-if="customer.notes">
|
|
62
|
+
<strong>Notes:</strong>
|
|
63
|
+
<p class="mn-t-thin">{{ customer.notes }}</p>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</Block>
|
|
67
|
+
|
|
68
|
+
<div class="gap-thin flex mn-t-small">
|
|
69
|
+
<Button
|
|
70
|
+
@click="$emit('edit')"
|
|
71
|
+
class="w-100 pd-small radius-big bg-main t-black uppercase t-medium"
|
|
72
|
+
>
|
|
73
|
+
Edit
|
|
74
|
+
</Button>
|
|
75
|
+
<Button
|
|
76
|
+
@click="$emit('delete')"
|
|
77
|
+
class="w-100 pd-small radius-big bg-danger t-white uppercase t-medium"
|
|
78
|
+
>
|
|
79
|
+
Delete
|
|
80
|
+
</Button>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</template>
|
|
84
|
+
|
|
85
|
+
<script setup>
|
|
86
|
+
import Block from '@martyrs/src/components/Block/Block.vue';
|
|
87
|
+
import StatusBadge from '@martyrs/src/components/Table/StatusBadge.vue';
|
|
88
|
+
import Button from '@martyrs/src/components/Button/Button.vue';
|
|
89
|
+
import { useGlobalMixins } from '@martyrs/src/modules/globals/views/mixins/mixins.js';
|
|
90
|
+
|
|
91
|
+
const { formatDate } = useGlobalMixins();
|
|
92
|
+
|
|
93
|
+
defineProps({
|
|
94
|
+
customer: {
|
|
95
|
+
type: Object,
|
|
96
|
+
required: true
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
defineEmits(['edit', 'delete']);
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
<style scoped>
|
|
104
|
+
.bg-danger {
|
|
105
|
+
background-color: #ef4444;
|
|
106
|
+
}
|
|
107
|
+
</style>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @martyrs/src/modules/orders/locales/en.js
|
|
2
|
+
export default {
|
|
3
|
+
orders: {
|
|
4
|
+
newsletter: {
|
|
5
|
+
placeholder: 'Enter your email',
|
|
6
|
+
action: 'Subscribe',
|
|
7
|
+
success: {
|
|
8
|
+
title: 'Successfully Subscribed!',
|
|
9
|
+
subtitle: 'Thank you for subscribing. Follow us on social media:'
|
|
10
|
+
},
|
|
11
|
+
socials: [
|
|
12
|
+
{
|
|
13
|
+
name: 'telegram',
|
|
14
|
+
icon: 'telegram',
|
|
15
|
+
url: 'https://t.me/ozdao'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'twitter',
|
|
19
|
+
icon: 'twitter',
|
|
20
|
+
url: 'https://twitter.com/ozdao'
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'instagram',
|
|
24
|
+
icon: 'instagram',
|
|
25
|
+
url: 'https://instagram.com/ozdao'
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'youtube',
|
|
29
|
+
icon: 'youtube',
|
|
30
|
+
url: 'https://youtube.com/@ozdao'
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @martyrs/src/modules/orders/locales/ru.js
|
|
2
|
+
export default {
|
|
3
|
+
orders: {
|
|
4
|
+
newsletter: {
|
|
5
|
+
placeholder: 'Введите ваш email',
|
|
6
|
+
action: 'Подписаться',
|
|
7
|
+
success: {
|
|
8
|
+
title: 'Успешно подписались!',
|
|
9
|
+
subtitle: 'Спасибо за подписку. Подписывайтесь на наши социальные сети:'
|
|
10
|
+
},
|
|
11
|
+
socials: [
|
|
12
|
+
{
|
|
13
|
+
name: 'telegram',
|
|
14
|
+
icon: 'telegram',
|
|
15
|
+
url: 'https://t.me/ozdao'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'twitter',
|
|
19
|
+
icon: 'twitter',
|
|
20
|
+
url: 'https://twitter.com/ozdao'
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'instagram',
|
|
24
|
+
icon: 'instagram',
|
|
25
|
+
url: 'https://instagram.com/ozdao'
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'youtube',
|
|
29
|
+
icon: 'youtube',
|
|
30
|
+
url: 'https://youtube.com/@ozdao'
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
@@ -0,0 +1,189 @@
|
|
|
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
|
+
'contacts.name': {
|
|
9
|
+
rule: 'optional',
|
|
10
|
+
validator: Validator.schema()
|
|
11
|
+
.string()
|
|
12
|
+
.min(1, 'Name must be at least 1 character')
|
|
13
|
+
.max(255, 'Name must not exceed 255 characters')
|
|
14
|
+
},
|
|
15
|
+
'contacts.email': {
|
|
16
|
+
rule: 'optional',
|
|
17
|
+
validator: Validator.schema()
|
|
18
|
+
.string()
|
|
19
|
+
.email('Invalid email format')
|
|
20
|
+
.max(255, 'Email must not exceed 255 characters')
|
|
21
|
+
},
|
|
22
|
+
'contacts.phone': {
|
|
23
|
+
rule: 'optional',
|
|
24
|
+
validator: Validator.schema()
|
|
25
|
+
.string()
|
|
26
|
+
.pattern(/^\+?[1-9]\d{1,14}$/, 'Invalid phone format')
|
|
27
|
+
},
|
|
28
|
+
type: {
|
|
29
|
+
rule: 'optional',
|
|
30
|
+
default: 'newsletter',
|
|
31
|
+
validator: Validator.schema()
|
|
32
|
+
.string()
|
|
33
|
+
.oneOf(['newsletter', 'support', 'inquiry', 'feedback', 'other'])
|
|
34
|
+
},
|
|
35
|
+
text: {
|
|
36
|
+
rule: 'optional',
|
|
37
|
+
validator: Validator.schema()
|
|
38
|
+
.string()
|
|
39
|
+
.max(2000, 'Text must not exceed 2000 characters')
|
|
40
|
+
},
|
|
41
|
+
chat: {
|
|
42
|
+
rule: 'optional',
|
|
43
|
+
validator: Validator.schema()
|
|
44
|
+
.string()
|
|
45
|
+
.max(255, 'Chat ID must not exceed 255 characters')
|
|
46
|
+
},
|
|
47
|
+
status: {
|
|
48
|
+
rule: 'optional',
|
|
49
|
+
default: 'created',
|
|
50
|
+
validator: Validator.schema()
|
|
51
|
+
.string()
|
|
52
|
+
.oneOf(['created', 'in_progress', 'completed', 'cancelled'])
|
|
53
|
+
},
|
|
54
|
+
owner: {
|
|
55
|
+
rule: 'optional',
|
|
56
|
+
validator: Validator.schema().object({
|
|
57
|
+
type: Validator.schema().string().oneOf(['user', 'organization', 'User', 'Organization']),
|
|
58
|
+
target: Validator.schema().string().pattern(/^[0-9a-fA-F]{24}$/)
|
|
59
|
+
})
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
// Верификатор для обновления
|
|
64
|
+
const updateVerifier = new Verifier({
|
|
65
|
+
_id: {
|
|
66
|
+
rule: 'required',
|
|
67
|
+
validator: Validator.schema()
|
|
68
|
+
.string()
|
|
69
|
+
.required('Application ID is required')
|
|
70
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid ID format')
|
|
71
|
+
},
|
|
72
|
+
'contacts.name': {
|
|
73
|
+
rule: 'optional',
|
|
74
|
+
validator: Validator.schema()
|
|
75
|
+
.string()
|
|
76
|
+
.min(1, 'Name must be at least 1 character')
|
|
77
|
+
.max(255, 'Name must not exceed 255 characters')
|
|
78
|
+
},
|
|
79
|
+
'contacts.email': {
|
|
80
|
+
rule: 'optional',
|
|
81
|
+
validator: Validator.schema()
|
|
82
|
+
.string()
|
|
83
|
+
.email('Invalid email format')
|
|
84
|
+
.max(255, 'Email must not exceed 255 characters')
|
|
85
|
+
},
|
|
86
|
+
'contacts.phone': {
|
|
87
|
+
rule: 'optional',
|
|
88
|
+
validator: Validator.schema()
|
|
89
|
+
.string()
|
|
90
|
+
.pattern(/^\+?[1-9]\d{1,14}$/, 'Invalid phone format')
|
|
91
|
+
},
|
|
92
|
+
type: {
|
|
93
|
+
rule: 'optional',
|
|
94
|
+
validator: Validator.schema()
|
|
95
|
+
.string()
|
|
96
|
+
.oneOf(['newsletter', 'support', 'inquiry', 'feedback', 'other'])
|
|
97
|
+
},
|
|
98
|
+
text: {
|
|
99
|
+
rule: 'optional',
|
|
100
|
+
validator: Validator.schema()
|
|
101
|
+
.string()
|
|
102
|
+
.max(2000, 'Text must not exceed 2000 characters')
|
|
103
|
+
},
|
|
104
|
+
chat: {
|
|
105
|
+
rule: 'optional',
|
|
106
|
+
validator: Validator.schema()
|
|
107
|
+
.string()
|
|
108
|
+
.max(255, 'Chat ID must not exceed 255 characters')
|
|
109
|
+
},
|
|
110
|
+
status: {
|
|
111
|
+
rule: 'optional',
|
|
112
|
+
validator: Validator.schema()
|
|
113
|
+
.string()
|
|
114
|
+
.oneOf(['created', 'in_progress', 'completed', 'cancelled'])
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
// Верификатор для чтения
|
|
119
|
+
const readVerifier = new Verifier({
|
|
120
|
+
_id: {
|
|
121
|
+
rule: 'optional',
|
|
122
|
+
validator: Validator.schema()
|
|
123
|
+
.string()
|
|
124
|
+
.pattern(/^[0-9a-fA-F]{24}$/)
|
|
125
|
+
},
|
|
126
|
+
owner: {
|
|
127
|
+
rule: 'optional',
|
|
128
|
+
validator: Validator.schema().string()
|
|
129
|
+
},
|
|
130
|
+
status: {
|
|
131
|
+
rule: 'optional',
|
|
132
|
+
validator: Validator.schema()
|
|
133
|
+
.string()
|
|
134
|
+
.oneOf(['created', 'in_progress', 'completed', 'cancelled'])
|
|
135
|
+
},
|
|
136
|
+
type: {
|
|
137
|
+
rule: 'optional',
|
|
138
|
+
validator: Validator.schema()
|
|
139
|
+
.string()
|
|
140
|
+
.oneOf(['newsletter', 'support', 'inquiry', 'feedback', 'other'])
|
|
141
|
+
},
|
|
142
|
+
skip: {
|
|
143
|
+
rule: 'optional',
|
|
144
|
+
default: 0,
|
|
145
|
+
validator: Validator.schema()
|
|
146
|
+
.integer()
|
|
147
|
+
.min(0)
|
|
148
|
+
},
|
|
149
|
+
limit: {
|
|
150
|
+
rule: 'optional',
|
|
151
|
+
default: 20,
|
|
152
|
+
validator: Validator.schema()
|
|
153
|
+
.integer()
|
|
154
|
+
.min(1)
|
|
155
|
+
.max(100)
|
|
156
|
+
},
|
|
157
|
+
sortParam: {
|
|
158
|
+
rule: 'optional',
|
|
159
|
+
validator: Validator.schema()
|
|
160
|
+
.string()
|
|
161
|
+
.oneOf(['contacts.name', 'contacts.email', 'type', 'status', 'createdAt', 'updatedAt'])
|
|
162
|
+
},
|
|
163
|
+
sortOrder: {
|
|
164
|
+
rule: 'optional',
|
|
165
|
+
default: 'desc',
|
|
166
|
+
validator: Validator.schema()
|
|
167
|
+
.string()
|
|
168
|
+
.oneOf(['asc', 'desc'])
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
// Верификатор для удаления
|
|
173
|
+
const deleteVerifier = new Verifier({
|
|
174
|
+
_id: {
|
|
175
|
+
rule: 'required',
|
|
176
|
+
validator: Validator.schema()
|
|
177
|
+
.string()
|
|
178
|
+
.required('Application ID is required')
|
|
179
|
+
.pattern(/^[0-9a-fA-F]{24}$/)
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
return {
|
|
184
|
+
createVerifier,
|
|
185
|
+
readVerifier,
|
|
186
|
+
updateVerifier,
|
|
187
|
+
deleteVerifier
|
|
188
|
+
};
|
|
189
|
+
});
|