@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,431 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const vueRouter = require("vue-router");
|
|
5
|
+
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
|
6
|
+
const Filters = require("../../../globals/views/components/sections/Filters.vue2.cjs");
|
|
7
|
+
const Spoiler = require("../../../../components/Spoiler/Spoiler.vue2.cjs");
|
|
8
|
+
const Field = require("../../../../components/Field/Field.vue.cjs");
|
|
9
|
+
const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
|
|
10
|
+
const Calendar = require("../../../../components/Calendar/Calendar.vue2.cjs");
|
|
11
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
|
12
|
+
const CardBlogpost = require("../blocks/CardBlogpost.vue.cjs");
|
|
13
|
+
const IconPlus = require("../../../icons/navigation/IconPlus.vue.cjs");
|
|
14
|
+
const IconChevronBottom = require("../../../icons/navigation/IconChevronBottom.vue.cjs");
|
|
15
|
+
const auth = require("../../../auth/views/store/auth.cjs");
|
|
16
|
+
const globals = require("../../../globals/views/store/globals.cjs");
|
|
17
|
+
const blogposts = require("../../store/blogposts.cjs");
|
|
18
|
+
const organizations = require("../../../organizations/store/organizations.cjs");
|
|
19
|
+
const mixins = require("../../../globals/views/mixins/mixins.cjs");
|
|
20
|
+
const _hoisted_1 = { class: "pos-relative" };
|
|
21
|
+
const _hoisted_2 = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "pd-medium flex-v-center flex-nowrap flex"
|
|
24
|
+
};
|
|
25
|
+
const _hoisted_3 = { class: "cols-2-1_3 br-1px br-solid br-light z-index-3 pos-relative" };
|
|
26
|
+
const _hoisted_4 = { class: "o-y-scroll br-r br-solid br-light pd-medium z-index-2 desktop-only h-100 pos-relative" };
|
|
27
|
+
const _hoisted_5 = { class: "w-100 o-y-scroll h-100" };
|
|
28
|
+
const _hoisted_6 = { class: "mn-b-medium" };
|
|
29
|
+
const _hoisted_7 = { class: "gap-micro" };
|
|
30
|
+
const _hoisted_8 = ["onClick"];
|
|
31
|
+
const _hoisted_9 = { class: "cursor-pointer w-100 flex-v-center flex-nowrap flex" };
|
|
32
|
+
const _hoisted_10 = { class: "h-2r w-2r flex-child-auto aspect-1x1 flex-center flex bg-light radius-extra" };
|
|
33
|
+
const _hoisted_11 = { class: "mn-t-small" };
|
|
34
|
+
const _hoisted_12 = { class: "cursor-pointer w-100 flex-v-center flex-nowrap flex" };
|
|
35
|
+
const _hoisted_13 = { class: "h-2r w-2r flex-child-auto aspect-1x1 flex-center flex bg-light radius-extra" };
|
|
36
|
+
const _hoisted_14 = { class: "mn-t-small" };
|
|
37
|
+
const _hoisted_15 = ["onClick"];
|
|
38
|
+
const _hoisted_16 = { class: "cursor-pointer w-100 flex-v-center flex-nowrap flex" };
|
|
39
|
+
const _hoisted_17 = { class: "h-2r w-2r flex-child-auto aspect-1x1 flex-center flex bg-light radius-extra" };
|
|
40
|
+
const _hoisted_18 = { class: "mn-t-small" };
|
|
41
|
+
const _hoisted_19 = { class: "w-100 rows-1 pd-thin pos-relative o-hidden" };
|
|
42
|
+
const _hoisted_20 = { class: "mn-b-thin w-100 o-y-scroll scroll-hide scroll-snap-type-x-mandatory scroll-pd-regular" };
|
|
43
|
+
const _hoisted_21 = { class: "gap-thin flex-nowrap flex" };
|
|
44
|
+
const _hoisted_22 = ["onClick"];
|
|
45
|
+
const _hoisted_23 = { class: "flex gap-small" };
|
|
46
|
+
const _sfc_main = {
|
|
47
|
+
__name: "Posts",
|
|
48
|
+
props: {
|
|
49
|
+
organization: {
|
|
50
|
+
type: Object,
|
|
51
|
+
default: null
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
setup(__props) {
|
|
55
|
+
const route = vueRouter.useRoute();
|
|
56
|
+
const router = vueRouter.useRouter();
|
|
57
|
+
const { hasAccess, formatDate } = mixins.useGlobalMixins();
|
|
58
|
+
const postCategories = vue.ref([
|
|
59
|
+
{ label: "All Posts", value: "all" },
|
|
60
|
+
{ label: "News", value: "news" },
|
|
61
|
+
{ label: "Updates", value: "updates" },
|
|
62
|
+
{ label: "Events", value: "events" },
|
|
63
|
+
{ label: "Announcements", value: "announcements" },
|
|
64
|
+
{ label: "Stories", value: "stories" }
|
|
65
|
+
]);
|
|
66
|
+
const selectedCategory = vue.ref("all");
|
|
67
|
+
const searchTag = vue.ref("");
|
|
68
|
+
const selectedTags = vue.ref([]);
|
|
69
|
+
const availableTags = vue.ref(["featured", "important", "trending", "community", "official"]);
|
|
70
|
+
const filteredTags = vue.computed(() => {
|
|
71
|
+
if (!searchTag.value) return availableTags.value;
|
|
72
|
+
return availableTags.value.filter(
|
|
73
|
+
(tag) => tag.toLowerCase().includes(searchTag.value.toLowerCase())
|
|
74
|
+
);
|
|
75
|
+
});
|
|
76
|
+
const dateRangeOptions = vue.ref([
|
|
77
|
+
{ label: "All Time", value: "all" },
|
|
78
|
+
{ label: "Today", value: "today" },
|
|
79
|
+
{ label: "This Week", value: "week" },
|
|
80
|
+
{ label: "This Month", value: "month" },
|
|
81
|
+
{ label: "This Year", value: "year" }
|
|
82
|
+
]);
|
|
83
|
+
const selectedDateRange = vue.ref("all");
|
|
84
|
+
const showDatePickerPopup = vue.ref(false);
|
|
85
|
+
const selectedDates = vue.ref(null);
|
|
86
|
+
const tempSelectedDates = vue.ref(null);
|
|
87
|
+
const showMyPostsOnly = vue.ref(false);
|
|
88
|
+
const availableFilters = vue.ref([
|
|
89
|
+
{
|
|
90
|
+
title: "Category",
|
|
91
|
+
value: "category",
|
|
92
|
+
type: "radio",
|
|
93
|
+
options: postCategories.value
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
title: "Status",
|
|
97
|
+
value: "status",
|
|
98
|
+
type: "radio",
|
|
99
|
+
options: [
|
|
100
|
+
{ label: "Published", value: "published" },
|
|
101
|
+
{ label: "Draft", value: "draft" },
|
|
102
|
+
{ label: "Archived", value: "archived" }
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
]);
|
|
106
|
+
const selectedFilters = vue.ref({
|
|
107
|
+
category: "all",
|
|
108
|
+
status: "published"
|
|
109
|
+
});
|
|
110
|
+
const selectCategory = (category) => {
|
|
111
|
+
selectedCategory.value = category;
|
|
112
|
+
selectedFilters.value.category = category;
|
|
113
|
+
};
|
|
114
|
+
const selectDateRange = (range) => {
|
|
115
|
+
selectedDateRange.value = range;
|
|
116
|
+
const today = /* @__PURE__ */ new Date();
|
|
117
|
+
switch (range) {
|
|
118
|
+
case "all":
|
|
119
|
+
selectedDates.value = null;
|
|
120
|
+
break;
|
|
121
|
+
case "today":
|
|
122
|
+
selectedDates.value = {
|
|
123
|
+
start: today,
|
|
124
|
+
end: today
|
|
125
|
+
};
|
|
126
|
+
break;
|
|
127
|
+
case "week":
|
|
128
|
+
const weekStart = new Date(today);
|
|
129
|
+
weekStart.setDate(today.getDate() - today.getDay());
|
|
130
|
+
selectedDates.value = {
|
|
131
|
+
start: weekStart,
|
|
132
|
+
end: today
|
|
133
|
+
};
|
|
134
|
+
break;
|
|
135
|
+
case "month":
|
|
136
|
+
const monthStart = new Date(today.getFullYear(), today.getMonth(), 1);
|
|
137
|
+
selectedDates.value = {
|
|
138
|
+
start: monthStart,
|
|
139
|
+
end: today
|
|
140
|
+
};
|
|
141
|
+
break;
|
|
142
|
+
case "year":
|
|
143
|
+
const yearStart = new Date(today.getFullYear(), 0, 1);
|
|
144
|
+
selectedDates.value = {
|
|
145
|
+
start: yearStart,
|
|
146
|
+
end: today
|
|
147
|
+
};
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
const applyDateFilter = () => {
|
|
152
|
+
selectedDates.value = tempSelectedDates.value;
|
|
153
|
+
selectedDateRange.value = "custom";
|
|
154
|
+
showDatePickerPopup.value = false;
|
|
155
|
+
};
|
|
156
|
+
const clearFilters = () => {
|
|
157
|
+
selectedCategory.value = "all";
|
|
158
|
+
selectedTags.value = [];
|
|
159
|
+
selectedDateRange.value = "all";
|
|
160
|
+
selectedDates.value = null;
|
|
161
|
+
showMyPostsOnly.value = false;
|
|
162
|
+
searchTag.value = "";
|
|
163
|
+
selectedFilters.value = {
|
|
164
|
+
category: "all",
|
|
165
|
+
status: "published"
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
globals.state.navigation_bar.actions = [{
|
|
169
|
+
component: IconPlus.default,
|
|
170
|
+
props: {
|
|
171
|
+
fill: "rgb(var(--main))"
|
|
172
|
+
},
|
|
173
|
+
condition: () => auth.state.user && auth.state.user._id,
|
|
174
|
+
action: () => route.params._id ? router.push({ name: "Organization_PostAdd", params: { _id: route.params._id } }) : router.push({ name: "CreateBlogPost" })
|
|
175
|
+
}];
|
|
176
|
+
vue.onMounted(async () => {
|
|
177
|
+
if (route.params._id) {
|
|
178
|
+
await organizations.actions.read({ _id: route.params._id });
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
vue.onUnmounted(() => {
|
|
182
|
+
globals.state.navigation_bar.actions = [];
|
|
183
|
+
});
|
|
184
|
+
return (_ctx, _cache) => {
|
|
185
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
186
|
+
vue.unref(route).name !== "Organization" && !_ctx.MOBILE_APP ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_2, [
|
|
187
|
+
_cache[13] || (_cache[13] = vue.createElementVNode("h2", { class: "mn-r-medium" }, "Posts", -1)),
|
|
188
|
+
vue.unref(hasAccess)(vue.unref(route).params._id, "posts", "create", auth.state.accesses, auth.state.access.roles) ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
189
|
+
key: 0,
|
|
190
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$router.push({
|
|
191
|
+
name: vue.unref(route).params?._id ? "Organization_PostAdd" : "CreateBlogPost"
|
|
192
|
+
})),
|
|
193
|
+
class: "radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"
|
|
194
|
+
}, " + ")) : vue.createCommentVNode("", true)
|
|
195
|
+
])) : vue.createCommentVNode("", true),
|
|
196
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
197
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
198
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
199
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
200
|
+
_cache[14] || (_cache[14] = vue.createElementVNode("h4", { class: "mn-b-small" }, "Categories", -1)),
|
|
201
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
202
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(postCategories.value, (category) => {
|
|
203
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
204
|
+
key: category.value,
|
|
205
|
+
onClick: ($event) => selectCategory(category.value),
|
|
206
|
+
class: vue.normalizeClass([{ "bg-light": selectedCategory.value === category.value }, "pd-small radius-small cursor-pointer hover-bg-light transition-all"])
|
|
207
|
+
}, vue.toDisplayString(category.label), 11, _hoisted_8);
|
|
208
|
+
}), 128))
|
|
209
|
+
])
|
|
210
|
+
]),
|
|
211
|
+
vue.createVNode(Spoiler.default, {
|
|
212
|
+
class: "o-hidden mn-b-medium",
|
|
213
|
+
status: true
|
|
214
|
+
}, {
|
|
215
|
+
header: vue.withCtx(({ isOpen }) => [
|
|
216
|
+
vue.createElementVNode("div", _hoisted_9, [
|
|
217
|
+
_cache[15] || (_cache[15] = vue.createElementVNode("h4", { class: "w-100" }, "Tags", -1)),
|
|
218
|
+
vue.createElementVNode("div", _hoisted_10, [
|
|
219
|
+
vue.createVNode(IconChevronBottom.default, {
|
|
220
|
+
class: vue.normalizeClass([{ "rotate-180 mn-t-micro-negative": isOpen }, "i-regular"]),
|
|
221
|
+
fill: "rgb(var(--black))"
|
|
222
|
+
}, null, 8, ["class"])
|
|
223
|
+
])
|
|
224
|
+
])
|
|
225
|
+
]),
|
|
226
|
+
content: vue.withCtx(() => [
|
|
227
|
+
vue.createElementVNode("div", _hoisted_11, [
|
|
228
|
+
vue.createVNode(Field.default, {
|
|
229
|
+
modelValue: searchTag.value,
|
|
230
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchTag.value = $event),
|
|
231
|
+
placeholder: "Search tags...",
|
|
232
|
+
type: "text",
|
|
233
|
+
class: "w-100 bg-light pd-small radius-small mn-b-small"
|
|
234
|
+
}, null, 8, ["modelValue"]),
|
|
235
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(filteredTags.value, (tag) => {
|
|
236
|
+
return vue.openBlock(), vue.createBlock(Checkbox.default, {
|
|
237
|
+
key: tag,
|
|
238
|
+
checkbox: selectedTags.value,
|
|
239
|
+
"onUpdate:checkbox": _cache[2] || (_cache[2] = ($event) => selectedTags.value = $event),
|
|
240
|
+
label: tag,
|
|
241
|
+
value: tag,
|
|
242
|
+
mode: "checkbox",
|
|
243
|
+
class: "mn-b-micro"
|
|
244
|
+
}, null, 8, ["checkbox", "label", "value"]);
|
|
245
|
+
}), 128))
|
|
246
|
+
])
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}),
|
|
250
|
+
vue.createVNode(Spoiler.default, {
|
|
251
|
+
class: "o-hidden mn-b-medium",
|
|
252
|
+
status: true
|
|
253
|
+
}, {
|
|
254
|
+
header: vue.withCtx(({ isOpen }) => [
|
|
255
|
+
vue.createElementVNode("div", _hoisted_12, [
|
|
256
|
+
_cache[16] || (_cache[16] = vue.createElementVNode("h4", { class: "w-100" }, "Date Range", -1)),
|
|
257
|
+
vue.createElementVNode("div", _hoisted_13, [
|
|
258
|
+
vue.createVNode(IconChevronBottom.default, {
|
|
259
|
+
class: vue.normalizeClass([{ "rotate-180 mn-t-micro-negative": isOpen }, "i-regular"]),
|
|
260
|
+
fill: "rgb(var(--black))"
|
|
261
|
+
}, null, 8, ["class"])
|
|
262
|
+
])
|
|
263
|
+
])
|
|
264
|
+
]),
|
|
265
|
+
content: vue.withCtx(() => [
|
|
266
|
+
vue.createElementVNode("div", _hoisted_14, [
|
|
267
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(dateRangeOptions.value, (option) => {
|
|
268
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
269
|
+
key: option.value,
|
|
270
|
+
onClick: ($event) => selectDateRange(option.value),
|
|
271
|
+
class: vue.normalizeClass([{ "bg-light": selectedDateRange.value === option.value }, "pd-small radius-small cursor-pointer hover-bg-light transition-all mn-b-micro"])
|
|
272
|
+
}, vue.toDisplayString(option.label), 11, _hoisted_15);
|
|
273
|
+
}), 128)),
|
|
274
|
+
vue.createElementVNode("div", {
|
|
275
|
+
onClick: _cache[3] || (_cache[3] = () => {
|
|
276
|
+
tempSelectedDates.value = selectedDates.value;
|
|
277
|
+
showDatePickerPopup.value = true;
|
|
278
|
+
}),
|
|
279
|
+
class: vue.normalizeClass([{ "bg-light": selectedDateRange.value === "custom" }, "pd-small radius-small cursor-pointer hover-bg-light transition-all mn-b-micro"])
|
|
280
|
+
}, vue.toDisplayString(selectedDates.value ? `${vue.unref(formatDate)(selectedDates.value.start, { dayMonth: true, language: "en" })} - ${vue.unref(formatDate)(selectedDates.value.end, { dayMonth: true, language: "en" })}` : "Select custom dates"), 3)
|
|
281
|
+
])
|
|
282
|
+
]),
|
|
283
|
+
_: 1
|
|
284
|
+
}),
|
|
285
|
+
vue.createVNode(Spoiler.default, {
|
|
286
|
+
class: "o-hidden mn-b-medium",
|
|
287
|
+
status: true
|
|
288
|
+
}, {
|
|
289
|
+
header: vue.withCtx(({ isOpen }) => [
|
|
290
|
+
vue.createElementVNode("div", _hoisted_16, [
|
|
291
|
+
_cache[17] || (_cache[17] = vue.createElementVNode("h4", { class: "w-100" }, "Author", -1)),
|
|
292
|
+
vue.createElementVNode("div", _hoisted_17, [
|
|
293
|
+
vue.createVNode(IconChevronBottom.default, {
|
|
294
|
+
class: vue.normalizeClass([{ "rotate-180 mn-t-micro-negative": isOpen }, "i-regular"]),
|
|
295
|
+
fill: "rgb(var(--black))"
|
|
296
|
+
}, null, 8, ["class"])
|
|
297
|
+
])
|
|
298
|
+
])
|
|
299
|
+
]),
|
|
300
|
+
content: vue.withCtx(() => [
|
|
301
|
+
vue.createElementVNode("div", _hoisted_18, [
|
|
302
|
+
vue.createVNode(Checkbox.default, {
|
|
303
|
+
label: "My Posts Only",
|
|
304
|
+
checkbox: showMyPostsOnly.value,
|
|
305
|
+
"onUpdate:checkbox": _cache[4] || (_cache[4] = ($event) => showMyPostsOnly.value = $event),
|
|
306
|
+
mode: "checkbox",
|
|
307
|
+
class: "mn-b-micro"
|
|
308
|
+
}, null, 8, ["checkbox"])
|
|
309
|
+
])
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
}),
|
|
313
|
+
vue.createElementVNode("button", {
|
|
314
|
+
onClick: clearFilters,
|
|
315
|
+
class: "bg-main w-100 button mn-t-medium"
|
|
316
|
+
}, " Clear Filters ")
|
|
317
|
+
])
|
|
318
|
+
]),
|
|
319
|
+
vue.createElementVNode("div", _hoisted_19, [
|
|
320
|
+
vue.createVNode(Filters.default, {
|
|
321
|
+
filters: availableFilters.value,
|
|
322
|
+
"onUpdate:filters": _cache[5] || (_cache[5] = ($event) => availableFilters.value = $event),
|
|
323
|
+
selected: selectedFilters.value,
|
|
324
|
+
"onUpdate:selected": _cache[6] || (_cache[6] = ($event) => selectedFilters.value = $event)
|
|
325
|
+
}, null, 8, ["filters", "selected"]),
|
|
326
|
+
vue.createElementVNode("div", _hoisted_20, [
|
|
327
|
+
vue.createElementVNode("div", _hoisted_21, [
|
|
328
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(postCategories.value, (category) => {
|
|
329
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
330
|
+
key: category.value,
|
|
331
|
+
onClick: ($event) => selectCategory(category.value),
|
|
332
|
+
class: vue.normalizeClass([{ "bg-main t-white": selectedCategory.value === category.value }, "flex-child-default bg-light flex t-nowrap pd-medium radius-medium cursor-pointer hover-bg-light transition-all"])
|
|
333
|
+
}, vue.toDisplayString(category.label), 11, _hoisted_22);
|
|
334
|
+
}), 128))
|
|
335
|
+
])
|
|
336
|
+
]),
|
|
337
|
+
vue.createVNode(Feed.default, {
|
|
338
|
+
search: true,
|
|
339
|
+
filter: blogposts.state.filter,
|
|
340
|
+
"onUpdate:filter": _cache[7] || (_cache[7] = ($event) => blogposts.state.filter = $event),
|
|
341
|
+
sort: blogposts.state.sort,
|
|
342
|
+
"onUpdate:sort": _cache[8] || (_cache[8] = ($event) => blogposts.state.sort = $event),
|
|
343
|
+
showLoadMore: false,
|
|
344
|
+
states: {
|
|
345
|
+
empty: {
|
|
346
|
+
title: "No Blog Posts Found",
|
|
347
|
+
description: "Currently, there are no posts available in this blog."
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
store: {
|
|
351
|
+
read: (options) => blogposts.read(options),
|
|
352
|
+
state: blogposts.state
|
|
353
|
+
},
|
|
354
|
+
options: {
|
|
355
|
+
limit: 12,
|
|
356
|
+
status: "published",
|
|
357
|
+
user: auth.state.user._id,
|
|
358
|
+
owner: vue.unref(route).params._id || null,
|
|
359
|
+
category: selectedCategory.value !== "all" ? selectedCategory.value : null,
|
|
360
|
+
tags: selectedTags.value.length > 0 ? selectedTags.value : null,
|
|
361
|
+
author: showMyPostsOnly.value ? auth.state.user._id : null,
|
|
362
|
+
dateStart: selectedDates.value?.start,
|
|
363
|
+
dateEnd: selectedDates.value?.end,
|
|
364
|
+
search: vue.unref(route).query.search
|
|
365
|
+
},
|
|
366
|
+
class: "cols-3 pos-relative w-100 rows-1 gap-thin"
|
|
367
|
+
}, {
|
|
368
|
+
default: vue.withCtx(({
|
|
369
|
+
items
|
|
370
|
+
}) => [
|
|
371
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, (item) => {
|
|
372
|
+
return vue.openBlock(), vue.createBlock(CardBlogpost.default, {
|
|
373
|
+
key: item._id,
|
|
374
|
+
blogpost: item,
|
|
375
|
+
user: auth.state.user._id,
|
|
376
|
+
class: "h-max-40r bg-light radius-medium cursor-pointer hover-scale-1 transition-all",
|
|
377
|
+
onClick: ($event) => _ctx.$router.push({
|
|
378
|
+
name: vue.unref(route).params._id ? "Organization_BlogPost" : "BlogPost",
|
|
379
|
+
params: {
|
|
380
|
+
_id: vue.unref(route).params._id,
|
|
381
|
+
url: item.url
|
|
382
|
+
}
|
|
383
|
+
})
|
|
384
|
+
}, null, 8, ["blogpost", "user", "onClick"]);
|
|
385
|
+
}), 128))
|
|
386
|
+
]),
|
|
387
|
+
_: 1
|
|
388
|
+
}, 8, ["filter", "sort", "store", "options"]),
|
|
389
|
+
vue.unref(hasAccess)(vue.unref(route).params._id, "posts", "create", auth.state.accesses, auth.state.access.roles) ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
390
|
+
key: 0,
|
|
391
|
+
onClick: _cache[9] || (_cache[9] = ($event) => _ctx.$router.push({
|
|
392
|
+
name: vue.unref(route).params?._id ? "Organization_PostAdd" : "CreateBlogPost"
|
|
393
|
+
})),
|
|
394
|
+
class: "mn-t-medium bg-main button w-100"
|
|
395
|
+
}, " Create New Post ")) : vue.createCommentVNode("", true)
|
|
396
|
+
])
|
|
397
|
+
]),
|
|
398
|
+
vue.createVNode(Popup.default, {
|
|
399
|
+
isPopupOpen: showDatePickerPopup.value,
|
|
400
|
+
onClosePopup: _cache[12] || (_cache[12] = ($event) => showDatePickerPopup.value = false),
|
|
401
|
+
class: "pd-medium bg-white radius-medium",
|
|
402
|
+
style: { "min-width": "350px" }
|
|
403
|
+
}, {
|
|
404
|
+
default: vue.withCtx(() => [
|
|
405
|
+
_cache[18] || (_cache[18] = vue.createElementVNode("h3", { class: "mn-b-medium" }, "Select Date Range", -1)),
|
|
406
|
+
vue.createVNode(Calendar.default, {
|
|
407
|
+
date: tempSelectedDates.value,
|
|
408
|
+
"onUpdate:date": _cache[10] || (_cache[10] = ($event) => tempSelectedDates.value = $event),
|
|
409
|
+
allowRange: true,
|
|
410
|
+
disablePastDates: false,
|
|
411
|
+
class: "mn-b-medium"
|
|
412
|
+
}, null, 8, ["date"]),
|
|
413
|
+
vue.createElementVNode("div", _hoisted_23, [
|
|
414
|
+
vue.createElementVNode("button", {
|
|
415
|
+
onClick: applyDateFilter,
|
|
416
|
+
class: "bg-main button flex-child-full"
|
|
417
|
+
}, " Apply "),
|
|
418
|
+
vue.createElementVNode("button", {
|
|
419
|
+
onClick: _cache[11] || (_cache[11] = ($event) => showDatePickerPopup.value = false),
|
|
420
|
+
class: "bg-light button flex-child-full"
|
|
421
|
+
}, " Cancel ")
|
|
422
|
+
])
|
|
423
|
+
]),
|
|
424
|
+
_: 1
|
|
425
|
+
}, 8, ["isPopupOpen"])
|
|
426
|
+
]);
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
exports.default = _sfc_main;
|
|
431
|
+
//# sourceMappingURL=Posts.vue.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Posts.vue.cjs","sources":["../../../../../../../src/modules/community/components/pages/Posts.vue"],"sourcesContent":["<template>\n <div class=\"pos-relative\">\n <header \n v-if=\"route.name !== 'Organization' && !MOBILE_APP\"\n class=\"pd-medium flex-v-center flex-nowrap flex\"\n >\n <h2 class=\"mn-r-medium\">Posts</h2>\n <button \n v-if=\"hasAccess(route.params._id, 'posts', 'create', auth.state.accesses, auth.state.access.roles)\"\n @click=\"$router.push({\n name: route.params?._id ? 'Organization_PostAdd' : 'CreateBlogPost'\n })\" \n class=\"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second\">\n +\n </button>\n </header>\n\n <div class=\"cols-2-1_3 br-1px br-solid br-light z-index-3 pos-relative\">\n\n <div class=\"o-y-scroll br-r br-solid br-light pd-medium z-index-2 desktop-only h-100 pos-relative\">\n <div class=\"w-100 o-y-scroll h-100\">\n <!-- Categories -->\n <div class=\"mn-b-medium\">\n <h4 class=\"mn-b-small\">Categories</h4>\n <div class=\"gap-micro\">\n <div\n v-for=\"category in postCategories\"\n :key=\"category.value\"\n @click=\"selectCategory(category.value)\"\n :class=\"{ 'bg-light': selectedCategory === category.value }\"\n class=\"pd-small radius-small cursor-pointer hover-bg-light transition-all\"\n >\n {{ category.label }}\n </div>\n </div>\n </div>\n\n <!-- Tags Filter -->\n <Spoiler \n class=\"o-hidden mn-b-medium\"\n :status=\"true\"\n >\n <template #header=\"{ isOpen }\">\n <div class=\"cursor-pointer w-100 flex-v-center flex-nowrap flex\">\n <h4 class=\"w-100\">Tags</h4>\n <div class=\"h-2r w-2r flex-child-auto aspect-1x1 flex-center flex bg-light radius-extra\">\n <IconChevronBottom :class=\"{ 'rotate-180 mn-t-micro-negative': isOpen }\" fill=\"rgb(var(--black))\" class=\"i-regular\"/>\n </div>\n </div>\n </template>\n\n <template #content>\n <div class=\"mn-t-small\">\n <Field\n v-model=\"searchTag\"\n placeholder=\"Search tags...\"\n type=\"text\"\n class=\"w-100 bg-light pd-small radius-small mn-b-small\"\n />\n <Checkbox \n v-for=\"tag in filteredTags\"\n :key=\"tag\"\n v-model:checkbox=\"selectedTags\"\n :label=\"tag\"\n :value=\"tag\"\n mode=\"checkbox\"\n class=\"mn-b-micro\"\n />\n </div>\n </template>\n </Spoiler>\n\n <!-- Date Range Filter -->\n <Spoiler \n class=\"o-hidden mn-b-medium\"\n :status=\"true\"\n >\n <template #header=\"{ isOpen }\">\n <div class=\"cursor-pointer w-100 flex-v-center flex-nowrap flex\">\n <h4 class=\"w-100\">Date Range</h4>\n <div class=\"h-2r w-2r flex-child-auto aspect-1x1 flex-center flex bg-light radius-extra\">\n <IconChevronBottom :class=\"{ 'rotate-180 mn-t-micro-negative': isOpen }\" fill=\"rgb(var(--black))\" class=\"i-regular\"/>\n </div>\n </div>\n </template>\n\n <template #content>\n <div class=\"mn-t-small\">\n <div \n v-for=\"option in dateRangeOptions\"\n :key=\"option.value\"\n @click=\"selectDateRange(option.value)\"\n :class=\"{ 'bg-light': selectedDateRange === option.value }\"\n class=\"pd-small radius-small cursor-pointer hover-bg-light transition-all mn-b-micro\"\n >\n {{ option.label }}\n </div>\n \n <div \n @click=\"() => { tempSelectedDates = selectedDates; showDatePickerPopup = true; }\"\n :class=\"{ 'bg-light': selectedDateRange === 'custom' }\"\n class=\"pd-small radius-small cursor-pointer hover-bg-light transition-all mn-b-micro\"\n >\n {{ selectedDates ? `${formatDate(selectedDates.start, { dayMonth: true, language: 'en' })} - ${formatDate(selectedDates.end, { dayMonth: true, language: 'en' })}` : 'Select custom dates'}} \n </div>\n </div>\n </template>\n </Spoiler>\n\n <!-- Author Filter -->\n <Spoiler \n class=\"o-hidden mn-b-medium\"\n :status=\"true\"\n >\n <template #header=\"{ isOpen }\">\n <div class=\"cursor-pointer w-100 flex-v-center flex-nowrap flex\">\n <h4 class=\"w-100\">Author</h4>\n <div class=\"h-2r w-2r flex-child-auto aspect-1x1 flex-center flex bg-light radius-extra\">\n <IconChevronBottom :class=\"{ 'rotate-180 mn-t-micro-negative': isOpen }\" fill=\"rgb(var(--black))\" class=\"i-regular\"/>\n </div>\n </div>\n </template>\n\n <template #content>\n <div class=\"mn-t-small\">\n <Checkbox \n label=\"My Posts Only\"\n v-model:checkbox=\"showMyPostsOnly\"\n mode=\"checkbox\"\n class=\"mn-b-micro\"\n />\n </div>\n </template>\n </Spoiler>\n\n <!-- Clear Filters Button -->\n <button \n @click=\"clearFilters\"\n class=\"bg-main w-100 button mn-t-medium\"\n >\n Clear Filters\n </button>\n </div>\n </div>\n\n <div class=\"w-100 rows-1 pd-thin pos-relative o-hidden\">\n <Filters\n v-model:filters=\"availableFilters\"\n v-model:selected=\"selectedFilters\"\n />\n\n <div class=\"mn-b-thin w-100 o-y-scroll scroll-hide scroll-snap-type-x-mandatory scroll-pd-regular\">\n <div class=\"gap-thin flex-nowrap flex\">\n <div\n v-for=\"category in postCategories\"\n :key=\"category.value\"\n @click=\"selectCategory(category.value)\"\n :class=\"{ 'bg-main t-white': selectedCategory === category.value }\"\n class=\"flex-child-default bg-light flex t-nowrap pd-medium radius-medium cursor-pointer hover-bg-light transition-all\"\n >\n {{ category.label }}\n </div>\n </div>\n </div>\n\n <Feed\n :search=\"true\"\n v-model:filter=\"blog.state.filter\"\n v-model:sort=\"blog.state.sort\"\n :showLoadMore=\"false\"\n :states=\"{\n empty: {\n title: 'No Blog Posts Found',\n description: 'Currently, there are no posts available in this blog.'\n }\n }\"\n :store=\"{\n read: (options) => blog.read(options),\n state: blog.state\n }\"\n :options=\"{\n limit: 12,\n status: 'published',\n user: auth.state.user._id,\n owner: route.params._id || null,\n category: selectedCategory !== 'all' ? selectedCategory : null,\n tags: selectedTags.length > 0 ? selectedTags : null,\n author: showMyPostsOnly ? auth.state.user._id : null,\n dateStart: selectedDates?.start,\n dateEnd: selectedDates?.end,\n search: route.query.search\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"cols-3 pos-relative w-100 rows-1 gap-thin\"\n >\n <CardBlogpost \n v-for=\"item in items\" \n :key=\"item._id\" \n :blogpost=\"item\" \n :user=\"auth.state.user._id\" \n class=\"h-max-40r bg-light radius-medium cursor-pointer hover-scale-1 transition-all\"\n @click=\"$router.push({ \n name: route.params._id ? 'Organization_BlogPost' : 'BlogPost', \n params: { \n _id: route.params._id,\n url: item.url \n } \n })\"\n />\n </Feed>\n\n <button\n v-if=\"hasAccess(route.params._id, 'posts', 'create', auth.state.accesses, auth.state.access.roles)\"\n @click=\"$router.push({\n name: route.params?._id ? 'Organization_PostAdd' : 'CreateBlogPost'\n })\"\n class=\"mn-t-medium bg-main button w-100\"\n >\n Create New Post\n </button>\n </div>\n </div>\n \n <!-- Date Picker Popup -->\n <Popup\n :isPopupOpen=\"showDatePickerPopup\"\n @close-popup=\"showDatePickerPopup = false\"\n class=\"pd-medium bg-white radius-medium\"\n style=\"min-width: 350px;\"\n >\n <h3 class=\"mn-b-medium\">Select Date Range</h3>\n \n <Calendar\n v-model:date=\"tempSelectedDates\"\n :allowRange=\"true\"\n :disablePastDates=\"false\"\n class=\"mn-b-medium\"\n />\n \n <div class=\"flex gap-small\">\n <button \n @click=\"applyDateFilter\"\n class=\"bg-main button flex-child-full\"\n >\n Apply\n </button>\n <button \n @click=\"showDatePickerPopup = false\"\n class=\"bg-light button flex-child-full\"\n >\n Cancel\n </button>\n </div>\n </Popup>\n </div>\n</template>\n\n<script setup=\"props\">\n // Import libs\n import { ref, computed, watch, onMounted, onUnmounted } from 'vue'\n import { useRoute, useRouter } from 'vue-router'\n\n // Import components\n import Feed from '@martyrs/src/components/Feed/Feed.vue'\n import Filters from '@martyrs/src/modules/globals/views/components/sections/Filters.vue'\n import Spoiler from \"@martyrs/src/components/Spoiler/Spoiler.vue\"\n import Field from \"@martyrs/src/components/Field/Field.vue\"\n import Checkbox from \"@martyrs/src/components/Checkbox/Checkbox.vue\"\n import Calendar from \"@martyrs/src/components/Calendar/Calendar.vue\"\n import Popup from \"@martyrs/src/components/Popup/Popup.vue\"\n\n import CardBlogpost from '@martyrs/src/modules/community/components/blocks/CardBlogpost.vue'\n\n import IconPlus from '@martyrs/src/modules/icons/navigation/IconPlus.vue'\n import IconChevronBottom from '@martyrs/src/modules/icons/navigation/IconChevronBottom.vue'\n\n // Accessing router and store\n import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';\n import * as globals from '@martyrs/src/modules/globals/views/store/globals.js';\n import * as blog from '@martyrs/src/modules/community/store/blogposts.js';\n import * as organizations from '@martyrs/src/modules/organizations/store/organizations.js';\n import { useGlobalMixins } from '@martyrs/src/modules/globals/views/mixins/mixins.js';\n\n const route = useRoute()\n const router = useRouter()\n const { hasAccess, formatDate } = useGlobalMixins()\n\n // Props\n const props = defineProps({\n organization: {\n type: Object,\n default: null\n }\n })\n\n // Categories\n const postCategories = ref([\n { label: 'All Posts', value: 'all' },\n { label: 'News', value: 'news' },\n { label: 'Updates', value: 'updates' },\n { label: 'Events', value: 'events' },\n { label: 'Announcements', value: 'announcements' },\n { label: 'Stories', value: 'stories' }\n ]);\n const selectedCategory = ref('all');\n\n // Tags\n const searchTag = ref('');\n const selectedTags = ref([]);\n const availableTags = ref(['featured', 'important', 'trending', 'community', 'official']);\n const filteredTags = computed(() => {\n if (!searchTag.value) return availableTags.value;\n return availableTags.value.filter(tag => \n tag.toLowerCase().includes(searchTag.value.toLowerCase())\n );\n });\n\n // Date Range\n const dateRangeOptions = ref([\n { label: 'All Time', value: 'all' },\n { label: 'Today', value: 'today' },\n { label: 'This Week', value: 'week' },\n { label: 'This Month', value: 'month' },\n { label: 'This Year', value: 'year' }\n ]);\n const selectedDateRange = ref('all');\n const showDatePickerPopup = ref(false);\n const selectedDates = ref(null);\n const tempSelectedDates = ref(null);\n\n // Author\n const showMyPostsOnly = ref(false);\n\n const availableFilters = ref([\n {\n title: 'Category',\n value: 'category',\n type: 'radio',\n options: postCategories.value\n },\n {\n title: 'Status',\n value: 'status',\n type: 'radio',\n options: [\n { label: 'Published', value: 'published' },\n { label: 'Draft', value: 'draft' },\n { label: 'Archived', value: 'archived' }\n ]\n }\n ])\n\n const selectedFilters = ref({\n category: 'all',\n status: 'published'\n })\n\n const selectCategory = (category) => {\n selectedCategory.value = category;\n selectedFilters.value.category = category;\n };\n\n const selectDateRange = (range) => {\n selectedDateRange.value = range;\n const today = new Date();\n \n switch(range) {\n case 'all':\n selectedDates.value = null;\n break;\n case 'today':\n selectedDates.value = {\n start: today,\n end: today\n };\n break;\n case 'week':\n const weekStart = new Date(today);\n weekStart.setDate(today.getDate() - today.getDay());\n selectedDates.value = {\n start: weekStart,\n end: today\n };\n break;\n case 'month':\n const monthStart = new Date(today.getFullYear(), today.getMonth(), 1);\n selectedDates.value = {\n start: monthStart,\n end: today\n };\n break;\n case 'year':\n const yearStart = new Date(today.getFullYear(), 0, 1);\n selectedDates.value = {\n start: yearStart,\n end: today\n };\n break;\n }\n };\n\n const applyDateFilter = () => {\n selectedDates.value = tempSelectedDates.value;\n selectedDateRange.value = 'custom';\n showDatePickerPopup.value = false;\n };\n\n const clearFilters = () => {\n selectedCategory.value = 'all';\n selectedTags.value = [];\n selectedDateRange.value = 'all';\n selectedDates.value = null;\n showMyPostsOnly.value = false;\n searchTag.value = '';\n selectedFilters.value = {\n category: 'all',\n status: 'published'\n };\n };\n\n globals.state.navigation_bar.actions = [{\n component: IconPlus,\n props: {\n fill: \"rgb(var(--main))\" \n },\n condition: () => auth.state.user && auth.state.user._id,\n action: () => route.params._id ? router.push({ name: 'Organization_PostAdd', params: { _id: route.params._id} }) : router.push({ name: 'CreateBlogPost' })\n }]\n\n onMounted(async () => {\n if (route.params._id) {\n await organizations.actions.read({ _id: route.params._id });\n }\n })\n\n onUnmounted(() => {\n globals.state.navigation_bar.actions = [];\n });\n</script>\n\n<style lang=\"scss\">\n</style>"],"names":["useRoute","useRouter","useGlobalMixins","ref","computed","globals.state","IconPlus","auth.state","onMounted","organizations.actions","onUnmounted"],"mappings":"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"}
|