@ozdao/martyrs 0.2.604 → 0.2.605
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/_virtual/dayjs.min.js +1 -1
- package/dist/_virtual/weekOfYear.js +1 -1
- package/dist/{abac-Blt8bUTL.js → abac-kz5xI99l.js} +1 -0
- package/dist/auth.server.js +52 -12
- package/dist/builder.js +67 -2
- package/dist/chats.server.js +2 -2
- package/dist/community.server.js +3 -3
- package/dist/core.server.js +2 -2
- package/dist/{core.websocket-Cl76z2wT.js → core.websocket-B2FA8gGl.js} +0 -2
- package/dist/{crud-BT5FIvQC.js → crud-Cwn0frBP.js} +8 -2
- package/dist/events.server.js +4 -4
- package/dist/files.server.js +1 -1
- package/dist/gallery.server.js +2 -2
- package/dist/governance.server.js +10 -10
- package/dist/{index-kvBwwb0w.js → index-CPACC651.js} +1 -1
- package/dist/inventory.server.js +4 -4
- package/dist/{mailing-DT7nbNjZ.js → mailing-BBCidXGr.js} +38 -2
- package/dist/marketplace.server.js +2 -2
- package/dist/martyrs/dist/martyrs.es3.js +1 -1
- package/dist/martyrs/dist/martyrs.es3.js.map +1 -1
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/dayjs.min.js +1 -1
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/dayjs.min.js.map +1 -1
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/plugin/weekOfYear.js +1 -1
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/plugin/weekOfYear.js.map +1 -1
- package/dist/{node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_ → martyrs/node_modules/.pnpm/vue-draggable-next@2.3.0_sortablejs@1.15.7_vue@3.5.13}/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +305 -268
- package/dist/martyrs/node_modules/.pnpm/vue-draggable-next@2.3.0_sortablejs@1.15.7_vue@3.5.13/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js.map +1 -0
- package/dist/martyrs/src/components/Address/Address.vue2.js +13 -13
- package/dist/martyrs/src/components/Address/Address.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Block/Block.vue.js +1 -1
- package/dist/martyrs/src/components/Button/Button.vue2.js +1 -1
- package/dist/martyrs/src/components/Button/Button.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Calendar/Calendar.vue2.js +150 -143
- package/dist/martyrs/src/components/Calendar/Calendar.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Chart/Chart.vue.js +296 -0
- package/dist/martyrs/src/components/Chart/Chart.vue.js.map +1 -0
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.js +5 -6
- package/dist/martyrs/src/components/Chips/Chips.vue.js.map +1 -1
- package/dist/martyrs/src/components/Countdown/Countdown.vue.js +5 -5
- package/dist/martyrs/src/components/Countdown/Countdown.vue.js.map +1 -1
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js +2 -2
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/{EditImages.vue2.js → EditImages.vue.js} +6 -6
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -0
- package/dist/martyrs/src/components/EmptyState/EmptyState.vue.js +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.js +4 -4
- package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldDate/FieldDate.vue.js +3 -3
- package/dist/martyrs/src/components/FieldDate/FieldDate.vue.js.map +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +27 -21
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Map/Map.vue.js +20 -16
- package/dist/martyrs/src/components/Map/Map.vue.js.map +1 -1
- package/dist/martyrs/src/components/Popup/Popup.vue.js +3 -4
- package/dist/martyrs/src/components/Popup/Popup.vue.js.map +1 -1
- package/dist/martyrs/src/components/Radio/Radio.vue.js +12 -10
- package/dist/martyrs/src/components/Radio/Radio.vue.js.map +1 -1
- package/dist/martyrs/src/components/Select/Select.vue.js +2 -2
- package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -1
- package/dist/martyrs/src/components/Status/Snack.vue.js +1 -1
- package/dist/martyrs/src/components/Status/Snack.vue.js.map +1 -1
- package/dist/martyrs/src/components/Status/Status.vue.js +1 -1
- package/dist/martyrs/src/components/Status/Status.vue.js.map +1 -1
- package/dist/martyrs/src/components/Table/Table.vue.js +21 -4
- package/dist/martyrs/src/components/Table/Table.vue.js.map +1 -1
- package/dist/martyrs/src/components/Tooltip/{Tooltip.vue2.js → Tooltip.vue.js} +2 -2
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue.js.map +1 -0
- package/dist/martyrs/src/components/Tree/Tree.vue.js +1 -1
- package/dist/martyrs/src/components/Upload/Upload.vue2.js +2 -2
- package/dist/martyrs/src/components/Upload/Upload.vue2.js.map +1 -1
- package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js +2 -2
- package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js.map +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/auth.client.js +14 -2
- package/dist/martyrs/src/modules/auth/auth.client.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js +4 -4
- package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/SidebarUserCard.vue.js +96 -0
- package/dist/martyrs/src/modules/auth/views/components/blocks/SidebarUserCard.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/BackofficeUsers.vue.js +337 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/BackofficeUsers.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +32 -18
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +76 -40
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +6 -5
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +4 -4
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +3 -1
- 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 +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js +28 -16
- package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/middlewares/auth.validation.js +6 -2
- package/dist/martyrs/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/router/users.backoffice.router.js +53 -0
- package/dist/martyrs/src/modules/auth/views/router/users.backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/store/auth.js +2 -2
- package/dist/martyrs/src/modules/auth/views/store/auth.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js +179 -253
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js +105 -44
- package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js +11 -5
- package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js +1 -1
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/community.client.js +4 -4
- package/dist/martyrs/src/modules/community/community.client.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +4 -4
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/ImageUpload.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/core.client.js +18 -16
- package/dist/martyrs/src/modules/core/core.client.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/core.app.js +25 -6
- package/dist/martyrs/src/modules/core/views/classes/core.app.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/module.manager.js +4 -2
- package/dist/martyrs/src/modules/core/views/classes/module.manager.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/AlertDialog.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/AlertDialog.vue.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/BlockSearch.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSlider.vue.js +132 -0
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSlider.vue.js.map +1 -0
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js +3 -3
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js +6 -28
- package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js.map +1 -1
- package/dist/martyrs/src/modules/{auth → core}/views/components/blocks/CardUser.vue.js +29 -11
- package/dist/martyrs/src/modules/{auth → core}/views/components/blocks/CardUser.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/HelpCard.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/blocks/HelpCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +41 -26
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/elements/OnlineIndicator.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +2 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js +5 -5
- package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/CitySelection.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/partials/CitySelection.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Footer.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/partials/Footer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js +4 -4
- package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js +3 -3
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js +6 -6
- package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/mixins/mixins.js +14 -1
- package/dist/martyrs/src/modules/core/views/mixins/mixins.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/plugins/date-picker.plugin.js +8 -5
- package/dist/martyrs/src/modules/core/views/plugins/date-picker.plugin.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/store/core.store.js +4 -0
- package/dist/martyrs/src/modules/core/views/store/core.store.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js +3 -0
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +9 -9
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/events.client.js +4 -4
- package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/router/gallery.router.js +3 -3
- package/dist/martyrs/src/modules/gallery/router/gallery.router.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js +3 -3
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js +4 -4
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js +3 -3
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js +3 -3
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js +1 -1
- package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/router/governance.router.js +3 -3
- package/dist/martyrs/src/modules/governance/views/router/governance.router.js.map +1 -1
- package/dist/martyrs/src/modules/icons/components/IconSearchPopup.vue.js +2 -2
- package/dist/martyrs/src/modules/icons/components/IconSearchPopup.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/entities/IconApplications.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconApplications.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconCustomers.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconCustomers.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconUsers.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconUsers.vue.js.map +1 -0
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +2 -2
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +2 -2
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +290 -173
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/inventory.client.js +4 -4
- package/dist/martyrs/src/modules/inventory/inventory.client.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/router/inventory.router.js +15 -0
- package/dist/martyrs/src/modules/inventory/router/inventory.router.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js +4 -4
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js +3 -3
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionOverview.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionOverview.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +3 -3
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +2 -2
- 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 +2 -2
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +6 -6
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +5 -5
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +8 -8
- 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 +5 -5
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +11 -11
- 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 +3 -3
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +11 -11
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js +162 -68
- package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.js +181 -17
- package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/router/notifications.backoffice.router.js +21 -0
- package/dist/martyrs/src/modules/notifications/router/notifications.backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/notifications/router/notifications.router.js +13 -42
- package/dist/martyrs/src/modules/notifications/router/notifications.router.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/store/notifications.store.js +66 -1
- package/dist/martyrs/src/modules/notifications/store/notifications.store.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +9 -7
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js +11 -9
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js +9 -9
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js +66 -19
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js +29 -27
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js +7 -12
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js +4 -4
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +46 -25
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js +54 -38
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +454 -139
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +2 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +141 -68
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +38 -32
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +4 -4
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +167 -95
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.js +22 -20
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/orders/store/orders.js +3 -5
- package/dist/martyrs/src/modules/orders/store/orders.js.map +1 -1
- package/dist/martyrs/src/modules/orders/store/shopcart.js +5 -5
- package/dist/martyrs/src/modules/orders/store/shopcart.js.map +1 -1
- package/dist/martyrs/src/modules/orders/utils/rent-price.js +60 -0
- package/dist/martyrs/src/modules/orders/utils/rent-price.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +45 -55
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.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/elements/ButtonToggleMembership.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +8 -8
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +216 -83
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +35 -25
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +3 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +20 -18
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.js +39 -33
- package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js +81 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/Pages.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/Pages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/router/pages.router.js +2 -2
- package/dist/martyrs/src/modules/pages/views/router/pages.router.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +9 -25
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +34 -17
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +96 -96
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +22 -9
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/router/categories.router.js +2 -2
- package/dist/martyrs/src/modules/products/router/categories.router.js.map +1 -1
- package/dist/martyrs/src/modules/products/router/products.router.js +17 -3
- package/dist/martyrs/src/modules/products/router/products.router.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttBar.vue.js +11 -10
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttBar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue.js +197 -81
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue.js +2 -2
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +2 -2
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +685 -80
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +68 -18
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/router/rents.router.js +3 -3
- package/dist/martyrs/src/modules/rents/views/router/rents.router.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/store/rents.store.js +1 -1
- package/dist/martyrs/src/modules/rents/views/store/rents.store.js.map +1 -1
- package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js +3 -3
- package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js.map +1 -1
- package/dist/martyrs/src/modules/reports/router/reports.router.js +1 -1
- package/dist/martyrs/src/modules/reports/router/reports.router.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +5 -5
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +3 -3
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +9 -7
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +29 -37
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +8 -8
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/router/spots.router.js +3 -3
- package/dist/martyrs/src/modules/spots/router/spots.router.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +3 -3
- package/dist/martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js.map +1 -1
- package/dist/martyrs.es10.js +59 -57
- package/dist/martyrs.es106.js +2 -2
- package/dist/martyrs.es11.js +31 -30
- package/dist/martyrs.es113.js +22 -166
- package/dist/martyrs.es114.js +4 -457
- package/dist/martyrs.es115.js +8 -40
- package/dist/martyrs.es116.js +166 -9
- package/dist/martyrs.es117.js +451 -43
- package/dist/martyrs.es118.js +38 -10
- package/dist/martyrs.es119.js +9 -44
- package/dist/martyrs.es12.js +8 -9
- package/dist/martyrs.es120.js +49 -4
- package/dist/martyrs.es121.js +10 -127
- package/dist/martyrs.es122.js +42 -98
- package/dist/martyrs.es123.js +4 -86
- package/dist/martyrs.es124.js +120 -29
- package/dist/martyrs.es125.js +99 -10
- package/dist/martyrs.es126.js +71 -24
- package/dist/martyrs.es127.js +37 -8
- package/dist/martyrs.es128.js +11 -22
- package/dist/martyrs.es129.js +39 -4
- package/dist/martyrs.es13.js +22 -19
- package/dist/martyrs.es130.js +9 -8
- package/dist/martyrs.es131.js +7 -7
- package/dist/martyrs.es132.js +2 -2
- package/dist/martyrs.es133.js +1 -1
- package/dist/martyrs.es135.js +1 -1
- package/dist/martyrs.es137.js +1 -1
- package/dist/martyrs.es138.js +7 -8
- package/dist/martyrs.es139.js +8 -7
- package/dist/martyrs.es14.js +2 -2
- package/dist/martyrs.es140.js +2 -2
- package/dist/martyrs.es144.js +10 -29
- package/dist/martyrs.es145.js +29 -10
- package/dist/martyrs.es146.js +2 -2
- package/dist/martyrs.es147.js +2 -2
- package/dist/martyrs.es149.js +1 -1
- package/dist/martyrs.es2.js +31 -30
- package/dist/martyrs.es22.js +16 -16
- package/dist/martyrs.es23.js +8 -8
- package/dist/martyrs.es24.js +9 -9
- package/dist/martyrs.es26.js +9 -11
- package/dist/martyrs.es27.js +9 -9
- package/dist/martyrs.es28.js +1 -1
- package/dist/martyrs.es29.js +5 -5
- package/dist/martyrs.es3.js +1 -1
- package/dist/martyrs.es38.js +1 -1
- package/dist/martyrs.es4.js +12 -12
- package/dist/martyrs.es41.js +34 -224
- package/dist/martyrs.es5.js +251 -238
- package/dist/martyrs.es61.js +33 -26
- package/dist/martyrs.es74.js +7 -7
- package/dist/martyrs.es76.js +12 -12
- package/dist/martyrs.es8.js +31 -31
- package/dist/music.server.js +3 -3
- package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@2.0.2/node_modules/@googlemaps/js-api-loader/dist/index.js +90 -0
- package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@2.0.2/node_modules/@googlemaps/js-api-loader/dist/index.js.map +1 -0
- package/dist/notifications.server.js +255 -23
- package/dist/orders.server.js +674 -136
- package/dist/organizations.server.js +11 -6
- package/dist/products.server.js +68 -7
- package/dist/{queryProcessor-C_5Iipam.js → queryProcessor-B2FCngFP.js} +3 -2
- package/dist/rents.server.js +183 -7
- package/dist/{socials.schema-DxnnaBgO.js → socials.schema-C3RjkqJv.js} +4 -0
- package/dist/spots.server.js +1 -1
- package/dist/style.css +292 -204
- package/dist/{tickets.controller-DdF85W-i.js → tickets.controller-Dpzf4kQx.js} +1 -1
- package/dist/wallet.server.js +2 -2
- package/package.json +5 -3
- package/src/builder/modes/ssr.rspack.dev.js +2 -0
- package/src/builder/rspack/rspack.config.ssr.client.js +58 -1
- package/src/builder/ssr/asset-resolver.js +1 -1
- package/src/builder/templates/page.js +2 -0
- package/src/components/Address/Address.vue +16 -16
- package/src/components/Button/Button.vue +0 -1
- package/src/components/ButtonSegmented/ButtonSegmented.vue +1 -1
- package/src/components/Calendar/Calendar.vue +141 -118
- package/src/components/Chart/Chart.vue +216 -0
- package/src/components/Checkbox/Checkbox.vue +1 -1
- package/src/components/Chips/Chips.vue +4 -5
- package/src/components/Countdown/Countdown.vue +5 -5
- package/src/components/DatePicker/DatePicker.vue +2 -2
- package/src/components/EditImages/EditImages.vue +3 -3
- package/src/components/EmptyState/EmptyState.vue +1 -1
- package/src/components/Feed/Feed.vue +5 -0
- package/src/components/Field/Field.vue +3 -3
- package/src/components/FieldDate/FieldDate.vue +2 -2
- package/src/components/LocationMarker/LocationMarker.vue +28 -21
- package/src/components/Map/Map.vue +20 -15
- package/src/components/Popup/Popup.vue +3 -3
- package/src/components/Radio/Radio.vue +2 -2
- package/src/components/Select/Select.vue +1 -1
- package/src/components/Status/Snack.vue +1 -1
- package/src/components/Status/Status.vue +1 -1
- package/src/components/Table/Table.vue +16 -1
- package/src/components/Upload/Upload.vue +1 -1
- package/src/components/UploadImage/UploadImage.vue +1 -1
- package/src/components/UploadImageMultiple/UploadImageMultiple.vue +1 -1
- package/src/jit/rules.js +4 -0
- package/src/modules/TASKS.MD +16 -3
- package/src/modules/auth/auth.client.js +18 -3
- package/src/modules/auth/controllers/routes/users.routes.js +18 -0
- package/src/modules/auth/controllers/services/auth.service.js +3 -3
- package/src/modules/auth/controllers/services/users.service.js +34 -5
- package/src/modules/auth/views/components/blocks/OtpDialog.vue +4 -4
- package/src/modules/auth/views/components/blocks/PopupAuth.vue +1 -1
- package/src/modules/auth/views/components/blocks/SidebarUserCard.vue +95 -0
- package/src/modules/auth/views/components/pages/BackofficeUsers.vue +337 -0
- package/src/modules/auth/views/components/pages/Invite.vue +1 -1
- package/src/modules/auth/views/components/pages/Profile.vue +1 -1
- package/src/modules/auth/views/components/pages/ProfileEdit.vue +23 -14
- package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +45 -26
- package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +8 -7
- package/src/modules/auth/views/components/pages/ResetPassword.vue +4 -4
- package/src/modules/auth/views/components/pages/SignUp.vue +3 -3
- package/src/modules/auth/views/components/pages/UserDashboard.vue +8 -5
- package/src/modules/auth/views/components/sections/FeaturedUsers.vue +1 -1
- package/src/modules/auth/views/components/sections/SliderFeatures.vue +1 -1
- package/src/modules/auth/views/middlewares/auth.validation.js +7 -2
- package/src/modules/auth/views/router/users.backoffice.router.js +39 -0
- package/src/modules/auth/views/store/auth.js +2 -2
- package/src/modules/backoffice/components/admin/Backcalls.vue +2 -2
- package/src/modules/backoffice/components/admin/Dashboard.sublime-workspace +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
- package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +102 -139
- package/src/modules/backoffice/configs/navigation.backoffice.config.js +91 -29
- package/src/modules/backoffice/router/backoffice.router.js +7 -1
- package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
- package/src/modules/chats/components/sections/ChatWindow.vue +1 -1
- package/src/modules/community/community.client.js +4 -4
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/layouts/Community.vue +4 -4
- package/src/modules/community/components/sections/Comment.vue +1 -1
- package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
- package/src/modules/core/TASK.MD +2 -2
- package/src/modules/core/controllers/classes/abac/abac.core.js +1 -0
- package/src/modules/core/controllers/classes/core.websocket.js +0 -2
- package/src/modules/core/controllers/classes/crud/crud.core.js +6 -0
- package/src/modules/core/controllers/classes/crud/crud.service.js +6 -0
- package/src/modules/core/controllers/utils/mailing.js +35 -26
- package/src/modules/core/controllers/utils/queryProcessor.js +4 -2
- package/src/modules/core/core.client.js +1 -0
- package/src/modules/core/models/schemas/embedding.schema.js +8 -0
- package/src/modules/core/models/schemas/socials.schema.js +4 -0
- package/src/modules/core/sw.js +448 -0
- package/src/modules/core/views/classes/core.app.js +37 -13
- package/src/modules/core/views/classes/module.manager.js +3 -1
- package/src/modules/core/views/components/blocks/AlertDialog.vue +1 -1
- package/src/modules/core/views/components/blocks/BlockSearch.vue +1 -1
- package/src/modules/core/views/components/blocks/BlockSlider.vue +96 -0
- package/src/modules/core/views/components/blocks/CardHeader.vue +2 -2
- package/src/modules/core/views/components/blocks/CardStat.vue +4 -18
- package/src/modules/{auth → core}/views/components/blocks/CardUser.vue +45 -20
- package/src/modules/core/views/components/blocks/HelpCard.vue +1 -1
- package/src/modules/core/views/components/blocks/PopupAuth.vue +1 -1
- package/src/modules/core/views/components/blocks/PopupDateSelector.vue +41 -24
- package/src/modules/core/views/components/layouts/Client.vue +1 -1
- package/src/modules/core/views/components/pages/404.vue +5 -5
- package/src/modules/core/views/components/partials/BottomNavigationBar.vue +5 -5
- package/src/modules/core/views/components/partials/CitySelection.vue +2 -2
- package/src/modules/core/views/components/partials/Footer.centered.vue +2 -2
- package/src/modules/core/views/components/partials/Footer.vue +2 -2
- package/src/modules/core/views/components/partials/Header.vue +3 -3
- package/src/modules/core/views/components/partials/LocationSelection.vue +1 -1
- package/src/modules/core/views/components/partials/Navigation.vue +1 -1
- package/src/modules/core/views/components/sections/Filters.vue +2 -2
- package/src/modules/core/views/components/sections/SectionPageTitle.vue +2 -2
- package/src/modules/core/views/components/sections/Walkthrough.vue +6 -6
- package/src/modules/core/views/mixins/mixins.js +17 -0
- package/src/modules/core/views/plugins/date-picker.plugin.js +8 -5
- package/src/modules/core/views/store/core.store.js +5 -0
- package/src/modules/core/views/utils/vue-app-renderer.js +5 -0
- package/src/modules/events/components/pages/EditEventTickets.vue +9 -9
- package/src/modules/events/components/pages/Event.vue +2 -2
- package/src/modules/events/components/sections/EditTickets.vue +1 -1
- package/src/modules/events/components/sections/SelectDate.vue +1 -1
- package/src/modules/events/events.client.js +4 -4
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +1 -1
- package/src/modules/gallery/router/gallery.router.js +3 -3
- package/src/modules/governance/middlewares/sprints.verifier.js +3 -3
- package/src/modules/governance/middlewares/tasks.verifier.js +3 -3
- package/src/modules/governance/models/sprint.model.js +1 -1
- package/src/modules/governance/models/task.model.js +1 -1
- package/src/modules/governance/reactcode/src/components/TaskStatusBadge.tsx +1 -1
- package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +3 -3
- package/src/modules/governance/views/components/blocks/CardSprintItem.vue +4 -4
- package/src/modules/governance/views/components/blocks/CardTaskItem.vue +2 -2
- package/src/modules/governance/views/components/blocks/CardVotingItem.vue +3 -3
- package/src/modules/governance/views/components/pages/Initiatives.vue +3 -3
- package/src/modules/governance/views/components/partials/TaskStatusBadge.vue +1 -1
- package/src/modules/governance/views/components/sections/FormSprintDetails.vue +1 -1
- package/src/modules/governance/views/components/sections/FormTaskDetails.vue +1 -1
- package/src/modules/governance/views/router/governance.router.js +3 -3
- package/src/modules/icons/components/IconSearchPopup.vue +1 -1
- package/src/modules/icons/entities/IconApplications.vue +14 -0
- package/src/modules/icons/entities/IconCustomers.vue +14 -0
- package/src/modules/icons/entities/IconUsers.vue +14 -0
- package/src/modules/inventory/components/forms/AdjustmentForm.vue +2 -2
- package/src/modules/inventory/components/forms/ColumnSettingsMenu.vue +2 -2
- package/src/modules/inventory/components/forms/HistoryView.vue +1 -1
- package/src/modules/inventory/components/forms/StockAlertsForm.vue +3 -3
- package/src/modules/inventory/components/pages/Inventory.vue +278 -159
- package/src/modules/inventory/components/pages/InventoryEdit.vue +2 -2
- package/src/modules/inventory/inventory.client.js +4 -4
- package/src/modules/inventory/models/stock.audit.model.js +1 -1
- package/src/modules/inventory/router/inventory.router.js +12 -0
- package/src/modules/landing/components/sections/SectionEarn.vue +3 -3
- package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeatures.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
- package/src/modules/landing/components/sections/SectionGuide.vue +2 -2
- package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
- package/src/modules/landing/components/sections/SectionHeroVideo.vue +1 -1
- package/src/modules/landing/components/sections/SectionMobileApp.vue +2 -2
- package/src/modules/landing/components/sections/SectionOverview.vue +1 -1
- package/src/modules/landing/components/sections/SectionRoadmap.vue +1 -1
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
- package/src/modules/marketplace/views/components/sections/SectionMenu.vue +2 -2
- package/src/modules/music/components/SidebarMusic.vue +1 -1
- package/src/modules/music/components/cards/AlbumCard.vue +1 -1
- package/src/modules/music/components/cards/ArtistCard.vue +1 -1
- package/src/modules/music/components/cards/ArtistCardSmall.vue +1 -1
- package/src/modules/music/components/cards/PlaylistCard.vue +1 -1
- package/src/modules/music/components/cards/TrackListCard.vue +6 -6
- package/src/modules/music/components/forms/AlbumForm.vue +2 -2
- package/src/modules/music/components/forms/ArtistForm.vue +1 -1
- package/src/modules/music/components/forms/PlaylistForm.vue +5 -5
- package/src/modules/music/components/forms/TrackForm.vue +3 -3
- package/src/modules/music/components/pages/Album.vue +8 -8
- package/src/modules/music/components/pages/Artist.vue +5 -5
- package/src/modules/music/components/pages/Playlist.vue +11 -11
- package/src/modules/music/components/pages/SearchResults.vue +2 -2
- package/src/modules/music/components/pages/Track.vue +11 -11
- package/src/modules/music/components/player/FullscreenPlayer.vue +3 -3
- package/src/modules/music/components/player/TrackProgress.vue +1 -1
- package/src/modules/notifications/components/sections/NotificationPreferences.vue +182 -52
- package/src/modules/notifications/controllers/notifications.controller.js +242 -17
- package/src/modules/notifications/models/notification-preference.model.js +4 -0
- package/src/modules/notifications/notifications.client.js +213 -20
- package/src/modules/notifications/router/notifications.backoffice.router.js +16 -0
- package/src/modules/notifications/router/notifications.router.js +13 -45
- package/src/modules/notifications/routes/notifications.routes.js +9 -0
- package/src/modules/notifications/services/notification.service.js +33 -9
- package/src/modules/notifications/services/telegram.service.js +2 -2
- package/src/modules/notifications/services/web-push.service.js +6 -2
- package/src/modules/notifications/store/notifications.store.js +69 -0
- package/src/modules/orders/components/blocks/CardApplication.vue +9 -6
- package/src/modules/orders/components/blocks/CardCustomer.vue +10 -7
- package/src/modules/orders/components/blocks/CardOrder.vue +8 -8
- package/src/modules/orders/components/blocks/CardOrderBackoffice.vue +58 -12
- package/src/modules/orders/components/blocks/CardOrderItem.vue +31 -28
- package/src/modules/orders/components/blocks/CardOrderUser.vue +7 -12
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +3 -3
- package/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue +1 -1
- package/src/modules/orders/components/elements/PriceTotal.vue +4 -4
- package/src/modules/orders/components/forms/FormApplicationDetails.vue +1 -1
- package/src/modules/orders/components/forms/FormSelectCustomer.vue +48 -25
- package/src/modules/orders/components/pages/Applications.vue +2 -2
- package/src/modules/orders/components/pages/Customers.vue +35 -23
- package/src/modules/orders/components/pages/OrderBackoffice.vue +780 -393
- package/src/modules/orders/components/pages/OrderCreate.vue +5 -4
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +112 -42
- package/src/modules/orders/components/pages/Orders.vue +20 -19
- package/src/modules/orders/components/pages/Orders_refact.vue +3 -3
- package/src/modules/orders/components/partials/ShopCart.vue +1 -1
- package/src/modules/orders/components/sections/ApplicationDetails.vue +2 -2
- package/src/modules/orders/components/sections/AskToLogin.vue +1 -1
- package/src/modules/orders/components/sections/CustomerDetails.vue +130 -64
- package/src/modules/orders/controllers/orders.controller.js +463 -134
- package/src/modules/orders/middlewares/applications.verifier.js +3 -3
- package/src/modules/orders/middlewares/customers.verifier.js +4 -0
- package/src/modules/orders/middlewares/orders.verifier.js +187 -0
- package/src/modules/orders/models/customer.model.js +2 -0
- package/src/modules/orders/models/order.model.js +20 -2
- package/src/modules/orders/orders.client.js +21 -19
- package/src/modules/orders/routes/applications.routes.js +13 -3
- package/src/modules/orders/routes/customers.routes.js +2 -0
- package/src/modules/orders/routes/orders.routes.js +46 -4
- package/src/modules/orders/store/orders.js +4 -7
- package/src/modules/orders/store/shopcart.js +6 -7
- package/src/modules/orders/utils/rent-price.js +90 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +30 -33
- package/src/modules/organizations/components/blocks/EmptyState.vue +1 -1
- package/src/modules/organizations/components/blocks/Rating.vue +1 -1
- package/src/modules/organizations/components/blocks/Socials.vue +2 -2
- package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
- package/src/modules/organizations/components/forms/AddExistingMembersForm.vue +3 -3
- package/src/modules/organizations/components/forms/DepartmentForm.vue +1 -1
- package/src/modules/organizations/components/forms/InviteForm.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +2 -2
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +8 -8
- package/src/modules/organizations/components/pages/Organization.vue +232 -124
- package/src/modules/organizations/components/pages/OrganizationCreate.vue +3 -3
- package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +15 -6
- package/src/modules/organizations/components/pages/Organizations.vue +3 -2
- package/src/modules/organizations/components/sections/Documents.vue +1 -1
- package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
- package/src/modules/organizations/configs/navigation.organization.config.js +34 -26
- package/src/modules/organizations/controllers/organizations.controller.js +8 -3
- package/src/modules/organizations/models/organization.model.js +1 -0
- package/src/modules/organizations/organizations.client.js +39 -33
- package/src/modules/organizations/router/organizations.backoffice.router.js +67 -0
- package/src/modules/pages/views/components/pages/Pages.vue +1 -1
- package/src/modules/pages/views/router/pages.router.js +2 -2
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/blocks/CardProduct.vue +2 -2
- package/src/modules/products/components/blocks/ProductDiscounts.vue +1 -1
- package/src/modules/products/components/blocks/ProductImages.vue +1 -1
- package/src/modules/products/components/blocks/ProductVariants.vue +3 -3
- package/src/modules/products/components/elements/Price.vue +2 -2
- package/src/modules/products/components/forms/ColumnSettingsMenu.vue +2 -2
- package/src/modules/products/components/forms/ReorderSettingsForm.vue +3 -3
- package/src/modules/products/components/forms/StockAuditForm.vue +2 -2
- package/src/modules/products/components/forms/StockHistoryView.vue +1 -1
- package/src/modules/products/components/pages/Categories.vue +9 -20
- package/src/modules/products/components/pages/ProductEdit.vue +19 -3
- package/src/modules/products/components/pages/Products.vue +20 -19
- package/src/modules/products/components/sections/EditAttributes.vue +1 -1
- package/src/modules/products/components/sections/EditCategories.vue +1 -1
- package/src/modules/products/components/sections/EditDiscounts.vue +2 -2
- package/src/modules/products/components/sections/EditVariants.vue +14 -2
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/products/components/sections/ProductConfigurator.vue +1 -1
- package/src/modules/products/components/sections/SectionProduct.vue +3 -3
- package/src/modules/products/controllers/products.controller.js +50 -5
- package/src/modules/products/experiments/product-recommendation/components/HeroRecommendation.vue +2 -2
- package/src/modules/products/models/product.model.js +7 -0
- package/src/modules/products/models/variant.model.js +4 -0
- package/src/modules/products/router/categories.router.js +2 -2
- package/src/modules/products/router/products.router.js +14 -3
- package/src/modules/rents/controllers/routes/rents.routes.js +11 -0
- package/src/modules/rents/controllers/services/rents.services.js +193 -2
- package/src/modules/rents/models/rent.model.js +9 -0
- package/src/modules/rents/views/components/pages/Gant/GanttBar.vue +28 -11
- package/src/modules/rents/views/components/pages/Gant/GanttChart.vue +200 -40
- package/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue +2 -2
- package/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue +2 -2
- package/src/modules/rents/views/components/pages/Rents.vue +641 -142
- package/src/modules/rents/views/components/pages/RentsEdit.vue +44 -4
- package/src/modules/rents/views/router/rents.router.js +3 -3
- package/src/modules/rents/views/store/rents.store.js +1 -1
- package/src/modules/reports/components/pages/BackofficeReports.vue +3 -3
- package/src/modules/reports/router/reports.router.js +1 -1
- package/src/modules/spots/components/blocks/CardSpot.vue +6 -6
- package/src/modules/spots/components/pages/Spot.vue +2 -2
- package/src/modules/spots/components/pages/SpotEdit.vue +8 -6
- package/src/modules/spots/components/pages/Spots.vue +18 -24
- package/src/modules/spots/components/sections/WorktimeEdit.vue +7 -7
- package/src/modules/spots/router/spots.router.js +3 -3
- package/src/modules/wallet/views/components/blocks/CashDeposit.vue +1 -1
- package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +3 -3
- package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
- package/src/modules/wallet/views/components/pages/Wallet.vue +4 -4
- package/src/modules/wallet/views/router/wallet.router.js +1 -1
- package/src/styles/layout.scss +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js +0 -70
- package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js.map +0 -1
- package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@1.16.8/node_modules/@googlemaps/js-api-loader/dist/index.js +0 -336
- package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@1.16.8/node_modules/@googlemaps/js-api-loader/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js.map +0 -1
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
fill="rgb(var(--main))"
|
|
14
14
|
/>
|
|
15
15
|
<span v-if="options.showText || options.showTitle" class="mn-t-medium mn-b-medium d-block h3 t-black">{{ text.title }}</span>
|
|
16
|
-
<span v-if="options.showText" class="mn-b-small
|
|
16
|
+
<span v-if="options.showText" class="mn-b-small opacity-50 d-block ">{{ text.subtitle }}</span>
|
|
17
17
|
<span v-if="options.showText"class="mn-b-small uppercase p-small fw-medium d-block">or</span>
|
|
18
18
|
<button v-if="options.showText" class="cursor-pointer mn-b-small br-2px br-main radius-extra pd-l-thin pd-r-thin t-main">Browse Files</button>
|
|
19
19
|
<span v-if="options.showText" class="uppercase p-small fw-medium d-block ">Maximum size: 2MB</span>
|
package/src/jit/rules.js
CHANGED
|
@@ -153,6 +153,10 @@ export const rules = [
|
|
|
153
153
|
// Size (общие перед специфичными — для правильного каскада CSS)
|
|
154
154
|
[/^w-(.+)$/, (m, jit) => { const v = resolveValue(m[1], jit); return v ? `width: ${v};` : null; }],
|
|
155
155
|
[/^h-(.+)$/, (m, jit) => { const v = resolveValue(m[1], jit); return v ? `height: ${v};` : null; }],
|
|
156
|
+
// w-clamp-20r-25r-100 → min-width: min(20rem, 100%); max-width: min(25rem, 100%)
|
|
157
|
+
// 3 значения: min, max, cap (ограничитель, обычно 100 = 100%)
|
|
158
|
+
[/^w-clamp-(.+?)-(.+?)-(.+)$/, (m, jit) => { const mn = resolveValue(m[1], jit); const mx = resolveValue(m[2], jit); const cap = resolveValue(m[3], jit); return mn && mx && cap ? `min-width: min(${mn}, ${cap}); max-width: min(${mx}, ${cap});` : null; }],
|
|
159
|
+
[/^h-clamp-(.+?)-(.+?)-(.+)$/, (m, jit) => { const mn = resolveValue(m[1], jit); const mx = resolveValue(m[2], jit); const cap = resolveValue(m[3], jit); return mn && mx && cap ? `min-height: min(${mn}, ${cap}); max-height: min(${mx}, ${cap});` : null; }],
|
|
156
160
|
[/^w-min-(.+)$/, (m, jit) => { const v = resolveValue(m[1], jit); return v ? `min-width: ${v};` : null; }],
|
|
157
161
|
[/^w-max-(.+)$/, (m, jit) => { const v = resolveValue(m[1], jit); return v ? `max-width: ${v};` : null; }],
|
|
158
162
|
[/^h-min-(.+)$/, (m, jit) => { const v = resolveValue(m[1], jit); return v ? `min-height: ${v};` : null; }],
|
package/src/modules/TASKS.MD
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
- Добавить фильтрацию по `featured: true/false`
|
|
12
12
|
|
|
13
13
|
**Затронутые файлы**:
|
|
14
|
-
- `/Users/magicofoz/Development/OZDAO/ozdao.
|
|
15
|
-
- `/Users/magicofoz/Development/OZDAO/ozdao.
|
|
16
|
-
- `/Users/magicofoz/Development/OZDAO/ozdao.
|
|
14
|
+
- `/Users/magicofoz/Development/OZDAO/ozdao.com/app/martyrs/src/modules/core/models/schemas/common.schema.js`
|
|
15
|
+
- `/Users/magicofoz/Development/OZDAO/ozdao.com/app/martyrs/src/modules/products/models/category.model.js`
|
|
16
|
+
- `/Users/magicofoz/Development/OZDAO/ozdao.com/app/martyrs/src/modules/products/controllers/categories.controller.js`
|
|
17
17
|
- Все компоненты фронтенда, использующие статус 'featured'
|
|
18
18
|
|
|
19
19
|
---
|
|
@@ -200,3 +200,16 @@ plugin.js регистрирует варианты из variants.js через
|
|
|
200
200
|
|
|
201
201
|
---
|
|
202
202
|
|
|
203
|
+
### Chats: клиентский модуль и страница в бекофисе
|
|
204
|
+
|
|
205
|
+
**Проблема**: Модуль chats существует только на сервере. Нет клиентского модуля, контекста и UI для просмотра чатов в бекофисе.
|
|
206
|
+
|
|
207
|
+
**Решение**: Создать клиентский модуль `chats/client` с:
|
|
208
|
+
1. Контекст `backoffice` — страница `/backoffice/chats` со списком всех чатов организации
|
|
209
|
+
2. Список чатов с превью последнего сообщения, именем клиента, датой
|
|
210
|
+
3. Просмотр отдельного чата с историей сообщений
|
|
211
|
+
|
|
212
|
+
**Приоритет**: Средний — сейчас чаты работают только через API, нет UI для менеджеров
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
@@ -16,6 +16,7 @@ console.log(`[LOADING 36] Store imports completed in ${storesTime.duration.toFix
|
|
|
16
16
|
import addRoutes from '@martyrs/src/modules/core/views/router/addRoutes.js';
|
|
17
17
|
import { getAuthRoutes } from './views/router/auth.router.js';
|
|
18
18
|
import { getUsersRoutes } from './views/router/users.router.js';
|
|
19
|
+
import routerBackofficeUsers from './views/router/users.backoffice.router.js';
|
|
19
20
|
|
|
20
21
|
// Middlewares
|
|
21
22
|
import * as validationAuth from '@martyrs/src/modules/auth/views/middlewares/auth.validation.js';
|
|
@@ -44,10 +45,24 @@ function initializeAuth(app, store, router, options = {}) {
|
|
|
44
45
|
i18nManager.register('auth', locales);
|
|
45
46
|
|
|
46
47
|
const authRoute = getAuthRoutes(options);
|
|
47
|
-
const usersRoute = getUsersRoutes(options);
|
|
48
|
-
|
|
49
48
|
addRoutes(router, { ...authRoute.config, parentName: authRoute.parentName });
|
|
50
|
-
|
|
49
|
+
|
|
50
|
+
// Users client context
|
|
51
|
+
if (!options.contexts || options.contexts.includes('client')) {
|
|
52
|
+
const usersRoute = getUsersRoutes(options);
|
|
53
|
+
addRoutes(router, { ...usersRoute.config, parentName: usersRoute.parentName });
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Users backoffice context
|
|
57
|
+
if (!options.contexts || options.contexts.includes('backoffice')) {
|
|
58
|
+
addRoutes(router, {
|
|
59
|
+
parentName: options.routeBackoffice || 'Backoffice Root',
|
|
60
|
+
basePath: 'users',
|
|
61
|
+
routes: routerBackofficeUsers,
|
|
62
|
+
routeNamePrefix: 'Backoffice',
|
|
63
|
+
meta: { context: 'backoffice' },
|
|
64
|
+
});
|
|
65
|
+
}
|
|
51
66
|
|
|
52
67
|
store.addStore('auth', storeAuth);
|
|
53
68
|
store.addStore('users', storeUsers);
|
|
@@ -41,4 +41,22 @@ export default (function (app, db, origins) {
|
|
|
41
41
|
otp.dualVerify('phone')
|
|
42
42
|
], controller.updatePhone);
|
|
43
43
|
|
|
44
|
+
// Admin update (roles, status, profile)
|
|
45
|
+
app.put('/api/users/:_id/admin', [
|
|
46
|
+
authJwt.verifyToken(),
|
|
47
|
+
authJwt.isAdmin,
|
|
48
|
+
], controller.adminUpdate);
|
|
49
|
+
|
|
50
|
+
// Roles list
|
|
51
|
+
app.get('/api/roles', [
|
|
52
|
+
authJwt.verifyToken(),
|
|
53
|
+
], async (req, res) => {
|
|
54
|
+
try {
|
|
55
|
+
const roles = await db.role.find({});
|
|
56
|
+
res.status(200).send(roles);
|
|
57
|
+
} catch (err) {
|
|
58
|
+
res.status(500).send({ message: err });
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
44
62
|
});
|
|
@@ -82,7 +82,7 @@ const controllerFactory = db => {
|
|
|
82
82
|
},
|
|
83
83
|
process.env.SECRET_KEY,
|
|
84
84
|
{
|
|
85
|
-
expiresIn:
|
|
85
|
+
expiresIn: 2592000,
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
88
|
const authorities = user.roles.map(role => `ROLE_${role.name.toUpperCase()}`);
|
|
@@ -179,7 +179,7 @@ const controllerFactory = db => {
|
|
|
179
179
|
},
|
|
180
180
|
process.env.SECRET_KEY,
|
|
181
181
|
{
|
|
182
|
-
expiresIn:
|
|
182
|
+
expiresIn: 2592000,
|
|
183
183
|
}
|
|
184
184
|
);
|
|
185
185
|
res.status(200).send({
|
|
@@ -222,7 +222,7 @@ const controllerFactory = db => {
|
|
|
222
222
|
});
|
|
223
223
|
|
|
224
224
|
const token = jwt.sign({ _id: user._id, session_id: session._id }, process.env.SECRET_KEY, {
|
|
225
|
-
expiresIn:
|
|
225
|
+
expiresIn: 2592000,
|
|
226
226
|
});
|
|
227
227
|
const authorities = user.roles.map(role => `ROLE_${role.name.toUpperCase()}`);
|
|
228
228
|
return res.status(200).send({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import bcrypt from 'bcryptjs';
|
|
1
2
|
import addMembersQuantity from '@martyrs/src/modules/organizations/controllers/utils/addMembersQuantity.js';
|
|
2
3
|
import addUserStatusFields from '@martyrs/src/modules/organizations/controllers/utils/addUserStatusFields.js';
|
|
3
4
|
import queryProcessorCore from '@martyrs/src/modules/core/controllers/utils/queryProcessor.js';
|
|
@@ -112,16 +113,19 @@ const controllerFactory = db => {
|
|
|
112
113
|
const create = async (req, res) => {
|
|
113
114
|
try {
|
|
114
115
|
const newUser = {
|
|
115
|
-
phone: req.body.phone,
|
|
116
|
-
email: req.body.email,
|
|
117
116
|
roles: req.body.roles ? req.body.roles : [],
|
|
118
117
|
};
|
|
119
|
-
|
|
118
|
+
if (req.body.phone) newUser.phone = req.body.phone;
|
|
119
|
+
if (req.body.email) newUser.email = req.body.email;
|
|
120
|
+
if (req.body.username) newUser.username = req.body.username;
|
|
121
|
+
if (req.body.password) newUser.password = bcrypt.hashSync(req.body.password, 8);
|
|
122
|
+
if (req.body.profile) newUser.profile = req.body.profile;
|
|
123
|
+
let user = await User.create(newUser);
|
|
120
124
|
if (!user) {
|
|
121
125
|
return res.status(404).send({ errorCode: 'USER_NOT_CREATED', message: 'User is not created.' });
|
|
122
126
|
}
|
|
123
|
-
|
|
124
|
-
res.status(200).send(
|
|
127
|
+
user = await User.findById(user._id).select('-password -refreshToken -__v').populate('roles');
|
|
128
|
+
res.status(200).send(user);
|
|
125
129
|
} catch (err) {
|
|
126
130
|
return res.status(500).send({ errorCode: 'INTERNAL_SERVER_ERROR', message: err });
|
|
127
131
|
}
|
|
@@ -217,10 +221,35 @@ const controllerFactory = db => {
|
|
|
217
221
|
}
|
|
218
222
|
};
|
|
219
223
|
|
|
224
|
+
const adminUpdate = async (req, res) => {
|
|
225
|
+
try {
|
|
226
|
+
const { profile, username, status, roles } = req.body;
|
|
227
|
+
const updateData = {};
|
|
228
|
+
if (profile) updateData.profile = profile;
|
|
229
|
+
if (username !== undefined) updateData.username = username;
|
|
230
|
+
if (status) updateData.status = status;
|
|
231
|
+
if (roles) updateData.roles = roles.map(r => new ObjectId(r));
|
|
232
|
+
|
|
233
|
+
const user = await User.findOneAndUpdate(
|
|
234
|
+
{ _id: req.params._id },
|
|
235
|
+
updateData,
|
|
236
|
+
{ new: true }
|
|
237
|
+
).select('-password -refreshToken -__v').populate('roles');
|
|
238
|
+
if (!user) {
|
|
239
|
+
return res.status(404).send({ errorCode: 'UPDATE_FAILED', message: 'User not found.' });
|
|
240
|
+
}
|
|
241
|
+
res.status(200).send(user);
|
|
242
|
+
} catch (err) {
|
|
243
|
+
console.error('adminUpdate error:', err);
|
|
244
|
+
return res.status(500).send({ errorCode: 'INTERNAL_SERVER_ERROR', message: err.message || err });
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
|
|
220
248
|
return {
|
|
221
249
|
read,
|
|
222
250
|
create,
|
|
223
251
|
update,
|
|
252
|
+
adminUpdate,
|
|
224
253
|
updateEmail,
|
|
225
254
|
updatePhone,
|
|
226
255
|
getStats,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<Popup
|
|
3
3
|
:isPopupOpen="otpState.visible"
|
|
4
4
|
@close-popup="cancelOtp"
|
|
5
|
-
class="bg-white w-
|
|
5
|
+
class="bg-white w-clamp-20r-30r-100 radius-medium pd-medium"
|
|
6
6
|
>
|
|
7
7
|
<!-- Single mode -->
|
|
8
8
|
<section v-if="otpState.mode !== 'dual'" class="t-center">
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
{{ otpState.challenge?.type === 'email' ? 'Verify Email' : 'Verify Phone' }}
|
|
11
11
|
</h3>
|
|
12
12
|
|
|
13
|
-
<p class="mn-b-big
|
|
13
|
+
<p class="mn-b-big opacity-50">
|
|
14
14
|
{{ otpState.challenge?.type === 'email'
|
|
15
15
|
? 'Enter the code sent to your email'
|
|
16
16
|
: 'Enter the code sent to your phone' }}
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
-
<p class="mn-b-small
|
|
19
|
+
<p class="mn-b-small opacity-50">{{ otpState.challenge?.identifier }}</p>
|
|
20
20
|
|
|
21
21
|
<div class="pos-relative mn-b-big cursor-text" @click="focusInput(0)">
|
|
22
22
|
<input
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<h3 class="mn-b-medium">Verify Change</h3>
|
|
50
50
|
|
|
51
51
|
<div v-for="(challenge, idx) in otpState.challenges" :key="idx" class="mn-b-big">
|
|
52
|
-
<p class="mn-b-thin
|
|
52
|
+
<p class="mn-b-thin opacity-50">
|
|
53
53
|
{{ challenge.label === 'old' ? 'Current' : 'New' }}
|
|
54
54
|
</p>
|
|
55
55
|
<p class="mn-b-small">{{ challenge.identifier }}</p>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div class="t-center">
|
|
10
10
|
<img loading="lazy" :src="'/logo/logo.svg'" class="i-extra radius-small mn-b-medium">
|
|
11
11
|
<h3 class="mn-b-medium">{{ authState.title || t('auth.popup.title') }}</h3>
|
|
12
|
-
<p class="mn-b-semi
|
|
12
|
+
<p class="mn-b-semi opacity-50">{{ authState.subtitle || t('auth.popup.subtitle') }}</p>
|
|
13
13
|
|
|
14
14
|
<div class="flex-column flex gap-thin">
|
|
15
15
|
<Button
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="flex-shrink-0 w-100 br-t-1px br-grey"
|
|
4
|
+
:class="{
|
|
5
|
+
'pd-micro': !stateSidebar,
|
|
6
|
+
'pd-small': stateSidebar,
|
|
7
|
+
}"
|
|
8
|
+
>
|
|
9
|
+
<!-- Skeleton while loading -->
|
|
10
|
+
<Skeleton
|
|
11
|
+
v-if="loading"
|
|
12
|
+
:horizontal="true"
|
|
13
|
+
:structure="[
|
|
14
|
+
{ block: 'avatar', size: 'small' },
|
|
15
|
+
]"
|
|
16
|
+
class="radius-small pd-thin"
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
<!-- User card -->
|
|
20
|
+
<router-link
|
|
21
|
+
v-else-if="user?._id"
|
|
22
|
+
:to="`/backoffice/users/${user._id}`"
|
|
23
|
+
class="ease-quint-out flex w-100 radius-small cursor-pointer flex-nowrap"
|
|
24
|
+
:class="[
|
|
25
|
+
stateSidebar ? 'pd-thin flex-v-center' : 'w-100 flex-center',
|
|
26
|
+
theme === 'light' ? 'bg-light hover:bg-grey' : 'bg-dark hover:bg-grey'
|
|
27
|
+
]"
|
|
28
|
+
>
|
|
29
|
+
<span class="aspect-1x1 flex-child-default w-max-big w-100 flex flex-center">
|
|
30
|
+
<img
|
|
31
|
+
v-if="user.profile?.photo"
|
|
32
|
+
:src="(FILE_SERVER_URL || '') + user.profile.photo"
|
|
33
|
+
class="radius-small bg-white object-fit-cover i-semi"
|
|
34
|
+
/>
|
|
35
|
+
<PlaceholderUserpic
|
|
36
|
+
v-else
|
|
37
|
+
class="radius-small i-semi"
|
|
38
|
+
/>
|
|
39
|
+
</span>
|
|
40
|
+
|
|
41
|
+
<div
|
|
42
|
+
v-if="stateSidebar"
|
|
43
|
+
class="flex-child-default mn-l-thin o-hidden"
|
|
44
|
+
>
|
|
45
|
+
<p class="fw-medium mn-b-micro t-truncate ws-nowrap">{{ user.profile?.name || 'Anonymous' }}</p>
|
|
46
|
+
<div class="flex flex-nowrap gap-micro">
|
|
47
|
+
<span
|
|
48
|
+
v-for="(role, index) in user.roles"
|
|
49
|
+
:key="index"
|
|
50
|
+
class="pd-thin radius-small p-small fw-semi bg-white ws-nowrap"
|
|
51
|
+
>
|
|
52
|
+
{{ role.icon }} {{ role.name }}
|
|
53
|
+
</span>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</router-link>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<script setup>
|
|
61
|
+
import { ref, onMounted } from 'vue'
|
|
62
|
+
|
|
63
|
+
import Skeleton from '@martyrs/src/components/Skeleton/Skeleton.vue'
|
|
64
|
+
import PlaceholderUserpic from '@martyrs/src/modules/icons/placeholders/PlaceholderUserpic.vue'
|
|
65
|
+
|
|
66
|
+
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
|
|
67
|
+
import * as users from '@martyrs/src/modules/auth/views/store/users.js'
|
|
68
|
+
|
|
69
|
+
defineProps({
|
|
70
|
+
theme: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: 'light'
|
|
73
|
+
},
|
|
74
|
+
stateSidebar: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: false
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
const loading = ref(true)
|
|
81
|
+
const user = ref(null)
|
|
82
|
+
|
|
83
|
+
onMounted(async () => {
|
|
84
|
+
try {
|
|
85
|
+
if (auth.state.user?._id) {
|
|
86
|
+
await users.actions.read({ _id: auth.state.user._id })
|
|
87
|
+
user.value = users.state.current
|
|
88
|
+
}
|
|
89
|
+
} catch (err) {
|
|
90
|
+
console.error('Failed to load user:', err)
|
|
91
|
+
} finally {
|
|
92
|
+
loading.value = false
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
</script>
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="pos-relative">
|
|
3
|
+
<SectionPageTitle
|
|
4
|
+
title="Users"
|
|
5
|
+
:actions="[{ method: openCreate, label: '+ Add User' }]"
|
|
6
|
+
class="pd-medium pd-b-zero"
|
|
7
|
+
/>
|
|
8
|
+
|
|
9
|
+
<div class="w-100 pd-medium pos-relative">
|
|
10
|
+
<Feed
|
|
11
|
+
:search="true"
|
|
12
|
+
:showLoadMore="false"
|
|
13
|
+
:states="{
|
|
14
|
+
empty: {
|
|
15
|
+
title: 'No Users Found',
|
|
16
|
+
description: 'No users match your search criteria.'
|
|
17
|
+
}
|
|
18
|
+
}"
|
|
19
|
+
:store="{
|
|
20
|
+
read: (options) => users.actions.read(options),
|
|
21
|
+
state: users.state
|
|
22
|
+
}"
|
|
23
|
+
:options="{
|
|
24
|
+
limit: 20,
|
|
25
|
+
search: route.query.search
|
|
26
|
+
}"
|
|
27
|
+
v-slot="{ items }"
|
|
28
|
+
class="cols-1 pos-relative w-100 gap-thin"
|
|
29
|
+
>
|
|
30
|
+
<div
|
|
31
|
+
v-for="item in items"
|
|
32
|
+
:key="item._id"
|
|
33
|
+
@click="openEdit(item)"
|
|
34
|
+
class="pd-small bg-light radius-medium cursor-pointer hover-bg-white h-4r"
|
|
35
|
+
>
|
|
36
|
+
<CardUser
|
|
37
|
+
:user="item"
|
|
38
|
+
:photo="item.profile?.photo"
|
|
39
|
+
:name="item.profile?.name || 'Anonymous'"
|
|
40
|
+
:email="item.email || item.phone || item.username || '—'"
|
|
41
|
+
:role="item.roles"
|
|
42
|
+
:status="item.status"
|
|
43
|
+
:statusClass="item.status === 'active' ? 'bg-main-transp-20 t-main' : 'bg-red-transp-20 t-red'"
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
</Feed>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<!-- Create User Popup -->
|
|
50
|
+
<Popup
|
|
51
|
+
:isPopupOpen="isCreateOpen"
|
|
52
|
+
@close-popup="closeCreate"
|
|
53
|
+
title="Create User"
|
|
54
|
+
class="w-m-50r mobile:h-100 bg-white mobile:radius-zero radius-medium pd-medium"
|
|
55
|
+
>
|
|
56
|
+
<div class="for-transition w-100">
|
|
57
|
+
<Field
|
|
58
|
+
v-model:field="createData.email"
|
|
59
|
+
label="Email"
|
|
60
|
+
placeholder="user@example.com"
|
|
61
|
+
class="mn-b-thin w-100 bg-light pd-medium radius-small"
|
|
62
|
+
/>
|
|
63
|
+
|
|
64
|
+
<Field
|
|
65
|
+
v-model:field="createData.phone"
|
|
66
|
+
label="Phone"
|
|
67
|
+
placeholder="+66..."
|
|
68
|
+
class="mn-b-thin w-100 bg-light pd-medium radius-small"
|
|
69
|
+
/>
|
|
70
|
+
|
|
71
|
+
<Field
|
|
72
|
+
v-model:field="createData.username"
|
|
73
|
+
label="@"
|
|
74
|
+
placeholder="username"
|
|
75
|
+
class="mn-b-thin w-100 bg-light pd-medium radius-small"
|
|
76
|
+
/>
|
|
77
|
+
|
|
78
|
+
<Field
|
|
79
|
+
v-model:field="createData.profile.name"
|
|
80
|
+
label="Name"
|
|
81
|
+
placeholder="Full name"
|
|
82
|
+
class="mn-b-thin w-100 bg-light pd-medium radius-small"
|
|
83
|
+
/>
|
|
84
|
+
|
|
85
|
+
<Field
|
|
86
|
+
v-model:field="createData.password"
|
|
87
|
+
label="Password"
|
|
88
|
+
placeholder="Password"
|
|
89
|
+
type="password"
|
|
90
|
+
class="mn-b-semi w-100 bg-light pd-medium radius-small"
|
|
91
|
+
/>
|
|
92
|
+
|
|
93
|
+
<h4 class="mn-b-small">Roles</h4>
|
|
94
|
+
|
|
95
|
+
<div class="flex flex-wrap gap-thin mn-b-semi">
|
|
96
|
+
<div
|
|
97
|
+
v-for="role in availableRoles"
|
|
98
|
+
:key="role._id"
|
|
99
|
+
@click="toggleCreateRole(role)"
|
|
100
|
+
class="pd-l-small pd-r-small pd-t-thin pd-b-thin radius-small cursor-pointer fw-medium capitalize"
|
|
101
|
+
:class="createData.roles.includes(role._id) ? 'bg-second t-white' : 'bg-light t-dark'"
|
|
102
|
+
>
|
|
103
|
+
{{ role.name }}
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<Button
|
|
108
|
+
:submit="createUser"
|
|
109
|
+
:callback="closeCreate"
|
|
110
|
+
class="mn-b-thin bg-main w-100"
|
|
111
|
+
>
|
|
112
|
+
Create
|
|
113
|
+
</Button>
|
|
114
|
+
</div>
|
|
115
|
+
</Popup>
|
|
116
|
+
|
|
117
|
+
<!-- Edit User Popup -->
|
|
118
|
+
<Popup
|
|
119
|
+
:isPopupOpen="isPopupOpen"
|
|
120
|
+
@close-popup="closeEdit"
|
|
121
|
+
title="Edit User"
|
|
122
|
+
class="w-m-50r mobile:h-100 bg-white mobile:radius-zero radius-medium pd-medium"
|
|
123
|
+
>
|
|
124
|
+
<div v-if="editData" class="for-transition w-100">
|
|
125
|
+
<div class="mn-b-semi">
|
|
126
|
+
<div class="mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex">
|
|
127
|
+
<img
|
|
128
|
+
v-if="editData.profile?.photo"
|
|
129
|
+
:src="(FILE_SERVER_URL || '') + editData.profile.photo"
|
|
130
|
+
class="radius-extra aspect-1x1 object-fit-cover h-4r w-4r mn-b-thin"
|
|
131
|
+
/>
|
|
132
|
+
<PlaceholderUserpic
|
|
133
|
+
v-else
|
|
134
|
+
class="radius-extra h-4r w-4r mn-b-thin"
|
|
135
|
+
/>
|
|
136
|
+
<p class="p-small opacity-50">{{ editData.email || editData.phone || '' }}</p>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<h4 class="mn-b-small">Profile</h4>
|
|
141
|
+
|
|
142
|
+
<Field
|
|
143
|
+
v-model:field="editData.username"
|
|
144
|
+
label="@"
|
|
145
|
+
placeholder="Not specified"
|
|
146
|
+
class="mn-b-thin w-100 bg-light pd-medium radius-small"
|
|
147
|
+
/>
|
|
148
|
+
|
|
149
|
+
<Field
|
|
150
|
+
v-model:field="editData.profile.name"
|
|
151
|
+
label="Name"
|
|
152
|
+
placeholder="Not specified"
|
|
153
|
+
class="mn-b-thin bg-light pd-medium radius-small"
|
|
154
|
+
/>
|
|
155
|
+
|
|
156
|
+
<Field
|
|
157
|
+
v-model:field="editData.profile.description"
|
|
158
|
+
label="Description"
|
|
159
|
+
placeholder="Not specified"
|
|
160
|
+
class="mn-b-semi bg-light pd-medium radius-small"
|
|
161
|
+
/>
|
|
162
|
+
|
|
163
|
+
<h4 class="mn-b-small">Status</h4>
|
|
164
|
+
|
|
165
|
+
<Select
|
|
166
|
+
v-model:select="editData.status"
|
|
167
|
+
:options="statusOptions"
|
|
168
|
+
placeholder="Select status"
|
|
169
|
+
class="mn-b-semi bg-light pd-medium radius-small"
|
|
170
|
+
/>
|
|
171
|
+
|
|
172
|
+
<h4 class="mn-b-small">Roles</h4>
|
|
173
|
+
|
|
174
|
+
<div class="flex flex-wrap gap-thin mn-b-semi">
|
|
175
|
+
<div
|
|
176
|
+
v-for="role in availableRoles"
|
|
177
|
+
:key="role._id"
|
|
178
|
+
@click="toggleRole(role)"
|
|
179
|
+
class="pd-l-small pd-r-small pd-t-thin pd-b-thin radius-small cursor-pointer fw-medium capitalize"
|
|
180
|
+
:class="isRoleSelected(role) ? 'bg-second t-white' : 'bg-light t-dark'"
|
|
181
|
+
>
|
|
182
|
+
{{ role.name }}
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<Button
|
|
187
|
+
:submit="saveUser"
|
|
188
|
+
:callback="closeEdit"
|
|
189
|
+
class="mn-b-thin bg-main w-100"
|
|
190
|
+
>
|
|
191
|
+
Save
|
|
192
|
+
</Button>
|
|
193
|
+
</div>
|
|
194
|
+
</Popup>
|
|
195
|
+
</div>
|
|
196
|
+
</template>
|
|
197
|
+
|
|
198
|
+
<script setup>
|
|
199
|
+
import { ref, reactive, onMounted } from 'vue'
|
|
200
|
+
|
|
201
|
+
import { useRoute } from 'vue-router'
|
|
202
|
+
|
|
203
|
+
import Feed from '@martyrs/src/components/Feed/Feed.vue'
|
|
204
|
+
import Field from '@martyrs/src/components/Field/Field.vue'
|
|
205
|
+
import Button from '@martyrs/src/components/Button/Button.vue'
|
|
206
|
+
import Select from '@martyrs/src/components/Select/Select.vue'
|
|
207
|
+
import Popup from '@martyrs/src/components/Popup/Popup.vue'
|
|
208
|
+
import SectionPageTitle from '@martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue'
|
|
209
|
+
import CardUser from '@martyrs/src/modules/core/views/components/blocks/CardUser.vue'
|
|
210
|
+
import PlaceholderUserpic from '@martyrs/src/modules/icons/placeholders/PlaceholderUserpic.vue'
|
|
211
|
+
|
|
212
|
+
import * as users from '@martyrs/src/modules/auth/views/store/users.js'
|
|
213
|
+
import $axios from '@martyrs/src/modules/core/views/utils/axios-instance.js'
|
|
214
|
+
|
|
215
|
+
const route = useRoute()
|
|
216
|
+
|
|
217
|
+
const isPopupOpen = ref(false)
|
|
218
|
+
const editData = ref(null)
|
|
219
|
+
const editSourceItem = ref(null)
|
|
220
|
+
const availableRoles = ref([])
|
|
221
|
+
|
|
222
|
+
const isCreateOpen = ref(false)
|
|
223
|
+
const createData = reactive({
|
|
224
|
+
email: '',
|
|
225
|
+
phone: '',
|
|
226
|
+
username: '',
|
|
227
|
+
password: '',
|
|
228
|
+
roles: [],
|
|
229
|
+
profile: {
|
|
230
|
+
name: '',
|
|
231
|
+
},
|
|
232
|
+
})
|
|
233
|
+
|
|
234
|
+
const openCreate = () => {
|
|
235
|
+
createData.email = ''
|
|
236
|
+
createData.phone = ''
|
|
237
|
+
createData.username = ''
|
|
238
|
+
createData.password = ''
|
|
239
|
+
createData.roles = []
|
|
240
|
+
createData.profile.name = ''
|
|
241
|
+
isCreateOpen.value = true
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
const closeCreate = () => {
|
|
245
|
+
isCreateOpen.value = false
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
const toggleCreateRole = (role) => {
|
|
249
|
+
const idx = createData.roles.indexOf(role._id)
|
|
250
|
+
if (idx > -1) {
|
|
251
|
+
createData.roles.splice(idx, 1)
|
|
252
|
+
} else {
|
|
253
|
+
createData.roles.push(role._id)
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
const createUser = async () => {
|
|
258
|
+
const payload = {}
|
|
259
|
+
if (createData.email) payload.email = createData.email
|
|
260
|
+
if (createData.phone) payload.phone = createData.phone
|
|
261
|
+
if (createData.username) payload.username = createData.username
|
|
262
|
+
if (createData.password) payload.password = createData.password
|
|
263
|
+
if (createData.roles.length) payload.roles = createData.roles
|
|
264
|
+
if (createData.profile.name) payload.profile = { name: createData.profile.name }
|
|
265
|
+
|
|
266
|
+
const result = await users.actions.create(payload)
|
|
267
|
+
if (result) {
|
|
268
|
+
users.state.all.unshift(result)
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const statusOptions = ['active', 'banned', 'inactive']
|
|
273
|
+
|
|
274
|
+
const openEdit = (user) => {
|
|
275
|
+
editSourceItem.value = user
|
|
276
|
+
editData.value = {
|
|
277
|
+
_id: user._id,
|
|
278
|
+
username: user.username || '',
|
|
279
|
+
email: user.email || '',
|
|
280
|
+
phone: user.phone || '',
|
|
281
|
+
status: user.status || 'active',
|
|
282
|
+
roles: (user.roles || []).map(r => r._id || r),
|
|
283
|
+
profile: {
|
|
284
|
+
name: user.profile?.name || '',
|
|
285
|
+
description: user.profile?.description || '',
|
|
286
|
+
photo: user.profile?.photo || '',
|
|
287
|
+
},
|
|
288
|
+
}
|
|
289
|
+
isPopupOpen.value = true
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
const closeEdit = () => {
|
|
293
|
+
isPopupOpen.value = false
|
|
294
|
+
editData.value = null
|
|
295
|
+
editSourceItem.value = null
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
const toggleRole = (role) => {
|
|
299
|
+
const idx = editData.value.roles.indexOf(role._id)
|
|
300
|
+
if (idx > -1) {
|
|
301
|
+
editData.value.roles.splice(idx, 1)
|
|
302
|
+
} else {
|
|
303
|
+
editData.value.roles.push(role._id)
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
const isRoleSelected = (role) => {
|
|
308
|
+
return editData.value?.roles.includes(role._id)
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
const saveUser = async () => {
|
|
312
|
+
if (!editData.value) return
|
|
313
|
+
const { data } = await $axios.put(`/api/users/${editData.value._id}/admin`, {
|
|
314
|
+
profile: editData.value.profile,
|
|
315
|
+
username: editData.value.username,
|
|
316
|
+
status: editData.value.status,
|
|
317
|
+
roles: editData.value.roles,
|
|
318
|
+
})
|
|
319
|
+
|
|
320
|
+
// Update list item from server response
|
|
321
|
+
if (data && editSourceItem.value) {
|
|
322
|
+
editSourceItem.value.profile = data.profile || editSourceItem.value.profile
|
|
323
|
+
editSourceItem.value.username = data.username
|
|
324
|
+
editSourceItem.value.status = data.status
|
|
325
|
+
editSourceItem.value.roles = data.roles || []
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
onMounted(async () => {
|
|
330
|
+
try {
|
|
331
|
+
const { data } = await $axios.get('/api/roles')
|
|
332
|
+
availableRoles.value = data
|
|
333
|
+
} catch (err) {
|
|
334
|
+
console.error('Failed to load roles:', err)
|
|
335
|
+
}
|
|
336
|
+
})
|
|
337
|
+
</script>
|