@ozdao/martyrs 0.2.481 → 0.2.482
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/README.md +4 -13
- package/dist/{Media-CKk33U4A.js → Media-JBERcJWj.js} +1 -1
- package/dist/{Media-B1ZP3D7B.cjs → Media-p7Q8ZAQM.cjs} +1 -1
- package/dist/{abac-XF1JVCLI.cjs → abac-6LjoG9u-.cjs} +107 -26
- package/dist/{abac-BuL5pUZ4.js → abac-Cf_9lCSh.js} +107 -26
- package/dist/globals.server.cjs +1 -1
- package/dist/globals.server.js +1 -1
- package/dist/{main-BhAiwmnI.js → main-AtCVQKF9.js} +2855 -4162
- package/dist/main-B-we7C0w.cjs +11 -0
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/Button/Button.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs +28 -7
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +29 -8
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
- package/dist/martyrs/src/components/Chips/{Chips.vue.cjs → Chips.vue2.cjs} +7 -10
- package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Chips/{Chips.vue.js → Chips.vue2.js} +8 -11
- package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Feed/Carousel.vue.cjs +84 -0
- package/dist/martyrs/src/components/Feed/Carousel.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Feed/Carousel.vue.js +84 -0
- package/dist/martyrs/src/components/Feed/Carousel.vue.js.map +1 -0
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +4 -4
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +4 -4
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.cjs +2 -1
- package/dist/martyrs/src/components/Field/Field.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.js +2 -1
- package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
- package/dist/martyrs/src/components/Menu/{Menu.vue.cjs → Menu.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Menu/{Menu.vue.js → Menu.vue2.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +1 -0
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs +203 -151
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js +204 -152
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js.map +1 -1
- package/dist/martyrs/src/components/Popup/{Popup.vue.cjs → Popup.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Popup/Popup.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Popup/{Popup.vue.js → Popup.vue2.js} +2 -2
- package/dist/martyrs/src/components/Popup/{Popup.vue.cjs.map → Popup.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Radio/Radio.vue.cjs +2 -2
- package/dist/martyrs/src/components/Radio/Radio.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Radio/Radio.vue.js +2 -2
- package/dist/martyrs/src/components/Radio/Radio.vue.js.map +1 -1
- package/dist/martyrs/src/components/Skeleton/Skeleton.vue.cjs +4 -3
- package/dist/martyrs/src/components/Skeleton/Skeleton.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Skeleton/Skeleton.vue.js +4 -3
- package/dist/martyrs/src/components/Skeleton/Skeleton.vue.js.map +1 -1
- package/dist/martyrs/src/components/Slider/{Slider.native.vue.cjs → Slider.vue.cjs} +22 -80
- package/dist/martyrs/src/components/Slider/Slider.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Slider/{Slider.native.vue.js → Slider.vue.js} +23 -81
- package/dist/martyrs/src/components/Slider/Slider.vue.js.map +1 -0
- package/dist/martyrs/src/components/Status/Status.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Status/Status.vue.js.map +1 -1
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.cjs +4 -2
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js +4 -2
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -1
- 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 +4 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +22 -149
- 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 +24 -151
- 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 +77 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +77 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +121 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +121 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs +38 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +38 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/router/users.cjs +23 -16
- package/dist/martyrs/src/modules/auth/views/router/users.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/router/users.js +23 -16
- package/dist/martyrs/src/modules/auth/views/router/users.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +3 -3
- package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.js +3 -3
- package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +6 -6
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +5 -4
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +5 -4
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js.map +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/sections/Comment.vue.cjs +92 -62
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js +93 -63
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.cjs +82 -53
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js +82 -53
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs +2 -6
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js +2 -6
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +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/EditEventTickets.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs +3 -9
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js +3 -9
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.js +5 -5
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +11 -11
- package/dist/martyrs/src/modules/globals/globals.client.cjs +2 -0
- package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js +2 -0
- package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/AlertDialog.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/AlertDialog.vue.js +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.cjs.map +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/CardHeader.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs +84 -0
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js +84 -0
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js.map +1 -0
- 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 +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs +17 -0
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.js +17 -0
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.cjs +70 -0
- package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.js +70 -0
- package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.js.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconList.vue.cjs +35 -0
- package/dist/martyrs/src/modules/icons/entities/IconList.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconList.vue.js +35 -0
- package/dist/martyrs/src/modules/icons/entities/IconList.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.cjs +21 -20
- package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.js +21 -20
- package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.cjs +6 -13
- package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.js +6 -13
- package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js +41 -43
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.cjs +8 -8
- package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.js +8 -8
- package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs +50 -51
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +51 -52
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +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 +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +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/OrganizationEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +7 -4
- 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 +18 -15
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs +7 -2
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +8 -3
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs +12 -13
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +13 -14
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs +33 -24
- 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 +36 -27
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.cjs +4 -4
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.cjs +7 -5
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js +7 -5
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +57 -40
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +59 -42
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +104 -84
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +106 -86
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs +145 -0
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js +145 -0
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js.map +1 -0
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs +45 -30
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +50 -35
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.cjs +43 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js +43 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js.map +1 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +131 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +131 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js.map +1 -0
- package/dist/martyrs/src/modules/products/products.client.cjs +3 -3
- package/dist/martyrs/src/modules/products/products.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/products.client.js +3 -3
- package/dist/martyrs/src/modules/products/products.client.js.map +1 -1
- package/dist/martyrs/src/modules/products/store/products.cjs +4 -0
- package/dist/martyrs/src/modules/products/store/products.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/store/products.js +4 -0
- package/dist/martyrs/src/modules/products/store/products.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/organizations.server.cjs +1 -1
- package/dist/organizations.server.js +1 -1
- package/dist/products.server.cjs +111 -34
- package/dist/products.server.js +111 -34
- package/dist/style.css +196 -170
- package/package.json +1 -1
- package/src/.martyrs/chunks.json +325 -0
- package/src/.martyrs/filemap.json +6802 -0
- package/src/.martyrs/semantic-analysis.json +307 -0
- package/src/.martyrs/toc.json +14 -0
- package/src/components/Button/Button.vue +2 -2
- package/src/components/Checkbox/Checkbox.vue +28 -16
- package/src/components/Chips/Chips.vue +4 -4
- package/src/components/Feed/Carousel.vue +72 -0
- package/src/components/Feed/Feed.vue +2 -2
- package/src/components/Field/Field.vue +1 -0
- package/src/components/PhotoViewer/PhotoViewer.vue +307 -220
- package/src/components/Radio/Radio.vue +2 -10
- package/src/components/Skeleton/Skeleton.vue +9 -12
- package/src/components/Slider/Slider.vue +220 -100
- package/src/components/Status/Status.vue +0 -1
- package/src/components/Tooltip/Tooltip.vue +2 -2
- package/src/modules/auth/views/components/pages/Profile.vue +1 -1
- package/src/modules/auth/views/components/pages/ProfileEdit.old.vue +189 -0
- package/src/modules/auth/views/components/pages/ProfileEdit.vue +19 -182
- package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +72 -0
- package/src/modules/auth/views/components/pages/ProfileEditProfile.vue +110 -0
- package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +28 -0
- package/src/modules/auth/views/router/users.js +23 -12
- package/src/modules/community/components/blocks/FooterBlogpost.vue +3 -3
- package/src/modules/community/components/pages/BlogPost.vue +2 -1
- package/src/modules/community/components/sections/Comment.vue +161 -57
- package/src/modules/community/components/sections/Comments.vue +120 -63
- package/src/modules/community/components/sections/HotPosts.vue +7 -7
- package/src/modules/events/components/sections/EventsHot.vue +26 -33
- package/src/modules/globals/controllers/classes/abac/abac.core.js +3 -1
- package/src/modules/globals/controllers/classes/abac/abac.fields.js +126 -42
- package/src/modules/globals/controllers/classes/abac/v2/abac-core-fixed.js +313 -0
- package/src/modules/globals/controllers/classes/abac/v2/abac-express-fixed.js +276 -0
- package/src/modules/globals/controllers/classes/abac/v2/abac-fields-fixed.js +422 -0
- package/src/modules/globals/controllers/classes/abac/v2/abac-main-fixed.js +295 -0
- package/src/modules/globals/controllers/classes/abac/v2/abac-policies-fixed.js +316 -0
- package/src/modules/globals/controllers/classes/abac/v2/abac-ws-fixed.js +237 -0
- package/src/modules/globals/globals.client.js +2 -0
- package/src/modules/globals/views/components/blocks/CardFooter.vue +3 -3
- package/src/modules/globals/views/components/blocks/CardHeader.vue +1 -1
- package/src/modules/globals/views/components/blocks/PopupAuth.vue +66 -0
- package/src/modules/globals/views/mixins/mixins.js +37 -17
- package/src/modules/globals/views/plugins/popup.auth.plugin.js +77 -0
- package/src/modules/icons/entities/IconList.vue +14 -0
- package/src/modules/icons/navigation/IconCheck.vue +1 -3
- package/src/modules/icons/navigation/IconDoubleCheck.vue +1 -3
- package/src/modules/icons/navigation/IconLike.vue +1 -3
- package/src/modules/icons/navigation/IconMute.vue +1 -3
- package/src/modules/icons/navigation/IconPause.vue +1 -3
- package/src/modules/icons/navigation/IconPlay.vue +12 -15
- package/src/modules/icons/navigation/IconRefresh.vue +1 -3
- package/src/modules/icons/navigation/IconShuffle.vue +11 -26
- package/src/modules/icons/navigation/IconUnMute.vue +1 -3
- package/src/modules/icons/navigation/IconVolume.vue +1 -3
- package/src/modules/icons/pages/IconsPage.vue +0 -2
- package/src/modules/music/components/pages/AlbumDetail.vue +2 -2
- package/src/modules/music/components/pages/PlaylistDetail.vue +2 -2
- package/src/modules/music/components/pages/TrackDetail.vue +1 -1
- package/src/modules/music/components/player/MusicPlayer.vue +2 -2
- package/src/modules/notifications/components/blocks/NotificationItem.vue +6 -51
- package/src/modules/notifications/components/elements/NotificationBadge.vue +53 -97
- package/src/modules/organizations/configs/navigation.organization.config.js +8 -4
- package/src/modules/products/components/blocks/CardProduct.vue +8 -2
- package/src/modules/products/components/blocks/ProductDiscounts.vue +3 -4
- package/src/modules/products/components/blocks/ProductImages.vue +32 -23
- package/src/modules/products/components/blocks/ProductVariants.vue +6 -4
- package/src/modules/products/components/elements/Price.vue +3 -3
- package/src/modules/products/components/pages/Product.vue +32 -26
- package/src/modules/products/components/pages/ProductEdit.vue +95 -72
- package/src/modules/products/components/sections/EditRecommended.vue +131 -0
- package/src/modules/products/components/sections/ProductConfigurator.vue +35 -21
- package/src/modules/products/components/sections/ProductsPopular.vue +44 -0
- package/src/modules/products/components/sections/ProductsRecommended.vue +134 -0
- package/src/modules/products/controllers/configs/products.lookup.config.js +20 -15
- package/src/modules/products/controllers/products.controller.js +7 -22
- package/src/modules/products/models/category.model.js +28 -1
- package/src/modules/products/models/leftover.model.js +32 -0
- package/src/modules/products/models/product.model.js +37 -1
- package/src/modules/products/models/variant.model.js +35 -0
- package/src/modules/products/products.client.js +3 -3
- package/src/modules/products/routes/products.routes.js +1 -0
- package/src/modules/products/store/products.js +4 -0
- package/src/styles/base/all.scss +0 -38
- package/src/styles/base/shadow_transitions_hover_refactor.scss +20 -51
- package/src/styles/config.scss +51 -1
- package/dist/main-C75EcBpE.cjs +0 -11
- package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.js.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +0 -1
- package/dist/martyrs/src/components/Popup/Popup.vue.js.map +0 -1
- package/dist/martyrs/src/components/Slider/Slider.native.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Slider/Slider.native.vue.js.map +0 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +0 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +0 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.cjs +0 -34
- package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.js +0 -34
- package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs +0 -124
- package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js +0 -124
- package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js.map +0 -1
- package/src/components/Slider/Slider.native.vue +0 -313
- package/src/modules/products/components/sections/PopularProducts.vue +0 -156
|
@@ -1,68 +1,77 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<div v-if="showReplyForm" class="mn-t-small bg-white pd-thin radius-regular">
|
|
2
|
+
<div class="comment-wrapper">
|
|
3
|
+
<div class="comment-content ">
|
|
4
|
+
<CardHeader
|
|
5
|
+
class="mn-b-thin mn-b-thin w-100"
|
|
6
|
+
:entity="comment"
|
|
7
|
+
:entityType="'comment'"
|
|
8
|
+
:user="owner"
|
|
9
|
+
:owner="{target: comment.owner, type: 'user'}"
|
|
10
|
+
:creator="{target: comment.owner, type: 'user'}"
|
|
11
|
+
:date="comment.createdAt"
|
|
12
|
+
/>
|
|
13
|
+
<div class="pd-t-zero">
|
|
14
|
+
<p class="p-medium">{{ comment.content }}</p>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="mn-t-thin flex-v-center flex-nowrap flex gap-small">
|
|
17
|
+
<button
|
|
18
|
+
v-if="totalReplies > 0"
|
|
19
|
+
@click="toggleChildren"
|
|
20
|
+
class="t-second cursor-pointer t-medium font-second"
|
|
21
|
+
>
|
|
22
|
+
{{ isExpanded ? 'Hide' : totalReplies + (totalReplies === 1 ? ' reply' : ' replies') }}
|
|
23
|
+
</button>
|
|
24
|
+
<button
|
|
25
|
+
v-if="owner"
|
|
26
|
+
class="font-second cursor-pointer t-transp t-medium"
|
|
27
|
+
@click="showReplyForm = true"
|
|
28
|
+
>
|
|
29
|
+
Reply
|
|
30
|
+
</button>
|
|
31
|
+
</div>
|
|
32
|
+
<div v-if="showReplyForm" class="mn-t-small bg-white pd-thin radius-regular">
|
|
37
33
|
<textarea class="w-100" v-model="replyContent"></textarea>
|
|
38
34
|
<div class="mn-l-auto gap-thin flex-nowrap flex">
|
|
39
|
-
<button class="bg-grey-transp-25 pd-r-regular pd-l-regular pd-thin button" @click="
|
|
35
|
+
<button class="bg-grey-transp-25 pd-r-regular pd-l-regular pd-thin button" @click="showReplyForm = false">Cancel</button>
|
|
40
36
|
<button class="bg-main pd-r-regular pd-l-regular pd-thin button" @click="submitReply">Send</button>
|
|
41
37
|
</div>
|
|
42
38
|
</div>
|
|
43
|
-
|
|
44
|
-
<div v-if="isExpanded && comment.children && comment.children.length" class="br-solid br-l br-grey-transp-25">
|
|
45
|
-
<Comment
|
|
46
|
-
v-for="childComment in comment.children"
|
|
47
|
-
:key="childComment._id"
|
|
48
|
-
:comment="childComment"
|
|
49
|
-
:target="target"
|
|
50
|
-
:owner="owner"
|
|
51
|
-
@reply="handleReply"
|
|
52
|
-
@load-more="handleLoadMore"
|
|
53
|
-
class="mn-l-medium mn-t-small "
|
|
54
|
-
/>
|
|
55
39
|
</div>
|
|
56
|
-
|
|
40
|
+
|
|
41
|
+
<transition name="collapse">
|
|
42
|
+
<div v-if="isExpanded && comment.children && comment.children.length" class="mn-t-regular comment-children">
|
|
43
|
+
<div
|
|
44
|
+
v-for="(childComment, index) in comment.children"
|
|
45
|
+
:key="childComment._id"
|
|
46
|
+
class="child-wrapper"
|
|
47
|
+
>
|
|
48
|
+
<!-- Кликабельная область с линией -->
|
|
49
|
+
<div
|
|
50
|
+
@click="toggleChildren"
|
|
51
|
+
@mouseenter="highlightLevel($event, true)"
|
|
52
|
+
@mouseleave="highlightLevel($event, false)"
|
|
53
|
+
class="tree-line cursor-pointer"
|
|
54
|
+
:class="{ 'last-child': index === comment.children.length - 1 }"
|
|
55
|
+
></div>
|
|
56
|
+
|
|
57
|
+
<Comment
|
|
58
|
+
:comment="childComment"
|
|
59
|
+
:target="target"
|
|
60
|
+
:owner="owner"
|
|
61
|
+
@reply="handleReply"
|
|
62
|
+
@load-more="handleLoadMore"
|
|
63
|
+
class="child-comment mn-b-regular"
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</transition>
|
|
57
68
|
</div>
|
|
58
69
|
</template>
|
|
59
70
|
|
|
60
71
|
<script setup>
|
|
61
72
|
import { ref, computed } from 'vue';
|
|
62
|
-
|
|
63
73
|
import Comment from './Comment.vue';
|
|
64
|
-
|
|
65
|
-
import CardHeader from '@martyrs/src/modules/globals/views/components/blocks/CardHeader.vue'
|
|
74
|
+
import CardHeader from '@martyrs/src/modules/globals/views/components/blocks/CardHeader.vue'
|
|
66
75
|
|
|
67
76
|
const props = defineProps({
|
|
68
77
|
comment: {
|
|
@@ -85,6 +94,17 @@ const showReplyForm = ref(false);
|
|
|
85
94
|
const replyContent = ref('');
|
|
86
95
|
const isExpanded = ref(shouldBeExpanded(props.comment.depth))
|
|
87
96
|
|
|
97
|
+
|
|
98
|
+
const childrenContainer = ref(null)
|
|
99
|
+
|
|
100
|
+
function highlightLevel(event, state) {
|
|
101
|
+
const wrapper = event.currentTarget?.parentElement?.parentElement;
|
|
102
|
+
if (!wrapper) return;
|
|
103
|
+
|
|
104
|
+
const lines = wrapper.querySelectorAll(':scope > .child-wrapper > .tree-line');
|
|
105
|
+
lines.forEach(line => line.classList.toggle('hovered', state));
|
|
106
|
+
}
|
|
107
|
+
|
|
88
108
|
function shouldBeExpanded(depth) {
|
|
89
109
|
return depth % 3 < 2
|
|
90
110
|
}
|
|
@@ -113,11 +133,95 @@ const handleReply = (parentId, content) => {
|
|
|
113
133
|
emit('reply', parentId, content);
|
|
114
134
|
};
|
|
115
135
|
|
|
116
|
-
const loadMoreChildren = () => {
|
|
117
|
-
emit('load-more', props.comment._id, props.comment.depth + 1);
|
|
118
|
-
};
|
|
119
|
-
|
|
120
136
|
const handleLoadMore = (commentId, depth) => {
|
|
121
137
|
emit('load-more', commentId, depth);
|
|
122
138
|
};
|
|
123
|
-
</script>
|
|
139
|
+
</script>
|
|
140
|
+
|
|
141
|
+
<style lang="scss" scoped>
|
|
142
|
+
.comment-children {
|
|
143
|
+
margin-top: 1rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.child-wrapper {
|
|
147
|
+
position: relative;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.child-comment {
|
|
151
|
+
padding-left: 1.5rem;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.tree-line {
|
|
155
|
+
position: absolute;
|
|
156
|
+
left: calc(-1rem + 2px);
|
|
157
|
+
top: -1rem;
|
|
158
|
+
width: 2rem;
|
|
159
|
+
height: calc(100% + 2rem);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.tree-line::before {
|
|
163
|
+
content: '';
|
|
164
|
+
position: absolute;
|
|
165
|
+
left: 1rem;
|
|
166
|
+
top: 0;
|
|
167
|
+
width: 2px;
|
|
168
|
+
height: 100%;
|
|
169
|
+
border-left: 1px solid rgba(var(--grey), 1);
|
|
170
|
+
transition: background 0.2s ease;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.tree-line::after {
|
|
174
|
+
content: '';
|
|
175
|
+
position: absolute;
|
|
176
|
+
left: 1rem;
|
|
177
|
+
top: 2rem;
|
|
178
|
+
width: 1rem;
|
|
179
|
+
height: 2px;
|
|
180
|
+
border-bottom: 1px solid rgba(var(--grey), 1);
|
|
181
|
+
transition: background 0.2s ease;
|
|
182
|
+
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.child-wrapper {
|
|
186
|
+
&:last-child {
|
|
187
|
+
.tree-line::after {
|
|
188
|
+
display: none;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.tree-line.last-child::before {
|
|
194
|
+
height: 2rem;
|
|
195
|
+
border-bottom-left-radius: 0.5rem;
|
|
196
|
+
border-left: 1px solid rgba(var(--grey), 1);
|
|
197
|
+
border-bottom: 1px solid rgba(var(--grey), 1);
|
|
198
|
+
background: none;
|
|
199
|
+
width: 1rem;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
.tree-line.hovered::before,
|
|
204
|
+
.tree-line.hovered::after {
|
|
205
|
+
border-color: rgba(var(--second), 1);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.tree-line.last-child.hovered::before {
|
|
209
|
+
border-color: rgba(var(--second), 1);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* Анимация */
|
|
213
|
+
.collapse-enter-active,
|
|
214
|
+
.collapse-leave-active {
|
|
215
|
+
transition: all 0.3s ease;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.collapse-enter-from {
|
|
219
|
+
opacity: 0;
|
|
220
|
+
transform: translateY(-0.5rem);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.collapse-leave-to {
|
|
224
|
+
opacity: 0;
|
|
225
|
+
transform: translateY(-0.5rem);
|
|
226
|
+
}
|
|
227
|
+
</style>
|
|
@@ -1,50 +1,72 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="comments">
|
|
3
3
|
<div class="mn-b-medium">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
|
|
5
|
+
<h3 class="mn-b-regular">{{ comments.length }} comments</h3>
|
|
6
|
+
|
|
7
|
+
<div class="mn-b-small">
|
|
8
|
+
<form @submit.prevent="handleCommentSubmit" class="bg-white radius-medium pd-medium">
|
|
9
|
+
<textarea
|
|
10
|
+
v-model="commentContent"
|
|
11
|
+
placeholder="Enter your comment"
|
|
12
|
+
class="p-big w-100"
|
|
13
|
+
style="resize: none;"
|
|
14
|
+
></textarea>
|
|
15
|
+
<button type="submit" class="mn-l-auto bg-main pd-r-regular pd-l-regular pd-thin button">
|
|
16
|
+
Send
|
|
17
|
+
</button>
|
|
14
18
|
</form>
|
|
15
19
|
</div>
|
|
16
20
|
</div>
|
|
17
21
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
<Comment
|
|
23
|
+
v-for="comment in comments"
|
|
24
|
+
:key="comment._id"
|
|
25
|
+
:comment="comment"
|
|
26
|
+
:target="target"
|
|
27
|
+
:type="type"
|
|
28
|
+
:owner="owner"
|
|
29
|
+
@reply="handleReply"
|
|
30
|
+
@load-more="loadMoreChildren"
|
|
31
|
+
class="comment mn-b-medium"
|
|
32
|
+
/>
|
|
29
33
|
</div>
|
|
30
34
|
</template>
|
|
31
35
|
|
|
32
|
-
<script setup
|
|
33
|
-
import { ref } from 'vue';
|
|
34
|
-
import
|
|
36
|
+
<script setup>
|
|
37
|
+
import { ref, onMounted, getCurrentInstance } from 'vue';
|
|
38
|
+
import { useRoute } from 'vue-router';
|
|
39
|
+
import { Preferences } from '@capacitor/preferences';
|
|
35
40
|
|
|
36
41
|
import Comment from './Comment.vue';
|
|
42
|
+
import $axios from '@martyrs/src/modules/globals/views/utils/axios-instance.js';
|
|
37
43
|
|
|
38
44
|
const props = defineProps([
|
|
39
45
|
'target',
|
|
40
46
|
'owner',
|
|
41
47
|
'type'
|
|
42
|
-
])
|
|
48
|
+
]);
|
|
49
|
+
|
|
50
|
+
const route = useRoute();
|
|
51
|
+
const { proxy } = getCurrentInstance();
|
|
43
52
|
|
|
44
|
-
const $axios = axios.create({ baseURL: process.env.API_URL });
|
|
45
53
|
const comments = ref([]);
|
|
46
54
|
const commentContent = ref('');
|
|
47
55
|
|
|
56
|
+
const DRAFT_KEY = `comment_draft_${props.type}_${props.target}`;
|
|
57
|
+
|
|
58
|
+
// Загружаем сохраненный черновик при монтировании
|
|
59
|
+
onMounted(async () => {
|
|
60
|
+
// Проверяем наличие черновика
|
|
61
|
+
const { value } = await Preferences.get({ key: DRAFT_KEY });
|
|
62
|
+
|
|
63
|
+
if (value) {
|
|
64
|
+
commentContent.value = value;
|
|
65
|
+
// Очищаем черновик после загрузки
|
|
66
|
+
await Preferences.remove({ key: DRAFT_KEY });
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
48
70
|
const fetchComments = async () => {
|
|
49
71
|
try {
|
|
50
72
|
const response = await $axios.get('/comments/read', {
|
|
@@ -62,7 +84,78 @@ const fetchComments = async () => {
|
|
|
62
84
|
}
|
|
63
85
|
};
|
|
64
86
|
|
|
87
|
+
const handleCommentSubmit = async () => {
|
|
88
|
+
if (!commentContent.value) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Проверяем авторизацию
|
|
93
|
+
if (!props.owner) {
|
|
94
|
+
// Сохраняем черновик
|
|
95
|
+
await Preferences.set({
|
|
96
|
+
key: DRAFT_KEY,
|
|
97
|
+
value: commentContent.value
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
// Показываем auth popup
|
|
101
|
+
await proxy.$showAuth({
|
|
102
|
+
title: 'Join the discussion',
|
|
103
|
+
subtitle: 'To comment on this post, please sign in or create an account.',
|
|
104
|
+
returnUrl: route.fullPath
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Отправляем комментарий
|
|
111
|
+
await submitComment();
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const submitComment = async () => {
|
|
115
|
+
try {
|
|
116
|
+
const response = await $axios.post('/comments/create', {
|
|
117
|
+
target: props.target,
|
|
118
|
+
user: props.owner,
|
|
119
|
+
type: props.type,
|
|
120
|
+
content: commentContent.value,
|
|
121
|
+
creator: {
|
|
122
|
+
target: props.owner,
|
|
123
|
+
type: 'User',
|
|
124
|
+
hidden: false
|
|
125
|
+
},
|
|
126
|
+
owner: {
|
|
127
|
+
target: props.owner,
|
|
128
|
+
type: 'User'
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
response.data.owner = props.owner;
|
|
133
|
+
comments.value.push(response.data);
|
|
134
|
+
|
|
135
|
+
commentContent.value = '';
|
|
136
|
+
} catch (error) {
|
|
137
|
+
console.error(error);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
|
|
65
141
|
const handleReply = async (parentId, content) => {
|
|
142
|
+
// Проверяем авторизацию для ответов
|
|
143
|
+
if (!props.owner) {
|
|
144
|
+
// Сохраняем черновик ответа
|
|
145
|
+
await Preferences.set({
|
|
146
|
+
key: `${DRAFT_KEY}_reply_${parentId}`,
|
|
147
|
+
value: content
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
await proxy.$showAuth({
|
|
151
|
+
title: 'Join the discussion',
|
|
152
|
+
subtitle: 'To reply to this comment, please sign in or create an account.',
|
|
153
|
+
returnUrl: route.fullPath
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
|
|
66
159
|
try {
|
|
67
160
|
const response = await $axios.post('/comments/create', {
|
|
68
161
|
content,
|
|
@@ -83,8 +176,6 @@ const handleReply = async (parentId, content) => {
|
|
|
83
176
|
});
|
|
84
177
|
|
|
85
178
|
const newComment = response.data;
|
|
86
|
-
|
|
87
|
-
// Обновляем дерево комментариев
|
|
88
179
|
updateCommentTree(comments.value, parentId, newComment);
|
|
89
180
|
} catch (error) {
|
|
90
181
|
console.error('Error posting reply:', error);
|
|
@@ -104,7 +195,6 @@ const loadMoreChildren = async (commentId, depth) => {
|
|
|
104
195
|
}
|
|
105
196
|
});
|
|
106
197
|
|
|
107
|
-
// Обновляем дерево комментариев
|
|
108
198
|
updateCommentTree(comments.value, commentId, response.data, response.data.hasMore, true);
|
|
109
199
|
} catch (error) {
|
|
110
200
|
console.error('Error loading more comments:', error);
|
|
@@ -115,11 +205,9 @@ const updateCommentTree = (comments, parentId, newData, hasMore, isLoadMore = fa
|
|
|
115
205
|
for (let i = 0; i < comments.length; i++) {
|
|
116
206
|
if (comments[i]._id === parentId) {
|
|
117
207
|
if (isLoadMore) {
|
|
118
|
-
// Для загрузки дополнительных комментариев, добавляем их к существующим
|
|
119
208
|
comments[i].children = [...comments[i].children, ...newData];
|
|
120
209
|
comments[i].hasMore = hasMore;
|
|
121
210
|
} else {
|
|
122
|
-
// Для нового комментария, добавляем его в начало списка дочерних
|
|
123
211
|
comments[i].children.push(newData);
|
|
124
212
|
}
|
|
125
213
|
return true;
|
|
@@ -131,36 +219,5 @@ const updateCommentTree = (comments, parentId, newData, hasMore, isLoadMore = fa
|
|
|
131
219
|
return false;
|
|
132
220
|
};
|
|
133
221
|
|
|
134
|
-
|
|
135
|
-
const submitComment = async () => {
|
|
136
|
-
if (!commentContent.value) {
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
try {
|
|
140
|
-
const response = await $axios.post('/comments/create', {
|
|
141
|
-
target: props.target,
|
|
142
|
-
user: props.owner,
|
|
143
|
-
type: props.type,
|
|
144
|
-
content: commentContent.value,
|
|
145
|
-
creator: {
|
|
146
|
-
target: props.owner,
|
|
147
|
-
type: 'User',
|
|
148
|
-
hidden: false
|
|
149
|
-
},
|
|
150
|
-
owner: {
|
|
151
|
-
target: props.owner,
|
|
152
|
-
type: 'User'
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
response.data.owner = props.owner;
|
|
157
|
-
comments.value.push(response.data);
|
|
158
|
-
|
|
159
|
-
commentContent.value = '';
|
|
160
|
-
} catch (error) {
|
|
161
|
-
console.error(error);
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
|
|
165
222
|
fetchComments();
|
|
166
|
-
</script>
|
|
223
|
+
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<Carousel
|
|
3
3
|
:store="{
|
|
4
4
|
read: (options) => blog.read({
|
|
5
5
|
skip,
|
|
@@ -29,13 +29,12 @@
|
|
|
29
29
|
:hideDescription="true"
|
|
30
30
|
class="bg-white flex flex-column radius-medium h-35r"
|
|
31
31
|
/>
|
|
32
|
-
</
|
|
32
|
+
</Carousel>
|
|
33
33
|
</template>
|
|
34
34
|
|
|
35
35
|
<script setup>
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
38
|
-
import Slider from '@martyrs/src/components/Slider/Slider.native.vue'
|
|
36
|
+
import { defineProps } from 'vue'
|
|
37
|
+
import Carousel from '@martyrs/src/components/Feed/Carousel.vue'
|
|
39
38
|
import CardBlogpost from '@martyrs/src/modules/community/components/blocks/CardBlogpost.vue'
|
|
40
39
|
import * as blog from '@martyrs/src/modules/community/store/blogposts.js'
|
|
41
40
|
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
|
|
@@ -64,11 +63,12 @@ const props = defineProps({
|
|
|
64
63
|
</script>
|
|
65
64
|
|
|
66
65
|
<style lang="scss">
|
|
67
|
-
.slider-hotpost .carousel__slide {
|
|
66
|
+
.slider-hotpost :deep(.carousel__slide ) {
|
|
68
67
|
flex: 0 0 25%;
|
|
69
68
|
}
|
|
69
|
+
|
|
70
70
|
@media screen and (max-width: 1025px) {
|
|
71
|
-
.slider-hotpost .carousel__slide {
|
|
71
|
+
.slider-hotpost :deep(.carousel__slide ) {
|
|
72
72
|
flex: 0 0 75%;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<Carousel
|
|
3
3
|
:store="{
|
|
4
4
|
read: (options) => events.read({
|
|
5
5
|
skip,
|
|
@@ -13,45 +13,38 @@
|
|
|
13
13
|
description: 'Currently, there are no featured events available.'
|
|
14
14
|
}
|
|
15
15
|
}"
|
|
16
|
-
v-slot="{
|
|
17
|
-
item
|
|
18
|
-
}"
|
|
19
16
|
class="slider-hotpost flex-child-default"
|
|
20
17
|
>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</span>
|
|
41
|
-
</
|
|
42
|
-
</
|
|
43
|
-
</
|
|
44
|
-
|
|
45
|
-
</SliderNative>
|
|
18
|
+
<template v-slot="{ item }">
|
|
19
|
+
<router-link
|
|
20
|
+
:to="{name: 'Event', params: {url: item.url}}"
|
|
21
|
+
class="cursor-pointer pos-relative flex flex-justify-end flex-column h-25r bg-semi radius-medium o-hidden pd-medium t-white bg-dark"
|
|
22
|
+
>
|
|
23
|
+
<Media
|
|
24
|
+
:url="(FILE_SERVER_URL || '') + item.cover"
|
|
25
|
+
class="pos-absolute pos-t-0 pos-r-0 z-index-1 w-100 h-100 object-fit-cover bg-light"
|
|
26
|
+
/>
|
|
27
|
+
<div class="pos-relative z-index-2">
|
|
28
|
+
<h3
|
|
29
|
+
class="mn-b-small"
|
|
30
|
+
>
|
|
31
|
+
{{ item.name }}
|
|
32
|
+
</h3>
|
|
33
|
+
<span v-if="item.date?.start" class="mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-white">
|
|
34
|
+
<span class="t-semi t-black" >
|
|
35
|
+
{{item.location}} / {{formatDate(item.date.start, { language: $i18n.locale, monthName: true, })}}
|
|
36
|
+
</span>
|
|
37
|
+
</span>
|
|
38
|
+
</div>
|
|
39
|
+
</router-link>
|
|
40
|
+
</template>
|
|
41
|
+
</Carousel>
|
|
46
42
|
</template>
|
|
47
43
|
|
|
48
44
|
<script setup>
|
|
49
45
|
import { ref, onMounted, defineProps } from 'vue'
|
|
50
|
-
|
|
51
|
-
import Feed from '@martyrs/src/components/Feed/Feed.vue'
|
|
52
|
-
import SliderNative from '@martyrs/src/components/Slider/Slider.native.vue'
|
|
46
|
+
import Carousel from '@martyrs/src/components/Feed/Carousel.vue'
|
|
53
47
|
import Media from '@martyrs/src/components/Media/Media.vue'
|
|
54
|
-
|
|
55
48
|
import * as events from '@martyrs/src/modules/events/store/events.js';
|
|
56
49
|
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
|
|
57
50
|
|
|
@@ -16,8 +16,10 @@ export default class ABACCore {
|
|
|
16
16
|
req: null,
|
|
17
17
|
socket: null,
|
|
18
18
|
params: {},
|
|
19
|
-
_cache: new Map(),
|
|
19
|
+
_cache: new Map(),
|
|
20
20
|
_abac: this.abac,
|
|
21
|
+
// Добавляем флаг для пропуска field policies (например, для админов)
|
|
22
|
+
skipFieldPolicies: input.skipFieldPolicies || false,
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
if (input.req) {
|