@ozdao/martyrs 0.2.481 → 0.2.482

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 (436) hide show
  1. package/README.md +4 -13
  2. package/dist/{Media-CKk33U4A.js → Media-JBERcJWj.js} +1 -1
  3. package/dist/{Media-B1ZP3D7B.cjs → Media-p7Q8ZAQM.cjs} +1 -1
  4. package/dist/{abac-XF1JVCLI.cjs → abac-6LjoG9u-.cjs} +107 -26
  5. package/dist/{abac-BuL5pUZ4.js → abac-Cf_9lCSh.js} +107 -26
  6. package/dist/globals.server.cjs +1 -1
  7. package/dist/globals.server.js +1 -1
  8. package/dist/{main-BhAiwmnI.js → main-AtCVQKF9.js} +2855 -4162
  9. package/dist/main-B-we7C0w.cjs +11 -0
  10. package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -1
  11. package/dist/martyrs/src/components/Button/Button.vue2.js.map +1 -1
  12. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs +28 -7
  13. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs.map +1 -1
  14. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +29 -8
  15. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
  16. package/dist/martyrs/src/components/Chips/{Chips.vue.cjs → Chips.vue2.cjs} +7 -10
  17. package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +1 -0
  18. package/dist/martyrs/src/components/Chips/{Chips.vue.js → Chips.vue2.js} +8 -11
  19. package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +1 -0
  20. package/dist/martyrs/src/components/Feed/Carousel.vue.cjs +84 -0
  21. package/dist/martyrs/src/components/Feed/Carousel.vue.cjs.map +1 -0
  22. package/dist/martyrs/src/components/Feed/Carousel.vue.js +84 -0
  23. package/dist/martyrs/src/components/Feed/Carousel.vue.js.map +1 -0
  24. package/dist/martyrs/src/components/Feed/Feed.vue.cjs +4 -4
  25. package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
  26. package/dist/martyrs/src/components/Feed/Feed.vue.js +4 -4
  27. package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
  28. package/dist/martyrs/src/components/Field/Field.vue.cjs +2 -1
  29. package/dist/martyrs/src/components/Field/Field.vue.cjs.map +1 -1
  30. package/dist/martyrs/src/components/Field/Field.vue.js +2 -1
  31. package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
  32. package/dist/martyrs/src/components/Menu/{Menu.vue.cjs → Menu.vue2.cjs} +2 -2
  33. package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +1 -0
  34. package/dist/martyrs/src/components/Menu/{Menu.vue.js → Menu.vue2.js} +2 -2
  35. package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +1 -0
  36. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs +203 -151
  37. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs.map +1 -1
  38. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js +204 -152
  39. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js.map +1 -1
  40. package/dist/martyrs/src/components/Popup/{Popup.vue.cjs → Popup.vue2.cjs} +2 -2
  41. package/dist/martyrs/src/components/Popup/Popup.vue2.cjs.map +1 -0
  42. package/dist/martyrs/src/components/Popup/{Popup.vue.js → Popup.vue2.js} +2 -2
  43. package/dist/martyrs/src/components/Popup/{Popup.vue.cjs.map → Popup.vue2.js.map} +1 -1
  44. package/dist/martyrs/src/components/Radio/Radio.vue.cjs +2 -2
  45. package/dist/martyrs/src/components/Radio/Radio.vue.cjs.map +1 -1
  46. package/dist/martyrs/src/components/Radio/Radio.vue.js +2 -2
  47. package/dist/martyrs/src/components/Radio/Radio.vue.js.map +1 -1
  48. package/dist/martyrs/src/components/Skeleton/Skeleton.vue.cjs +4 -3
  49. package/dist/martyrs/src/components/Skeleton/Skeleton.vue.cjs.map +1 -1
  50. package/dist/martyrs/src/components/Skeleton/Skeleton.vue.js +4 -3
  51. package/dist/martyrs/src/components/Skeleton/Skeleton.vue.js.map +1 -1
  52. package/dist/martyrs/src/components/Slider/{Slider.native.vue.cjs → Slider.vue.cjs} +22 -80
  53. package/dist/martyrs/src/components/Slider/Slider.vue.cjs.map +1 -0
  54. package/dist/martyrs/src/components/Slider/{Slider.native.vue.js → Slider.vue.js} +23 -81
  55. package/dist/martyrs/src/components/Slider/Slider.vue.js.map +1 -0
  56. package/dist/martyrs/src/components/Status/Status.vue.cjs.map +1 -1
  57. package/dist/martyrs/src/components/Status/Status.vue.js.map +1 -1
  58. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.cjs +4 -2
  59. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.cjs.map +1 -1
  60. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js +4 -2
  61. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js.map +1 -1
  62. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -1
  63. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
  64. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +4 -2
  65. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
  66. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +22 -149
  67. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -1
  68. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +24 -151
  69. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -1
  70. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +77 -0
  71. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs.map +1 -0
  72. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +77 -0
  73. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -0
  74. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +121 -0
  75. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs.map +1 -0
  76. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +121 -0
  77. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js.map +1 -0
  78. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs +38 -0
  79. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs.map +1 -0
  80. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +38 -0
  81. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +1 -0
  82. package/dist/martyrs/src/modules/auth/views/router/users.cjs +23 -16
  83. package/dist/martyrs/src/modules/auth/views/router/users.cjs.map +1 -1
  84. package/dist/martyrs/src/modules/auth/views/router/users.js +23 -16
  85. package/dist/martyrs/src/modules/auth/views/router/users.js.map +1 -1
  86. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  87. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  88. package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +3 -3
  89. package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.cjs.map +1 -1
  90. package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.js +3 -3
  91. package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.js.map +1 -1
  92. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +6 -6
  93. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +5 -4
  94. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs.map +1 -1
  95. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +5 -4
  96. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
  97. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  98. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  99. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.cjs +92 -62
  100. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.cjs.map +1 -1
  101. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js +93 -63
  102. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js.map +1 -1
  103. package/dist/martyrs/src/modules/community/components/sections/Comments.vue.cjs +82 -53
  104. package/dist/martyrs/src/modules/community/components/sections/Comments.vue.cjs.map +1 -1
  105. package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js +82 -53
  106. package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js.map +1 -1
  107. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs +2 -6
  108. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs.map +1 -1
  109. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js +2 -6
  110. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js.map +1 -1
  111. package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  112. package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  113. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  114. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  115. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  116. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  117. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +1 -1
  118. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -1
  119. package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +1 -1
  120. package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -1
  121. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs +3 -9
  122. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs.map +1 -1
  123. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js +3 -9
  124. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js.map +1 -1
  125. package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  126. package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.js +5 -5
  127. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
  128. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +11 -11
  129. package/dist/martyrs/src/modules/globals/globals.client.cjs +2 -0
  130. package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
  131. package/dist/martyrs/src/modules/globals/globals.client.js +2 -0
  132. package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
  133. package/dist/martyrs/src/modules/globals/views/components/blocks/AlertDialog.vue.cjs +1 -1
  134. package/dist/martyrs/src/modules/globals/views/components/blocks/AlertDialog.vue.js +1 -1
  135. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  136. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs.map +1 -1
  137. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
  138. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js.map +1 -1
  139. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs +84 -0
  140. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs.map +1 -0
  141. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js +84 -0
  142. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js.map +1 -0
  143. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +1 -1
  144. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +1 -1
  145. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
  146. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
  147. package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs +17 -0
  148. package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs.map +1 -1
  149. package/dist/martyrs/src/modules/globals/views/mixins/mixins.js +17 -0
  150. package/dist/martyrs/src/modules/globals/views/mixins/mixins.js.map +1 -1
  151. package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.cjs +70 -0
  152. package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.cjs.map +1 -0
  153. package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.js +70 -0
  154. package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.js.map +1 -0
  155. package/dist/martyrs/src/modules/icons/entities/IconList.vue.cjs +35 -0
  156. package/dist/martyrs/src/modules/icons/entities/IconList.vue.cjs.map +1 -0
  157. package/dist/martyrs/src/modules/icons/entities/IconList.vue.js +35 -0
  158. package/dist/martyrs/src/modules/icons/entities/IconList.vue.js.map +1 -0
  159. package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.cjs +1 -3
  160. package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.cjs.map +1 -1
  161. package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.js +1 -3
  162. package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.js.map +1 -1
  163. package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.cjs +1 -3
  164. package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.cjs.map +1 -1
  165. package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.js +1 -3
  166. package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.js.map +1 -1
  167. package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.cjs +1 -3
  168. package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.cjs.map +1 -1
  169. package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.js +1 -3
  170. package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.js.map +1 -1
  171. package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.cjs +1 -3
  172. package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.cjs.map +1 -1
  173. package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.js +1 -3
  174. package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.js.map +1 -1
  175. package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.cjs +1 -3
  176. package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.cjs.map +1 -1
  177. package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.js +1 -3
  178. package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.js.map +1 -1
  179. package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.cjs +21 -20
  180. package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.cjs.map +1 -1
  181. package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.js +21 -20
  182. package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.js.map +1 -1
  183. package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.cjs +1 -3
  184. package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.cjs.map +1 -1
  185. package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.js +1 -3
  186. package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.js.map +1 -1
  187. package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.cjs +6 -13
  188. package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.cjs.map +1 -1
  189. package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.js +6 -13
  190. package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.js.map +1 -1
  191. package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.cjs +1 -3
  192. package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.cjs.map +1 -1
  193. package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.js +1 -3
  194. package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.js.map +1 -1
  195. package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.cjs +1 -3
  196. package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.cjs.map +1 -1
  197. package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.js +1 -3
  198. package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.js.map +1 -1
  199. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +1 -3
  200. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs.map +1 -1
  201. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js +41 -43
  202. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js.map +1 -1
  203. package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.cjs +8 -8
  204. package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.cjs.map +1 -1
  205. package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.js +8 -8
  206. package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.js.map +1 -1
  207. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs +50 -51
  208. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs.map +1 -1
  209. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +51 -52
  210. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
  211. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  212. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  213. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  214. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  215. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  216. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  217. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  218. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  219. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
  220. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +2 -2
  221. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  222. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  223. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  224. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  225. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  226. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  227. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +1 -1
  228. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
  229. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  230. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  231. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +7 -4
  232. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
  233. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +18 -15
  234. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
  235. package/dist/martyrs/src/modules/organizations/router/organizations.cjs +1 -1
  236. package/dist/martyrs/src/modules/organizations/router/organizations.js +1 -1
  237. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  238. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  239. package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs +7 -2
  240. package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
  241. package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +8 -3
  242. package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
  243. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs +12 -13
  244. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs.map +1 -1
  245. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +13 -14
  246. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js.map +1 -1
  247. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs +33 -24
  248. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs.map +1 -1
  249. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +36 -27
  250. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
  251. package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.cjs +4 -4
  252. package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.cjs.map +1 -1
  253. package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js +4 -4
  254. package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js.map +1 -1
  255. package/dist/martyrs/src/modules/products/components/elements/Price.vue.cjs +7 -5
  256. package/dist/martyrs/src/modules/products/components/elements/Price.vue.cjs.map +1 -1
  257. package/dist/martyrs/src/modules/products/components/elements/Price.vue.js +7 -5
  258. package/dist/martyrs/src/modules/products/components/elements/Price.vue.js.map +1 -1
  259. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  260. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  261. package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.cjs +1 -1
  262. package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.js +1 -1
  263. package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +2 -2
  264. package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  265. package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +57 -40
  266. package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
  267. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +59 -42
  268. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
  269. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +104 -84
  270. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs.map +1 -1
  271. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +106 -86
  272. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
  273. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.cjs +1 -1
  274. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
  275. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +1 -1
  276. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +1 -1
  277. package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.cjs +1 -1
  278. package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.js +1 -1
  279. package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs +145 -0
  280. package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs.map +1 -0
  281. package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js +145 -0
  282. package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js.map +1 -0
  283. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +1 -1
  284. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +1 -1
  285. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs +45 -30
  286. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs.map +1 -1
  287. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +50 -35
  288. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js.map +1 -1
  289. package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.cjs +43 -0
  290. package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.cjs.map +1 -0
  291. package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js +43 -0
  292. package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js.map +1 -0
  293. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +131 -0
  294. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs.map +1 -0
  295. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +131 -0
  296. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js.map +1 -0
  297. package/dist/martyrs/src/modules/products/products.client.cjs +3 -3
  298. package/dist/martyrs/src/modules/products/products.client.cjs.map +1 -1
  299. package/dist/martyrs/src/modules/products/products.client.js +3 -3
  300. package/dist/martyrs/src/modules/products/products.client.js.map +1 -1
  301. package/dist/martyrs/src/modules/products/store/products.cjs +4 -0
  302. package/dist/martyrs/src/modules/products/store/products.cjs.map +1 -1
  303. package/dist/martyrs/src/modules/products/store/products.js +4 -0
  304. package/dist/martyrs/src/modules/products/store/products.js.map +1 -1
  305. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs +1 -1
  306. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +1 -1
  307. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  308. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  309. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  310. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  311. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  312. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
  313. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +1 -1
  314. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +1 -1
  315. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
  316. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  317. package/dist/martyrs.cjs.js +1 -1
  318. package/dist/martyrs.css +1 -1
  319. package/dist/martyrs.es.js +1 -1
  320. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.cjs +1 -1
  321. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
  322. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.cjs +1 -1
  323. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
  324. package/dist/organizations.server.cjs +1 -1
  325. package/dist/organizations.server.js +1 -1
  326. package/dist/products.server.cjs +111 -34
  327. package/dist/products.server.js +111 -34
  328. package/dist/style.css +196 -170
  329. package/package.json +1 -1
  330. package/src/.martyrs/chunks.json +325 -0
  331. package/src/.martyrs/filemap.json +6802 -0
  332. package/src/.martyrs/semantic-analysis.json +307 -0
  333. package/src/.martyrs/toc.json +14 -0
  334. package/src/components/Button/Button.vue +2 -2
  335. package/src/components/Checkbox/Checkbox.vue +28 -16
  336. package/src/components/Chips/Chips.vue +4 -4
  337. package/src/components/Feed/Carousel.vue +72 -0
  338. package/src/components/Feed/Feed.vue +2 -2
  339. package/src/components/Field/Field.vue +1 -0
  340. package/src/components/PhotoViewer/PhotoViewer.vue +307 -220
  341. package/src/components/Radio/Radio.vue +2 -10
  342. package/src/components/Skeleton/Skeleton.vue +9 -12
  343. package/src/components/Slider/Slider.vue +220 -100
  344. package/src/components/Status/Status.vue +0 -1
  345. package/src/components/Tooltip/Tooltip.vue +2 -2
  346. package/src/modules/auth/views/components/pages/Profile.vue +1 -1
  347. package/src/modules/auth/views/components/pages/ProfileEdit.old.vue +189 -0
  348. package/src/modules/auth/views/components/pages/ProfileEdit.vue +19 -182
  349. package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +72 -0
  350. package/src/modules/auth/views/components/pages/ProfileEditProfile.vue +110 -0
  351. package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +28 -0
  352. package/src/modules/auth/views/router/users.js +23 -12
  353. package/src/modules/community/components/blocks/FooterBlogpost.vue +3 -3
  354. package/src/modules/community/components/pages/BlogPost.vue +2 -1
  355. package/src/modules/community/components/sections/Comment.vue +161 -57
  356. package/src/modules/community/components/sections/Comments.vue +120 -63
  357. package/src/modules/community/components/sections/HotPosts.vue +7 -7
  358. package/src/modules/events/components/sections/EventsHot.vue +26 -33
  359. package/src/modules/globals/controllers/classes/abac/abac.core.js +3 -1
  360. package/src/modules/globals/controllers/classes/abac/abac.fields.js +126 -42
  361. package/src/modules/globals/controllers/classes/abac/v2/abac-core-fixed.js +313 -0
  362. package/src/modules/globals/controllers/classes/abac/v2/abac-express-fixed.js +276 -0
  363. package/src/modules/globals/controllers/classes/abac/v2/abac-fields-fixed.js +422 -0
  364. package/src/modules/globals/controllers/classes/abac/v2/abac-main-fixed.js +295 -0
  365. package/src/modules/globals/controllers/classes/abac/v2/abac-policies-fixed.js +316 -0
  366. package/src/modules/globals/controllers/classes/abac/v2/abac-ws-fixed.js +237 -0
  367. package/src/modules/globals/globals.client.js +2 -0
  368. package/src/modules/globals/views/components/blocks/CardFooter.vue +3 -3
  369. package/src/modules/globals/views/components/blocks/CardHeader.vue +1 -1
  370. package/src/modules/globals/views/components/blocks/PopupAuth.vue +66 -0
  371. package/src/modules/globals/views/mixins/mixins.js +37 -17
  372. package/src/modules/globals/views/plugins/popup.auth.plugin.js +77 -0
  373. package/src/modules/icons/entities/IconList.vue +14 -0
  374. package/src/modules/icons/navigation/IconCheck.vue +1 -3
  375. package/src/modules/icons/navigation/IconDoubleCheck.vue +1 -3
  376. package/src/modules/icons/navigation/IconLike.vue +1 -3
  377. package/src/modules/icons/navigation/IconMute.vue +1 -3
  378. package/src/modules/icons/navigation/IconPause.vue +1 -3
  379. package/src/modules/icons/navigation/IconPlay.vue +12 -15
  380. package/src/modules/icons/navigation/IconRefresh.vue +1 -3
  381. package/src/modules/icons/navigation/IconShuffle.vue +11 -26
  382. package/src/modules/icons/navigation/IconUnMute.vue +1 -3
  383. package/src/modules/icons/navigation/IconVolume.vue +1 -3
  384. package/src/modules/icons/pages/IconsPage.vue +0 -2
  385. package/src/modules/music/components/pages/AlbumDetail.vue +2 -2
  386. package/src/modules/music/components/pages/PlaylistDetail.vue +2 -2
  387. package/src/modules/music/components/pages/TrackDetail.vue +1 -1
  388. package/src/modules/music/components/player/MusicPlayer.vue +2 -2
  389. package/src/modules/notifications/components/blocks/NotificationItem.vue +6 -51
  390. package/src/modules/notifications/components/elements/NotificationBadge.vue +53 -97
  391. package/src/modules/organizations/configs/navigation.organization.config.js +8 -4
  392. package/src/modules/products/components/blocks/CardProduct.vue +8 -2
  393. package/src/modules/products/components/blocks/ProductDiscounts.vue +3 -4
  394. package/src/modules/products/components/blocks/ProductImages.vue +32 -23
  395. package/src/modules/products/components/blocks/ProductVariants.vue +6 -4
  396. package/src/modules/products/components/elements/Price.vue +3 -3
  397. package/src/modules/products/components/pages/Product.vue +32 -26
  398. package/src/modules/products/components/pages/ProductEdit.vue +95 -72
  399. package/src/modules/products/components/sections/EditRecommended.vue +131 -0
  400. package/src/modules/products/components/sections/ProductConfigurator.vue +35 -21
  401. package/src/modules/products/components/sections/ProductsPopular.vue +44 -0
  402. package/src/modules/products/components/sections/ProductsRecommended.vue +134 -0
  403. package/src/modules/products/controllers/configs/products.lookup.config.js +20 -15
  404. package/src/modules/products/controllers/products.controller.js +7 -22
  405. package/src/modules/products/models/category.model.js +28 -1
  406. package/src/modules/products/models/leftover.model.js +32 -0
  407. package/src/modules/products/models/product.model.js +37 -1
  408. package/src/modules/products/models/variant.model.js +35 -0
  409. package/src/modules/products/products.client.js +3 -3
  410. package/src/modules/products/routes/products.routes.js +1 -0
  411. package/src/modules/products/store/products.js +4 -0
  412. package/src/styles/base/all.scss +0 -38
  413. package/src/styles/base/shadow_transitions_hover_refactor.scss +20 -51
  414. package/src/styles/config.scss +51 -1
  415. package/dist/main-C75EcBpE.cjs +0 -11
  416. package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +0 -1
  417. package/dist/martyrs/src/components/Chips/Chips.vue.js.map +0 -1
  418. package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +0 -1
  419. package/dist/martyrs/src/components/Menu/Menu.vue.js.map +0 -1
  420. package/dist/martyrs/src/components/Popup/Popup.vue.js.map +0 -1
  421. package/dist/martyrs/src/components/Slider/Slider.native.vue.cjs.map +0 -1
  422. package/dist/martyrs/src/components/Slider/Slider.native.vue.js.map +0 -1
  423. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +0 -2
  424. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +0 -1
  425. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +0 -2
  426. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +0 -1
  427. package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.cjs +0 -34
  428. package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.cjs.map +0 -1
  429. package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.js +0 -34
  430. package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.js.map +0 -1
  431. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs +0 -124
  432. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs.map +0 -1
  433. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js +0 -124
  434. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js.map +0 -1
  435. package/src/components/Slider/Slider.native.vue +0 -313
  436. package/src/modules/products/components/sections/PopularProducts.vue +0 -156
@@ -1,68 +1,77 @@
1
1
  <template>
2
- <div>
3
- <CardHeader
4
- class="mn-b-thin w-100"
5
- :entity="comment"
6
- :entityType="'comment'"
7
- :user="owner"
8
- :owner="{target: comment.owner, type: 'user'}"
9
- :creator="{target: comment.owner, type: 'user'}"
10
- :date="comment.createdAt"
11
- />
12
- <div class="pd-t-zero">
13
- <p class="p-medium">{{ comment.content }}</p>
14
- </div>
15
-
16
- <div class="mn-t-thin flex-v-center flex-nowrap flex gap-small">
17
-
18
- <button
19
- v-if="totalReplies > 0"
20
- @click="toggleChildren"
21
- class="t-second cursor-pointer t-medium font-second"
22
- >
23
- {{ isExpanded ? 'Hide' : totalReplies + (totalReplies === 1 ? ' reply' : ' replies') }}
24
- </button>
25
-
26
- <button
27
- v-if="owner"
28
- class="font-second cursor-pointer t-transp t-medium"
29
- @click="showReplyForm = true"
30
- >
31
- Reply
32
- </button>
33
-
34
- </div>
35
-
36
- <div v-if="showReplyForm" class="mn-t-small bg-white pd-thin radius-regular">
2
+ <div class="comment-wrapper">
3
+ <div class="comment-content ">
4
+ <CardHeader
5
+ class="mn-b-thin mn-b-thin w-100"
6
+ :entity="comment"
7
+ :entityType="'comment'"
8
+ :user="owner"
9
+ :owner="{target: comment.owner, type: 'user'}"
10
+ :creator="{target: comment.owner, type: 'user'}"
11
+ :date="comment.createdAt"
12
+ />
13
+ <div class="pd-t-zero">
14
+ <p class="p-medium">{{ comment.content }}</p>
15
+ </div>
16
+ <div class="mn-t-thin flex-v-center flex-nowrap flex gap-small">
17
+ <button
18
+ v-if="totalReplies > 0"
19
+ @click="toggleChildren"
20
+ class="t-second cursor-pointer t-medium font-second"
21
+ >
22
+ {{ isExpanded ? 'Hide' : totalReplies + (totalReplies === 1 ? ' reply' : ' replies') }}
23
+ </button>
24
+ <button
25
+ v-if="owner"
26
+ class="font-second cursor-pointer t-transp t-medium"
27
+ @click="showReplyForm = true"
28
+ >
29
+ Reply
30
+ </button>
31
+ </div>
32
+ <div v-if="showReplyForm" class="mn-t-small bg-white pd-thin radius-regular">
37
33
  <textarea class="w-100" v-model="replyContent"></textarea>
38
34
  <div class="mn-l-auto gap-thin flex-nowrap flex">
39
- <button class="bg-grey-transp-25 pd-r-regular pd-l-regular pd-thin button" @click="submitReply">Cancel</button>
35
+ <button class="bg-grey-transp-25 pd-r-regular pd-l-regular pd-thin button" @click="showReplyForm = false">Cancel</button>
40
36
  <button class="bg-main pd-r-regular pd-l-regular pd-thin button" @click="submitReply">Send</button>
41
37
  </div>
42
38
  </div>
43
-
44
- <div v-if="isExpanded && comment.children && comment.children.length" class="br-solid br-l br-grey-transp-25">
45
- <Comment
46
- v-for="childComment in comment.children"
47
- :key="childComment._id"
48
- :comment="childComment"
49
- :target="target"
50
- :owner="owner"
51
- @reply="handleReply"
52
- @load-more="handleLoadMore"
53
- class="mn-l-medium mn-t-small "
54
- />
55
39
  </div>
56
-
40
+
41
+ <transition name="collapse">
42
+ <div v-if="isExpanded && comment.children && comment.children.length" class="mn-t-regular comment-children">
43
+ <div
44
+ v-for="(childComment, index) in comment.children"
45
+ :key="childComment._id"
46
+ class="child-wrapper"
47
+ >
48
+ <!-- Кликабельная область с линией -->
49
+ <div
50
+ @click="toggleChildren"
51
+ @mouseenter="highlightLevel($event, true)"
52
+ @mouseleave="highlightLevel($event, false)"
53
+ class="tree-line cursor-pointer"
54
+ :class="{ 'last-child': index === comment.children.length - 1 }"
55
+ ></div>
56
+
57
+ <Comment
58
+ :comment="childComment"
59
+ :target="target"
60
+ :owner="owner"
61
+ @reply="handleReply"
62
+ @load-more="handleLoadMore"
63
+ class="child-comment mn-b-regular"
64
+ />
65
+ </div>
66
+ </div>
67
+ </transition>
57
68
  </div>
58
69
  </template>
59
70
 
60
71
  <script setup>
61
72
  import { ref, computed } from 'vue';
62
-
63
73
  import Comment from './Comment.vue';
64
-
65
- import CardHeader from '@martyrs/src/modules/globals/views/components/blocks/CardHeader.vue'
74
+ import CardHeader from '@martyrs/src/modules/globals/views/components/blocks/CardHeader.vue'
66
75
 
67
76
  const props = defineProps({
68
77
  comment: {
@@ -85,6 +94,17 @@ const showReplyForm = ref(false);
85
94
  const replyContent = ref('');
86
95
  const isExpanded = ref(shouldBeExpanded(props.comment.depth))
87
96
 
97
+
98
+ const childrenContainer = ref(null)
99
+
100
+ function highlightLevel(event, state) {
101
+ const wrapper = event.currentTarget?.parentElement?.parentElement;
102
+ if (!wrapper) return;
103
+
104
+ const lines = wrapper.querySelectorAll(':scope > .child-wrapper > .tree-line');
105
+ lines.forEach(line => line.classList.toggle('hovered', state));
106
+ }
107
+
88
108
  function shouldBeExpanded(depth) {
89
109
  return depth % 3 < 2
90
110
  }
@@ -113,11 +133,95 @@ const handleReply = (parentId, content) => {
113
133
  emit('reply', parentId, content);
114
134
  };
115
135
 
116
- const loadMoreChildren = () => {
117
- emit('load-more', props.comment._id, props.comment.depth + 1);
118
- };
119
-
120
136
  const handleLoadMore = (commentId, depth) => {
121
137
  emit('load-more', commentId, depth);
122
138
  };
123
- </script>
139
+ </script>
140
+
141
+ <style lang="scss" scoped>
142
+ .comment-children {
143
+ margin-top: 1rem;
144
+ }
145
+
146
+ .child-wrapper {
147
+ position: relative;
148
+ }
149
+
150
+ .child-comment {
151
+ padding-left: 1.5rem;
152
+ }
153
+
154
+ .tree-line {
155
+ position: absolute;
156
+ left: calc(-1rem + 2px);
157
+ top: -1rem;
158
+ width: 2rem;
159
+ height: calc(100% + 2rem);
160
+ }
161
+
162
+ .tree-line::before {
163
+ content: '';
164
+ position: absolute;
165
+ left: 1rem;
166
+ top: 0;
167
+ width: 2px;
168
+ height: 100%;
169
+ border-left: 1px solid rgba(var(--grey), 1);
170
+ transition: background 0.2s ease;
171
+ }
172
+
173
+ .tree-line::after {
174
+ content: '';
175
+ position: absolute;
176
+ left: 1rem;
177
+ top: 2rem;
178
+ width: 1rem;
179
+ height: 2px;
180
+ border-bottom: 1px solid rgba(var(--grey), 1);
181
+ transition: background 0.2s ease;
182
+
183
+ }
184
+
185
+ .child-wrapper {
186
+ &:last-child {
187
+ .tree-line::after {
188
+ display: none;
189
+ }
190
+ }
191
+ }
192
+
193
+ .tree-line.last-child::before {
194
+ height: 2rem;
195
+ border-bottom-left-radius: 0.5rem;
196
+ border-left: 1px solid rgba(var(--grey), 1);
197
+ border-bottom: 1px solid rgba(var(--grey), 1);
198
+ background: none;
199
+ width: 1rem;
200
+ }
201
+
202
+
203
+ .tree-line.hovered::before,
204
+ .tree-line.hovered::after {
205
+ border-color: rgba(var(--second), 1);
206
+ }
207
+
208
+ .tree-line.last-child.hovered::before {
209
+ border-color: rgba(var(--second), 1);
210
+ }
211
+
212
+ /* Анимация */
213
+ .collapse-enter-active,
214
+ .collapse-leave-active {
215
+ transition: all 0.3s ease;
216
+ }
217
+
218
+ .collapse-enter-from {
219
+ opacity: 0;
220
+ transform: translateY(-0.5rem);
221
+ }
222
+
223
+ .collapse-leave-to {
224
+ opacity: 0;
225
+ transform: translateY(-0.5rem);
226
+ }
227
+ </style>
@@ -1,50 +1,72 @@
1
1
  <template>
2
2
  <div id="comments">
3
3
  <div class="mn-b-medium">
4
- <h3 class="mn-b-small">{{ comments.length }} comments</h3>
5
-
6
- <div @click="$router.push({name: 'Sign In'})" class="pd-big cursor-pointer mn-b-small bg-black t-white flex-center flex radius-big" v-if="!owner">
7
- <p class="t-semi uppercase">Please log in to leave a comment.</p>
8
- </div>
9
-
10
- <div class="mn-b-small" v-if="owner">
11
- <form @submit.prevent="submitComment" class="bg-light radius-medium pd-medium">
12
- <textarea v-model="commentContent" placeholder="Enter your comment" class="p-big w-100"></textarea>
13
- <button type="submit" class="mn-l-auto bg-main pd-r-regular pd-l-regular pd-thin button">Send</button>
4
+
5
+ <h3 class="mn-b-regular">{{ comments.length }} comments</h3>
6
+
7
+ <div class="mn-b-small">
8
+ <form @submit.prevent="handleCommentSubmit" class="bg-white radius-medium pd-medium">
9
+ <textarea
10
+ v-model="commentContent"
11
+ placeholder="Enter your comment"
12
+ class="p-big w-100"
13
+ style="resize: none;"
14
+ ></textarea>
15
+ <button type="submit" class="mn-l-auto bg-main pd-r-regular pd-l-regular pd-thin button">
16
+ Send
17
+ </button>
14
18
  </form>
15
19
  </div>
16
20
  </div>
17
21
 
18
- <Comment
19
- v-for="comment in comments"
20
- :key="comment._id"
21
- :comment="comment"
22
- :target="target"
23
- :type="type"
24
- :owner="owner"
25
- @reply="handleReply"
26
- @load-more="loadMoreChildren"
27
- class="comment bg-light pd-medium mn-b-small radius-medium"
28
- />
22
+ <Comment
23
+ v-for="comment in comments"
24
+ :key="comment._id"
25
+ :comment="comment"
26
+ :target="target"
27
+ :type="type"
28
+ :owner="owner"
29
+ @reply="handleReply"
30
+ @load-more="loadMoreChildren"
31
+ class="comment mn-b-medium"
32
+ />
29
33
  </div>
30
34
  </template>
31
35
 
32
- <script setup="props">
33
- import { ref } from 'vue';
34
- import axios from 'axios';
36
+ <script setup>
37
+ import { ref, onMounted, getCurrentInstance } from 'vue';
38
+ import { useRoute } from 'vue-router';
39
+ import { Preferences } from '@capacitor/preferences';
35
40
 
36
41
  import Comment from './Comment.vue';
42
+ import $axios from '@martyrs/src/modules/globals/views/utils/axios-instance.js';
37
43
 
38
44
  const props = defineProps([
39
45
  'target',
40
46
  'owner',
41
47
  'type'
42
- ])
48
+ ]);
49
+
50
+ const route = useRoute();
51
+ const { proxy } = getCurrentInstance();
43
52
 
44
- const $axios = axios.create({ baseURL: process.env.API_URL });
45
53
  const comments = ref([]);
46
54
  const commentContent = ref('');
47
55
 
56
+ const DRAFT_KEY = `comment_draft_${props.type}_${props.target}`;
57
+
58
+ // Загружаем сохраненный черновик при монтировании
59
+ onMounted(async () => {
60
+ // Проверяем наличие черновика
61
+ const { value } = await Preferences.get({ key: DRAFT_KEY });
62
+
63
+ if (value) {
64
+ commentContent.value = value;
65
+ // Очищаем черновик после загрузки
66
+ await Preferences.remove({ key: DRAFT_KEY });
67
+ }
68
+ });
69
+
48
70
  const fetchComments = async () => {
49
71
  try {
50
72
  const response = await $axios.get('/comments/read', {
@@ -62,7 +84,78 @@ const fetchComments = async () => {
62
84
  }
63
85
  };
64
86
 
87
+ const handleCommentSubmit = async () => {
88
+ if (!commentContent.value) {
89
+ return;
90
+ }
91
+
92
+ // Проверяем авторизацию
93
+ if (!props.owner) {
94
+ // Сохраняем черновик
95
+ await Preferences.set({
96
+ key: DRAFT_KEY,
97
+ value: commentContent.value
98
+ });
99
+
100
+ // Показываем auth popup
101
+ await proxy.$showAuth({
102
+ title: 'Join the discussion',
103
+ subtitle: 'To comment on this post, please sign in or create an account.',
104
+ returnUrl: route.fullPath
105
+ });
106
+
107
+ return;
108
+ }
109
+
110
+ // Отправляем комментарий
111
+ await submitComment();
112
+ };
113
+
114
+ const submitComment = async () => {
115
+ try {
116
+ const response = await $axios.post('/comments/create', {
117
+ target: props.target,
118
+ user: props.owner,
119
+ type: props.type,
120
+ content: commentContent.value,
121
+ creator: {
122
+ target: props.owner,
123
+ type: 'User',
124
+ hidden: false
125
+ },
126
+ owner: {
127
+ target: props.owner,
128
+ type: 'User'
129
+ }
130
+ });
131
+
132
+ response.data.owner = props.owner;
133
+ comments.value.push(response.data);
134
+
135
+ commentContent.value = '';
136
+ } catch (error) {
137
+ console.error(error);
138
+ }
139
+ };
140
+
65
141
  const handleReply = async (parentId, content) => {
142
+ // Проверяем авторизацию для ответов
143
+ if (!props.owner) {
144
+ // Сохраняем черновик ответа
145
+ await Preferences.set({
146
+ key: `${DRAFT_KEY}_reply_${parentId}`,
147
+ value: content
148
+ });
149
+
150
+ await proxy.$showAuth({
151
+ title: 'Join the discussion',
152
+ subtitle: 'To reply to this comment, please sign in or create an account.',
153
+ returnUrl: route.fullPath
154
+ });
155
+
156
+ return;
157
+ }
158
+
66
159
  try {
67
160
  const response = await $axios.post('/comments/create', {
68
161
  content,
@@ -83,8 +176,6 @@ const handleReply = async (parentId, content) => {
83
176
  });
84
177
 
85
178
  const newComment = response.data;
86
-
87
- // Обновляем дерево комментариев
88
179
  updateCommentTree(comments.value, parentId, newComment);
89
180
  } catch (error) {
90
181
  console.error('Error posting reply:', error);
@@ -104,7 +195,6 @@ const loadMoreChildren = async (commentId, depth) => {
104
195
  }
105
196
  });
106
197
 
107
- // Обновляем дерево комментариев
108
198
  updateCommentTree(comments.value, commentId, response.data, response.data.hasMore, true);
109
199
  } catch (error) {
110
200
  console.error('Error loading more comments:', error);
@@ -115,11 +205,9 @@ const updateCommentTree = (comments, parentId, newData, hasMore, isLoadMore = fa
115
205
  for (let i = 0; i < comments.length; i++) {
116
206
  if (comments[i]._id === parentId) {
117
207
  if (isLoadMore) {
118
- // Для загрузки дополнительных комментариев, добавляем их к существующим
119
208
  comments[i].children = [...comments[i].children, ...newData];
120
209
  comments[i].hasMore = hasMore;
121
210
  } else {
122
- // Для нового комментария, добавляем его в начало списка дочерних
123
211
  comments[i].children.push(newData);
124
212
  }
125
213
  return true;
@@ -131,36 +219,5 @@ const updateCommentTree = (comments, parentId, newData, hasMore, isLoadMore = fa
131
219
  return false;
132
220
  };
133
221
 
134
-
135
- const submitComment = async () => {
136
- if (!commentContent.value) {
137
- return;
138
- }
139
- try {
140
- const response = await $axios.post('/comments/create', {
141
- target: props.target,
142
- user: props.owner,
143
- type: props.type,
144
- content: commentContent.value,
145
- creator: {
146
- target: props.owner,
147
- type: 'User',
148
- hidden: false
149
- },
150
- owner: {
151
- target: props.owner,
152
- type: 'User'
153
- }
154
- });
155
-
156
- response.data.owner = props.owner;
157
- comments.value.push(response.data);
158
-
159
- commentContent.value = '';
160
- } catch (error) {
161
- console.error(error);
162
- }
163
- };
164
-
165
222
  fetchComments();
166
- </script>
223
+ </script>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <Slider
2
+ <Carousel
3
3
  :store="{
4
4
  read: (options) => blog.read({
5
5
  skip,
@@ -29,13 +29,12 @@
29
29
  :hideDescription="true"
30
30
  class="bg-white flex flex-column radius-medium h-35r"
31
31
  />
32
- </Slider>
32
+ </Carousel>
33
33
  </template>
34
34
 
35
35
  <script setup>
36
- import { ref, onMounted, defineProps } from 'vue'
37
- import Feed from '@martyrs/src/components/Feed/Feed.vue'
38
- import Slider from '@martyrs/src/components/Slider/Slider.native.vue'
36
+ import { defineProps } from 'vue'
37
+ import Carousel from '@martyrs/src/components/Feed/Carousel.vue'
39
38
  import CardBlogpost from '@martyrs/src/modules/community/components/blocks/CardBlogpost.vue'
40
39
  import * as blog from '@martyrs/src/modules/community/store/blogposts.js'
41
40
  import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
@@ -64,11 +63,12 @@ const props = defineProps({
64
63
  </script>
65
64
 
66
65
  <style lang="scss">
67
- .slider-hotpost .carousel__slide {
66
+ .slider-hotpost :deep(.carousel__slide ) {
68
67
  flex: 0 0 25%;
69
68
  }
69
+
70
70
  @media screen and (max-width: 1025px) {
71
- .slider-hotpost .carousel__slide {
71
+ .slider-hotpost :deep(.carousel__slide ) {
72
72
  flex: 0 0 75%;
73
73
  }
74
74
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <SliderNative
2
+ <Carousel
3
3
  :store="{
4
4
  read: (options) => events.read({
5
5
  skip,
@@ -13,45 +13,38 @@
13
13
  description: 'Currently, there are no featured events available.'
14
14
  }
15
15
  }"
16
- v-slot="{
17
- item
18
- }"
19
16
  class="slider-hotpost flex-child-default"
20
17
  >
21
-
22
- <router-link
23
- :to="{name: 'Event', params: {url: item.url}}"
24
- class="cursor-pointer pos-relative flex flex-justify-end flex-column h-25r bg-semi radius-medium o-hidden pd-medium t-white bg-dark"
25
- >
26
- <Media
27
- :url="(FILE_SERVER_URL || '') + item.cover"
28
- class="pos-absolute pos-t-0 pos-r-0 z-index-1 w-100 h-100 object-fit-cover bg-light"
29
- />
30
-
31
- <div class="pos-relative z-index-2">
32
- <h3
33
- class="mn-b-small"
34
- >
35
- {{ item.name }}
36
- </h3>
37
- <span v-if="item.date?.start" class="mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-white">
38
- <span class="t-semi t-black" >
39
- {{item.location}} / {{formatDate(item.date.start, { language: $i18n.locale, monthName: true, })}}
40
- </span>
41
- </span>
42
- </div>
43
- </router-link>
44
-
45
- </SliderNative>
18
+ <template v-slot="{ item }">
19
+ <router-link
20
+ :to="{name: 'Event', params: {url: item.url}}"
21
+ class="cursor-pointer pos-relative flex flex-justify-end flex-column h-25r bg-semi radius-medium o-hidden pd-medium t-white bg-dark"
22
+ >
23
+ <Media
24
+ :url="(FILE_SERVER_URL || '') + item.cover"
25
+ class="pos-absolute pos-t-0 pos-r-0 z-index-1 w-100 h-100 object-fit-cover bg-light"
26
+ />
27
+ <div class="pos-relative z-index-2">
28
+ <h3
29
+ class="mn-b-small"
30
+ >
31
+ {{ item.name }}
32
+ </h3>
33
+ <span v-if="item.date?.start" class="mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-white">
34
+ <span class="t-semi t-black" >
35
+ {{item.location}} / {{formatDate(item.date.start, { language: $i18n.locale, monthName: true, })}}
36
+ </span>
37
+ </span>
38
+ </div>
39
+ </router-link>
40
+ </template>
41
+ </Carousel>
46
42
  </template>
47
43
 
48
44
  <script setup>
49
45
  import { ref, onMounted, defineProps } from 'vue'
50
-
51
- import Feed from '@martyrs/src/components/Feed/Feed.vue'
52
- import SliderNative from '@martyrs/src/components/Slider/Slider.native.vue'
46
+ import Carousel from '@martyrs/src/components/Feed/Carousel.vue'
53
47
  import Media from '@martyrs/src/components/Media/Media.vue'
54
-
55
48
  import * as events from '@martyrs/src/modules/events/store/events.js';
56
49
  import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
57
50
 
@@ -16,8 +16,10 @@ export default class ABACCore {
16
16
  req: null,
17
17
  socket: null,
18
18
  params: {},
19
- _cache: new Map(), // Кэш результатов политик для этого контекста
19
+ _cache: new Map(),
20
20
  _abac: this.abac,
21
+ // Добавляем флаг для пропуска field policies (например, для админов)
22
+ skipFieldPolicies: input.skipFieldPolicies || false,
21
23
  };
22
24
 
23
25
  if (input.req) {