@ozdao/martyrs 0.2.601 → 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.
Files changed (717) hide show
  1. package/dist/{abac-BPl9Bmf9.js → abac-Blt8bUTL.js} +3 -3
  2. package/dist/{addUserStatusFields-Cc-JpmPo.js → addUserStatusFields-CjV_sbh7.js} +2 -2
  3. package/dist/auth.server.js +57 -2
  4. package/dist/builder.js +148 -85
  5. package/dist/community.server.js +11 -11
  6. package/dist/core.server.js +2 -2
  7. package/dist/{core.verifier-gPPX_jhf.js → core.verifier-DVB2a21y.js} +6 -3
  8. package/dist/{crud-DpOXTZep.js → crud-BT5FIvQC.js} +2 -3
  9. package/dist/engagement.schema-B-Cc_NsG.js +6 -0
  10. package/dist/events.server.js +3 -3
  11. package/dist/gallery.server.js +1 -1
  12. package/dist/governance.server.js +1632 -0
  13. package/dist/icons.server.js +267 -0
  14. package/dist/inventory.server.js +6 -6
  15. package/dist/martyrs/dist/martyrs.es3.js +116 -0
  16. package/dist/martyrs/dist/martyrs.es3.js.map +1 -0
  17. package/dist/martyrs/dist/martyrs.es39.js +124 -0
  18. package/dist/martyrs/dist/martyrs.es39.js.map +1 -0
  19. package/dist/martyrs/dist/martyrs.es43.js +30 -0
  20. package/dist/martyrs/dist/martyrs.es43.js.map +1 -0
  21. package/dist/martyrs/dist/martyrs.es44.js +28 -0
  22. package/dist/martyrs/dist/martyrs.es44.js.map +1 -0
  23. package/dist/martyrs/dist/martyrs.es46.js +10 -0
  24. package/dist/martyrs/dist/martyrs.es46.js.map +1 -0
  25. package/dist/martyrs/src/components/Address/{Address.vue.js → Address.vue2.js} +2 -2
  26. package/dist/martyrs/src/components/Address/Address.vue2.js.map +1 -0
  27. package/dist/martyrs/src/components/Block/Block.vue.js +1 -1
  28. package/dist/martyrs/src/components/Block/Block.vue.js.map +1 -1
  29. package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +8 -5
  30. package/dist/martyrs/src/components/Button/Button.vue2.js.map +1 -0
  31. package/dist/martyrs/src/components/EditImages/{EditImages.vue2.js → EditImages.vue.js} +2 -2
  32. package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -0
  33. package/dist/martyrs/src/components/Feed/Feed.vue.js +1 -1
  34. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +4 -4
  35. package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue.js → LocationMarker.vue2.js} +2 -2
  36. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js.map +1 -0
  37. package/dist/martyrs/src/components/Menu/{Menu.vue2.js → Menu.vue.js} +2 -2
  38. package/dist/martyrs/src/components/Menu/Menu.vue.js.map +1 -0
  39. package/dist/martyrs/src/components/Select/{Select.vue2.js → Select.vue.js} +2 -2
  40. package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -0
  41. package/dist/martyrs/src/components/Tab/{Tab.vue2.js → Tab.vue.js} +2 -2
  42. package/dist/martyrs/src/components/Tab/Tab.vue.js.map +1 -0
  43. package/dist/martyrs/src/components/Table/StatusBadge.vue.js +19 -10
  44. package/dist/martyrs/src/components/Table/StatusBadge.vue.js.map +1 -1
  45. package/dist/martyrs/src/components/Text/Text.vue.js +1 -1
  46. package/dist/martyrs/src/components/Text/Text.vue.js.map +1 -1
  47. package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js +2 -2
  48. package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js +3 -3
  49. package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js.map +1 -1
  50. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +3 -3
  51. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +2 -2
  52. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +17 -21
  53. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -1
  54. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +13 -13
  55. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +2 -2
  56. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +3 -3
  57. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +42 -4
  58. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
  59. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +3 -3
  60. package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js +34 -66
  61. package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js.map +1 -1
  62. package/dist/martyrs/src/modules/auth/views/router/users.router.js +0 -53
  63. package/dist/martyrs/src/modules/auth/views/router/users.router.js.map +1 -1
  64. package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js +515 -103
  65. package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js.map +1 -1
  66. package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js +1 -3
  67. package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js.map +1 -1
  68. package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js +1 -32
  69. package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js.map +1 -1
  70. package/dist/martyrs/src/modules/community/community.client.js +49 -8
  71. package/dist/martyrs/src/modules/community/community.client.js.map +1 -1
  72. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +10 -4
  73. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
  74. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +4 -4
  75. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
  76. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -2
  77. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
  78. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +28 -17
  79. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
  80. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js +36 -28
  81. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js.map +1 -1
  82. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js +2 -2
  83. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js.map +1 -1
  84. package/dist/martyrs/src/modules/community/router/community.backoffice.router.js +21 -0
  85. package/dist/martyrs/src/modules/community/router/community.backoffice.router.js.map +1 -0
  86. package/dist/martyrs/src/modules/community/router/community.organization.router.js +70 -0
  87. package/dist/martyrs/src/modules/community/router/community.organization.router.js.map +1 -0
  88. package/dist/martyrs/src/modules/community/router/community.router.js +73 -0
  89. package/dist/martyrs/src/modules/community/router/community.router.js.map +1 -0
  90. package/dist/martyrs/src/modules/community/router/community.user.router.js +20 -0
  91. package/dist/martyrs/src/modules/community/router/community.user.router.js.map +1 -0
  92. package/dist/martyrs/src/modules/constructor/components/elements/Textarea.vue2.js +1 -1
  93. package/dist/martyrs/src/modules/constructor/components/elements/Textarea.vue2.js.map +1 -1
  94. package/dist/martyrs/src/modules/constructor/components/sections/Constructor.vue.js.map +1 -1
  95. package/dist/martyrs/src/modules/core/views/classes/core.app.js +5 -3
  96. package/dist/martyrs/src/modules/core/views/classes/core.app.js.map +1 -1
  97. package/dist/martyrs/src/modules/core/views/classes/i18n.manager.js +7 -2
  98. package/dist/martyrs/src/modules/core/views/classes/i18n.manager.js.map +1 -1
  99. package/dist/martyrs/src/modules/core/views/classes/ws.manager.js +11 -5
  100. package/dist/martyrs/src/modules/core/views/classes/ws.manager.js.map +1 -1
  101. package/dist/martyrs/src/modules/core/views/components/blocks/Card.vue.js +53 -18
  102. package/dist/martyrs/src/modules/core/views/components/blocks/Card.vue.js.map +1 -1
  103. package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js +1 -1
  104. package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js +44 -0
  105. package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js.map +1 -0
  106. package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +5 -5
  107. package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js +1 -1
  108. package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +9 -6
  109. package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
  110. package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js +5 -5
  111. package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js.map +1 -1
  112. package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js +15 -15
  113. package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js.map +1 -1
  114. package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js +2 -2
  115. package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js +27 -28
  116. package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js.map +1 -1
  117. package/dist/martyrs/src/modules/core/views/components/partials/NavigationBar.vue.js +6 -6
  118. package/dist/martyrs/src/modules/core/views/components/partials/Sidebar.vue.js +5 -7
  119. package/dist/martyrs/src/modules/core/views/components/partials/Sidebar.vue.js.map +1 -1
  120. package/dist/martyrs/src/modules/core/views/components/sections/{Filters.vue2.js → Filters.vue.js} +2 -2
  121. package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue.js.map +1 -0
  122. package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +28 -18
  123. package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js.map +1 -1
  124. package/dist/martyrs/src/modules/core/views/mixins/mixins.js +3 -3
  125. package/dist/martyrs/src/modules/core/views/mixins/mixins.js.map +1 -1
  126. package/dist/martyrs/src/modules/core/views/router/addRoutes.js +2 -3
  127. package/dist/martyrs/src/modules/core/views/router/addRoutes.js.map +1 -1
  128. package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js +10 -0
  129. package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js.map +1 -1
  130. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +4 -4
  131. package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +2 -2
  132. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  133. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +9 -9
  134. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js.map +1 -1
  135. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -1
  136. package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -0
  137. package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
  138. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +23 -33
  139. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
  140. package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js +13 -13
  141. package/dist/martyrs/src/modules/events/components/sections/List.vue.js +2 -2
  142. package/dist/martyrs/src/modules/events/components/sections/List.vue.js.map +1 -1
  143. package/dist/martyrs/src/modules/events/events.client.js +37 -15
  144. package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
  145. package/dist/martyrs/src/modules/events/router/events.backoffice.router.js +95 -0
  146. package/dist/martyrs/src/modules/events/router/events.backoffice.router.js.map +1 -0
  147. package/dist/martyrs/src/modules/events/router/events.organization.router.js +95 -0
  148. package/dist/martyrs/src/modules/events/router/events.organization.router.js.map +1 -0
  149. package/dist/martyrs/src/modules/events/router/events.router.js +73 -364
  150. package/dist/martyrs/src/modules/events/router/events.router.js.map +1 -1
  151. package/dist/martyrs/src/modules/events/router/events.user.router.js +65 -0
  152. package/dist/martyrs/src/modules/events/router/events.user.router.js.map +1 -0
  153. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +5 -5
  154. package/dist/martyrs/src/modules/governance/configs/navigation.initiative.config.js +33 -0
  155. package/dist/martyrs/src/modules/governance/configs/navigation.initiative.config.js.map +1 -0
  156. package/dist/martyrs/src/modules/governance/governance.client.js +31 -0
  157. package/dist/martyrs/src/modules/governance/governance.client.js.map +1 -0
  158. package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js +110 -0
  159. package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js.map +1 -0
  160. package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js +105 -0
  161. package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js.map +1 -0
  162. package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js +110 -0
  163. package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js.map +1 -0
  164. package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js +106 -0
  165. package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js.map +1 -0
  166. package/dist/martyrs/src/modules/governance/views/components/pages/Governance.vue.js +52 -0
  167. package/dist/martyrs/src/modules/governance/views/components/pages/Governance.vue.js.map +1 -0
  168. package/dist/martyrs/src/modules/governance/views/components/pages/Initiative.vue.js +684 -0
  169. package/dist/martyrs/src/modules/governance/views/components/pages/Initiative.vue.js.map +1 -0
  170. package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeCreate.vue.js +78 -0
  171. package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeCreate.vue.js.map +1 -0
  172. package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeSprints.vue.js +328 -0
  173. package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeSprints.vue.js.map +1 -0
  174. package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js +145 -0
  175. package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js.map +1 -0
  176. package/dist/martyrs/src/modules/governance/views/components/pages/Sprint.vue.js +258 -0
  177. package/dist/martyrs/src/modules/governance/views/components/pages/Sprint.vue.js.map +1 -0
  178. package/dist/martyrs/src/modules/governance/views/components/pages/SprintCreate.vue.js +72 -0
  179. package/dist/martyrs/src/modules/governance/views/components/pages/SprintCreate.vue.js.map +1 -0
  180. package/dist/martyrs/src/modules/governance/views/components/pages/Task.vue.js +769 -0
  181. package/dist/martyrs/src/modules/governance/views/components/pages/Task.vue.js.map +1 -0
  182. package/dist/martyrs/src/modules/governance/views/components/pages/TaskCreate.vue.js +88 -0
  183. package/dist/martyrs/src/modules/governance/views/components/pages/TaskCreate.vue.js.map +1 -0
  184. package/dist/martyrs/src/modules/governance/views/components/pages/Tasks.vue.js +291 -0
  185. package/dist/martyrs/src/modules/governance/views/components/pages/Tasks.vue.js.map +1 -0
  186. package/dist/martyrs/src/modules/governance/views/components/pages/Voting.vue.js +267 -0
  187. package/dist/martyrs/src/modules/governance/views/components/pages/Voting.vue.js.map +1 -0
  188. package/dist/martyrs/src/modules/governance/views/components/pages/VotingCreate.vue.js +90 -0
  189. package/dist/martyrs/src/modules/governance/views/components/pages/VotingCreate.vue.js.map +1 -0
  190. package/dist/martyrs/src/modules/governance/views/components/pages/Votings.vue.js +68 -0
  191. package/dist/martyrs/src/modules/governance/views/components/pages/Votings.vue.js.map +1 -0
  192. package/dist/martyrs/src/modules/governance/views/components/partials/EmptyState.vue.js +47 -0
  193. package/dist/martyrs/src/modules/governance/views/components/partials/EmptyState.vue.js.map +1 -0
  194. package/dist/martyrs/src/modules/governance/views/components/partials/LinkedEntityCard.vue.js +164 -0
  195. package/dist/martyrs/src/modules/governance/views/components/partials/LinkedEntityCard.vue.js.map +1 -0
  196. package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js +39 -0
  197. package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js.map +1 -0
  198. package/dist/martyrs/src/modules/governance/views/components/partials/VoteForm.vue.js +112 -0
  199. package/dist/martyrs/src/modules/governance/views/components/partials/VoteForm.vue.js.map +1 -0
  200. package/dist/martyrs/src/modules/governance/views/components/partials/VotingResults.vue.js +187 -0
  201. package/dist/martyrs/src/modules/governance/views/components/partials/VotingResults.vue.js.map +1 -0
  202. package/dist/martyrs/src/modules/governance/views/components/sections/FormInitiativeDetails.vue.js +555 -0
  203. package/dist/martyrs/src/modules/governance/views/components/sections/FormInitiativeDetails.vue.js.map +1 -0
  204. package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js +187 -0
  205. package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js.map +1 -0
  206. package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js +171 -0
  207. package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js.map +1 -0
  208. package/dist/martyrs/src/modules/governance/views/components/sections/FormVotingDetails.vue.js +179 -0
  209. package/dist/martyrs/src/modules/governance/views/components/sections/FormVotingDetails.vue.js.map +1 -0
  210. package/dist/martyrs/src/modules/governance/views/router/governance.router.js +502 -0
  211. package/dist/martyrs/src/modules/governance/views/router/governance.router.js.map +1 -0
  212. package/dist/martyrs/src/modules/governance/views/store/initiatives.js +119 -0
  213. package/dist/martyrs/src/modules/governance/views/store/initiatives.js.map +1 -0
  214. package/dist/martyrs/src/modules/governance/views/store/sprints.js +99 -0
  215. package/dist/martyrs/src/modules/governance/views/store/sprints.js.map +1 -0
  216. package/dist/martyrs/src/modules/governance/views/store/tasks.js +115 -0
  217. package/dist/martyrs/src/modules/governance/views/store/tasks.js.map +1 -0
  218. package/dist/martyrs/src/modules/governance/views/store/votings.js +155 -0
  219. package/dist/martyrs/src/modules/governance/views/store/votings.js.map +1 -0
  220. package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js +70 -0
  221. package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js.map +1 -0
  222. package/dist/martyrs/src/modules/icons/icons.client.js +1 -1
  223. package/dist/martyrs/src/modules/icons/icons.client.js.map +1 -1
  224. package/dist/martyrs/src/modules/icons/{icons.router.js → router/icons.router.js} +1 -1
  225. package/dist/martyrs/src/modules/icons/router/icons.router.js.map +1 -0
  226. package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +4 -4
  227. package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +3 -3
  228. package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +2 -2
  229. package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +4 -4
  230. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +6 -6
  231. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js.map +1 -1
  232. package/dist/martyrs/src/modules/marketplace/views/components/pages/Marketplace.vue.js +1 -1
  233. package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js +9 -9
  234. package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +4 -4
  235. package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +2 -2
  236. package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +4 -4
  237. package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +7 -7
  238. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +4 -4
  239. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +4 -4
  240. package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +3 -3
  241. package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +4 -4
  242. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +4 -4
  243. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +1 -1
  244. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +9 -9
  245. package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +13 -13
  246. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +9 -9
  247. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +9 -9
  248. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +16 -16
  249. package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +1 -1
  250. package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +2 -2
  251. package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +4 -4
  252. package/dist/martyrs/src/modules/music/components/player/PlayerControls.vue.js +10 -10
  253. package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js +6 -6
  254. package/dist/martyrs/src/modules/music/components/sections/PopularTracks.vue.js +63 -0
  255. package/dist/martyrs/src/modules/music/components/sections/PopularTracks.vue.js.map +1 -0
  256. package/dist/martyrs/src/modules/music/music.client.js +29 -25
  257. package/dist/martyrs/src/modules/music/music.client.js.map +1 -1
  258. package/dist/martyrs/src/modules/music/{music.router.js → router/music.router.js} +16 -16
  259. package/dist/martyrs/src/modules/music/router/music.router.js.map +1 -0
  260. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +26 -27
  261. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
  262. package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js +118 -59
  263. package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js.map +1 -1
  264. package/dist/martyrs/src/modules/notifications/notifications.client.js +74 -54
  265. package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
  266. package/dist/martyrs/src/modules/notifications/{notifications.router.js → router/notifications.router.js} +3 -3
  267. package/dist/martyrs/src/modules/notifications/router/notifications.router.js.map +1 -0
  268. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +34 -44
  269. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js.map +1 -1
  270. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js +47 -57
  271. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js.map +1 -1
  272. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js +2 -2
  273. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js.map +1 -1
  274. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js +2 -2
  275. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js.map +1 -1
  276. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +4 -4
  277. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +6 -6
  278. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js.map +1 -1
  279. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +7 -7
  280. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js +61 -54
  281. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js.map +1 -1
  282. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js +43 -31
  283. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js.map +1 -1
  284. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +14 -14
  285. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +3 -3
  286. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  287. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +19 -19
  288. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
  289. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +7 -10
  290. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -1
  291. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +7 -10
  292. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -1
  293. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +3 -3
  294. package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  295. package/dist/martyrs/src/modules/orders/orders.client.js +16 -16
  296. package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
  297. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +11 -4
  298. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
  299. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +2 -2
  300. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +2 -2
  301. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +22 -15
  302. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js.map +1 -1
  303. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +2 -2
  304. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +63 -1
  305. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
  306. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +9 -3
  307. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  308. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +14 -8
  309. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
  310. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +24 -30
  311. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
  312. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  313. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  314. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  315. package/dist/martyrs/src/modules/organizations/organizations.client.js +42 -6
  316. package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
  317. package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js +20 -0
  318. package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js.map +1 -0
  319. package/dist/martyrs/src/modules/organizations/router/organizations.router.js +102 -0
  320. package/dist/martyrs/src/modules/organizations/router/organizations.router.js.map +1 -0
  321. package/dist/martyrs/src/modules/organizations/router/organizations.user.router.js +20 -0
  322. package/dist/martyrs/src/modules/organizations/router/organizations.user.router.js.map +1 -0
  323. package/dist/martyrs/src/modules/pages/pages.client.js +1 -1
  324. package/dist/martyrs/src/modules/pages/pages.client.js.map +1 -1
  325. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
  326. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +3 -3
  327. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
  328. package/dist/martyrs/src/modules/pages/{pages.router.js → views/router/pages.router.js} +8 -8
  329. package/dist/martyrs/src/modules/pages/views/router/pages.router.js.map +1 -0
  330. package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  331. package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js.map +1 -1
  332. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
  333. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +7 -7
  334. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
  335. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
  336. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +5 -5
  337. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
  338. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +3 -3
  339. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +4 -4
  340. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +21 -21
  341. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +4 -4
  342. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +4 -4
  343. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +4 -4
  344. package/dist/martyrs/src/modules/rents/rents.client.js +1 -1
  345. package/dist/martyrs/src/modules/rents/rents.client.js.map +1 -1
  346. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +7 -7
  347. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
  348. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +4 -4
  349. package/dist/martyrs/src/modules/rents/{rents.router.js → views/router/rents.router.js} +4 -4
  350. package/dist/martyrs/src/modules/rents/views/router/rents.router.js.map +1 -0
  351. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  352. package/dist/martyrs/src/modules/reports/reports.client.js +1 -1
  353. package/dist/martyrs/src/modules/reports/reports.client.js.map +1 -1
  354. package/dist/martyrs/src/modules/reports/{reports.router.js → router/reports.router.js} +1 -1
  355. package/dist/martyrs/src/modules/reports/router/reports.router.js.map +1 -0
  356. package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  357. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +2 -2
  358. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +13 -13
  359. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +22 -22
  360. package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js +68 -0
  361. package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js.map +1 -0
  362. package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js +48 -0
  363. package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js.map +1 -0
  364. package/dist/martyrs/src/modules/wallet/views/store/payments.store.js +59 -0
  365. package/dist/martyrs/src/modules/wallet/views/store/payments.store.js.map +1 -0
  366. package/dist/martyrs/src/modules/wallet/wallet.client.js +20 -0
  367. package/dist/martyrs/src/modules/wallet/wallet.client.js.map +1 -0
  368. package/dist/martyrs.es.js +84 -41
  369. package/dist/martyrs.es10.js +126 -0
  370. package/dist/martyrs.es100.js +33 -0
  371. package/dist/martyrs.es102.js +39 -0
  372. package/dist/martyrs.es103.js +31 -0
  373. package/dist/martyrs.es105.js +27 -0
  374. package/dist/martyrs.es106.js +8 -0
  375. package/dist/martyrs.es107.js +9 -0
  376. package/dist/martyrs.es108.js +79 -0
  377. package/dist/martyrs.es109.js +7 -0
  378. package/dist/martyrs.es11.js +49 -0
  379. package/dist/{web-n_ivHO3v.js → martyrs.es110.js} +1 -1
  380. package/dist/martyrs.es111.js +327 -0
  381. package/dist/martyrs.es112.js +121 -0
  382. package/dist/martyrs.es115.js +4 -0
  383. package/dist/martyrs.es116.js +25 -0
  384. package/dist/martyrs.es117.js +7 -0
  385. package/dist/martyrs.es118.js +10 -0
  386. package/dist/martyrs.es119.js +169 -0
  387. package/dist/martyrs.es12.js +94 -0
  388. package/dist/martyrs.es120.js +460 -0
  389. package/dist/martyrs.es121.js +42 -0
  390. package/dist/martyrs.es122.js +12 -0
  391. package/dist/martyrs.es123.js +52 -0
  392. package/dist/martyrs.es124.js +14 -0
  393. package/dist/martyrs.es125.js +47 -0
  394. package/dist/martyrs.es126.js +7 -0
  395. package/dist/martyrs.es127.js +131 -0
  396. package/dist/martyrs.es128.js +103 -0
  397. package/dist/martyrs.es129.js +89 -0
  398. package/dist/martyrs.es13.js +48 -0
  399. package/dist/martyrs.es130.js +40 -0
  400. package/dist/martyrs.es131.js +14 -0
  401. package/dist/martyrs.es132.js +42 -0
  402. package/dist/martyrs.es133.js +11 -0
  403. package/dist/martyrs.es134.js +6 -0
  404. package/dist/martyrs.es135.js +119 -0
  405. package/dist/martyrs.es136.js +20 -0
  406. package/dist/martyrs.es137.js +18 -0
  407. package/dist/martyrs.es138.js +35 -0
  408. package/dist/martyrs.es139.js +12 -0
  409. package/dist/martyrs.es14.js +101 -0
  410. package/dist/martyrs.es140.js +23 -0
  411. package/dist/martyrs.es141.js +12 -0
  412. package/dist/martyrs.es142.js +11 -0
  413. package/dist/martyrs.es143.js +47 -0
  414. package/dist/martyrs.es144.js +483 -0
  415. package/dist/martyrs.es145.js +8 -0
  416. package/dist/martyrs.es146.js +4 -0
  417. package/dist/martyrs.es147.js +14 -0
  418. package/dist/martyrs.es148.js +33 -0
  419. package/dist/martyrs.es149.js +19 -0
  420. package/dist/martyrs.es15.js +408 -0
  421. package/dist/martyrs.es150.js +22 -0
  422. package/dist/martyrs.es151.js +31 -0
  423. package/dist/martyrs.es152.js +23 -0
  424. package/dist/martyrs.es16.js +58 -0
  425. package/dist/martyrs.es17.js +44 -0
  426. package/dist/martyrs.es18.js +42 -0
  427. package/dist/martyrs.es19.js +27 -0
  428. package/dist/martyrs.es2.js +88 -0
  429. package/dist/martyrs.es20.js +13 -0
  430. package/dist/martyrs.es21.js +57 -0
  431. package/dist/martyrs.es22.js +104 -0
  432. package/dist/martyrs.es23.js +178 -0
  433. package/dist/martyrs.es24.js +123 -0
  434. package/dist/martyrs.es25.js +139 -0
  435. package/dist/martyrs.es26.js +21 -0
  436. package/dist/martyrs.es27.js +60 -0
  437. package/dist/martyrs.es28.js +75 -0
  438. package/dist/martyrs.es29.js +36 -0
  439. package/dist/martyrs.es3.js +116 -0
  440. package/dist/martyrs.es30.js +348 -0
  441. package/dist/martyrs.es31.js +83 -0
  442. package/dist/martyrs.es32.js +148 -0
  443. package/dist/martyrs.es33.js +175 -0
  444. package/dist/martyrs.es34.js +66 -0
  445. package/dist/martyrs.es35.js +57 -0
  446. package/dist/martyrs.es36.js +76 -0
  447. package/dist/martyrs.es37.js +101 -0
  448. package/dist/martyrs.es38.js +39 -0
  449. package/dist/martyrs.es39.js +124 -0
  450. package/dist/martyrs.es4.js +85 -0
  451. package/dist/martyrs.es40.js +120 -0
  452. package/dist/martyrs.es41.js +229 -0
  453. package/dist/martyrs.es43.js +29 -0
  454. package/dist/martyrs.es44.js +27 -0
  455. package/dist/martyrs.es46.js +9 -0
  456. package/dist/martyrs.es48.js +18 -0
  457. package/dist/martyrs.es5.js +395 -0
  458. package/dist/martyrs.es50.js +42 -0
  459. package/dist/martyrs.es52.js +255 -0
  460. package/dist/martyrs.es54.js +8 -0
  461. package/dist/martyrs.es6.js +70 -0
  462. package/dist/martyrs.es61.js +139 -0
  463. package/dist/martyrs.es65.js +28 -0
  464. package/dist/martyrs.es68.js +33 -0
  465. package/dist/martyrs.es69.js +37 -0
  466. package/dist/martyrs.es7.js +17 -0
  467. package/dist/martyrs.es71.js +114 -0
  468. package/dist/martyrs.es73.js +83 -0
  469. package/dist/martyrs.es74.js +52 -0
  470. package/dist/martyrs.es75.js +75 -0
  471. package/dist/martyrs.es76.js +176 -0
  472. package/dist/martyrs.es77.js +31 -0
  473. package/dist/martyrs.es78.js +38 -0
  474. package/dist/martyrs.es8.js +127 -0
  475. package/dist/martyrs.es81.js +32 -0
  476. package/dist/martyrs.es86.js +37 -0
  477. package/dist/martyrs.es89.js +37 -0
  478. package/dist/martyrs.es9.js +396 -0
  479. package/dist/martyrs.es91.js +63 -0
  480. package/dist/martyrs.es92.js +7 -0
  481. package/dist/martyrs.es93.js +35 -0
  482. package/dist/martyrs.es95.js +41 -0
  483. package/dist/martyrs.es96.js +59 -0
  484. package/dist/martyrs.es97.js +123 -0
  485. package/dist/martyrs.es98.js +43 -0
  486. package/dist/martyrs.es99.js +86 -0
  487. package/dist/music.server.js +11 -11
  488. package/dist/notifications.server.js +16 -6
  489. package/dist/orders.server.js +264 -145
  490. package/dist/organizations.server.js +22 -6
  491. package/dist/products.server.js +7 -7
  492. package/dist/rents.server.js +4 -3
  493. package/dist/style.css +970 -986
  494. package/package.json +13 -6
  495. package/src/builder/modes/ssr.rspack.dev.js +32 -20
  496. package/src/builder/rspack/rspack.config.api.js +3 -0
  497. package/src/builder/rspack/rspack.config.base.js +9 -1
  498. package/src/builder/rspack/rspack.config.ssr.client.js +27 -10
  499. package/src/components/Block/Block.vue +1 -1
  500. package/src/components/Button/Button.vue +4 -4
  501. package/src/components/Table/StatusBadge.vue +24 -18
  502. package/src/components/Text/Text.vue +1 -1
  503. package/src/jit/core.js +72 -35
  504. package/src/jit/plugin.js +4 -3
  505. package/src/jit/rules.js +15 -15
  506. package/src/modules/TASKS.MD +30 -0
  507. package/src/modules/TASK_ACTIVITY.md +60 -0
  508. package/src/modules/TASK_MODULE_ARCH.md +391 -0
  509. package/src/modules/auth/controllers/routes/users.routes.js +8 -0
  510. package/src/modules/auth/controllers/services/users.service.js +51 -1
  511. package/src/modules/auth/views/components/blocks/PopupAuth.vue +1 -1
  512. package/src/modules/auth/views/components/pages/ProfileBlogposts.vue +25 -24
  513. package/src/modules/auth/views/components/pages/SignIn.vue +10 -1
  514. package/src/modules/auth/views/components/pages/UserDashboard.vue +35 -62
  515. package/src/modules/auth/views/router/users.router.js +0 -44
  516. package/src/modules/backoffice/components/pages/Dashboard.vue +423 -120
  517. package/src/modules/backoffice/configs/navigation.backoffice.config.js +0 -2
  518. package/src/modules/backoffice/router/backoffice.router.js +0 -25
  519. package/src/modules/community/community.client.js +54 -9
  520. package/src/modules/community/components/blocks/CardBlogpost.vue +10 -3
  521. package/src/modules/community/components/layouts/Community.vue +3 -3
  522. package/src/modules/community/components/pages/BlogPost.vue +1 -1
  523. package/src/modules/community/components/pages/CreateBlogPost.vue +19 -20
  524. package/src/modules/community/components/pages/Posts.vue +43 -28
  525. package/src/modules/community/components/sections/Comment.vue +1 -1
  526. package/src/modules/community/controllers/blog.controller.js +4 -5
  527. package/src/modules/community/models/reaction.model.js +1 -0
  528. package/src/modules/community/router/community.backoffice.router.js +16 -0
  529. package/src/modules/community/router/community.organization.router.js +56 -0
  530. package/src/modules/community/router/community.router.js +58 -106
  531. package/src/modules/community/router/community.user.router.js +15 -0
  532. package/src/modules/constructor/components/elements/Textarea.vue +1 -1
  533. package/src/modules/constructor/components/sections/Constructor.vue +1 -1
  534. package/src/modules/core/controllers/classes/core.validator.js +7 -1
  535. package/src/modules/core/controllers/classes/core.verifier.js +0 -2
  536. package/src/modules/core/controllers/classes/crud/crud.controller.js +0 -4
  537. package/src/modules/core/controllers/classes/crud/crud.service.js +1 -0
  538. package/src/modules/core/models/schemas/engagement.schema.js +19 -22
  539. package/src/modules/core/views/classes/core.app.js +6 -4
  540. package/src/modules/core/views/classes/i18n.manager.js +9 -2
  541. package/src/modules/core/views/classes/ws.manager.js +17 -7
  542. package/src/modules/core/views/components/blocks/Card.vue +47 -24
  543. package/src/modules/core/views/components/blocks/CardStat.vue +27 -0
  544. package/src/modules/core/views/components/blocks/PopupAuth.vue +1 -1
  545. package/src/modules/core/views/components/layouts/Client.vue +5 -4
  546. package/src/modules/core/views/components/partials/BottomNavigationBar.vue +5 -5
  547. package/src/modules/core/views/components/partials/Header.vue +2 -2
  548. package/src/modules/core/views/components/partials/Navigation.vue +13 -14
  549. package/src/modules/core/views/components/partials/Sidebar.vue +4 -6
  550. package/src/modules/core/views/components/sections/SectionPageTitle.vue +23 -15
  551. package/src/modules/core/views/mixins/mixins.js +4 -3
  552. package/src/modules/core/views/router/addRoutes.js +1 -2
  553. package/src/modules/core/views/utils/vue-app-renderer.js +12 -0
  554. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  555. package/src/modules/events/components/pages/Events.vue +1 -0
  556. package/src/modules/events/components/pages/EventsBackoffice.vue +23 -48
  557. package/src/modules/events/components/sections/List.vue +2 -2
  558. package/src/modules/events/events.client.js +44 -17
  559. package/src/modules/events/router/events.backoffice.router.js +80 -0
  560. package/src/modules/events/router/events.organization.router.js +80 -0
  561. package/src/modules/events/router/events.router.js +55 -325
  562. package/src/modules/events/router/events.user.router.js +49 -0
  563. package/src/modules/governance/TASK-TRACKER.MD +534 -39
  564. package/src/modules/governance/configs/navigation.initiative.config.js +30 -0
  565. package/src/modules/governance/controllers/routes/initiatives.routes.js +55 -8
  566. package/src/modules/governance/controllers/routes/{milestones.routes.js → sprints.routes.js} +22 -22
  567. package/src/modules/governance/controllers/routes/tasks.routes.js +2 -2
  568. package/src/modules/governance/governance.client.js +1 -4
  569. package/src/modules/governance/governance.server.js +6 -6
  570. package/src/modules/governance/middlewares/initiatives.verifier.js +60 -0
  571. package/src/modules/governance/middlewares/{milestones.verifier.js → sprints.verifier.js} +10 -10
  572. package/src/modules/governance/middlewares/tasks.verifier.js +4 -4
  573. package/src/modules/governance/middlewares/votings.verifier.js +25 -7
  574. package/src/modules/governance/models/{milestone.model.js → sprint.model.js} +11 -11
  575. package/src/modules/governance/models/task.model.js +4 -4
  576. package/src/modules/governance/models/voting.model.js +10 -5
  577. package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +8 -13
  578. package/src/modules/governance/views/components/blocks/{CardMilestoneItem.vue → CardSprintItem.vue} +16 -17
  579. package/src/modules/governance/views/components/blocks/CardTaskItem.vue +7 -9
  580. package/src/modules/governance/views/components/blocks/CardVotingItem.vue +7 -9
  581. package/src/modules/governance/views/components/pages/Governance.vue +13 -34
  582. package/src/modules/governance/views/components/pages/Initiative.vue +73 -154
  583. package/src/modules/governance/views/components/pages/InitiativeCreate.vue +44 -7
  584. package/src/modules/governance/views/components/pages/{Roadmap.vue → InitiativeSprints.vue} +70 -69
  585. package/src/modules/governance/views/components/pages/Initiatives.vue +23 -108
  586. package/src/modules/governance/views/components/pages/{Milestone.vue → Sprint.vue} +43 -41
  587. package/src/modules/governance/views/components/pages/SprintCreate.vue +55 -0
  588. package/src/modules/governance/views/components/pages/Task.vue +95 -88
  589. package/src/modules/governance/views/components/pages/TaskCreate.vue +47 -9
  590. package/src/modules/governance/views/components/pages/Tasks.vue +25 -21
  591. package/src/modules/governance/views/components/pages/Voting.vue +84 -68
  592. package/src/modules/governance/views/components/pages/VotingCreate.vue +48 -8
  593. package/src/modules/governance/views/components/pages/Votings.vue +12 -57
  594. package/src/modules/governance/views/components/partials/EmptyState.vue +1 -1
  595. package/src/modules/governance/views/components/partials/LinkedEntityCard.vue +23 -11
  596. package/src/modules/governance/views/components/partials/TaskStatusBadge.vue +1 -1
  597. package/src/modules/governance/views/components/partials/VoteForm.vue +3 -3
  598. package/src/modules/governance/views/components/partials/VotingResults.vue +13 -19
  599. package/src/modules/governance/views/components/sections/FormInitiativeDetails.vue +413 -15
  600. package/src/modules/governance/views/components/sections/FormSprintDetails.vue +156 -0
  601. package/src/modules/governance/views/components/sections/FormTaskDetails.vue +125 -21
  602. package/src/modules/governance/views/components/sections/FormVotingDetails.vue +136 -17
  603. package/src/modules/governance/views/components/sections/VoteForm.vue +2 -2
  604. package/src/modules/governance/views/router/governance.router.js +255 -151
  605. package/src/modules/governance/views/store/initiatives.js +23 -2
  606. package/src/modules/governance/views/store/sprints.js +102 -0
  607. package/src/modules/governance/views/store/tasks.js +25 -9
  608. package/src/modules/governance/views/store/votings.js +106 -27
  609. package/src/modules/icons/icons.client.js +1 -1
  610. package/src/modules/inventory/components/pages/InventoryEdit.vue +1 -1
  611. package/src/modules/music/components/sections/PopularTracks.vue +52 -0
  612. package/src/modules/music/music.client.js +8 -1
  613. package/src/modules/music/router/music.router.js +13 -1
  614. package/src/modules/notifications/components/elements/NotificationBadge.vue +8 -33
  615. package/src/modules/notifications/components/sections/NotificationPreferences.vue +110 -48
  616. package/src/modules/notifications/notifications.client.js +78 -57
  617. package/src/modules/notifications/router/notifications.router.js +32 -15
  618. package/src/modules/notifications/services/notification.service.js +15 -6
  619. package/src/modules/notifications/services/web-push.service.js +2 -0
  620. package/src/modules/orders/components/blocks/CardApplication.vue +20 -40
  621. package/src/modules/orders/components/blocks/CardCustomer.vue +35 -55
  622. package/src/modules/orders/components/blocks/CardOrderItem.vue +2 -2
  623. package/src/modules/orders/components/blocks/CardOrderUser.vue +2 -2
  624. package/src/modules/orders/components/forms/FormCustomerDetails.vue +2 -2
  625. package/src/modules/orders/components/pages/Applications.vue +59 -57
  626. package/src/modules/orders/components/pages/Customers.vue +40 -27
  627. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  628. package/src/modules/orders/components/sections/ApplicationDetails.vue +1 -4
  629. package/src/modules/orders/components/sections/CustomerDetails.vue +1 -4
  630. package/src/modules/orders/controllers/orders.controller.js +113 -0
  631. package/src/modules/orders/middlewares/applications.verifier.js +13 -37
  632. package/src/modules/orders/middlewares/customers.verifier.js +44 -121
  633. package/src/modules/orders/models/customer.model.js +0 -1
  634. package/src/modules/orders/routes/applications.routes.js +108 -50
  635. package/src/modules/orders/routes/orders.routes.js +9 -1
  636. package/src/modules/organizations/components/blocks/CardOrganization.vue +12 -4
  637. package/src/modules/organizations/components/forms/DepartmentForm.vue +9 -4
  638. package/src/modules/organizations/components/pages/Members.vue +62 -1
  639. package/src/modules/organizations/components/pages/Organization.new.vue +17 -17
  640. package/src/modules/organizations/components/pages/Organization.vue +8 -1
  641. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +1 -1
  642. package/src/modules/organizations/components/pages/OrganizationEdit.vue +11 -4
  643. package/src/modules/organizations/components/pages/Organizations.vue +33 -46
  644. package/src/modules/organizations/controllers/invites.controller.js +19 -0
  645. package/src/modules/organizations/controllers/memberships.controller.js +1 -0
  646. package/src/modules/organizations/organizations.client.js +48 -7
  647. package/src/modules/organizations/router/organizations.backoffice.router.js +15 -0
  648. package/src/modules/organizations/router/organizations.router.js +72 -112
  649. package/src/modules/organizations/router/organizations.user.router.js +15 -0
  650. package/src/modules/pages/pages.client.js +1 -1
  651. package/src/modules/pages/views/router/pages.router.js +95 -15
  652. package/src/modules/products/components/blocks/CardPosition.vue +1 -1
  653. package/src/modules/products/components/pages/Products.vue +3 -3
  654. package/src/modules/rents/controllers/services/rents.services.js +1 -0
  655. package/src/modules/rents/rents.client.js +1 -1
  656. package/src/modules/rents/views/router/rents.router.js +93 -33
  657. package/src/modules/reports/reports.client.js +1 -1
  658. package/src/modules/wallet/wallet.client.js +1 -1
  659. package/src/styles/theme.scss +5 -3
  660. package/dist/engagement.schema-fh6W1fb_.js +0 -24
  661. package/dist/main-DQm5pwFO.js +0 -8213
  662. package/dist/martyrs/dist/main-DQm5pwFO.js +0 -1080
  663. package/dist/martyrs/dist/main-DQm5pwFO.js.map +0 -1
  664. package/dist/martyrs/dist/web-n_ivHO3v.js +0 -55
  665. package/dist/martyrs/dist/web-n_ivHO3v.js.map +0 -1
  666. package/dist/martyrs/src/components/Address/Address.vue.js.map +0 -1
  667. package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
  668. package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +0 -1
  669. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue.js.map +0 -1
  670. package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +0 -1
  671. package/dist/martyrs/src/components/Select/Select.vue2.js.map +0 -1
  672. package/dist/martyrs/src/components/Tab/Tab.vue2.js.map +0 -1
  673. package/dist/martyrs/src/modules/community/community.router.js +0 -124
  674. package/dist/martyrs/src/modules/community/community.router.js.map +0 -1
  675. package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +0 -1
  676. package/dist/martyrs/src/modules/icons/icons.router.js.map +0 -1
  677. package/dist/martyrs/src/modules/music/music.router.js.map +0 -1
  678. package/dist/martyrs/src/modules/notifications/notifications.router.js.map +0 -1
  679. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +0 -200
  680. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +0 -1
  681. package/dist/martyrs/src/modules/organizations/organizations.router.js +0 -145
  682. package/dist/martyrs/src/modules/organizations/organizations.router.js.map +0 -1
  683. package/dist/martyrs/src/modules/pages/pages.router.js.map +0 -1
  684. package/dist/martyrs/src/modules/rents/rents.router.js.map +0 -1
  685. package/dist/martyrs/src/modules/reports/reports.router.js.map +0 -1
  686. package/dist/martyrs.css +0 -1
  687. 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
  688. 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
  689. 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
  690. 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
  691. 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
  692. 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
  693. 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
  694. 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
  695. 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
  696. 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
  697. package/src/jit/.claude/settings.local.json +0 -10
  698. package/src/modules/community/community.router.js +0 -107
  699. package/src/modules/governance/governance.router.js +0 -350
  700. package/src/modules/governance/seed-governance.js +0 -348
  701. package/src/modules/governance/views/components/pages/InitiativeMilestones.vue +0 -159
  702. package/src/modules/governance/views/router/goverance.router.js +0 -290
  703. package/src/modules/governance/views/store/votes.js +0 -113
  704. package/src/modules/icons/icons.router.js +0 -29
  705. package/src/modules/marketplace/marketplace.router.js +0 -66
  706. package/src/modules/music/.claude/settings.local.json +0 -8
  707. package/src/modules/music/music.router.js +0 -188
  708. package/src/modules/notifications/notifications.router.js +0 -47
  709. package/src/modules/orders/orders.router.js +0 -255
  710. package/src/modules/organizations/organizations.router.js +0 -123
  711. package/src/modules/organizations/router/backoffice.router.js +0 -27
  712. package/src/modules/organizations/router/departments.router.js +0 -15
  713. package/src/modules/organizations/router/members.router.js +0 -20
  714. package/src/modules/pages/pages.router.js +0 -107
  715. package/src/modules/rents/rents.router.js +0 -115
  716. package/src/modules/reports/reports.router.js +0 -33
  717. package/src/modules/wallet/wallet.router.js +0 -45
@@ -3,11 +3,11 @@ import { onMounted, ref, computed } from 'vue';
3
3
  import { useRoute } from 'vue-router';
4
4
  import CardTaskItem from '../blocks/CardTaskItem.vue';
5
5
  import EmptyState from '../partials/EmptyState.vue';
6
- import { mockTasks } from '../../../data/mockData';
6
+ import { tasksActions, tasksState } from '../../store/tasks';
7
7
  import { IconPlus, IconCheckmark, IconTime, IconShow, IconSend, IconEntityInfo } from '@martyrs/src/modules/icons/icons.client.js';
8
8
 
9
9
  const route = useRoute();
10
- const tasks = ref(mockTasks);
10
+ const tasks = computed(() => tasksState.all);
11
11
 
12
12
  const completedTasks = computed(() => tasks.value.filter(t => t.status === 'completed'));
13
13
  const inProgressTasks = computed(() => tasks.value.filter(t => t.status === 'in_progress'));
@@ -16,19 +16,23 @@ const votingTasks = computed(() => tasks.value.filter(t => t.status === 'voting'
16
16
  const proposedTasks = computed(() => tasks.value.filter(t => t.status === 'proposed'));
17
17
  const notStartedTasks = computed(() => tasks.value.filter(t => t.status === 'not_started'));
18
18
  const blockedTasks = computed(() => tasks.value.filter(t => t.status === 'blocked'));
19
+
20
+ onMounted(() => {
21
+ tasksActions.getAllTasks();
22
+ });
19
23
  </script>
20
24
 
21
25
  <template>
22
26
  <div>
23
- <div v-if="!route.params.id" class="min-h-100vh">
27
+ <div v-if="!route.params.taskId" class="min-h-100vh">
24
28
  <div class="pd-medium pd-y-semi">
25
29
  <div class="flex flex-justify-between flex-v-center mn-b-semi">
26
30
  <div>
27
31
  <h1 class="h1 fw-medium">Tasks</h1>
28
- <p class="p-regular t-grey mn-t-thin">View and manage all tasks across initiatives</p>
32
+ <p class="p-regular t-dark mn-t-thin">View and manage all tasks across initiatives</p>
29
33
  </div>
30
34
  <router-link
31
- :to="{ name: 'Create Task' }"
35
+ :to="`/governance/initiatives/${route.params.id}/tasks/create`"
32
36
  class="bg-main hover:bg-main-semi t-white fw-medium pd-small pd-x-semi radius-medium flex flex-v-center gap-thin ease-cubic-in-out cursor-pointer"
33
37
  style="text-decoration: none;"
34
38
  >
@@ -42,10 +46,10 @@ const blockedTasks = computed(() => tasks.value.filter(t => t.status === 'blocke
42
46
  title="No tasks yet"
43
47
  message="Get started by creating your first task."
44
48
  actionText="Create Task"
45
- @action="$router.push({ name: 'Create Task' })"
49
+ @action="$router.push(`/governance/initiatives/${route.params.id}/tasks/create`)"
46
50
  >
47
51
  <template #icon>
48
- <svg class="w-12r h-12r t-grey" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
52
+ <svg class="w-12r h-12r t-dark" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
49
53
  <path d="M9 11l3 3L22 4"/>
50
54
  <path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"/>
51
55
  </svg>
@@ -60,12 +64,12 @@ const blockedTasks = computed(() => tasks.value.filter(t => t.status === 'blocke
60
64
  <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
61
65
  </svg>
62
66
  <h3 class="h4 fw-medium">Completed</h3>
63
- <span class="p-small t-grey">({{ completedTasks.length }})</span>
67
+ <span class="p-small t-dark">({{ completedTasks.length }})</span>
64
68
  </div>
65
69
  <div class="cols-3 gap-small mobile:cols-1 tablet:cols-2">
66
70
  <CardTaskItem
67
71
  v-for="task in completedTasks"
68
- :key="task.id"
72
+ :key="task._id"
69
73
  :task="task"
70
74
  />
71
75
  </div>
@@ -75,12 +79,12 @@ const blockedTasks = computed(() => tasks.value.filter(t => t.status === 'blocke
75
79
  <div class="flex flex-v-center gap-thin mn-b-medium">
76
80
  <IconTime class="i-medium" :fill="'rgb(var(--second))'" />
77
81
  <h3 class="h4 fw-medium">In Progress</h3>
78
- <span class="p-small t-grey">({{ inProgressTasks.length }})</span>
82
+ <span class="p-small t-dark">({{ inProgressTasks.length }})</span>
79
83
  </div>
80
84
  <div class="cols-3 gap-small mobile:cols-1 tablet:cols-2">
81
85
  <CardTaskItem
82
86
  v-for="task in inProgressTasks"
83
- :key="task.id"
87
+ :key="task._id"
84
88
  :task="task"
85
89
  />
86
90
  </div>
@@ -90,12 +94,12 @@ const blockedTasks = computed(() => tasks.value.filter(t => t.status === 'blocke
90
94
  <div class="flex flex-v-center gap-thin mn-b-medium">
91
95
  <IconShow class="i-medium" :fill="'rgb(var(--fifth))'" />
92
96
  <h3 class="h4 fw-medium">Review</h3>
93
- <span class="p-small t-grey">({{ reviewTasks.length }})</span>
97
+ <span class="p-small t-dark">({{ reviewTasks.length }})</span>
94
98
  </div>
95
99
  <div class="cols-3 gap-small mobile:cols-1 tablet:cols-2">
96
100
  <CardTaskItem
97
101
  v-for="task in reviewTasks"
98
- :key="task.id"
102
+ :key="task._id"
99
103
  :task="task"
100
104
  />
101
105
  </div>
@@ -105,12 +109,12 @@ const blockedTasks = computed(() => tasks.value.filter(t => t.status === 'blocke
105
109
  <div class="flex flex-v-center gap-thin mn-b-medium">
106
110
  <IconSend class="i-medium" :fill="'rgb(var(--main))'" />
107
111
  <h3 class="h4 fw-medium">Voting</h3>
108
- <span class="p-small t-grey">({{ votingTasks.length }})</span>
112
+ <span class="p-small t-dark">({{ votingTasks.length }})</span>
109
113
  </div>
110
114
  <div class="cols-3 gap-small mobile:cols-1 tablet:cols-2">
111
115
  <CardTaskItem
112
116
  v-for="task in votingTasks"
113
- :key="task.id"
117
+ :key="task._id"
114
118
  :task="task"
115
119
  />
116
120
  </div>
@@ -120,12 +124,12 @@ const blockedTasks = computed(() => tasks.value.filter(t => t.status === 'blocke
120
124
  <div class="flex flex-v-center gap-thin mn-b-medium">
121
125
  <IconEntityInfo class="i-medium" :fill="'rgb(var(--grey))'" />
122
126
  <h3 class="h4 fw-medium">Proposed</h3>
123
- <span class="p-small t-grey">({{ proposedTasks.length }})</span>
127
+ <span class="p-small t-dark">({{ proposedTasks.length }})</span>
124
128
  </div>
125
129
  <div class="cols-3 gap-small mobile:cols-1 tablet:cols-2">
126
130
  <CardTaskItem
127
131
  v-for="task in proposedTasks"
128
- :key="task.id"
132
+ :key="task._id"
129
133
  :task="task"
130
134
  />
131
135
  </div>
@@ -137,12 +141,12 @@ const blockedTasks = computed(() => tasks.value.filter(t => t.status === 'blocke
137
141
  <circle cx="12" cy="12" r="10"/>
138
142
  </svg>
139
143
  <h3 class="h4 fw-medium">Not Started</h3>
140
- <span class="p-small t-grey">({{ notStartedTasks.length }})</span>
144
+ <span class="p-small t-dark">({{ notStartedTasks.length }})</span>
141
145
  </div>
142
146
  <div class="cols-3 gap-small mobile:cols-1 tablet:cols-2">
143
147
  <CardTaskItem
144
148
  v-for="task in notStartedTasks"
145
- :key="task.id"
149
+ :key="task._id"
146
150
  :task="task"
147
151
  />
148
152
  </div>
@@ -155,12 +159,12 @@ const blockedTasks = computed(() => tasks.value.filter(t => t.status === 'blocke
155
159
  <line x1="4.93" y1="4.93" x2="19.07" y2="19.07"/>
156
160
  </svg>
157
161
  <h3 class="h4 fw-medium">Blocked</h3>
158
- <span class="p-small t-grey">({{ blockedTasks.length }})</span>
162
+ <span class="p-small t-dark">({{ blockedTasks.length }})</span>
159
163
  </div>
160
164
  <div class="cols-3 gap-small mobile:cols-1 tablet:cols-2">
161
165
  <CardTaskItem
162
166
  v-for="task in blockedTasks"
163
- :key="task.id"
167
+ :key="task._id"
164
168
  :task="task"
165
169
  />
166
170
  </div>
@@ -1,17 +1,22 @@
1
1
  <script setup>
2
- import { ref, computed } from 'vue';
2
+ import { ref, computed, onMounted } from 'vue';
3
3
  import { useRoute } from 'vue-router';
4
4
  import TaskStatusBadge from '../partials/TaskStatusBadge.vue';
5
5
  import VoteForm from '../partials/VoteForm.vue';
6
6
  import VotingResults from '../partials/VotingResults.vue';
7
7
  import LinkedEntityCard from '../partials/LinkedEntityCard.vue';
8
- import { mockVotings, mockTasks, mockInitiatives, mockMilestones } from '../../../data/mockData';
8
+ import { votingsActions, votingsState } from '../../store/votings';
9
+ import $axios from '@martyrs/src/modules/core/views/utils/axios-instance.js';
10
+ import { useGlobalMixins } from '@martyrs/src/modules/core/views/mixins/mixins.js';
9
11
  import { IconArrow, IconCalendar } from '@martyrs/src/modules/icons/icons.client.js';
10
12
 
13
+ const { formatDate } = useGlobalMixins();
14
+
11
15
  const route = useRoute();
12
16
  const hasVoted = ref(false);
17
+ const votesData = ref([]);
13
18
 
14
- const voting = computed(() => mockVotings.find(v => v.id === route.params.id));
19
+ const voting = computed(() => votingsState.current);
15
20
 
16
21
  const typeConfig = {
17
22
  create_task: { label: 'Create Task', color: 'bg-main-small t-main' },
@@ -20,84 +25,91 @@ const typeConfig = {
20
25
  };
21
26
 
22
27
  const typeInfo = computed(() => voting.value ? (typeConfig[voting.value.type] || typeConfig.general) : null);
23
- const isActive = computed(() => voting.value && voting.value.status === 'pending');
28
+ const isActive = computed(() => voting.value && voting.value.status === 'active');
29
+
30
+ const totalVotes = computed(() => votesData.value.length);
31
+ const yesVotes = computed(() => votesData.value.filter(v => v.vote === 'approve' || v.choice === 'approve').length);
32
+ const noVotes = computed(() => votesData.value.filter(v => v.vote === 'reject' || v.choice === 'reject').length);
33
+ const abstainVotes = computed(() => votesData.value.filter(v => v.vote === 'veto' || v.vote === 'abstain' || v.choice === 'veto' || v.choice === 'abstain').length);
24
34
 
25
35
  const percentageYes = computed(() =>
26
- voting.value && voting.value.totalVotes > 0
27
- ? (voting.value.yesVotes / voting.value.totalVotes) * 100
28
- : 0
36
+ totalVotes.value > 0 ? (yesVotes.value / totalVotes.value) * 100 : 0
29
37
  );
30
38
  const percentageNo = computed(() =>
31
- voting.value && voting.value.totalVotes > 0
32
- ? (voting.value.noVotes / voting.value.totalVotes) * 100
33
- : 0
39
+ totalVotes.value > 0 ? (noVotes.value / totalVotes.value) * 100 : 0
34
40
  );
35
41
 
36
42
  const results = computed(() => {
37
43
  if (!voting.value) return null;
38
44
  return {
39
- totalVotes: voting.value.totalVotes,
40
- yesVotes: voting.value.yesVotes,
41
- noVotes: voting.value.noVotes,
42
- abstainVotes: voting.value.abstainVotes,
45
+ totalVotes: totalVotes.value,
46
+ yesVotes: yesVotes.value,
47
+ noVotes: noVotes.value,
48
+ abstainVotes: abstainVotes.value,
43
49
  percentageYes: percentageYes.value,
44
50
  percentageNo: percentageNo.value,
45
51
  threshold: voting.value.threshold,
46
52
  };
47
53
  });
48
54
 
49
- const linkedEntity = computed(() => {
50
- if (!voting.value) return null;
55
+ const linkedInitiative = ref(null);
56
+ const linkedTask = ref(null);
57
+ const linkedSprint = ref(null);
51
58
 
52
- if (voting.value.linkedEntityType === 'task' && voting.value.linkedEntityId) {
53
- const task = mockTasks.find(t => t.id === voting.value.linkedEntityId);
54
- if (task) {
55
- return {
56
- type: 'task',
57
- data: { id: task.id, title: task.title, status: task.status }
58
- };
59
+ const handleVoteSubmit = (vote, comment) => {
60
+ console.log('Vote submitted:', { vote, comment });
61
+ hasVoted.value = true;
62
+ };
63
+
64
+ onMounted(async () => {
65
+ await votingsActions.getVotingById(route.params.votingId);
66
+
67
+ if (voting.value) {
68
+ try {
69
+ const votes = await votingsActions.getVotesForVoting(route.params.votingId);
70
+ votesData.value = Array.isArray(votes) ? votes : [];
71
+ } catch (e) {
72
+ votesData.value = [];
59
73
  }
60
- } else if (voting.value.linkedEntityType === 'initiative' && voting.value.linkedEntityId) {
61
- const initiative = mockInitiatives.find(i => i.id === voting.value.linkedEntityId);
62
- if (initiative) {
63
- return {
64
- type: 'initiative',
65
- data: { id: initiative.id, title: initiative.title, status: initiative.status }
66
- };
74
+
75
+ const initiativeId = voting.value.initiative ||
76
+ (voting.value.targetModel === 'Initiative' ? voting.value.targetId : null);
77
+ if (initiativeId) {
78
+ try {
79
+ const res = await $axios.get('/api/initiatives/read', { params: { _id: initiativeId } });
80
+ const entity = Array.isArray(res.data) ? res.data[0] : res.data;
81
+ if (entity?._id) linkedInitiative.value = entity;
82
+ } catch (e) {}
67
83
  }
68
- } else if (voting.value.linkedEntityType === 'milestone' && voting.value.linkedEntityId) {
69
- const milestone = mockMilestones.find(m => m.id === voting.value.linkedEntityId);
70
- if (milestone) {
71
- return {
72
- type: 'milestone',
73
- data: { id: milestone.id, name: milestone.name, status: milestone.status }
74
- };
84
+
85
+ const taskId = voting.value.task ||
86
+ (voting.value.targetModel === 'Task' ? voting.value.targetId : null);
87
+ if (taskId) {
88
+ try {
89
+ const res = await $axios.get('/api/tasks/read', { params: { _id: taskId } });
90
+ const entity = Array.isArray(res.data) ? res.data[0] : res.data;
91
+ if (entity?._id) linkedTask.value = entity;
92
+ } catch (e) {}
93
+ }
94
+
95
+ const sprintId = voting.value.sprint ||
96
+ (voting.value.targetModel === 'Sprint' ? voting.value.targetId : null);
97
+ if (sprintId) {
98
+ try {
99
+ const res = await $axios.get('/api/sprints/read', { params: { _id: sprintId } });
100
+ const entity = Array.isArray(res.data) ? res.data[0] : res.data;
101
+ if (entity?._id) linkedSprint.value = entity;
102
+ } catch (e) {}
75
103
  }
76
104
  }
77
- return null;
78
105
  });
79
-
80
- const formatDate = (dateString) => {
81
- return new Date(dateString).toLocaleString('en-US', {
82
- month: 'long',
83
- day: 'numeric',
84
- year: 'numeric',
85
- hour: '2-digit',
86
- minute: '2-digit',
87
- });
88
- };
89
-
90
- const handleVoteSubmit = (vote, comment) => {
91
- console.log('Vote submitted:', { vote, comment });
92
- hasVoted.value = true;
93
- };
94
106
  </script>
95
107
 
96
108
  <template>
97
109
  <div v-if="!voting" class="min-h-100vh flex flex-center flex">
98
110
  <div class="t-center">
99
111
  <h2 class="h2 fw-medium mn-b-small">Voting not found</h2>
100
- <router-link :to="{ name: 'Votings' }" class="t-main hover:t-main-semi">
112
+ <router-link :to="`/governance/initiatives/${route.params.id}/votings`" class="t-main hover:t-main-semi">
101
113
  Back to votings
102
114
  </router-link>
103
115
  </div>
@@ -106,8 +118,8 @@ const handleVoteSubmit = (vote, comment) => {
106
118
  <div v-else class="min-h-100vh">
107
119
  <div class="pd-medium pd-y-semi">
108
120
  <router-link
109
- :to="{ name: 'Votings' }"
110
- class="flex flex-v-center t-grey hover:t-dark mn-b-semi ease-cubic-in-out"
121
+ :to="`/governance/initiatives/${route.params.id}/votings`"
122
+ class="flex flex-v-center t-dark hover:t-dark mn-b-semi ease-cubic-in-out"
111
123
  style="text-decoration: none; width: fit-content;"
112
124
  >
113
125
  <IconArrow class="i-medium mn-r-thin" :rotation="180" :fill="'currentColor'" />
@@ -122,39 +134,43 @@ const handleVoteSubmit = (vote, comment) => {
122
134
  <span :class="`pd-micro pd-x-small radius-regular p-micro fw-medium ${typeInfo.color}`">
123
135
  {{ typeInfo.label }}
124
136
  </span>
125
- <TaskStatusBadge :status="voting.status" />
137
+ <TaskStatusBadge :status="voting.result || voting.status" />
126
138
  </div>
127
139
  <h1 class="h1 fw-medium mn-b-medium">{{ voting.title }}</h1>
128
- <p class="p-semi t-grey t-line-relaxed">{{ voting.description }}</p>
140
+ <p class="p-semi t-dark t-line-relaxed">{{ voting.description }}</p>
129
141
  </div>
130
142
  </div>
131
143
 
132
- <div class="br-t-1px br-black-transp-10 pd-x-semi mn-b-semi">
144
+ <div class="mn-b-semi">
133
145
  <div class="cols-2 mobile:cols-1 gap-small">
134
146
  <div class="flex flex-align-start gap-small">
135
147
  <IconCalendar class="i-medium mn-t-micro" :fill="'rgb(var(--grey))'" />
136
148
  <div>
137
- <div class="p-small t-grey mn-b-micro">Created</div>
149
+ <div class="p-small t-dark mn-b-micro">Created</div>
138
150
  <div class="p-regular fw-medium">{{ formatDate(voting.createdAt) }}</div>
139
151
  </div>
140
152
  </div>
141
153
  <div class="flex flex-align-start gap-small">
142
154
  <IconCalendar class="i-medium mn-t-micro" :fill="'rgb(var(--grey))'" />
143
155
  <div>
144
- <div class="p-small t-grey mn-b-micro">Ends</div>
156
+ <div class="p-small t-dark mn-b-micro">Ends</div>
145
157
  <div class="p-regular fw-medium">{{ formatDate(voting.endDate) }}</div>
146
158
  </div>
147
159
  </div>
148
160
  </div>
149
161
  </div>
150
162
 
151
- <div v-if="linkedEntity" class="br-t-1px br-black-transp-10 pd-x-semi mn-b-semi">
152
- <h3 class="p-small fw-medium mn-b-small">Related Item</h3>
153
- <LinkedEntityCard :entityType="linkedEntity.type" :entityData="linkedEntity.data" />
163
+ <div v-if="linkedInitiative || linkedTask || linkedSprint" class="mn-b-semi">
164
+ <h3 class="p-small fw-medium mn-b-small">Related Items</h3>
165
+ <div class="flex flex-column gap-small">
166
+ <LinkedEntityCard v-if="linkedInitiative" entityType="initiative" :entityData="linkedInitiative" />
167
+ <LinkedEntityCard v-if="linkedTask" entityType="task" :entityData="linkedTask" />
168
+ <LinkedEntityCard v-if="linkedSprint" entityType="sprint" :entityData="linkedSprint" />
169
+ </div>
154
170
  </div>
155
171
 
156
- <div class="br-t-1px br-black-transp-10 pd-x-semi">
157
- <VotingResults :results="results" :votes="voting.votes" />
172
+ <div>
173
+ <VotingResults :results="results" :votes="votesData" />
158
174
  </div>
159
175
  </div>
160
176
  </div>
@@ -169,8 +185,8 @@ const handleVoteSubmit = (vote, comment) => {
169
185
  </div>
170
186
 
171
187
  <div v-if="!isActive" class="br-black-transp-10 br-1px radius-semi pd-semi t-center">
172
- <div class="t-grey fw-medium h5 mn-b-small">Voting Closed</div>
173
- <p class="t-grey">This voting has ended.</p>
188
+ <div class="t-dark fw-medium h5 mn-b-small">Voting Closed</div>
189
+ <p class="t-dark">This voting has ended.</p>
174
190
  </div>
175
191
  </div>
176
192
  </div>
@@ -1,25 +1,65 @@
1
1
  <script setup>
2
2
  import { ref } from 'vue';
3
- import { votesActions } from '../../store/votings';
3
+ import { useRoute, useRouter } from 'vue-router';
4
+ import { votingsActions } from '../../store/votings';
4
5
  import FormVotingDetails from '../sections/FormVotingDetails.vue';
6
+ import { IconArrow } from '@martyrs/src/modules/icons/icons.client.js';
7
+
8
+ const route = useRoute();
9
+ const router = useRouter();
5
10
 
6
11
  const newVoting = ref({
7
12
  title: '',
8
13
  description: '',
14
+ type: 'general',
15
+ targetModel: '',
16
+ targetId: '',
17
+ threshold: 51,
18
+ initiative: '',
19
+ sprint: '',
9
20
  startDate: null,
10
- endDate: null
21
+ endDate: null,
22
+ status: 'pending',
11
23
  });
12
24
 
25
+ const creating = ref(false);
26
+
13
27
  const createVoting = async () => {
14
- await votesActions.createVoting(newVoting.value);
15
- // Redirect or show success message
28
+ if (!newVoting.value.title) return;
29
+ creating.value = true;
30
+ try {
31
+ const response = await votingsActions.createVoting(newVoting.value);
32
+ router.push(`/governance/initiatives/${route.params.id}/votings/${response._id || response.id}`);
33
+ } catch (e) {
34
+ creating.value = false;
35
+ }
16
36
  };
17
37
  </script>
18
38
 
19
39
  <template>
20
- <div>
21
- <h1>Create New Voting</h1>
40
+ <div class="pd-medium pd-y-semi">
41
+ <router-link
42
+ :to="`/governance/initiatives/${route.params.id}/votings`"
43
+ class="flex flex-v-center t-dark hover:t-dark mn-b-semi ease-cubic-in-out"
44
+ style="text-decoration: none; width: fit-content;"
45
+ >
46
+ <IconArrow class="i-medium mn-r-thin" :rotation="180" :fill="'currentColor'" />
47
+ Back to votings
48
+ </router-link>
49
+
50
+ <h1 class="h2 fw-medium mn-b-semi">Create New Voting</h1>
51
+
22
52
  <FormVotingDetails v-model="newVoting" />
23
- <button @click="createVoting">Create Voting</button>
53
+
54
+ <div class="flex flex-justify-end mn-t-semi">
55
+ <button
56
+ @click="createVoting"
57
+ :disabled="!newVoting.title || creating"
58
+ class="bg-main hover:bg-main-semi t-white fw-medium pd-medium pd-x-semi radius-medium p-regular ease-cubic-in-out"
59
+ :class="{ 'o-50': !newVoting.title || creating }"
60
+ >
61
+ {{ creating ? 'Creating...' : 'Create Voting' }}
62
+ </button>
63
+ </div>
24
64
  </div>
25
- </template>
65
+ </template>
@@ -1,74 +1,34 @@
1
1
  <script setup>
2
- import { ref, computed } from 'vue';
2
+ import { computed, onMounted } from 'vue';
3
3
  import { useRoute } from 'vue-router';
4
4
  import CardVotingItem from '../blocks/CardVotingItem.vue';
5
5
  import EmptyState from '../partials/EmptyState.vue';
6
- import { mockVotings } from '../../../data/mockData';
6
+ import { votingsActions, votingsState } from '../../store/votings';
7
7
 
8
8
  const route = useRoute();
9
- const votings = ref(mockVotings);
10
- const typeFilter = ref('all');
11
- const statusFilter = ref('all');
9
+ const votings = computed(() => votingsState.all);
12
10
 
13
- const filteredVotings = computed(() => {
14
- return votings.value.filter((voting) => {
15
- const matchesType = typeFilter.value === 'all' || voting.type === typeFilter.value;
16
- const matchesStatus = statusFilter.value === 'all' || voting.status === statusFilter.value;
17
- return matchesType && matchesStatus;
18
- });
11
+ onMounted(() => {
12
+ votingsActions.getAllVotings();
19
13
  });
20
14
  </script>
21
15
 
22
16
  <template>
23
17
  <div>
24
- <div v-if="!route.params.id" class="min-h-100vh">
18
+ <div v-if="!route.params.votingId" class="min-h-100vh">
25
19
  <div class="pd-medium pd-y-semi">
26
20
  <div class="mn-b-semi">
27
21
  <h1 class="h1 fw-medium mn-b-small">Votings</h1>
28
- <p class="p-regular t-grey">View and participate in all active votings</p>
22
+ <p class="p-regular t-dark">View and participate in all active votings</p>
29
23
  </div>
30
24
 
31
- <div class="bg-light radius-medium pd-semi mn-b-semi">
32
- <div class="cols-2 gap-regular mobile:cols-1">
33
- <div>
34
- <label for="typeFilter" class="d-block p-small fw-medium mn-b-small">Type</label>
35
- <select
36
- id="typeFilter"
37
- v-model="typeFilter"
38
- class="w-100 pd-medium br-1px br-light radius-medium"
39
- style="outline: none;"
40
- >
41
- <option value="all">All Types</option>
42
- <option value="create_task">Create Task</option>
43
- <option value="approve_task">Approve Task</option>
44
- <option value="general">General</option>
45
- </select>
46
- </div>
47
-
48
- <div>
49
- <label for="statusFilter" class="d-block p-small fw-medium mn-b-small">Status</label>
50
- <select
51
- id="statusFilter"
52
- v-model="statusFilter"
53
- class="w-100 pd-medium br-1px br-light radius-medium"
54
- style="outline: none;"
55
- >
56
- <option value="all">All Statuses</option>
57
- <option value="pending">Pending</option>
58
- <option value="approved">Approved</option>
59
- <option value="rejected">Rejected</option>
60
- </select>
61
- </div>
62
- </div>
63
- </div>
64
-
65
- <div v-if="filteredVotings.length === 0">
25
+ <div v-if="votings.length === 0">
66
26
  <EmptyState
67
27
  title="No votings found"
68
- message="Try adjusting your filters to see more votings."
28
+ message="No votings have been created yet."
69
29
  >
70
30
  <template #icon>
71
- <svg class="w-12r h-12r t-grey" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
31
+ <svg class="w-12r h-12r t-dark" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
72
32
  <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>
73
33
  </svg>
74
34
  </template>
@@ -76,15 +36,10 @@ const filteredVotings = computed(() => {
76
36
  </div>
77
37
 
78
38
  <div v-else>
79
- <div class="flex flex-justify-between flex-v-center mn-b-medium">
80
- <p class="p-regular t-grey">
81
- Showing {{ filteredVotings.length }} of {{ votings.length }} votings
82
- </p>
83
- </div>
84
39
  <div class="cols-3 gap-small mobile:cols-1 tablet:cols-2">
85
40
  <CardVotingItem
86
- v-for="voting in filteredVotings"
87
- :key="voting._id || voting.id"
41
+ v-for="voting in votings"
42
+ :key="voting._id"
88
43
  :voting="voting"
89
44
  />
90
45
  </div>
@@ -29,7 +29,7 @@ const handleAction = () => {
29
29
  <slot name="icon"></slot>
30
30
  </div>
31
31
  <h3 class="h3 fw-medium mn-b-small">{{ title }}</h3>
32
- <p class="p-regular t-grey t-center w-max-40r mn-b-semi">{{ message }}</p>
32
+ <p class="p-regular t-dark t-center w-max-40r mn-b-semi">{{ message }}</p>
33
33
  <button
34
34
  v-if="actionText"
35
35
  @click="handleAction"