@ozdao/prometheus-framework 0.1.36 → 0.1.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (342) hide show
  1. package/dist/BackofficeGallery-568b55bb.js +1 -0
  2. package/dist/BackofficeGallery-b4105137.mjs +306 -0
  3. package/dist/BlockTags-8cddaef7.js +1 -0
  4. package/dist/BlockTags-ee310572.mjs +853 -0
  5. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  6. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  7. package/dist/Button-7643c9aa.js +1 -0
  8. package/dist/Button-9e1a9284.mjs +226 -0
  9. package/dist/ButtonToggleMembership-15f149cb.js +1 -0
  10. package/dist/ButtonToggleMembership-3bb9139e.mjs +90 -0
  11. package/dist/CardBlogpost-38016b80.mjs +246 -0
  12. package/dist/CardBlogpost-cc208f93.js +1 -0
  13. package/dist/CardOrganization-d93c9bdb.js +1 -0
  14. package/dist/CardOrganization-e920be73.mjs +234 -0
  15. package/dist/CardProduct-92affca1.js +1 -0
  16. package/dist/CardProduct-fca53299.mjs +193 -0
  17. package/dist/Checkbox-5dbe7b23.mjs +62 -0
  18. package/dist/Checkbox-76f09248.js +1 -0
  19. package/dist/Chips-9d81b215.mjs +214 -0
  20. package/dist/Chips-d47704e6.js +1 -0
  21. package/dist/Community-87522a04.mjs +132 -0
  22. package/dist/Community-aef23aee.js +1 -0
  23. package/dist/Dashboard-91d73bc5.js +1 -0
  24. package/dist/Dashboard-ea9035bc.mjs +152 -0
  25. package/dist/Dropdown-31115457.js +1 -0
  26. package/dist/Dropdown-cab3605b.mjs +146 -0
  27. package/dist/EULA-aba6a807.js +1 -0
  28. package/dist/EditOrder-94bbebff.mjs +221 -0
  29. package/dist/EditOrder-c070d474.js +1 -0
  30. package/dist/EmptyState-d65bab5b.js +1 -0
  31. package/dist/EmptyState-e404b05d.mjs +36 -0
  32. package/dist/Events-cdfbca78.js +1 -0
  33. package/dist/Events-e9dd58f7.mjs +123 -0
  34. package/dist/Feed-22464fcd.js +1 -0
  35. package/dist/Feed-6e96d3dd.mjs +124 -0
  36. package/dist/Feed-793b3eef.mjs +146 -0
  37. package/dist/Feed-7b80704d.mjs +361 -0
  38. package/dist/Feed-98b47c6f.js +1 -0
  39. package/dist/Feed-b30ef609.js +1 -0
  40. package/dist/Feed-c5d4390a.js +1 -0
  41. package/dist/Feed-d114330c.mjs +112 -0
  42. package/dist/Field-e2a43424.js +1 -0
  43. package/dist/Field-e5ad88d3.mjs +75 -0
  44. package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
  45. package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
  46. package/dist/IconChevronRight-a55f838e.js +1 -0
  47. package/dist/IconChevronRight-fae9d012.mjs +28 -0
  48. package/dist/IconCommunity-468dc457.mjs +65 -0
  49. package/dist/IconCommunity-b339e806.js +1 -0
  50. package/dist/IconCross-5bf93179.js +1 -0
  51. package/dist/IconCross-84cb1292.mjs +28 -0
  52. package/dist/IconEdit-9edfd74d.mjs +21 -0
  53. package/dist/IconEdit-c0469b45.js +1 -0
  54. package/dist/Image-245c003d.mjs +480 -0
  55. package/dist/Image-35d31936.js +9 -0
  56. package/dist/LabelGooglePlay-24feb437.mjs +31 -0
  57. package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
  58. package/dist/LeftoverAdd-08d9fb54.mjs +228 -0
  59. package/dist/LeftoverAdd-fc673884.js +1 -0
  60. package/dist/Leftovers-296c0042.js +1 -0
  61. package/dist/Leftovers-685d9f19.mjs +136 -0
  62. package/dist/Loader-21f016da.js +1 -0
  63. package/dist/Loader-cd422786.mjs +41 -0
  64. package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  65. package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  66. package/dist/Members-2cb2ff58.mjs +114 -0
  67. package/dist/Members-85534d1f.js +1 -0
  68. package/dist/Menu-b5d6a0c7.js +1 -0
  69. package/dist/Menu-dd7645c1.mjs +13 -0
  70. package/dist/MenuItem-56ae7f94.js +1 -0
  71. package/dist/MenuItem-6296d02f.mjs +63 -0
  72. package/dist/Orders-b64e8cb9.js +1 -0
  73. package/dist/Orders-ff30db05.mjs +75 -0
  74. package/dist/Organizations-0cb37d68.js +1 -0
  75. package/dist/Organizations-d6ef2113.mjs +73 -0
  76. package/dist/Payments-53e5fecf.js +1 -0
  77. package/dist/Payments-82e545e1.mjs +87 -0
  78. package/dist/PlaceholderUserpic-47f6f319.js +1 -0
  79. package/dist/Popup-0915427c.mjs +74 -0
  80. package/dist/Popup-795f5c88.js +1 -0
  81. package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  82. package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  83. package/dist/Product-5994a8c9.mjs +653 -0
  84. package/dist/Product-68fa1e9e.js +7 -0
  85. package/dist/ProductEdit-64207814.mjs +296 -0
  86. package/dist/ProductEdit-a434240f.js +1 -0
  87. package/dist/ProductsBackoffice-0c93f9b6.js +1 -0
  88. package/dist/ProductsBackoffice-3d987c60.mjs +86 -0
  89. package/dist/ProfileBlogposts-0b81d964.js +1 -0
  90. package/dist/ProfileBlogposts-b59992cf.mjs +79 -0
  91. package/dist/ProfileEvents-3f7ca2c1.js +1 -0
  92. package/dist/ProfileEvents-bbdd62e7.mjs +70 -0
  93. package/dist/ProfileOrganizations-4734c02e.mjs +73 -0
  94. package/dist/ProfileOrganizations-d55ee487.js +1 -0
  95. package/dist/Publics-0762210a.js +1 -0
  96. package/dist/Publics-660e851c.mjs +45 -0
  97. package/dist/SelectMulti-58704d69.mjs +1038 -0
  98. package/dist/SelectMulti-c25765cf.js +1 -0
  99. package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
  100. package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
  101. package/dist/SkeletonEvent-8690422d.mjs +16 -0
  102. package/dist/SkeletonEvent-eb284de8.js +1 -0
  103. package/dist/SkeletonEventShort-6c9e3940.js +1 -0
  104. package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
  105. package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
  106. package/dist/SkeletonOrganization-8690422d.mjs +16 -0
  107. package/dist/Socials-31c06635.mjs +74 -0
  108. package/dist/Socials-cceaeaf2.js +1 -0
  109. package/dist/Tab-054b61f7.mjs +46 -0
  110. package/dist/Tab-2c1e4224.js +1 -0
  111. package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  112. package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  113. package/dist/addMembersQuantity-7147aa4a.js +89 -0
  114. package/dist/addMembersQuantity-eac999f0.mjs +90 -0
  115. package/dist/auth-06d35b82.js +7 -0
  116. package/dist/auth-ec618cb3.mjs +627 -0
  117. package/dist/auth.client.cjs +7 -7
  118. package/dist/auth.client.js +22 -19
  119. package/dist/auth.server.js +1 -1
  120. package/dist/auth.server.mjs +1 -1
  121. package/dist/auth.validation-0ce9e326.js +1 -0
  122. package/dist/auth.validation-ba3606bf.mjs +24 -0
  123. package/dist/backoffice.client.cjs +1 -1
  124. package/dist/backoffice.client.js +235 -59
  125. package/dist/categories-82b28618.js +1 -0
  126. package/dist/categories-df3240a7.mjs +122 -0
  127. package/dist/community.client.cjs +1 -1
  128. package/dist/community.client.js +233 -227
  129. package/dist/community.server.js +217 -189
  130. package/dist/community.server.mjs +217 -189
  131. package/dist/components/Field/Field.vue.d.ts +58 -2
  132. package/dist/components/Field/Field.vue.d.ts.map +1 -1
  133. package/dist/components/UploadImage/UploadImage.vue.d.ts +1 -1
  134. package/dist/dribbble-8e8e169b.js +1 -0
  135. package/dist/dribbble-ae37c2ac.mjs +127 -0
  136. package/dist/events.client.cjs +2 -2
  137. package/dist/events.client.js +1793 -1888
  138. package/dist/events.server.js +100 -210
  139. package/dist/events.server.mjs +100 -210
  140. package/dist/globals.server.js +1 -1
  141. package/dist/globals.server.mjs +1 -1
  142. package/dist/icons.client.cjs +1 -0
  143. package/dist/icons.client.js +84 -0
  144. package/dist/inputs.validation-d7cef32b.js +1 -0
  145. package/dist/inputs.validation-db65277a.mjs +83 -0
  146. package/dist/landing.client.cjs +1 -1
  147. package/dist/landing.client.js +40 -64
  148. package/dist/leftovers-66951de6.js +1 -0
  149. package/dist/leftovers-be37c7a5.mjs +67 -0
  150. package/dist/legal.client.cjs +1 -1
  151. package/dist/legal.client.js +7 -4
  152. package/dist/mailing-76895d59.mjs +50 -0
  153. package/dist/mailing-9659b3c4.js +49 -0
  154. package/dist/main.css +1 -1
  155. package/dist/memberships-12210953.mjs +68 -0
  156. package/dist/memberships-393765d8.js +1 -0
  157. package/dist/metadata.schema-147f9902.mjs +212 -0
  158. package/dist/metadata.schema-93397f9f.js +211 -0
  159. package/dist/metadata.schema-a539dd65.mjs +210 -0
  160. package/dist/metadata.schema-e4fe5c57.js +209 -0
  161. package/dist/modules/community/components/blocks/FooterBlogpost.vue.d.ts +1 -1
  162. package/dist/modules/community/components/sections/Feed.vue.d.ts +4 -3
  163. package/dist/modules/events/components/sections/Feed.vue.d.ts +4 -4
  164. package/dist/modules/events/components/sections/List.vue.d.ts +3 -3
  165. package/dist/modules/globals/components/blocks/CardFooter.vue.d.ts +8 -0
  166. package/dist/modules/globals/components/blocks/CardHeader.vue.d.ts +15 -0
  167. package/dist/modules/globals/components/sections/Feed.vue.d.ts +69 -0
  168. package/dist/modules/orders/components/pages/EditOrder.vue.d.ts +6 -0
  169. package/dist/modules/orders/components/pages/Favorites.vue.d.ts +6 -0
  170. package/dist/modules/orders/components/pages/History.vue.d.ts +6 -0
  171. package/dist/modules/orders/components/pages/Orders.vue.d.ts +2 -0
  172. package/dist/modules/orders/components/pages/ViewOrder.vue.d.ts +6 -0
  173. package/dist/modules/orders/components/sections/Form.vue.d.ts +1 -0
  174. package/dist/modules/organizations/components/blocks/CardDepartment.vue.d.ts +7 -0
  175. package/dist/modules/organizations/components/blocks/User.vue.d.ts +1 -1
  176. package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +1 -1
  177. package/dist/modules/organizations/components/pages/Members.vue.d.ts +2 -0
  178. package/dist/modules/organizations/components/sections/Department2.vue.d.ts +7 -0
  179. package/dist/modules/organizations/components/sections/Feed.vue.d.ts +4 -4
  180. package/dist/modules/organizations/components/sections/FeedDepartments.vue.d.ts +8 -0
  181. package/dist/modules/payments/components/pages/Payments.vue.d.ts +2 -0
  182. package/dist/modules/products/components/blocks/CardLeftover.vue.d.ts +6 -0
  183. package/dist/modules/products/components/blocks/CardPosition.vue.d.ts +11 -0
  184. package/dist/modules/products/components/blocks/CardProduct.vue.d.ts +6 -0
  185. package/dist/modules/products/components/blocks/LeftoverPositions.vue.d.ts +0 -1
  186. package/dist/modules/products/components/pages/ProductsBackoffice.vue.d.ts +2 -0
  187. package/dist/modules/products/components/sections/FilterProducts.vue.d.ts +9 -0
  188. package/dist/modules/products/components/sections/SortProducts.vue.d.ts +10 -0
  189. package/dist/modules/reports/components/sections/FormReport.vue.d.ts +3 -3
  190. package/dist/modules/spots/components/blocks/CardSpot.vue.d.ts +7 -0
  191. package/dist/modules/spots/components/blocks/SpotMemberModify.vue.d.ts +11 -0
  192. package/dist/modules/spots/components/blocks/SpotSub.vue.d.ts +6 -0
  193. package/dist/modules/spots/components/pages/Spot.vue.d.ts +7 -0
  194. package/dist/modules/spots/components/pages/SpotEdit.vue.d.ts +2 -0
  195. package/dist/modules/spots/components/sections/Feed.vue.d.ts +8 -0
  196. package/dist/modules/spots/components/sections/PlaceModify.vue.d.ts +9 -0
  197. package/dist/modules/spots/components/sections/Places.vue.d.ts +9 -0
  198. package/dist/modules/wallet/components/pages/Wallet.vue.d.ts +2 -0
  199. package/dist/orders-13c10d49.mjs +85 -0
  200. package/dist/orders-37f041aa.js +1 -0
  201. package/dist/organizations-4d18a2e2.js +1 -0
  202. package/dist/organizations-6ed907e3.mjs +122 -0
  203. package/dist/organizations.client-01593e4d.js +3 -0
  204. package/dist/organizations.client-1b9fa66e.mjs +2997 -0
  205. package/dist/organizations.client.cjs +1 -1
  206. package/dist/organizations.client.js +75 -51
  207. package/dist/organizations.server.js +9 -20
  208. package/dist/organizations.server.mjs +9 -20
  209. package/dist/products-7960bbd4.js +1 -0
  210. package/dist/products-bf5783aa.mjs +108 -0
  211. package/dist/prometheus-framework.cjs.js +17 -17
  212. package/dist/prometheus-framework.es.js +771 -758
  213. package/dist/states.validation-03f7cd49.js +1 -0
  214. package/dist/states.validation-50e3a5a0.mjs +13 -0
  215. package/dist/style.css +1 -1
  216. package/dist/users.client.cjs +1 -1
  217. package/dist/users.client.js +214 -258
  218. package/dist/users.server.js +1 -1
  219. package/dist/users.server.mjs +1 -1
  220. package/package.json +2 -119
  221. package/src/components/Field/Field.vue +34 -9
  222. package/src/components/SelectMulti/SelectMulti.vue +18 -22
  223. package/src/modules/auth/store/auth.js +34 -15
  224. package/src/modules/backoffice/components/pages/Dashboard.vue +91 -0
  225. package/src/modules/backoffice/router/admin.js +0 -28
  226. package/src/modules/backoffice/router/backoffice.js +131 -4
  227. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  228. package/src/modules/community/components/pages/Blog.vue +1 -0
  229. package/src/modules/community/components/sections/Comments.vue +1 -1
  230. package/src/modules/community/components/sections/Feed.vue +6 -0
  231. package/src/modules/community/controllers/blog.controller.js +129 -285
  232. package/src/modules/community/controllers/reactions.controller.js +2 -0
  233. package/src/modules/community/controllers/utils/queryProcessor.js +56 -0
  234. package/src/modules/community/controllers/utils/queryProcessorReactions.js +63 -0
  235. package/src/modules/community/store/blogposts.js +5 -5
  236. package/src/modules/events/components/blocks/CardEvent.vue +2 -3
  237. package/src/modules/events/components/pages/Events.vue +4 -4
  238. package/src/modules/events/components/sections/Feed.vue +4 -4
  239. package/src/modules/events/components/sections/List.vue +2 -2
  240. package/src/modules/events/controllers/events.controller.js +8 -6
  241. package/src/modules/events/controllers/utils/queryProcessor.js +111 -1
  242. package/src/modules/events/models/event.model.js +0 -4
  243. package/src/modules/events/store/events.js +5 -7
  244. package/src/{components/CardHeader → modules/globals/components/blocks}/CardHeader.vue +31 -4
  245. package/src/modules/globals/components/sections/Feed.vue +136 -0
  246. package/src/modules/globals/controllers/utils/queryProcessor.js +19 -117
  247. package/src/modules/globals/models/engagement.schema.js +29 -25
  248. package/src/modules/globals/utils/mailing.js +1 -1
  249. package/src/modules/icons/icons.client.js +51 -0
  250. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
  251. package/src/modules/marketplace/components/pages/Catalog.vue +3 -4
  252. package/src/modules/marketplace/router/marketplace.js +0 -11
  253. package/src/modules/middlewares/client/auth.validation.js +1 -1
  254. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -2
  255. package/src/modules/orders/components/pages/EditOrder.vue +238 -0
  256. package/src/modules/{backoffice → orders}/components/pages/Favorites.vue +2 -2
  257. package/src/modules/orders/components/pages/Order.vue +28 -34
  258. package/src/modules/orders/components/pages/Orders.vue +90 -0
  259. package/src/modules/{backoffice/components/pages/History.vue → orders/components/pages/ViewOrder.vue} +0 -8
  260. package/src/modules/orders/components/sections/Form.vue +52 -34
  261. package/src/modules/orders/controllers/orders.controller.js +102 -72
  262. package/src/modules/orders/models/order.model.js +30 -22
  263. package/src/modules/orders/router/orders.router.js +30 -0
  264. package/src/modules/orders/routes/orders.routes.js +23 -13
  265. package/src/modules/orders/store/orders.js +67 -40
  266. package/src/modules/organizations/components/{sections/Department.vue → blocks/CardDepartment.vue} +1 -10
  267. package/src/modules/organizations/components/blocks/CardOrganization.vue +13 -9
  268. package/src/modules/organizations/components/pages/DepartmentEdit.vue +3 -3
  269. package/src/modules/organizations/components/{sections/MembersTab.vue → pages/Members.vue} +23 -8
  270. package/src/modules/organizations/components/pages/Organization.vue +80 -46
  271. package/src/modules/organizations/components/pages/Organizations.vue +45 -90
  272. package/src/modules/organizations/components/sections/{StructureTab.vue → FeedDepartments.vue} +5 -5
  273. package/src/modules/organizations/components/sections/Organizations.vue +1 -2
  274. package/src/modules/organizations/components/sections/Publics.vue +3 -2
  275. package/src/modules/organizations/controllers/organizations.controller.js +8 -21
  276. package/src/modules/organizations/controllers/organizations.new.controller.js +372 -0
  277. package/src/modules/organizations/controllers/utils/addUserStatusFields.js +53 -48
  278. package/src/modules/organizations/controllers/utils/queryProcessor.js +87 -0
  279. package/src/modules/organizations/controllers/utils/queryProcessorOrganizations.js +25 -0
  280. package/src/modules/organizations/organizations.client.js +42 -46
  281. package/src/modules/organizations/router/departments.router.js +29 -0
  282. package/src/modules/organizations/router/members.router.js +19 -0
  283. package/src/modules/organizations/router/organizations.js +12 -88
  284. package/src/modules/organizations/router/organizations.router.js +38 -0
  285. package/src/modules/organizations/router/products.router.js +24 -0
  286. package/src/modules/organizations/store/departments.js +108 -0
  287. package/src/modules/{backoffice/components/admin/Orders.vue → payments/components/pages/Payments.vue} +0 -15
  288. package/src/modules/products/components/blocks/{Leftover.vue → CardLeftover.vue} +21 -12
  289. package/src/modules/products/components/blocks/CardPosition.vue +84 -0
  290. package/src/modules/products/components/blocks/LeftoverPositions.vue +65 -136
  291. package/src/modules/products/components/pages/LeftoverAdd.vue +133 -88
  292. package/src/modules/products/components/pages/Leftovers.vue +91 -64
  293. package/src/modules/products/components/pages/Product.vue +3 -3
  294. package/src/modules/products/components/pages/Products.vue +42 -263
  295. package/src/modules/products/components/pages/ProductsBackoffice.vue +92 -0
  296. package/src/modules/products/components/sections/FilterProducts.vue +180 -0
  297. package/src/modules/products/components/sections/PopularProducts.vue +2 -2
  298. package/src/modules/products/components/sections/SectionProduct.vue +18 -3
  299. package/src/modules/products/components/sections/SortProducts.vue +76 -0
  300. package/src/modules/products/controllers/leftovers.controller.js +51 -45
  301. package/src/modules/products/controllers/modifications.controller.js +66 -0
  302. package/src/modules/products/controllers/products.controller.js +67 -111
  303. package/src/modules/products/models/leftover.model.js +12 -9
  304. package/src/modules/products/models/product.model.js +1 -0
  305. package/src/modules/products/router/products.router.js +46 -0
  306. package/src/modules/products/routes/products.routes.js +4 -9
  307. package/src/modules/products/store/leftovers.js +56 -59
  308. package/src/modules/products/store/products.js +21 -22
  309. package/src/modules/spots/components/blocks/CardSpot.vue +104 -0
  310. package/src/modules/spots/components/blocks/SpotMemberModify.vue +92 -0
  311. package/src/modules/spots/components/blocks/SpotSub.vue +24 -0
  312. package/src/modules/spots/components/pages/Map.vue +2 -2
  313. package/src/modules/spots/components/pages/Spot.vue +107 -0
  314. package/src/modules/spots/components/pages/SpotEdit.vue +319 -0
  315. package/src/modules/spots/components/sections/Feed.vue +64 -0
  316. package/src/modules/spots/controllers/spots.controller.js +83 -0
  317. package/src/modules/spots/models/spot.model.js +72 -0
  318. package/src/modules/spots/router/spots.js +34 -1
  319. package/src/modules/spots/routes/spots.routes.js +31 -0
  320. package/src/modules/spots/store/spots.js +15 -15
  321. package/src/modules/users/components/pages/Profile.vue +2 -3
  322. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  323. package/src/styles/components/block.scss +2 -4
  324. package/src/modules/backoffice/components/admin/LeftoverAdd.vue +0 -157
  325. package/src/modules/backoffice/components/admin/Leftovers.vue +0 -119
  326. package/src/modules/backoffice/components/admin/Order.vue +0 -199
  327. package/src/modules/backoffice/components/admin/Product.vue +0 -28
  328. package/src/modules/backoffice/components/admin/Products.vue +0 -82
  329. package/src/modules/backoffice/components/pages/Organizations.vue +0 -104
  330. package/src/modules/community/controllers/blog.new.controller.js +0 -290
  331. package/src/modules/organizations/components/blocks/DepartmentSubDepartmentModify.vue +0 -92
  332. package/src/modules/organizations/components/elements/ButtonFollow.vue +0 -84
  333. package/src/modules/organizations/components/pages/OrganizationsAccount.vue +0 -110
  334. package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +0 -18
  335. /package/src/{components/CardFooter → modules/globals/components/blocks}/CardFooter.vue +0 -0
  336. /package/src/modules/{orders/controllers → payments/controller}/payments.controller.js +0 -0
  337. /package/src/modules/{orders → payments}/routes/payments.routes.js +0 -0
  338. /package/src/modules/{orders → payments}/store/payments.js +0 -0
  339. /package/src/modules/products/components/blocks/{ProductCard.vue → CardProduct.vue} +0 -0
  340. /package/src/modules/{organizations → spots}/components/sections/PlaceModify.vue +0 -0
  341. /package/src/modules/{organizations → spots}/components/sections/Places.vue +0 -0
  342. /package/src/modules/{backoffice → wallet}/components/pages/Wallet.vue +0 -0
@@ -1,82 +0,0 @@
1
- <template>
2
- <!-- Toolbar -->
3
- <section class="pageheader section">
4
-
5
- <div class="mn-big title">
6
- <h1>Товары</h1>
7
- <router-link :to="'/admin/products/add'" class="i-regular pd-thin button-delete button"><img src="@/assets/icons/plus-white.svg"></router-link>
8
- <!-- <button class="button" @click="store.dispatch('products/fetchProducts')">Обновить товары</button> -->
9
- </div>
10
- </section>
11
-
12
- <div class="flex-nowrap flex product-tab-header">
13
- <button @click="changeTab('all')" :class="{'product-tab-active':data.currentTab === 'all'}"
14
- class="br-right-dark product-tab section-panel section">
15
- Все
16
- </button>
17
-
18
- <button @click="changeTab('published')" :class="{'product-tab-active':data.currentTab === 'published'}"
19
- class="br-right-dark product-tab section-panel section">
20
- Опубликованные
21
- </button>
22
-
23
- <button @click="changeTab('unpublished')" :class="{'product-tab-active':data.currentTab === 'unpublished'}"
24
- class="product-tab section-panel section">
25
- Неопубликованные
26
- </button>
27
- <button @click="changeTab('archivied')" :class="{'product-tab-active':data.currentTab === 'archivied'}"
28
- class="product-tab section-panel section">
29
- Архив
30
- </button>
31
- </div>
32
- <section class=" bg-grey section-subsection section">
33
- <ProductsSection :products="products" />
34
- </section>
35
- </template>
36
-
37
-
38
- <script setup>
39
-
40
-
41
- import { reactive, computed, onMounted, toRefs } from 'vue'
42
- import { useStore } from 'vuex'
43
- import { useRoute } from 'vue-router'
44
-
45
- import HeaderAdmin from '@pf/src/components/HeaderAdmin/HeaderAdmin.vue'
46
-
47
- import ProductsSection from '@/components/sections/ProductsSection.vue'
48
-
49
- const store = useStore()
50
- const route = useRoute()
51
-
52
-
53
- let data = reactive({currentTab: 'all'})
54
- let reactiveData = toRefs(data)
55
-
56
-
57
- function changeTab (tab) {data.currentTab = tab; console.log(data.currentTab) }
58
-
59
- await store.dispatch('products/fetchProducts')
60
-
61
-
62
- const products = computed(() => {
63
- if (data.currentTab === 'all') {
64
- return store.state.products.all.filter(function(product, index) {
65
- if (product.status !== 'archivied') return true;
66
- })
67
- } else {
68
-
69
- const filtered = store.state.products.all.filter(function(product, index) {
70
- if (product.status === data.currentTab) return true;
71
- })
72
-
73
- return filtered
74
- }
75
-
76
- })
77
-
78
- </script>
79
-
80
- <style lang="scss">
81
-
82
- </style>
@@ -1,104 +0,0 @@
1
- <template>
2
- <div class="for-transition bg-white radius-big w-100">
3
- <header class="flex-v-center flex-nowrap flex pd-semi">
4
- <h2 class="mn-r-medium">Weed dispensaries in Thailand</h2>
5
- </header>
6
-
7
- <div class="pd-semi">
8
- <EmptyState
9
- v-if="organization.state.all.length < 1"
10
- title="You Haven't Joined Any Organization Yet"
11
- description="Weeder is all about community. Join an organization or maybe you want to create your own?"
12
- action="Create organization"
13
- :callback="a = () => $router.push(`/app/organization/create/details`)"
14
- />
15
-
16
- <div v-else class="cols-3">
17
- <div
18
- v-for="organization in organization.state.all"
19
- :key="organization._id"
20
- class="mn-small radius-medium pd-medium br-2px br-solid br-grey"
21
- @click="$router.push({name: 'Organization', params: {_id: organization._id}})"
22
- >
23
- <img v-if="organization.profile.photo.length > 0" :src="(FILE_SERVER_URL || '') + organization.profile.photo" class="radius-medium mn-small i-thin" />
24
- <img v-else class="radius-medium mn-small i-thin" src="@/assets/images/avatar.svg">
25
-
26
- <p class="h4 mn-r-semi mn-small">{{organization.profile.name}}</p>
27
-
28
- <svg @click.stop="$router.push({name: 'Organization Edit', params: {_id: organization._id}})" class="t-transp hover-scale-1 z-index-1 pos-absolute pos-t-regular pos-r-regular i-medium" width="13" height="12" viewBox="0 0 13 12" xmlns="http://www.w3.org/2000/svg">
29
- <path fill="black" d="M6.41357 11.979C9.6831 11.979 12.3901 9.26611 12.3901 6.00244C12.3901 2.73291 9.67724 0.0258789 6.40771 0.0258789C3.14404 0.0258789 0.437008 2.73291 0.437008 6.00244C0.437008 9.26611 3.1499 11.979 6.41357 11.979ZM6.41357 10.9829C3.64795 10.9829 1.43896 8.76807 1.43896 6.00244C1.43896 3.23682 3.64209 1.02197 6.40771 1.02197C9.17334 1.02197 11.3882 3.23682 11.394 6.00244C11.3999 8.76807 9.1792 10.9829 6.41357 10.9829ZM8.72802 4.36182L9.1499 3.93408C9.3374 3.74072 9.35498 3.52979 9.1792 3.34814L9.04443 3.21924C8.86865 3.0376 8.65185 3.06104 8.46435 3.24854L8.03662 3.67041L8.72802 4.36182ZM4.53271 8.53955L8.37646 4.71338L7.68505 4.02197L3.84716 7.84814L3.51318 8.62158C3.45459 8.76807 3.59521 8.89697 3.72412 8.8501L4.53271 8.53955Z" />
30
- </svg>
31
-
32
- <p class="t-black p-small">
33
- {{organization.profile.description.slice(0, 120) + '...'}}
34
- </p>
35
- </div>
36
- </div>
37
- </div>
38
-
39
- </div>
40
- </template>
41
-
42
- <script setup>
43
- import { computed,reactive,ref, onMounted,watch } from 'vue'
44
- import { useRoute, useRouter } from 'vue-router'
45
- // Import dependencies
46
- import Cookies from 'js-cookie'
47
- // Import components
48
- // Global
49
- import Tab from '@pf/src/components/Tab/Tab.vue'
50
- import Field from '@pf/src/components/Field/Field.vue'
51
- import Select from '@pf/src/components/Select/Select.vue'
52
- import Button from '@pf/src/components/Button/Button.vue'
53
- // Local
54
- import DetailsTab from '@pf/src/modules/organizations/components/sections/DetailsTab.vue'
55
- import StructureTab from '@pf/src/modules/organizations/components/sections/StructureTab.vue'
56
- import MembersTab from '@pf/src/modules/organizations/components/sections/MembersTab.vue'
57
- // Blocks
58
- import EmptyState from '@pf/src/modules/organizations/components/blocks/EmptyState.vue'
59
- import Unit from '@pf/src/modules/organizations/components/sections/Unit.vue'
60
- // Import state
61
- import * as auth from '@pf/src/modules/auth/store/auth'
62
- import * as organization from '@pf/src/modules/organizations/store/organizations'
63
- import * as memberships from '@pf/src/modules/organizations/store/memberships'
64
-
65
-
66
- if (auth.state.user._id) await organization.actions.read({owner: auth.state.user._id })
67
- // Init router
68
- const router = useRouter()
69
- const route = useRoute()
70
- // Accesing state
71
- // console.log(route.query.tab)
72
- let tab = route.query.tab ? route.query.tab : 'details';
73
-
74
- const tabOrganization = ref(tab)
75
-
76
- route.query.tab = tabOrganization.value
77
-
78
- watch(tabOrganization, (newValue) => {
79
- router.replace({ query: { ...route.query, tab: newValue } });
80
- });
81
- </script>
82
-
83
- <style lang="scss">
84
- .slide-fade-enter-active {
85
- // min-height: 100vh;
86
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
87
- }
88
-
89
- .slide-fade-leave-active {
90
- // min-height: 100vh;
91
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
92
- }
93
-
94
- .slide-fade-enter-from,
95
- .slide-fade-leave-to {
96
- min-height: 0;
97
- position: absolute;
98
- transform: translateX(20px);
99
- opacity: 0;
100
- left: 0;
101
- top: 0;
102
- }
103
-
104
- </style>
@@ -1,290 +0,0 @@
1
- // Query Processor
2
- const queryProcessor = require('./utils/queryProcessor');
3
- const queryProcessorGlobals = require('@pf/src/modules/globals/controllers/utils/queryProcessor');
4
- // Utils
5
- const { getBlockedMembers, addConditionsForBlocked } = require('@pf/src/modules/organizations/controllers/utils/excludeBlockedMembers');
6
-
7
- const controllerFactory = (db) => {
8
- const Blogpost = db.blogpost;
9
- const Organization = db.organization;
10
- const Membership = db.membership;
11
-
12
- const read = async (req, res) => {
13
-
14
- let stages = [];
15
-
16
- stages = [
17
- ...queryProcessorGlobals.getBasicOptions(
18
- req.query
19
- ),
20
- // Pagination
21
- ...queryProcessorGlobals.getSortingOptions(
22
- req.query
23
- ),
24
- ...queryProcessorGlobals.getPaginationOptions(
25
- req.query
26
- )
27
- ]
28
-
29
- let query = [];
30
- let matchStage = {};
31
-
32
-
33
- if (req.query.status) {
34
- matchStage["status"] = req.query.status;
35
- }
36
-
37
- // EXCLUDE USERS AND ORGS BLOCKED BY USER
38
- if (req.query.user) {
39
- const blockedMembers = await getBlockedMembers(Membership, req.query.user);
40
-
41
- console.log(blockedMembers);
42
-
43
- if (blockedMembers.length > 0) {
44
- addConditionsForBlocked(matchStage, "owner.target", blockedMembers);
45
- addConditionsForBlocked(matchStage, "creator.target", blockedMembers);
46
- }
47
- }
48
-
49
- if (req.query.tags) {
50
- matchStage["tags"] = { $in: req.query.tags.split(',') };
51
- }
52
-
53
- if (req.query.period) {
54
- const date = new Date();
55
-
56
- switch (req.query.period) {
57
- case 'today':
58
- date.setDate(date.getDate() - 1);
59
- break;
60
- case 'week':
61
- date.setDate(date.getDate() - 7);
62
- break;
63
- case 'month':
64
- date.setMonth(date.getMonth() - 1);
65
- break;
66
- case 'year':
67
- date.setFullYear(date.getFullYear() - 1);
68
- break;
69
- }
70
- matchStage["createdAt"] = { $gte: date };
71
- }
72
-
73
- // FILTER BY CATEGORY
74
- if (req.query.category) {
75
- switch (req.query.category) {
76
- case 'featured':
77
- matchStage["tags"] = { $in: ["Featured"] };
78
- break;
79
- case 'popular':
80
- query.push({ $sort: { views: -1, likes: -1 } });
81
- break;
82
- case 'new':
83
- query.push({ $sort: { createdAt: -1 } });
84
- break;
85
- case 'following':
86
- if (req.query.user) {
87
- const memberships = await Membership.find({ user: req.query.user });
88
- const followedOrganizations = memberships.filter(membership => membership.type === 'organization').map(membership => membership.target);
89
- const followedAuthors = memberships.filter(membership => membership.type === 'user').map(membership => membership.target);
90
-
91
- matchStage["$or"] = [
92
- { "owner.target": { $in: followedOrganizations } },
93
- { "owner.target": { $in: followedAuthors } }
94
- ];
95
- }
96
- break;
97
- }
98
- }
99
-
100
-
101
- query.push({ $match: matchStage });
102
-
103
-
104
- query.push({
105
- $lookup: {
106
- from: "comments",
107
- localField: "_id",
108
- foreignField: "target",
109
- as: "comments"
110
- }
111
- });
112
-
113
- query.push({
114
- $lookup: {
115
- from: "reactions",
116
- localField: "_id",
117
- foreignField: "target",
118
- as: "reactions"
119
- }
120
- });
121
-
122
- query.push({
123
- $addFields: {
124
- numberOfComments: { $size: "$comments" },
125
- numberOfReactions: { $size: "$reactions" },
126
- isReacted: {
127
- $in: [
128
- new db.mongoose.Types.ObjectId(req.query.user),
129
- "$reactions.user"
130
- ]
131
- },
132
- reactionId: {
133
- $let: {
134
- vars: {
135
- reactionIndex: {
136
- $indexOfArray: [
137
- "$reactions.user",
138
- new db.mongoose.Types.ObjectId(req.query.user)
139
- ]
140
- }
141
- },
142
- in: {
143
- $cond: [
144
- { $gte: ["$$reactionIndex", 0] },
145
- { $arrayElemAt: ["$reactions._id", "$$reactionIndex"] },
146
- null
147
- ]
148
- }
149
- }
150
- }
151
- }
152
- });
153
-
154
- query.push({
155
- $lookup: {
156
- from: "users",
157
- localField: "creator.target",
158
- foreignField: "_id",
159
- as: "creatorUser"
160
- }
161
- },
162
- {
163
- $lookup: {
164
- from: "organizations",
165
- localField: "creator.target",
166
- foreignField: "_id",
167
- as: "creatorOrganization"
168
- }
169
- },
170
- // Для owner
171
- {
172
- $lookup: {
173
- from: "users",
174
- localField: "owner.target",
175
- foreignField: "_id",
176
- as: "ownerUser"
177
- }
178
- },
179
- {
180
- $lookup: {
181
- from: "organizations",
182
- localField: "owner.target",
183
- foreignField: "_id",
184
- as: "ownerOrganization"
185
- }
186
- },
187
- {
188
- $addFields: {
189
- "creator.target": {
190
- $cond: [
191
- { $eq: ["$creator.type", "user"] },
192
- { $arrayElemAt: ["$creatorUser", 0] },
193
- { $arrayElemAt: ["$creatorOrganization", 0] }
194
- ]
195
- },
196
- "owner.target": {
197
- $cond: [
198
- { $eq: ["$owner.type", "user"] },
199
- { $arrayElemAt: ["$ownerUser", 0] },
200
- { $arrayElemAt: ["$ownerOrganization", 0] }
201
- ]
202
- }
203
- }
204
- })
205
-
206
- query.push({
207
- $project: {
208
- comments: 0,
209
- reactions: 0
210
- }
211
- });
212
-
213
- try {
214
- const posts = await Blogpost.aggregate(query).exec();
215
-
216
- if (posts.length === 0) {
217
- return res.status(200).send([]);
218
- // return res.status(404).send({ message: "Posts not found." });
219
- }
220
-
221
- console.log(posts)
222
-
223
- res.status(200).send(posts);
224
- } catch (err) {
225
- console.log(err);
226
- res.status(500).send({ err });
227
- }
228
- };
229
-
230
-
231
- const create = (req, res) => {
232
- let user = JSON.parse(req.cookies.user);
233
-
234
- const newBlogpost = {
235
- url: req.body.name.toLowerCase().replace(/ /g, '-').replace(/[^\w-]+/g, ''),
236
- name: req.body.name,
237
- status: req.body.status,
238
- tags: req.body.tags ? req.body.tags : ['All'],
239
- owner: req.body.owner,
240
- creator: req.body.creator,
241
- content: req.body.content,
242
- views: 1
243
- };
244
-
245
- Blogpost.create(newBlogpost)
246
- .then((post) => {
247
- res.status(200).send(post);
248
- })
249
- .catch((err) => {
250
- res.status(500).send({ message: err.message || "Some error occurred while creating the blogpost." });
251
- });
252
- };
253
-
254
- const update = (req, res) => {
255
- Blogpost.findOneAndUpdate({ _id: req.body._id }, { $set: req.body }, { new: true })
256
- .exec()
257
- .then((post) => {
258
- if (!post) {
259
- return res.status(404).send({ message: "Something wrong when updating the blogpost." });
260
- }
261
- res.status(200).send(post);
262
- })
263
- .catch((err) => {
264
- res.status(500).send({ message: err.message || "Some error occurred while updating the blogpost." });
265
- });
266
- };
267
-
268
- const del = (req, res) => {
269
- Blogpost.findOneAndDelete({ _id: req.params._id })
270
- .exec()
271
- .then((post) => {
272
- if (!post) {
273
- return res.status(404).send({ message: "The blogpost is not deleted." });
274
- }
275
- res.status(200).send(post);
276
- })
277
- .catch((err) => {
278
- res.status(500).send({ message: err.message || "Some error occurred while deleting the blogpost." });
279
- });
280
- };
281
-
282
- return {
283
- read,
284
- create,
285
- update,
286
- delete: del
287
- };
288
- };
289
-
290
- module.exports = controllerFactory;
@@ -1,92 +0,0 @@
1
- <template>
2
- <div>
3
- <div class="br-grey radius-small mn-small">
4
- <VueSelect
5
- v-if="props.department === null"
6
- v-model="departmentForm.subdepartment"
7
- :options="filteredDepartments"
8
- :get-option-label='option => option.name'
9
- class="w-100 mn-small"
10
- />
11
- <div v-else class="pd-small br-grey br-1px br-solid">
12
- {{ departmentForm.name ? departmentForm.name : 'Безымянный' }}
13
- </div>
14
- </div>
15
-
16
- <button :disabled="!departmentForm.subdepartment" v-if="props.department === null" @click="submitForm" class="w-100 button bg-second t-white">
17
- Добавить отдел
18
- </button>
19
-
20
- <button v-if="props.department !== null" @click="removeMember" class="w-100 button bg-fourth t-white">
21
- Удалить отдел
22
- </button>
23
- </div>
24
- </template>
25
-
26
- <script setup>
27
- import { ref, computed } from "vue";
28
- import VueSelect from "vue-select";
29
- import Field from "@pf/src/components/Field/Field.vue";
30
- import Select from "@pf/src/components/Select/Select.vue";
31
- const props = defineProps({
32
- isPopupOpen: Boolean,
33
- department: Number,
34
- departments: Array,
35
- maindepartment: Object,
36
- alldepartments: Array,
37
- });
38
-
39
- const emits = defineEmits(['callback', 'remove']);
40
-
41
- const departmentForm = ref({
42
- subdepartment: null,
43
- });
44
-
45
- if (props.department !== null) {
46
- departmentForm.value = props.departments[props.department];
47
- }
48
-
49
- function filterDepartments(allDepartments, departments, editingDepartment) {
50
- return allDepartments.filter((department) => {
51
- if (departments.some((dept) => dept._id === department._id)) {
52
- return false;
53
- }
54
- if (editingDepartment._id === department._id) {
55
- return false;
56
- }
57
- return true;
58
- });
59
- }
60
-
61
- const filteredDepartments = computed(() => {
62
- return filterDepartments(props.alldepartments, props.departments, props.maindepartment);
63
- });
64
-
65
- async function submitForm() {
66
- props.departments.push(departmentForm.value.subdepartment);
67
- emits("callback");
68
- }
69
-
70
- async function removeMember() {
71
- props.departments.splice(props.department, 1);
72
- emits("callback");
73
- }
74
- </script>
75
-
76
- <style scoped>
77
- .form-group {
78
- margin-bottom: 1rem;
79
- }
80
-
81
- label {
82
- display: block;
83
- margin-bottom: 0.5rem;
84
- }
85
-
86
- input {
87
- width: 100%;
88
- padding: 0.5rem;
89
- border: 1px solid #ccc;
90
- border-radius: 5px;
91
- }
92
- </style>
@@ -1,84 +0,0 @@
1
- <template>
2
- <Button
3
- :submit="toggleFollow"
4
- class="bg-main button-small button"
5
- >
6
- {{ status ? 'Unfollow' : 'Follow' }}
7
- </Button>
8
- </template>
9
-
10
- <script setup>
11
- import Button from "@pf/src/components/Button/Button.vue";
12
-
13
- import { ref } from 'vue'
14
- import * as auth from '@pf/src/modules/auth/store/auth'
15
- import * as memberships from '@pf/src/modules/organizations/store/memberships'
16
-
17
- const emits = defineEmits(['updateMembership'])
18
-
19
- const props = defineProps({
20
- type: {
21
- type: String,
22
- required: true
23
- },
24
- userId: {
25
- type: String,
26
- required: true
27
- },
28
- status: {
29
- type: Boolean,
30
- required: true
31
- },
32
- targetId: {
33
- type: String,
34
- required: true
35
- }
36
- });
37
-
38
- const toggleFollow = async () => {
39
- if (props.status) {
40
- await unfollowPublic(props.targetId);
41
- } else {
42
- await followPublic(props.targetId);
43
- }
44
- }
45
-
46
- async function followPublic(targetId) {
47
- try {
48
- const membershipData = {
49
- type: props.type,
50
- target: targetId,
51
- user: props.userId,
52
- role: 'subscriber'
53
- };
54
-
55
- const response = await memberships.actions.create(membershipData);
56
- emits('updateMembership', { membership: response, status: true, targetId: props.targetId });
57
- } catch (error) {
58
- console.log(error)
59
- throw error;
60
- }
61
- }
62
-
63
- async function unfollowPublic(targetId) {
64
- const membershipData = {
65
- type: props.type,
66
- target: targetId,
67
- user: props.userId,
68
- role: 'subscriber'
69
- };
70
-
71
- try {
72
- const response = await memberships.actions.delete(membershipData);
73
- emits('updateMembership', { membership: response, status: false, targetId: props.targetId });
74
- } catch (error) {
75
- console.log(error)
76
- throw error;
77
- }
78
- }
79
-
80
- </script>
81
-
82
- <style scoped>
83
- /* Если есть какие-либо дополнительные стили для этого компонента */
84
- </style>