@ozdao/martyrs 0.2.564 → 0.2.566
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abac-BPl9Bmf9.js +1527 -0
- package/dist/builder.js +51 -39
- package/dist/{common.schema-GFSlNJo7.js → common.schema-DswiUXKB.js} +1 -1
- package/dist/community.server.js +48 -9
- package/dist/core.server.js +6 -4
- package/dist/{crud-C7FSTUes.js → crud-q1ye5IhV.js} +7 -7
- package/dist/events.server.js +3 -3
- package/dist/gallery.server.js +2 -2
- package/dist/inventory.server.js +4 -6
- package/dist/{main-CmjWiDVF.js → main-B9o1iBAZ.js} +1279 -1287
- package/dist/marketplace.server.js +1 -1
- package/dist/martyrs/dist/main-B9o1iBAZ.js +943 -0
- package/dist/martyrs/dist/main-B9o1iBAZ.js.map +1 -0
- package/dist/martyrs/dist/web-BF3ijvEr.js +55 -0
- package/dist/martyrs/dist/web-BF3ijvEr.js.map +1 -0
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js +96 -0
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js.map +1 -0
- package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +36 -45
- package/dist/martyrs/src/components/Button/Button.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Feed/Carousel.vue.js +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +1 -1
- package/dist/martyrs/src/components/Field/{Field.vue2.js → Field.vue.js} +2 -2
- package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -0
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +2 -2
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.js.map +1 -1
- package/dist/martyrs/src/components/Loader/{Loader.vue2.js → Loader.vue.js} +3 -4
- package/dist/martyrs/src/components/Loader/Loader.vue.js.map +1 -0
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue.js +1 -1
- package/dist/martyrs/src/components/Media/Media.vue.js +1 -1
- 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/Select/{Select.vue2.js → Select.vue.js} +2 -2
- package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -0
- package/dist/martyrs/src/components/SelectMulti/{SelectMulti.vue.js → SelectMulti.vue2.js} +2 -2
- package/dist/martyrs/src/components/SelectMulti/SelectMulti.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Tree/Tree.vue.js +6 -3
- package/dist/martyrs/src/components/Tree/Tree.vue.js.map +1 -1
- package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/auth.client.js +10 -7
- package/dist/martyrs/src/modules/auth/auth.client.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +13 -13
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/router/auth.router.js +116 -0
- package/dist/martyrs/src/modules/auth/views/router/auth.router.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/router/users.router.js +180 -0
- package/dist/martyrs/src/modules/auth/views/router/users.router.js.map +1 -0
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js +4 -4
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/martyrs/src/modules/constructor/components/elements/Card.vue.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/martyrs/src/modules/core/locales/en.js +45 -0
- package/dist/martyrs/src/modules/core/locales/en.js.map +1 -1
- package/dist/martyrs/src/modules/core/locales/ru.js +45 -0
- package/dist/martyrs/src/modules/core/locales/ru.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/i18n.manager.js +9 -0
- package/dist/martyrs/src/modules/core/views/classes/i18n.manager.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupAuth.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +3 -2
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/filters/FilterRange.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/mixins/mixins.js +1 -2
- package/dist/martyrs/src/modules/core/views/mixins/mixins.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/router/addRoutes.js +6 -1
- package/dist/martyrs/src/modules/core/views/router/addRoutes.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +4 -4
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/martyrs/src/modules/events/events.client.js +15 -12
- package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +4 -4
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +5 -5
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/pages/Marketplace.vue.js +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js +95 -0
- package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +6 -3
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +25 -25
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/layouts/MusicBottomPlayer.vue.js +31 -6
- package/dist/martyrs/src/modules/music/components/layouts/MusicBottomPlayer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +121 -206
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/MusicHome.vue.js +9 -13
- package/dist/martyrs/src/modules/music/components/pages/MusicHome.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +167 -246
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +136 -221
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +171 -0
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +32 -154
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/player/PlayerControls.vue.js +96 -0
- package/dist/martyrs/src/modules/music/components/player/PlayerControls.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js +55 -27
- package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/player/tonar.png.js +5 -0
- package/dist/martyrs/src/modules/music/components/player/tonar.png.js.map +1 -0
- package/dist/martyrs/src/modules/music/store/albums.js +8 -2
- package/dist/martyrs/src/modules/music/store/albums.js.map +1 -1
- package/dist/martyrs/src/modules/music/store/player.js +83 -65
- package/dist/martyrs/src/modules/music/store/player.js.map +1 -1
- package/dist/martyrs/src/modules/music/store/tracks.js +4 -13
- package/dist/martyrs/src/modules/music/store/tracks.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +4 -4
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.js +2 -2
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js +3 -0
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +3 -3
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +3 -3
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +15 -2
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Image360.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +10 -7
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +7 -6
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +11 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +11 -8
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +211 -61
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +4 -4
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/music.server.js +44 -18
- package/dist/node_modules/.pnpm/{@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1 → @capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4}/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js +1 -0
- package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js.map +1 -0
- package/dist/node_modules/.pnpm/{@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1 → @capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4}/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js +1 -1
- package/dist/node_modules/.pnpm/{@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1 → @capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4}/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1 → @capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4}/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js +16 -1
- package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js.map +1 -0
- package/dist/node_modules/.pnpm/{@capacitor_core@7.0.1 → @capacitor_core@7.4.4}/node_modules/@capacitor/core/dist/index.js +2 -1
- package/dist/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/{@capacitor_device@7.0.0_@capacitor_core@7.0.1 → @capacitor_device@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/device/dist/esm/index.js +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_device@7.0.0_@capacitor_core@7.0.1 → @capacitor_device@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/device/dist/esm/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_device@7.0.0_@capacitor_core@7.0.1 → @capacitor_device@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/device/dist/esm/web.js +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_device@7.0.0_@capacitor_core@7.0.1 → @capacitor_device@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/device/dist/esm/web.js.map +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_keyboard@7.0.0_@capacitor_core@7.0.1 → @capacitor_keyboard@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/keyboard/dist/esm/definitions.js.map +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_keyboard@7.0.0_@capacitor_core@7.0.1 → @capacitor_keyboard@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/keyboard/dist/esm/index.js +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_keyboard@7.0.0_@capacitor_core@7.0.1 → @capacitor_keyboard@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/keyboard/dist/esm/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_push-notifications@7.0.0_@capacitor_core@7.0.1 → @capacitor_push-notifications@7.0.3_@capacitor_core@7.4.4}/node_modules/@capacitor/push-notifications/dist/esm/index.js +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_push-notifications@7.0.0_@capacitor_core@7.0.1 → @capacitor_push-notifications@7.0.3_@capacitor_core@7.4.4}/node_modules/@capacitor/push-notifications/dist/esm/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.0.1 → capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4}/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js +1 -1
- package/dist/node_modules/.pnpm/{capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.0.1 → capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4}/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.0.1 → capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4}/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js +1 -1
- package/dist/node_modules/.pnpm/{capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.0.1 → capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4}/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js.map +1 -1
- package/dist/notifications.server.js +0 -3
- package/dist/orders.server.js +5 -6
- package/dist/organizations.server.js +9 -10
- package/dist/products.server.js +27 -26
- package/dist/{queryProcessor-CBQgZycY.js → queryProcessor-C_5Iipam.js} +4 -1
- package/dist/rents.server.js +2 -3
- package/dist/spots.server.js +1 -1
- package/dist/style.css +252 -161
- package/dist/{web-cNKIl_cL.js → web-BF3ijvEr.js} +1 -1
- package/package.json +1 -1
- package/src/builder/modes/ssr.rspack.dev.js +4 -3
- package/src/builder/rspack/rspack.config.api.js +15 -4
- package/src/builder/rspack/rspack.config.base.js +3 -3
- package/src/builder/rspack/rspack.config.ssr.client.js +28 -28
- package/src/builder/templates/page.js +2 -2
- package/src/components/BottomSheet/BottomSheet.vue +4 -4
- package/src/components/Button/Button.vue +50 -37
- package/src/components/FieldPhone/FieldPhone.vue +1 -1
- package/src/components/Loader/Loader.vue +1 -1
- package/src/components/Tree/Tree.vue +6 -3
- package/src/modules/LAYOUT.MD +767 -0
- package/src/modules/PROCESS.md +0 -0
- package/src/modules/TASKS.MD +17 -0
- package/src/modules/auth/auth.client.js +11 -7
- package/src/modules/auth/views/components/pages/SignIn.vue +1 -1
- package/src/modules/auth/views/router/auth.router.js +94 -0
- package/src/modules/auth/views/router/users.router.js +153 -0
- package/src/modules/backoffice/components/partials/Sidebar.vue +7 -7
- package/src/modules/community/community.server.js +8 -0
- package/src/modules/community/policies/blog.policies.js +55 -0
- package/src/modules/community/routes/blog.routes.js +1 -1
- package/src/modules/community/routes/comments.routes.js +1 -1
- package/src/modules/community/routes/reactions.routes.js +1 -4
- package/src/modules/core/controllers/classes/abac/abac.adapter.express.js +206 -124
- package/src/modules/core/controllers/classes/abac/abac.adapter.ws.js +203 -50
- package/src/modules/core/controllers/classes/abac/abac.core.js +127 -36
- package/src/modules/core/controllers/classes/abac/abac.fields.js +144 -179
- package/src/modules/core/controllers/classes/abac/abac.js +201 -10
- package/src/modules/core/controllers/classes/abac/abac.policies.js +147 -57
- package/src/modules/core/controllers/classes/crud/crud.policies.js +5 -5
- package/src/modules/core/controllers/policies/core.policies.js +5 -2
- package/src/modules/core/controllers/utils/queryProcessor.js +4 -1
- package/src/modules/core/core.server.js +1 -0
- package/src/modules/core/locales/en.js +45 -0
- package/src/modules/core/locales/ru.js +45 -0
- package/src/modules/core/models/schemas/common.schema.js +1 -1
- package/src/modules/core/views/classes/i18n.manager.js +13 -0
- package/src/modules/core/views/components/layouts/Client.vue +1 -1
- package/src/modules/core/views/components/sections/filters/FilterPrice.vue +81 -0
- package/src/modules/core/views/mixins/mixins.js +1 -2
- package/src/modules/core/views/router/addRoutes.js +6 -1
- package/src/modules/events/events.client.js +3 -0
- package/src/modules/events/routes/events.routes.js +1 -1
- package/src/modules/inventory/components/pages/InventoryEdit.vue +3 -3
- package/src/modules/inventory/policies/inventory.policies.js +1 -1
- package/src/modules/inventory/routes/inventory.routes.js +1 -1
- package/src/modules/marketplace/marketplace.router.js +66 -0
- package/src/modules/marketplace/views/components/layouts/Marketplace.vue +363 -0
- package/src/modules/marketplace/views/components/pages/Catalog.vue +73 -0
- package/src/modules/music/components/blocks/ActionButtons.vue +74 -0
- package/src/modules/music/components/cards/AlbumCard.vue +1 -1
- package/src/modules/music/components/cards/ArtistCardSmall.vue +8 -6
- package/src/modules/music/components/layouts/MusicBottomPlayer.vue +94 -4
- package/src/modules/music/components/pages/Album.vue +55 -67
- package/src/modules/music/components/pages/MusicHome.vue +4 -6
- package/src/modules/music/components/pages/Playlist.vue +61 -70
- package/src/modules/music/components/pages/Track.vue +54 -71
- package/src/modules/music/components/player/FullscreenPlayer.vue +248 -0
- package/src/modules/music/components/player/MusicPlayer.vue +21 -216
- package/src/modules/music/components/player/PlayerControls.vue +112 -0
- package/src/modules/music/components/player/Visualizer.vue +151 -0
- package/src/modules/music/components/player/VolumeControl.vue +75 -23
- package/src/modules/music/components/player/tonar.png +0 -0
- package/src/modules/music/controllers/stream.controller.js +1 -1
- package/src/modules/music/music.server.js +1 -1
- package/src/modules/music/policies/music.policies.js +3 -2
- package/src/modules/music/router/library.router.js +26 -0
- package/src/modules/music/router/music.router.js +176 -0
- package/src/modules/music/routes/albums.routes.js +13 -12
- package/src/modules/music/routes/tracks.routes.js +39 -0
- package/src/modules/music/store/albums.js +10 -2
- package/src/modules/music/store/player.js +101 -89
- package/src/modules/music/store/tracks.js +5 -21
- package/src/modules/notifications/components/elements/NotificationBadge.vue +5 -6
- package/src/modules/notifications/notifications.server.js +1 -3
- package/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue +5 -0
- package/src/modules/orders/orders.server.js +0 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +2 -2
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +2 -2
- package/src/modules/organizations/policies/organizations.policies.js +12 -6
- package/src/modules/organizations/routes/organizations.routes.js +1 -3
- package/src/modules/products/components/blocks/CardCategory.vue +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +16 -2
- package/src/modules/products/components/pages/Categories.vue +9 -6
- package/src/modules/products/components/pages/CategoryEdit.vue +8 -4
- package/src/modules/products/components/pages/Product.vue +11 -5
- package/src/modules/products/components/sections/SectionProduct.vue +11 -7
- package/src/modules/products/controllers/categories.controller.js +32 -27
- package/src/modules/products/routes/categories.routes.js +1 -1
- package/src/modules/rents/controllers/routes/rents.routes.js +1 -1
- package/src/modules/rents/views/components/pages/RentsEdit.vue +208 -49
- package/src/modules/spots/components/pages/Map.vue +2 -2
- package/src/styles/config.scss +6 -6
- package/dist/abac-DYoheWuc.js +0 -1031
- package/dist/core.abac-DUPBnlk6.js +0 -298
- package/dist/core.logger-C3q8A9dl.js +0 -51
- package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
- package/dist/martyrs/src/components/Field/Field.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +0 -1
- package/dist/martyrs/src/components/Select/Select.vue2.js.map +0 -1
- package/dist/martyrs/src/components/SelectMulti/SelectMulti.vue.js.map +0 -1
- package/dist/martyrs/src/modules/auth/auth.router.js +0 -342
- package/dist/martyrs/src/modules/auth/auth.router.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor_core@7.0.1/node_modules/@capacitor/core/dist/index.js.map +0 -1
- package/src/modules/auth/auth.router.js +0 -262
- package/src/modules/core/controllers/classes/abac/v2/abac-core-fixed.js +0 -313
- package/src/modules/core/controllers/classes/abac/v2/abac-express-fixed.js +0 -276
- package/src/modules/core/controllers/classes/abac/v2/abac-fields-fixed.js +0 -425
- package/src/modules/core/controllers/classes/abac/v2/abac-main-fixed.js +0 -295
- package/src/modules/core/controllers/classes/abac/v2/abac-policies-fixed.js +0 -316
- package/src/modules/core/controllers/classes/abac/v2/abac-ws-fixed.js +0 -237
- package/src/modules/core/controllers/classes/core.abac.js +0 -310
- package/src/modules/core/controllers/classes/core.crud.js +0 -89
- package/src/modules/governance/reactcode/eslint.config.js +0 -28
- /package/dist/node_modules/.pnpm/{@capacitor_keyboard@7.0.0_@capacitor_core@7.0.1 → @capacitor_keyboard@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/keyboard/dist/esm/definitions.js +0 -0
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
// auth.meta.js
|
|
2
|
-
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';
|
|
3
|
-
import { useStore } from '@martyrs/src/modules/core/views/store/core.store.js';
|
|
4
|
-
import { useGlobalMixins } from '@martyrs/src/modules/core/views/mixins/mixins.js';
|
|
5
|
-
import IconPlus from '@martyrs/src/modules/icons/navigation/IconPlus.vue';
|
|
6
|
-
import { navigationItems } from '@martyrs/src/modules/auth/views/configs/navigation.user.config.js';
|
|
7
|
-
import ProfileCard from '@martyrs/src/modules/auth/views/components/blocks/ProfileCard.vue';
|
|
8
|
-
import HelpCard from '@martyrs/src/modules/core/views/components/blocks/HelpCard.vue';
|
|
9
|
-
|
|
10
|
-
const { isPhone, isTablet } = useGlobalMixins();
|
|
11
|
-
|
|
12
|
-
export function getRoutes(options = {}) {
|
|
13
|
-
const route = options.route || 'Home';
|
|
14
|
-
const routes = [];
|
|
15
|
-
|
|
16
|
-
// Auth routes
|
|
17
|
-
routes.push({
|
|
18
|
-
parentName: route,
|
|
19
|
-
config: {
|
|
20
|
-
basePath: 'auth',
|
|
21
|
-
component: () => import(/* webpackChunkName: "auth-layout" */ './views/components/layouts/Auth.vue'),
|
|
22
|
-
meta: {
|
|
23
|
-
title: {
|
|
24
|
-
en: 'Аутентификация',
|
|
25
|
-
ru: 'Authentication',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
routes: [
|
|
29
|
-
{
|
|
30
|
-
path: 'signin',
|
|
31
|
-
name: 'Sign In',
|
|
32
|
-
beforeEnter: [
|
|
33
|
-
() => import(/* webpackChunkName: "auth-validation" */ './views/middlewares/auth.validation.js').then(m => m.requiresNoAuth),
|
|
34
|
-
() => import(/* webpackChunkName: "auth-validation" */ './views/middlewares/auth.validation.js').then(m => m.resetUser),
|
|
35
|
-
],
|
|
36
|
-
meta: {
|
|
37
|
-
title: {
|
|
38
|
-
en: 'Sign In',
|
|
39
|
-
ru: 'Вход',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
component: () => import(/* webpackChunkName: "signin" */ './views/components/pages/SignIn.vue'),
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
path: 'reset-password',
|
|
46
|
-
name: 'Reset Password',
|
|
47
|
-
beforeEnter: [
|
|
48
|
-
() => import(/* webpackChunkName: "auth-validation" */ './views/middlewares/auth.validation.js').then(m => m.requiresNoAuth),
|
|
49
|
-
() => import(/* webpackChunkName: "auth-validation" */ './views/middlewares/auth.validation.js').then(m => m.resetUser),
|
|
50
|
-
],
|
|
51
|
-
meta: {
|
|
52
|
-
title: {
|
|
53
|
-
en: 'Reset Password',
|
|
54
|
-
ru: 'Сбросить Пароль',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
component: () => import(/* webpackChunkName: "reset-password" */ './views/components/pages/ResetPassword.vue'),
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
path: 'signup',
|
|
61
|
-
name: 'Sign Up',
|
|
62
|
-
beforeEnter: [
|
|
63
|
-
() => import(/* webpackChunkName: "auth-validation" */ './views/middlewares/auth.validation.js').then(m => m.requiresNoAuth),
|
|
64
|
-
() => import(/* webpackChunkName: "auth-validation" */ './views/middlewares/auth.validation.js').then(m => m.resetUser),
|
|
65
|
-
],
|
|
66
|
-
meta: {
|
|
67
|
-
title: {
|
|
68
|
-
en: 'Sign Up',
|
|
69
|
-
ru: 'Регистрация',
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
component: () => import(/* webpackChunkName: "signup" */ './views/components/pages/SignUp.vue'),
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
path: 'enter-code',
|
|
76
|
-
name: 'Enter Code',
|
|
77
|
-
beforeEnter: [
|
|
78
|
-
() => import(/* webpackChunkName: "auth-validation" */ './views/middlewares/auth.validation.js').then(m => m.requiresNoAuth),
|
|
79
|
-
() => import(/* webpackChunkName: "auth-validation" */ './views/middlewares/auth.validation.js').then(m => m.checkUser),
|
|
80
|
-
],
|
|
81
|
-
meta: {
|
|
82
|
-
title: {
|
|
83
|
-
en: 'Enter Code',
|
|
84
|
-
ru: 'Введите Код',
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
component: () => import(/* webpackChunkName: "signup" */ './views/components/pages/EnterCode.vue'),
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
path: 'enter-password',
|
|
91
|
-
name: 'Enter Password',
|
|
92
|
-
beforeEnter: [
|
|
93
|
-
() => import(/* webpackChunkName: "auth-validation" */ './views/middlewares/auth.validation.js').then(m => m.requiresNoAuth),
|
|
94
|
-
() => import(/* webpackChunkName: "auth-validation" */ './views/middlewares/auth.validation.js').then(m => m.checkUser),
|
|
95
|
-
],
|
|
96
|
-
meta: {
|
|
97
|
-
title: {
|
|
98
|
-
en: 'Enter Password',
|
|
99
|
-
ru: 'Введите Пароль',
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
component: () => import(/* webpackChunkName: "signup" */ './views/components/pages/EnterPassword.vue'),
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
path: 'invite',
|
|
106
|
-
name: 'Invite',
|
|
107
|
-
beforeEnter: [
|
|
108
|
-
() => import(/* webpackChunkName: "auth-validation" */ './views/middlewares/auth.validation.js').then(m => m.requiresNoAuth),
|
|
109
|
-
() => import(/* webpackChunkName: "auth-validation" */ './views/middlewares/auth.validation.js').then(m => m.resetUser),
|
|
110
|
-
],
|
|
111
|
-
meta: {
|
|
112
|
-
title: {
|
|
113
|
-
en: 'Invite',
|
|
114
|
-
ru: 'Приглашение',
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
component: () => import(/* webpackChunkName: "signup" */ './views/components/pages/Invite.vue'),
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
// Users routes
|
|
124
|
-
routes.push({
|
|
125
|
-
parentName: route,
|
|
126
|
-
config: {
|
|
127
|
-
basePath: 'users',
|
|
128
|
-
meta: {
|
|
129
|
-
title: {
|
|
130
|
-
en: 'Users',
|
|
131
|
-
ru: 'Пользователи',
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
routes: [
|
|
135
|
-
{
|
|
136
|
-
path: ':_id',
|
|
137
|
-
name: 'User Profile Root',
|
|
138
|
-
meta: {
|
|
139
|
-
title: {
|
|
140
|
-
en: 'Profile',
|
|
141
|
-
ru: 'Профиль',
|
|
142
|
-
},
|
|
143
|
-
sidebar_hover: false,
|
|
144
|
-
sidebar_navigation_items: navigationItems,
|
|
145
|
-
sidebar_header_component: ProfileCard,
|
|
146
|
-
sidebar_footer_component: HelpCard,
|
|
147
|
-
sidebarOpenOnEnter: true,
|
|
148
|
-
sidebarCloseOnLeave: true
|
|
149
|
-
},
|
|
150
|
-
children: [
|
|
151
|
-
{
|
|
152
|
-
path: '', // Пустой путь для основного профиля
|
|
153
|
-
name: 'User Profile',
|
|
154
|
-
meta: {
|
|
155
|
-
title: {
|
|
156
|
-
en: 'Profile',
|
|
157
|
-
ru: 'Профиль',
|
|
158
|
-
},
|
|
159
|
-
title_hide: true,
|
|
160
|
-
hideNavigationBar: route => route.params._id === auth.state.user._id,
|
|
161
|
-
},
|
|
162
|
-
component: () => import(/* webpackChunkName: "profile" */ './views/components/pages/Profile.vue'),
|
|
163
|
-
children: [
|
|
164
|
-
{
|
|
165
|
-
path: 'edit',
|
|
166
|
-
name: 'User Edit Profile',
|
|
167
|
-
component: () => import(/* webpackChunkName: "profile-edit" */ './views/components/pages/ProfileEdit.vue'),
|
|
168
|
-
children: [
|
|
169
|
-
{
|
|
170
|
-
path: 'profile',
|
|
171
|
-
name: 'Profile Edit Profile',
|
|
172
|
-
component: () => import(/* webpackChunkName: "profile-edit-profile" */ './views/components/pages/ProfileEditProfile.vue')
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
path: 'account',
|
|
176
|
-
name: 'Profile Edit Account',
|
|
177
|
-
component: () => import(/* webpackChunkName: "profile-edit-account" */ './views/components/pages/ProfileEditAccount.vue')
|
|
178
|
-
}
|
|
179
|
-
]
|
|
180
|
-
}
|
|
181
|
-
]
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
path: 'dashboard',
|
|
185
|
-
name: 'User Dashboard',
|
|
186
|
-
meta: {
|
|
187
|
-
title: {
|
|
188
|
-
en: 'Dashboard',
|
|
189
|
-
ru: 'Дашборд',
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
beforeEnter: [
|
|
193
|
-
(to) => {
|
|
194
|
-
if (to.params._id !== auth.state.user._id) {
|
|
195
|
-
return { name: 'User Profile', params: { _id: to.params._id } };
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
],
|
|
199
|
-
component: () => import(/* webpackChunkName: "profile-dashboard" */ './views/components/pages/UserDashboard.vue'),
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
path: 'blogposts',
|
|
203
|
-
name: 'User Posts',
|
|
204
|
-
meta: {
|
|
205
|
-
title: {
|
|
206
|
-
en: 'Posts',
|
|
207
|
-
ru: 'Посты',
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
component: () => import(/* webpackChunkName: "profile" */ './views/components/pages/ProfileBlogposts.vue'),
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
path: 'events',
|
|
214
|
-
name: 'User Events',
|
|
215
|
-
meta: {
|
|
216
|
-
title: {
|
|
217
|
-
en: 'Events',
|
|
218
|
-
ru: 'События',
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
component: () => import(/* webpackChunkName: "profile" */ '@martyrs/src/modules/events/components/pages/EventsBackoffice.vue'),
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
path: 'organizations',
|
|
225
|
-
name: 'User Organizations',
|
|
226
|
-
meta: {
|
|
227
|
-
title: {
|
|
228
|
-
en: 'Groups',
|
|
229
|
-
ru: 'Группы',
|
|
230
|
-
},
|
|
231
|
-
actions: [
|
|
232
|
-
{
|
|
233
|
-
component: IconPlus,
|
|
234
|
-
props: {
|
|
235
|
-
fill: 'rgb(var(--main))',
|
|
236
|
-
},
|
|
237
|
-
condition: () => auth.state.user && auth.state.user._id,
|
|
238
|
-
action: router => router.push({ name: 'Create Organization' }),
|
|
239
|
-
},
|
|
240
|
-
],
|
|
241
|
-
},
|
|
242
|
-
component: () => import(/* webpackChunkName: "profile" */ '@martyrs/src/modules/organizations/components/pages/Organizations.vue'),
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
path: 'wallet',
|
|
246
|
-
name: 'User Wallet',
|
|
247
|
-
meta: {
|
|
248
|
-
title: {
|
|
249
|
-
en: 'Wallet',
|
|
250
|
-
ru: 'Кошелек',
|
|
251
|
-
},
|
|
252
|
-
},
|
|
253
|
-
component: () => import(/* webpackChunkName: "profile" */ '@martyrs/src/modules/wallet/views/components/pages/Wallet.vue'),
|
|
254
|
-
},
|
|
255
|
-
],
|
|
256
|
-
},
|
|
257
|
-
],
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
|
|
261
|
-
return routes;
|
|
262
|
-
}
|
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
// @martyrs/src/modules/core/controllers/classes/abac/abac.core.js
|
|
2
|
-
export default class ABACCore {
|
|
3
|
-
constructor(abac) {
|
|
4
|
-
this.abac = abac;
|
|
5
|
-
this.runningPolicies = new Map();
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Нормализация контекста
|
|
10
|
-
*/
|
|
11
|
-
normalizeContext(input) {
|
|
12
|
-
const context = {
|
|
13
|
-
user: null,
|
|
14
|
-
action: null,
|
|
15
|
-
resource: null,
|
|
16
|
-
currentResource: null,
|
|
17
|
-
resourceId: null, // Добавляем ID ресурса для кэша
|
|
18
|
-
data: {},
|
|
19
|
-
req: null,
|
|
20
|
-
socket: null,
|
|
21
|
-
params: {},
|
|
22
|
-
_cache: new Map(),
|
|
23
|
-
_abac: this.abac,
|
|
24
|
-
skipFieldPolicies: input.skipFieldPolicies || false,
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
if (input.req) {
|
|
28
|
-
// Express context - НЕ смешиваем body и query!
|
|
29
|
-
context.user = input.user || input.req.userId;
|
|
30
|
-
context.data = {
|
|
31
|
-
body: input.req.body || {},
|
|
32
|
-
query: input.req.query || {},
|
|
33
|
-
params: input.req.params || {},
|
|
34
|
-
};
|
|
35
|
-
context.params = input.req.params;
|
|
36
|
-
context.req = input.req;
|
|
37
|
-
|
|
38
|
-
// Извлекаем ID ресурса для кэша
|
|
39
|
-
context.resourceId = input.req.params?._id ||
|
|
40
|
-
input.req.params?.id ||
|
|
41
|
-
input.req.body?._id ||
|
|
42
|
-
input.req.body?.id;
|
|
43
|
-
} else if (input.socket) {
|
|
44
|
-
// WebSocket context
|
|
45
|
-
context.user = input.user || input.socket.userId;
|
|
46
|
-
context.socket = input.socket;
|
|
47
|
-
context.data = input.data || {};
|
|
48
|
-
context.resourceId = input.data?._id || input.data?.id;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// Merge остальные поля (но не перезаписываем data)
|
|
52
|
-
return Object.assign(context, {
|
|
53
|
-
...input,
|
|
54
|
-
data: context.data // Сохраняем структурированную data
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Выполнение политики с кэшированием
|
|
60
|
-
*/
|
|
61
|
-
async executePolicyWithCache(policyName, policyFn, context) {
|
|
62
|
-
// Проверяем контекстный кэш
|
|
63
|
-
const contextCacheKey = `${policyName}_${context.action}`;
|
|
64
|
-
if (context._cache.has(contextCacheKey)) {
|
|
65
|
-
return context._cache.get(contextCacheKey);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Улучшенный глобальный кэш-ключ с ID ресурса
|
|
69
|
-
const globalCacheKey = this._buildCacheKey(policyName, context);
|
|
70
|
-
|
|
71
|
-
if (this.abac.options.cacheEnabled) {
|
|
72
|
-
const cached = await this.abac.cache.get(globalCacheKey);
|
|
73
|
-
if (cached !== undefined) {
|
|
74
|
-
context._cache.set(contextCacheKey, cached);
|
|
75
|
-
return cached;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// Выполняем политику
|
|
80
|
-
const result = await policyFn(context);
|
|
81
|
-
|
|
82
|
-
// Сохраняем в кэш
|
|
83
|
-
context._cache.set(contextCacheKey, result);
|
|
84
|
-
if (this.abac.options.cacheEnabled) {
|
|
85
|
-
const tags = [
|
|
86
|
-
`user_${context.user}`,
|
|
87
|
-
`resource_${context.resource}`,
|
|
88
|
-
`policy_${policyName}`
|
|
89
|
-
];
|
|
90
|
-
|
|
91
|
-
if (context.resourceId) {
|
|
92
|
-
tags.push(`resourceId_${context.resourceId}`);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
await this.abac.cache.setWithTags(globalCacheKey, result, tags);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return result;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Построение ключа кэша с учетом ID ресурса
|
|
103
|
-
* @private
|
|
104
|
-
*/
|
|
105
|
-
_buildCacheKey(policyName, context) {
|
|
106
|
-
const parts = [
|
|
107
|
-
'policy',
|
|
108
|
-
policyName,
|
|
109
|
-
context.user,
|
|
110
|
-
context.resource,
|
|
111
|
-
context.action
|
|
112
|
-
];
|
|
113
|
-
|
|
114
|
-
if (context.resourceId) {
|
|
115
|
-
parts.push(context.resourceId);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
return parts.join('_');
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Выполнение политик с ограничением параллельности
|
|
123
|
-
*/
|
|
124
|
-
async executePoliciesLimited(policies, context, stopOnDeny = false) {
|
|
125
|
-
const results = [];
|
|
126
|
-
const limit = this.abac.options.concurrencyLimit;
|
|
127
|
-
|
|
128
|
-
// Разбиваем на батчи
|
|
129
|
-
const batches = [];
|
|
130
|
-
for (let i = 0; i < policies.length; i += limit) {
|
|
131
|
-
batches.push(policies.slice(i, i + limit));
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
for (const batch of batches) {
|
|
135
|
-
const batchPromises = batch.map(async ([name, policy]) => {
|
|
136
|
-
try {
|
|
137
|
-
const policyFn = typeof policy === 'function' ? policy : policy.fn;
|
|
138
|
-
const result = await this.executePolicyWithCache(name, policyFn, context);
|
|
139
|
-
return { name, result: this.normalizeResult(result, name) };
|
|
140
|
-
} catch (error) {
|
|
141
|
-
this.abac.logger?.error('Policy execution error', {
|
|
142
|
-
policy: name,
|
|
143
|
-
error: error.message,
|
|
144
|
-
stack: error.stack
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
return {
|
|
148
|
-
name,
|
|
149
|
-
result: {
|
|
150
|
-
allow: !this.abac.options.strictMode,
|
|
151
|
-
reason: `POLICY_ERROR_${name.toUpperCase()}`
|
|
152
|
-
},
|
|
153
|
-
error
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
const batchResults = await Promise.all(batchPromises);
|
|
159
|
-
results.push(...batchResults);
|
|
160
|
-
|
|
161
|
-
// Проверяем нужно ли остановиться
|
|
162
|
-
if (stopOnDeny) {
|
|
163
|
-
const shouldStop = batchResults.some(r => !r.result.allow || r.result.force);
|
|
164
|
-
if (shouldStop) break;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
return results;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Нормализация результата политики
|
|
173
|
-
*/
|
|
174
|
-
normalizeResult(result, policyName) {
|
|
175
|
-
if (this.abac.options.strictMode && result === undefined) {
|
|
176
|
-
return {
|
|
177
|
-
allow: false,
|
|
178
|
-
force: false,
|
|
179
|
-
reason: `UNDEFINED_IN_STRICT_MODE_${policyName.toUpperCase()}`
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
if (result && typeof result === 'object' && ('allow' in result || 'force' in result)) {
|
|
184
|
-
return {
|
|
185
|
-
allow: result.allow !== undefined ? !!result.allow : true,
|
|
186
|
-
force: !!result.force,
|
|
187
|
-
reason: result.reason || `POLICY_${policyName.toUpperCase()}`,
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
if (result === true) {
|
|
192
|
-
return {
|
|
193
|
-
allow: true,
|
|
194
|
-
force: false,
|
|
195
|
-
reason: `ALLOWED_BY_${policyName.toUpperCase()}`
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
if (result === false) {
|
|
199
|
-
return {
|
|
200
|
-
allow: false,
|
|
201
|
-
force: false,
|
|
202
|
-
reason: `DENIED_BY_${policyName.toUpperCase()}`
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
return {
|
|
207
|
-
allow: !this.abac.options.strictMode,
|
|
208
|
-
force: false,
|
|
209
|
-
reason: `NEUTRAL_${policyName.toUpperCase()}`
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Основной метод проверки доступа
|
|
215
|
-
*/
|
|
216
|
-
async checkAccess(rawContext, customPolicies = {}) {
|
|
217
|
-
const startTime = Date.now();
|
|
218
|
-
const context = this.normalizeContext(rawContext);
|
|
219
|
-
|
|
220
|
-
// Проверка сервисного запроса
|
|
221
|
-
if (context.isServiceRequest) {
|
|
222
|
-
return { allow: true, reason: 'SERVICE_REQUEST_ALLOWED' };
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
// Проверка аутентификации
|
|
226
|
-
if (!context.user && !context.options?.allowUnauthenticated) {
|
|
227
|
-
return { allow: false, reason: 'UNAUTHENTICATED_ACCESS_DENIED' };
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
// Предзагрузка ресурса
|
|
231
|
-
if (!context.currentResource) {
|
|
232
|
-
await this.loadResource(context);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
// Выполнение политик
|
|
236
|
-
const result = await this.abac.policies.evaluate(context, customPolicies);
|
|
237
|
-
|
|
238
|
-
// Аудит
|
|
239
|
-
if (this.abac.options.enableAudit) {
|
|
240
|
-
await this.audit(context, result, Date.now() - startTime);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
return result;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Загрузка ресурса
|
|
248
|
-
*/
|
|
249
|
-
async loadResource(context) {
|
|
250
|
-
const resourceModel = this.abac.getResourceModel(context.resource);
|
|
251
|
-
if (!resourceModel) return;
|
|
252
|
-
|
|
253
|
-
try {
|
|
254
|
-
let currentResource;
|
|
255
|
-
// Ищем ID в структурированной data
|
|
256
|
-
const id = context.resourceId ||
|
|
257
|
-
context.data?.body?._id ||
|
|
258
|
-
context.data?.params?._id;
|
|
259
|
-
|
|
260
|
-
if (id) {
|
|
261
|
-
currentResource = await resourceModel.findById(id);
|
|
262
|
-
} else if (context.data?.body?.url || context.data?.params?.url) {
|
|
263
|
-
const url = context.data.body?.url || context.data.params?.url;
|
|
264
|
-
currentResource = await resourceModel.findOne({ url });
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
if (currentResource) {
|
|
268
|
-
context.currentResource = currentResource;
|
|
269
|
-
context.resourceModel = resourceModel;
|
|
270
|
-
context.resourceId = currentResource._id?.toString();
|
|
271
|
-
}
|
|
272
|
-
} catch (error) {
|
|
273
|
-
this.abac.logger?.error('Resource loading error', {
|
|
274
|
-
resource: context.resource,
|
|
275
|
-
error: error.message
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Структурированный аудит
|
|
282
|
-
*/
|
|
283
|
-
async audit(context, result, duration) {
|
|
284
|
-
try {
|
|
285
|
-
const auditEntry = {
|
|
286
|
-
type: 'ACCESS_CHECK',
|
|
287
|
-
timestamp: new Date().toISOString(),
|
|
288
|
-
user: context.user,
|
|
289
|
-
resource: context.resource,
|
|
290
|
-
resourceId: context.resourceId,
|
|
291
|
-
action: context.action,
|
|
292
|
-
result: result.allow,
|
|
293
|
-
reason: result.reason,
|
|
294
|
-
duration: duration,
|
|
295
|
-
ip: context.req?.ip,
|
|
296
|
-
userAgent: context.req?.get?.('user-agent'),
|
|
297
|
-
metadata: context.auditMetadata || {}
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
// Используем структурированное логирование
|
|
301
|
-
await this.abac.logger.info('Access check', auditEntry);
|
|
302
|
-
|
|
303
|
-
// Если критическое действие - дополнительный алерт
|
|
304
|
-
if (['delete', 'admin', 'export'].includes(context.action)) {
|
|
305
|
-
await this.abac.logger.warn('Critical action attempt', auditEntry);
|
|
306
|
-
}
|
|
307
|
-
} catch (error) {
|
|
308
|
-
this.abac.logger?.error('Audit logging error', {
|
|
309
|
-
error: error.message
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|