@ozdao/prometheus-framework 0.2.133 → 0.2.135

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/_virtual/alignment-pattern.cjs +1 -0
  2. package/dist/_virtual/alignment-pattern.js +4 -0
  3. package/dist/_virtual/browser.cjs +1 -0
  4. package/dist/_virtual/browser.js +4 -0
  5. package/dist/_virtual/canvas.cjs +1 -0
  6. package/dist/_virtual/canvas.js +4 -0
  7. package/dist/_virtual/dijkstra.cjs +1 -0
  8. package/dist/_virtual/dijkstra.js +4 -0
  9. package/dist/_virtual/error-correction-code.cjs +1 -0
  10. package/dist/_virtual/error-correction-code.js +4 -0
  11. package/dist/_virtual/error-correction-level.cjs +1 -0
  12. package/dist/_virtual/error-correction-level.js +4 -0
  13. package/dist/_virtual/finder-pattern.cjs +1 -0
  14. package/dist/_virtual/finder-pattern.js +4 -0
  15. package/dist/_virtual/format-info.cjs +1 -0
  16. package/dist/_virtual/format-info.js +4 -0
  17. package/dist/_virtual/galois-field.cjs +1 -0
  18. package/dist/_virtual/galois-field.js +4 -0
  19. package/dist/_virtual/mask-pattern.cjs +1 -0
  20. package/dist/_virtual/mask-pattern.js +4 -0
  21. package/dist/_virtual/mode.cjs +1 -0
  22. package/dist/_virtual/mode.js +4 -0
  23. package/dist/_virtual/polynomial.cjs +1 -0
  24. package/dist/_virtual/polynomial.js +4 -0
  25. package/dist/_virtual/qrcode.cjs +1 -0
  26. package/dist/_virtual/qrcode.js +4 -0
  27. package/dist/_virtual/regex.cjs +1 -0
  28. package/dist/_virtual/regex.js +4 -0
  29. package/dist/_virtual/segments.cjs +1 -0
  30. package/dist/_virtual/segments.js +4 -0
  31. package/dist/_virtual/svg-tag.cjs +1 -0
  32. package/dist/_virtual/svg-tag.js +4 -0
  33. package/dist/_virtual/utils.cjs +1 -0
  34. package/dist/_virtual/utils.js +4 -0
  35. package/dist/_virtual/utils2.cjs +1 -0
  36. package/dist/_virtual/utils2.js +4 -0
  37. package/dist/_virtual/version-check.cjs +1 -0
  38. package/dist/_virtual/version-check.js +4 -0
  39. package/dist/_virtual/version.cjs +1 -0
  40. package/dist/_virtual/version.js +4 -0
  41. package/dist/auth.server.js +1 -1
  42. package/dist/auth.server.mjs +1 -1
  43. package/dist/community.server.js +1 -1
  44. package/dist/community.server.mjs +1 -1
  45. package/dist/events.server.js +1 -1
  46. package/dist/events.server.mjs +1 -1
  47. package/dist/files.server.js +1 -1
  48. package/dist/files.server.mjs +1 -1
  49. package/dist/gallery.server.js +1 -1
  50. package/dist/gallery.server.mjs +1 -1
  51. package/dist/index-C-8xOJnM.mjs +244 -0
  52. package/dist/index-CDbtWkBj.js +243 -0
  53. package/dist/main-5IrI2IOV.js +92 -0
  54. package/dist/main-BY2OvGB9.mjs +14509 -0
  55. package/dist/main.css +1 -1
  56. package/dist/middlewares.server.js +1 -1
  57. package/dist/middlewares.server.mjs +1 -1
  58. package/dist/node_modules/dijkstrajs/dijkstra.cjs +1 -0
  59. package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
  60. package/dist/node_modules/encode-utf8/index.cjs +1 -0
  61. package/dist/node_modules/encode-utf8/index.js +30 -0
  62. package/dist/node_modules/qrcode/lib/browser.cjs +1 -0
  63. package/dist/node_modules/qrcode/lib/browser.js +45 -0
  64. package/dist/node_modules/qrcode/lib/can-promise.cjs +1 -0
  65. package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
  66. package/dist/node_modules/qrcode/lib/core/alignment-pattern.cjs +1 -0
  67. package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
  68. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.cjs +1 -0
  69. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
  70. package/dist/node_modules/qrcode/lib/core/bit-buffer.cjs +1 -0
  71. package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
  72. package/dist/node_modules/qrcode/lib/core/bit-matrix.cjs +1 -0
  73. package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
  74. package/dist/node_modules/qrcode/lib/core/byte-data.cjs +1 -0
  75. package/dist/node_modules/qrcode/lib/core/byte-data.js +24 -0
  76. package/dist/node_modules/qrcode/lib/core/error-correction-code.cjs +1 -0
  77. package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
  78. package/dist/node_modules/qrcode/lib/core/error-correction-level.cjs +1 -0
  79. package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
  80. package/dist/node_modules/qrcode/lib/core/finder-pattern.cjs +1 -0
  81. package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
  82. package/dist/node_modules/qrcode/lib/core/format-info.cjs +1 -0
  83. package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
  84. package/dist/node_modules/qrcode/lib/core/galois-field.cjs +1 -0
  85. package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
  86. package/dist/node_modules/qrcode/lib/core/kanji-data.cjs +2 -0
  87. package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
  88. package/dist/node_modules/qrcode/lib/core/mask-pattern.cjs +1 -0
  89. package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
  90. package/dist/node_modules/qrcode/lib/core/mode.cjs +1 -0
  91. package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
  92. package/dist/node_modules/qrcode/lib/core/numeric-data.cjs +1 -0
  93. package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
  94. package/dist/node_modules/qrcode/lib/core/polynomial.cjs +1 -0
  95. package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
  96. package/dist/node_modules/qrcode/lib/core/qrcode.cjs +4 -0
  97. package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
  98. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.cjs +1 -0
  99. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
  100. package/dist/node_modules/qrcode/lib/core/regex.cjs +2 -0
  101. package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
  102. package/dist/node_modules/qrcode/lib/core/segments.cjs +2 -0
  103. package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
  104. package/dist/node_modules/qrcode/lib/core/utils.cjs +1 -0
  105. package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
  106. package/dist/node_modules/qrcode/lib/core/version-check.cjs +1 -0
  107. package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
  108. package/dist/node_modules/qrcode/lib/core/version.cjs +1 -0
  109. package/dist/node_modules/qrcode/lib/core/version.js +74 -0
  110. package/dist/node_modules/qrcode/lib/renderer/canvas.cjs +1 -0
  111. package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
  112. package/dist/node_modules/qrcode/lib/renderer/svg-tag.cjs +2 -0
  113. package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
  114. package/dist/node_modules/qrcode/lib/renderer/utils.cjs +1 -0
  115. package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
  116. package/dist/orders.server.js +1 -1
  117. package/dist/orders.server.mjs +1 -1
  118. package/dist/organizations.server.js +1 -1
  119. package/dist/organizations.server.mjs +1 -1
  120. package/dist/products.server.js +1 -1
  121. package/dist/products.server.mjs +1 -1
  122. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  124. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/components/Field/Field.vue.js +19 -20
  126. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +5 -5
  128. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  130. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +16 -16
  134. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +16 -16
  136. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +13 -13
  138. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +36 -36
  140. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +29 -29
  142. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  144. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +1 -1
  150. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
  152. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +23 -23
  154. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
  156. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +14 -14
  158. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  160. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +2 -2
  162. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  164. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +12 -12
  166. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +21 -21
  168. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  170. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +5 -5
  172. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +7 -7
  174. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  176. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +8 -8
  178. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  180. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  182. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
  184. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
  186. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +5 -5
  188. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +8 -8
  190. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  194. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  196. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  198. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  200. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  202. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  204. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +76 -46
  206. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  208. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +12 -12
  210. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +16 -16
  212. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +6 -6
  214. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +19 -19
  216. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  218. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +7 -7
  220. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  221. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  222. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  223. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  224. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  225. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +13 -13
  226. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  227. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +18 -18
  228. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  229. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +32 -32
  230. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  231. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +10 -10
  232. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  233. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +5 -5
  234. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  235. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  236. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  237. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  238. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  239. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  240. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -0
  241. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +64 -0
  242. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -0
  243. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.js +24 -0
  244. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -0
  245. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +181 -0
  246. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -0
  247. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +478 -0
  248. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +1 -0
  249. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +121 -0
  250. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -0
  251. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +203 -0
  252. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -0
  253. package/dist/prometheus-framework/src/modules/spots/router/spots.js +92 -0
  254. package/dist/prometheus-framework/src/modules/spots/spots.client.cjs +1 -0
  255. package/dist/prometheus-framework/src/modules/spots/spots.client.js +37 -0
  256. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  257. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +4 -4
  258. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  259. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +9 -9
  260. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
  261. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js +34 -0
  262. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -0
  263. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +42 -0
  264. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.cjs +1 -0
  265. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.js +26 -0
  266. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -0
  267. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +76 -0
  268. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.cjs +1 -0
  269. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js +105 -0
  270. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +1 -0
  271. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +106 -0
  272. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  273. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +140 -125
  274. package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.cjs +1 -0
  275. package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.js +41 -0
  276. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
  277. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.js +98 -22
  278. package/dist/prometheus-framework.cjs.js +1 -1
  279. package/dist/prometheus-framework.es.js +1 -1
  280. package/dist/reports.server.js +1 -1
  281. package/dist/reports.server.mjs +1 -1
  282. package/dist/spots.server.js +169 -0
  283. package/dist/spots.server.mjs +170 -0
  284. package/dist/style.css +1 -1
  285. package/dist/wallet.server.js +103 -13
  286. package/dist/wallet.server.mjs +103 -13
  287. package/dist/web-5eyiz9L7.mjs +54 -0
  288. package/dist/web-C04IcLk4.js +1 -0
  289. package/package.json +1 -1
  290. package/src/components/Field/Field.vue +1 -1
  291. package/src/modules/community/components/pages/Blog.vue +1 -1
  292. package/src/modules/globals/components/layouts/Client.vue +10 -8
  293. package/src/modules/globals/components/partials/Header.vue +2 -2
  294. package/src/modules/globals/components/sections/Walkthrough.vue +4 -4
  295. package/src/modules/globals/globals.client.js +5 -5
  296. package/src/modules/globals/localization/vue-i18n.js +5 -5
  297. package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -3
  298. package/src/modules/landing/components/sections/SectionEarn.vue +1 -6
  299. package/src/modules/middlewares/server/authSecret.js +22 -0
  300. package/src/modules/middlewares/server/index.js +7 -5
  301. package/src/modules/organizations/components/pages/OrganizationEdit.vue +29 -1
  302. package/src/modules/spots/components/layouts/Spots.vue +1 -1
  303. package/src/modules/spots/components/pages/SpotEdit.vue +8 -53
  304. package/src/modules/spots/models/spot.model.js +7 -7
  305. package/src/modules/spots/router/spots.js +65 -61
  306. package/src/modules/spots/spots.client.js +43 -0
  307. package/src/modules/spots/spots.server.js +31 -0
  308. package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -2
  309. package/src/modules/wallet/controllers/routes/rewards.routes.js +27 -3
  310. package/src/modules/wallet/models/wallet.model.js +5 -5
  311. package/src/modules/wallet/{components → views/components}/blocks/CardBalanceReplenished.vue +17 -7
  312. package/src/modules/wallet/{components/blocks/CardDeposite.vue → views/components/blocks/CardDeposit.vue} +4 -4
  313. package/src/modules/wallet/views/components/blocks/CryptoDeposit.vue +98 -0
  314. package/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue +144 -0
  315. package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +131 -0
  316. package/src/modules/wallet/views/components/pages/Wallet.vue +95 -68
  317. package/src/modules/wallet/views/localization/wallet.json +37 -0
  318. package/src/modules/wallet/views/store/wallet.store.js +145 -28
  319. package/src/modules/wallet/wallet.server.js +2 -2
  320. package/src/modules/spots/components/sections/PlaceModify.vue +0 -113
  321. package/src/modules/spots/components/sections/Places.vue +0 -119
  322. package/src/modules/wallet/components/blocks/CryptoDeposite.vue +0 -55
  323. package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +0 -181
  324. package/src/modules/wallet/controllers/factories/rewards.factory.population.js +0 -213
  325. package/src/modules/wallet/localization/Wallet.json +0 -22
  326. /package/src/modules/wallet/{components/blocks/CashDeposite.vue → views/components/blocks/CashDeposit.vue} +0 -0
@@ -39,6 +39,33 @@
39
39
  <BlockTags
40
40
  @tags-changed="newTags => organization.state.current.profile.tags = newTags"
41
41
  :tags="organization.state.current.profile.tags"
42
+ class="mn-b-small"
43
+ />
44
+
45
+ <h3 class="mn-b-small">Contacts</h3>
46
+ <Field
47
+ v-model:field="organization.state.current.contacts.email"
48
+ label="Email"
49
+ placeholder=""
50
+ class="mn-b-thin bg-light pd-medium radius-small"
51
+ />
52
+ <Field
53
+ v-model:field="organization.state.current.contacts.website"
54
+ label="Website"
55
+ placeholder=""
56
+ class="mn-b-thin bg-light pd-medium radius-small"
57
+ />
58
+ <Field
59
+ v-model:field="organization.state.current.contacts.phone"
60
+ label="Phone"
61
+ placeholder=""
62
+ class="mn-b-thin bg-light pd-medium radius-small"
63
+ />
64
+ <Field
65
+ v-model:field="organization.state.current.contacts.address"
66
+ label="Address"
67
+ placeholder=""
68
+ class="mn-b-thin bg-light pd-medium radius-small"
42
69
  />
43
70
 
44
71
  <h3 class="mn-b-small">Socials</h3>
@@ -70,11 +97,12 @@
70
97
  />
71
98
  <Field
72
99
  v-model:field="organization.state.current.socials.youtube"
73
- label="Telegram"
100
+ label="Youtube"
74
101
  placeholder=""
75
102
  class="mn-b-thin bg-light pd-medium radius-small"
76
103
  />
77
104
 
105
+
78
106
  <Button :submit="onSubmit" :callback="redirectTo" class="bg-main w-100 mn-b-thin">Save</Button>
79
107
  <!-- <Button :submit="onDelete" :callback="redirectDash" class="mn-b-thin bg-fourth">Delete</Button> -->
80
108
 
@@ -56,7 +56,7 @@
56
56
  import Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'
57
57
  import Dropdown from "@pf/src/components/Dropdown/Dropdown.vue";
58
58
 
59
- import Filters from '@pf/src/modules/marketplace/components/sections/Filters.vue'
59
+ // import Filters from '@pf/src/modules/marketplace/components/sections/Filters.vue'
60
60
 
61
61
 
62
62
  import * as globals from '@pf/src/modules/globals/store/globals';
@@ -155,7 +155,6 @@ import { useRoute, useRouter } from "vue-router";
155
155
  import Block from '@pf/src/components/Block/Block.vue';
156
156
  import UploadImage from '@pf/src/components/UploadImage/UploadImage.vue';
157
157
 
158
-
159
158
  import Tab from "@pf/src/components/Tab/Tab.vue";
160
159
  import Field from "@pf/src/components/Field/Field.vue";
161
160
  import Select from "@pf/src/components/Select/Select.vue";
@@ -165,72 +164,28 @@ import LocationMarker from "@pf/src/components/LocationMarker/LocationMarker.vue
165
164
  import Button from "@pf/src/components/Button/Button.vue";
166
165
  import Popup from "@pf/src/components/Popup/Popup.vue";
167
166
 
168
- import EditArray from "@pf/src/modules/organizations/components/blocks/EditArray.vue";
169
- import SpotSub from "@pf/src/modules/spots/components/blocks/SpotSub.vue";
170
- import SpotMemberModify from "@pf/src/modules/spots/components/blocks/SpotMemberModify.vue";
171
- // import SpotSubSpotModify from "@pf/src/modules/spots/components/blocks/SpotSubSpotModify.vue";
172
- import User from '@pf/src/modules/users/components/blocks/CardUser.vue';
173
-
174
167
  import * as spots from "@pf/src/modules/spots/store/spots";
175
- import * as memberships from "@pf/src/modules/organizations/store/memberships";
176
168
 
177
169
  const router = useRouter();
178
170
  const route = useRoute();
179
171
  const tabOrganization = ref("details");
180
172
  const showAddNew = ref(false);
181
173
 
182
- onMounted(() => {
183
- // spots.state.spot.location = spots.state.spot.location
174
+ onMounted(async () => {
175
+ await fetchData();
184
176
  })
185
177
 
186
178
  async function fetchData() {
187
- if (route.params.spot) {
188
- await memberships.actions.read(route.params.spot);
189
- }
190
- const users = ref(memberships.state.memberships);
191
179
 
192
180
  if (route.params.spot) await spots.actions.readOne(route.params.spot);
193
181
 
194
- }
195
-
196
- await fetchData();
197
-
198
- // const [ lng, lat ] = spots.state.spot.location?.coordinates
199
-
200
- const lng = spots.state.spot.location?.coordinates[0]
201
- const lat = spots.state.spot.location?.coordinates[1]
202
-
203
- spots.state.spot.location = {
204
- lat: lat || 1,
205
- lng: lng || 1
206
- }
207
-
208
- const members = ref(spots.state.spot.members);
182
+ const lng = spots.state.spot.location?.coordinates[0]
183
+ const lat = spots.state.spot.location?.coordinates[1]
209
184
 
210
- const isOpenAddMemberPopup = ref(false);
211
- const selectedMember = ref(null);
212
-
213
- function openMemberPopup(member) {
214
- isOpenAddMemberPopup.value = true;
215
- if (typeof member === "number") selectedMember.value = member;
216
- }
217
-
218
- function closeMemberPopup() {
219
- isOpenAddMemberPopup.value = false;
220
- selectedMember.value = null;
221
- }
222
-
223
- const isOpenSpotPopup = ref(false);
224
- const selectedSpot = ref(null);
225
-
226
- function openSpotPopup(spot) {
227
- isOpenSpotPopup.value = true;
228
- if (typeof spot === "number") selectedSpot.value = spot;
229
- }
230
-
231
- function closeSpotPopup() {
232
- isOpenSpotPopup.value = false;
233
- selectedSpot.value = null;
185
+ spots.state.spot.location = {
186
+ lat: lat || 1,
187
+ lng: lng || 1
188
+ }
234
189
  }
235
190
 
236
191
  async function onSubmit() {
@@ -1,12 +1,12 @@
1
- module.exports = (mongoose) => {
1
+ module.exports = (db) => {
2
2
  // Схема отдела
3
- const spotSchema = new mongoose.Schema({
3
+ const spotSchema = new db.mongoose.Schema({
4
4
  owner: {
5
- type: mongoose.Schema.Types.ObjectId,
5
+ type: db.mongoose.Schema.Types.ObjectId,
6
6
  ref: 'User',
7
7
  },
8
8
  organization: {
9
- type: mongoose.Schema.Types.ObjectId,
9
+ type: db.mongoose.Schema.Types.ObjectId,
10
10
  ref: 'Organization',
11
11
  },
12
12
  profile: {
@@ -47,7 +47,7 @@ module.exports = (mongoose) => {
47
47
  members: [
48
48
  {
49
49
  user: {
50
- type: mongoose.Schema.Types.ObjectId,
50
+ type: db.mongoose.Schema.Types.ObjectId,
51
51
  ref: 'User',
52
52
  },
53
53
  position: {
@@ -58,7 +58,7 @@ module.exports = (mongoose) => {
58
58
  ],
59
59
  subspots: [
60
60
  {
61
- type: mongoose.Schema.Types.ObjectId,
61
+ type: db.mongoose.Schema.Types.ObjectId,
62
62
  ref: 'Spot',
63
63
  },
64
64
  ],
@@ -69,7 +69,7 @@ module.exports = (mongoose) => {
69
69
  spotSchema.index({ location: '2dsphere' });
70
70
 
71
71
 
72
- const Spot = mongoose.model('Spot', spotSchema);
72
+ const Spot = db.mongoose.model('Spot', spotSchema);
73
73
 
74
74
  return Spot
75
75
  }
@@ -3,70 +3,74 @@ import layoutSpots from '../components/layouts/Spots.vue'
3
3
 
4
4
  import * as validationAuth from '@pf/src/modules/middlewares/client/auth.validation.js';
5
5
 
6
- const spots = [
7
- {
8
- path: 'spots',
9
- component: layoutEmpty,
10
- meta: {
11
- title: {
12
- en: 'Spots',
13
- ru: 'Места'
6
+ const spots = {
7
+ path: 'spots',
8
+ component: layoutEmpty,
9
+ meta: {
10
+ title: {
11
+ en: 'Spots',
12
+ ru: 'Места'
13
+ },
14
+ },
15
+ children: [
16
+ {
17
+ path: ':country?',
18
+ component: layoutSpots,
19
+ meta: {
20
+ title: {
21
+ en: 'Spots',
22
+ ru: 'Места'
23
+ },
24
+ header_theme: 'dark',
25
+ footer_theme: 'dark'
14
26
  },
15
- header_theme: 'dark',
16
- footer_theme: 'dark'
27
+ children: [
28
+ {
29
+ path: ':state?',
30
+ name: 'Spots tate',
31
+ component: () => import(/* webpackChunkName: 'Deliveries' */ '../components/pages/Map.vue'),
32
+ children: [
33
+ {
34
+ path: ':city?',
35
+ name: 'Spots City',
36
+ component: () => import(/* webpackChunkName: 'Deliveries' */ '../components/pages/Map.vue'),
37
+ }
38
+ ]
39
+ }
40
+ ]
17
41
  },
18
- children: [
19
- {
20
- path: ':country?',
21
- component: layoutSpots,
22
- children: [
23
- {
24
- path: ':state?',
25
- name: 'Spots tate',
26
- component: () => import(/* webpackChunkName: 'Deliveries' */ '../components/pages/Map.vue'),
27
- children: [
28
- {
29
- path: ':city?',
30
- name: 'Spots City',
31
- component: () => import(/* webpackChunkName: 'Deliveries' */ '../components/pages/Map.vue'),
32
- }
33
- ]
34
- }
35
- ]
42
+ {
43
+ path: ':_id/spots/create',
44
+ name: 'Spot Creation',
45
+ meta: {
46
+ title: 'Создание точки',
36
47
  },
37
- {
38
- path: ':_id/spots/create',
39
- name: 'Spot Creation',
40
- meta: {
41
- title: 'Создание отдела',
42
- },
43
- beforeEnter: [
44
- validationAuth.requiresAuth,
45
- ],
46
- component: () => import(/* webpackChunkName: "spot" */ '@pf/src/modules/spots/components/pages/SpotEdit.vue'),
47
- }, {
48
- path: ':_id/spots/:deparment',
49
- name: 'Spot',
50
- meta: {
51
- title: 'Отдел',
52
- },
53
- beforeEnter: [
54
- validationAuth.requiresAuth,
55
- ],
56
- component: () => import(/* webpackChunkName: "spot" */ '@pf/src/modules/spots/components/pages/Spot.vue'),
57
- }, {
58
- path: ':_id/spots/:spot/edit',
59
- name: 'Spot Edit',
60
- meta: {
61
- title: 'Редактирование отдела',
62
- },
63
- beforeEnter: [
64
- validationAuth.requiresAuth,
65
- ],
66
- component: () => import(/* webpackChunkName: "spot" */ '@pf/src/modules/spots/components/pages/SpotEdit.vue'),
48
+ beforeEnter: [
49
+ validationAuth.requiresAuth,
50
+ ],
51
+ component: () => import(/* webpackChunkName: "spot" */ '@pf/src/modules/spots/components/pages/SpotEdit.vue'),
52
+ }, {
53
+ path: ':_id/spots/:deparment',
54
+ name: 'Spot',
55
+ meta: {
56
+ title: 'Точка',
57
+ },
58
+ beforeEnter: [
59
+ validationAuth.requiresAuth,
60
+ ],
61
+ component: () => import(/* webpackChunkName: "spot" */ '@pf/src/modules/spots/components/pages/Spot.vue'),
62
+ }, {
63
+ path: ':_id/spots/:spot/edit',
64
+ name: 'Spot Edit',
65
+ meta: {
66
+ title: 'Редактирование точки',
67
67
  },
68
- ]
69
- }
70
- ];
68
+ beforeEnter: [
69
+ validationAuth.requiresAuth,
70
+ ],
71
+ component: () => import(/* webpackChunkName: "spot" */ '@pf/src/modules/spots/components/pages/SpotEdit.vue'),
72
+ },
73
+ ]
74
+ }
71
75
 
72
76
  export default spots;
@@ -0,0 +1,43 @@
1
+ // Store
2
+ import * as storeSpots from './store/spots.js';
3
+ // Router
4
+ import routerSpots from './router/spots.js';
5
+ // Views
6
+ import Spots from './components/layouts/Spots.vue';
7
+ import Spot from './components/pages/Spot.vue';
8
+ import SpotEdit from './components/pages/SpotEdit.vue';
9
+ import Map from './components/pages/Map.vue';
10
+ // Importing blocks components
11
+ import CardSpot from './components/blocks/CardSpot.vue';
12
+ import SpotMemberModify from './components/blocks/SpotMemberModify.vue';
13
+ import SpotSub from './components/blocks/SpotSub.vue';
14
+
15
+ function initializeSpots(app, store, router) {
16
+ router.addRoute('Home', routerSpots);
17
+ store.addStore('spots', storeSpots);
18
+ }
19
+
20
+ const ModuleSpot = {
21
+ initialize: initializeSpots,
22
+ views: {
23
+ store: {
24
+ storeSpots
25
+ },
26
+ router: {
27
+ routerSpots
28
+ },
29
+ components: {
30
+ // Pages
31
+ Spots,
32
+ Spot,
33
+ SpotEdit,
34
+ Map,
35
+ // Blocks
36
+ CardSpot,
37
+ SpotMemberModify,
38
+ SpotSub,
39
+ }
40
+ }
41
+ }
42
+
43
+ export default ModuleSpot;
@@ -0,0 +1,31 @@
1
+ const ModelSpot = require('./models/spot.model.js');
2
+
3
+ const RoutesSpot = require('./routes/spots.routes.js');
4
+
5
+ const FactorySpot = require('./controllers/spots.controller.js');
6
+
7
+ const CRUD = require('@pf/src/modules/globals/services/globals.crud');
8
+
9
+ function initializeSpots(app, db, origins, publicPath) {
10
+ // Setup models in the database object
11
+ db.spot = ModelSpot(db);
12
+
13
+ // Setup routes if the app object is provided
14
+ if (app) {
15
+ RoutesSpot(app, db, origins, publicPath);
16
+ }
17
+ }
18
+
19
+ // Exporting controllers, routes, and models
20
+ module.exports = {
21
+ initialize: initializeSpots,
22
+ models: {
23
+ ModelSpot,
24
+ },
25
+ routes: {
26
+ RoutesSpot,
27
+ },
28
+ controllers: {
29
+ FactorySpot
30
+ }
31
+ };
@@ -3,6 +3,10 @@ const { BigNumber } = require('bignumber.js');
3
3
 
4
4
  const queryProcessorGlobals = require('@pf/src/modules/globals/controllers/utils/queryProcessor');
5
5
 
6
+ BigNumber.config({
7
+ EXPONENTIAL_AT: [-1000, 2000],
8
+ });
9
+
6
10
  const VIEWS_REWARD_COEFF = '0.1';
7
11
  const WDT_DECIMALS = 8;
8
12
 
@@ -23,13 +27,24 @@ const calculateRewardForPost = (snapshot, viewsCount, reactionsCount, commentsCo
23
27
  .plus(commentsCount);
24
28
  };
25
29
 
26
- const rewardsControllerFactory = (db, wdmClient) => {
30
+ const rewardsControllerFactory = (db, wdmClient, wss) => {
27
31
  const Blogpost = db.blogpost;
28
32
  const Reaction = db.reaction;
29
33
  const Comment = db.comment;
30
34
  const Reward = db.reward;
35
+ const Wallet = db.wallet;
36
+
37
+ const lookup = {};
31
38
 
39
+ wss.on('connection', (ws, req) => {
40
+ if (req.userId) {
41
+ lookup[req.userId] = ws;
32
42
 
43
+ ws.on('close', () => {
44
+ delete lookup[req.userId];
45
+ });
46
+ }
47
+ });
33
48
 
34
49
  const listRewards = async (req, res) => {
35
50
 
@@ -176,7 +191,77 @@ const rewardsControllerFactory = (db, wdmClient) => {
176
191
  res.status(200).send();
177
192
  };
178
193
 
179
- return { listRewards, collectTokens };
194
+ const requestDeposit = async (req, res) => {
195
+ const response = await wdmClient.createDepositRequest(
196
+ req.body.network,
197
+ req.body.amount,
198
+ req.body.token,
199
+ req.userId
200
+ );
201
+
202
+ res.status(200).send(response.data);
203
+ };
204
+
205
+ const cancelDeposit = async (req, res) => {
206
+ const response = await wdmClient.cancelDeposit(
207
+ req.body.id,
208
+ req.userId
209
+ );
210
+
211
+ res.status(200).send(response.data);
212
+ };
213
+
214
+ const getDepositConfig = async (req, res) => {
215
+ const response = await wdmClient.getDepositConfig();
216
+
217
+ res.status(200).send(response.data);
218
+ };
219
+
220
+ const handleDepositUpdate = async (req, res) => {
221
+ if (req.body.status === "TRANSFER_STATUS_COMPLETED") {
222
+ const userWallet = await Wallet.findOne({ owner: new ObjectId(req.body.user) });
223
+ const amount = new BigNumber(req.body.amount)
224
+ .shiftedBy(-WDT_DECIMALS)
225
+ .dividedBy(process.env.TOKEN_EXCHANGE_RATE)
226
+ .toString();
227
+
228
+ if (userWallet) {
229
+ const topupIndex = userWallet.balances.findIndex((b) => b.name === 'WDT');
230
+
231
+ if (topupIndex < 0) {
232
+ userWallet.balances.push({ name: 'WDT', amount: +amount, locked_amount: 0 });
233
+ } else {
234
+ userWallet.balances[topupIndex] = {
235
+ name: 'WDT',
236
+ amount: userWallet.balances[topupIndex].amount + +amount,
237
+ locked_amount: userWallet.balances[topupIndex].locked_amount
238
+ };
239
+ }
240
+
241
+ await userWallet.save();
242
+ } else {
243
+ await Wallet.create({
244
+ owner: new ObjectId(req.body.user),
245
+ balances: [{ name: 'WDT', amount: +amount, locked_amount: 0 }],
246
+ });
247
+ }
248
+ }
249
+
250
+ if (lookup[req.body.user]) {
251
+ lookup[req.body.user].send(JSON.stringify(req.body));
252
+ }
253
+
254
+ res.status(200).send();
255
+ }
256
+
257
+ return {
258
+ listRewards,
259
+ collectTokens,
260
+ requestDeposit,
261
+ getDepositConfig,
262
+ cancelDeposit,
263
+ handleDepositUpdate
264
+ };
180
265
  };
181
266
 
182
267
  module.exports = rewardsControllerFactory;
@@ -5,10 +5,10 @@ const rewardsControllerFactory = require('../factories/rewards.factory');
5
5
  const middlewareFactory = require('@pf/src/modules/middlewares/server');
6
6
 
7
7
  // Routes
8
- module.exports = (app, db, wdmClient, origins) => {
9
- const controller = rewardsControllerFactory(db, wdmClient);
8
+ module.exports = (app, db, wss, wdmClient, origins) => {
9
+ const controller = rewardsControllerFactory(db, wdmClient, wss);
10
10
 
11
- const { authJwt } = middlewareFactory(db);
11
+ const { authJwt, authSecret } = middlewareFactory(db);
12
12
 
13
13
  app.use((req, res, next) => {
14
14
  const origin = req.headers.origin;
@@ -33,4 +33,28 @@ module.exports = (app, db, wdmClient, origins) => {
33
33
  [authJwt.verifyToken],
34
34
  controller.collectTokens
35
35
  );
36
+
37
+ app.post(
38
+ "/api/crypto/deposit",
39
+ [authJwt.verifyToken],
40
+ controller.requestDeposit
41
+ );
42
+
43
+ app.post(
44
+ "/api/crypto/deposit/cancel",
45
+ [authJwt.verifyToken],
46
+ controller.cancelDeposit
47
+ );
48
+
49
+ app.post(
50
+ "/api/crypto/deposit/update",
51
+ [authSecret.verifySecret('POST', '/api/crypto/deposit/update', process.env.WDM_SECRET)],
52
+ controller.handleDepositUpdate
53
+ );
54
+
55
+ app.get(
56
+ "/api/crypto/deposit/config",
57
+ [],
58
+ controller.getDepositConfig
59
+ )
36
60
  };
@@ -9,11 +9,11 @@ module.exports = (db) => {
9
9
  },
10
10
  required: true,
11
11
  },
12
- amount: {
13
- type: Number,
14
- required: true,
15
- default: 0
16
- },
12
+ balances: [{
13
+ name: String, // Name of currency
14
+ amount: Number, // Amount
15
+ locked_amount: Number,
16
+ }]
17
17
  },
18
18
  {
19
19
  timestamps: {
@@ -1,27 +1,30 @@
1
1
  <template>
2
- <h2 class="mn-b-small t-center t-bold">{{ t('balanceReplenished') }}</h2>
2
+ <h2 class="mn-b-small t-center t-bold">{{ t('wallet.balanceReplenished') }}</h2>
3
3
 
4
4
  <div class="radius-medium br-1px br-black br-solid pd-big flex flex-column flex-justify-center flex-items-center">
5
5
  <h3 class="t-semi">
6
- {{ t('youReceived') }}
6
+ {{ t('wallet.youReceived') }}
7
7
  </h3>
8
8
  <h3 class="t-semi">
9
- 500 WDT
9
+ {{ receiveAmount }} WDT
10
10
  </h3>
11
-
12
11
  </div>
13
12
 
14
13
  <button
15
14
  class="uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small"
16
15
  @click="close"
17
16
  >
18
- {{ t('backToWallet') }}
17
+ {{ t('wallet.backToWallet') }}
19
18
  </button>
20
19
  </template>
21
20
 
22
21
  <script setup>
23
- import text from '@pf/src/modules/wallet/localization/Wallet.json'
24
22
  import { useI18n } from 'vue-i18n'
23
+ import { computed } from 'vue'
24
+ import { BigNumber } from 'bignumber.js'
25
+
26
+ import text from '@pf/src/modules/wallet/views/localization/wallet.json'
27
+ import { state } from '@pf/src/modules/wallet/views/store/wallet.store';
25
28
 
26
29
  const emits = defineEmits(['close'])
27
30
 
@@ -31,10 +34,17 @@
31
34
  ...text
32
35
  })
33
36
 
37
+ const receiveAmount = computed(() =>
38
+ new BigNumber(state.depositInfo.amount)
39
+ .shiftedBy(-8)
40
+ .dividedBy(process.env.TOKEN_EXCHANGE_RATE)
41
+ .toString()
42
+ )
43
+
34
44
  function close() {
35
45
  emits("close")
36
46
  }
37
47
  </script>
38
48
 
39
49
  <style scoped>
40
- </style>
50
+ </style>
@@ -3,7 +3,7 @@
3
3
 
4
4
  <div class="bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between">
5
5
  <Field
6
- :placeholder="t('enterAmount')"
6
+ :placeholder="t('wallet.enterAmount')"
7
7
  class="pd-medium radius-small"
8
8
  />
9
9
 
@@ -18,19 +18,19 @@
18
18
  class="uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small"
19
19
  @click="switchMenu(3)"
20
20
  >
21
- {{ t('pay') }}
21
+ {{ t('wallet.pay') }}
22
22
  </button>
23
23
 
24
24
  <button
25
25
  class="uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small"
26
26
  @click="backSelection"
27
27
  >
28
- {{ t('backToSelection') }}
28
+ {{ t('wallet.backToSelection') }}
29
29
  </button>
30
30
  </template>
31
31
 
32
32
  <script setup>
33
- import text from '@pf/src/modules/wallet/localization/Wallet.json'
33
+ import text from '@pf/src/modules/wallet/views/localization/wallet.json'
34
34
  import Field from '@pf/src/components/Field/Field.vue'
35
35
  import { useI18n } from 'vue-i18n'
36
36