@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,164 @@
|
|
|
1
|
+
import { computed, resolveComponent, createBlock, openBlock, withCtx, createElementVNode, createVNode, createElementBlock, toDisplayString, unref } from "vue";
|
|
2
|
+
import { useRoute } from "vue-router";
|
|
3
|
+
import _sfc_main$1 from "./TaskStatusBadge.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _sfc_main$2 from "../../../../icons/actions/IconOpenLink.vue.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
17
|
+
/* empty css */
|
|
18
|
+
/* empty css */
|
|
19
|
+
/* empty css */
|
|
20
|
+
const _hoisted_1 = { class: "flex flex-justify-between flex-align-start" };
|
|
21
|
+
const _hoisted_2 = { class: "flex flex-align-start gap-small flex-child-1" };
|
|
22
|
+
const _hoisted_3 = { class: "br-black-transp-10 br-1px radius-medium pd-thin hover:bg-main-small ease-cubic-in-out" };
|
|
23
|
+
const _hoisted_4 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "i-semi t-dark hover:t-main",
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
fill: "none",
|
|
28
|
+
stroke: "currentColor",
|
|
29
|
+
"stroke-width": "2"
|
|
30
|
+
};
|
|
31
|
+
const _hoisted_5 = {
|
|
32
|
+
key: 1,
|
|
33
|
+
class: "i-semi t-dark hover:t-main",
|
|
34
|
+
viewBox: "0 0 24 24",
|
|
35
|
+
fill: "none",
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
"stroke-width": "2"
|
|
38
|
+
};
|
|
39
|
+
const _hoisted_6 = {
|
|
40
|
+
key: 2,
|
|
41
|
+
class: "i-semi t-dark hover:t-main",
|
|
42
|
+
viewBox: "0 0 24 24",
|
|
43
|
+
fill: "none",
|
|
44
|
+
stroke: "currentColor",
|
|
45
|
+
"stroke-width": "2"
|
|
46
|
+
};
|
|
47
|
+
const _hoisted_7 = {
|
|
48
|
+
key: 3,
|
|
49
|
+
class: "i-semi t-dark hover:t-main",
|
|
50
|
+
viewBox: "0 0 24 24",
|
|
51
|
+
fill: "none",
|
|
52
|
+
stroke: "currentColor",
|
|
53
|
+
"stroke-width": "2"
|
|
54
|
+
};
|
|
55
|
+
const _hoisted_8 = { class: "flex-child-1 min-w-0" };
|
|
56
|
+
const _hoisted_9 = { class: "p-micro t-dark mn-b-small" };
|
|
57
|
+
const _hoisted_10 = { class: "p-small fw-medium mn-b-small truncate" };
|
|
58
|
+
const _sfc_main = {
|
|
59
|
+
__name: "LinkedEntityCard",
|
|
60
|
+
props: {
|
|
61
|
+
entityType: {
|
|
62
|
+
type: String,
|
|
63
|
+
required: true,
|
|
64
|
+
validator: (value) => ["initiative", "sprint", "task", "voting"].includes(value)
|
|
65
|
+
},
|
|
66
|
+
entityData: {
|
|
67
|
+
type: Object,
|
|
68
|
+
required: true
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
setup(__props) {
|
|
72
|
+
const route = useRoute();
|
|
73
|
+
const props = __props;
|
|
74
|
+
const entityConfig = {
|
|
75
|
+
initiative: {
|
|
76
|
+
icon: "target",
|
|
77
|
+
label: "Initiative",
|
|
78
|
+
path: (id) => `/governance/initiatives/${id}`
|
|
79
|
+
},
|
|
80
|
+
sprint: {
|
|
81
|
+
icon: "layers",
|
|
82
|
+
label: "Sprint",
|
|
83
|
+
path: (id) => `/governance/initiatives/${route.params.id}/sprints/${id}`
|
|
84
|
+
},
|
|
85
|
+
task: {
|
|
86
|
+
icon: "checksquare",
|
|
87
|
+
label: "Task",
|
|
88
|
+
path: (id) => `/governance/initiatives/${route.params.id}/tasks/${id}`
|
|
89
|
+
},
|
|
90
|
+
voting: {
|
|
91
|
+
icon: "send",
|
|
92
|
+
label: "Voting",
|
|
93
|
+
path: (id) => `/governance/initiatives/${route.params.id}/votings/${id}`
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
const config = computed(() => entityConfig[props.entityType]);
|
|
97
|
+
const displayName = computed(() => props.entityData.title || props.entityData.name || "Untitled");
|
|
98
|
+
const routePath = computed(() => config.value.path(props.entityData._id));
|
|
99
|
+
return (_ctx, _cache) => {
|
|
100
|
+
const _component_router_link = resolveComponent("router-link");
|
|
101
|
+
return openBlock(), createBlock(_component_router_link, {
|
|
102
|
+
to: routePath.value,
|
|
103
|
+
class: "d-block br-black-transp-10 br-1px radius-medium pd-medium hover:br-main hover:bg-main-small ease-cubic-in-out"
|
|
104
|
+
}, {
|
|
105
|
+
default: withCtx(() => [
|
|
106
|
+
createElementVNode("div", _hoisted_1, [
|
|
107
|
+
createElementVNode("div", _hoisted_2, [
|
|
108
|
+
createElementVNode("div", _hoisted_3, [
|
|
109
|
+
config.value.icon === "target" ? (openBlock(), createElementBlock("svg", _hoisted_4, _cache[0] || (_cache[0] = [
|
|
110
|
+
createElementVNode("circle", {
|
|
111
|
+
cx: "12",
|
|
112
|
+
cy: "12",
|
|
113
|
+
r: "10"
|
|
114
|
+
}, null, -1),
|
|
115
|
+
createElementVNode("circle", {
|
|
116
|
+
cx: "12",
|
|
117
|
+
cy: "12",
|
|
118
|
+
r: "6"
|
|
119
|
+
}, null, -1),
|
|
120
|
+
createElementVNode("circle", {
|
|
121
|
+
cx: "12",
|
|
122
|
+
cy: "12",
|
|
123
|
+
r: "2"
|
|
124
|
+
}, null, -1)
|
|
125
|
+
]))) : config.value.icon === "layers" ? (openBlock(), createElementBlock("svg", _hoisted_5, _cache[1] || (_cache[1] = [
|
|
126
|
+
createElementVNode("polygon", { points: "12 2 2 7 12 12 22 7 12 2" }, null, -1),
|
|
127
|
+
createElementVNode("polyline", { points: "2 17 12 22 22 17" }, null, -1),
|
|
128
|
+
createElementVNode("polyline", { points: "2 12 12 17 22 12" }, null, -1)
|
|
129
|
+
]))) : config.value.icon === "send" ? (openBlock(), createElementBlock("svg", _hoisted_6, _cache[2] || (_cache[2] = [
|
|
130
|
+
createElementVNode("line", {
|
|
131
|
+
x1: "22",
|
|
132
|
+
y1: "2",
|
|
133
|
+
x2: "11",
|
|
134
|
+
y2: "13"
|
|
135
|
+
}, null, -1),
|
|
136
|
+
createElementVNode("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)
|
|
137
|
+
]))) : (openBlock(), createElementBlock("svg", _hoisted_7, _cache[3] || (_cache[3] = [
|
|
138
|
+
createElementVNode("polyline", { points: "9 11 12 14 22 4" }, null, -1),
|
|
139
|
+
createElementVNode("path", { d: "M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11" }, null, -1)
|
|
140
|
+
])))
|
|
141
|
+
]),
|
|
142
|
+
createElementVNode("div", _hoisted_8, [
|
|
143
|
+
createElementVNode("div", _hoisted_9, toDisplayString(config.value.label), 1),
|
|
144
|
+
createElementVNode("h4", _hoisted_10, toDisplayString(displayName.value), 1),
|
|
145
|
+
createVNode(_sfc_main$1, {
|
|
146
|
+
status: __props.entityData.status
|
|
147
|
+
}, null, 8, ["status"])
|
|
148
|
+
])
|
|
149
|
+
]),
|
|
150
|
+
createVNode(unref(_sfc_main$2), {
|
|
151
|
+
class: "i-regular flex-shrink-0 mn-l-thin",
|
|
152
|
+
fill: "rgb(var(--grey))"
|
|
153
|
+
})
|
|
154
|
+
])
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
}, 8, ["to"]);
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
export {
|
|
162
|
+
_sfc_main as default
|
|
163
|
+
};
|
|
164
|
+
//# sourceMappingURL=LinkedEntityCard.vue.js.map
|
package/dist/martyrs/src/modules/governance/views/components/partials/LinkedEntityCard.vue.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkedEntityCard.vue.js","sources":["../../../../../../../../src/modules/governance/views/components/partials/LinkedEntityCard.vue"],"sourcesContent":["<script setup>\nimport { defineProps, computed } from 'vue';\nimport { useRoute } from 'vue-router';\nimport TaskStatusBadge from './TaskStatusBadge.vue';\nimport { IconOpenLink } from '@martyrs/src/modules/icons/icons.client.js';\n\nconst route = useRoute();\n\nconst props = defineProps({\n entityType: {\n type: String,\n required: true,\n validator: (value) => ['initiative', 'sprint', 'task', 'voting'].includes(value)\n },\n entityData: {\n type: Object,\n required: true\n }\n});\n\nconst entityConfig = {\n initiative: {\n icon: 'target',\n label: 'Initiative',\n path: (id) => `/governance/initiatives/${id}`,\n },\n sprint: {\n icon: 'layers',\n label: 'Sprint',\n path: (id) => `/governance/initiatives/${route.params.id}/sprints/${id}`,\n },\n task: {\n icon: 'checksquare',\n label: 'Task',\n path: (id) => `/governance/initiatives/${route.params.id}/tasks/${id}`,\n },\n voting: {\n icon: 'send',\n label: 'Voting',\n path: (id) => `/governance/initiatives/${route.params.id}/votings/${id}`,\n },\n};\n\nconst config = computed(() => entityConfig[props.entityType]);\nconst displayName = computed(() => props.entityData.title || props.entityData.name || 'Untitled');\nconst routePath = computed(() => config.value.path(props.entityData._id));\n</script>\n\n<template>\n <router-link\n :to=\"routePath\"\n class=\"d-block br-black-transp-10 br-1px radius-medium pd-medium hover:br-main hover:bg-main-small ease-cubic-in-out\"\n >\n <div class=\"flex flex-justify-between flex-align-start\">\n <div class=\"flex flex-align-start gap-small flex-child-1\">\n <div class=\"br-black-transp-10 br-1px radius-medium pd-thin hover:bg-main-small ease-cubic-in-out\">\n <svg v-if=\"config.icon === 'target'\" class=\"i-semi t-dark hover:t-main\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"/>\n <circle cx=\"12\" cy=\"12\" r=\"6\"/>\n <circle cx=\"12\" cy=\"12\" r=\"2\"/>\n </svg>\n <svg v-else-if=\"config.icon === 'layers'\" class=\"i-semi t-dark hover:t-main\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <polygon points=\"12 2 2 7 12 12 22 7 12 2\"/>\n <polyline points=\"2 17 12 22 22 17\"/>\n <polyline points=\"2 12 12 17 22 12\"/>\n </svg>\n <svg v-else-if=\"config.icon === 'send'\" class=\"i-semi t-dark hover:t-main\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <line x1=\"22\" y1=\"2\" x2=\"11\" y2=\"13\"/>\n <polygon points=\"22 2 15 22 11 13 2 9 22 2\"/>\n </svg>\n <svg v-else class=\"i-semi t-dark hover:t-main\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <polyline points=\"9 11 12 14 22 4\"/>\n <path d=\"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11\"/>\n </svg>\n </div>\n <div class=\"flex-child-1 min-w-0\">\n <div class=\"p-micro t-dark mn-b-small\">{{ config.label }}</div>\n <h4 class=\"p-small fw-medium mn-b-small truncate\">{{ displayName }}</h4>\n <TaskStatusBadge :status=\"entityData.status\" />\n </div>\n </div>\n <IconOpenLink class=\"i-regular flex-shrink-0 mn-l-thin\" :fill=\"'rgb(var(--grey))'\" />\n </div>\n </router-link>\n</template>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,UAAM,QAAQ,SAAQ;AAEtB,UAAM,QAAQ;AAYd,UAAM,eAAe;AAAA,MACnB,YAAY;AAAA,QACV,MAAM;AAAA,QACN,OAAO;AAAA,QACP,MAAM,CAAC,OAAO,2BAA2B,EAAE;AAAA,MAC/C;AAAA,MACE,QAAQ;AAAA,QACN,MAAM;AAAA,QACN,OAAO;AAAA,QACP,MAAM,CAAC,OAAO,2BAA2B,MAAM,OAAO,EAAE,YAAY,EAAE;AAAA,MAC1E;AAAA,MACE,MAAM;AAAA,QACJ,MAAM;AAAA,QACN,OAAO;AAAA,QACP,MAAM,CAAC,OAAO,2BAA2B,MAAM,OAAO,EAAE,UAAU,EAAE;AAAA,MACxE;AAAA,MACE,QAAQ;AAAA,QACN,MAAM;AAAA,QACN,OAAO;AAAA,QACP,MAAM,CAAC,OAAO,2BAA2B,MAAM,OAAO,EAAE,YAAY,EAAE;AAAA,MAC1E;AAAA,IACA;AAEA,UAAM,SAAS,SAAS,MAAM,aAAa,MAAM,UAAU,CAAC;AAC5D,UAAM,cAAc,SAAS,MAAM,MAAM,WAAW,SAAS,MAAM,WAAW,QAAQ,UAAU;AAChG,UAAM,YAAY,SAAS,MAAM,OAAO,MAAM,KAAK,MAAM,WAAW,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { computed, createElementBlock, openBlock, normalizeClass, toDisplayString } from "vue";
|
|
2
|
+
const _sfc_main = {
|
|
3
|
+
__name: "TaskStatusBadge",
|
|
4
|
+
props: {
|
|
5
|
+
status: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const statusConfig = {
|
|
13
|
+
proposed: { label: "Proposed", color: "br-black-transp-10 br-1px" },
|
|
14
|
+
voting: { label: "Voting", color: "bg-main-small t-main" },
|
|
15
|
+
not_started: { label: "Not Started", color: "bg-fourth-small t-fourth" },
|
|
16
|
+
in_progress: { label: "In Progress", color: "bg-second-small t-dark" },
|
|
17
|
+
review: { label: "Review", color: "bg-fifth-small t-fifth" },
|
|
18
|
+
completed: { label: "Completed", color: "bg-green-nice t-white" },
|
|
19
|
+
blocked: { label: "Blocked", color: "bg-red-nice t-white" },
|
|
20
|
+
cancelled: { label: "Cancelled", color: "bg-grey t-white" },
|
|
21
|
+
draft: { label: "Draft", color: "br-black-transp-10 br-1px" },
|
|
22
|
+
active: { label: "Active", color: "bg-green-nice t-white" },
|
|
23
|
+
archived: { label: "Archived", color: "bg-grey t-white" },
|
|
24
|
+
approved: { label: "Approved", color: "bg-green-nice t-white" },
|
|
25
|
+
pending: { label: "Pending", color: "bg-fourth-small t-fourth" },
|
|
26
|
+
rejected: { label: "Rejected", color: "bg-red-nice t-white" }
|
|
27
|
+
};
|
|
28
|
+
const config = computed(() => statusConfig[props.status] || statusConfig.proposed);
|
|
29
|
+
return (_ctx, _cache) => {
|
|
30
|
+
return openBlock(), createElementBlock("span", {
|
|
31
|
+
class: normalizeClass(`pd-thin radius-thin p-small fw-medium ${config.value.color}`)
|
|
32
|
+
}, toDisplayString(config.value.label), 3);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
_sfc_main as default
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=TaskStatusBadge.vue.js.map
|
package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskStatusBadge.vue.js","sources":["../../../../../../../../src/modules/governance/views/components/partials/TaskStatusBadge.vue"],"sourcesContent":["<script setup>\nimport { defineProps, computed } from 'vue';\n\nconst props = defineProps({\n status: {\n type: String,\n required: true\n }\n});\n\nconst statusConfig = {\n proposed: { label: 'Proposed', color: 'br-black-transp-10 br-1px' },\n voting: { label: 'Voting', color: 'bg-main-small t-main' },\n not_started: { label: 'Not Started', color: 'bg-fourth-small t-fourth' },\n in_progress: { label: 'In Progress', color: 'bg-second-small t-dark' },\n review: { label: 'Review', color: 'bg-fifth-small t-fifth' },\n completed: { label: 'Completed', color: 'bg-green-nice t-white' },\n blocked: { label: 'Blocked', color: 'bg-red-nice t-white' },\n cancelled: { label: 'Cancelled', color: 'bg-grey t-white' },\n draft: { label: 'Draft', color: 'br-black-transp-10 br-1px' },\n active: { label: 'Active', color: 'bg-green-nice t-white' },\n archived: { label: 'Archived', color: 'bg-grey t-white' },\n approved: { label: 'Approved', color: 'bg-green-nice t-white' },\n pending: { label: 'Pending', color: 'bg-fourth-small t-fourth' },\n rejected: { label: 'Rejected', color: 'bg-red-nice t-white' },\n};\n\nconst config = computed(() => statusConfig[props.status] || statusConfig.proposed);\n</script>\n\n<template>\n <span :class=\"`pd-thin radius-thin p-small fw-medium ${config.color}`\">\n {{ config.label }}\n </span>\n</template>\n"],"names":[],"mappings":";;;;;;;;;;AAGA,UAAM,QAAQ;AAOd,UAAM,eAAe;AAAA,MACnB,UAAU,EAAE,OAAO,YAAY,OAAO,4BAA2B;AAAA,MACjE,QAAQ,EAAE,OAAO,UAAU,OAAO,uBAAsB;AAAA,MACxD,aAAa,EAAE,OAAO,eAAe,OAAO,2BAA0B;AAAA,MACtE,aAAa,EAAE,OAAO,eAAe,OAAO,yBAAwB;AAAA,MACpE,QAAQ,EAAE,OAAO,UAAU,OAAO,yBAAwB;AAAA,MAC1D,WAAW,EAAE,OAAO,aAAa,OAAO,wBAAuB;AAAA,MAC/D,SAAS,EAAE,OAAO,WAAW,OAAO,sBAAqB;AAAA,MACzD,WAAW,EAAE,OAAO,aAAa,OAAO,kBAAiB;AAAA,MACzD,OAAO,EAAE,OAAO,SAAS,OAAO,4BAA2B;AAAA,MAC3D,QAAQ,EAAE,OAAO,UAAU,OAAO,wBAAuB;AAAA,MACzD,UAAU,EAAE,OAAO,YAAY,OAAO,kBAAiB;AAAA,MACvD,UAAU,EAAE,OAAO,YAAY,OAAO,wBAAuB;AAAA,MAC7D,SAAS,EAAE,OAAO,WAAW,OAAO,2BAA0B;AAAA,MAC9D,UAAU,EAAE,OAAO,YAAY,OAAO,sBAAqB;AAAA,IAC7D;AAEA,UAAM,SAAS,SAAS,MAAM,aAAa,MAAM,MAAM,KAAK,aAAa,QAAQ;;;;;;;;"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { ref, createElementBlock, openBlock, createElementVNode, normalizeClass, withDirectives, vModelText } from "vue";
|
|
2
|
+
const _hoisted_1 = { class: "cols-3 gap-regular" };
|
|
3
|
+
const _hoisted_2 = ["disabled"];
|
|
4
|
+
const _sfc_main = {
|
|
5
|
+
__name: "VoteForm",
|
|
6
|
+
emits: ["submit"],
|
|
7
|
+
setup(__props, { emit: __emit }) {
|
|
8
|
+
const emit = __emit;
|
|
9
|
+
const selectedVote = ref(null);
|
|
10
|
+
const comment = ref("");
|
|
11
|
+
const handleSubmit = (e) => {
|
|
12
|
+
e.preventDefault();
|
|
13
|
+
if (selectedVote.value) {
|
|
14
|
+
emit("submit", selectedVote.value, comment.value);
|
|
15
|
+
selectedVote.value = null;
|
|
16
|
+
comment.value = "";
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return openBlock(), createElementBlock("form", {
|
|
21
|
+
onSubmit: handleSubmit,
|
|
22
|
+
class: "flex flex-column gap-small"
|
|
23
|
+
}, [
|
|
24
|
+
createElementVNode("div", null, [
|
|
25
|
+
_cache[7] || (_cache[7] = createElementVNode("h4", { class: "p-small fw-medium mn-b-small" }, "Cast Your Vote", -1)),
|
|
26
|
+
createElementVNode("div", _hoisted_1, [
|
|
27
|
+
createElementVNode("button", {
|
|
28
|
+
type: "button",
|
|
29
|
+
onClick: _cache[0] || (_cache[0] = ($event) => selectedVote.value = "yes"),
|
|
30
|
+
class: normalizeClass(`flex flex-column flex-align-center flex-justify-center pd-semi radius-medium br-2px ease-cubic-in-out ${selectedVote.value === "yes" ? "br-green-nice bg-green-small" : "br-light hover:br-green-nice"}`)
|
|
31
|
+
}, [
|
|
32
|
+
(openBlock(), createElementBlock("svg", {
|
|
33
|
+
class: normalizeClass(`w-8r h-8r mn-b-thin ${selectedVote.value === "yes" ? "fill-green-nice" : "fill-grey"}`),
|
|
34
|
+
viewBox: "0 0 24 24",
|
|
35
|
+
fill: "currentColor"
|
|
36
|
+
}, _cache[4] || (_cache[4] = [
|
|
37
|
+
createElementVNode("path", { d: "M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3" }, null, -1)
|
|
38
|
+
]), 2)),
|
|
39
|
+
createElementVNode("span", {
|
|
40
|
+
class: normalizeClass(`fw-medium ${selectedVote.value === "yes" ? "t-green-nice" : "t-dark"}`)
|
|
41
|
+
}, " Yes ", 2)
|
|
42
|
+
], 2),
|
|
43
|
+
createElementVNode("button", {
|
|
44
|
+
type: "button",
|
|
45
|
+
onClick: _cache[1] || (_cache[1] = ($event) => selectedVote.value = "no"),
|
|
46
|
+
class: normalizeClass(`flex flex-column flex-align-center flex-justify-center pd-semi radius-medium br-2px ease-cubic-in-out ${selectedVote.value === "no" ? "br-red-nice bg-red-small" : "br-light hover:br-red-nice"}`)
|
|
47
|
+
}, [
|
|
48
|
+
(openBlock(), createElementBlock("svg", {
|
|
49
|
+
class: normalizeClass(`w-8r h-8r mn-b-thin ${selectedVote.value === "no" ? "fill-red-nice" : "fill-grey"}`),
|
|
50
|
+
viewBox: "0 0 24 24",
|
|
51
|
+
fill: "currentColor"
|
|
52
|
+
}, _cache[5] || (_cache[5] = [
|
|
53
|
+
createElementVNode("path", { d: "M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17" }, null, -1)
|
|
54
|
+
]), 2)),
|
|
55
|
+
createElementVNode("span", {
|
|
56
|
+
class: normalizeClass(`fw-medium ${selectedVote.value === "no" ? "t-red-nice" : "t-dark"}`)
|
|
57
|
+
}, " No ", 2)
|
|
58
|
+
], 2),
|
|
59
|
+
createElementVNode("button", {
|
|
60
|
+
type: "button",
|
|
61
|
+
onClick: _cache[2] || (_cache[2] = ($event) => selectedVote.value = "abstain"),
|
|
62
|
+
class: normalizeClass(`flex flex-column flex-align-center flex-justify-center pd-semi radius-medium br-2px ease-cubic-in-out ${selectedVote.value === "abstain" ? "br-grey br-1px" : "br-light hover:br-grey"}`)
|
|
63
|
+
}, [
|
|
64
|
+
(openBlock(), createElementBlock("svg", {
|
|
65
|
+
class: normalizeClass(`w-8r h-8r mn-b-thin ${selectedVote.value === "abstain" ? "fill-grey" : "fill-grey"}`),
|
|
66
|
+
viewBox: "0 0 24 24",
|
|
67
|
+
fill: "none",
|
|
68
|
+
stroke: "currentColor",
|
|
69
|
+
"stroke-width": "2"
|
|
70
|
+
}, _cache[6] || (_cache[6] = [
|
|
71
|
+
createElementVNode("line", {
|
|
72
|
+
x1: "5",
|
|
73
|
+
y1: "12",
|
|
74
|
+
x2: "19",
|
|
75
|
+
y2: "12"
|
|
76
|
+
}, null, -1)
|
|
77
|
+
]), 2)),
|
|
78
|
+
createElementVNode("span", {
|
|
79
|
+
class: normalizeClass(`fw-medium ${selectedVote.value === "abstain" ? "t-dark" : "t-dark"}`)
|
|
80
|
+
}, " Abstain ", 2)
|
|
81
|
+
], 2)
|
|
82
|
+
])
|
|
83
|
+
]),
|
|
84
|
+
createElementVNode("div", null, [
|
|
85
|
+
_cache[8] || (_cache[8] = createElementVNode("label", {
|
|
86
|
+
for: "comment",
|
|
87
|
+
class: "d-block p-small fw-medium mn-b-small"
|
|
88
|
+
}, " Comment (Optional) ", -1)),
|
|
89
|
+
withDirectives(createElementVNode("textarea", {
|
|
90
|
+
id: "comment",
|
|
91
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => comment.value = $event),
|
|
92
|
+
rows: "4",
|
|
93
|
+
class: "w-100 pd-small br-1px br-light radius-medium",
|
|
94
|
+
style: { "outline": "none", "resize": "vertical" },
|
|
95
|
+
placeholder: "Share your thoughts on this proposal..."
|
|
96
|
+
}, null, 512), [
|
|
97
|
+
[vModelText, comment.value]
|
|
98
|
+
])
|
|
99
|
+
]),
|
|
100
|
+
createElementVNode("button", {
|
|
101
|
+
type: "submit",
|
|
102
|
+
disabled: !selectedVote.value,
|
|
103
|
+
class: normalizeClass(["w-100 bg-main hover:bg-main-semi t-white fw-medium pd-small radius-medium ease-cubic-in-out", { "bg-grey cursor-not-allowed": !selectedVote.value }])
|
|
104
|
+
}, " Submit Vote ", 10, _hoisted_2)
|
|
105
|
+
], 32);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
export {
|
|
110
|
+
_sfc_main as default
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=VoteForm.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoteForm.vue.js","sources":["../../../../../../../../src/modules/governance/views/components/partials/VoteForm.vue"],"sourcesContent":["<script setup>\nimport { ref } from 'vue';\n\nconst emit = defineEmits(['submit']);\n\nconst selectedVote = ref(null);\nconst comment = ref('');\n\nconst handleSubmit = (e) => {\n e.preventDefault();\n if (selectedVote.value) {\n emit('submit', selectedVote.value, comment.value);\n selectedVote.value = null;\n comment.value = '';\n }\n};\n</script>\n\n<template>\n <form @submit=\"handleSubmit\" class=\"flex flex-column gap-small\">\n <div>\n <h4 class=\"p-small fw-medium mn-b-small\">Cast Your Vote</h4>\n <div class=\"cols-3 gap-regular\">\n <button\n type=\"button\"\n @click=\"selectedVote = 'yes'\"\n :class=\"`flex flex-column flex-align-center flex-justify-center pd-semi radius-medium br-2px ease-cubic-in-out ${\n selectedVote === 'yes'\n ? 'br-green-nice bg-green-small'\n : 'br-light hover:br-green-nice'\n }`\"\n >\n <svg :class=\"`w-8r h-8r mn-b-thin ${selectedVote === 'yes' ? 'fill-green-nice' : 'fill-grey'}`\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"/>\n </svg>\n <span :class=\"`fw-medium ${selectedVote === 'yes' ? 't-green-nice' : 't-dark'}`\">\n Yes\n </span>\n </button>\n\n <button\n type=\"button\"\n @click=\"selectedVote = 'no'\"\n :class=\"`flex flex-column flex-align-center flex-justify-center pd-semi radius-medium br-2px ease-cubic-in-out ${\n selectedVote === 'no'\n ? 'br-red-nice bg-red-small'\n : 'br-light hover:br-red-nice'\n }`\"\n >\n <svg :class=\"`w-8r h-8r mn-b-thin ${selectedVote === 'no' ? 'fill-red-nice' : 'fill-grey'}`\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"/>\n </svg>\n <span :class=\"`fw-medium ${selectedVote === 'no' ? 't-red-nice' : 't-dark'}`\">\n No\n </span>\n </button>\n\n <button\n type=\"button\"\n @click=\"selectedVote = 'abstain'\"\n :class=\"`flex flex-column flex-align-center flex-justify-center pd-semi radius-medium br-2px ease-cubic-in-out ${\n selectedVote === 'abstain'\n ? 'br-grey br-1px'\n : 'br-light hover:br-grey'\n }`\"\n >\n <svg :class=\"`w-8r h-8r mn-b-thin ${selectedVote === 'abstain' ? 'fill-grey' : 'fill-grey'}`\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"/>\n </svg>\n <span :class=\"`fw-medium ${selectedVote === 'abstain' ? 't-dark' : 't-dark'}`\">\n Abstain\n </span>\n </button>\n </div>\n </div>\n\n <div>\n <label for=\"comment\" class=\"d-block p-small fw-medium mn-b-small\">\n Comment (Optional)\n </label>\n <textarea\n id=\"comment\"\n v-model=\"comment\"\n rows=\"4\"\n class=\"w-100 pd-small br-1px br-light radius-medium\"\n style=\"outline: none; resize: vertical;\"\n placeholder=\"Share your thoughts on this proposal...\"\n />\n </div>\n\n <button\n type=\"submit\"\n :disabled=\"!selectedVote\"\n class=\"w-100 bg-main hover:bg-main-semi t-white fw-medium pd-small radius-medium ease-cubic-in-out\"\n :class=\"{ 'bg-grey cursor-not-allowed': !selectedVote }\"\n >\n Submit Vote\n </button>\n </form>\n</template>\n"],"names":[],"mappings":";;;;;;;AAGA,UAAM,OAAO;AAEb,UAAM,eAAe,IAAI,IAAI;AAC7B,UAAM,UAAU,IAAI,EAAE;AAEtB,UAAM,eAAe,CAAC,MAAM;AAC1B,QAAE,eAAc;AAChB,UAAI,aAAa,OAAO;AACtB,aAAK,UAAU,aAAa,OAAO,QAAQ,KAAK;AAChD,qBAAa,QAAQ;AACrB,gBAAQ,QAAQ;AAAA,MAClB;AAAA,IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { computed, createElementBlock, openBlock, createElementVNode, normalizeClass, createBlock, unref, toDisplayString, createCommentVNode, normalizeStyle, createVNode, createTextVNode, Fragment, renderList } from "vue";
|
|
2
|
+
import { useGlobalMixins } from "../../../../core/views/mixins/mixins.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import _sfc_main$1 from "../../../../icons/navigation/IconCheckmark.vue.js";
|
|
5
|
+
import _sfc_main$2 from "../../../../icons/navigation/IconCross.vue.js";
|
|
6
|
+
import IconSend from "../../../../icons/navigation/IconSend.vue.js";
|
|
7
|
+
import "vue-router";
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
17
|
+
/* empty css */
|
|
18
|
+
/* empty css */
|
|
19
|
+
/* empty css */
|
|
20
|
+
/* empty css */
|
|
21
|
+
/* empty css */
|
|
22
|
+
const _hoisted_1 = { class: "flex flex-column gap-small" };
|
|
23
|
+
const _hoisted_2 = { class: "flex flex-justify-between flex-v-center mn-b-small" };
|
|
24
|
+
const _hoisted_3 = { class: "fw-medium" };
|
|
25
|
+
const _hoisted_4 = { class: "br-black-transp-10 br-1px radius-medium pd-medium mn-b-medium" };
|
|
26
|
+
const _hoisted_5 = { class: "flex flex-justify-between flex-v-center mn-b-small" };
|
|
27
|
+
const _hoisted_6 = { class: "h2 fw-medium" };
|
|
28
|
+
const _hoisted_7 = { class: "p-small t-dark" };
|
|
29
|
+
const _hoisted_8 = { class: "w-100 h-8r br-black-transp-10 br-1px radius-medium o-hidden flex" };
|
|
30
|
+
const _hoisted_9 = { key: 0 };
|
|
31
|
+
const _hoisted_10 = { key: 0 };
|
|
32
|
+
const _hoisted_11 = { key: 0 };
|
|
33
|
+
const _hoisted_12 = { class: "cols-3 gap-regular mn-t-medium" };
|
|
34
|
+
const _hoisted_13 = { class: "t-center" };
|
|
35
|
+
const _hoisted_14 = { class: "h2 fw-medium t-green-nice" };
|
|
36
|
+
const _hoisted_15 = { class: "p-small t-dark" };
|
|
37
|
+
const _hoisted_16 = { class: "t-center" };
|
|
38
|
+
const _hoisted_17 = { class: "h2 fw-medium t-red-nice" };
|
|
39
|
+
const _hoisted_18 = { class: "p-small t-dark" };
|
|
40
|
+
const _hoisted_19 = { class: "t-center" };
|
|
41
|
+
const _hoisted_20 = { class: "h2 fw-medium t-dark" };
|
|
42
|
+
const _hoisted_21 = { class: "p-small t-dark" };
|
|
43
|
+
const _hoisted_22 = { class: "h5 fw-medium mn-b-medium flex flex-v-center" };
|
|
44
|
+
const _hoisted_23 = { class: "flex flex-column gap-small" };
|
|
45
|
+
const _hoisted_24 = { class: "flex flex-justify-between flex-align-start mn-b-small" };
|
|
46
|
+
const _hoisted_25 = { class: "flex flex-v-center gap-small" };
|
|
47
|
+
const _hoisted_26 = { class: "i-big radius-extra bg-grey flex flex-center flex fw-medium" };
|
|
48
|
+
const _hoisted_27 = { class: "p-regular fw-medium" };
|
|
49
|
+
const _hoisted_28 = { class: "p-micro t-dark" };
|
|
50
|
+
const _hoisted_29 = {
|
|
51
|
+
key: 0,
|
|
52
|
+
class: "p-small t-dark mn-l-13r"
|
|
53
|
+
};
|
|
54
|
+
const _sfc_main = {
|
|
55
|
+
__name: "VotingResults",
|
|
56
|
+
props: {
|
|
57
|
+
results: {
|
|
58
|
+
type: Object,
|
|
59
|
+
required: true
|
|
60
|
+
},
|
|
61
|
+
votes: {
|
|
62
|
+
type: Array,
|
|
63
|
+
default: () => []
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
setup(__props) {
|
|
67
|
+
const { formatDate } = useGlobalMixins();
|
|
68
|
+
const props = __props;
|
|
69
|
+
const { totalVotes, yesVotes, noVotes, abstainVotes, percentageYes, percentageNo, threshold } = props.results;
|
|
70
|
+
const percentageAbstain = computed(() => 100 - percentageYes - percentageNo);
|
|
71
|
+
const thresholdMet = computed(() => percentageYes >= threshold * 100);
|
|
72
|
+
const getVoteColor = (vote) => {
|
|
73
|
+
switch (vote) {
|
|
74
|
+
case "yes":
|
|
75
|
+
return "t-green-nice";
|
|
76
|
+
case "no":
|
|
77
|
+
return "t-red-nice";
|
|
78
|
+
case "abstain":
|
|
79
|
+
return "t-dark";
|
|
80
|
+
default:
|
|
81
|
+
return "t-dark";
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
return (_ctx, _cache) => {
|
|
85
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
86
|
+
createElementVNode("div", null, [
|
|
87
|
+
createElementVNode("div", _hoisted_2, [
|
|
88
|
+
_cache[0] || (_cache[0] = createElementVNode("h3", { class: "h5 fw-medium" }, "Voting Results", -1)),
|
|
89
|
+
createElementVNode("div", {
|
|
90
|
+
class: normalizeClass(`flex flex-v-center gap-thin ${thresholdMet.value ? "t-green-nice" : "t-red-nice"}`)
|
|
91
|
+
}, [
|
|
92
|
+
thresholdMet.value ? (openBlock(), createBlock(unref(_sfc_main$1), {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: "i-medium",
|
|
95
|
+
fill: "currentColor"
|
|
96
|
+
})) : (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
97
|
+
key: 1,
|
|
98
|
+
class: "i-medium",
|
|
99
|
+
fill: "currentColor"
|
|
100
|
+
})),
|
|
101
|
+
createElementVNode("span", _hoisted_3, toDisplayString(thresholdMet.value ? "Threshold Met" : "Threshold Not Met"), 1)
|
|
102
|
+
], 2)
|
|
103
|
+
]),
|
|
104
|
+
createElementVNode("div", _hoisted_4, [
|
|
105
|
+
createElementVNode("div", _hoisted_5, [
|
|
106
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "p-small fw-medium t-dark" }, "Total Votes", -1)),
|
|
107
|
+
createElementVNode("span", _hoisted_6, toDisplayString(unref(totalVotes)), 1)
|
|
108
|
+
]),
|
|
109
|
+
createElementVNode("div", _hoisted_7, " Threshold: " + toDisplayString((unref(threshold) * 100).toFixed(0)) + "% approval required ", 1)
|
|
110
|
+
]),
|
|
111
|
+
createElementVNode("div", _hoisted_8, [
|
|
112
|
+
unref(percentageYes) > 0 ? (openBlock(), createElementBlock("div", {
|
|
113
|
+
key: 0,
|
|
114
|
+
class: "bg-green-nice flex flex-center flex p-small t-white fw-medium",
|
|
115
|
+
style: normalizeStyle({ width: `${unref(percentageYes)}%` })
|
|
116
|
+
}, [
|
|
117
|
+
unref(percentageYes) >= 15 ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(unref(percentageYes).toFixed(0)) + "%", 1)) : createCommentVNode("", true)
|
|
118
|
+
], 4)) : createCommentVNode("", true),
|
|
119
|
+
unref(percentageNo) > 0 ? (openBlock(), createElementBlock("div", {
|
|
120
|
+
key: 1,
|
|
121
|
+
class: "bg-red-nice flex flex-center flex p-small t-white fw-medium",
|
|
122
|
+
style: normalizeStyle({ width: `${unref(percentageNo)}%` })
|
|
123
|
+
}, [
|
|
124
|
+
unref(percentageNo) >= 15 ? (openBlock(), createElementBlock("span", _hoisted_10, toDisplayString(unref(percentageNo).toFixed(0)) + "%", 1)) : createCommentVNode("", true)
|
|
125
|
+
], 4)) : createCommentVNode("", true),
|
|
126
|
+
percentageAbstain.value > 0 ? (openBlock(), createElementBlock("div", {
|
|
127
|
+
key: 2,
|
|
128
|
+
class: "bg-grey flex flex-center flex p-small t-white fw-medium",
|
|
129
|
+
style: normalizeStyle({ width: `${percentageAbstain.value}%` })
|
|
130
|
+
}, [
|
|
131
|
+
percentageAbstain.value >= 15 ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(percentageAbstain.value.toFixed(0)) + "%", 1)) : createCommentVNode("", true)
|
|
132
|
+
], 4)) : createCommentVNode("", true)
|
|
133
|
+
]),
|
|
134
|
+
createElementVNode("div", _hoisted_12, [
|
|
135
|
+
createElementVNode("div", _hoisted_13, [
|
|
136
|
+
createElementVNode("div", _hoisted_14, toDisplayString(unref(yesVotes)), 1),
|
|
137
|
+
createElementVNode("div", _hoisted_15, "Yes (" + toDisplayString(unref(percentageYes).toFixed(1)) + "%)", 1)
|
|
138
|
+
]),
|
|
139
|
+
createElementVNode("div", _hoisted_16, [
|
|
140
|
+
createElementVNode("div", _hoisted_17, toDisplayString(unref(noVotes)), 1),
|
|
141
|
+
createElementVNode("div", _hoisted_18, "No (" + toDisplayString(unref(percentageNo).toFixed(1)) + "%)", 1)
|
|
142
|
+
]),
|
|
143
|
+
createElementVNode("div", _hoisted_19, [
|
|
144
|
+
createElementVNode("div", _hoisted_20, toDisplayString(unref(abstainVotes)), 1),
|
|
145
|
+
createElementVNode("div", _hoisted_21, "Abstain (" + toDisplayString(percentageAbstain.value.toFixed(1)) + "%)", 1)
|
|
146
|
+
])
|
|
147
|
+
])
|
|
148
|
+
]),
|
|
149
|
+
createElementVNode("div", null, [
|
|
150
|
+
createElementVNode("h4", _hoisted_22, [
|
|
151
|
+
createVNode(unref(IconSend), {
|
|
152
|
+
class: "i-medium mn-r-thin",
|
|
153
|
+
fill: "currentColor"
|
|
154
|
+
}),
|
|
155
|
+
createTextVNode(" All Votes (" + toDisplayString(__props.votes.length) + ") ", 1)
|
|
156
|
+
]),
|
|
157
|
+
createElementVNode("div", _hoisted_23, [
|
|
158
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.votes, (vote, index) => {
|
|
159
|
+
return openBlock(), createElementBlock("div", {
|
|
160
|
+
key: index,
|
|
161
|
+
class: "br-black-transp-10 br-1px radius-medium pd-medium"
|
|
162
|
+
}, [
|
|
163
|
+
createElementVNode("div", _hoisted_24, [
|
|
164
|
+
createElementVNode("div", _hoisted_25, [
|
|
165
|
+
createElementVNode("div", _hoisted_26, toDisplayString(vote.userName.charAt(0)), 1),
|
|
166
|
+
createElementVNode("div", null, [
|
|
167
|
+
createElementVNode("div", _hoisted_27, toDisplayString(vote.userName), 1),
|
|
168
|
+
createElementVNode("div", _hoisted_28, toDisplayString(unref(formatDate)(vote.createdAt, { dayTime: true })), 1)
|
|
169
|
+
])
|
|
170
|
+
]),
|
|
171
|
+
createElementVNode("span", {
|
|
172
|
+
class: normalizeClass(`fw-medium t-capitalize ${getVoteColor(vote.vote)}`)
|
|
173
|
+
}, toDisplayString(vote.vote), 3)
|
|
174
|
+
]),
|
|
175
|
+
vote.comment ? (openBlock(), createElementBlock("p", _hoisted_29, toDisplayString(vote.comment), 1)) : createCommentVNode("", true)
|
|
176
|
+
]);
|
|
177
|
+
}), 128))
|
|
178
|
+
])
|
|
179
|
+
])
|
|
180
|
+
]);
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
export {
|
|
185
|
+
_sfc_main as default
|
|
186
|
+
};
|
|
187
|
+
//# sourceMappingURL=VotingResults.vue.js.map
|
package/dist/martyrs/src/modules/governance/views/components/partials/VotingResults.vue.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VotingResults.vue.js","sources":["../../../../../../../../src/modules/governance/views/components/partials/VotingResults.vue"],"sourcesContent":["<script setup>\nimport { defineProps, computed } from 'vue';\nimport { useGlobalMixins } from '@martyrs/src/modules/core/views/mixins/mixins.js';\nimport { IconCheckmark, IconCross, IconSend } from '@martyrs/src/modules/icons/icons.client.js';\n\nconst { formatDate } = useGlobalMixins();\n\nconst props = defineProps({\n results: {\n type: Object,\n required: true\n },\n votes: {\n type: Array,\n default: () => []\n }\n});\n\nconst { totalVotes, yesVotes, noVotes, abstainVotes, percentageYes, percentageNo, threshold } = props.results;\nconst percentageAbstain = computed(() => 100 - percentageYes - percentageNo);\nconst thresholdMet = computed(() => percentageYes >= threshold * 100);\n\nconst getVoteColor = (vote) => {\n switch (vote) {\n case 'yes': return 't-green-nice';\n case 'no': return 't-red-nice';\n case 'abstain': return 't-dark';\n default: return 't-dark';\n }\n};\n</script>\n\n<template>\n <div class=\"flex flex-column gap-small\">\n <div>\n <div class=\"flex flex-justify-between flex-v-center mn-b-small\">\n <h3 class=\"h5 fw-medium\">Voting Results</h3>\n <div :class=\"`flex flex-v-center gap-thin ${thresholdMet ? 't-green-nice' : 't-red-nice'}`\">\n <IconCheckmark v-if=\"thresholdMet\" class=\"i-medium\" :fill=\"'currentColor'\" />\n <IconCross v-else class=\"i-medium\" :fill=\"'currentColor'\" />\n <span class=\"fw-medium\">{{ thresholdMet ? 'Threshold Met' : 'Threshold Not Met' }}</span>\n </div>\n </div>\n\n <div class=\"br-black-transp-10 br-1px radius-medium pd-medium mn-b-medium\">\n <div class=\"flex flex-justify-between flex-v-center mn-b-small\">\n <span class=\"p-small fw-medium t-dark\">Total Votes</span>\n <span class=\"h2 fw-medium\">{{ totalVotes }}</span>\n </div>\n <div class=\"p-small t-dark\">\n Threshold: {{ (threshold * 100).toFixed(0) }}% approval required\n </div>\n </div>\n\n <div class=\"w-100 h-8r br-black-transp-10 br-1px radius-medium o-hidden flex\">\n <div\n v-if=\"percentageYes > 0\"\n class=\"bg-green-nice flex flex-center flex p-small t-white fw-medium\"\n :style=\"{ width: `${percentageYes}%` }\"\n >\n <span v-if=\"percentageYes >= 15\">{{ percentageYes.toFixed(0) }}%</span>\n </div>\n <div\n v-if=\"percentageNo > 0\"\n class=\"bg-red-nice flex flex-center flex p-small t-white fw-medium\"\n :style=\"{ width: `${percentageNo}%` }\"\n >\n <span v-if=\"percentageNo >= 15\">{{ percentageNo.toFixed(0) }}%</span>\n </div>\n <div\n v-if=\"percentageAbstain > 0\"\n class=\"bg-grey flex flex-center flex p-small t-white fw-medium\"\n :style=\"{ width: `${percentageAbstain}%` }\"\n >\n <span v-if=\"percentageAbstain >= 15\">{{ percentageAbstain.toFixed(0) }}%</span>\n </div>\n </div>\n\n <div class=\"cols-3 gap-regular mn-t-medium\">\n <div class=\"t-center\">\n <div class=\"h2 fw-medium t-green-nice\">{{ yesVotes }}</div>\n <div class=\"p-small t-dark\">Yes ({{ percentageYes.toFixed(1) }}%)</div>\n </div>\n <div class=\"t-center\">\n <div class=\"h2 fw-medium t-red-nice\">{{ noVotes }}</div>\n <div class=\"p-small t-dark\">No ({{ percentageNo.toFixed(1) }}%)</div>\n </div>\n <div class=\"t-center\">\n <div class=\"h2 fw-medium t-dark\">{{ abstainVotes }}</div>\n <div class=\"p-small t-dark\">Abstain ({{ percentageAbstain.toFixed(1) }}%)</div>\n </div>\n </div>\n </div>\n\n <div>\n <h4 class=\"h5 fw-medium mn-b-medium flex flex-v-center\">\n <IconSend class=\"i-medium mn-r-thin\" :fill=\"'currentColor'\" />\n All Votes ({{ votes.length }})\n </h4>\n <div class=\"flex flex-column gap-small\">\n <div v-for=\"(vote, index) in votes\" :key=\"index\" class=\"br-black-transp-10 br-1px radius-medium pd-medium\">\n <div class=\"flex flex-justify-between flex-align-start mn-b-small\">\n <div class=\"flex flex-v-center gap-small\">\n <div class=\"i-big radius-extra bg-grey flex flex-center flex fw-medium\">\n {{ vote.userName.charAt(0) }}\n </div>\n <div>\n <div class=\"p-regular fw-medium\">{{ vote.userName }}</div>\n <div class=\"p-micro t-dark\">{{ formatDate(vote.createdAt, { dayTime: true }) }}</div>\n </div>\n </div>\n <span :class=\"`fw-medium t-capitalize ${getVoteColor(vote.vote)}`\">\n {{ vote.vote }}\n </span>\n </div>\n <p v-if=\"vote.comment\" class=\"p-small t-dark mn-l-13r\">{{ vote.comment }}</p>\n </div>\n </div>\n </div>\n </div>\n</template>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,UAAM,EAAE,WAAU,IAAK,gBAAe;AAEtC,UAAM,QAAQ;AAWd,UAAM,EAAE,YAAY,UAAU,SAAS,cAAc,eAAe,cAAc,cAAc,MAAM;AACtG,UAAM,oBAAoB,SAAS,MAAM,MAAM,gBAAgB,YAAY;AAC3E,UAAM,eAAe,SAAS,MAAM,iBAAiB,YAAY,GAAG;AAEpE,UAAM,eAAe,CAAC,SAAS;AAC7B,cAAQ,MAAI;AAAA,QACV,KAAK;AAAO,iBAAO;AAAA,QACnB,KAAK;AAAM,iBAAO;AAAA,QAClB,KAAK;AAAW,iBAAO;AAAA,QACvB;AAAS,iBAAO;AAAA,MACpB;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|