@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
|
@@ -5,7 +5,8 @@ console.log('[LOADING 37] Notifications module import started...');
|
|
|
5
5
|
import { toRefs, watch } from 'vue';
|
|
6
6
|
// Router import
|
|
7
7
|
import addRoutes from '@martyrs/src/modules/core/views/router/addRoutes.js';
|
|
8
|
-
import
|
|
8
|
+
import notificationsRoutes from './router/notifications.router.js';
|
|
9
|
+
import notificationsBackofficeRoutes from './router/notifications.backoffice.router.js';
|
|
9
10
|
// Store
|
|
10
11
|
import * as storeNotifications from './store/notifications.store.js';
|
|
11
12
|
// Global WebSocket import
|
|
@@ -208,7 +209,7 @@ class CapacitorPushHandler {
|
|
|
208
209
|
* Remove push notification listeners
|
|
209
210
|
*/
|
|
210
211
|
removeListeners() {
|
|
211
|
-
if (typeof window === 'undefined') {
|
|
212
|
+
if (typeof window === 'undefined' || !this.isInitialized) {
|
|
212
213
|
return;
|
|
213
214
|
}
|
|
214
215
|
|
|
@@ -229,6 +230,108 @@ class NotificationManager {
|
|
|
229
230
|
this.pushHandler = new CapacitorPushHandler(store);
|
|
230
231
|
this.initialized = false;
|
|
231
232
|
this.isServer = typeof window === 'undefined';
|
|
233
|
+
this._visibilityHandler = null;
|
|
234
|
+
this._pageshowHandler = null;
|
|
235
|
+
this._onlineHandler = null;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Re-check push subscription on foreground return (iOS kills SW and may wipe subscriptions)
|
|
240
|
+
*/
|
|
241
|
+
async recheckPushSubscription() {
|
|
242
|
+
if (this.isServer || !('serviceWorker' in navigator) || !('PushManager' in window)) return;
|
|
243
|
+
|
|
244
|
+
try {
|
|
245
|
+
const registration = await navigator.serviceWorker.getRegistration();
|
|
246
|
+
if (!registration) {
|
|
247
|
+
console.warn('[WebPush] No SW registration on foreground return, re-registering...');
|
|
248
|
+
await navigator.serviceWorker.register('/sw.js');
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// Force SW update check
|
|
253
|
+
registration.update();
|
|
254
|
+
|
|
255
|
+
const subscription = await registration.pushManager.getSubscription();
|
|
256
|
+
if (!subscription) {
|
|
257
|
+
// iOS wiped subscription — resubscribe
|
|
258
|
+
console.log('[WebPush] Subscription lost, resubscribing...');
|
|
259
|
+
await this.registerWebPush(this.store);
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// Check if endpoint rotated (Apple may change it)
|
|
264
|
+
const savedEndpoint = localStorage.getItem('push_endpoint');
|
|
265
|
+
if (savedEndpoint && subscription.endpoint !== savedEndpoint) {
|
|
266
|
+
console.log('[WebPush] Endpoint rotated, syncing with server...');
|
|
267
|
+
await this.registerWebPush(this.store);
|
|
268
|
+
}
|
|
269
|
+
} catch (err) {
|
|
270
|
+
console.error('[WebPush] recheckPushSubscription error:', err);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Setup visibilitychange/pageshow/online handlers for iOS PWA foreground recovery
|
|
276
|
+
*/
|
|
277
|
+
setupForegroundHandlers() {
|
|
278
|
+
if (this.isServer) return;
|
|
279
|
+
|
|
280
|
+
this._visibilityHandler = () => {
|
|
281
|
+
if (document.visibilityState === 'visible') {
|
|
282
|
+
console.log('[Notifications] App became visible, rechecking...');
|
|
283
|
+
// Reconnect WebSocket if needed
|
|
284
|
+
const userId = this.store.core.state.session.userId;
|
|
285
|
+
if (userId && wsManager.ws?.readyState !== WebSocket.OPEN) {
|
|
286
|
+
wsManager.connect(userId).catch(err => console.error('[Notifications] WS reconnect error:', err));
|
|
287
|
+
}
|
|
288
|
+
// Revalidate push subscription
|
|
289
|
+
this.recheckPushSubscription();
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
this._pageshowHandler = (event) => {
|
|
294
|
+
if (event.persisted) {
|
|
295
|
+
// Page restored from bfcache — connections are dead
|
|
296
|
+
console.log('[Notifications] Page restored from bfcache, reconnecting...');
|
|
297
|
+
const userId = this.store.core.state.session.userId;
|
|
298
|
+
if (userId) {
|
|
299
|
+
wsManager.connect(userId).catch(err => console.error('[Notifications] WS reconnect error:', err));
|
|
300
|
+
}
|
|
301
|
+
this.recheckPushSubscription();
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
this._onlineHandler = () => {
|
|
306
|
+
console.log('[Notifications] Network online, reconnecting...');
|
|
307
|
+
const userId = this.store.core.state.session.userId;
|
|
308
|
+
if (userId && wsManager.ws?.readyState !== WebSocket.OPEN) {
|
|
309
|
+
wsManager.connect(userId).catch(err => console.error('[Notifications] WS reconnect error:', err));
|
|
310
|
+
}
|
|
311
|
+
this.recheckPushSubscription();
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
document.addEventListener('visibilitychange', this._visibilityHandler);
|
|
315
|
+
window.addEventListener('pageshow', this._pageshowHandler);
|
|
316
|
+
window.addEventListener('online', this._onlineHandler);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Remove foreground handlers
|
|
321
|
+
*/
|
|
322
|
+
teardownForegroundHandlers() {
|
|
323
|
+
if (this._visibilityHandler) {
|
|
324
|
+
document.removeEventListener('visibilitychange', this._visibilityHandler);
|
|
325
|
+
this._visibilityHandler = null;
|
|
326
|
+
}
|
|
327
|
+
if (this._pageshowHandler) {
|
|
328
|
+
window.removeEventListener('pageshow', this._pageshowHandler);
|
|
329
|
+
this._pageshowHandler = null;
|
|
330
|
+
}
|
|
331
|
+
if (this._onlineHandler) {
|
|
332
|
+
window.removeEventListener('online', this._onlineHandler);
|
|
333
|
+
this._onlineHandler = null;
|
|
334
|
+
}
|
|
232
335
|
}
|
|
233
336
|
|
|
234
337
|
async registerWebPush(store) {
|
|
@@ -237,20 +340,25 @@ class NotificationManager {
|
|
|
237
340
|
return;
|
|
238
341
|
}
|
|
239
342
|
|
|
240
|
-
//
|
|
241
|
-
|
|
242
|
-
const permission = await Notification.requestPermission();
|
|
243
|
-
if (permission !== 'granted') {
|
|
244
|
-
console.warn('[WebPush] Permission not granted:', permission);
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
343
|
+
// НЕ проверяем Notification.permission — на iOS он врёт ("denied" когда реально granted)
|
|
344
|
+
// pushManager.subscribe() сам выкинет NotAllowedError если реально нет разрешения
|
|
248
345
|
|
|
249
346
|
console.log('[WebPush] Subscribing to push manager...');
|
|
250
|
-
|
|
347
|
+
// Use getRegistration() instead of .ready — .ready hangs on iOS PWA
|
|
348
|
+
let registration = await navigator.serviceWorker.getRegistration();
|
|
349
|
+
if (!registration) {
|
|
350
|
+
console.log('[WebPush] No SW registration, registering /sw.js...');
|
|
351
|
+
registration = await navigator.serviceWorker.register('/sw.js');
|
|
352
|
+
// Wait for SW to be active
|
|
353
|
+
await new Promise(resolve => {
|
|
354
|
+
if (registration.active) return resolve();
|
|
355
|
+
const sw = registration.installing || registration.waiting;
|
|
356
|
+
if (sw) sw.addEventListener('statechange', () => { if (sw.state === 'activated') resolve(); });
|
|
357
|
+
});
|
|
358
|
+
}
|
|
251
359
|
const subscription = await registration.pushManager.subscribe({
|
|
252
360
|
userVisibleOnly: true,
|
|
253
|
-
applicationServerKey:
|
|
361
|
+
applicationServerKey: process.env.VAPID_PUBLIC_KEY,
|
|
254
362
|
});
|
|
255
363
|
|
|
256
364
|
console.log('[WebPush] Subscription:', JSON.stringify(subscription));
|
|
@@ -297,6 +405,10 @@ class NotificationManager {
|
|
|
297
405
|
// Register device
|
|
298
406
|
console.log('[WebPush] Registering device:', deviceData);
|
|
299
407
|
await store.notifications.actions.registerDevice(deviceData);
|
|
408
|
+
// Save endpoint for rotation detection
|
|
409
|
+
try {
|
|
410
|
+
localStorage.setItem('push_endpoint', subscription.endpoint);
|
|
411
|
+
} catch (e) {}
|
|
300
412
|
console.log('[WebPush] Device registered successfully');
|
|
301
413
|
}
|
|
302
414
|
|
|
@@ -320,6 +432,50 @@ class NotificationManager {
|
|
|
320
432
|
}
|
|
321
433
|
}
|
|
322
434
|
|
|
435
|
+
async unregisterWebPush() {
|
|
436
|
+
try {
|
|
437
|
+
const registration = await navigator.serviceWorker.getRegistration();
|
|
438
|
+
if (registration) {
|
|
439
|
+
const subscription = await registration.pushManager.getSubscription();
|
|
440
|
+
if (subscription) await subscription.unsubscribe();
|
|
441
|
+
}
|
|
442
|
+
const deviceIdResult = await Preferences.get({ key: 'notifications_device_id' });
|
|
443
|
+
if (deviceIdResult.value) {
|
|
444
|
+
await this.store.notifications.actions.unregisterDevice(deviceIdResult.value);
|
|
445
|
+
}
|
|
446
|
+
try { localStorage.removeItem('push_endpoint'); } catch (e) {}
|
|
447
|
+
} catch (err) {
|
|
448
|
+
console.error('[WebPush] unregisterWebPush error:', err);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
async getSubscriptionState() {
|
|
453
|
+
if (this.isServer || !('serviceWorker' in navigator) || !('PushManager' in window)) {
|
|
454
|
+
return { permission: 'unsupported', subscribed: false };
|
|
455
|
+
}
|
|
456
|
+
try {
|
|
457
|
+
const registration = await navigator.serviceWorker.getRegistration();
|
|
458
|
+
if (!registration) return { permission: 'default', subscribed: false };
|
|
459
|
+
|
|
460
|
+
// 1. Реальная подписка — главный source of truth
|
|
461
|
+
// НО на iOS может вернуть null даже если нотификации реально приходят
|
|
462
|
+
const subscription = await registration.pushManager.getSubscription();
|
|
463
|
+
|
|
464
|
+
// 2. permissionState() — надёжнее Notification.permission на iOS
|
|
465
|
+
let permission = 'default';
|
|
466
|
+
try {
|
|
467
|
+
permission = await registration.pushManager.permissionState({ userVisibleOnly: true });
|
|
468
|
+
} catch (e) {
|
|
469
|
+
// 3. Fallback на Notification.permission (может врать на iOS)
|
|
470
|
+
permission = 'Notification' in window ? Notification.permission : 'default';
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
return { permission, subscribed: !!subscription };
|
|
474
|
+
} catch (err) {
|
|
475
|
+
return { permission: 'default', subscribed: false };
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
323
479
|
async initialize() {
|
|
324
480
|
console.log('[NOTIF DEBUG] NotificationManager.initialize() called, initialized:', this.initialized, 'isServer:', this.isServer);
|
|
325
481
|
if (this.initialized || this.isServer) return;
|
|
@@ -348,6 +504,12 @@ class NotificationManager {
|
|
|
348
504
|
wsManager.addEventListener(
|
|
349
505
|
'notification',
|
|
350
506
|
data => {
|
|
507
|
+
// Handle Telegram connection event
|
|
508
|
+
if (data.type === 'telegram_connected') {
|
|
509
|
+
this.store.notifications.state.telegramConnected = true;
|
|
510
|
+
this.store.notifications.state.telegramChatId = data.data?.chatId || null;
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
351
513
|
this.store.notifications.actions.addLocalNotification(data.data);
|
|
352
514
|
},
|
|
353
515
|
{ module: 'notification' }
|
|
@@ -370,12 +532,25 @@ class NotificationManager {
|
|
|
370
532
|
// Skip auto-init for mobile apps - will be triggered manually from Walkthrough
|
|
371
533
|
if (this.options.enablePush !== false && !process.env.MOBILE_APP) {
|
|
372
534
|
this.pushHandler.requestPermissions().catch(() => {});
|
|
373
|
-
//
|
|
374
|
-
if ('
|
|
375
|
-
|
|
535
|
+
// Ре-регистрация только если подписка уже есть (не промптить, не опираться на Notification.permission)
|
|
536
|
+
if ('serviceWorker' in navigator && 'PushManager' in window) {
|
|
537
|
+
try {
|
|
538
|
+
const reg = await navigator.serviceWorker.getRegistration();
|
|
539
|
+
if (reg) {
|
|
540
|
+
const sub = await reg.pushManager.getSubscription();
|
|
541
|
+
if (sub) {
|
|
542
|
+
this.registerWebPush(this.store).catch(err => console.error('[Notifications] WebPush re-registration error:', err));
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
} catch (err) {
|
|
546
|
+
console.error('[Notifications] Subscription check error:', err);
|
|
547
|
+
}
|
|
376
548
|
}
|
|
377
549
|
}
|
|
378
550
|
|
|
551
|
+
// Setup foreground recovery handlers (iOS PWA: reconnect WS + revalidate push on visibility)
|
|
552
|
+
this.setupForegroundHandlers();
|
|
553
|
+
|
|
379
554
|
this.initialized = true;
|
|
380
555
|
console.log('[NOTIF DEBUG] NotificationManager initialized successfully');
|
|
381
556
|
}
|
|
@@ -385,6 +560,7 @@ class NotificationManager {
|
|
|
385
560
|
|
|
386
561
|
wsManager.removeModuleListeners('notification');
|
|
387
562
|
this.pushHandler.removeListeners();
|
|
563
|
+
this.teardownForegroundHandlers();
|
|
388
564
|
this.initialized = false;
|
|
389
565
|
}
|
|
390
566
|
}
|
|
@@ -419,12 +595,26 @@ const SSRUtils = {
|
|
|
419
595
|
* @param {Object} options - Configuration options
|
|
420
596
|
*/
|
|
421
597
|
function initializeNotifications(app, store, router, options = {}) {
|
|
422
|
-
//
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
|
|
598
|
+
// User context
|
|
599
|
+
const routeUsers = options.routeUsers || 'User Profile Root';
|
|
600
|
+
addRoutes(router, {
|
|
601
|
+
parentName: routeUsers,
|
|
602
|
+
basePath: 'notifications',
|
|
603
|
+
routes: notificationsRoutes,
|
|
426
604
|
});
|
|
427
605
|
|
|
606
|
+
// Backoffice context
|
|
607
|
+
if (!options.contexts || options.contexts.includes('backoffice')) {
|
|
608
|
+
const routeBackoffice = options.routeBackoffice || 'Backoffice Root';
|
|
609
|
+
addRoutes(router, {
|
|
610
|
+
parentName: routeBackoffice,
|
|
611
|
+
basePath: 'notifications',
|
|
612
|
+
routes: notificationsBackofficeRoutes,
|
|
613
|
+
routeNamePrefix: 'Backoffice',
|
|
614
|
+
meta: { context: 'backoffice' },
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
|
|
428
618
|
store.addStore('notifications', storeNotifications);
|
|
429
619
|
|
|
430
620
|
// Initialize global WebSocket if needed
|
|
@@ -495,6 +685,8 @@ function initializeNotifications(app, store, router, options = {}) {
|
|
|
495
685
|
init: notificationManager.initialize.bind(notificationManager),
|
|
496
686
|
disconnect: notificationManager.disconnect.bind(notificationManager),
|
|
497
687
|
registerWebPush: () => notificationManager.registerWebPush(store),
|
|
688
|
+
unregisterWebPush: () => notificationManager.unregisterWebPush(),
|
|
689
|
+
getSubscriptionState: () => notificationManager.getSubscriptionState(),
|
|
498
690
|
isServer,
|
|
499
691
|
};
|
|
500
692
|
});
|
|
@@ -511,7 +703,8 @@ const ModuleNotifications = {
|
|
|
511
703
|
storeNotifications,
|
|
512
704
|
},
|
|
513
705
|
router: {
|
|
514
|
-
|
|
706
|
+
notificationsRoutes,
|
|
707
|
+
notificationsBackofficeRoutes,
|
|
515
708
|
},
|
|
516
709
|
components: {
|
|
517
710
|
// Elements
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const notificationsBackofficeRoutes = [
|
|
2
|
+
{
|
|
3
|
+
path: '',
|
|
4
|
+
name: 'Notifications',
|
|
5
|
+
meta: {
|
|
6
|
+
title: {
|
|
7
|
+
en: 'Notifications',
|
|
8
|
+
ru: 'Уведомления',
|
|
9
|
+
},
|
|
10
|
+
authorize: [],
|
|
11
|
+
},
|
|
12
|
+
component: () => import(/* webpackChunkName: 'BackofficeNotifications' */ '../components/pages/Notifications.vue'),
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export default notificationsBackofficeRoutes;
|
|
@@ -1,47 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
title: 'Notifications',
|
|
12
|
-
},
|
|
1
|
+
const notificationsRoutes = [
|
|
2
|
+
{
|
|
3
|
+
path: '',
|
|
4
|
+
name: 'Notifications',
|
|
5
|
+
component: () => import(
|
|
6
|
+
/* webpackChunkName: 'notifications-page' */
|
|
7
|
+
'../components/pages/Notifications.vue'
|
|
8
|
+
),
|
|
9
|
+
meta: {
|
|
10
|
+
title: 'Notifications',
|
|
13
11
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
name: 'NotificationPreferences',
|
|
17
|
-
component: () => import(
|
|
18
|
-
/* webpackChunkName: 'notifications-preferences' */
|
|
19
|
-
'../components/sections/NotificationPreferences.vue'
|
|
20
|
-
),
|
|
21
|
-
meta: {
|
|
22
|
-
title: 'Notification Preferences',
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export function getRoutes(options = {}) {
|
|
29
|
-
const routes = [];
|
|
30
|
-
const routeUsers = options.routeUsers || 'User Profile Root';
|
|
31
|
-
|
|
32
|
-
routes.push({
|
|
33
|
-
parentName: routeUsers,
|
|
34
|
-
config: {
|
|
35
|
-
basePath: options.basePath || 'notifications',
|
|
36
|
-
component: options.layoutComponent || (() => import(
|
|
37
|
-
/* webpackChunkName: 'notifications-layout' */
|
|
38
|
-
'../components/layouts/NotificationsLayout.vue'
|
|
39
|
-
)),
|
|
40
|
-
routes: buildNotificationRoutes(options),
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
return routes;
|
|
45
|
-
}
|
|
12
|
+
},
|
|
13
|
+
];
|
|
46
14
|
|
|
47
|
-
export default
|
|
15
|
+
export default notificationsRoutes;
|
|
@@ -14,6 +14,10 @@ const notificationsRoutes = (app, db, wss, origins, publicPath, notificationServ
|
|
|
14
14
|
app.put('/api/notifications/user/:userId/read-all', controller.markAllAsRead);
|
|
15
15
|
// Register a device for push notifications
|
|
16
16
|
app.post('/api/notifications/devices/register', controller.registerDevice);
|
|
17
|
+
// Deactivate a device (unsubscribe from push)
|
|
18
|
+
app.post('/api/notifications/devices/deactivate', controller.deactivateDevice);
|
|
19
|
+
// Update subscription when endpoint rotates (called from SW pushsubscriptionchange)
|
|
20
|
+
app.post('/api/notifications/devices/update-subscription', controller.updateSubscription);
|
|
17
21
|
// Add this to routes/notifications.routes.js
|
|
18
22
|
app.get('/api/notifications/preferences/:userId', controller.getUserPreferences);
|
|
19
23
|
// Update notification preferences
|
|
@@ -22,5 +26,10 @@ const notificationsRoutes = (app, db, wss, origins, publicPath, notificationServ
|
|
|
22
26
|
app.post('/api/notifications/send-to-tokens', controller.sendToTokens);
|
|
23
27
|
// Send notifications to anonymous devices
|
|
24
28
|
app.post('/api/notifications/send-to-anonymous', controller.sendToAnonymous);
|
|
29
|
+
// Telegram integration
|
|
30
|
+
app.post('/api/notifications/telegram/generate-link', controller.generateTelegramLink);
|
|
31
|
+
app.get('/api/notifications/telegram/status/:userId', controller.getTelegramStatus);
|
|
32
|
+
app.post('/api/notifications/telegram/disconnect', controller.disconnectTelegram);
|
|
33
|
+
app.post('/api/notifications/telegram/webhook', controller.telegramWebhook);
|
|
25
34
|
};
|
|
26
35
|
export default notificationsRoutes;
|
|
@@ -35,7 +35,7 @@ export default (function (db, wss) {
|
|
|
35
35
|
push: sendPushNotification,
|
|
36
36
|
email: sendEmailNotification,
|
|
37
37
|
sms: sendSmsNotification,
|
|
38
|
-
|
|
38
|
+
telegram: sendTelegramNotification,
|
|
39
39
|
// whatsapp: sendWhatsAppNotification
|
|
40
40
|
};
|
|
41
41
|
// Get all active devices for push notifications
|
|
@@ -202,35 +202,59 @@ export default (function (db, wss) {
|
|
|
202
202
|
return webPush;
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
|
+
// Per-channel content: metadata.channels.{channel} overrides default title/body
|
|
206
|
+
// String → replaces body. Object → merges with defaults (title, body, html, subject).
|
|
207
|
+
// No override → falls back to notification.title + notification.body
|
|
208
|
+
const getChannelContent = (notification, channel) => {
|
|
209
|
+
const override = notification.metadata?.channels?.[channel];
|
|
210
|
+
if (!override) return { title: notification.title, body: notification.body };
|
|
211
|
+
if (typeof override === 'string') return { title: notification.title, body: override };
|
|
212
|
+
return { title: override.title || notification.title, body: override.body || notification.body, ...override };
|
|
213
|
+
};
|
|
214
|
+
|
|
205
215
|
// Send email notification
|
|
206
216
|
const sendEmailNotification = async (notification, user) => {
|
|
217
|
+
const content = getChannelContent(notification, 'email');
|
|
207
218
|
return emailService.send({
|
|
208
219
|
to: user.email,
|
|
209
|
-
subject:
|
|
210
|
-
text:
|
|
211
|
-
html: `<h1>${
|
|
220
|
+
subject: content.subject || content.title,
|
|
221
|
+
text: content.body,
|
|
222
|
+
html: content.html || `<h1>${content.title}</h1><p>${content.body}</p>`,
|
|
212
223
|
metadata: notification.metadata,
|
|
213
224
|
});
|
|
214
225
|
};
|
|
215
226
|
// Send SMS notification
|
|
216
227
|
const sendSmsNotification = async (notification, user) => {
|
|
228
|
+
const content = getChannelContent(notification, 'sms');
|
|
217
229
|
return smsService.send({
|
|
218
230
|
to: user.phoneNumber,
|
|
219
|
-
message: `${
|
|
231
|
+
message: `${content.title}: ${content.body}`,
|
|
220
232
|
});
|
|
221
233
|
};
|
|
222
|
-
// Send Telegram notification
|
|
234
|
+
// Send Telegram notification — reads chatId from preferences
|
|
223
235
|
const sendTelegramNotification = async (notification, user) => {
|
|
236
|
+
const telegramPref = await db.notificationPreference.findOne({
|
|
237
|
+
userId: user._id,
|
|
238
|
+
channelType: 'telegram',
|
|
239
|
+
isEnabled: true,
|
|
240
|
+
});
|
|
241
|
+
if (!telegramPref?.telegramChatId) {
|
|
242
|
+
console.log(`[Telegram] No chatId for user ${user._id}, skipping`);
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
const content = getChannelContent(notification, 'telegram');
|
|
224
246
|
return telegramService.send({
|
|
225
|
-
chatId:
|
|
226
|
-
message:
|
|
247
|
+
chatId: telegramPref.telegramChatId,
|
|
248
|
+
message: content.body,
|
|
249
|
+
options: content.options || {},
|
|
227
250
|
});
|
|
228
251
|
};
|
|
229
252
|
// Send WhatsApp notification (for future expansion)
|
|
230
253
|
const sendWhatsAppNotification = async (notification, user) => {
|
|
254
|
+
const content = getChannelContent(notification, 'whatsapp');
|
|
231
255
|
return whatsappService.send({
|
|
232
256
|
to: user.phoneNumber,
|
|
233
|
-
message: `${
|
|
257
|
+
message: `${content.title}\n\n${content.body}`,
|
|
234
258
|
});
|
|
235
259
|
};
|
|
236
260
|
// Batch process pending notifications
|
|
@@ -2,11 +2,11 @@ import mailing from '@martyrs/src/modules/core/controllers/utils/mailing.js';
|
|
|
2
2
|
// services/telegram.service.js
|
|
3
3
|
const { sendChatMessageTelegram } = mailing;
|
|
4
4
|
const TelegramService = {
|
|
5
|
-
send: async ({ chatId, message }) => {
|
|
5
|
+
send: async ({ chatId, message, options = {} }) => {
|
|
6
6
|
try {
|
|
7
7
|
// Send Telegram message using the utility function
|
|
8
8
|
// Note: our utility expects an array of chatIds
|
|
9
|
-
const result = await sendChatMessageTelegram([chatId], message);
|
|
9
|
+
const result = await sendChatMessageTelegram([chatId], message, options);
|
|
10
10
|
if (!result) {
|
|
11
11
|
throw new Error('Failed to send Telegram message');
|
|
12
12
|
}
|
|
@@ -17,9 +17,13 @@ const WebPushService = {
|
|
|
17
17
|
badge: process.env.NOTIFICATION_BADGE_URL || '/favicon.ico',
|
|
18
18
|
data: data,
|
|
19
19
|
});
|
|
20
|
-
// Send the notification
|
|
20
|
+
// Send the notification with delivery options
|
|
21
21
|
console.log('[WebPush] Sending to endpoint:', subscription.endpoint);
|
|
22
|
-
const result = await webpush.sendNotification(subscription, payload
|
|
22
|
+
const result = await webpush.sendNotification(subscription, payload, {
|
|
23
|
+
TTL: 86400, // 24 hours — push stays on server if device offline
|
|
24
|
+
urgency: 'high', // immediate delivery, required by Safari
|
|
25
|
+
topic: data?.type || 'notification', // deduplication — same topic overwrites previous
|
|
26
|
+
});
|
|
23
27
|
console.log('[WebPush] Result:', result.statusCode, result.headers);
|
|
24
28
|
return { success: true, statusCode: result.statusCode };
|
|
25
29
|
} catch (error) {
|
|
@@ -41,6 +41,10 @@ const state = reactive({
|
|
|
41
41
|
deviceRegistered: false,
|
|
42
42
|
loading: false,
|
|
43
43
|
lastSync: null,
|
|
44
|
+
// Telegram
|
|
45
|
+
telegramConnected: false,
|
|
46
|
+
telegramChatId: null,
|
|
47
|
+
telegramDeepLink: null,
|
|
44
48
|
});
|
|
45
49
|
|
|
46
50
|
const actions = {
|
|
@@ -145,6 +149,21 @@ const actions = {
|
|
|
145
149
|
}
|
|
146
150
|
},
|
|
147
151
|
|
|
152
|
+
/**
|
|
153
|
+
* Unregister (deactivate) device on server
|
|
154
|
+
*/
|
|
155
|
+
async unregisterDevice(deviceId) {
|
|
156
|
+
try {
|
|
157
|
+
const userId = auth.state.user?._id;
|
|
158
|
+
const payload = { deviceId };
|
|
159
|
+
if (userId) payload.userId = userId;
|
|
160
|
+
await $axios.post('/api/notifications/devices/deactivate', payload);
|
|
161
|
+
state.deviceRegistered = false;
|
|
162
|
+
} catch (error) {
|
|
163
|
+
console.error('[Notifications Store] Unregister device error:', error);
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
|
|
148
167
|
/**
|
|
149
168
|
* Re-register device after user login
|
|
150
169
|
*/
|
|
@@ -242,6 +261,56 @@ const actions = {
|
|
|
242
261
|
}
|
|
243
262
|
},
|
|
244
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Generate Telegram deep link for connecting bot
|
|
266
|
+
*/
|
|
267
|
+
async generateTelegramLink() {
|
|
268
|
+
try {
|
|
269
|
+
const userId = auth.state.user._id;
|
|
270
|
+
if (!userId) return null;
|
|
271
|
+
const response = await $axios.post('/api/notifications/telegram/generate-link', { userId });
|
|
272
|
+
state.telegramDeepLink = response.data.deepLink;
|
|
273
|
+
return response.data;
|
|
274
|
+
} catch (error) {
|
|
275
|
+
setError(error);
|
|
276
|
+
throw error;
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Get Telegram connection status
|
|
282
|
+
*/
|
|
283
|
+
async getTelegramStatus() {
|
|
284
|
+
try {
|
|
285
|
+
const userId = auth.state.user._id;
|
|
286
|
+
if (!userId) return;
|
|
287
|
+
const response = await $axios.get(`/api/notifications/telegram/status/${userId}`);
|
|
288
|
+
state.telegramConnected = response.data.connected;
|
|
289
|
+
state.telegramChatId = response.data.chatId;
|
|
290
|
+
return response.data;
|
|
291
|
+
} catch (error) {
|
|
292
|
+
console.error('Error getting Telegram status:', error);
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Disconnect Telegram
|
|
298
|
+
*/
|
|
299
|
+
async disconnectTelegram() {
|
|
300
|
+
try {
|
|
301
|
+
const userId = auth.state.user._id;
|
|
302
|
+
if (!userId) return;
|
|
303
|
+
await $axios.post('/api/notifications/telegram/disconnect', { userId });
|
|
304
|
+
state.telegramConnected = false;
|
|
305
|
+
state.telegramChatId = null;
|
|
306
|
+
state.telegramDeepLink = null;
|
|
307
|
+
state.preferences.telegram = false;
|
|
308
|
+
} catch (error) {
|
|
309
|
+
setError(error);
|
|
310
|
+
throw error;
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
|
|
245
314
|
/**
|
|
246
315
|
* Add a local notification (for handling push notifications or WebSocket notifications)
|
|
247
316
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="mn-b-small flex">
|
|
4
4
|
<div class="mn-r-auto">
|
|
5
5
|
<h3 class="mn-b-thin">{{ application.contacts?.name || application.contacts?.email || application.contacts?.phone || 'Unnamed Application' }}</h3>
|
|
6
|
-
<p class="
|
|
6
|
+
<p class="opacity-50">{{ application.contacts?.email || application.contacts?.phone }}</p>
|
|
7
7
|
</div>
|
|
8
8
|
<div class="flex-center">
|
|
9
9
|
<StatusBadge :value="application.status" />
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
13
|
<div class="mn-b-thin pd-small bg-white radius-small flex">
|
|
14
|
-
<p class="mn-r-auto
|
|
14
|
+
<p class="mn-r-auto opacity-50">Type</p>
|
|
15
15
|
<p class="truncate">{{ application.type || 'Unknown' }}</p>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<div class="mn-b-thin pd-small bg-white radius-small flex">
|
|
19
|
-
<p class="mn-r-auto
|
|
20
|
-
<p>{{ application.contacts?.phone
|
|
19
|
+
<p class="mn-r-auto opacity-50">Phone</p>
|
|
20
|
+
<p>{{ application.contacts?.phone ? formatPhone(application.contacts.phone) : 'No phone' }}</p>
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
23
|
<div class="mn-b-thin pd-small bg-white radius-small flex">
|
|
24
|
-
<p class="mn-r-auto
|
|
24
|
+
<p class="mn-r-auto opacity-50">ID</p>
|
|
25
25
|
<p>#{{ application._id.slice(0, 4) + '...' + application._id.slice(-4) }}</p>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
32
|
<div class="pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex">
|
|
33
|
-
<IconTime class="i-medium
|
|
33
|
+
<IconTime class="i-medium opacity-50" fill="rgb(var(--black))" />
|
|
34
34
|
<p class="fw-medium mn-r-auto">{{ formatDate(application.updatedAt) }}</p>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
@@ -39,6 +39,9 @@
|
|
|
39
39
|
<script setup>
|
|
40
40
|
import IconTime from '@martyrs/src/modules/icons/entities/IconTime.vue';
|
|
41
41
|
import StatusBadge from '@martyrs/src/components/Table/StatusBadge.vue';
|
|
42
|
+
import { useGlobalMixins } from '@martyrs/src/modules/core/views/mixins/mixins.js';
|
|
43
|
+
|
|
44
|
+
const { formatPhone } = useGlobalMixins();
|
|
42
45
|
|
|
43
46
|
defineProps({
|
|
44
47
|
application: {
|