@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
package/dist/builder.js
CHANGED
|
@@ -162,14 +162,14 @@ const template = `
|
|
|
162
162
|
requestIdleCallback(() => {
|
|
163
163
|
const link = document.createElement('link');
|
|
164
164
|
link.rel = 'manifest';
|
|
165
|
-
link.href = '/manifest.json';
|
|
165
|
+
link.href = '/pwa-manifest.json';
|
|
166
166
|
document.head.appendChild(link);
|
|
167
167
|
});
|
|
168
168
|
} else {
|
|
169
169
|
setTimeout(() => {
|
|
170
170
|
const link = document.createElement('link');
|
|
171
171
|
link.rel = 'manifest';
|
|
172
|
-
link.href = '/manifest.json';
|
|
172
|
+
link.href = '/pwa-manifest.json';
|
|
173
173
|
document.head.appendChild(link);
|
|
174
174
|
}, 0);
|
|
175
175
|
}
|
|
@@ -510,9 +510,10 @@ function createSsrDevServer(projectRoot, configs, createServer) {
|
|
|
510
510
|
try {
|
|
511
511
|
performance.mark("loading-6-start");
|
|
512
512
|
console.log("[LOADING 6] Loading server module...");
|
|
513
|
-
const
|
|
514
|
-
const
|
|
515
|
-
const
|
|
513
|
+
const jsonStats = stats.toJson();
|
|
514
|
+
const { outputPath } = jsonStats;
|
|
515
|
+
const entryName = Object.keys(jsonStats.entrypoints)[0];
|
|
516
|
+
const assetName = jsonStats.entrypoints[entryName].assets[0].name;
|
|
516
517
|
serverModule = await import(`file://${path.resolve(outputPath, assetName)}?t=${Date.now()}`);
|
|
517
518
|
if (typeof serverModule.createServer !== "function") {
|
|
518
519
|
throw new Error("Экспорт createServer не найден");
|
|
@@ -727,7 +728,7 @@ const baseConfig = (projectRoot) => {
|
|
|
727
728
|
template: {
|
|
728
729
|
preprocess: (content, { filename }) => {
|
|
729
730
|
const rewritten = content.replace(
|
|
730
|
-
/<(\w+)\s+v-slot(:[\w
|
|
731
|
+
/<(\w+)\s+v-slot(:[\w-]+)?=("|'){([^"'}]+)}("|')\s*>/g,
|
|
731
732
|
(_match, tag, slotName, _q1, slotProps, _q2) => {
|
|
732
733
|
const slotAttr = slotName || "";
|
|
733
734
|
return `<template v-slot${slotAttr}="{${slotProps}}"><${tag}>`;
|
|
@@ -736,12 +737,12 @@ const baseConfig = (projectRoot) => {
|
|
|
736
737
|
/<\/(\w+)>\s*<!--\s*v-slot-close\s*-->/g,
|
|
737
738
|
(_match, tag) => `</${tag}></template>`
|
|
738
739
|
).replace(
|
|
739
|
-
/<(\w+)(\s+#[\w
|
|
740
|
+
/<(\w+)(\s+#[\w-]+)([^>]*)\/>/g,
|
|
740
741
|
(_match, tag, slotDirective, attrs) => {
|
|
741
742
|
return `<template${slotDirective}><${tag}${attrs}/></template>`;
|
|
742
743
|
}
|
|
743
744
|
).replace(
|
|
744
|
-
/<(\w+)(\s+#[\w
|
|
745
|
+
/<(\w+)(\s+#[\w-]+)([^>]*)>(.*?)<\/\1>/gs,
|
|
745
746
|
(_match, tag, slotDirective, attrs, content2) => {
|
|
746
747
|
return `<template${slotDirective}><${tag}${attrs}>${content2}</${tag}></template>`;
|
|
747
748
|
}
|
|
@@ -902,7 +903,7 @@ const clientConfig = (projectRoot) => {
|
|
|
902
903
|
extractors: [
|
|
903
904
|
{
|
|
904
905
|
extractor: (content) => {
|
|
905
|
-
const normalClasses = content.match(/[A-Za-z0-9-_
|
|
906
|
+
const normalClasses = content.match(/[A-Za-z0-9-_:/]+/g) || [];
|
|
906
907
|
const scopedAttrs = content.match(/\[data-v-[a-zA-Z0-9]*\]/g) || [];
|
|
907
908
|
return [...normalClasses, ...scopedAttrs];
|
|
908
909
|
},
|
|
@@ -916,6 +917,33 @@ const clientConfig = (projectRoot) => {
|
|
|
916
917
|
fileName: "manifest.json",
|
|
917
918
|
publicPath: "/"
|
|
918
919
|
}),
|
|
920
|
+
new RspackManifestPlugin({
|
|
921
|
+
fileName: "pwa-manifest.json",
|
|
922
|
+
seed: {
|
|
923
|
+
name: process.env.APP_NAME || "App by Martyrs Framework",
|
|
924
|
+
short_name: process.env.APP_SHORT_NAME || "App",
|
|
925
|
+
description: process.env.APP_DESCRIPTION || "Progressive Web App by Martyrs Framework",
|
|
926
|
+
theme_color: "#000000",
|
|
927
|
+
background_color: "#ffffff",
|
|
928
|
+
display: "standalone",
|
|
929
|
+
orientation: "portrait",
|
|
930
|
+
scope: "/",
|
|
931
|
+
start_url: "/",
|
|
932
|
+
icons: [
|
|
933
|
+
{
|
|
934
|
+
src: "/favicon/android-chrome-192x192.png",
|
|
935
|
+
sizes: "192x192",
|
|
936
|
+
type: "image/png"
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
src: "/favicon/android-chrome-512x512.png",
|
|
940
|
+
sizes: "512x512",
|
|
941
|
+
type: "image/png"
|
|
942
|
+
}
|
|
943
|
+
]
|
|
944
|
+
},
|
|
945
|
+
generate: (seed) => seed
|
|
946
|
+
}),
|
|
919
947
|
...isProd2 ? [
|
|
920
948
|
new InjectManifest({
|
|
921
949
|
swSrc: path.resolve(projectRoot, "../public/sw.js"),
|
|
@@ -941,33 +969,6 @@ const clientConfig = (projectRoot) => {
|
|
|
941
969
|
return { manifest };
|
|
942
970
|
}
|
|
943
971
|
]
|
|
944
|
-
}),
|
|
945
|
-
new RspackManifestPlugin({
|
|
946
|
-
fileName: "pwa-manifest.json",
|
|
947
|
-
seed: {
|
|
948
|
-
name: process.env.APP_NAME || "App by Martyrs Framework",
|
|
949
|
-
short_name: process.env.APP_SHORT_NAME || "App",
|
|
950
|
-
description: process.env.APP_DESCRIPTION || "Progressive Web App by Martyrs Framework",
|
|
951
|
-
theme_color: "#000000",
|
|
952
|
-
background_color: "#ffffff",
|
|
953
|
-
display: "standalone",
|
|
954
|
-
orientation: "portrait",
|
|
955
|
-
scope: "/",
|
|
956
|
-
start_url: "/",
|
|
957
|
-
icons: [
|
|
958
|
-
{
|
|
959
|
-
src: "/favicon/android-chrome-192x192.png",
|
|
960
|
-
sizes: "192x192",
|
|
961
|
-
type: "image/png"
|
|
962
|
-
},
|
|
963
|
-
{
|
|
964
|
-
src: "/favicon/android-chrome-512x512.png",
|
|
965
|
-
sizes: "512x512",
|
|
966
|
-
type: "image/png"
|
|
967
|
-
}
|
|
968
|
-
]
|
|
969
|
-
},
|
|
970
|
-
generate: (seed) => seed
|
|
971
972
|
})
|
|
972
973
|
] : []
|
|
973
974
|
],
|
|
@@ -1153,18 +1154,25 @@ const apiConfig = (projectRoot) => {
|
|
|
1153
1154
|
return {
|
|
1154
1155
|
target: "node",
|
|
1155
1156
|
mode: "development",
|
|
1156
|
-
entry:
|
|
1157
|
+
entry: {
|
|
1158
|
+
server: path.resolve(projectRoot, "src/server.js")
|
|
1159
|
+
},
|
|
1157
1160
|
output: {
|
|
1158
1161
|
filename: "server.js",
|
|
1162
|
+
chunkFilename: "[name].server.js",
|
|
1159
1163
|
path: path.resolve(projectRoot, "builds/web/server"),
|
|
1160
1164
|
libraryTarget: "module",
|
|
1161
1165
|
chunkFormat: "module",
|
|
1166
|
+
chunkLoading: "import",
|
|
1162
1167
|
module: true,
|
|
1163
1168
|
clean: true
|
|
1164
1169
|
},
|
|
1165
1170
|
experiments: {
|
|
1166
1171
|
outputModule: true
|
|
1167
1172
|
},
|
|
1173
|
+
optimization: {
|
|
1174
|
+
minimize: false
|
|
1175
|
+
},
|
|
1168
1176
|
resolve: {
|
|
1169
1177
|
alias: {
|
|
1170
1178
|
"@martyrs": path.resolve(projectRoot, "martyrs")
|
|
@@ -1183,13 +1191,17 @@ const apiConfig = (projectRoot) => {
|
|
|
1183
1191
|
}),
|
|
1184
1192
|
// Для .node файлов тоже используем module
|
|
1185
1193
|
function({ context, request }, callback) {
|
|
1186
|
-
if (
|
|
1194
|
+
if (request.endsWith(".node")) {
|
|
1187
1195
|
return callback(null, `module ${request}`);
|
|
1188
1196
|
}
|
|
1189
1197
|
callback();
|
|
1190
1198
|
}
|
|
1191
1199
|
],
|
|
1192
|
-
plugins: [
|
|
1200
|
+
plugins: [
|
|
1201
|
+
new rspack.optimize.LimitChunkCountPlugin({
|
|
1202
|
+
maxChunks: 1
|
|
1203
|
+
})
|
|
1204
|
+
],
|
|
1193
1205
|
module: {
|
|
1194
1206
|
rules: [
|
|
1195
1207
|
{
|
|
@@ -2,7 +2,7 @@ const applyCommonSchema = (function applyCommonSchema2(schema, db) {
|
|
|
2
2
|
schema.add({
|
|
3
3
|
status: {
|
|
4
4
|
type: String,
|
|
5
|
-
enum: ["draft", "published", "
|
|
5
|
+
enum: ["draft", "published", "internal", "archived", "removed"],
|
|
6
6
|
default: "draft",
|
|
7
7
|
required: true
|
|
8
8
|
}
|
package/dist/community.server.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Types } from "mongoose";
|
|
2
|
-
import { q as queryProcessorCore } from "./queryProcessor-
|
|
3
|
-
import { a as applyCommonSchema } from "./common.schema-
|
|
2
|
+
import { q as queryProcessorCore } from "./queryProcessor-C_5Iipam.js";
|
|
3
|
+
import { a as applyCommonSchema } from "./common.schema-DswiUXKB.js";
|
|
4
4
|
import { a as applyEngagementSchema } from "./engagement.schema-fh6W1fb_.js";
|
|
5
5
|
import { a as applyMetadataSchema } from "./metadata.schema-CIRR_WQ-.js";
|
|
6
6
|
import { a as applyOwnershipSchema } from "./ownership.schema-fwwDf_e5.js";
|
|
7
7
|
import { m as middlewareIndexFactory$1 } from "./index-_Edcmck_.js";
|
|
8
|
-
import { c as coreabac } from "./
|
|
8
|
+
import { c as coreabac } from "./abac-BPl9Bmf9.js";
|
|
9
9
|
const ObjectId$2 = { Types }.Types.ObjectId;
|
|
10
10
|
function getCommentsLookupStage() {
|
|
11
11
|
return {
|
|
@@ -749,10 +749,10 @@ const middlewareIndexFactory = (db) => {
|
|
|
749
749
|
verifyBlogpost
|
|
750
750
|
};
|
|
751
751
|
};
|
|
752
|
-
const { getInstance: getInstance$
|
|
752
|
+
const { getInstance: getInstance$1 } = coreabac;
|
|
753
753
|
const blogRoutes = (function(app, db, origins) {
|
|
754
754
|
const controller = controllerFactory(db);
|
|
755
|
-
const abac = getInstance$
|
|
755
|
+
const abac = getInstance$1(db);
|
|
756
756
|
const { authJwt } = middlewareIndexFactory$1(db);
|
|
757
757
|
const { verifyBlogpost } = middlewareIndexFactory(db);
|
|
758
758
|
app.get(
|
|
@@ -770,10 +770,10 @@ const blogRoutes = (function(app, db, origins) {
|
|
|
770
770
|
app.post("/api/blog/update", [authJwt.verifyToken(), abac.middleware("blogposts", "edit"), verifyBlogpost.checkNameNotEmpty, verifyBlogpost.checkBlogpostExistOrNot], controller.update);
|
|
771
771
|
app.delete("/api/blog/delete/:_id", [authJwt.verifyToken(), abac.middleware("blogposts", "delete")], controller.delete);
|
|
772
772
|
});
|
|
773
|
-
const { getInstance
|
|
773
|
+
const { getInstance } = coreabac;
|
|
774
774
|
const commentsRoutes = (function(app, db) {
|
|
775
775
|
const controller = commentControllerFactory(db);
|
|
776
|
-
const abac = getInstance
|
|
776
|
+
const abac = getInstance(db);
|
|
777
777
|
const { authJwt } = middlewareIndexFactory$1(db);
|
|
778
778
|
app.get(
|
|
779
779
|
"/comments/read",
|
|
@@ -790,20 +790,59 @@ const commentsRoutes = (function(app, db) {
|
|
|
790
790
|
app.post("/comments/update/:url", [authJwt.verifyToken(), abac.middleware("comments", "edit")], controller.update);
|
|
791
791
|
app.delete("/comments/delete/:url", [authJwt.verifyToken(), abac.middleware("comments", "delete")], controller.delete);
|
|
792
792
|
});
|
|
793
|
-
const { getInstance } = coreabac;
|
|
794
793
|
const reactionsRoutes = (function(app, db) {
|
|
795
794
|
const controller = reactionControllerFactory(db);
|
|
796
|
-
getInstance(db);
|
|
797
795
|
const { authJwt } = middlewareIndexFactory$1(db);
|
|
798
796
|
app.get("/api/reactions/read", [authJwt.verifyToken(true)], controller.read);
|
|
799
797
|
app.post("/api/reactions/create", [authJwt.verifyToken()], controller.create);
|
|
800
798
|
app.post("/api/reactions/update", [authJwt.verifyToken()], controller.update);
|
|
801
799
|
app.post("/api/reactions/delete", [authJwt.verifyToken()], controller.delete);
|
|
802
800
|
});
|
|
801
|
+
function initBlogPolicies(abac, db) {
|
|
802
|
+
abac.registerResourcePolicy(
|
|
803
|
+
"blogposts",
|
|
804
|
+
async (context) => {
|
|
805
|
+
const allowed = ["published", "active", "featured"];
|
|
806
|
+
if (context.action === "read" && !context.user && (context.options?.allowPublished || context.req?.method === "GET")) {
|
|
807
|
+
const current = context.data?.query?.status;
|
|
808
|
+
const list = Array.isArray(current) ? current : current ? [current] : [];
|
|
809
|
+
const filtered = list.filter((s) => allowed.includes(s));
|
|
810
|
+
context.req.query.status = filtered.length ? filtered : allowed;
|
|
811
|
+
context.data.query.status = context.req.query.status;
|
|
812
|
+
}
|
|
813
|
+
if (context.action === "read" && context.currentResource) {
|
|
814
|
+
const status = context.currentResource.status;
|
|
815
|
+
if (!allowed.includes(status)) {
|
|
816
|
+
if (!context.user) {
|
|
817
|
+
return { allow: false, reason: "DRAFT_POST_REQUIRES_AUTH" };
|
|
818
|
+
}
|
|
819
|
+
const ownerId = context.currentResource.owner?.target || context.currentResource.creator?.target;
|
|
820
|
+
if (String(ownerId) === String(context.user)) {
|
|
821
|
+
return { allow: true };
|
|
822
|
+
}
|
|
823
|
+
if (context.currentResource.owner?.type === "organization" && context.checkOrganizationRight) {
|
|
824
|
+
const hasOrgAccess = await context.checkOrganizationRight("blogposts", "read");
|
|
825
|
+
if (hasOrgAccess) {
|
|
826
|
+
return { allow: true, reason: "ORGANIZATION_MEMBER_ACCESS" };
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
return { allow: false, reason: "DRAFT_POST_ACCESS_DENIED" };
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
return { allow: true };
|
|
833
|
+
},
|
|
834
|
+
{ modelName: "blogpost" }
|
|
835
|
+
// важно для loadResource
|
|
836
|
+
);
|
|
837
|
+
return abac;
|
|
838
|
+
}
|
|
803
839
|
function initializeCommunity(app, db, origins, publicPath) {
|
|
804
840
|
db.blogpost = BlogpostModel(db);
|
|
805
841
|
db.comment = CommentModel(db);
|
|
806
842
|
db.reaction = ReactionModel(db);
|
|
843
|
+
const { getInstance: getInstance2 } = coreabac;
|
|
844
|
+
const abac = getInstance2(db);
|
|
845
|
+
initBlogPolicies(abac);
|
|
807
846
|
if (app) {
|
|
808
847
|
blogRoutes(app, db);
|
|
809
848
|
commentsRoutes(app, db);
|
package/dist/core.server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as coreabac } from "./abac-BPl9Bmf9.js";
|
|
2
2
|
const initCorePolicies = (function initializeDefaultPolicies(abacAccessControl) {
|
|
3
3
|
abacAccessControl.registerGlobalPolicy("AdminModeratorAccessPolicy", async (context) => {
|
|
4
4
|
const { user, req } = context;
|
|
@@ -34,8 +34,10 @@ const initCorePolicies = (function initializeDefaultPolicies(abacAccessControl)
|
|
|
34
34
|
abacAccessControl.registerGlobalPolicy("PersonalResourceOwnerPolicy", async (context) => {
|
|
35
35
|
let { user, action, data, currentResource, options } = context;
|
|
36
36
|
const ObjectId = abacAccessControl.db.mongoose.Types.ObjectId;
|
|
37
|
-
if (action === "create" && data.owner?.type === "user") {
|
|
38
|
-
|
|
37
|
+
if (action === "create" && data.body?.owner?.type === "user") {
|
|
38
|
+
const ownerTarget = data.body.owner.target;
|
|
39
|
+
const creatorTarget = data.body.creator?.target;
|
|
40
|
+
if (ownerTarget === user && creatorTarget === user) {
|
|
39
41
|
return { allow: true, force: false };
|
|
40
42
|
} else {
|
|
41
43
|
return {
|
|
@@ -99,7 +101,7 @@ const initCorePolicies = (function initializeDefaultPolicies(abacAccessControl)
|
|
|
99
101
|
});
|
|
100
102
|
return abacAccessControl;
|
|
101
103
|
});
|
|
102
|
-
const { getInstance } =
|
|
104
|
+
const { getInstance } = coreabac;
|
|
103
105
|
let _WebSocketManagerClass = null;
|
|
104
106
|
async function createWebSocketManager(...args) {
|
|
105
107
|
if (!_WebSocketManagerClass) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as middlewareFactory } from "./authJwt-J1csaMWA.js";
|
|
2
|
-
import { q as queryProcessorCore } from "./queryProcessor-
|
|
2
|
+
import { q as queryProcessorCore } from "./queryProcessor-C_5Iipam.js";
|
|
3
3
|
import { O as ObserverNamespaced } from "./core.observer-MZsqaE6F.js";
|
|
4
|
-
import { L as LoggerNamespaced } from "./
|
|
4
|
+
import { L as LoggerNamespaced } from "./abac-BPl9Bmf9.js";
|
|
5
5
|
import { C as CacheNamespaced } from "./core.cache-DALYFDdy.js";
|
|
6
6
|
class CRUDCore {
|
|
7
7
|
constructor(crud) {
|
|
@@ -679,9 +679,9 @@ class CRUDPolicies {
|
|
|
679
679
|
action,
|
|
680
680
|
req,
|
|
681
681
|
data: {
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
params: req.params
|
|
682
|
+
body: req.body || {},
|
|
683
|
+
query: req.query || {},
|
|
684
|
+
params: req.params || {}
|
|
685
685
|
},
|
|
686
686
|
params: req.params
|
|
687
687
|
};
|
|
@@ -734,8 +734,8 @@ class CRUDPolicies {
|
|
|
734
734
|
action: "read",
|
|
735
735
|
req,
|
|
736
736
|
data: {
|
|
737
|
-
|
|
738
|
-
params: req.params
|
|
737
|
+
query: req.query || {},
|
|
738
|
+
params: req.params || {}
|
|
739
739
|
},
|
|
740
740
|
params: req.params
|
|
741
741
|
};
|
package/dist/events.server.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { q as queryProcessorCore } from "./queryProcessor-
|
|
1
|
+
import { q as queryProcessorCore } from "./queryProcessor-C_5Iipam.js";
|
|
2
2
|
import { c as createFriendlyURL, a as applyMetadataSchema } from "./metadata.schema-CIRR_WQ-.js";
|
|
3
3
|
import Stripe from "stripe";
|
|
4
4
|
import { Types } from "mongoose";
|
|
5
5
|
import { c as controllerFactory } from "./tickets.controller-B7r0mK-5.js";
|
|
6
|
-
import { a as applyCommonSchema } from "./common.schema-
|
|
6
|
+
import { a as applyCommonSchema } from "./common.schema-DswiUXKB.js";
|
|
7
7
|
import { a as applyEngagementSchema } from "./engagement.schema-fh6W1fb_.js";
|
|
8
8
|
import { a as applyOwnershipSchema } from "./ownership.schema-fwwDf_e5.js";
|
|
9
9
|
import { m as middlewareIndexFactory$1 } from "./index-_Edcmck_.js";
|
|
10
|
-
import { c as coreabac } from "./
|
|
10
|
+
import { c as coreabac } from "./abac-BPl9Bmf9.js";
|
|
11
11
|
class serviceIntegrations {
|
|
12
12
|
async createProduct(event) {
|
|
13
13
|
throw new Error("createProduct method not implemented");
|
package/dist/gallery.server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as queryProcessorCore } from "./queryProcessor-
|
|
1
|
+
import { q as queryProcessorCore } from "./queryProcessor-C_5Iipam.js";
|
|
2
2
|
import path from "path";
|
|
3
|
-
import { a as applyCommonSchema } from "./common.schema-
|
|
3
|
+
import { a as applyCommonSchema } from "./common.schema-DswiUXKB.js";
|
|
4
4
|
import { a as applyEngagementSchema } from "./engagement.schema-fh6W1fb_.js";
|
|
5
5
|
import { a as applyOwnershipSchema } from "./ownership.schema-fwwDf_e5.js";
|
|
6
6
|
import { m as middlewareIndexFactory } from "./index-_Edcmck_.js";
|
package/dist/inventory.server.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { a as applyOwnershipSchema } from "./ownership.schema-fwwDf_e5.js";
|
|
2
2
|
import { m as middlewareFactory } from "./authJwt-J1csaMWA.js";
|
|
3
|
-
import { c as coreabac } from "./
|
|
4
|
-
import { q as queryProcessorCore } from "./queryProcessor-
|
|
3
|
+
import { L as LoggerNamespaced, c as coreabac } from "./abac-BPl9Bmf9.js";
|
|
4
|
+
import { q as queryProcessorCore } from "./queryProcessor-C_5Iipam.js";
|
|
5
5
|
import { C as CacheNamespaced } from "./core.cache-DALYFDdy.js";
|
|
6
|
-
import { L as LoggerNamespaced } from "./core.logger-C3q8A9dl.js";
|
|
7
6
|
import { O as ObserverNamespaced } from "./core.observer-MZsqaE6F.js";
|
|
8
7
|
import { a as Validator, V as Verifier } from "./core.verifier-gPPX_jhf.js";
|
|
9
|
-
import { C as CRUD } from "./crud-
|
|
10
|
-
import { A as ABAC } from "./abac-DYoheWuc.js";
|
|
8
|
+
import { C as CRUD } from "./crud-q1ye5IhV.js";
|
|
11
9
|
const StockAdjustmentModel = (db) => {
|
|
12
10
|
const StockAdjustmentSchema = new db.mongoose.Schema({
|
|
13
11
|
product: {
|
|
@@ -969,7 +967,7 @@ function stockAlertsVerifierFactory(db) {
|
|
|
969
967
|
deleteVerifier
|
|
970
968
|
};
|
|
971
969
|
}
|
|
972
|
-
const { getInstance: getInstance$2 } =
|
|
970
|
+
const { getInstance: getInstance$2 } = coreabac;
|
|
973
971
|
function setupStockAlertsRoutes(app, db) {
|
|
974
972
|
const abac = getInstance$2(db);
|
|
975
973
|
const verifier = stockAlertsVerifierFactory();
|