@ozdao/martyrs 0.2.602 → 0.2.603
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{abac-BPl9Bmf9.js → abac-Blt8bUTL.js} +3 -3
- package/dist/{addUserStatusFields-Cc-JpmPo.js → addUserStatusFields-CjV_sbh7.js} +2 -2
- package/dist/auth.server.js +57 -2
- package/dist/builder.js +130 -81
- package/dist/community.server.js +11 -11
- package/dist/core.server.js +2 -2
- package/dist/{core.verifier-gPPX_jhf.js → core.verifier-DVB2a21y.js} +6 -3
- package/dist/{crud-DpOXTZep.js → crud-BT5FIvQC.js} +2 -3
- package/dist/engagement.schema-B-Cc_NsG.js +6 -0
- package/dist/events.server.js +3 -3
- package/dist/gallery.server.js +1 -1
- package/dist/governance.server.js +1632 -0
- package/dist/icons.server.js +267 -0
- package/dist/inventory.server.js +6 -6
- package/dist/martyrs/dist/martyrs.es3.js +116 -0
- package/dist/martyrs/dist/martyrs.es3.js.map +1 -0
- package/dist/martyrs/dist/martyrs.es39.js +124 -0
- package/dist/martyrs/dist/martyrs.es39.js.map +1 -0
- package/dist/martyrs/dist/martyrs.es43.js +30 -0
- package/dist/martyrs/dist/martyrs.es43.js.map +1 -0
- package/dist/martyrs/dist/martyrs.es44.js +28 -0
- package/dist/martyrs/dist/martyrs.es44.js.map +1 -0
- package/dist/martyrs/dist/martyrs.es46.js +10 -0
- package/dist/martyrs/dist/martyrs.es46.js.map +1 -0
- package/dist/martyrs/src/components/Address/{Address.vue.js → Address.vue2.js} +2 -2
- package/dist/martyrs/src/components/Address/Address.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Block/Block.vue.js +1 -1
- package/dist/martyrs/src/components/Block/Block.vue.js.map +1 -1
- package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +8 -5
- package/dist/martyrs/src/components/Button/Button.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js → Dropdown.vue.js} +2 -2
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +1 -0
- package/dist/martyrs/src/components/EditImages/{EditImages.vue2.js → EditImages.vue.js} +2 -2
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -0
- package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -2
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +4 -4
- package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue.js → LocationMarker.vue2.js} +2 -2
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Tab/{Tab.vue2.js → Tab.vue.js} +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue.js.map +1 -0
- package/dist/martyrs/src/components/Table/StatusBadge.vue.js +19 -10
- package/dist/martyrs/src/components/Table/StatusBadge.vue.js.map +1 -1
- package/dist/martyrs/src/components/Text/Text.vue.js +1 -1
- package/dist/martyrs/src/components/Text/Text.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +17 -21
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +13 -13
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +42 -4
- 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/UserDashboard.vue.js +34 -66
- package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/router/users.router.js +0 -53
- package/dist/martyrs/src/modules/auth/views/router/users.router.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js +515 -103
- 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 +1 -3
- package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js +1 -32
- package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js.map +1 -1
- package/dist/martyrs/src/modules/community/community.client.js +49 -8
- package/dist/martyrs/src/modules/community/community.client.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +10 -4
- 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 +3 -3
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +28 -17
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js +36 -28
- package/dist/martyrs/src/modules/community/components/pages/Posts.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/community/router/community.backoffice.router.js +21 -0
- package/dist/martyrs/src/modules/community/router/community.backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/community/router/community.organization.router.js +70 -0
- package/dist/martyrs/src/modules/community/router/community.organization.router.js.map +1 -0
- package/dist/martyrs/src/modules/community/router/community.router.js +73 -0
- package/dist/martyrs/src/modules/community/router/community.router.js.map +1 -0
- package/dist/martyrs/src/modules/community/router/community.user.router.js +20 -0
- package/dist/martyrs/src/modules/community/router/community.user.router.js.map +1 -0
- package/dist/martyrs/src/modules/constructor/components/elements/Textarea.vue2.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Textarea.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/sections/Constructor.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/core.app.js +5 -3
- package/dist/martyrs/src/modules/core/views/classes/core.app.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/i18n.manager.js +7 -2
- package/dist/martyrs/src/modules/core/views/classes/i18n.manager.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/ws.manager.js +11 -5
- package/dist/martyrs/src/modules/core/views/classes/ws.manager.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/Card.vue.js +53 -18
- package/dist/martyrs/src/modules/core/views/components/blocks/Card.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js +44 -0
- package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js.map +1 -0
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +5 -5
- package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +9 -6
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.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/Header.vue.js +14 -14
- 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 +2 -2
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js +28 -29
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/NavigationBar.vue.js +6 -6
- package/dist/martyrs/src/modules/core/views/components/partials/Sidebar.vue.js +5 -7
- package/dist/martyrs/src/modules/core/views/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/{Filters.vue2.js → Filters.vue.js} +2 -2
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue.js.map +1 -0
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +28 -18
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/mixins/mixins.js +3 -3
- package/dist/martyrs/src/modules/core/views/mixins/mixins.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/router/addRoutes.js +2 -3
- package/dist/martyrs/src/modules/core/views/router/addRoutes.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js +10 -0
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +4 -4
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +3 -3
- 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 +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -0
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +23 -33
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js +13 -13
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/events.client.js +37 -15
- package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
- package/dist/martyrs/src/modules/events/router/events.backoffice.router.js +95 -0
- package/dist/martyrs/src/modules/events/router/events.backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/events/router/events.organization.router.js +95 -0
- package/dist/martyrs/src/modules/events/router/events.organization.router.js.map +1 -0
- package/dist/martyrs/src/modules/events/router/events.router.js +73 -364
- package/dist/martyrs/src/modules/events/router/events.router.js.map +1 -1
- package/dist/martyrs/src/modules/events/router/events.user.router.js +65 -0
- package/dist/martyrs/src/modules/events/router/events.user.router.js.map +1 -0
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +4 -4
- package/dist/martyrs/src/modules/governance/configs/navigation.initiative.config.js +33 -0
- package/dist/martyrs/src/modules/governance/configs/navigation.initiative.config.js.map +1 -0
- package/dist/martyrs/src/modules/governance/governance.client.js +31 -0
- package/dist/martyrs/src/modules/governance/governance.client.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js +110 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js +105 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js +110 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js +106 -0
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Governance.vue.js +52 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Governance.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiative.vue.js +684 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiative.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeCreate.vue.js +78 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeCreate.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeSprints.vue.js +328 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeSprints.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js +145 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Sprint.vue.js +258 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Sprint.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/SprintCreate.vue.js +72 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/SprintCreate.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Task.vue.js +769 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Task.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/TaskCreate.vue.js +88 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/TaskCreate.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Tasks.vue.js +291 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Tasks.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Voting.vue.js +267 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Voting.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/VotingCreate.vue.js +90 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/VotingCreate.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Votings.vue.js +68 -0
- package/dist/martyrs/src/modules/governance/views/components/pages/Votings.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/EmptyState.vue.js +47 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/EmptyState.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/LinkedEntityCard.vue.js +164 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/LinkedEntityCard.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js +39 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/VoteForm.vue.js +112 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/VoteForm.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/VotingResults.vue.js +187 -0
- package/dist/martyrs/src/modules/governance/views/components/partials/VotingResults.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormInitiativeDetails.vue.js +555 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormInitiativeDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js +187 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js +171 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormVotingDetails.vue.js +179 -0
- package/dist/martyrs/src/modules/governance/views/components/sections/FormVotingDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/router/governance.router.js +502 -0
- package/dist/martyrs/src/modules/governance/views/router/governance.router.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/store/initiatives.js +119 -0
- package/dist/martyrs/src/modules/governance/views/store/initiatives.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/store/sprints.js +99 -0
- package/dist/martyrs/src/modules/governance/views/store/sprints.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/store/tasks.js +115 -0
- package/dist/martyrs/src/modules/governance/views/store/tasks.js.map +1 -0
- package/dist/martyrs/src/modules/governance/views/store/votings.js +155 -0
- package/dist/martyrs/src/modules/governance/views/store/votings.js.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js +70 -0
- package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/icons.client.js +1 -1
- package/dist/martyrs/src/modules/icons/icons.client.js.map +1 -1
- package/dist/martyrs/src/modules/icons/{icons.router.js → router/icons.router.js} +1 -1
- package/dist/martyrs/src/modules/icons/router/icons.router.js.map +1 -0
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +2 -2
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +6 -6
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/pages/Marketplace.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js +9 -9
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +7 -7
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +9 -9
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +13 -13
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +10 -10
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +9 -9
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +17 -17
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/player/PlayerControls.vue.js +10 -10
- package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js +6 -6
- package/dist/martyrs/src/modules/music/components/sections/PopularTracks.vue.js +63 -0
- package/dist/martyrs/src/modules/music/components/sections/PopularTracks.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/music.client.js +29 -25
- package/dist/martyrs/src/modules/music/music.client.js.map +1 -1
- package/dist/martyrs/src/modules/music/{music.router.js → router/music.router.js} +16 -16
- package/dist/martyrs/src/modules/music/router/music.router.js.map +1 -0
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +26 -27
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js +118 -59
- package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.js +74 -54
- package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/{notifications.router.js → router/notifications.router.js} +3 -3
- package/dist/martyrs/src/modules/notifications/router/notifications.router.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +34 -44
- 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 +47 -57
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js +2 -2
- 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 +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +3 -3
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +5 -5
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +7 -7
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js +61 -54
- 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 +43 -31
- 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 +13 -13
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +3 -3
- 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 +19 -19
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +7 -10
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +7 -10
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +4 -4
- package/dist/martyrs/src/modules/orders/orders.client.js +16 -16
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +11 -4
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +22 -15
- 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 +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +63 -1
- 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 +9 -3
- 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 +14 -8
- 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 +24 -30
- 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/MembersAdd.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/organizations.client.js +42 -6
- package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js +20 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.router.js +102 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.router.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.user.router.js +20 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.user.router.js.map +1 -0
- package/dist/martyrs/src/modules/pages/pages.client.js +1 -1
- package/dist/martyrs/src/modules/pages/pages.client.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/martyrs/src/modules/pages/{pages.router.js → views/router/pages.router.js} +8 -8
- package/dist/martyrs/src/modules/pages/views/router/pages.router.js.map +1 -0
- 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/pages/Categories.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +7 -7
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +21 -21
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +5 -5
- 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 +3 -3
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +20 -20
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +4 -4
- package/dist/martyrs/src/modules/rents/rents.client.js +1 -1
- package/dist/martyrs/src/modules/rents/rents.client.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +7 -7
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +4 -4
- package/dist/martyrs/src/modules/rents/{rents.router.js → views/router/rents.router.js} +4 -4
- package/dist/martyrs/src/modules/rents/views/router/rents.router.js.map +1 -0
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/martyrs/src/modules/reports/reports.client.js +1 -1
- package/dist/martyrs/src/modules/reports/reports.client.js.map +1 -1
- package/dist/martyrs/src/modules/reports/{reports.router.js → router/reports.router.js} +1 -1
- package/dist/martyrs/src/modules/reports/router/reports.router.js.map +1 -0
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +12 -12
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +21 -21
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js +68 -0
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js.map +1 -0
- package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js +48 -0
- package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js.map +1 -0
- package/dist/martyrs/src/modules/wallet/views/store/payments.store.js +59 -0
- package/dist/martyrs/src/modules/wallet/views/store/payments.store.js.map +1 -0
- package/dist/martyrs/src/modules/wallet/wallet.client.js +20 -0
- package/dist/martyrs/src/modules/wallet/wallet.client.js.map +1 -0
- package/dist/martyrs.es.js +84 -41
- package/dist/martyrs.es10.js +126 -0
- package/dist/martyrs.es100.js +33 -0
- package/dist/martyrs.es102.js +39 -0
- package/dist/martyrs.es103.js +31 -0
- package/dist/martyrs.es105.js +27 -0
- package/dist/martyrs.es106.js +8 -0
- package/dist/martyrs.es107.js +9 -0
- package/dist/martyrs.es108.js +79 -0
- package/dist/martyrs.es109.js +7 -0
- package/dist/martyrs.es11.js +49 -0
- package/dist/{web-n_ivHO3v.js → martyrs.es110.js} +1 -1
- package/dist/martyrs.es111.js +327 -0
- package/dist/martyrs.es112.js +121 -0
- package/dist/martyrs.es115.js +4 -0
- package/dist/martyrs.es116.js +25 -0
- package/dist/martyrs.es117.js +7 -0
- package/dist/martyrs.es118.js +10 -0
- package/dist/martyrs.es119.js +169 -0
- package/dist/martyrs.es12.js +94 -0
- package/dist/martyrs.es120.js +460 -0
- package/dist/martyrs.es121.js +42 -0
- package/dist/martyrs.es122.js +12 -0
- package/dist/martyrs.es123.js +52 -0
- package/dist/martyrs.es124.js +14 -0
- package/dist/martyrs.es125.js +47 -0
- package/dist/martyrs.es126.js +7 -0
- package/dist/martyrs.es127.js +131 -0
- package/dist/martyrs.es128.js +103 -0
- package/dist/martyrs.es129.js +89 -0
- package/dist/martyrs.es13.js +48 -0
- package/dist/martyrs.es130.js +40 -0
- package/dist/martyrs.es131.js +14 -0
- package/dist/martyrs.es132.js +42 -0
- package/dist/martyrs.es133.js +11 -0
- package/dist/martyrs.es134.js +6 -0
- package/dist/martyrs.es135.js +119 -0
- package/dist/martyrs.es136.js +20 -0
- package/dist/martyrs.es137.js +18 -0
- package/dist/martyrs.es138.js +35 -0
- package/dist/martyrs.es139.js +12 -0
- package/dist/martyrs.es14.js +101 -0
- package/dist/martyrs.es140.js +23 -0
- package/dist/martyrs.es141.js +12 -0
- package/dist/martyrs.es142.js +11 -0
- package/dist/martyrs.es143.js +47 -0
- package/dist/martyrs.es144.js +483 -0
- package/dist/martyrs.es145.js +8 -0
- package/dist/martyrs.es146.js +4 -0
- package/dist/martyrs.es147.js +14 -0
- package/dist/martyrs.es148.js +33 -0
- package/dist/martyrs.es149.js +19 -0
- package/dist/martyrs.es15.js +408 -0
- package/dist/martyrs.es150.js +22 -0
- package/dist/martyrs.es151.js +31 -0
- package/dist/martyrs.es152.js +23 -0
- package/dist/martyrs.es16.js +58 -0
- package/dist/martyrs.es17.js +44 -0
- package/dist/martyrs.es18.js +42 -0
- package/dist/martyrs.es19.js +27 -0
- package/dist/martyrs.es2.js +88 -0
- package/dist/martyrs.es20.js +13 -0
- package/dist/martyrs.es21.js +57 -0
- package/dist/martyrs.es22.js +104 -0
- package/dist/martyrs.es23.js +178 -0
- package/dist/martyrs.es24.js +123 -0
- package/dist/martyrs.es25.js +139 -0
- package/dist/martyrs.es26.js +21 -0
- package/dist/martyrs.es27.js +60 -0
- package/dist/martyrs.es28.js +75 -0
- package/dist/martyrs.es29.js +36 -0
- package/dist/martyrs.es3.js +116 -0
- package/dist/martyrs.es30.js +348 -0
- package/dist/martyrs.es31.js +83 -0
- package/dist/martyrs.es32.js +148 -0
- package/dist/martyrs.es33.js +175 -0
- package/dist/martyrs.es34.js +66 -0
- package/dist/martyrs.es35.js +57 -0
- package/dist/martyrs.es36.js +76 -0
- package/dist/martyrs.es37.js +101 -0
- package/dist/martyrs.es38.js +39 -0
- package/dist/martyrs.es39.js +124 -0
- package/dist/martyrs.es4.js +85 -0
- package/dist/martyrs.es40.js +120 -0
- package/dist/martyrs.es41.js +229 -0
- package/dist/martyrs.es43.js +29 -0
- package/dist/martyrs.es44.js +27 -0
- package/dist/martyrs.es46.js +9 -0
- package/dist/martyrs.es48.js +18 -0
- package/dist/martyrs.es5.js +395 -0
- package/dist/martyrs.es50.js +42 -0
- package/dist/martyrs.es52.js +255 -0
- package/dist/martyrs.es54.js +8 -0
- package/dist/martyrs.es6.js +70 -0
- package/dist/martyrs.es61.js +139 -0
- package/dist/martyrs.es65.js +28 -0
- package/dist/martyrs.es68.js +33 -0
- package/dist/martyrs.es69.js +37 -0
- package/dist/martyrs.es7.js +17 -0
- package/dist/martyrs.es71.js +114 -0
- package/dist/martyrs.es73.js +83 -0
- package/dist/martyrs.es74.js +52 -0
- package/dist/martyrs.es75.js +75 -0
- package/dist/martyrs.es76.js +176 -0
- package/dist/martyrs.es77.js +31 -0
- package/dist/martyrs.es78.js +38 -0
- package/dist/martyrs.es8.js +127 -0
- package/dist/martyrs.es81.js +32 -0
- package/dist/martyrs.es86.js +37 -0
- package/dist/martyrs.es89.js +37 -0
- package/dist/martyrs.es9.js +396 -0
- package/dist/martyrs.es91.js +63 -0
- package/dist/martyrs.es92.js +7 -0
- package/dist/martyrs.es93.js +35 -0
- package/dist/martyrs.es95.js +41 -0
- package/dist/martyrs.es96.js +59 -0
- package/dist/martyrs.es97.js +123 -0
- package/dist/martyrs.es98.js +43 -0
- package/dist/martyrs.es99.js +86 -0
- package/dist/music.server.js +11 -11
- package/dist/notifications.server.js +16 -6
- package/dist/orders.server.js +264 -145
- package/dist/organizations.server.js +22 -6
- package/dist/products.server.js +7 -7
- package/dist/rents.server.js +4 -3
- package/dist/style.css +970 -986
- package/package.json +13 -6
- package/src/builder/modes/ssr.rspack.dev.js +32 -20
- package/src/builder/rspack/rspack.config.api.js +3 -0
- package/src/builder/rspack/rspack.config.base.js +9 -1
- package/src/builder/rspack/rspack.config.ssr.client.js +8 -5
- package/src/components/Block/Block.vue +1 -1
- package/src/components/Button/Button.vue +4 -4
- package/src/components/Table/StatusBadge.vue +24 -18
- package/src/components/Text/Text.vue +1 -1
- package/src/jit/core.js +72 -35
- package/src/jit/plugin.js +4 -3
- package/src/jit/rules.js +15 -15
- package/src/modules/TASKS.MD +30 -0
- package/src/modules/TASK_ACTIVITY.md +60 -0
- package/src/modules/TASK_MODULE_ARCH.md +391 -0
- package/src/modules/auth/controllers/routes/users.routes.js +8 -0
- package/src/modules/auth/controllers/services/users.service.js +51 -1
- package/src/modules/auth/views/components/blocks/PopupAuth.vue +1 -1
- package/src/modules/auth/views/components/pages/ProfileBlogposts.vue +25 -24
- package/src/modules/auth/views/components/pages/SignIn.vue +10 -1
- package/src/modules/auth/views/components/pages/UserDashboard.vue +35 -62
- package/src/modules/auth/views/router/users.router.js +0 -44
- package/src/modules/backoffice/components/pages/Dashboard.vue +423 -120
- package/src/modules/backoffice/configs/navigation.backoffice.config.js +0 -2
- package/src/modules/backoffice/router/backoffice.router.js +0 -25
- package/src/modules/community/community.client.js +54 -9
- package/src/modules/community/components/blocks/CardBlogpost.vue +10 -3
- package/src/modules/community/components/layouts/Community.vue +3 -3
- package/src/modules/community/components/pages/BlogPost.vue +1 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +19 -20
- package/src/modules/community/components/pages/Posts.vue +43 -28
- package/src/modules/community/components/sections/Comment.vue +1 -1
- package/src/modules/community/controllers/blog.controller.js +4 -5
- package/src/modules/community/models/reaction.model.js +1 -0
- package/src/modules/community/router/community.backoffice.router.js +16 -0
- package/src/modules/community/router/community.organization.router.js +56 -0
- package/src/modules/community/router/community.router.js +58 -106
- package/src/modules/community/router/community.user.router.js +15 -0
- package/src/modules/constructor/components/elements/Textarea.vue +1 -1
- package/src/modules/constructor/components/sections/Constructor.vue +1 -1
- package/src/modules/core/controllers/classes/core.validator.js +7 -1
- package/src/modules/core/controllers/classes/core.verifier.js +0 -2
- package/src/modules/core/controllers/classes/crud/crud.controller.js +0 -4
- package/src/modules/core/controllers/classes/crud/crud.service.js +1 -0
- package/src/modules/core/models/schemas/engagement.schema.js +19 -22
- package/src/modules/core/views/classes/core.app.js +6 -4
- package/src/modules/core/views/classes/i18n.manager.js +9 -2
- package/src/modules/core/views/classes/ws.manager.js +17 -7
- package/src/modules/core/views/components/blocks/Card.vue +47 -24
- package/src/modules/core/views/components/blocks/CardStat.vue +27 -0
- package/src/modules/core/views/components/blocks/PopupAuth.vue +1 -1
- package/src/modules/core/views/components/layouts/Client.vue +5 -4
- package/src/modules/core/views/components/partials/BottomNavigationBar.vue +5 -5
- package/src/modules/core/views/components/partials/Header.vue +2 -2
- package/src/modules/core/views/components/partials/Navigation.vue +13 -14
- package/src/modules/core/views/components/partials/Sidebar.vue +4 -6
- package/src/modules/core/views/components/sections/SectionPageTitle.vue +23 -15
- package/src/modules/core/views/mixins/mixins.js +4 -3
- package/src/modules/core/views/router/addRoutes.js +1 -2
- package/src/modules/core/views/utils/vue-app-renderer.js +12 -0
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Events.vue +1 -0
- package/src/modules/events/components/pages/EventsBackoffice.vue +23 -48
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/events/events.client.js +44 -17
- package/src/modules/events/router/events.backoffice.router.js +80 -0
- package/src/modules/events/router/events.organization.router.js +80 -0
- package/src/modules/events/router/events.router.js +55 -325
- package/src/modules/events/router/events.user.router.js +49 -0
- package/src/modules/governance/TASK-TRACKER.MD +534 -39
- package/src/modules/governance/configs/navigation.initiative.config.js +30 -0
- package/src/modules/governance/controllers/routes/initiatives.routes.js +55 -8
- package/src/modules/governance/controllers/routes/{milestones.routes.js → sprints.routes.js} +22 -22
- package/src/modules/governance/controllers/routes/tasks.routes.js +2 -2
- package/src/modules/governance/governance.client.js +1 -4
- package/src/modules/governance/governance.server.js +6 -6
- package/src/modules/governance/middlewares/initiatives.verifier.js +60 -0
- package/src/modules/governance/middlewares/{milestones.verifier.js → sprints.verifier.js} +10 -10
- package/src/modules/governance/middlewares/tasks.verifier.js +4 -4
- package/src/modules/governance/middlewares/votings.verifier.js +25 -7
- package/src/modules/governance/models/{milestone.model.js → sprint.model.js} +11 -11
- package/src/modules/governance/models/task.model.js +4 -4
- package/src/modules/governance/models/voting.model.js +10 -5
- package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +8 -13
- package/src/modules/governance/views/components/blocks/{CardMilestoneItem.vue → CardSprintItem.vue} +16 -17
- package/src/modules/governance/views/components/blocks/CardTaskItem.vue +7 -9
- package/src/modules/governance/views/components/blocks/CardVotingItem.vue +7 -9
- package/src/modules/governance/views/components/pages/Governance.vue +13 -34
- package/src/modules/governance/views/components/pages/Initiative.vue +73 -154
- package/src/modules/governance/views/components/pages/InitiativeCreate.vue +44 -7
- package/src/modules/governance/views/components/pages/{Roadmap.vue → InitiativeSprints.vue} +70 -69
- package/src/modules/governance/views/components/pages/Initiatives.vue +23 -108
- package/src/modules/governance/views/components/pages/{Milestone.vue → Sprint.vue} +43 -41
- package/src/modules/governance/views/components/pages/SprintCreate.vue +55 -0
- package/src/modules/governance/views/components/pages/Task.vue +95 -88
- package/src/modules/governance/views/components/pages/TaskCreate.vue +47 -9
- package/src/modules/governance/views/components/pages/Tasks.vue +25 -21
- package/src/modules/governance/views/components/pages/Voting.vue +84 -68
- package/src/modules/governance/views/components/pages/VotingCreate.vue +48 -8
- package/src/modules/governance/views/components/pages/Votings.vue +12 -57
- package/src/modules/governance/views/components/partials/EmptyState.vue +1 -1
- package/src/modules/governance/views/components/partials/LinkedEntityCard.vue +23 -11
- package/src/modules/governance/views/components/partials/TaskStatusBadge.vue +1 -1
- package/src/modules/governance/views/components/partials/VoteForm.vue +3 -3
- package/src/modules/governance/views/components/partials/VotingResults.vue +13 -19
- package/src/modules/governance/views/components/sections/FormInitiativeDetails.vue +413 -15
- package/src/modules/governance/views/components/sections/FormSprintDetails.vue +156 -0
- package/src/modules/governance/views/components/sections/FormTaskDetails.vue +125 -21
- package/src/modules/governance/views/components/sections/FormVotingDetails.vue +136 -17
- package/src/modules/governance/views/components/sections/VoteForm.vue +2 -2
- package/src/modules/governance/views/router/governance.router.js +255 -151
- package/src/modules/governance/views/store/initiatives.js +23 -2
- package/src/modules/governance/views/store/sprints.js +102 -0
- package/src/modules/governance/views/store/tasks.js +25 -9
- package/src/modules/governance/views/store/votings.js +106 -27
- package/src/modules/icons/icons.client.js +1 -1
- package/src/modules/inventory/components/pages/InventoryEdit.vue +1 -1
- package/src/modules/music/components/sections/PopularTracks.vue +52 -0
- package/src/modules/music/music.client.js +8 -1
- package/src/modules/music/router/music.router.js +13 -1
- package/src/modules/notifications/components/elements/NotificationBadge.vue +8 -33
- package/src/modules/notifications/components/sections/NotificationPreferences.vue +110 -48
- package/src/modules/notifications/notifications.client.js +78 -57
- package/src/modules/notifications/router/notifications.router.js +32 -15
- package/src/modules/notifications/services/notification.service.js +15 -6
- package/src/modules/notifications/services/web-push.service.js +2 -0
- package/src/modules/orders/components/blocks/CardApplication.vue +20 -40
- package/src/modules/orders/components/blocks/CardCustomer.vue +35 -55
- package/src/modules/orders/components/blocks/CardOrderItem.vue +2 -2
- package/src/modules/orders/components/blocks/CardOrderUser.vue +2 -2
- package/src/modules/orders/components/forms/FormCustomerDetails.vue +2 -2
- package/src/modules/orders/components/pages/Applications.vue +59 -57
- package/src/modules/orders/components/pages/Customers.vue +40 -27
- package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
- package/src/modules/orders/components/sections/ApplicationDetails.vue +1 -4
- package/src/modules/orders/components/sections/CustomerDetails.vue +1 -4
- package/src/modules/orders/controllers/orders.controller.js +113 -0
- package/src/modules/orders/middlewares/applications.verifier.js +13 -37
- package/src/modules/orders/middlewares/customers.verifier.js +44 -121
- package/src/modules/orders/models/customer.model.js +0 -1
- package/src/modules/orders/routes/applications.routes.js +108 -50
- package/src/modules/orders/routes/orders.routes.js +9 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +12 -4
- package/src/modules/organizations/components/forms/DepartmentForm.vue +9 -4
- package/src/modules/organizations/components/pages/Members.vue +62 -1
- package/src/modules/organizations/components/pages/Organization.new.vue +17 -17
- package/src/modules/organizations/components/pages/Organization.vue +8 -1
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +11 -4
- package/src/modules/organizations/components/pages/Organizations.vue +33 -46
- package/src/modules/organizations/controllers/invites.controller.js +19 -0
- package/src/modules/organizations/controllers/memberships.controller.js +1 -0
- package/src/modules/organizations/organizations.client.js +48 -7
- package/src/modules/organizations/router/organizations.backoffice.router.js +15 -0
- package/src/modules/organizations/router/organizations.router.js +72 -112
- package/src/modules/organizations/router/organizations.user.router.js +15 -0
- package/src/modules/pages/pages.client.js +1 -1
- package/src/modules/pages/views/router/pages.router.js +95 -15
- package/src/modules/products/components/blocks/CardPosition.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +3 -3
- package/src/modules/rents/controllers/services/rents.services.js +1 -0
- package/src/modules/rents/rents.client.js +1 -1
- package/src/modules/rents/views/router/rents.router.js +93 -33
- package/src/modules/reports/reports.client.js +1 -1
- package/src/modules/wallet/wallet.client.js +1 -1
- package/src/styles/theme.scss +5 -3
- package/dist/engagement.schema-fh6W1fb_.js +0 -24
- package/dist/main-DQm5pwFO.js +0 -8213
- package/dist/martyrs/dist/main-DQm5pwFO.js +0 -1080
- package/dist/martyrs/dist/main-DQm5pwFO.js.map +0 -1
- package/dist/martyrs/dist/web-n_ivHO3v.js +0 -55
- package/dist/martyrs/dist/web-n_ivHO3v.js.map +0 -1
- package/dist/martyrs/src/components/Address/Address.vue.js.map +0 -1
- package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.js.map +0 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +0 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue.js.map +0 -1
- package/dist/martyrs/src/components/Tab/Tab.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/community/community.router.js +0 -124
- package/dist/martyrs/src/modules/community/community.router.js.map +0 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/icons/icons.router.js.map +0 -1
- package/dist/martyrs/src/modules/music/music.router.js.map +0 -1
- package/dist/martyrs/src/modules/notifications/notifications.router.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +0 -200
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/organizations.router.js +0 -145
- package/dist/martyrs/src/modules/organizations/organizations.router.js.map +0 -1
- package/dist/martyrs/src/modules/pages/pages.router.js.map +0 -1
- package/dist/martyrs/src/modules/rents/rents.router.js.map +0 -1
- package/dist/martyrs/src/modules/reports/reports.router.js.map +0 -1
- package/dist/martyrs.css +0 -1
- package/dist/node_modules/.pnpm/@capacitor_device@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/device/dist/esm/index.js +0 -8
- package/dist/node_modules/.pnpm/@capacitor_device@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/device/dist/esm/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor_device@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/device/dist/esm/web.js +0 -146
- package/dist/node_modules/.pnpm/@capacitor_device@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/device/dist/esm/web.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor_keyboard@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/keyboard/dist/esm/definitions.js +0 -18
- package/dist/node_modules/.pnpm/@capacitor_keyboard@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/keyboard/dist/esm/definitions.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor_keyboard@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/keyboard/dist/esm/index.js +0 -9
- package/dist/node_modules/.pnpm/@capacitor_keyboard@7.0.1_@capacitor_core@7.4.4/node_modules/@capacitor/keyboard/dist/esm/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor_push-notifications@7.0.3_@capacitor_core@7.4.4/node_modules/@capacitor/push-notifications/dist/esm/index.js +0 -6
- package/dist/node_modules/.pnpm/@capacitor_push-notifications@7.0.3_@capacitor_core@7.4.4/node_modules/@capacitor/push-notifications/dist/esm/index.js.map +0 -1
- package/src/jit/.claude/settings.local.json +0 -10
- package/src/modules/community/community.router.js +0 -107
- package/src/modules/governance/governance.router.js +0 -350
- package/src/modules/governance/seed-governance.js +0 -348
- package/src/modules/governance/views/components/pages/InitiativeMilestones.vue +0 -159
- package/src/modules/governance/views/router/goverance.router.js +0 -290
- package/src/modules/governance/views/store/votes.js +0 -113
- package/src/modules/icons/icons.router.js +0 -29
- package/src/modules/marketplace/marketplace.router.js +0 -66
- package/src/modules/music/.claude/settings.local.json +0 -8
- package/src/modules/music/music.router.js +0 -188
- package/src/modules/notifications/notifications.router.js +0 -47
- package/src/modules/orders/orders.router.js +0 -255
- package/src/modules/organizations/organizations.router.js +0 -123
- package/src/modules/organizations/router/backoffice.router.js +0 -27
- package/src/modules/organizations/router/departments.router.js +0 -15
- package/src/modules/organizations/router/members.router.js +0 -20
- package/src/modules/pages/pages.router.js +0 -107
- package/src/modules/rents/rents.router.js +0 -115
- package/src/modules/reports/reports.router.js +0 -33
- package/src/modules/wallet/wallet.router.js +0 -45
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export const navigationItems = [
|
|
2
|
+
{
|
|
3
|
+
category: 'Initiative',
|
|
4
|
+
visible: () => true,
|
|
5
|
+
items: [
|
|
6
|
+
{
|
|
7
|
+
title: 'Overview',
|
|
8
|
+
route: (auth, route) => `/governance/initiatives/${route.params.id}`,
|
|
9
|
+
visible: () => true,
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: 'Sprints',
|
|
13
|
+
route: (auth, route) => `/governance/initiatives/${route.params.id}/sprints`,
|
|
14
|
+
visible: () => true,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
title: 'Tasks',
|
|
18
|
+
route: (auth, route) => `/governance/initiatives/${route.params.id}/tasks`,
|
|
19
|
+
visible: () => true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
title: 'Votings',
|
|
23
|
+
route: (auth, route) => `/governance/initiatives/${route.params.id}/votings`,
|
|
24
|
+
visible: () => true,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
export default navigationItems;
|
|
@@ -45,18 +45,18 @@ export default function (app, db) {
|
|
|
45
45
|
|
|
46
46
|
// Кастомные роуты через addAction
|
|
47
47
|
|
|
48
|
-
// Get initiative
|
|
49
|
-
initiativesCRUD.addAction('
|
|
48
|
+
// Get initiative sprints - /api/initiatives/:id/sprints
|
|
49
|
+
initiativesCRUD.addAction('sprints', {
|
|
50
50
|
method: 'get',
|
|
51
|
-
path: '/:id/
|
|
51
|
+
path: '/:id/sprints',
|
|
52
52
|
auth: false,
|
|
53
53
|
abac: { enabled: false },
|
|
54
54
|
handler: async (req, res) => {
|
|
55
55
|
try {
|
|
56
|
-
const
|
|
56
|
+
const sprints = await db.sprint.find({
|
|
57
57
|
initiative: req.params.id
|
|
58
58
|
}).populate('owner contributors');
|
|
59
|
-
res.json(
|
|
59
|
+
res.json(sprints);
|
|
60
60
|
} catch (error) {
|
|
61
61
|
console.error(error);
|
|
62
62
|
res.status(500).json({ error: error.message });
|
|
@@ -71,7 +71,7 @@ export default function (app, db) {
|
|
|
71
71
|
auth: true,
|
|
72
72
|
handler: async (req, res) => {
|
|
73
73
|
try {
|
|
74
|
-
const { title, description,
|
|
74
|
+
const { title, description, sprint, dueDate } = req.body;
|
|
75
75
|
|
|
76
76
|
// Создаём голосование для создания задачи
|
|
77
77
|
const voting = await db.voting.create({
|
|
@@ -80,14 +80,14 @@ export default function (app, db) {
|
|
|
80
80
|
title: `Create task: ${title}`,
|
|
81
81
|
description: `Proposal to create task: ${description}`,
|
|
82
82
|
initiative: req.params.id,
|
|
83
|
-
|
|
83
|
+
sprint: sprint,
|
|
84
84
|
threshold: 51,
|
|
85
85
|
participants: [],
|
|
86
86
|
metadata: {
|
|
87
87
|
taskData: {
|
|
88
88
|
title,
|
|
89
89
|
description,
|
|
90
|
-
|
|
90
|
+
sprint,
|
|
91
91
|
dueDate,
|
|
92
92
|
initiative: req.params.id
|
|
93
93
|
}
|
|
@@ -102,5 +102,52 @@ export default function (app, db) {
|
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
+
// Get initiative metrics - /api/initiatives/:id/metrics
|
|
106
|
+
initiativesCRUD.addAction('metrics', {
|
|
107
|
+
method: 'get',
|
|
108
|
+
path: '/:id/metrics',
|
|
109
|
+
auth: false,
|
|
110
|
+
abac: { enabled: false },
|
|
111
|
+
handler: async (req, res) => {
|
|
112
|
+
try {
|
|
113
|
+
const initiativeId = req.params.id;
|
|
114
|
+
|
|
115
|
+
const [tasks, sprints, initiative] = await Promise.all([
|
|
116
|
+
db.task.find({ initiative: initiativeId }),
|
|
117
|
+
db.sprint.find({ initiative: initiativeId }),
|
|
118
|
+
db.initiative.findById(initiativeId),
|
|
119
|
+
]);
|
|
120
|
+
|
|
121
|
+
const totalTasks = tasks.length;
|
|
122
|
+
const completedTasks = tasks.filter(t => t.status === 'completed').length;
|
|
123
|
+
const taskProgress = totalTasks > 0 ? Math.round(completedTasks / totalTasks * 100) : 0;
|
|
124
|
+
|
|
125
|
+
const totalSprints = sprints.length;
|
|
126
|
+
const completedSprints = sprints.filter(m => m.status === 'completed').length;
|
|
127
|
+
const sprintProgress = totalSprints > 0 ? Math.round(completedSprints / totalSprints * 100) : 0;
|
|
128
|
+
|
|
129
|
+
const now = new Date();
|
|
130
|
+
const incompleteTasks = tasks.filter(t => t.status !== 'completed');
|
|
131
|
+
const overdueTasks = incompleteTasks.filter(t => t.dueDate && new Date(t.dueDate) < now);
|
|
132
|
+
const overdueRatio = incompleteTasks.length > 0 ? overdueTasks.length / incompleteTasks.length : 0;
|
|
133
|
+
const riskIndex = overdueRatio > 0.3 ? 'high' : overdueRatio > 0.1 ? 'medium' : 'low';
|
|
134
|
+
|
|
135
|
+
const envs = initiative?.environments || [];
|
|
136
|
+
const healthyEnvs = envs.filter(e => e.status === 'healthy').length;
|
|
137
|
+
const availabilityIndex = envs.length > 0 ? Math.round(healthyEnvs / envs.length * 100) : 100;
|
|
138
|
+
|
|
139
|
+
const team = initiative?.team || {};
|
|
140
|
+
const activeUsers = (team.owners?.length || 0) + (team.coreTeam?.length || 0) + (team.contributors?.length || 0);
|
|
141
|
+
|
|
142
|
+
const performance = totalSprints > 0 ? Math.round(completedSprints / totalSprints * 100) : 0;
|
|
143
|
+
|
|
144
|
+
res.json({ taskProgress, sprintProgress, riskIndex, availabilityIndex, activeUsers, performance });
|
|
145
|
+
} catch (error) {
|
|
146
|
+
console.error(error);
|
|
147
|
+
res.status(500).json({ error: error.message });
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
|
|
105
152
|
return initiativesCRUD;
|
|
106
153
|
}
|
package/src/modules/governance/controllers/routes/{milestones.routes.js → sprints.routes.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import CRUD from '@martyrs/src/modules/core/controllers/classes/crud/crud.js';
|
|
2
2
|
import ABAC from '@martyrs/src/modules/core/controllers/classes/abac/abac.js';
|
|
3
|
-
import
|
|
3
|
+
import sprintsVerifierFactory from '../../middlewares/sprints.verifier.js';
|
|
4
4
|
|
|
5
5
|
const { getInstance } = ABAC;
|
|
6
6
|
|
|
7
7
|
export default function (app, db) {
|
|
8
8
|
const abac = getInstance(db);
|
|
9
|
-
const verifier =
|
|
9
|
+
const verifier = sprintsVerifierFactory(db);
|
|
10
10
|
|
|
11
|
-
// Основной CRUD для
|
|
12
|
-
const
|
|
11
|
+
// Основной CRUD для sprints
|
|
12
|
+
const sprintsCRUD = new CRUD({
|
|
13
13
|
app,
|
|
14
14
|
db,
|
|
15
|
-
model: db.
|
|
16
|
-
modelName: '
|
|
17
|
-
basePath: '/api/
|
|
15
|
+
model: db.sprint,
|
|
16
|
+
modelName: 'sprint',
|
|
17
|
+
basePath: '/api/sprints',
|
|
18
18
|
|
|
19
19
|
auth: { read: false },
|
|
20
20
|
|
|
@@ -34,7 +34,7 @@ export default function (app, db) {
|
|
|
34
34
|
cache: {
|
|
35
35
|
enabled: true,
|
|
36
36
|
ttl: 300,
|
|
37
|
-
tags: ['
|
|
37
|
+
tags: ['sprints', 'governance']
|
|
38
38
|
},
|
|
39
39
|
|
|
40
40
|
events: {
|
|
@@ -45,8 +45,8 @@ export default function (app, db) {
|
|
|
45
45
|
|
|
46
46
|
// Кастомные роуты через addAction
|
|
47
47
|
|
|
48
|
-
// Get
|
|
49
|
-
|
|
48
|
+
// Get sprint tasks - /api/sprints/:id/tasks
|
|
49
|
+
sprintsCRUD.addAction('tasks', {
|
|
50
50
|
method: 'get',
|
|
51
51
|
path: '/:id/tasks',
|
|
52
52
|
auth: false,
|
|
@@ -54,7 +54,7 @@ export default function (app, db) {
|
|
|
54
54
|
handler: async (req, res) => {
|
|
55
55
|
try {
|
|
56
56
|
const tasks = await db.task.find({
|
|
57
|
-
|
|
57
|
+
sprint: req.params.id
|
|
58
58
|
}).populate('assignedTo');
|
|
59
59
|
res.json(tasks);
|
|
60
60
|
} catch (error) {
|
|
@@ -64,16 +64,16 @@ export default function (app, db) {
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
// Propose task for
|
|
68
|
-
|
|
67
|
+
// Propose task for sprint - /api/sprints/:id/propose-task
|
|
68
|
+
sprintsCRUD.addAction('propose-task', {
|
|
69
69
|
method: 'post',
|
|
70
70
|
path: '/:id/propose-task',
|
|
71
71
|
auth: true,
|
|
72
72
|
handler: async (req, res) => {
|
|
73
73
|
try {
|
|
74
|
-
const
|
|
75
|
-
if (!
|
|
76
|
-
return res.status(404).json({ error: '
|
|
74
|
+
const sprint = await db.sprint.findById(req.params.id);
|
|
75
|
+
if (!sprint) {
|
|
76
|
+
return res.status(404).json({ error: 'Sprint not found' });
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
const { title, description, dueDate } = req.body;
|
|
@@ -83,17 +83,17 @@ export default function (app, db) {
|
|
|
83
83
|
type: 'create_task',
|
|
84
84
|
targetModel: 'Task',
|
|
85
85
|
title: `Create task: ${title}`,
|
|
86
|
-
description: `Proposal to create task in
|
|
87
|
-
initiative:
|
|
88
|
-
|
|
86
|
+
description: `Proposal to create task in sprint "${sprint.name}": ${description}`,
|
|
87
|
+
initiative: sprint.initiative,
|
|
88
|
+
sprint: req.params.id,
|
|
89
89
|
threshold: 51,
|
|
90
90
|
participants: [],
|
|
91
91
|
metadata: {
|
|
92
92
|
taskData: {
|
|
93
93
|
title,
|
|
94
94
|
description,
|
|
95
|
-
|
|
96
|
-
initiative:
|
|
95
|
+
sprint: req.params.id,
|
|
96
|
+
initiative: sprint.initiative,
|
|
97
97
|
dueDate
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -107,5 +107,5 @@ export default function (app, db) {
|
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
-
return
|
|
110
|
+
return sprintsCRUD;
|
|
111
111
|
}
|
|
@@ -84,7 +84,7 @@ export default function (app, db) {
|
|
|
84
84
|
try {
|
|
85
85
|
const task = await db.task.findById(req.params.id)
|
|
86
86
|
.populate('assignedTo')
|
|
87
|
-
.populate('
|
|
87
|
+
.populate('sprint');
|
|
88
88
|
|
|
89
89
|
if (!task) {
|
|
90
90
|
return res.status(404).json({ error: 'Task not found' });
|
|
@@ -102,7 +102,7 @@ export default function (app, db) {
|
|
|
102
102
|
title: `Approve completion of task: ${task.title}`,
|
|
103
103
|
description: `Review and approve the completion of task "${task.title}"`,
|
|
104
104
|
initiative: task.initiative,
|
|
105
|
-
|
|
105
|
+
sprint: task.sprint,
|
|
106
106
|
threshold: 51,
|
|
107
107
|
participants: [],
|
|
108
108
|
metadata: {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as storeInitiatives from './views/store/initiatives.js';
|
|
2
2
|
import * as storeTasks from './views/store/tasks.js';
|
|
3
|
-
import * as storeVotes from './views/store/votes.js';
|
|
4
3
|
import * as storeVotings from './views/store/votings.js';
|
|
5
4
|
|
|
6
5
|
// Router
|
|
7
6
|
import addRoutes from '@martyrs/src/modules/core/views/router/addRoutes.js';
|
|
8
|
-
import { getRoutes } from './governance.router.js';
|
|
7
|
+
import { getRoutes } from './views/router/governance.router.js';
|
|
9
8
|
|
|
10
9
|
// Example initialization function for the Governance module
|
|
11
10
|
function initializeGovernance(app, store, router, options = {}) {
|
|
@@ -17,7 +16,6 @@ function initializeGovernance(app, store, router, options = {}) {
|
|
|
17
16
|
store.addStore('initiatives', storeInitiatives);
|
|
18
17
|
store.addStore('tasks', storeTasks);
|
|
19
18
|
store.addStore('votings', storeVotings);
|
|
20
|
-
store.addStore('votes', storeVotes);
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
const ModuleGovernance = {
|
|
@@ -27,7 +25,6 @@ const ModuleGovernance = {
|
|
|
27
25
|
storeInitiatives,
|
|
28
26
|
storeTasks,
|
|
29
27
|
storeVotings,
|
|
30
|
-
storeVotes,
|
|
31
28
|
},
|
|
32
29
|
router: {
|
|
33
30
|
getRoutes,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import RoutesInitiative from './controllers/routes/initiatives.routes.js';
|
|
2
|
-
import
|
|
2
|
+
import RoutesSprint from './controllers/routes/sprints.routes.js';
|
|
3
3
|
import RoutesTask from './controllers/routes/tasks.routes.js';
|
|
4
4
|
import RoutesVote from './controllers/routes/votes.routes.js';
|
|
5
5
|
import RoutesVoting from './controllers/routes/votings.routes.js';
|
|
6
6
|
import ModelInitiative from './models/initiative.model.js';
|
|
7
|
-
import
|
|
7
|
+
import ModelSprint from './models/sprint.model.js';
|
|
8
8
|
import ModelTask from './models/task.model.js';
|
|
9
9
|
import ModelVote from './models/vote.model.js';
|
|
10
10
|
import ModelVoting from './models/voting.model.js';
|
|
11
11
|
function initializeGovernance({ app, db, origins, publicPath }) {
|
|
12
12
|
// Setup models in the database object
|
|
13
13
|
db.initiative = ModelInitiative(db);
|
|
14
|
-
db.
|
|
14
|
+
db.sprint = ModelSprint(db);
|
|
15
15
|
db.task = ModelTask(db);
|
|
16
16
|
db.voting = ModelVoting(db);
|
|
17
17
|
db.vote = ModelVote(db);
|
|
18
18
|
// Setup routes if the app object is provided
|
|
19
19
|
if (app) {
|
|
20
20
|
RoutesInitiative(app, db, origins, publicPath);
|
|
21
|
-
|
|
21
|
+
RoutesSprint(app, db, origins, publicPath);
|
|
22
22
|
RoutesTask(app, db, origins, publicPath);
|
|
23
23
|
RoutesVoting(app, db, origins, publicPath);
|
|
24
24
|
RoutesVote(app, db, origins, publicPath);
|
|
@@ -26,14 +26,14 @@ function initializeGovernance({ app, db, origins, publicPath }) {
|
|
|
26
26
|
}
|
|
27
27
|
export const models = {
|
|
28
28
|
ModelInitiative,
|
|
29
|
-
|
|
29
|
+
ModelSprint,
|
|
30
30
|
ModelTask,
|
|
31
31
|
ModelVoting,
|
|
32
32
|
ModelVote,
|
|
33
33
|
};
|
|
34
34
|
export const routes = {
|
|
35
35
|
RoutesInitiative,
|
|
36
|
-
|
|
36
|
+
RoutesSprint,
|
|
37
37
|
RoutesTask,
|
|
38
38
|
RoutesVoting,
|
|
39
39
|
RoutesVote,
|
|
@@ -67,6 +67,36 @@ export default function(db) {
|
|
|
67
67
|
},
|
|
68
68
|
date: {
|
|
69
69
|
rule: 'optional'
|
|
70
|
+
},
|
|
71
|
+
fullDescription: {
|
|
72
|
+
rule: 'optional'
|
|
73
|
+
},
|
|
74
|
+
valueProposition: {
|
|
75
|
+
rule: 'optional'
|
|
76
|
+
},
|
|
77
|
+
targetAudience: {
|
|
78
|
+
rule: 'optional'
|
|
79
|
+
},
|
|
80
|
+
successCriteria: {
|
|
81
|
+
rule: 'optional'
|
|
82
|
+
},
|
|
83
|
+
repositories: {
|
|
84
|
+
rule: 'optional'
|
|
85
|
+
},
|
|
86
|
+
links: {
|
|
87
|
+
rule: 'optional'
|
|
88
|
+
},
|
|
89
|
+
environments: {
|
|
90
|
+
rule: 'optional'
|
|
91
|
+
},
|
|
92
|
+
releases: {
|
|
93
|
+
rule: 'optional'
|
|
94
|
+
},
|
|
95
|
+
metrics: {
|
|
96
|
+
rule: 'optional'
|
|
97
|
+
},
|
|
98
|
+
sprints: {
|
|
99
|
+
rule: 'optional'
|
|
70
100
|
}
|
|
71
101
|
});
|
|
72
102
|
|
|
@@ -174,6 +204,36 @@ export default function(db) {
|
|
|
174
204
|
},
|
|
175
205
|
date: {
|
|
176
206
|
rule: 'optional'
|
|
207
|
+
},
|
|
208
|
+
fullDescription: {
|
|
209
|
+
rule: 'optional'
|
|
210
|
+
},
|
|
211
|
+
valueProposition: {
|
|
212
|
+
rule: 'optional'
|
|
213
|
+
},
|
|
214
|
+
targetAudience: {
|
|
215
|
+
rule: 'optional'
|
|
216
|
+
},
|
|
217
|
+
successCriteria: {
|
|
218
|
+
rule: 'optional'
|
|
219
|
+
},
|
|
220
|
+
repositories: {
|
|
221
|
+
rule: 'optional'
|
|
222
|
+
},
|
|
223
|
+
links: {
|
|
224
|
+
rule: 'optional'
|
|
225
|
+
},
|
|
226
|
+
environments: {
|
|
227
|
+
rule: 'optional'
|
|
228
|
+
},
|
|
229
|
+
releases: {
|
|
230
|
+
rule: 'optional'
|
|
231
|
+
},
|
|
232
|
+
metrics: {
|
|
233
|
+
rule: 'optional'
|
|
234
|
+
},
|
|
235
|
+
sprints: {
|
|
236
|
+
rule: 'optional'
|
|
177
237
|
}
|
|
178
238
|
});
|
|
179
239
|
|
|
@@ -3,13 +3,13 @@ import Verifier from '@martyrs/src/modules/core/controllers/classes/core.verifie
|
|
|
3
3
|
|
|
4
4
|
export default function(db) {
|
|
5
5
|
|
|
6
|
-
// Верификатор для создания
|
|
6
|
+
// Верификатор для создания спринтов
|
|
7
7
|
const createVerifier = new Verifier({
|
|
8
8
|
name: {
|
|
9
9
|
rule: 'required',
|
|
10
10
|
validator: Validator.schema()
|
|
11
11
|
.string()
|
|
12
|
-
.required('
|
|
12
|
+
.required('Sprint name is required')
|
|
13
13
|
.min(1, 'Name cannot be empty')
|
|
14
14
|
.max(200, 'Name must not exceed 200 characters')
|
|
15
15
|
},
|
|
@@ -96,13 +96,13 @@ export default function(db) {
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
-
// Верификатор для чтения
|
|
99
|
+
// Верификатор для чтения спринтов
|
|
100
100
|
const readVerifier = new Verifier({
|
|
101
101
|
_id: {
|
|
102
102
|
rule: 'optional',
|
|
103
103
|
validator: Validator.schema()
|
|
104
104
|
.string()
|
|
105
|
-
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid
|
|
105
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid sprint ID format')
|
|
106
106
|
},
|
|
107
107
|
initiative: {
|
|
108
108
|
rule: 'optional',
|
|
@@ -143,14 +143,14 @@ export default function(db) {
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
// Верификатор для обновления
|
|
146
|
+
// Верификатор для обновления спринтов
|
|
147
147
|
const updateVerifier = new Verifier({
|
|
148
148
|
_id: {
|
|
149
149
|
rule: 'required',
|
|
150
150
|
validator: Validator.schema()
|
|
151
151
|
.string()
|
|
152
|
-
.required('
|
|
153
|
-
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid
|
|
152
|
+
.required('Sprint ID is required')
|
|
153
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid sprint ID format')
|
|
154
154
|
},
|
|
155
155
|
name: {
|
|
156
156
|
rule: 'optional',
|
|
@@ -223,14 +223,14 @@ export default function(db) {
|
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
|
|
226
|
-
// Верификатор для удаления
|
|
226
|
+
// Верификатор для удаления спринтов
|
|
227
227
|
const deleteVerifier = new Verifier({
|
|
228
228
|
_id: {
|
|
229
229
|
rule: 'required',
|
|
230
230
|
validator: Validator.schema()
|
|
231
231
|
.string()
|
|
232
|
-
.required('
|
|
233
|
-
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid
|
|
232
|
+
.required('Sprint ID is required')
|
|
233
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid sprint ID format')
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
236
|
|
|
@@ -37,11 +37,11 @@ export default function(db) {
|
|
|
37
37
|
validator: Validator.schema()
|
|
38
38
|
.date()
|
|
39
39
|
},
|
|
40
|
-
|
|
40
|
+
sprint: {
|
|
41
41
|
rule: 'optional',
|
|
42
42
|
validator: Validator.schema()
|
|
43
43
|
.string()
|
|
44
|
-
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid
|
|
44
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid sprint ID format')
|
|
45
45
|
},
|
|
46
46
|
initiative: {
|
|
47
47
|
rule: 'optional',
|
|
@@ -89,11 +89,11 @@ export default function(db) {
|
|
|
89
89
|
.string()
|
|
90
90
|
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid task ID format')
|
|
91
91
|
},
|
|
92
|
-
|
|
92
|
+
sprint: {
|
|
93
93
|
rule: 'optional',
|
|
94
94
|
validator: Validator.schema()
|
|
95
95
|
.string()
|
|
96
|
-
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid
|
|
96
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid sprint ID format')
|
|
97
97
|
},
|
|
98
98
|
initiative: {
|
|
99
99
|
rule: 'optional',
|
|
@@ -24,13 +24,13 @@ export default function(db) {
|
|
|
24
24
|
validator: Validator.schema()
|
|
25
25
|
.string()
|
|
26
26
|
.required('Voting type is required')
|
|
27
|
-
.oneOf(['create_task', 'approve_task', 'create_initiative', '
|
|
27
|
+
.oneOf(['create_task', 'approve_task', 'create_initiative', 'update_sprint', 'general'], 'Invalid voting type')
|
|
28
28
|
},
|
|
29
29
|
targetModel: {
|
|
30
30
|
rule: 'optional',
|
|
31
31
|
validator: Validator.schema()
|
|
32
32
|
.string()
|
|
33
|
-
.oneOf(['Task', 'Initiative', '
|
|
33
|
+
.oneOf(['Task', 'Initiative', 'Sprint'], 'Invalid target model')
|
|
34
34
|
},
|
|
35
35
|
targetId: {
|
|
36
36
|
rule: 'optional',
|
|
@@ -69,11 +69,17 @@ export default function(db) {
|
|
|
69
69
|
.string()
|
|
70
70
|
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid initiative ID format')
|
|
71
71
|
},
|
|
72
|
-
|
|
72
|
+
sprint: {
|
|
73
73
|
rule: 'optional',
|
|
74
74
|
validator: Validator.schema()
|
|
75
75
|
.string()
|
|
76
|
-
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid
|
|
76
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid sprint ID format')
|
|
77
|
+
},
|
|
78
|
+
task: {
|
|
79
|
+
rule: 'optional',
|
|
80
|
+
validator: Validator.schema()
|
|
81
|
+
.string()
|
|
82
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid task ID format')
|
|
77
83
|
},
|
|
78
84
|
metadata: {
|
|
79
85
|
rule: 'optional'
|
|
@@ -109,7 +115,7 @@ export default function(db) {
|
|
|
109
115
|
rule: 'optional',
|
|
110
116
|
validator: Validator.schema()
|
|
111
117
|
.string()
|
|
112
|
-
.oneOf(['create_task', 'approve_task', 'create_initiative', '
|
|
118
|
+
.oneOf(['create_task', 'approve_task', 'create_initiative', 'update_sprint', 'general'], 'Invalid voting type')
|
|
113
119
|
},
|
|
114
120
|
initiative: {
|
|
115
121
|
rule: 'optional',
|
|
@@ -117,11 +123,17 @@ export default function(db) {
|
|
|
117
123
|
.string()
|
|
118
124
|
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid initiative ID format')
|
|
119
125
|
},
|
|
120
|
-
|
|
126
|
+
sprint: {
|
|
127
|
+
rule: 'optional',
|
|
128
|
+
validator: Validator.schema()
|
|
129
|
+
.string()
|
|
130
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid sprint ID format')
|
|
131
|
+
},
|
|
132
|
+
task: {
|
|
121
133
|
rule: 'optional',
|
|
122
134
|
validator: Validator.schema()
|
|
123
135
|
.string()
|
|
124
|
-
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid
|
|
136
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid task ID format')
|
|
125
137
|
},
|
|
126
138
|
result: {
|
|
127
139
|
rule: 'optional',
|
|
@@ -201,6 +213,12 @@ export default function(db) {
|
|
|
201
213
|
.string()
|
|
202
214
|
.oneOf(['pending', 'approved', 'rejected'], 'Invalid result')
|
|
203
215
|
},
|
|
216
|
+
task: {
|
|
217
|
+
rule: 'optional',
|
|
218
|
+
validator: Validator.schema()
|
|
219
|
+
.string()
|
|
220
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid task ID format')
|
|
221
|
+
},
|
|
204
222
|
metadata: {
|
|
205
223
|
rule: 'optional'
|
|
206
224
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default db => {
|
|
2
|
-
const
|
|
2
|
+
const SprintSchema = new db.mongoose.Schema(
|
|
3
3
|
{
|
|
4
4
|
name: {
|
|
5
5
|
type: String,
|
|
@@ -58,9 +58,9 @@ export default db => {
|
|
|
58
58
|
],
|
|
59
59
|
dependencies: [
|
|
60
60
|
{
|
|
61
|
-
|
|
61
|
+
sprint: {
|
|
62
62
|
type: db.mongoose.Schema.Types.ObjectId,
|
|
63
|
-
ref: '
|
|
63
|
+
ref: 'Sprint',
|
|
64
64
|
},
|
|
65
65
|
type: {
|
|
66
66
|
type: String,
|
|
@@ -86,17 +86,17 @@ export default db => {
|
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
88
|
// Virtuals
|
|
89
|
-
|
|
89
|
+
SprintSchema.virtual('isOverdue').get(function () {
|
|
90
90
|
return this.dueDate && this.dueDate < new Date() && this.status !== 'completed';
|
|
91
91
|
});
|
|
92
|
-
|
|
92
|
+
SprintSchema.virtual('duration').get(function () {
|
|
93
93
|
return this.dueDate ? Math.ceil((this.dueDate - this.startDate) / (1000 * 60 * 60 * 24)) : null;
|
|
94
94
|
});
|
|
95
95
|
// Indexes
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
const
|
|
101
|
-
return
|
|
96
|
+
SprintSchema.index({ initiative: 1, status: 1 });
|
|
97
|
+
SprintSchema.index({ owner: 1 });
|
|
98
|
+
SprintSchema.index({ dueDate: 1 });
|
|
99
|
+
SprintSchema.index({ 'dependencies.sprint': 1 });
|
|
100
|
+
const Sprint = db.mongoose.model('Sprint', SprintSchema);
|
|
101
|
+
return Sprint;
|
|
102
102
|
};
|
|
@@ -20,10 +20,10 @@ export default db => {
|
|
|
20
20
|
dueDate: {
|
|
21
21
|
type: Date,
|
|
22
22
|
},
|
|
23
|
-
// Reference to
|
|
24
|
-
|
|
23
|
+
// Reference to sprint
|
|
24
|
+
sprint: {
|
|
25
25
|
type: db.mongoose.Schema.Types.ObjectId,
|
|
26
|
-
ref: '
|
|
26
|
+
ref: 'Sprint',
|
|
27
27
|
},
|
|
28
28
|
initiative: {
|
|
29
29
|
type: db.mongoose.Schema.Types.ObjectId,
|
|
@@ -59,7 +59,7 @@ export default db => {
|
|
|
59
59
|
}
|
|
60
60
|
);
|
|
61
61
|
// Add indexes
|
|
62
|
-
TaskSchema.index({
|
|
62
|
+
TaskSchema.index({ sprint: 1 });
|
|
63
63
|
TaskSchema.index({ assignedTo: 1 });
|
|
64
64
|
TaskSchema.index({ status: 1 });
|
|
65
65
|
TaskSchema.index({ dueDate: 1 });
|