@ozdao/martyrs 0.2.506 → 0.2.508
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index.cjs +4 -4
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.cjs +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/auth.server.cjs +1 -1
- package/dist/auth.server.js +1 -1
- package/dist/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 +1 -1
- package/dist/martyrs/src/components/Button/Button.vue.js +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/Carousel.vue.cjs +1 -1
- package/dist/martyrs/src/components/Feed/Carousel.vue.js +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +15 -46
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +22 -53
- 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/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.js +1 -1
- package/dist/martyrs/src/components/Loader/{Loader.vue.cjs → Loader.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Loader/{Loader.vue.js → Loader.vue2.js} +2 -2
- package/dist/martyrs/src/components/Loader/{Loader.vue.cjs.map → Loader.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +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/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.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 +11 -15
- 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 +21 -25
- 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 +12 -16
- 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 +33 -37
- 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 +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/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/pages/EditEvent.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +2 -4
- 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 +2 -4
- 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/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.cjs +3 -0
- package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js +3 -0
- package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.cjs +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/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/Footer.vue.cjs +321 -0
- package/dist/martyrs/src/modules/globals/views/components/partials/Footer.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/partials/Footer.vue.js +321 -0
- package/dist/martyrs/src/modules/globals/views/components/partials/Footer.vue.js.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.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/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/marketplace/views/components/sections/SectionMenu.vue.cjs +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/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/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/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/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/OrderCreate.vue.cjs +9 -8
- 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 +9 -8
- 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 +8 -82
- 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 +9 -83
- 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 +2 -4
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -4
- 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/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 +126 -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 +128 -194
- 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 +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/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/organizations.client.cjs +0 -3
- package/dist/martyrs/src/modules/organizations/organizations.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.js +36 -39
- package/dist/martyrs/src/modules/organizations/organizations.client.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/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/elements/Image360.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Image360.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +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 +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +361 -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 +379 -123
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +32 -2
- 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 +33 -3
- 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 +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- 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 +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- 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/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.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 +129 -140
- 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/globals.client.js +3 -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/Footer.vue +318 -164
- 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 +155 -206
- package/src/modules/organizations/configs/navigation.organization.config.js +69 -85
- package/src/modules/organizations/organizations.client.js +0 -3
- 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 +418 -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/Loader/Loader.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/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +0 -146
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +0 -146
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js.map +0 -1
- package/src/modules/globals/views/components/partials/FooterAlt.vue +0 -363
- 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
- package/src/modules/organizations/components/sections/DetailsTabSection.vue +0 -190
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Миграция категорий на Materialized Path Pattern
|
|
3
|
+
*
|
|
4
|
+
* Этот скрипт переводит существующие категории с adjacency list на materialized path:
|
|
5
|
+
* - Добавляет поля: slug, url, path, level
|
|
6
|
+
* - Переносит старое поле url в новую структуру
|
|
7
|
+
* - Пересчитывает структуру дерева
|
|
8
|
+
* - Обновляет индексы
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import mongoose from 'mongoose';
|
|
12
|
+
|
|
13
|
+
// Подключение к базе данных
|
|
14
|
+
const DB_ADDRESS = process.env.DB_ADDRESS || 'mongodb://localhost:27017/martyrs';
|
|
15
|
+
|
|
16
|
+
console.log('🔗 Подключаемся к базе данных:', DB_ADDRESS);
|
|
17
|
+
|
|
18
|
+
try {
|
|
19
|
+
await mongoose.connect(DB_ADDRESS);
|
|
20
|
+
console.log('✅ Подключение к MongoDB установлено');
|
|
21
|
+
} catch (error) {
|
|
22
|
+
console.error('❌ Ошибка подключения к базе данных:', error);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Функция для генерации slug из имени
|
|
27
|
+
const generateSlug = (name, existingSlugs = []) => {
|
|
28
|
+
let baseSlug = name
|
|
29
|
+
.toLowerCase()
|
|
30
|
+
.replace(/[^a-z0-9\s-]/g, '')
|
|
31
|
+
.replace(/\s+/g, '-')
|
|
32
|
+
.replace(/-+/g, '-')
|
|
33
|
+
.trim('-');
|
|
34
|
+
|
|
35
|
+
let slug = baseSlug;
|
|
36
|
+
let counter = 1;
|
|
37
|
+
|
|
38
|
+
while (existingSlugs.includes(slug)) {
|
|
39
|
+
slug = `${baseSlug}-${counter}`;
|
|
40
|
+
counter++;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return slug;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// Функция для построения url
|
|
47
|
+
const buildUrl = (parentPath, slug) => {
|
|
48
|
+
return parentPath ? `${parentPath}/${slug}` : `/${slug}`;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// Основная функция миграции
|
|
52
|
+
const migrateCategoriesToMaterializedPath = async (db, testMode = false) => {
|
|
53
|
+
console.log('🚀 Начинаем миграцию категорий на Materialized Path Pattern...');
|
|
54
|
+
|
|
55
|
+
if (testMode) {
|
|
56
|
+
console.log('⚠️ ТЕСТОВЫЙ РЕЖИМ - данные НЕ будут изменены');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const Category = db.collection('categories');
|
|
60
|
+
|
|
61
|
+
try {
|
|
62
|
+
// Шаг 1: Удаляем проблемные индексы сначала
|
|
63
|
+
console.log('🗑️ Шаг 1: Удаляем старые индексы...');
|
|
64
|
+
|
|
65
|
+
if (!testMode) {
|
|
66
|
+
try {
|
|
67
|
+
await Category.dropIndex({ url: 1 });
|
|
68
|
+
console.log(' ✅ Удален индекс url_1');
|
|
69
|
+
} catch (error) {
|
|
70
|
+
console.log(' ℹ️ Индекс url_1 не найден (это нормально)');
|
|
71
|
+
}
|
|
72
|
+
} else {
|
|
73
|
+
console.log(' [ТЕСТ] Удалили бы индекс url_1');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Шаг 2: Добавляем новые поля во все документы
|
|
77
|
+
console.log('📝 Шаг 2: Добавляем новые поля...');
|
|
78
|
+
|
|
79
|
+
if (!testMode) {
|
|
80
|
+
await Category.updateMany(
|
|
81
|
+
{},
|
|
82
|
+
{
|
|
83
|
+
$set: {
|
|
84
|
+
slug: '',
|
|
85
|
+
url: '',
|
|
86
|
+
path: [],
|
|
87
|
+
level: 0
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
} else {
|
|
92
|
+
console.log(' [ТЕСТ] Обновили бы поля у всех категорий');
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Шаг 3: Получаем все категории и строим карту
|
|
96
|
+
console.log('📊 Шаг 3: Загружаем все категории...');
|
|
97
|
+
|
|
98
|
+
const allCategories = await Category.find({}).toArray();
|
|
99
|
+
const categoryMap = new Map();
|
|
100
|
+
|
|
101
|
+
// Создаем карту категорий для быстрого доступа
|
|
102
|
+
allCategories.forEach(cat => {
|
|
103
|
+
categoryMap.set(cat._id.toString(), cat);
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
// Шаг 3: Функция для рекурсивного обновления категории и её потомков
|
|
107
|
+
const updateCategoryPath = async (categoryId, parentPath = '', level = 0, ancestors = []) => {
|
|
108
|
+
const category = categoryMap.get(categoryId.toString());
|
|
109
|
+
if (!category) return;
|
|
110
|
+
|
|
111
|
+
console.log(` Обрабатываем: ${category.name} (level: ${level})`);
|
|
112
|
+
|
|
113
|
+
// Получаем существующие slug на том же уровне (в рамках того же parent)
|
|
114
|
+
const siblings = allCategories.filter(cat =>
|
|
115
|
+
cat.parent?.toString() === category.parent?.toString()
|
|
116
|
+
);
|
|
117
|
+
const existingSlugs = siblings
|
|
118
|
+
.filter(cat => cat._id.toString() !== categoryId.toString())
|
|
119
|
+
.map(cat => cat.slug || generateSlug(cat.name));
|
|
120
|
+
|
|
121
|
+
// Генерируем slug если его нет или если он из старого поля url
|
|
122
|
+
let slug = category.slug;
|
|
123
|
+
if (!slug || slug === category.url) {
|
|
124
|
+
slug = generateSlug(category.name, existingSlugs);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Строим url
|
|
128
|
+
const url = buildUrl(parentPath, slug);
|
|
129
|
+
|
|
130
|
+
// Обновляем категорию
|
|
131
|
+
if (!testMode) {
|
|
132
|
+
const updateResult = await Category.updateOne(
|
|
133
|
+
{ _id: category._id },
|
|
134
|
+
{
|
|
135
|
+
$set: {
|
|
136
|
+
slug: slug,
|
|
137
|
+
url: url,
|
|
138
|
+
path: ancestors,
|
|
139
|
+
level: level
|
|
140
|
+
},
|
|
141
|
+
$unset: {
|
|
142
|
+
url: "" // Удаляем старое поле url
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
if (updateResult.modifiedCount === 0) {
|
|
148
|
+
console.warn(` ⚠️ Не удалось обновить категорию: ${category.name}`);
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
console.log(` [ТЕСТ] Обновили бы ${category.name}: slug="${slug}", url="${url}", level=${level}`);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// Обновляем карту
|
|
155
|
+
categoryMap.set(categoryId.toString(), {
|
|
156
|
+
...category,
|
|
157
|
+
slug,
|
|
158
|
+
url,
|
|
159
|
+
path: ancestors,
|
|
160
|
+
level
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
// Рекурсивно обновляем дочерние категории
|
|
164
|
+
const children = allCategories.filter(cat =>
|
|
165
|
+
cat.parent?.toString() === categoryId.toString()
|
|
166
|
+
);
|
|
167
|
+
|
|
168
|
+
for (const child of children) {
|
|
169
|
+
await updateCategoryPath(
|
|
170
|
+
child._id,
|
|
171
|
+
url,
|
|
172
|
+
level + 1,
|
|
173
|
+
[...ancestors, category._id]
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
// Шаг 4: Начинаем с корневых категорий
|
|
179
|
+
console.log('🌳 Шаг 4: Обрабатываем дерево категорий...');
|
|
180
|
+
|
|
181
|
+
const rootCategories = allCategories.filter(cat => !cat.parent);
|
|
182
|
+
console.log(` Найдено ${rootCategories.length} корневых категорий`);
|
|
183
|
+
|
|
184
|
+
for (const rootCategory of rootCategories) {
|
|
185
|
+
await updateCategoryPath(rootCategory._id);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Шаг 5: Проверяем и исправляем возможные проблемы
|
|
189
|
+
console.log('🔍 Шаг 5: Проверяем результаты миграции...');
|
|
190
|
+
|
|
191
|
+
// Проверяем, что у всех категорий есть новые поля
|
|
192
|
+
const categoriesWithoutSlug = await Category.countDocuments({
|
|
193
|
+
$or: [
|
|
194
|
+
{ slug: { $exists: false } },
|
|
195
|
+
{ slug: '' }
|
|
196
|
+
]
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
const categoriesWithoutFullPath = await Category.countDocuments({
|
|
200
|
+
$or: [
|
|
201
|
+
{ url: { $exists: false } },
|
|
202
|
+
{ url: '' }
|
|
203
|
+
]
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
if (categoriesWithoutSlug > 0) {
|
|
207
|
+
console.warn(` ⚠️ ${categoriesWithoutSlug} категорий без slug`);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (categoriesWithoutFullPath > 0) {
|
|
211
|
+
console.warn(` ⚠️ ${categoriesWithoutFullPath} категорий без url`);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Проверяем дубликаты url
|
|
215
|
+
const duplicateFullPaths = await Category.aggregate([
|
|
216
|
+
{ $group: { _id: '$url', count: { $sum: 1 } } },
|
|
217
|
+
{ $match: { count: { $gt: 1 } } }
|
|
218
|
+
]).toArray();
|
|
219
|
+
|
|
220
|
+
if (duplicateFullPaths.length > 0) {
|
|
221
|
+
console.warn(` ⚠️ Найдено ${duplicateFullPaths.length} дубликатов url:`);
|
|
222
|
+
duplicateFullPaths.forEach(dup => {
|
|
223
|
+
console.warn(` - ${dup._id} (${dup.count} раз)`);
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// Шаг 6: Создаем новые индексы
|
|
228
|
+
console.log('📚 Шаг 6: Создаем новые индексы...');
|
|
229
|
+
|
|
230
|
+
if (!testMode) {
|
|
231
|
+
try {
|
|
232
|
+
// Удаляем существующие индексы которые могут конфликтовать
|
|
233
|
+
const existingIndexesToDrop = ['url_1', 'path_1', 'parent_1_slug_1'];
|
|
234
|
+
|
|
235
|
+
for (const indexName of existingIndexesToDrop) {
|
|
236
|
+
try {
|
|
237
|
+
await Category.dropIndex(indexName);
|
|
238
|
+
console.log(` ✅ Удален существующий индекс: ${indexName}`);
|
|
239
|
+
} catch (error) {
|
|
240
|
+
// Индекс не существует - это нормально
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// Создаем новые индексы
|
|
245
|
+
await Category.createIndex({ parent: 1, slug: 1 }, { unique: true });
|
|
246
|
+
console.log(' ✅ Создан индекс: parent_1_slug_1 (unique)');
|
|
247
|
+
|
|
248
|
+
await Category.createIndex({ path: 1 });
|
|
249
|
+
console.log(' ✅ Создан индекс: path_1');
|
|
250
|
+
|
|
251
|
+
await Category.createIndex({ url: 1 }, { unique: true });
|
|
252
|
+
console.log(' ✅ Создан индекс: url_1 (unique)');
|
|
253
|
+
|
|
254
|
+
await Category.createIndex({ level: 1, status: 1, order: 1 });
|
|
255
|
+
console.log(' ✅ Создан индекс: level_1_status_1_order_1');
|
|
256
|
+
|
|
257
|
+
await Category.createIndex({ 'owner.type': 1, 'owner.target': 1, status: 1, level: 1 });
|
|
258
|
+
console.log(' ✅ Создан индекс: owner.type_1_owner.target_1_status_1_level_1');
|
|
259
|
+
|
|
260
|
+
console.log(' ✅ Все новые индексы созданы');
|
|
261
|
+
} catch (error) {
|
|
262
|
+
console.warn(` ⚠️ Ошибка при создании индексов: ${error.message}`);
|
|
263
|
+
}
|
|
264
|
+
} else {
|
|
265
|
+
console.log(' [ТЕСТ] Удалили бы существующие конфликтующие индексы и создали новые');
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
// Шаг 7: Финальная статистика
|
|
269
|
+
console.log('📈 Шаг 7: Финальная статистика...');
|
|
270
|
+
|
|
271
|
+
const totalCategories = await Category.countDocuments();
|
|
272
|
+
const categoriesByLevel = await Category.aggregate([
|
|
273
|
+
{ $group: { _id: '$level', count: { $sum: 1 } } },
|
|
274
|
+
{ $sort: { _id: 1 } }
|
|
275
|
+
]).toArray();
|
|
276
|
+
|
|
277
|
+
console.log(` Всего категорий: ${totalCategories}`);
|
|
278
|
+
console.log(' Распределение по уровням:');
|
|
279
|
+
categoriesByLevel.forEach(level => {
|
|
280
|
+
console.log(` Уровень ${level._id}: ${level.count} категорий`);
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
if (testMode) {
|
|
284
|
+
console.log('✅ Тестирование завершено успешно! База данных НЕ изменена.');
|
|
285
|
+
} else {
|
|
286
|
+
console.log('✅ Миграция завершена успешно!');
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
return {
|
|
290
|
+
success: true,
|
|
291
|
+
totalCategories,
|
|
292
|
+
categoriesByLevel,
|
|
293
|
+
issues: {
|
|
294
|
+
categoriesWithoutSlug,
|
|
295
|
+
categoriesWithoutFullPath,
|
|
296
|
+
duplicateFullPaths: duplicateFullPaths.length
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
} catch (error) {
|
|
301
|
+
console.error('❌ Ошибка во время миграции:', error);
|
|
302
|
+
throw error;
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
// Функция отката миграции
|
|
307
|
+
const rollbackMigration = async (db) => {
|
|
308
|
+
console.log('🔄 Начинаем откат миграции...');
|
|
309
|
+
|
|
310
|
+
const Category = db.collection('categories');
|
|
311
|
+
|
|
312
|
+
try {
|
|
313
|
+
// Оставляем только новую структуру с url
|
|
314
|
+
const categories = await Category.find({}).toArray();
|
|
315
|
+
|
|
316
|
+
for (const category of categories) {
|
|
317
|
+
if (category.url) {
|
|
318
|
+
await Category.updateOne(
|
|
319
|
+
{ _id: category._id },
|
|
320
|
+
{
|
|
321
|
+
$unset: {
|
|
322
|
+
slug: "",
|
|
323
|
+
path: "",
|
|
324
|
+
level: ""
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// Восстанавливаем старые индексы
|
|
332
|
+
await Category.createIndex({ url: 1 }, { unique: true });
|
|
333
|
+
|
|
334
|
+
// Удаляем новые индексы
|
|
335
|
+
await Category.dropIndex({ parent: 1, slug: 1 }).catch(() => {});
|
|
336
|
+
await Category.dropIndex({ path: 1 }).catch(() => {});
|
|
337
|
+
await Category.dropIndex({ url: 1 }).catch(() => {});
|
|
338
|
+
await Category.dropIndex({ level: 1, status: 1, order: 1 }).catch(() => {});
|
|
339
|
+
await Category.dropIndex({ 'owner.type': 1, 'owner.target': 1, status: 1, level: 1 }).catch(() => {});
|
|
340
|
+
|
|
341
|
+
console.log('✅ Откат миграции завершен');
|
|
342
|
+
|
|
343
|
+
} catch (error) {
|
|
344
|
+
console.error('❌ Ошибка при откате:', error);
|
|
345
|
+
throw error;
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
// CLI интерфейс
|
|
350
|
+
const runMigration = async () => {
|
|
351
|
+
const args = process.argv.slice(2);
|
|
352
|
+
const command = args[0];
|
|
353
|
+
const testMode = args.includes('--test');
|
|
354
|
+
|
|
355
|
+
try {
|
|
356
|
+
const db = mongoose.connection.db;
|
|
357
|
+
|
|
358
|
+
if (command === 'rollback') {
|
|
359
|
+
if (testMode) {
|
|
360
|
+
console.log('❌ Тестовый режим не поддерживается для отката');
|
|
361
|
+
process.exit(1);
|
|
362
|
+
}
|
|
363
|
+
await rollbackMigration(db);
|
|
364
|
+
} else {
|
|
365
|
+
const result = await migrateCategoriesToMaterializedPath(db, testMode);
|
|
366
|
+
|
|
367
|
+
if (!testMode && (result.issues.categoriesWithoutSlug > 0 ||
|
|
368
|
+
result.issues.categoriesWithoutFullPath > 0 ||
|
|
369
|
+
result.issues.duplicateFullPaths > 0)) {
|
|
370
|
+
console.log('\n⚠️ Обнаружены проблемы. Рекомендуется проверить данные вручную.');
|
|
371
|
+
process.exit(1);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
} catch (error) {
|
|
376
|
+
console.error('💥 Критическая ошибка:', error);
|
|
377
|
+
process.exit(1);
|
|
378
|
+
} finally {
|
|
379
|
+
await mongoose.disconnect();
|
|
380
|
+
console.log('🔌 Отключено от MongoDB');
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
// Экспорт для использования в других скриптах
|
|
385
|
+
export { migrateCategoriesToMaterializedPath, rollbackMigration };
|
|
386
|
+
|
|
387
|
+
// Запуск из командной строки
|
|
388
|
+
if (process.argv[1] === new URL(import.meta.url).pathname) {
|
|
389
|
+
runMigration();
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/*
|
|
393
|
+
Использование:
|
|
394
|
+
|
|
395
|
+
1. Тестовый режим (показывает что будет сделано, НЕ меняет базу):
|
|
396
|
+
DB_ADDRESS="mongodb://localhost:27017/martyrs" node categories-to-materialized-path.js --test
|
|
397
|
+
|
|
398
|
+
2. Обычная миграция:
|
|
399
|
+
DB_ADDRESS="mongodb://localhost:27017/martyrs" node categories-to-materialized-path.js
|
|
400
|
+
|
|
401
|
+
3. Откат миграции:
|
|
402
|
+
DB_ADDRESS="mongodb://localhost:27017/martyrs" node categories-to-materialized-path.js rollback
|
|
403
|
+
|
|
404
|
+
4. Перед запуском убедитесь что:
|
|
405
|
+
- Есть резервная копия базы данных
|
|
406
|
+
- Настроена переменная окружения MONGO_URL
|
|
407
|
+
- Установлены зависимости: npm install mongoose
|
|
408
|
+
|
|
409
|
+
4. После миграции проверьте:
|
|
410
|
+
- Что все категории имеют правильные slug и url
|
|
411
|
+
- Что нет дубликатов url
|
|
412
|
+
- Что структура дерева сохранилась
|
|
413
|
+
- Что фронтенд работает корректно
|
|
414
|
+
|
|
415
|
+
Пример вывода:
|
|
416
|
+
🚀 Начинаем миграцию категорий на Materialized Path Pattern...
|
|
417
|
+
📝 Шаг 1: Добавляем новые поля...
|
|
418
|
+
📊 Шаг 2: Загружаем все категории...
|
|
419
|
+
🌳 Шаг 3: Обрабатываем дерево категорий...
|
|
420
|
+
Найдено 5 корневых категорий
|
|
421
|
+
Обрабатываем: Electronics (level: 0)
|
|
422
|
+
Обрабатываем: Phones (level: 1)
|
|
423
|
+
Обрабатываем: Smartphones (level: 2)
|
|
424
|
+
...
|
|
425
|
+
📈 Шаг 6: Финальная статистика...
|
|
426
|
+
Всего категорий: 150
|
|
427
|
+
Распределение по уровням:
|
|
428
|
+
Уровень 0: 5 категорий
|
|
429
|
+
Уровень 1: 25 категорий
|
|
430
|
+
Уровень 2: 80 категорий
|
|
431
|
+
Уровень 3: 40 категорий
|
|
432
|
+
✅ Миграция завершена успешно!
|
|
433
|
+
*/
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// renameFullPathToUrl.mjs
|
|
2
|
+
import { MongoClient } from 'mongodb';
|
|
3
|
+
|
|
4
|
+
const uri = process.env.DB_ADDRESS; // экспортируйте DB_ADDRESS перед запуском
|
|
5
|
+
if (!uri) {
|
|
6
|
+
console.error('DB_ADDRESS env var is required');
|
|
7
|
+
process.exit(1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const client = new MongoClient(uri, { useUnifiedTopology: true });
|
|
11
|
+
|
|
12
|
+
try {
|
|
13
|
+
await client.connect();
|
|
14
|
+
const db = client.db(); // название БД берётся из URI
|
|
15
|
+
const categories = db.collection('categories');
|
|
16
|
+
|
|
17
|
+
const result = await categories.updateMany(
|
|
18
|
+
{ fullPath: { $exists: true } }, // обновляем только если поле есть
|
|
19
|
+
{ $rename: { fullPath: 'url' } } // переименовываем fullPath → url
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
console.log(`updated ${result.modifiedCount} / ${result.matchedCount} documents`);
|
|
23
|
+
} catch (err) {
|
|
24
|
+
console.error('update failed:', err);
|
|
25
|
+
} finally {
|
|
26
|
+
await client.close();
|
|
27
|
+
}
|
|
@@ -10,8 +10,10 @@ export default db => {
|
|
|
10
10
|
description: { type: String, trim: true },
|
|
11
11
|
photo: { type: String },
|
|
12
12
|
order: { type: Number, required: true },
|
|
13
|
+
slug: { type: String, required: true, trim: true },
|
|
13
14
|
url: { type: String, required: true, trim: true, unique: true },
|
|
14
15
|
parent: { type: db.mongoose.Schema.Types.ObjectId, ref: 'Category' },
|
|
16
|
+
level: { type: Number, required: true, default: 0 },
|
|
15
17
|
localization: { type: Array },
|
|
16
18
|
filters: { type: Array },
|
|
17
19
|
},
|
|
@@ -25,33 +27,16 @@ export default db => {
|
|
|
25
27
|
metadata(CategorySchema, db);
|
|
26
28
|
engagement(CategorySchema, db);
|
|
27
29
|
|
|
28
|
-
|
|
29
30
|
// Текстовый индекс для поиска
|
|
30
|
-
CategorySchema.index({ name: 1 });
|
|
31
31
|
CategorySchema.index({ name: 'text', description: 'text' });
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
CategorySchema.index({
|
|
35
|
-
CategorySchema.index({ 'owner.type': 1, 'owner.target': 1,
|
|
32
|
+
// Основные индексы для фильтрации
|
|
33
|
+
|
|
34
|
+
CategorySchema.index({ url: 1, 'owner.target': 1, status: 1, level: 1 });
|
|
35
|
+
CategorySchema.index({ 'owner.type': 1, 'owner.target': 1, status: 1, level: 1 });
|
|
36
36
|
CategorySchema.index({ parent: 1, status: 1, order: 1 });
|
|
37
|
-
CategorySchema.index({
|
|
38
|
-
|
|
39
|
-
CategorySchema.index({ parent: 1, createdAt: -1 });
|
|
40
|
-
CategorySchema.index({ parent: 1, updatedAt: -1 });
|
|
41
|
-
|
|
42
|
-
// Индексы для сортировки без parent
|
|
37
|
+
CategorySchema.index({ level: 1, status: 1, order: 1 });
|
|
38
|
+
// url уже имеет unique индекс, дополнительный не нужен
|
|
43
39
|
CategorySchema.index({ status: 1, order: 1 });
|
|
44
|
-
CategorySchema.index({ status: 1, name: 1 });
|
|
45
|
-
CategorySchema.index({ status: 1, createdAt: -1 });
|
|
46
|
-
CategorySchema.index({ status: 1, updatedAt: -1 });
|
|
47
|
-
|
|
48
|
-
// Специальный индекс для graphLookup
|
|
49
|
-
CategorySchema.index({ _id: 1, parent: 1 });
|
|
50
|
-
|
|
51
|
-
// Отдельные индексы для полей без префиксов в составных
|
|
52
|
-
CategorySchema.index({ order: 1 });
|
|
53
|
-
CategorySchema.index({ createdAt: -1 });
|
|
54
|
-
CategorySchema.index({ updatedAt: -1 });
|
|
55
40
|
|
|
56
41
|
const Category = db.mongoose.model('Category', CategorySchema, 'categories');
|
|
57
42
|
return Category;
|
|
@@ -18,6 +18,18 @@ export function createProductRoutes(prefix = '', options = {}) {
|
|
|
18
18
|
},
|
|
19
19
|
component: () => import(/* webpackChunkName: 'Products' */ '@martyrs/src/modules/products/components/pages/Products.vue'),
|
|
20
20
|
},
|
|
21
|
+
{
|
|
22
|
+
path: 'categories/:categoryPath(.*)',
|
|
23
|
+
name: nameWithPrefix('ProductsCategory'),
|
|
24
|
+
meta: {
|
|
25
|
+
title: {
|
|
26
|
+
en: 'Products',
|
|
27
|
+
ru: 'Товары',
|
|
28
|
+
},
|
|
29
|
+
authorize: options.productsAuthorize || [],
|
|
30
|
+
},
|
|
31
|
+
component: () => import(/* webpackChunkName: 'Products' */ '@martyrs/src/modules/products/components/pages/Products.vue'),
|
|
32
|
+
},
|
|
21
33
|
{
|
|
22
34
|
path: 'add',
|
|
23
35
|
name: nameWithPrefix('ProductAdd'),
|
|
@@ -14,16 +14,18 @@ const state = reactive({
|
|
|
14
14
|
},
|
|
15
15
|
current: {
|
|
16
16
|
order: 1,
|
|
17
|
-
photo:
|
|
17
|
+
photo: '',
|
|
18
18
|
name: '',
|
|
19
|
+
slug: '',
|
|
19
20
|
url: '',
|
|
21
|
+
level: 0,
|
|
20
22
|
status: 'draft',
|
|
21
23
|
creator: null,
|
|
22
24
|
owner: null,
|
|
23
25
|
parent: null,
|
|
24
26
|
children: [],
|
|
25
27
|
filters: [],
|
|
26
|
-
|
|
28
|
+
translations: [],
|
|
27
29
|
},
|
|
28
30
|
});
|
|
29
31
|
|
|
@@ -33,7 +35,7 @@ const actions = {
|
|
|
33
35
|
try {
|
|
34
36
|
const response = await $axios.get('/api/categories', { params: options });
|
|
35
37
|
|
|
36
|
-
if (options.
|
|
38
|
+
if (options._id) {
|
|
37
39
|
state.current = { ...response.data[0] };
|
|
38
40
|
return Promise.resolve(response.data[0]);
|
|
39
41
|
} else {
|
|
@@ -80,10 +82,22 @@ const actions = {
|
|
|
80
82
|
}
|
|
81
83
|
},
|
|
82
84
|
|
|
83
|
-
async delete(
|
|
85
|
+
async delete(id) {
|
|
84
86
|
try {
|
|
85
|
-
await $axios.post('/api/categories/delete', {
|
|
86
|
-
|
|
87
|
+
await $axios.post('/api/categories/delete', { _id: id });
|
|
88
|
+
// Рекурсивная функция для удаления категории и её детей из дерева
|
|
89
|
+
function removeFromTree(items) {
|
|
90
|
+
return items.filter(item => {
|
|
91
|
+
if (item._id === id) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
if (item.children && item.children.length > 0) {
|
|
95
|
+
item.children = removeFromTree(item.children);
|
|
96
|
+
}
|
|
97
|
+
return true;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
state.all = removeFromTree(state.all);
|
|
87
101
|
return Promise.resolve();
|
|
88
102
|
} catch (error) {
|
|
89
103
|
setError(error);
|
|
@@ -94,13 +108,18 @@ const actions = {
|
|
|
94
108
|
clean() {
|
|
95
109
|
state.current = {
|
|
96
110
|
order: 1,
|
|
111
|
+
photo: '',
|
|
97
112
|
name: '',
|
|
113
|
+
slug: '',
|
|
98
114
|
url: '',
|
|
115
|
+
level: 0,
|
|
99
116
|
status: 'draft',
|
|
117
|
+
creator: null,
|
|
118
|
+
owner: null,
|
|
100
119
|
parent: null,
|
|
101
120
|
children: [],
|
|
102
121
|
filters: [],
|
|
103
|
-
|
|
122
|
+
translations: [],
|
|
104
123
|
};
|
|
105
124
|
},
|
|
106
125
|
};
|