@ozdao/martyrs 0.2.481 → 0.2.483
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-C57G7rnE.js} +1 -1
- package/dist/{Media-B1ZP3D7B.cjs → Media-DjnpKS62.cjs} +1 -1
- package/dist/_virtual/_commonjsHelpers.cjs +2 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +2 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/index2.cjs +8 -0
- package/dist/_virtual/index2.cjs.map +1 -0
- package/dist/_virtual/index2.js +8 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.cjs +5 -0
- package/dist/_virtual/index3.cjs.map +1 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/index3.js.map +1 -0
- 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-CXQqAVVb.js} +3036 -4278
- package/dist/main-De5X_RUk.cjs +11 -0
- package/dist/martyrs/src/components/Button/{Button.vue2.cjs → Button.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Button/{Button.vue2.js.map → Button.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Button/{Button.vue2.js → Button.vue.js} +2 -2
- package/dist/martyrs/src/components/Button/Button.vue.js.map +1 -0
- 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 +5 -8
- package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.js +6 -9
- package/dist/martyrs/src/components/Chips/Chips.vue.js.map +1 -1
- 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/FieldPhone/FieldPhone.vue.cjs +141 -113
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.js +142 -114
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.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/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 +11 -5
- package/dist/martyrs/src/components/Status/Status.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Status/Status.vue.js +13 -7
- 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/layouts/Auth.vue.cjs +6 -4
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +6 -4
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +4 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +5 -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 +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/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +17 -39
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +18 -40
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterCode.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterCode.json.js +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterPassword.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterPassword.json.js +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/ResetPassword.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/ResetPassword.json.js +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignIn.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignIn.json.js +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignUp.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignUp.json.js +1 -1
- 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/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 +4 -3
- 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 +4 -3
- 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/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +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/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.js +4 -4
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +9 -9
- package/dist/martyrs/src/modules/globals/globals.client.cjs +13 -0
- package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js +13 -0
- package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
- package/dist/martyrs/src/modules/globals/locales/en.cjs +24 -0
- package/dist/martyrs/src/modules/globals/locales/en.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/locales/en.js +24 -0
- package/dist/martyrs/src/modules/globals/locales/en.js.map +1 -0
- package/dist/martyrs/src/modules/globals/locales/ru.cjs +24 -0
- package/dist/martyrs/src/modules/globals/locales/ru.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/locales/ru.js +24 -0
- package/dist/martyrs/src/modules/globals/locales/ru.js.map +1 -0
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +71 -0
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +71 -0
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- 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 +2 -2
- 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 +50 -44
- 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 +50 -44
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/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/globals/views/store/globals.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/store/globals.js.map +1 -1
- 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/marketplace/views/components/layouts/Marketplace.vue.cjs +52 -58
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +52 -58
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.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/OrderCreate.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.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/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/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 +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/Documents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +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 +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/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/PageEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/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 +11 -12
- 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 +12 -13
- 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 +32 -23
- 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 +35 -26
- 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/Categories.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- 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 +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 +105 -85
- 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 +107 -87
- 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/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 +46 -31
- 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 +44 -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 +44 -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/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/martyrs/src/modules/products/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/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/pages/Map.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/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 +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.js +1 -1
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/node_modules/lodash.merge/index.cjs +689 -0
- package/dist/node_modules/lodash.merge/index.cjs.map +1 -0
- package/dist/node_modules/lodash.merge/index.js +689 -0
- package/dist/node_modules/lodash.merge/index.js.map +1 -0
- 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 +239 -235
- 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/FieldPhone/FieldPhone.vue +337 -238
- 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 +10 -8
- package/src/components/Tooltip/Tooltip.vue +2 -2
- package/src/modules/auth/views/components/layouts/Auth.vue +1 -1
- 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/components/sections/SliderFeatures.vue +13 -79
- package/src/modules/auth/views/localization/EnterCode.json +2 -2
- package/src/modules/auth/views/localization/EnterPassword.json +2 -2
- package/src/modules/auth/views/localization/ResetPassword.json +2 -2
- package/src/modules/auth/views/localization/SignIn.json +2 -2
- package/src/modules/auth/views/localization/SignUp.json +2 -2
- 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 +17 -1
- package/src/modules/globals/locales/en.js +21 -0
- package/src/modules/globals/locales/index.js +8 -0
- package/src/modules/globals/locales/ru.js +21 -0
- package/src/modules/globals/views/classes/globals.i18n.js +84 -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/components/layouts/Client.vue +43 -40
- package/src/modules/globals/views/components/partials/Footer.vue +162 -162
- 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/globals/views/store/globals.js +0 -40
- 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/marketplace/views/components/layouts/Marketplace.vue +34 -38
- 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 +45 -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/modules/wallet/views/localization/wallet.json +2 -2
- 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/Button/Button.vue2.cjs.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/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/dist/node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +0 -194
- package/dist/node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +0 -194
- package/dist/node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +0 -43
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -43
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +0 -43
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +0 -43
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +0 -1630
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1630
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js.map +0 -1
- package/src/components/Slider/Slider.native.vue +0 -313
- package/src/modules/products/components/sections/PopularProducts.vue +0 -156
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
// @martyrs/src/modules/globals/controllers/classes/globals.abac.js
|
|
2
|
+
import Cache from '@martyrs/src/modules/globals/controllers/classes/globals.cache.js';
|
|
3
|
+
import Logger from '@martyrs/src/modules/globals/controllers/classes/globals.logger.js';
|
|
4
|
+
|
|
5
|
+
import ABACCore from './abac/abac.core.js';
|
|
6
|
+
import ABACPolicies from './abac/abac.policies.js';
|
|
7
|
+
import ABACFields from './abac/abac.fields.js';
|
|
8
|
+
|
|
9
|
+
import ABACExpressAdapter from './abac/abac.adapter.express.js';
|
|
10
|
+
import ABACWebSocketAdapter from './abac/abac.adapter.ws.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @typedef {Object} ABACOptions
|
|
14
|
+
* @property {boolean} [strictMode=false] - Строгий режим (undefined = deny)
|
|
15
|
+
* @property {boolean} [defaultDeny=false] - Запрет по умолчанию
|
|
16
|
+
* @property {string} [serviceKey] - Ключ для сервисных запросов
|
|
17
|
+
* @property {boolean} [enableAudit=true] - Включить аудит
|
|
18
|
+
* @property {boolean} [cacheEnabled=true] - Включить кэширование
|
|
19
|
+
* @property {number} [cacheTTL=300] - TTL кэша в секундах
|
|
20
|
+
* @property {number} [concurrencyLimit=10] - Лимит параллельных политик
|
|
21
|
+
* @property {Object} [logger] - Кастомный логгер
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @typedef {Object} ABACContext
|
|
26
|
+
* @property {string|null} user - ID пользователя
|
|
27
|
+
* @property {string} action - Действие (read, create, update, delete, etc)
|
|
28
|
+
* @property {string} resource - Тип ресурса
|
|
29
|
+
* @property {Object} [currentResource] - Загруженный ресурс
|
|
30
|
+
* @property {string} [resourceId] - ID ресурса
|
|
31
|
+
* @property {Object} data - Данные запроса
|
|
32
|
+
* @property {Object} [data.body] - Body запроса (Express)
|
|
33
|
+
* @property {Object} [data.query] - Query параметры (Express)
|
|
34
|
+
* @property {Object} [data.params] - Route параметры (Express)
|
|
35
|
+
* @property {Object} [req] - Express request
|
|
36
|
+
* @property {Object} [socket] - WebSocket соединение
|
|
37
|
+
* @property {Object} [params] - Route параметры
|
|
38
|
+
* @property {boolean} [skipFieldPolicies=false] - Пропустить проверку полей
|
|
39
|
+
* @property {Object} [options] - Дополнительные опции
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @typedef {Object} ABACResult
|
|
44
|
+
* @property {boolean} allow - Разрешен ли доступ
|
|
45
|
+
* @property {string} reason - Причина решения
|
|
46
|
+
* @property {Array} [policies] - Примененные политики
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @typedef {Object} FieldsResult
|
|
51
|
+
* @property {Object} allowed - Разрешенные данные
|
|
52
|
+
* @property {Array} denied - Запрещенные поля
|
|
53
|
+
* @property {Array} errors - Ошибки валидации
|
|
54
|
+
* @property {Object} transformed - Трансформированные данные
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
class GlobalABAC {
|
|
58
|
+
constructor(db, options = {}) {
|
|
59
|
+
this.db = db;
|
|
60
|
+
|
|
61
|
+
/** @type {ABACOptions} */
|
|
62
|
+
this.options = {
|
|
63
|
+
strictMode: false,
|
|
64
|
+
defaultDeny: false,
|
|
65
|
+
serviceKey: process.env.SERVICE_KEY,
|
|
66
|
+
enableAudit: true,
|
|
67
|
+
cacheEnabled: true,
|
|
68
|
+
cacheTTL: 300,
|
|
69
|
+
concurrencyLimit: 10,
|
|
70
|
+
...options,
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// Инициализация компонентов
|
|
74
|
+
this.cache = new Cache({ ttlSeconds: this.options.cacheTTL });
|
|
75
|
+
this.logger = this.options.logger || new Logger(db);
|
|
76
|
+
|
|
77
|
+
// Инициализация модулей
|
|
78
|
+
this.core = new ABACCore(this);
|
|
79
|
+
this.policies = new ABACPolicies(this);
|
|
80
|
+
this.fields = new ABACFields(this);
|
|
81
|
+
this.express = new ABACExpressAdapter(this);
|
|
82
|
+
this.websocket = new ABACWebSocketAdapter(this);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Регистрация глобальной политики
|
|
87
|
+
* @param {string} name - Имя политики
|
|
88
|
+
* @param {Function} policyFn - Функция политики (context) => boolean|{allow, force, reason}
|
|
89
|
+
* @param {Object} [metadata] - Метаданные политики
|
|
90
|
+
* @param {string} [metadata.type='dynamic'] - Тип (static|dynamic)
|
|
91
|
+
* @param {number} [metadata.priority=0] - Приоритет
|
|
92
|
+
* @returns {GlobalABAC}
|
|
93
|
+
*/
|
|
94
|
+
registerGlobalPolicy(name, policyFn, metadata = {}) {
|
|
95
|
+
return this.policies.registerGlobalPolicy(name, policyFn, metadata);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Регистрация политики для ресурса
|
|
100
|
+
* @param {string} resourceName - Имя ресурса
|
|
101
|
+
* @param {Function} policyFn - Функция политики
|
|
102
|
+
* @param {Object} [options] - Опции
|
|
103
|
+
* @param {string} [options.modelName] - Имя модели в БД
|
|
104
|
+
* @returns {GlobalABAC}
|
|
105
|
+
*/
|
|
106
|
+
registerResourcePolicy(resourceName, policyFn, options = {}) {
|
|
107
|
+
return this.policies.registerResourcePolicy(resourceName, policyFn, options);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Регистрация политики полей
|
|
112
|
+
* @param {string} resourceName - Имя ресурса
|
|
113
|
+
* @param {Object} config - Конфигурация полей
|
|
114
|
+
* @returns {GlobalABAC}
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* abac.registerFieldsPolicy('user', {
|
|
118
|
+
* 'email': { access: 'deny', actions: ['update'] },
|
|
119
|
+
* 'password': { access: 'deny', actions: '*', rule: 'remove' },
|
|
120
|
+
* 'profile.*': {
|
|
121
|
+
* access: async (ctx) => ctx.user === ctx.currentResource?.id,
|
|
122
|
+
* transform: (value) => sanitize(value)
|
|
123
|
+
* }
|
|
124
|
+
* });
|
|
125
|
+
*/
|
|
126
|
+
registerFieldsPolicy(resourceName, config) {
|
|
127
|
+
return this.fields.registerFieldsPolicy(resourceName, config);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Регистрация расширения контекста
|
|
132
|
+
* @param {string} moduleName - Имя модуля
|
|
133
|
+
* @param {Function} extensionFn - Функция расширения (context) => void
|
|
134
|
+
* @returns {GlobalABAC}
|
|
135
|
+
*/
|
|
136
|
+
registerExtension(moduleName, extensionFn) {
|
|
137
|
+
return this.policies.registerExtension(moduleName, extensionFn);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Проверка доступа
|
|
142
|
+
* @param {ABACContext|Object} context - Контекст проверки
|
|
143
|
+
* @param {Object} [customPolicies] - Дополнительные политики
|
|
144
|
+
* @returns {Promise<ABACResult>}
|
|
145
|
+
*/
|
|
146
|
+
async checkAccess(context, customPolicies = {}) {
|
|
147
|
+
return this.core.checkAccess(context, customPolicies);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Проверка доступа к полям
|
|
152
|
+
* @param {ABACContext|Object} context - Контекст
|
|
153
|
+
* @param {Object} data - Данные для проверки
|
|
154
|
+
* @param {string} [action] - Действие
|
|
155
|
+
* @returns {Promise<FieldsResult>}
|
|
156
|
+
*/
|
|
157
|
+
async checkFields(context, data, action = null) {
|
|
158
|
+
return this.fields.checkFields(context, data, action);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Проверка конкретных политик
|
|
163
|
+
* @param {ABACContext|Object} context - Контекст
|
|
164
|
+
* @param {string[]} policyNames - Имена политик
|
|
165
|
+
* @param {Object} [customPolicies] - Дополнительные политики
|
|
166
|
+
* @returns {Promise<ABACResult>}
|
|
167
|
+
*/
|
|
168
|
+
async checkPolicies(context, policyNames = [], customPolicies = {}) {
|
|
169
|
+
return this.policies.checkPolicies(context, policyNames, customPolicies);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Express middleware для проверки доступа
|
|
174
|
+
* @param {string} resource - Ресурс
|
|
175
|
+
* @param {string} action - Действие
|
|
176
|
+
* @param {Object} [options] - Опции
|
|
177
|
+
* @returns {Function|Function[]} Middleware функция(и)
|
|
178
|
+
*/
|
|
179
|
+
middleware(resource, action, options = {}) {
|
|
180
|
+
return this.express.middleware(resource, action, options);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Express middleware для проверки политик
|
|
185
|
+
* @param {string[]} policyNames - Имена политик
|
|
186
|
+
* @param {Object} [customPolicies] - Дополнительные политики
|
|
187
|
+
* @param {Object} [options] - Опции
|
|
188
|
+
* @returns {Function} Middleware функция
|
|
189
|
+
*/
|
|
190
|
+
policyMiddleware(policyNames = [], customPolicies = {}, options = {}) {
|
|
191
|
+
return this.express.policyMiddleware(policyNames, customPolicies, options);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Express middleware для проверки полей
|
|
196
|
+
* @param {string} resource - Ресурс
|
|
197
|
+
* @param {Object} [options] - Опции
|
|
198
|
+
* @returns {Function} Middleware функция
|
|
199
|
+
*/
|
|
200
|
+
fieldsMiddleware(resource, options = {}) {
|
|
201
|
+
return this.express.fieldsMiddleware(resource, options);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* WebSocket handler
|
|
206
|
+
* @param {string} moduleName - Имя модуля
|
|
207
|
+
* @param {Object} [options] - Опции
|
|
208
|
+
* @returns {Function} Handler функция
|
|
209
|
+
*/
|
|
210
|
+
wsHandler(moduleName, options = {}) {
|
|
211
|
+
return this.websocket.handler(moduleName, options);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Получение модели ресурса из БД
|
|
216
|
+
* @param {string} resourceName - Имя ресурса
|
|
217
|
+
* @returns {Object|null} Mongoose модель или null
|
|
218
|
+
*/
|
|
219
|
+
getResourceModel(resourceName) {
|
|
220
|
+
const resourcePolicy = this.policies.resources.get(resourceName);
|
|
221
|
+
if (!resourcePolicy) return null;
|
|
222
|
+
|
|
223
|
+
const modelName = resourcePolicy.modelName || resourceName;
|
|
224
|
+
return this.db[modelName] || null;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Очистка кэша
|
|
229
|
+
* @param {Object} [options] - Опции очистки
|
|
230
|
+
* @param {string} [options.user] - Очистить для пользователя
|
|
231
|
+
* @param {string} [options.resource] - Очистить для ресурса
|
|
232
|
+
* @param {string} [options.policy] - Очистить для политики
|
|
233
|
+
*/
|
|
234
|
+
async clearCache(options = {}) {
|
|
235
|
+
if (options.user) {
|
|
236
|
+
await this.cache.invalidateTag(`user_${options.user}`);
|
|
237
|
+
}
|
|
238
|
+
if (options.resource) {
|
|
239
|
+
await this.cache.invalidateTag(`resource_${options.resource}`);
|
|
240
|
+
}
|
|
241
|
+
if (options.policy) {
|
|
242
|
+
await this.cache.invalidateTag(`policy_${options.policy}`);
|
|
243
|
+
}
|
|
244
|
+
if (!options.user && !options.resource && !options.policy) {
|
|
245
|
+
await this.cache.clear();
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Получение статистики
|
|
251
|
+
* @returns {Object} Статистика системы
|
|
252
|
+
*/
|
|
253
|
+
getStats() {
|
|
254
|
+
return {
|
|
255
|
+
policies: {
|
|
256
|
+
global: this.policies.global.size,
|
|
257
|
+
resources: this.policies.resources.size,
|
|
258
|
+
extensions: this.policies.extensions.size
|
|
259
|
+
},
|
|
260
|
+
fields: {
|
|
261
|
+
configs: this.fields.configs.size
|
|
262
|
+
},
|
|
263
|
+
cache: {
|
|
264
|
+
size: this.cache.size,
|
|
265
|
+
hits: this.cache.hits,
|
|
266
|
+
misses: this.cache.misses
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// Экспорт синглтона
|
|
273
|
+
let instance = null;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Получение экземпляра ABAC
|
|
277
|
+
* @param {Object} db - База данных
|
|
278
|
+
* @param {ABACOptions} [options] - Опции
|
|
279
|
+
* @returns {GlobalABAC}
|
|
280
|
+
*/
|
|
281
|
+
export const getInstance = (db, options) => {
|
|
282
|
+
if (!instance) {
|
|
283
|
+
instance = new GlobalABAC(db, options);
|
|
284
|
+
}
|
|
285
|
+
return instance;
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Сброс экземпляра (для тестов)
|
|
290
|
+
*/
|
|
291
|
+
export const resetInstance = () => {
|
|
292
|
+
instance = null;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
export default { getInstance, resetInstance };
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
// @martyrs/src/modules/globals/controllers/classes/abac/abac.policies.js
|
|
2
|
+
export default class ABACPolicies {
|
|
3
|
+
constructor(abac) {
|
|
4
|
+
this.abac = abac;
|
|
5
|
+
this.global = new Map();
|
|
6
|
+
this.resources = new Map();
|
|
7
|
+
this.extensions = new Map();
|
|
8
|
+
this.priorities = {
|
|
9
|
+
static: [],
|
|
10
|
+
dynamic: [],
|
|
11
|
+
extensions: []
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Регистрация глобальной политики
|
|
17
|
+
*/
|
|
18
|
+
registerGlobalPolicy(name, policyFn, metadata = {}) {
|
|
19
|
+
if (typeof policyFn !== 'function') {
|
|
20
|
+
throw new Error(`Global policy "${name}" must be a function`);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const policy = {
|
|
24
|
+
fn: policyFn,
|
|
25
|
+
type: metadata.type || 'dynamic',
|
|
26
|
+
priority: metadata.priority || 0,
|
|
27
|
+
...metadata
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
this.global.set(name, policy);
|
|
31
|
+
this.updatePriorities();
|
|
32
|
+
return this.abac;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Регистрация политики ресурса
|
|
37
|
+
*/
|
|
38
|
+
registerResourcePolicy(resourceName, policyFn, options = {}) {
|
|
39
|
+
if (typeof policyFn !== 'function') {
|
|
40
|
+
throw new Error(`Resource policy for "${resourceName}" must be a function`);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
this.resources.set(resourceName, {
|
|
44
|
+
fn: policyFn,
|
|
45
|
+
modelName: options.modelName || options.model || resourceName,
|
|
46
|
+
...options
|
|
47
|
+
});
|
|
48
|
+
return this.abac;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Регистрация расширения
|
|
53
|
+
*/
|
|
54
|
+
registerExtension(moduleName, extensionFn) {
|
|
55
|
+
if (typeof extensionFn !== 'function') {
|
|
56
|
+
throw new Error(`Extension "${moduleName}" must be a function`);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
this.extensions.set(moduleName, extensionFn);
|
|
60
|
+
this.updatePriorities();
|
|
61
|
+
return this.abac;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Обновление приоритетов с сортировкой
|
|
66
|
+
*/
|
|
67
|
+
updatePriorities() {
|
|
68
|
+
this.priorities = {
|
|
69
|
+
static: [],
|
|
70
|
+
dynamic: [],
|
|
71
|
+
extensions: []
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// Группируем и сортируем по приоритету
|
|
75
|
+
for (const [name, policy] of this.global) {
|
|
76
|
+
const type = policy.type || 'dynamic';
|
|
77
|
+
this.priorities[type].push([name, policy]);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Сортировка по приоритету (выше = раньше)
|
|
81
|
+
this.priorities.static.sort((a, b) => (b[1].priority || 0) - (a[1].priority || 0));
|
|
82
|
+
this.priorities.dynamic.sort((a, b) => (b[1].priority || 0) - (a[1].priority || 0));
|
|
83
|
+
|
|
84
|
+
// Добавляем расширения
|
|
85
|
+
this.priorities.extensions = Array.from(this.extensions.entries());
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Основная логика оценки политик
|
|
90
|
+
*/
|
|
91
|
+
async evaluate(context, customPolicies = {}) {
|
|
92
|
+
const core = this.abac.core;
|
|
93
|
+
|
|
94
|
+
// Структура для отслеживания результатов
|
|
95
|
+
const evaluation = {
|
|
96
|
+
hasForceAllow: false,
|
|
97
|
+
hasForceDisallow: false,
|
|
98
|
+
hasDeny: false,
|
|
99
|
+
denyReason: '',
|
|
100
|
+
allowReason: '',
|
|
101
|
+
appliedPolicies: []
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// Функция для обработки результата политики
|
|
105
|
+
const processResult = (name, result) => {
|
|
106
|
+
evaluation.appliedPolicies.push({ name, result });
|
|
107
|
+
|
|
108
|
+
if (result.force) {
|
|
109
|
+
if (result.allow) {
|
|
110
|
+
evaluation.hasForceAllow = true;
|
|
111
|
+
evaluation.allowReason = result.reason;
|
|
112
|
+
} else {
|
|
113
|
+
evaluation.hasForceDisallow = true;
|
|
114
|
+
evaluation.denyReason = result.reason;
|
|
115
|
+
}
|
|
116
|
+
} else if (!result.allow) {
|
|
117
|
+
evaluation.hasDeny = true;
|
|
118
|
+
if (!evaluation.denyReason) {
|
|
119
|
+
evaluation.denyReason = result.reason;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// Функция для проверки force флагов
|
|
125
|
+
const checkForceFlags = () => {
|
|
126
|
+
if (evaluation.hasForceDisallow) {
|
|
127
|
+
return {
|
|
128
|
+
allow: false,
|
|
129
|
+
reason: evaluation.denyReason || 'FORCE_DENIED_BY_POLICY',
|
|
130
|
+
policies: evaluation.appliedPolicies
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (evaluation.hasForceAllow) {
|
|
135
|
+
return {
|
|
136
|
+
allow: true,
|
|
137
|
+
reason: evaluation.allowReason || 'FORCE_ALLOWED_BY_POLICY',
|
|
138
|
+
policies: evaluation.appliedPolicies
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return null;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
// 1. Static политики (с early exit)
|
|
146
|
+
const staticResults = await core.executePoliciesLimited(
|
|
147
|
+
this.priorities.static,
|
|
148
|
+
context,
|
|
149
|
+
true // останавливаемся на deny
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
for (const { name, result, error } of staticResults) {
|
|
153
|
+
if (!error) {
|
|
154
|
+
processResult(name, result);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
let forceResult = checkForceFlags();
|
|
159
|
+
if (forceResult) return forceResult;
|
|
160
|
+
|
|
161
|
+
// 2. Dynamic политики + custom
|
|
162
|
+
const dynamicPolicies = [...this.priorities.dynamic];
|
|
163
|
+
|
|
164
|
+
// Добавляем кастомные политики
|
|
165
|
+
for (const [name, fn] of Object.entries(customPolicies)) {
|
|
166
|
+
dynamicPolicies.push([name, { fn, type: 'dynamic' }]);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
const dynamicResults = await core.executePoliciesLimited(
|
|
170
|
+
dynamicPolicies,
|
|
171
|
+
context,
|
|
172
|
+
false
|
|
173
|
+
);
|
|
174
|
+
|
|
175
|
+
for (const { name, result, error } of dynamicResults) {
|
|
176
|
+
if (!error) {
|
|
177
|
+
processResult(name, result);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
forceResult = checkForceFlags();
|
|
182
|
+
if (forceResult) return forceResult;
|
|
183
|
+
|
|
184
|
+
// 3. Resource-specific политика
|
|
185
|
+
const resourcePolicy = this.resources.get(context.resource);
|
|
186
|
+
|
|
187
|
+
if (resourcePolicy) {
|
|
188
|
+
const results = await core.executePoliciesLimited(
|
|
189
|
+
[[`RESOURCE_${context.resource}`, resourcePolicy]],
|
|
190
|
+
context
|
|
191
|
+
);
|
|
192
|
+
|
|
193
|
+
if (!results[0].error) {
|
|
194
|
+
processResult(`RESOURCE_${context.resource}`, results[0].result);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
forceResult = checkForceFlags();
|
|
198
|
+
if (forceResult) return forceResult;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// Проверяем накопленный deny
|
|
202
|
+
if (evaluation.hasDeny) {
|
|
203
|
+
return {
|
|
204
|
+
allow: false,
|
|
205
|
+
reason: evaluation.denyReason || 'DENIED_BY_POLICY',
|
|
206
|
+
policies: evaluation.appliedPolicies
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// 4. Extensions (последний шанс разрешить)
|
|
211
|
+
const extensionResults = await core.executePoliciesLimited(
|
|
212
|
+
this.priorities.extensions,
|
|
213
|
+
context
|
|
214
|
+
);
|
|
215
|
+
|
|
216
|
+
for (const { name, result } of extensionResults) {
|
|
217
|
+
processResult(name, result);
|
|
218
|
+
if (result.allow) {
|
|
219
|
+
return {
|
|
220
|
+
allow: true,
|
|
221
|
+
reason: result.reason,
|
|
222
|
+
policies: evaluation.appliedPolicies
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// Финальное решение
|
|
228
|
+
const defaultAllow = !this.abac.options.defaultDeny;
|
|
229
|
+
return {
|
|
230
|
+
allow: defaultAllow,
|
|
231
|
+
reason: defaultAllow ? 'DEFAULT_ALLOW' : 'DEFAULT_DENY',
|
|
232
|
+
policies: evaluation.appliedPolicies
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Проверка конкретных политик
|
|
238
|
+
*/
|
|
239
|
+
async checkPolicies(rawContext, policyNames = [], customPolicies = {}) {
|
|
240
|
+
const context = this.abac.core.normalizeContext(rawContext);
|
|
241
|
+
const policies = this.getPoliciesByNames(policyNames, customPolicies);
|
|
242
|
+
|
|
243
|
+
const results = await this.abac.core.executePoliciesLimited(
|
|
244
|
+
Object.entries(policies),
|
|
245
|
+
context,
|
|
246
|
+
this.abac.options.strictMode
|
|
247
|
+
);
|
|
248
|
+
|
|
249
|
+
// Структурированный анализ результатов
|
|
250
|
+
const evaluation = {
|
|
251
|
+
passed: [],
|
|
252
|
+
failed: [],
|
|
253
|
+
errors: []
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
for (const { name, result, error } of results) {
|
|
257
|
+
if (error) {
|
|
258
|
+
evaluation.errors.push({ name, error: error.message });
|
|
259
|
+
continue;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
if (result.force) {
|
|
263
|
+
return {
|
|
264
|
+
allow: result.allow,
|
|
265
|
+
reason: result.reason,
|
|
266
|
+
evaluation
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
if (result.allow) {
|
|
271
|
+
evaluation.passed.push(name);
|
|
272
|
+
} else {
|
|
273
|
+
evaluation.failed.push({ name, reason: result.reason });
|
|
274
|
+
|
|
275
|
+
if (this.abac.options.strictMode) {
|
|
276
|
+
return {
|
|
277
|
+
allow: false,
|
|
278
|
+
reason: result.reason,
|
|
279
|
+
evaluation
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
const allPassed = evaluation.failed.length === 0 && evaluation.errors.length === 0;
|
|
286
|
+
|
|
287
|
+
return {
|
|
288
|
+
allow: allPassed,
|
|
289
|
+
reason: allPassed ? 'POLICIES_PASSED' : `FAILED: ${evaluation.failed[0]?.name}`,
|
|
290
|
+
evaluation
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Получение политик по именам
|
|
296
|
+
*/
|
|
297
|
+
getPoliciesByNames(names, customPolicies = {}) {
|
|
298
|
+
const policies = {};
|
|
299
|
+
|
|
300
|
+
for (const name of names) {
|
|
301
|
+
if (this.global.has(name)) {
|
|
302
|
+
policies[name] = this.global.get(name);
|
|
303
|
+
} else if (this.extensions.has(name)) {
|
|
304
|
+
policies[name] = { fn: this.extensions.get(name), type: 'extension' };
|
|
305
|
+
} else if (this.resources.has(name)) {
|
|
306
|
+
policies[name] = this.resources.get(name);
|
|
307
|
+
} else {
|
|
308
|
+
this.abac.logger?.warn('Policy not found', { name });
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
// Добавляем кастомные
|
|
313
|
+
Object.assign(policies, customPolicies);
|
|
314
|
+
return policies;
|
|
315
|
+
}
|
|
316
|
+
}
|