@ozdao/prometheus-framework 0.2.29 → 0.2.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (326) hide show
  1. package/dist/addMembersQuantity-3505b6f3.mjs +98 -0
  2. package/dist/addMembersQuantity-fb552ca0.js +97 -0
  3. package/dist/auth.server.js +6 -9
  4. package/dist/auth.server.mjs +6 -9
  5. package/dist/community.server.js +28 -21
  6. package/dist/community.server.mjs +28 -21
  7. package/dist/events.server.js +1 -1
  8. package/dist/events.server.mjs +1 -1
  9. package/dist/files.server.js +114 -111
  10. package/dist/files.server.mjs +114 -111
  11. package/dist/gallery.server.js +3 -3
  12. package/dist/gallery.server.mjs +3 -3
  13. package/dist/globals.server.js +1 -1
  14. package/dist/globals.server.mjs +1 -1
  15. package/dist/index-a8dffc0c.js +213 -0
  16. package/dist/index-d769324d.mjs +214 -0
  17. package/dist/mailing-37c2ba41.mjs +68 -0
  18. package/dist/mailing-fe16a26a.js +67 -0
  19. package/dist/main.css +1 -1
  20. package/dist/middlewares.server.js +1 -1
  21. package/dist/middlewares.server.mjs +1 -1
  22. package/dist/organizations.server.js +125 -25
  23. package/dist/organizations.server.mjs +125 -25
  24. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +49 -2
  26. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +2 -49
  28. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
  30. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
  32. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  34. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  36. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  38. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
  39. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +62 -2
  40. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
  41. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -62
  42. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  44. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  46. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  48. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  50. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  52. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  54. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  60. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  62. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  68. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  76. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  78. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  80. package/dist/prometheus-framework.cjs.js +30 -29
  81. package/dist/prometheus-framework.es.js +2478 -2282
  82. package/dist/reports.server.js +1 -1
  83. package/dist/reports.server.mjs +1 -1
  84. package/dist/style.css +1 -1
  85. package/dist/users.server.js +1 -1
  86. package/dist/users.server.mjs +1 -1
  87. package/package.json +4 -2
  88. package/src/assets/images/logo.svg +7 -7
  89. package/src/components/Block/Block.vue +77 -0
  90. package/src/components/Breadcrumbs/Breadcrumbs.vue +2 -2
  91. package/src/components/Button/Button.vue +32 -227
  92. package/src/components/Checkbox/Checkbox.vue +1 -1
  93. package/src/components/Chips/Chips.vue +8 -8
  94. package/src/components/DatePicker/DatePicker.vue +3 -4
  95. package/src/components/EditImages/EditImages.vue +32 -14
  96. package/src/{modules/globals/components/sections → components/Feed}/Feed.vue +60 -45
  97. package/src/components/FieldBig/FieldBig.vue +16 -5
  98. package/src/components/FieldPhone/FieldPhone.vue +2 -1
  99. package/src/components/Footer/Footer.vue +36 -27
  100. package/src/components/Header/Header.vue +161 -166
  101. package/src/components/Loader/Loader.vue +9 -2
  102. package/src/components/LocationMarker/LocationMarker.vue +38 -12
  103. package/src/components/LocationSelection/LocationSelection.vue +67 -75
  104. package/src/components/Magnifier/Magnifier.vue +3 -3
  105. package/src/components/Navigation/Navigation.vue +16 -16
  106. package/src/components/Popup/Popup.vue +8 -6
  107. package/src/components/Select/Select.vue +35 -6
  108. package/src/components/SelectMulti/SelectMulti.vue +5 -13
  109. package/src/components/Shader/Shader.vue +128 -0
  110. package/src/components/Sidebar/Sidebar.vue +71 -35
  111. package/src/components/Spoiler/Spoiler.vue +1 -1
  112. package/src/components/Tab/Tab.vue +1 -1
  113. package/src/components/Tooltip/Tooltip.vue +1 -1
  114. package/src/components/UploadImage/UploadImage.vue +4 -4
  115. package/src/components/UploadImageMultiple/UploadImageMultiple.vue +54 -10
  116. package/src/modules/applications/controllers/applications.controller.js +0 -1
  117. package/src/modules/auth/components/pages/EnterCode.vue +1 -1
  118. package/src/modules/auth/components/pages/EnterPassword.vue +3 -3
  119. package/src/modules/auth/components/pages/ResetPassword.vue +1 -2
  120. package/src/modules/auth/components/pages/SignIn.vue +26 -10
  121. package/src/modules/auth/components/pages/SignUp.vue +1 -2
  122. package/src/modules/auth/controllers/twofa.controller.js +4 -4
  123. package/src/modules/auth/localization/EnterCode.json +2 -2
  124. package/src/modules/auth/localization/EnterPassword.json +2 -2
  125. package/src/modules/auth/localization/ResetPassword.json +2 -2
  126. package/src/modules/auth/localization/SignIn.json +3 -3
  127. package/src/modules/auth/localization/SignUp.json +3 -3
  128. package/src/modules/auth/utils/server/verifyAppleIdToken.js +0 -1
  129. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  130. package/src/modules/backoffice/components/pages/Dashboard.vue +171 -120
  131. package/src/modules/backoffice/router/backoffice.js +119 -129
  132. package/src/modules/chats/components/blocks/ChatMessage.vue +25 -0
  133. package/src/modules/chats/components/pages/ChatPage.vue +50 -0
  134. package/src/modules/chats/components/sections/ChatWindow.vue +38 -0
  135. package/src/modules/chats/controllers/chats.controller.js +32 -0
  136. package/src/modules/chats/models/chat.model.js +26 -0
  137. package/src/modules/chats/routes/chats.routes.js +53 -0
  138. package/src/modules/chats/store/chat.store.js +61 -0
  139. package/src/modules/community/components/blocks/CardBlogpost.vue +19 -4
  140. package/src/modules/community/components/layouts/Community.vue +96 -39
  141. package/src/modules/community/components/pages/Blog.vue +4 -3
  142. package/src/modules/community/components/pages/BlogPost.vue +10 -1
  143. package/src/modules/community/components/pages/CreateBlogPost.vue +36 -17
  144. package/src/modules/community/components/sections/HotPosts.vue +3 -3
  145. package/src/modules/community/components/sections/JoinUs.vue +19 -13
  146. package/src/modules/community/controllers/blog.controller.js +3 -4
  147. package/src/modules/community/controllers/utils/queryProcessor.js +16 -17
  148. package/src/modules/community/models/blogpost.model.js +6 -3
  149. package/src/modules/community/store/blogposts.js +1 -0
  150. package/src/modules/constructor/components/elements/Embed.vue +12 -1
  151. package/src/modules/constructor/components/elements/ImageUpload.vue +2 -2
  152. package/src/modules/constructor/components/elements/Textarea.vue +6 -1
  153. package/src/modules/constructor/components/elements/Video.vue +79 -0
  154. package/src/modules/constructor/components/elements/VideoPlayer.vue +59 -0
  155. package/src/modules/constructor/components/elements/Youtube.vue +52 -0
  156. package/src/modules/constructor/components/sections/Constructor.vue +27 -3
  157. package/src/modules/events/components/layouts/layoutEvents.vue +7 -28
  158. package/src/modules/files/controllers/files.controller.js +9 -22
  159. package/src/modules/files/middlewares/server/index.js +2 -2
  160. package/src/modules/files/middlewares/server/middlewareBusboy.js +137 -0
  161. package/src/modules/files/routes/files.routes.js +9 -9
  162. package/src/modules/globals/localization/vue-i18n.js +8 -1
  163. package/src/modules/globals/mixins/mixins.js +23 -13
  164. package/src/modules/globals/router/routerGuards.js +2 -2
  165. package/src/modules/globals/store/globals.js +86 -9
  166. package/src/modules/globals/utils/mailing.js +24 -3
  167. package/src/modules/icons/entities/IconCommunity.vue +4 -4
  168. package/src/modules/icons/entities/IconEvents.vue +1 -1
  169. package/src/modules/icons/entities/IconGroups.vue +1 -1
  170. package/src/modules/icons/entities/IconPrice.vue +5 -0
  171. package/src/modules/icons/entities/IconProfile.vue +5 -0
  172. package/src/modules/icons/entities/IconShopcart.vue +5 -0
  173. package/src/modules/icons/entities/IconTime.vue +5 -0
  174. package/src/modules/icons/icons.client.js +4 -0
  175. package/src/modules/icons/labels/LabelAppStore.vue +24 -24
  176. package/src/modules/icons/labels/LabelGooglePlay.vue +9 -9
  177. package/src/modules/icons/logos/Logotype.vue +20 -0
  178. package/src/modules/icons/navigation/IconAdd.vue +17 -0
  179. package/src/modules/icons/navigation/IconChevronBottom.vue +18 -0
  180. package/src/modules/icons/navigation/IconChevronRight.vue +3 -3
  181. package/src/modules/icons/navigation/IconDelete.vue +19 -0
  182. package/src/modules/icons/navigation/IconMinus.vue +15 -0
  183. package/src/modules/icons/navigation/IconSearch.vue +17 -0
  184. package/src/modules/icons/navigation/IconUpload.vue +16 -0
  185. package/src/modules/icons/placeholders/PlaceholderImage.vue +5 -0
  186. package/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue +20 -0
  187. package/src/modules/icons/placeholders/PlaceholderUserpic.vue +4 -18
  188. package/src/modules/icons/socials/instagram.vue +1 -1
  189. package/src/modules/icons/socials/line.vue +1 -1
  190. package/src/modules/icons/socials/reddit.vue +1 -1
  191. package/src/modules/icons/socials/telegram.vue +1 -1
  192. package/src/modules/icons/socials/twitter.vue +1 -1
  193. package/src/modules/icons/socials/youtube.vue +1 -1
  194. package/src/modules/landing/components/sections/Guide.vue +92 -0
  195. package/src/modules/landing/components/sections/MobileApp.vue +23 -12
  196. package/src/modules/marketplace/components/layouts/Marketplace.vue +76 -188
  197. package/src/modules/marketplace/components/pages/Catalog.vue +65 -119
  198. package/src/modules/marketplace/components/sections/Filters.vue +195 -0
  199. package/src/modules/marketplace/store/marketplace.js +2 -2
  200. package/src/modules/middlewares/client/auth.validation.js +0 -6
  201. package/src/modules/middlewares/client/states.validation.js +2 -8
  202. package/src/modules/middlewares/server/authJwt.js +1 -1
  203. package/src/modules/mobile/components/Menu/MenuItem.vue +3 -6
  204. package/src/modules/openai/controllers/openai.controller.js +0 -1
  205. package/src/modules/orders/components/blocks/CardOrder.vue +166 -0
  206. package/src/modules/orders/components/blocks/CardOrderItem.vue +59 -66
  207. package/src/modules/orders/components/blocks/Positions.vue +4 -4
  208. package/src/modules/orders/components/pages/EditOrder.vue +78 -142
  209. package/src/modules/orders/components/pages/FormOrder.vue +192 -0
  210. package/src/modules/orders/components/pages/Order.vue +326 -120
  211. package/src/modules/orders/components/pages/Orders.vue +13 -9
  212. package/src/modules/orders/components/pages/{ViewOrder.vue → Orders_refact.vue} +13 -10
  213. package/src/modules/orders/components/partials/ShopCart.vue +22 -13
  214. package/src/modules/orders/components/sections/EmptyState.vue +1 -1
  215. package/src/modules/orders/components/sections/{Form.vue → FormOrderDetails.vue} +38 -106
  216. package/src/modules/orders/controllers/orders.controller.js +37 -28
  217. package/src/modules/orders/models/order.model.js +39 -9
  218. package/src/modules/orders/router/orders.router.js +23 -2
  219. package/src/modules/orders/routes/orders.routes.js +14 -17
  220. package/src/modules/orders/store/orders.js +24 -9
  221. package/src/modules/orders/store/shopcart.js +20 -19
  222. package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
  223. package/src/modules/organizations/components/blocks/CardOrganization.vue +98 -46
  224. package/src/modules/organizations/components/blocks/Rating.vue +1 -1
  225. package/src/modules/organizations/components/blocks/Socials.vue +11 -3
  226. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
  227. package/src/modules/organizations/components/pages/Department.vue +1 -1
  228. package/src/modules/organizations/components/pages/DepartmentEdit.vue +4 -4
  229. package/src/modules/organizations/components/pages/Members.vue +6 -4
  230. package/src/modules/organizations/components/pages/Organization.vue +120 -49
  231. package/src/modules/organizations/components/pages/OrganizationEdit.vue +8 -1
  232. package/src/modules/organizations/components/pages/Organizations.vue +27 -6
  233. package/src/modules/organizations/components/sections/DetailsTab.vue +11 -9
  234. package/src/modules/organizations/components/sections/Feed.vue +0 -3
  235. package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
  236. package/src/modules/organizations/controllers/organizations.controller.js +126 -15
  237. package/src/modules/organizations/controllers/utils/addMembersQuantity.js +19 -9
  238. package/src/modules/organizations/models/organization.model.js +5 -2
  239. package/src/modules/organizations/router/members.router.js +1 -3
  240. package/src/modules/organizations/router/organizations.js +8 -6
  241. package/src/modules/organizations/router/products.router.js +36 -2
  242. package/src/modules/organizations/store/organizations.js +38 -84
  243. package/src/modules/pages/controllers/pages.controller.js +0 -4
  244. package/src/modules/payments/controller/payments.controller.js +1 -1
  245. package/src/modules/products/components/blocks/CardLeftover.vue +17 -22
  246. package/src/modules/products/components/blocks/CardPosition.vue +96 -49
  247. package/src/modules/products/components/blocks/CardProduct.vue +24 -53
  248. package/src/modules/products/components/blocks/Images360.vue +4 -4
  249. package/src/modules/products/components/blocks/ImagesThumbnails.vue +2 -7
  250. package/src/modules/products/components/blocks/ListPositions.vue +74 -0
  251. package/src/modules/products/components/elements/Price.vue +11 -5
  252. package/src/modules/products/components/elements/THC.vue +6 -6
  253. package/src/modules/products/components/pages/{LeftoverAdd.vue → EditLeftover.vue} +93 -79
  254. package/src/modules/products/components/pages/Leftovers.vue +74 -70
  255. package/src/modules/products/components/pages/Product.vue +4 -7
  256. package/src/modules/products/components/pages/ProductEdit.vue +230 -88
  257. package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
  258. package/src/modules/products/components/pages/Products.vue +6 -3
  259. package/src/modules/products/components/pages/ProductsBackoffice.vue +3 -5
  260. package/src/modules/products/components/sections/EditModifications.vue +3 -3
  261. package/src/modules/products/components/sections/EditProductInfo.vue +40 -50
  262. package/src/modules/products/components/sections/FilterProducts.vue +57 -18
  263. package/src/modules/products/components/sections/HeroRecommendation.vue +233 -99
  264. package/src/modules/products/components/sections/MenuSection.vue +127 -0
  265. package/src/modules/products/components/sections/PopularProducts.vue +81 -37
  266. package/src/modules/products/components/sections/SectionProduct.vue +21 -23
  267. package/src/modules/products/controllers/leftovers.controller.js +11 -1
  268. package/src/modules/products/controllers/products.controller.js +100 -97
  269. package/src/modules/products/models/leftover.model.js +6 -4
  270. package/src/modules/products/models/product.model.js +13 -1
  271. package/src/modules/products/routes/products.routes.js +4 -4
  272. package/src/modules/products/store/leftovers.js +4 -24
  273. package/src/modules/products/store/products.js +44 -30
  274. package/src/modules/spots/components/blocks/CardSpot.vue +43 -72
  275. package/src/modules/spots/components/layouts/Spots.vue +9 -91
  276. package/src/modules/spots/components/pages/Map.vue +171 -62
  277. package/src/modules/spots/components/pages/Spot.vue +1 -1
  278. package/src/modules/spots/components/pages/SpotEdit.vue +131 -174
  279. package/src/modules/spots/controllers/spots.controller.js +1 -0
  280. package/src/modules/spots/models/spot.model.js +6 -3
  281. package/src/modules/spots/store/spots.js +42 -48
  282. package/src/modules/users/components/pages/Profile.vue +6 -28
  283. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  284. package/src/modules/users/components/pages/ProfileEdit.vue +1 -1
  285. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  286. package/src/modules/users/components/pages/ProfileOrganizations.vue +1 -1
  287. package/src/modules/users/router/users.js +1 -1
  288. package/src/modules/wallet/components/pages/Wallet.vue +105 -109
  289. package/src/modules/wallet/controllers/crypto.controller.js +129 -0
  290. package/src/modules/wallet/models/reward.model.js +53 -0
  291. package/src/modules/wallet/routes/crypto.routes.js +36 -0
  292. package/src/modules/wallet/store/wallet.js +52 -49
  293. package/src/styles/base/all.scss +144 -12
  294. package/src/styles/base/backgrounds.scss +2 -34
  295. package/src/styles/base/borders.scss +18 -23
  296. package/src/styles/base/scrolling.scss +97 -29
  297. package/src/styles/base/{shadows.scss → shadow_transitions_hover_refactor.scss} +55 -2
  298. package/src/styles/config.scss +69 -17
  299. package/src/styles/layout.scss +12 -182
  300. package/src/styles/reset.scss +20 -21
  301. package/src/styles/responsive.scss +4 -67
  302. package/src/styles/theme.scss +3 -4
  303. package/src/styles/typography.scss +15 -17
  304. package/src/assets/fonts/AvenirNext-Bold.woff2 +0 -0
  305. package/src/assets/fonts/AvenirNext-DemiBold.woff2 +0 -0
  306. package/src/assets/fonts/AvenirNext-Heavy.woff2 +0 -0
  307. package/src/assets/fonts/AvenirNext-Medium.woff2 +0 -0
  308. package/src/assets/fonts/AvenirNext-Regular.woff2 +0 -0
  309. package/src/assets/fonts/AvenirNext-UltraLight.woff2 +0 -0
  310. package/src/modules/files/middlewares/server/md.js +0 -152
  311. package/src/modules/files/middlewares/server/middlewareMulter.js +0 -121
  312. package/src/modules/organizations/controllers/organizations.new.controller.js +0 -372
  313. package/src/modules/products/components/blocks/EditCategories.vue +0 -68
  314. package/src/modules/products/components/sections/EditParameters.vue +0 -58
  315. package/src/modules/products/components/sections/EditProductImages.vue +0 -67
  316. package/src/modules/spots/components/sections/Feed.vue +0 -64
  317. package/src/styles/base/border-radius.scss +0 -47
  318. package/src/styles/base/cursors.scss +0 -23
  319. package/src/styles/base/height.scss +0 -60
  320. package/src/styles/base/hovers.scss +0 -110
  321. package/src/styles/base/positions.scss +0 -192
  322. package/src/styles/base/transitions.scss +0 -137
  323. package/src/styles/base/width.scss +0 -2
  324. package/src/styles/components/block.scss +0 -18
  325. package/src/styles/components/breadcrumbs.scss +0 -0
  326. package/src/styles/components/input.scss +0 -319
@@ -1,70 +1,65 @@
1
1
  <template>
2
- <div class="select-country">
3
- <p class="h1">🌍</p>
4
- <br>
2
+ <div class="t-center flex-center">
3
+ <p class="h1 mn-b-medium">🌍</p>
4
+
5
5
  <h3 class="mn-b-semi">{{t('title')}}</h3>
6
- <!-- Select country -->
7
- <div class="">
8
- <!-- Description -->
9
- <p class="mn-b-small t-transp p-medium">{{t('description')}}</p>
10
- <Address
11
- apiKey="AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI"
12
-
13
- :address="position.address"
14
- :location="position.location"
15
-
16
- placeholder="Enter delivery address"
17
-
18
- class="
19
- bg-white br-grey br-solid br-2px radius-big pd-medium mn-b-small
20
- "
21
-
22
- @update:country="newCountry => {
23
- position.country = newCountry;
24
- }"
25
- @update:state="newState => {
26
- position.state = newState;
27
- }"
28
- @update:city="newCity => {
29
- position.city = newCity;
30
- }"
31
- @update:location="newLocation => {
32
- position.location = newLocation;
33
- }"
34
- @update:address="newAddress => {
35
- position.address = newAddress;
36
- }"
37
- />
38
-
39
- <p class="mn-b-small t-transp p-medium">Or choose on map:</p>
40
-
41
- <LocationMarker
42
- apiKey="AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI"
43
-
44
- :address="position.address"
45
- :location="position.location"
46
-
47
- class="h-20r radius-big o-hidden"
48
-
49
- @update:country="newCountry => {
50
- position.country = newCountry;
51
- }"
52
- @update:state="newState => {
53
- position.state = newState;
54
- }"
55
- @update:city="newCity => {
56
- position.city = newCity;
57
- }"
58
- @update:location="newLocation => {
59
- position.location = newLocation;
60
- }"
61
- @update:address="newAddress => {
62
- position.address = newAddress;
63
- }"
64
- />
65
-
66
- <button @click="savePosition()" class="w-100 mn-t-medium button">Save Position</button>
67
- </div>
6
+ <p class="mn-b-small t-transp p-medium">{{t('description')}}</p>
7
+
8
+ <Address
9
+ apiKey="AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI"
10
+
11
+ :address="position.address"
12
+ :location="position.location"
13
+
14
+ placeholder="Enter your address"
15
+
16
+ class="
17
+ bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium
18
+ "
19
+
20
+ @update:country="newCountry => {
21
+ position.country = newCountry;
22
+ }"
23
+ @update:state="newState => {
24
+ position.state = newState;
25
+ }"
26
+ @update:city="newCity => {
27
+ position.city = newCity;
28
+ }"
29
+ @update:location="newLocation => {
30
+ position.location = newLocation;
31
+ }"
32
+ @update:address="newAddress => {
33
+ position.address = newAddress;
34
+ }"
35
+ />
36
+
37
+ <LocationMarker
38
+ apiKey="AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI"
39
+
40
+ :address="position.address"
41
+ :location="position.location"
42
+
43
+ class=" radius-bl-medium radius-br-medium h-15r o-hidden"
44
+
45
+ @update:country="newCountry => {
46
+ position.country = newCountry;
47
+ }"
48
+ @update:state="newState => {
49
+ position.state = newState;
50
+ }"
51
+ @update:city="newCity => {
52
+ position.city = newCity;
53
+ }"
54
+ @update:location="newLocation => {
55
+ position.location = newLocation;
56
+ }"
57
+ @update:address="newAddress => {
58
+ position.address = newAddress;
59
+ }"
60
+ />
61
+
62
+ <button @click="savePosition()" class="w-100 mn-t-medium bg-main radius-extra button">Save Position</button>
68
63
  </div>
69
64
  </template>
70
65
 
@@ -85,17 +80,17 @@ const route = useRoute()
85
80
  const router = useRouter()
86
81
 
87
82
  const position = ref({
88
- country: '',
89
- state: '',
90
- city: '',
91
- address: '',
92
- location: '',
83
+ country: null,
84
+ state: null,
85
+ city: null,
86
+ address: null,
87
+ location: null,
93
88
  })
94
89
 
95
90
 
96
91
  function savePosition() {
97
92
  store.globals.state.position = { ...position.value };
98
- store.globals.state.isLocationPopupOpen = false
93
+ store.globals.state.isOpenLocationPopup = false
99
94
 
100
95
  localStorage.setItem('position', JSON.stringify(store.globals.state.position));
101
96
  }
@@ -109,7 +104,7 @@ const text = {
109
104
  messages: {
110
105
  en: {
111
106
  title: "Choose Your Location",
112
- description: "Please select your country from the list below to see delivery options and other relevant information:",
107
+ description: "Enter your address or select it on the map to see the nearest offers to you.",
113
108
  choose: "Select",
114
109
  countries: [
115
110
  "Thailand\u00A0🇹🇭"
@@ -147,7 +142,4 @@ const { t } = useI18n(text)
147
142
  </script>
148
143
 
149
144
  <style lang="scss">
150
- .select-country {
151
- max-width: 100%;
152
- }
153
145
  </style>
@@ -31,7 +31,7 @@ function updateZoomLens(event) {
31
31
  const x = event.clientX - rect.left;
32
32
  const y = event.clientY - rect.top;
33
33
 
34
- const lensSize = 100;
34
+ const lensSize = 200;
35
35
 
36
36
  const lensX = Math.max(0, Math.min(x - lensSize / 2, rect.width - lensSize));
37
37
  const lensY = Math.max(0, Math.min(y - lensSize / 2, rect.height - lensSize));
@@ -79,8 +79,8 @@ function handleTouchEnd() {
79
79
 
80
80
  .zoom-lens {
81
81
  position: absolute;
82
- width: 100px;
83
- height: 100px;
82
+ width: 200px;
83
+ height: 200px;
84
84
  border: 1px solid rgba(0, 0, 0, 0.3);
85
85
  box-sizing: border-box;
86
86
  background-repeat: no-repeat;
@@ -1,47 +1,47 @@
1
1
  <template>
2
- <ul class="t-semi flex-nowrap flex-center flex">
3
- <li class="mn-r-semi">
2
+ <ul class="t-semi gap-small flex-nowrap flex-center flex">
3
+ <li>
4
4
  <router-link
5
- :to="getMarketplaceLink()"
6
- >
5
+ :to="getMarketplaceLink(null,store.globals.state.position?.country,store.globals.state.position?.state,store.globals.state.position?.city)"
6
+ >
7
7
  {{ t('HEADER.MENU.MARKETPLACE') }}
8
8
  </router-link>
9
9
  </li>
10
- <li class="mn-r-semi">
11
- <router-link
12
- :to="getSpotsLink()"
13
- >
10
+ <li>
11
+ <router-link
12
+ :to="getSpotsLink(store.globals.state.position?.country,store.globals.state.position?.state,store.globals.state.position?.city)"
13
+ >
14
14
  {{ t('HEADER.MENU.DISPENSARIES') }}
15
15
  </router-link>
16
16
  </li>
17
17
 
18
- <!-- <li class="mn-r-semi">
18
+ <!-- <li>
19
19
  <router-link
20
20
  to="/gallery"
21
- >
21
+ >
22
22
  {{ t('HEADER.MENU.GALLERY') }}
23
23
  </router-link>
24
24
  </li> -->
25
25
 
26
- <li class="mn-r-semi">
26
+ <li>
27
27
  <router-link
28
28
  to="/events"
29
- >
29
+ >
30
30
  {{ t('HEADER.MENU.EVENTS') }}
31
31
  </router-link>
32
32
  </li>
33
33
 
34
- <li class="mn-r-semi">
34
+ <li>
35
35
  <router-link
36
36
  to="/community"
37
- >
37
+ >
38
38
  {{ t('HEADER.MENU.BLOG') }}
39
39
  </router-link>
40
40
  </li>
41
- <li class="mn-r-semi">
41
+ <li>
42
42
  <router-link
43
43
  to="/governance"
44
- >
44
+ >
45
45
  {{ t('HEADER.MENU.GOVERNANCE') }}
46
46
  </router-link>
47
47
  </li>
@@ -2,26 +2,28 @@
2
2
 
3
3
  <teleport to="body" v-if="isPopupOpen">
4
4
  <transition name="TransitionTranslateY" appear>
5
+
5
6
  <div v-if="isPopupOpen" key="popup-content" class="pd-small popup-wrapper">
6
7
 
7
8
  <transition name="TransitionTranslateY" mode="out-in">
8
9
  <section v-if="isPopupOpen" class="pos-relative z-index-4" v-bind="$attrs">
9
- <!-- Close Popup -->
10
- <button @click="closePopup()" class="pd-regular hover-scale-1 z-index-5 button-close-popup button">
11
- <IconCross/>
12
- </button>
10
+ <IconCross @click="closePopup()" class="cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"/>
11
+
13
12
  <slot></slot>
14
13
  </section>
15
14
  </transition>
16
15
 
17
16
  <div
18
17
  @click="closePopup()"
19
- :class="{'active':isPopupOpen === true}"
20
- class="color-overlay z-index-3">
18
+ :class="{'active':isPopupOpen === true}"
19
+ class="color-overlay z-index-3">
21
20
  </div>
21
+
22
22
  </div>
23
+
23
24
  </transition>
24
25
  </teleport>
26
+
25
27
  </template>
26
28
 
27
29
  <script setup>
@@ -2,8 +2,9 @@
2
2
  <!-- Input Wrapper -->
3
3
  <div
4
4
  @click.stop="toggleMenu"
5
+ v-click-outside="clickedOutside"
5
6
  :class="$attrs.class"
6
- class="cursor-pointer flex-nowrap flex"
7
+ class="cursor-pointer flex-v-center flex-nowrap flex pos-relative"
7
8
  >
8
9
  <!-- Label -->
9
10
  <div v-if="label" class="t-transp mn-r-small">
@@ -14,7 +15,7 @@
14
15
  <li class="w-100">
15
16
  <!-- Selected Value -->
16
17
  <span>
17
- {{ selectedOption?.name || selectedOption || placeholder }}
18
+ {{ selectedOption?.name ? selectedOption?.name : selectedOption || placeholder }}
18
19
  </span>
19
20
  </li>
20
21
 
@@ -23,7 +24,7 @@
23
24
  <ul
24
25
  v-if="showMenu"
25
26
  :class="$attrs.class"
26
- class="pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"
27
+ class="bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"
27
28
  >
28
29
  <li @click.stop="selectOption(option)" v-for="option in optionsListed">
29
30
  <span v-if="option" class="w-100">
@@ -47,19 +48,40 @@ import { ref, computed, watch } from 'vue'
47
48
 
48
49
  const emit = defineEmits(['update:select', 'focus', 'blur'])
49
50
 
51
+ import clickOutside from '../FieldPhone/click-outside';
52
+
53
+ let vClickOutside = clickOutside
54
+
55
+
50
56
  const props = defineProps({
51
57
  label: String,
52
58
  select: [String, Object],
59
+ property: String,
53
60
  placeholder: { type: String, default: 'Please select an item' },
54
61
  options: { type: Array, default: () => [] },
55
62
  validation: Boolean,
56
63
  })
57
64
 
58
- const selectedOption = ref(props.select)
65
+ const selectedOption = ref(props.property ? findObjectByValue(props.select, props.property, props.options) : props.select)
59
66
  const showMenu = ref(false)
60
67
 
68
+ function clickedOutside () {
69
+ showMenu.value = false
70
+ }
71
+
72
+
73
+ function findObjectByValue(value, property,objects) {
74
+ for (const object of objects) {
75
+ if (object[property] === value || object === value) {
76
+ return object;
77
+ }
78
+
79
+ }
80
+ return null;
81
+ }
82
+
61
83
  watch(() => props.select, (newSelect) => {
62
- selectedOption.value = newSelect;
84
+ selectedOption.value = props.property ? findObjectByValue(props.select, props.property, props.options) : props.select;
63
85
  });
64
86
 
65
87
  const optionsListed = computed(() => {
@@ -68,13 +90,20 @@ const optionsListed = computed(() => {
68
90
 
69
91
  const toggleMenu = () => {
70
92
  showMenu.value = !showMenu.value
93
+
71
94
  emit(showMenu.value ? 'focus' : 'blur')
72
95
  }
73
96
 
74
97
  const selectOption = option => {
75
98
  selectedOption.value = option
99
+
76
100
  toggleMenu()
77
- emit('update:select', selectedOption.value)
101
+
102
+ if (props.property) {
103
+ emit('update:select', selectedOption.value[props.property])
104
+ } else {
105
+ emit('update:select', selectedOption.value)
106
+ }
78
107
  }
79
108
  </script>
80
109
 
@@ -500,18 +500,17 @@ export default {
500
500
  }
501
501
 
502
502
  .multiselect__input,
503
- .multiselect__single {
503
+ .multiselect__single,
504
+ .multiselect__placeholder {
504
505
  position: relative;
505
506
  display: inline-block;
506
507
  min-height: 20px;
507
508
  line-height: 20px;
508
509
  border: none;
509
- /* padding: 0 0 0 5px;*/
510
510
  width: calc(100%);
511
+ height: inherit;
511
512
  box-sizing: border-box;
512
- /* margin-bottom: 8px;*/
513
513
  vertical-align: top;
514
- height: 100%;
515
514
  display: flex;
516
515
  align-items: center;
517
516
  }
@@ -542,6 +541,7 @@ export default {
542
541
 
543
542
  .multiselect__tags {
544
543
  display: block;
544
+ height: inherit;
545
545
  }
546
546
 
547
547
  .multiselect__tag {
@@ -639,15 +639,6 @@ export default {
639
639
  content: "";
640
640
  }
641
641
 
642
- .multiselect__placeholder {
643
- color: #adadad;
644
- display: inline-block;
645
- height: 100%;
646
- display: flex;
647
- align-items: center;
648
- /* margin-bottom: 10px;*/
649
- /* padding-top: 2px;*/
650
- }
651
642
 
652
643
  .multiselect--active .multiselect__placeholder {
653
644
  display: none;
@@ -659,6 +650,7 @@ export default {
659
650
  background: #fff;
660
651
  width: 100%;
661
652
  max-height: 240px;
653
+ height: min-content;
662
654
  overflow: auto;
663
655
  left: 0;
664
656
  border-top: none;
@@ -0,0 +1,128 @@
1
+ <template>
2
+ <canvas ref="refCanvas"></canvas>
3
+ </template>
4
+
5
+ <script setup>
6
+ import {onMounted, ref} from 'vue'
7
+
8
+ let refCanvas = ref(null)
9
+ const vertexShaderSource = `
10
+ void main() {
11
+ gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
12
+ }
13
+ `;
14
+
15
+ const fragmentShaderSource = `
16
+ precision mediump float;
17
+
18
+ #define time (iTime * 0.9)
19
+
20
+ vec4 gradient(float f)
21
+ {
22
+ vec4 c = vec4(0);
23
+ f = mod(f, 1.5);
24
+ for (int i = 0; i < 3; ++i)
25
+ c[i] = pow(0.5 + 0.5 * sin(2.0 * (f + 0.2 * float(i))), 10.0);
26
+ return c;
27
+ }
28
+
29
+ float offset(float th)
30
+ {
31
+ return 0.5 * sin(25.0 * th) * sin(time);
32
+ }
33
+
34
+ vec4 tunnel(float th, float radius)
35
+ {
36
+ return gradient(offset(th + 0.25 * time) + 3.0 * log(3.0 * radius) - time);
37
+ }
38
+
39
+ void main() {
40
+ vec2 p = -1.0 + 2.0 * gl_FragCoord.xy / iResolution.xy;
41
+ p.x *= iResolution.x / iResolution.y;
42
+ gl_FragColor = tunnel(atan(p.y, p.x), 2.0 * length(p));
43
+ }
44
+ `;
45
+
46
+ onMounted(() => {
47
+ const canvas = refCanvas.value;
48
+ const gl = canvas.getContext("webgl");
49
+
50
+ if (!gl) {
51
+ console.error("Unable to initialize WebGL. Your browser may not support it.");
52
+ return;
53
+ }
54
+
55
+ const vertexShader = createShader(gl, gl.VERTEX_SHADER, vertexShaderSource);
56
+ const fragmentShader = createShader(gl, gl.FRAGMENT_SHADER, fragmentShaderSource);
57
+
58
+ const program = createProgram(gl, vertexShader, fragmentShader);
59
+
60
+ gl.useProgram(program);
61
+
62
+ const positionAttributeLocation = gl.getAttribLocation(program, "a_position");
63
+ const positionBuffer = gl.createBuffer();
64
+
65
+ gl.bindBuffer(gl.ARRAY_BUFFER, positionBuffer);
66
+
67
+ const positions = new Float32Array([-1, -1, 3, -1, -1, 3]);
68
+ gl.bufferData(gl.ARRAY_BUFFER, positions, gl.STATIC_DRAW);
69
+
70
+ const vao = gl.createVertexArray();
71
+ gl.bindVertexArray(vao);
72
+ gl.enableVertexAttribArray(positionAttributeLocation);
73
+
74
+ const size = 2;
75
+ const type = gl.FLOAT;
76
+ const normalize = false;
77
+ const stride = 0;
78
+ const offset = 0;
79
+
80
+ gl.vertexAttribPointer(
81
+ positionAttributeLocation, size, type, normalize, stride, offset
82
+ );
83
+
84
+ gl.clearColor(0, 0, 0, 0);
85
+ gl.clear(gl.COLOR_BUFFER_BIT);
86
+
87
+ gl.useProgram(program);
88
+ gl.bindVertexArray(vao);
89
+
90
+ gl.drawArrays(gl.TRIANGLES, 0, 3);
91
+ });
92
+
93
+ function createShader(gl, type, source) {
94
+ const shader = gl.createShader(type);
95
+ gl.shaderSource(shader, source);
96
+ gl.compileShader(shader);
97
+
98
+ if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
99
+ console.error(gl.getShaderInfoLog(shader));
100
+ gl.deleteShader(shader);
101
+ return null;
102
+ }
103
+
104
+ return shader;
105
+ }
106
+
107
+ function createProgram(gl, vertexShader, fragmentShader) {
108
+ const program = gl.createProgram();
109
+ gl.attachShader(program, vertexShader);
110
+ gl.attachShader(program, fragmentShader);
111
+ gl.linkProgram(program);
112
+
113
+ if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
114
+ console.error(gl.getProgramInfoLog(program));
115
+ gl.deleteProgram(program);
116
+ return null;
117
+ }
118
+
119
+ return program;
120
+ }
121
+ </script>
122
+
123
+ <style scoped>
124
+ canvas {
125
+ width: 100%;
126
+ height: 100%;
127
+ }
128
+ </style>