@ozdao/martyrs 0.2.505 → 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/_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-CJm5myDI.js → main-Dq-UfO4G.js} +2562 -2477
- package/dist/martyrs/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/martyrs/src/components/Button/Button.vue2.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/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/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.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.vue2.cjs → Loader.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Loader/{Loader.vue2.js.map → Loader.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Loader/{Loader.vue2.js → Loader.vue.js} +2 -2
- package/dist/martyrs/src/components/Loader/Loader.vue.js.map +1 -0
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/martyrs/src/components/Menu/{Menu.vue2.cjs → Menu.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Menu/{Menu.vue2.js → Menu.vue.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +1 -0
- package/dist/martyrs/src/components/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/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/Profile.vue.cjs +3 -3
- 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 +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +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/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 +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.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.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js.map +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/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/{BlockMultiselect.vue2.cjs → BlockMultiselect.vue.cjs} +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/{BlockMultiselect.vue2.js.map → BlockMultiselect.vue.cjs.map} +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/{BlockMultiselect.vue2.js → BlockMultiselect.vue.js} +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockMultiselect.vue.js.map +1 -0
- 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/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/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/Inventory.vue.cjs +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/AlbumForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/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/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/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/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/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- 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 +18 -194
- 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 +19 -195
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +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/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- 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 +5 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.js +5 -1
- 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 +27 -18
- 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 +27 -18
- 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 +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- 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 -106
- 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 -124
- 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 +20 -6
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +20 -6
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js.map +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/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/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js.map +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 +439 -255
- package/dist/products.server.js +439 -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-Dkk0_7TA.js → web-BXajFCU2.js} +1 -1
- package/dist/{web-stVkXd0l.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/FieldPhone/FieldPhone.vue +1 -1
- 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/events/components/pages/EventsBackoffice.vue +1 -1
- 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 +5 -76
- 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 +11 -202
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- 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 +415 -174
- package/src/modules/products/components/sections/EditVariants.vue +14 -0
- 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/middlewares/variants.verifier.js +12 -0
- 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/models/variant.model.js +3 -0
- 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/reports/components/sections/FormReport.vue +1 -1
- 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-DTaE01lg.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.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockMultiselect.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +0 -155
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +0 -155
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +0 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +0 -81
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.js +0 -81
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.js.map +0 -1
- package/src/modules/orders/components/sections/FormAddCustomer.vue +0 -152
- package/src/modules/orders/components/sections/FormCustomerDetails.vue +0 -67
- package/src/modules/orders/controllers/applications.controller.js +0 -122
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
Вот доработанный **общий план перепроектирования системы аренды**, с учётом **абсолютно произвольных промежутков времени** (не только суток):
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## 1. Оставляем `Rent` как историю и бизнес‑логику
|
|
6
|
+
|
|
7
|
+
Модель `Rent` остаётся основной для хранения фактов аренды и истории.
|
|
8
|
+
|
|
9
|
+
Добавляем индексы, чтобы находить активные пересекающиеся аренды:
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
// В rent.model.js
|
|
13
|
+
RentSchema.index({ variant: 1, startDate: 1, endDate: 1 });
|
|
14
|
+
RentSchema.index({ product: 1, startDate: 1, endDate: 1 });
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 2. Вводим коллекцию `TimeSlot` для любых интервалов
|
|
20
|
+
|
|
21
|
+
### Зачем?
|
|
22
|
+
|
|
23
|
+
Чтобы быстро проверять доступность на произвольные интервалы времени, без тяжёлых агрегаций по коллекции `Rent`.
|
|
24
|
+
|
|
25
|
+
### Схема
|
|
26
|
+
|
|
27
|
+
```js
|
|
28
|
+
const TimeSlotSchema = new mongoose.Schema({
|
|
29
|
+
resource: {
|
|
30
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
31
|
+
required: true,
|
|
32
|
+
index: true,
|
|
33
|
+
ref: 'Variant', // или Ingredient
|
|
34
|
+
},
|
|
35
|
+
start: {
|
|
36
|
+
type: Date,
|
|
37
|
+
required: true,
|
|
38
|
+
index: true,
|
|
39
|
+
},
|
|
40
|
+
end: {
|
|
41
|
+
type: Date,
|
|
42
|
+
required: true,
|
|
43
|
+
index: true,
|
|
44
|
+
},
|
|
45
|
+
reserved: {
|
|
46
|
+
type: Number,
|
|
47
|
+
required: true,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
TimeSlotSchema.index({ resource: 1, start: 1, end: 1 });
|
|
51
|
+
TimeSlotSchema.index({ resource: 1, start: 1 });
|
|
52
|
+
TimeSlotSchema.index({ resource: 1, end: 1 });
|
|
53
|
+
|
|
54
|
+
const TimeSlot = db.mongoose.model('TimeSlot', TimeSlotSchema);
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 3. Обновление `TimeSlot` при аренде
|
|
60
|
+
|
|
61
|
+
На подтверждение или отмену аренды:
|
|
62
|
+
|
|
63
|
+
```js
|
|
64
|
+
async function updateTimeSlots(rent, delta) {
|
|
65
|
+
// Создаём или изменяем слот по точному периоду
|
|
66
|
+
const baseOp = {
|
|
67
|
+
updateOne: {
|
|
68
|
+
filter: {
|
|
69
|
+
resource: rent.variant,
|
|
70
|
+
start: rent.startDate,
|
|
71
|
+
end: rent.endDate
|
|
72
|
+
},
|
|
73
|
+
update: { $inc: { reserved: delta } },
|
|
74
|
+
upsert: true
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const ingOps = rent.variant.ingredients.map(ing => ({
|
|
79
|
+
updateOne: {
|
|
80
|
+
filter: {
|
|
81
|
+
resource: ing._id,
|
|
82
|
+
start: rent.startDate,
|
|
83
|
+
end: rent.endDate
|
|
84
|
+
},
|
|
85
|
+
update: { $inc: { reserved: delta * ing.quantity * rent.quantity } },
|
|
86
|
+
upsert: true
|
|
87
|
+
}
|
|
88
|
+
}));
|
|
89
|
+
|
|
90
|
+
await TimeSlot.bulkWrite([baseOp, ...ingOps]);
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
> Обновление происходит при изменении статуса `Rent`: `pending → confirmed`, `confirmed → canceled`, и т.д.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 4. Проверка доступности на произвольный интервал
|
|
99
|
+
|
|
100
|
+
1. Получаем `StockBalance` для варианта или ингредиента.
|
|
101
|
+
2. Запрашиваем `TimeSlot`, которые **пересекают** интересующий интервал:
|
|
102
|
+
|
|
103
|
+
```js
|
|
104
|
+
const overlapping = await TimeSlot.find({
|
|
105
|
+
resource: variantId,
|
|
106
|
+
$or: [
|
|
107
|
+
{ start: { $lt: endDate }, end: { $gt: startDate } }
|
|
108
|
+
]
|
|
109
|
+
}).lean();
|
|
110
|
+
|
|
111
|
+
const maxReserved = overlapping.reduce((sum, slot) => sum + slot.reserved, 0);
|
|
112
|
+
const stock = await StockBalance.findOne({ variant: variantId, storage });
|
|
113
|
+
const available = stock.quantity - maxReserved;
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
3. Для составных товаров:
|
|
117
|
+
|
|
118
|
+
* Повторяем проверку по каждому ингредиенту
|
|
119
|
+
* Берём минимум из доступных
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## 5. Почему это быстро и гибко
|
|
124
|
+
|
|
125
|
+
* **Любые интервалы** — можно бронировать хоть на 15 минут, хоть на 5 дней.
|
|
126
|
+
* **Предикативная проверка** — пересекающиеся слоты запрашиваются мгновенно через индексы.
|
|
127
|
+
* **Чтение** — два лёгких запроса: в `StockBalance` и `TimeSlot`.
|
|
128
|
+
* **Запись** — один `bulkWrite` на аренду.
|
|
129
|
+
* **Мало документов** — каждый слот покрывает конкретный интервал, без дробления по дням.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## 6. Дополнительно
|
|
134
|
+
|
|
135
|
+
* **Нормализация по шагу** — при необходимости можно округлять интервалы к ближайшему часу/получасу.
|
|
136
|
+
* **TTL-удаление** — добавить TTL-индекс на `end`, чтобы автоматически удалять старые слоты.
|
|
137
|
+
* **Транзакции** — желательно использовать MongoDB transactions для консистентности между `Rent` и `TimeSlot`.
|
|
138
|
+
* **Промежуточный кэш** — если high-load, можно кэшировать слоты в Redis на популярные даты/ресурсы.
|
|
139
|
+
* **Поддержка `time-series`** — начиная с MongoDB 5.0 можно использовать `time-series` коллекции для хранения слотов.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## 7. Возможный гибрид: суточные + произвольные
|
|
144
|
+
|
|
145
|
+
Если большинство аренд всё же по дням:
|
|
146
|
+
|
|
147
|
+
* используем `DailySlot` (date‑based)
|
|
148
|
+
* и `FreeFormSlot` (с интервалами)
|
|
149
|
+
* проверка доступности объединяет оба типа
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Итого:
|
|
154
|
+
|
|
155
|
+
* **Rent** — остаётся неизменной как лог и история.
|
|
156
|
+
* **TimeSlot** — новая коллекция для fast-check.
|
|
157
|
+
* **Произвольные интервалы** — поддерживаются из коробки.
|
|
158
|
+
* **Масштабируемость** — высокая, агрегации не нужны.
|
|
159
|
+
* **Скорость** — мгновенные индексы по `(resource, start, end)`.
|
|
160
|
+
|
|
161
|
+
Такой подход используется в сложных системах бронирования (видеостудии, каршаринг, логистика), и подходит для MongoDB‑экосистемы.
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
'other'
|
|
33
33
|
]"
|
|
34
34
|
:placeholder="'Select reason'"
|
|
35
|
-
class="mn-b-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"
|
|
35
|
+
class="mn-b-small bg-white br-solid br-black-transp-10 br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"
|
|
36
36
|
/>
|
|
37
37
|
|
|
38
38
|
<p class="p-medium mn-b-small">Our moderators will review your report within 24 hours and take action if it violates our policies.</p>
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="pos-relative">
|
|
3
|
+
<header
|
|
4
|
+
v-if="route.name !== 'Organization' && !MOBILE_APP"
|
|
5
|
+
class="pd-medium flex-v-center flex-nowrap flex"
|
|
6
|
+
>
|
|
7
|
+
<h2 class="mn-r-medium">Spots</h2>
|
|
8
|
+
<button
|
|
9
|
+
v-if="hasAccess(route.params._id, 'spots', 'create', auth.state.accesses, auth.state.access.roles)"
|
|
10
|
+
@click="$router.push({
|
|
11
|
+
name: route.params?._id ? 'Organization_SpotAdd' : 'SpotAdd'
|
|
12
|
+
})"
|
|
13
|
+
class="radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second">
|
|
14
|
+
+
|
|
15
|
+
</button>
|
|
16
|
+
</header>
|
|
17
|
+
|
|
18
|
+
<div class="cols-2-1_3 br-1px br-solid br-light z-index-3 pos-relative">
|
|
19
|
+
|
|
20
|
+
<div class="o-y-scroll br-r br-solid br-light pd-medium z-index-2 desktop-only h-100 pos-relative">
|
|
21
|
+
<div class="w-100 o-y-scroll h-100">
|
|
22
|
+
<!-- Categories -->
|
|
23
|
+
<div class="mn-b-medium" v-if="currentCategories.length > 0">
|
|
24
|
+
<h4 class="mn-b-small">
|
|
25
|
+
{{ route.params.categoryPath ? 'Subcategories' : 'Categories' }}
|
|
26
|
+
</h4>
|
|
27
|
+
<div class="gap-micro">
|
|
28
|
+
<div
|
|
29
|
+
v-for="category in currentCategories"
|
|
30
|
+
:key="category._id"
|
|
31
|
+
@click="selectCategory(category)"
|
|
32
|
+
class="pd-small radius-small cursor-pointer hover-bg-light transition-all"
|
|
33
|
+
>
|
|
34
|
+
{{ category.name }}
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<!-- Location Filter -->
|
|
40
|
+
<Spoiler
|
|
41
|
+
class="o-hidden mn-b-medium"
|
|
42
|
+
:status="true"
|
|
43
|
+
>
|
|
44
|
+
<template #header="{ isOpen }">
|
|
45
|
+
<div class="cursor-pointer w-100 flex-v-center flex-nowrap flex">
|
|
46
|
+
<h4 class="w-100">Location</h4>
|
|
47
|
+
<div class="h-2r w-2r flex-child-auto aspect-1x1 flex-center flex bg-light radius-extra">
|
|
48
|
+
<IconChevronBottom :class="{ 'rotate-180 mn-t-micro-negative': isOpen }" fill="rgb(var(--black))" class="i-regular"/>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<template #content>
|
|
54
|
+
<div class="mn-t-small">
|
|
55
|
+
<Field
|
|
56
|
+
v-model="searchLocation"
|
|
57
|
+
placeholder="Search location..."
|
|
58
|
+
type="text"
|
|
59
|
+
class="w-100 bg-light pd-small radius-small mn-b-small"
|
|
60
|
+
/>
|
|
61
|
+
<Checkbox
|
|
62
|
+
v-for="location in locationOptions"
|
|
63
|
+
:key="location"
|
|
64
|
+
v-model:radio="selectedLocation"
|
|
65
|
+
:label="location"
|
|
66
|
+
:value="location"
|
|
67
|
+
mode="radio"
|
|
68
|
+
class="mn-b-micro"
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
</template>
|
|
72
|
+
</Spoiler>
|
|
73
|
+
|
|
74
|
+
<!-- Delivery Options -->
|
|
75
|
+
<Spoiler
|
|
76
|
+
class="o-hidden mn-b-medium"
|
|
77
|
+
:status="true"
|
|
78
|
+
>
|
|
79
|
+
<template #header="{ isOpen }">
|
|
80
|
+
<div class="cursor-pointer w-100 flex-v-center flex-nowrap flex">
|
|
81
|
+
<h4 class="w-100">Delivery Options</h4>
|
|
82
|
+
<div class="h-2r w-2r flex-child-auto aspect-1x1 flex-center flex bg-light radius-extra">
|
|
83
|
+
<IconChevronBottom :class="{ 'rotate-180 mn-t-micro-negative': isOpen }" fill="rgb(var(--black))" class="i-regular"/>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</template>
|
|
87
|
+
|
|
88
|
+
<template #content>
|
|
89
|
+
<div class="mn-t-small">
|
|
90
|
+
<Checkbox
|
|
91
|
+
v-for="option in deliveryOptions"
|
|
92
|
+
:key="option.value"
|
|
93
|
+
v-model:checkbox="selectedDeliveryOptions"
|
|
94
|
+
:label="option.label"
|
|
95
|
+
:value="option.value"
|
|
96
|
+
mode="checkbox"
|
|
97
|
+
class="mn-b-micro"
|
|
98
|
+
/>
|
|
99
|
+
</div>
|
|
100
|
+
</template>
|
|
101
|
+
</Spoiler>
|
|
102
|
+
|
|
103
|
+
<!-- Payment Options -->
|
|
104
|
+
<Spoiler
|
|
105
|
+
class="o-hidden mn-b-medium"
|
|
106
|
+
:status="true"
|
|
107
|
+
>
|
|
108
|
+
<template #header="{ isOpen }">
|
|
109
|
+
<div class="cursor-pointer w-100 flex-v-center flex-nowrap flex">
|
|
110
|
+
<h4 class="w-100">Payment Options</h4>
|
|
111
|
+
<div class="h-2r w-2r flex-child-auto aspect-1x1 flex-center flex bg-light radius-extra">
|
|
112
|
+
<IconChevronBottom :class="{ 'rotate-180 mn-t-micro-negative': isOpen }" fill="rgb(var(--black))" class="i-regular"/>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</template>
|
|
116
|
+
|
|
117
|
+
<template #content>
|
|
118
|
+
<div class="mn-t-small">
|
|
119
|
+
<Checkbox
|
|
120
|
+
v-for="option in paymentOptions"
|
|
121
|
+
:key="option.value"
|
|
122
|
+
v-model:checkbox="selectedPaymentOptions"
|
|
123
|
+
:label="option.label"
|
|
124
|
+
:value="option.value"
|
|
125
|
+
mode="checkbox"
|
|
126
|
+
class="mn-b-micro"
|
|
127
|
+
/>
|
|
128
|
+
</div>
|
|
129
|
+
</template>
|
|
130
|
+
</Spoiler>
|
|
131
|
+
|
|
132
|
+
<!-- Clear Filters Button -->
|
|
133
|
+
<button
|
|
134
|
+
@click="clearFilters"
|
|
135
|
+
class="bg-main w-100 button mn-t-medium"
|
|
136
|
+
>
|
|
137
|
+
Clear Filters
|
|
138
|
+
</button>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
<div class="w-100 rows-1 pd-thin pos-relative o-hidden">
|
|
143
|
+
<Filters
|
|
144
|
+
v-model:filters="availableFilters"
|
|
145
|
+
v-model:selected="selectedFilters"
|
|
146
|
+
/>
|
|
147
|
+
|
|
148
|
+
<div class="mn-b-thin w-100 o-y-scroll scroll-hide scroll-snap-type-x-mandatory scroll-pd-regular">
|
|
149
|
+
<div class="gap-thin flex-nowrap flex">
|
|
150
|
+
<div
|
|
151
|
+
v-for="category in currentCategories"
|
|
152
|
+
:key="category._id"
|
|
153
|
+
@click="selectCategory(category)"
|
|
154
|
+
class="flex-child-default bg-light flex t-nowrap pd-medium radius-medium cursor-pointer hover-bg-light transition-all"
|
|
155
|
+
>
|
|
156
|
+
{{ category.name }}
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
<Feed
|
|
162
|
+
:search="true"
|
|
163
|
+
v-model:filter="spots.state.filter"
|
|
164
|
+
v-model:sort="spots.state.sort"
|
|
165
|
+
:showLoadMore="false"
|
|
166
|
+
:states="{
|
|
167
|
+
empty: {
|
|
168
|
+
title: 'No Spots Found',
|
|
169
|
+
description: 'Currently, there are no spots available.'
|
|
170
|
+
}
|
|
171
|
+
}"
|
|
172
|
+
:store="{
|
|
173
|
+
read: (options) => spots.actions.read(options),
|
|
174
|
+
state: spots.state
|
|
175
|
+
}"
|
|
176
|
+
:options="{
|
|
177
|
+
limit: 12,
|
|
178
|
+
organization: route.params._id || null,
|
|
179
|
+
user: auth.state.user._id,
|
|
180
|
+
location: selectedLocation,
|
|
181
|
+
deliveryOptions: selectedDeliveryOptions,
|
|
182
|
+
paymentOptions: selectedPaymentOptions,
|
|
183
|
+
search: route.query.search
|
|
184
|
+
}"
|
|
185
|
+
v-slot="{
|
|
186
|
+
items
|
|
187
|
+
}"
|
|
188
|
+
class="cols-3 pos-relative w-100 rows-1 gap-thin"
|
|
189
|
+
>
|
|
190
|
+
<CardSpot
|
|
191
|
+
v-for="(spot, index) in items"
|
|
192
|
+
:key="index"
|
|
193
|
+
:spot="spot"
|
|
194
|
+
:organization="organization"
|
|
195
|
+
:editAccess="hasAccess(route.params._id, 'spots', 'edit', auth.state.accesses, auth.state.access.roles)"
|
|
196
|
+
:showDeliveryOptions="true"
|
|
197
|
+
:showPaymentOptions="true"
|
|
198
|
+
class="radius-medium h-min-big bg-light"
|
|
199
|
+
@click="$router.push({
|
|
200
|
+
name: route.params._id ? 'Organization_Spot' : 'Spot',
|
|
201
|
+
params: {
|
|
202
|
+
_id: route.params._id,
|
|
203
|
+
spot: spot._id
|
|
204
|
+
}
|
|
205
|
+
})"
|
|
206
|
+
/>
|
|
207
|
+
</Feed>
|
|
208
|
+
|
|
209
|
+
<button
|
|
210
|
+
v-if="hasAccess(route.params._id, 'spots', 'create', auth.state.accesses, auth.state.access.roles)"
|
|
211
|
+
@click="$router.push(`/spots/${route.params._id}/spots/create`)"
|
|
212
|
+
class="mn-t-medium bg-main button w-100"
|
|
213
|
+
>
|
|
214
|
+
Add New Spot
|
|
215
|
+
</button>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
</template>
|
|
220
|
+
|
|
221
|
+
<script setup="props">
|
|
222
|
+
// Import libs
|
|
223
|
+
import { ref, computed, watch, onMounted, onUnmounted } from 'vue'
|
|
224
|
+
import { useRoute, useRouter } from 'vue-router'
|
|
225
|
+
|
|
226
|
+
// Import components
|
|
227
|
+
import Feed from '@martyrs/src/components/Feed/Feed.vue'
|
|
228
|
+
import Filters from '@martyrs/src/modules/globals/views/components/sections/Filters.vue'
|
|
229
|
+
import Spoiler from "@martyrs/src/components/Spoiler/Spoiler.vue"
|
|
230
|
+
import Field from "@martyrs/src/components/Field/Field.vue"
|
|
231
|
+
import Checkbox from "@martyrs/src/components/Checkbox/Checkbox.vue"
|
|
232
|
+
|
|
233
|
+
import CardSpot from '@martyrs/src/modules/spots/components/blocks/CardSpot.vue'
|
|
234
|
+
|
|
235
|
+
import IconPlus from '@martyrs/src/modules/icons/navigation/IconPlus.vue'
|
|
236
|
+
import IconChevronBottom from '@martyrs/src/modules/icons/navigation/IconChevronBottom.vue'
|
|
237
|
+
|
|
238
|
+
// Accessing router and store
|
|
239
|
+
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';
|
|
240
|
+
import * as globals from '@martyrs/src/modules/globals/views/store/globals.js';
|
|
241
|
+
import * as spots from '@martyrs/src/modules/spots/store/spots.js';
|
|
242
|
+
import * as organizations from '@martyrs/src/modules/organizations/store/organizations.js';
|
|
243
|
+
import { useGlobalMixins } from '@martyrs/src/modules/globals/views/mixins/mixins.js';
|
|
244
|
+
|
|
245
|
+
const route = useRoute()
|
|
246
|
+
const router = useRouter()
|
|
247
|
+
const { hasAccess } = useGlobalMixins()
|
|
248
|
+
|
|
249
|
+
// Props
|
|
250
|
+
const props = defineProps({
|
|
251
|
+
organization: {
|
|
252
|
+
type: Object,
|
|
253
|
+
default: null
|
|
254
|
+
}
|
|
255
|
+
})
|
|
256
|
+
|
|
257
|
+
// Categories
|
|
258
|
+
const currentCategories = ref([]);
|
|
259
|
+
const searchLocation = ref('');
|
|
260
|
+
const selectedLocation = ref('All');
|
|
261
|
+
const locationOptions = ref(['All', 'Phuket', 'Bangkok', 'Chiang Mai', 'Pattaya']);
|
|
262
|
+
|
|
263
|
+
// Delivery options
|
|
264
|
+
const deliveryOptions = ref([
|
|
265
|
+
{ label: 'Pickup', value: 'pickup' },
|
|
266
|
+
{ label: 'Delivery', value: 'delivery' },
|
|
267
|
+
{ label: 'Dine-in', value: 'dinein' }
|
|
268
|
+
]);
|
|
269
|
+
const selectedDeliveryOptions = ref([]);
|
|
270
|
+
|
|
271
|
+
// Payment options
|
|
272
|
+
const paymentOptions = ref([
|
|
273
|
+
{ label: 'Cash', value: 'cash' },
|
|
274
|
+
{ label: 'Card', value: 'card' },
|
|
275
|
+
{ label: 'Crypto', value: 'crypto' },
|
|
276
|
+
{ label: 'Bank Transfer', value: 'transfer' }
|
|
277
|
+
]);
|
|
278
|
+
const selectedPaymentOptions = ref([]);
|
|
279
|
+
|
|
280
|
+
const availableFilters = ref([
|
|
281
|
+
{
|
|
282
|
+
title: 'Location',
|
|
283
|
+
value: 'location',
|
|
284
|
+
type: 'radio',
|
|
285
|
+
options: locationOptions.value.map(loc => ({ label: loc, value: loc }))
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
title: 'Type',
|
|
289
|
+
value: 'type',
|
|
290
|
+
type: 'checkbox',
|
|
291
|
+
options: [
|
|
292
|
+
{ label: 'Restaurant', value: 'restaurant' },
|
|
293
|
+
{ label: 'Cafe', value: 'cafe' },
|
|
294
|
+
{ label: 'Bar', value: 'bar' },
|
|
295
|
+
{ label: 'Club', value: 'club' }
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
])
|
|
299
|
+
|
|
300
|
+
const selectedFilters = ref({
|
|
301
|
+
location: 'All',
|
|
302
|
+
type: []
|
|
303
|
+
})
|
|
304
|
+
|
|
305
|
+
const selectCategory = (category) => {
|
|
306
|
+
// Implementation for category selection
|
|
307
|
+
console.log('Category selected:', category);
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
const clearFilters = () => {
|
|
311
|
+
selectedLocation.value = 'All';
|
|
312
|
+
selectedDeliveryOptions.value = [];
|
|
313
|
+
selectedPaymentOptions.value = [];
|
|
314
|
+
searchLocation.value = '';
|
|
315
|
+
selectedFilters.value = {
|
|
316
|
+
location: 'All',
|
|
317
|
+
type: []
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
globals.state.navigation_bar.actions = [{
|
|
322
|
+
component: IconPlus,
|
|
323
|
+
props: {
|
|
324
|
+
fill: "rgb(var(--main))"
|
|
325
|
+
},
|
|
326
|
+
condition: () => auth.state.user && auth.state.user._id,
|
|
327
|
+
action: () => route.params._id ? router.push({ name: 'Organization_SpotAdd', params: { _id: route.params._id} }) : router.push({ name: 'SpotAdd' })
|
|
328
|
+
}]
|
|
329
|
+
|
|
330
|
+
onMounted(async () => {
|
|
331
|
+
if (route.params._id) {
|
|
332
|
+
await organizations.actions.read({ _id: route.params._id });
|
|
333
|
+
}
|
|
334
|
+
})
|
|
335
|
+
|
|
336
|
+
onUnmounted(() => {
|
|
337
|
+
globals.state.navigation_bar.actions = [];
|
|
338
|
+
});
|
|
339
|
+
</script>
|
|
340
|
+
|
|
341
|
+
<style lang="scss">
|
|
342
|
+
</style>
|
|
@@ -3,6 +3,21 @@ import layoutSpots from '../components/layouts/Spots.vue';
|
|
|
3
3
|
|
|
4
4
|
import * as validationAuth from '@martyrs/src/modules/auth/views/middlewares/auth.validation.js';
|
|
5
5
|
|
|
6
|
+
// Function to create organization spots routes
|
|
7
|
+
export const createSpotsRoutes = (prefix = '') => {
|
|
8
|
+
return {
|
|
9
|
+
path: 'spots',
|
|
10
|
+
name: `${prefix}Spots`,
|
|
11
|
+
meta: {
|
|
12
|
+
title: {
|
|
13
|
+
en: 'Spots',
|
|
14
|
+
ru: 'Точки',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
component: () => import(/* webpackChunkName: "organization-spots" */ '../components/pages/Spots.vue'),
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
6
21
|
const spots = {
|
|
7
22
|
path: 'spots',
|
|
8
23
|
component: layoutEmpty,
|
package/src/styles/base/all.scss
CHANGED
|
@@ -48,9 +48,9 @@ body {
|
|
|
48
48
|
.w-m-66r { width: min(100%, 66rem); }
|
|
49
49
|
.w-m-60r { width: min(100%, 60rem); }
|
|
50
50
|
.w-m-50r { width: min(100%, 50rem); }
|
|
51
|
+
.h-m-40r { height: min(100%, 40rem); }
|
|
51
52
|
.w-m-40r { width: min(100%, 40rem); }
|
|
52
53
|
.w-m-33r { width: min(100%, 33rem); }
|
|
53
|
-
.w-minmax-33r-100 { width: max(33rem, 100%); }
|
|
54
54
|
.w-m-25r { width: min(100%, 25rem); }
|
|
55
55
|
.w-m-20r { width: min(100%, 20rem); }
|
|
56
56
|
.w-m-15r { width: min(100%, 15rem); }
|
|
@@ -257,8 +257,7 @@ body {
|
|
|
257
257
|
.col-w-100 {
|
|
258
258
|
grid-column: 1 / -1
|
|
259
259
|
}
|
|
260
|
-
|
|
261
|
-
.rows-1 {display: grid; grid-template-rows: auto 1fr; }
|
|
260
|
+
.rows-1 {display: grid; grid-template-columns: 100%; grid-auto-rows: minmax(auto, max-content); }
|
|
262
261
|
.rows-1-min0_max1 {display: grid; grid-template-rows: minmax(0, 1fr); }
|
|
263
262
|
.rows-auto { grid-auto-flow: row;
|
|
264
263
|
grid-auto-columns: auto;
|
package/src/styles/layout.scss
CHANGED
|
@@ -38,6 +38,22 @@ span, p {
|
|
|
38
38
|
box-shadow: inset 0 0 0 1px rgba(var(--second), 1), 0 0 6px 2px rgba(var(--second), 0.1);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
.field-wrapper:has(input:-webkit-autofill),
|
|
42
|
+
.field-wrapper:has(textarea:-webkit-autofill),
|
|
43
|
+
.field-wrapper:has(select:-webkit-autofill) {
|
|
44
|
+
background: rgb(255, 250, 150);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Также перекрашиваем сам autofill input */
|
|
48
|
+
.field-wrapper input:-webkit-autofill,
|
|
49
|
+
.field-wrapper textarea:-webkit-autofill,
|
|
50
|
+
.field-wrapper select:-webkit-autofill {
|
|
51
|
+
background: rgb(255, 250, 150) !important;
|
|
52
|
+
-webkit-box-shadow: 0 0 0 1000px rgb(255, 250, 150) inset !important;
|
|
53
|
+
-webkit-text-fill-color: #000 !important;
|
|
54
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
55
|
+
}
|
|
56
|
+
|
|
41
57
|
.clickable {
|
|
42
58
|
transition: border-width .2s, box-shadow .2s ease;
|
|
43
59
|
}
|