@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
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
3
- const index = require("./index-BshfsiQG.js");
3
+ const index = require("./index-CDbtWkBj.js");
4
4
  require("axios");
5
5
  require("bcryptjs");
6
6
  require("crypto");
@@ -21,11 +21,13 @@ var wallet_model = (db) => {
21
21
  },
22
22
  required: true
23
23
  },
24
- amount: {
25
- type: Number,
26
- required: true,
27
- default: 0
28
- }
24
+ balances: [{
25
+ name: String,
26
+ // Name of currency
27
+ amount: Number,
28
+ // Amount
29
+ locked_amount: Number
30
+ }]
29
31
  },
30
32
  {
31
33
  timestamps: {
@@ -319,6 +321,9 @@ var payments_routes = function(app, db, origins, publicPath) {
319
321
  };
320
322
  const ObjectId = require$$0.Types.ObjectId;
321
323
  const { BigNumber } = require$$1$1;
324
+ BigNumber.config({
325
+ EXPONENTIAL_AT: [-1e3, 2e3]
326
+ });
322
327
  const VIEWS_REWARD_COEFF = "0.1";
323
328
  const WDT_DECIMALS = 8;
324
329
  const calculateRewardForPost = (snapshot, viewsCount, reactionsCount, commentsCount) => {
@@ -328,11 +333,21 @@ const calculateRewardForPost = (snapshot, viewsCount, reactionsCount, commentsCo
328
333
  }
329
334
  return new BigNumber("10").plus(new BigNumber(viewsCount).multipliedBy(VIEWS_REWARD_COEFF)).plus(reactionsCount).plus(commentsCount);
330
335
  };
331
- const rewardsControllerFactory$1 = (db, wdmClient) => {
336
+ const rewardsControllerFactory$1 = (db, wdmClient, wss) => {
332
337
  const Blogpost = db.blogpost;
333
338
  const Reaction = db.reaction;
334
339
  const Comment = db.comment;
335
340
  const Reward = db.reward;
341
+ const Wallet = db.wallet;
342
+ const lookup = {};
343
+ wss.on("connection", (ws, req) => {
344
+ if (req.userId) {
345
+ lookup[req.userId] = ws;
346
+ ws.on("close", () => {
347
+ delete lookup[req.userId];
348
+ });
349
+ }
350
+ });
336
351
  const listRewards = async (req, res) => {
337
352
  const userId = new ObjectId(req.userId);
338
353
  try {
@@ -451,14 +466,69 @@ const rewardsControllerFactory$1 = (db, wdmClient) => {
451
466
  }
452
467
  res.status(200).send();
453
468
  };
454
- return { listRewards, collectTokens };
469
+ const requestDeposit = async (req, res) => {
470
+ const response = await wdmClient.createDepositRequest(
471
+ req.body.network,
472
+ req.body.amount,
473
+ req.body.token,
474
+ req.userId
475
+ );
476
+ res.status(200).send(response.data);
477
+ };
478
+ const cancelDeposit = async (req, res) => {
479
+ const response = await wdmClient.cancelDeposit(
480
+ req.body.id,
481
+ req.userId
482
+ );
483
+ res.status(200).send(response.data);
484
+ };
485
+ const getDepositConfig = async (req, res) => {
486
+ const response = await wdmClient.getDepositConfig();
487
+ res.status(200).send(response.data);
488
+ };
489
+ const handleDepositUpdate = async (req, res) => {
490
+ if (req.body.status === "TRANSFER_STATUS_COMPLETED") {
491
+ const userWallet = await Wallet.findOne({ owner: new ObjectId(req.body.user) });
492
+ const amount = new BigNumber(req.body.amount).shiftedBy(-WDT_DECIMALS).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString();
493
+ if (userWallet) {
494
+ const topupIndex = userWallet.balances.findIndex((b) => b.name === "WDT");
495
+ if (topupIndex < 0) {
496
+ userWallet.balances.push({ name: "WDT", amount: +amount, locked_amount: 0 });
497
+ } else {
498
+ userWallet.balances[topupIndex] = {
499
+ name: "WDT",
500
+ amount: userWallet.balances[topupIndex].amount + +amount,
501
+ locked_amount: userWallet.balances[topupIndex].locked_amount
502
+ };
503
+ }
504
+ await userWallet.save();
505
+ } else {
506
+ await Wallet.create({
507
+ owner: new ObjectId(req.body.user),
508
+ balances: [{ name: "WDT", amount: +amount, locked_amount: 0 }]
509
+ });
510
+ }
511
+ }
512
+ if (lookup[req.body.user]) {
513
+ lookup[req.body.user].send(JSON.stringify(req.body));
514
+ }
515
+ res.status(200).send();
516
+ };
517
+ return {
518
+ listRewards,
519
+ collectTokens,
520
+ requestDeposit,
521
+ getDepositConfig,
522
+ cancelDeposit,
523
+ handleDepositUpdate
524
+ };
455
525
  };
456
526
  var rewards_factory = rewardsControllerFactory$1;
457
527
  const rewardsControllerFactory = rewards_factory;
458
528
  const middlewareFactory = index.server;
459
- var rewards_routes = (app, db, wdmClient, origins) => {
460
- const controller = rewardsControllerFactory(db, wdmClient);
461
- const { authJwt } = middlewareFactory(db);
529
+ var rewards_routes = (app, db, wss, wdmClient, origins) => {
530
+ const controller = rewardsControllerFactory(db, wdmClient, wss);
531
+ const { authJwt, authSecret } = middlewareFactory(db);
462
532
  app.use((req, res, next) => {
463
533
  const origin = req.headers.origin;
464
534
  if (origins.includes(origin)) {
@@ -477,6 +547,26 @@ var rewards_routes = (app, db, wdmClient, origins) => {
477
547
  [authJwt.verifyToken],
478
548
  controller.collectTokens
479
549
  );
550
+ app.post(
551
+ "/api/crypto/deposit",
552
+ [authJwt.verifyToken],
553
+ controller.requestDeposit
554
+ );
555
+ app.post(
556
+ "/api/crypto/deposit/cancel",
557
+ [authJwt.verifyToken],
558
+ controller.cancelDeposit
559
+ );
560
+ app.post(
561
+ "/api/crypto/deposit/update",
562
+ [authSecret.verifySecret("POST", "/api/crypto/deposit/update", process.env.WDM_SECRET)],
563
+ controller.handleDepositUpdate
564
+ );
565
+ app.get(
566
+ "/api/crypto/deposit/config",
567
+ [],
568
+ controller.getDepositConfig
569
+ );
480
570
  };
481
571
  const ModelWallet = wallet_model;
482
572
  const ModelPayment = payment_model;
@@ -484,13 +574,13 @@ const ModelReward = reward_model;
484
574
  const RoutesPayments = payments_routes;
485
575
  const RoutesRewards = rewards_routes;
486
576
  const FactoryPayments = payments_factory;
487
- function initializePayments(app, db, wdmClient, origins, publicPath) {
577
+ function initializePayments(app, db, wss, wdmClient, origins, publicPath) {
488
578
  db.wallet = ModelWallet(db);
489
579
  db.payment = ModelPayment(db);
490
580
  db.reward = ModelReward(db);
491
581
  if (app) {
492
582
  RoutesPayments(app, db, origins, publicPath);
493
- RoutesRewards(app, db, wdmClient, origins);
583
+ RoutesRewards(app, db, wss, wdmClient, origins);
494
584
  }
495
585
  }
496
586
  var wallet_server = {
@@ -1,5 +1,5 @@
1
1
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
2
- import { s as server } from "./index-DKtnWDNC.mjs";
2
+ import { s as server } from "./index-C-8xOJnM.mjs";
3
3
  import "axios";
4
4
  import "bcryptjs";
5
5
  import "crypto";
@@ -20,11 +20,13 @@ var wallet_model = (db) => {
20
20
  },
21
21
  required: true
22
22
  },
23
- amount: {
24
- type: Number,
25
- required: true,
26
- default: 0
27
- }
23
+ balances: [{
24
+ name: String,
25
+ // Name of currency
26
+ amount: Number,
27
+ // Amount
28
+ locked_amount: Number
29
+ }]
28
30
  },
29
31
  {
30
32
  timestamps: {
@@ -318,6 +320,9 @@ var payments_routes = function(app, db, origins, publicPath) {
318
320
  };
319
321
  const ObjectId = require$$0.Types.ObjectId;
320
322
  const { BigNumber } = require$$1$1;
323
+ BigNumber.config({
324
+ EXPONENTIAL_AT: [-1e3, 2e3]
325
+ });
321
326
  const VIEWS_REWARD_COEFF = "0.1";
322
327
  const WDT_DECIMALS = 8;
323
328
  const calculateRewardForPost = (snapshot, viewsCount, reactionsCount, commentsCount) => {
@@ -327,11 +332,21 @@ const calculateRewardForPost = (snapshot, viewsCount, reactionsCount, commentsCo
327
332
  }
328
333
  return new BigNumber("10").plus(new BigNumber(viewsCount).multipliedBy(VIEWS_REWARD_COEFF)).plus(reactionsCount).plus(commentsCount);
329
334
  };
330
- const rewardsControllerFactory$1 = (db, wdmClient) => {
335
+ const rewardsControllerFactory$1 = (db, wdmClient, wss) => {
331
336
  const Blogpost = db.blogpost;
332
337
  const Reaction = db.reaction;
333
338
  const Comment = db.comment;
334
339
  const Reward = db.reward;
340
+ const Wallet = db.wallet;
341
+ const lookup = {};
342
+ wss.on("connection", (ws, req) => {
343
+ if (req.userId) {
344
+ lookup[req.userId] = ws;
345
+ ws.on("close", () => {
346
+ delete lookup[req.userId];
347
+ });
348
+ }
349
+ });
335
350
  const listRewards = async (req, res) => {
336
351
  const userId = new ObjectId(req.userId);
337
352
  try {
@@ -450,14 +465,69 @@ const rewardsControllerFactory$1 = (db, wdmClient) => {
450
465
  }
451
466
  res.status(200).send();
452
467
  };
453
- return { listRewards, collectTokens };
468
+ const requestDeposit = async (req, res) => {
469
+ const response = await wdmClient.createDepositRequest(
470
+ req.body.network,
471
+ req.body.amount,
472
+ req.body.token,
473
+ req.userId
474
+ );
475
+ res.status(200).send(response.data);
476
+ };
477
+ const cancelDeposit = async (req, res) => {
478
+ const response = await wdmClient.cancelDeposit(
479
+ req.body.id,
480
+ req.userId
481
+ );
482
+ res.status(200).send(response.data);
483
+ };
484
+ const getDepositConfig = async (req, res) => {
485
+ const response = await wdmClient.getDepositConfig();
486
+ res.status(200).send(response.data);
487
+ };
488
+ const handleDepositUpdate = async (req, res) => {
489
+ if (req.body.status === "TRANSFER_STATUS_COMPLETED") {
490
+ const userWallet = await Wallet.findOne({ owner: new ObjectId(req.body.user) });
491
+ const amount = new BigNumber(req.body.amount).shiftedBy(-WDT_DECIMALS).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString();
492
+ if (userWallet) {
493
+ const topupIndex = userWallet.balances.findIndex((b) => b.name === "WDT");
494
+ if (topupIndex < 0) {
495
+ userWallet.balances.push({ name: "WDT", amount: +amount, locked_amount: 0 });
496
+ } else {
497
+ userWallet.balances[topupIndex] = {
498
+ name: "WDT",
499
+ amount: userWallet.balances[topupIndex].amount + +amount,
500
+ locked_amount: userWallet.balances[topupIndex].locked_amount
501
+ };
502
+ }
503
+ await userWallet.save();
504
+ } else {
505
+ await Wallet.create({
506
+ owner: new ObjectId(req.body.user),
507
+ balances: [{ name: "WDT", amount: +amount, locked_amount: 0 }]
508
+ });
509
+ }
510
+ }
511
+ if (lookup[req.body.user]) {
512
+ lookup[req.body.user].send(JSON.stringify(req.body));
513
+ }
514
+ res.status(200).send();
515
+ };
516
+ return {
517
+ listRewards,
518
+ collectTokens,
519
+ requestDeposit,
520
+ getDepositConfig,
521
+ cancelDeposit,
522
+ handleDepositUpdate
523
+ };
454
524
  };
455
525
  var rewards_factory = rewardsControllerFactory$1;
456
526
  const rewardsControllerFactory = rewards_factory;
457
527
  const middlewareFactory = server;
458
- var rewards_routes = (app, db, wdmClient, origins) => {
459
- const controller = rewardsControllerFactory(db, wdmClient);
460
- const { authJwt } = middlewareFactory(db);
528
+ var rewards_routes = (app, db, wss, wdmClient, origins) => {
529
+ const controller = rewardsControllerFactory(db, wdmClient, wss);
530
+ const { authJwt, authSecret } = middlewareFactory(db);
461
531
  app.use((req, res, next) => {
462
532
  const origin = req.headers.origin;
463
533
  if (origins.includes(origin)) {
@@ -476,6 +546,26 @@ var rewards_routes = (app, db, wdmClient, origins) => {
476
546
  [authJwt.verifyToken],
477
547
  controller.collectTokens
478
548
  );
549
+ app.post(
550
+ "/api/crypto/deposit",
551
+ [authJwt.verifyToken],
552
+ controller.requestDeposit
553
+ );
554
+ app.post(
555
+ "/api/crypto/deposit/cancel",
556
+ [authJwt.verifyToken],
557
+ controller.cancelDeposit
558
+ );
559
+ app.post(
560
+ "/api/crypto/deposit/update",
561
+ [authSecret.verifySecret("POST", "/api/crypto/deposit/update", process.env.WDM_SECRET)],
562
+ controller.handleDepositUpdate
563
+ );
564
+ app.get(
565
+ "/api/crypto/deposit/config",
566
+ [],
567
+ controller.getDepositConfig
568
+ );
479
569
  };
480
570
  const ModelWallet = wallet_model;
481
571
  const ModelPayment = payment_model;
@@ -483,13 +573,13 @@ const ModelReward = reward_model;
483
573
  const RoutesPayments = payments_routes;
484
574
  const RoutesRewards = rewards_routes;
485
575
  const FactoryPayments = payments_factory;
486
- function initializePayments(app, db, wdmClient, origins, publicPath) {
576
+ function initializePayments(app, db, wss, wdmClient, origins, publicPath) {
487
577
  db.wallet = ModelWallet(db);
488
578
  db.payment = ModelPayment(db);
489
579
  db.reward = ModelReward(db);
490
580
  if (app) {
491
581
  RoutesPayments(app, db, origins, publicPath);
492
- RoutesRewards(app, db, wdmClient, origins);
582
+ RoutesRewards(app, db, wss, wdmClient, origins);
493
583
  }
494
584
  }
495
585
  var wallet_server = {
@@ -0,0 +1,54 @@
1
+ import { W as p } from "./main-BY2OvGB9.mjs";
2
+ class f extends p {
3
+ constructor() {
4
+ super(...arguments), this.group = "CapacitorStorage";
5
+ }
6
+ async configure({ group: e }) {
7
+ typeof e == "string" && (this.group = e);
8
+ }
9
+ async get(e) {
10
+ return { value: this.impl.getItem(this.applyPrefix(e.key)) };
11
+ }
12
+ async set(e) {
13
+ this.impl.setItem(this.applyPrefix(e.key), e.value);
14
+ }
15
+ async remove(e) {
16
+ this.impl.removeItem(this.applyPrefix(e.key));
17
+ }
18
+ async keys() {
19
+ return { keys: this.rawKeys().map((t) => t.substring(this.prefix.length)) };
20
+ }
21
+ async clear() {
22
+ for (const e of this.rawKeys())
23
+ this.impl.removeItem(e);
24
+ }
25
+ async migrate() {
26
+ var e;
27
+ const t = [], s = [], n = "_cap_", o = Object.keys(this.impl).filter((i) => i.indexOf(n) === 0);
28
+ for (const i of o) {
29
+ const r = i.substring(n.length), a = (e = this.impl.getItem(i)) !== null && e !== void 0 ? e : "", { value: l } = await this.get({ key: r });
30
+ typeof l == "string" ? s.push(r) : (await this.set({ key: r, value: a }), t.push(r));
31
+ }
32
+ return { migrated: t, existing: s };
33
+ }
34
+ async removeOld() {
35
+ const e = "_cap_", t = Object.keys(this.impl).filter((s) => s.indexOf(e) === 0);
36
+ for (const s of t)
37
+ this.impl.removeItem(s);
38
+ }
39
+ get impl() {
40
+ return window.localStorage;
41
+ }
42
+ get prefix() {
43
+ return this.group === "NativeStorage" ? "" : `${this.group}.`;
44
+ }
45
+ rawKeys() {
46
+ return Object.keys(this.impl).filter((e) => e.indexOf(this.prefix) === 0);
47
+ }
48
+ applyPrefix(e) {
49
+ return this.prefix + e;
50
+ }
51
+ }
52
+ export {
53
+ f as PreferencesWeb
54
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./main-5IrI2IOV.js");class p extends c.WebPlugin{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],n="_cap_",o=Object.keys(this.impl).filter(i=>i.indexOf(n)===0);for(const i of o){const r=i.substring(n.length),a=(e=this.impl.getItem(i))!==null&&e!==void 0?e:"",{value:l}=await this.get({key:r});typeof l=="string"?s.push(r):(await this.set({key:r,value:a}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}exports.PreferencesWeb=p;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.2.133",
3
+ "version": "0.2.135",
4
4
  "description": "Web3 Framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",
@@ -88,7 +88,7 @@
88
88
  </transition>
89
89
  </template>
90
90
 
91
- <style lang="scss" scoped>
91
+ <style lang="scss" >
92
92
  input, textarea, span {
93
93
  line-height: 1;
94
94
  color: inherit;
@@ -23,7 +23,7 @@
23
23
  v-slot="{
24
24
  items
25
25
  }"
26
- class="mobile:w-50 desktop:w-100 tablet:w-75 row-1 gap-thin"
26
+ class="row-1 gap-thin"
27
27
  >
28
28
  <CardBlogpost
29
29
  v-for="item in items"
@@ -9,12 +9,14 @@
9
9
  mode="out-in"
10
10
  >
11
11
  <section
12
- v-if="MOBILE_APP && FirstUse"
12
+ v-if="MOBILE_APP && FirstUse"
13
13
  class="w-100"
14
14
  >
15
- <Walkthrough
16
- @updateFirstUse="updateFirstUse"
17
- :slides="[1,2,3]"
15
+ <component
16
+ :is="Walkthrough"
17
+ @updateFirstUse="updateFirstUse"
18
+ :slides="[1,2,3]"
19
+ class="tab"
18
20
  />
19
21
  </section>
20
22
  </transition>
@@ -112,7 +114,7 @@
112
114
 
113
115
 
114
116
  <script setup>
115
- import { computed, ref, onMounted, provide, inject, onUnmounted } from 'vue'
117
+ import { computed, ref, onMounted, provide, inject, onUnmounted, defineAsyncComponent } from 'vue'
116
118
  // Router
117
119
  import { useRoute, useRouter } from 'vue-router'
118
120
  // Store
@@ -135,9 +137,9 @@
135
137
  let Walkthrough;
136
138
 
137
139
  if (__MOBILE_APP__) {
138
- Walkthrough = () => defineAsyncComponent(() =>
139
- import('@pf/src/modules/globals/components/sections/Walkthrough.vue')
140
- );
140
+ Walkthrough = defineAsyncComponent(() =>
141
+ import('@pf/src/modules/globals/components/sections/Walkthrough.vue').then(_ => _.default)
142
+ );
141
143
  } else {
142
144
  Walkthrough = null;
143
145
  }
@@ -172,7 +172,7 @@
172
172
  </Button>
173
173
 
174
174
 
175
- <!-- <Select
175
+ <Select
176
176
  v-model:select="$i18n.locale"
177
177
  :options="[{name: '🌎&nbsp;En', value: 'en'}, {name: '🇷🇺&nbsp;Ru', value: 'ru'}]"
178
178
  :property="'value'"
@@ -181,7 +181,7 @@
181
181
  'bg-light t-black': theme === 'light',
182
182
  'bg-dark t-white': theme === 'dark'
183
183
  }"
184
- /> -->
184
+ />
185
185
  </header>
186
186
  </template>
187
187
 
@@ -31,10 +31,10 @@
31
31
 
32
32
  </div>
33
33
 
34
- <WavesBackground
34
+ <!-- <WavesBackground
35
35
  :style="{ transform: tweenValues[0] ? `translateX(${tweenValues[0]}%)` : '' }"
36
36
  class="pos-fixed pos-t-0 pos-l-0 z-index-0"
37
- />
37
+ /> -->
38
38
  <!-- <ColorsBackground
39
39
  :style="{ transform: tweenValues[0] ? `translateX(${tweenValues[0]}%)` : '' }"
40
40
  class="pos-fixed pos-t-0 pos-l-0 z-index-0"
@@ -67,8 +67,8 @@
67
67
 
68
68
  import emblaCarouselVue from 'embla-carousel-vue'; // Assuming a Vue version exists
69
69
 
70
- import WavesBackground from '@/components/icons/backgrounds/WavesBackground.vue'
71
- import ColorsBackground from '@/components/icons/backgrounds/ColorsBackground.vue'
70
+ // import WavesBackground from '@/components/icons/backgrounds/WavesBackground.vue'
71
+ // import ColorsBackground from '@/components/icons/backgrounds/ColorsBackground.vue'
72
72
 
73
73
  const props = defineProps(['slides', 'options']);
74
74
  const emits = defineEmits(['updateFirstUse'])
@@ -1,13 +1,13 @@
1
- // Importing Localization
1
+ // Components
2
+ // import Client from "./components/layouts/Client.vue"
3
+
2
4
  import getBrowserLocale from './localization/methods/get-browser-locale.js';
3
5
  import VueI18n from './localization/vue-i18n.js';
4
- // Importing Vuex store modules
5
- import * as globalStore from './store/globals.js';
6
6
 
7
- // Since you didn't specify routes for the client, assuming there are none at this time
7
+ import * as globalStore from './store/globals.js';
8
8
 
9
- // Exporting localization methods, Vuex store
10
9
  export {
10
+ // Client,
11
11
  getBrowserLocale,
12
12
  VueI18n,
13
13
  globalStore
@@ -20,11 +20,11 @@ const i18n = createI18n({
20
20
  locale: 'en',
21
21
  fallbackLocale: {
22
22
  'en': ['en-default'],
23
- 'ru': ['ru-default'],
24
- 'zh': ['zh-default'],
25
- 'fr': ['fr-default'],
26
- 'de': ['de-default'],
27
- 'it': ['it-default'],
23
+ 'ru': ['ru-default', 'en-default'],
24
+ 'zh': ['zh-default', 'en-default'],
25
+ 'fr': ['fr-default', 'en-default'],
26
+ 'de': ['de-default', 'en-default'],
27
+ 'it': ['it-default', 'en-default'],
28
28
  },
29
29
  legacy: false,
30
30
  globalInjection: true,
@@ -41,9 +41,8 @@
41
41
 
42
42
  <script setup>
43
43
  import { useI18n } from 'vue-i18n';
44
- import ConnectMetamask from '@/components/elements/ConnectMetamask.vue'
45
- import ButtonAddWDT from '@/components/elements/ButtonAddWDT.vue'
46
- import ButtonSwitchToPolygon from '@/components/elements/ButtonSwitchToPolygon.vue'
44
+
45
+ import ConnectMetamask from '@pf/src/modules/wallet/views/components/elements/ConnectMetamask.vue'
47
46
 
48
47
  const text = {
49
48
  messages: {
@@ -48,14 +48,9 @@ import { useI18n } from 'vue-i18n';
48
48
  import Shader from '@pf/src/components/Shader/Shader.vue'
49
49
 
50
50
  import IconEarn from '@pf/src/modules/icons/entities/IconEarn.vue'
51
-
52
51
  import IconInfo from '@pf/src/modules/icons/navigation/IconInfo.vue'
53
52
 
54
-
55
- import ConnectMetamask from '@/components/elements/ConnectMetamask.vue'
56
-
57
- import ButtonAddWDT from '@/components/elements/ButtonAddWDT.vue'
58
- import ButtonSwitchToPolygon from '@/components/elements/ButtonSwitchToPolygon.vue'
53
+ import ConnectMetamask from '@pf/src/modules/wallet/views/components/elements/ConnectMetamask.vue'
59
54
 
60
55
  const props = defineProps({
61
56
  mockupImage: {
@@ -0,0 +1,22 @@
1
+ const crypto = require('crypto');
2
+
3
+ const middlewareFactory = () => {
4
+ const verifySecret = (method, endpoint, secret) => async (req, res, next) => {
5
+ const requestSignature = req.headers.signature;
6
+
7
+ const signature = crypto
8
+ .createHmac('sha256', secret)
9
+ .update(method + endpoint)
10
+ .digest('hex');
11
+
12
+ if (signature === requestSignature) {
13
+ return next();
14
+ }
15
+
16
+ res.status(403).send('Forbidden');
17
+ };
18
+
19
+ return { verifySecret };
20
+ };
21
+
22
+ module.exports = middlewareFactory;
@@ -1,14 +1,16 @@
1
1
  // middlewareIndexFactory.js
2
2
 
3
3
  const middlewareIndexFactory = (db) => {
4
- const authJwt = require("./authJwt")(db);;
5
- const verifySignUp = require("./verifySignUp")(db);;
6
- const verifyUser = require("./verifyUser")(db);;
7
- const verifyInvites = require("./verifyInvites")(db);;
8
- const verifyCategory = require("./verifyCategory")(db);;
4
+ const authJwt = require("./authJwt")(db);
5
+ const authSecret = require("./authSecret")();
6
+ const verifySignUp = require("./verifySignUp")(db);
7
+ const verifyUser = require("./verifyUser")(db);
8
+ const verifyInvites = require("./verifyInvites")(db);
9
+ const verifyCategory = require("./verifyCategory")(db);
9
10
 
10
11
  return {
11
12
  authJwt,
13
+ authSecret,
12
14
  verifySignUp,
13
15
  verifyUser,
14
16
  verifyInvites,