@ozdao/prometheus-framework 0.2.156 → 0.2.157

Sign up to get free protection for your applications and to get access to all the features.
Files changed (318) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +1 -1
  2. package/dist/_virtual/_commonjsHelpers.js +5 -3
  3. package/dist/_virtual/purify.cjs +1 -0
  4. package/dist/_virtual/purify.js +4 -0
  5. package/dist/builder.js +822 -0
  6. package/dist/builder.mjs +801 -0
  7. package/dist/{main-D_RRsfEH.mjs → main-Ba3SEUWZ.mjs} +1812 -1774
  8. package/dist/main-ldzk-jIP.js +92 -0
  9. package/dist/main.css +1 -1
  10. package/dist/node_modules/dompurify/dist/purify.cjs +2 -0
  11. package/dist/node_modules/dompurify/dist/purify.js +531 -0
  12. package/dist/node_modules/isomorphic-dompurify/browser.cjs +1 -0
  13. package/dist/node_modules/isomorphic-dompurify/browser.js +7 -0
  14. package/dist/products.server.js +1 -1
  15. package/dist/products.server.mjs +1 -1
  16. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/regex.cjs +1 -0
  17. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/regex.js +4 -0
  18. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/rng.cjs +1 -0
  19. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/rng.js +9 -0
  20. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/stringify.cjs +1 -0
  21. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/stringify.js +13 -0
  22. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/v4.cjs +1 -0
  23. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/v4.js +10 -0
  24. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/validate.cjs +1 -0
  25. package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  26. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  28. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +47 -30
  30. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +9 -9
  31. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +10 -10
  33. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +14 -14
  34. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +9 -9
  35. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +11 -11
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +34 -34
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +27 -27
  38. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -0
  39. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +58 -0
  40. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +11 -180
  42. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -0
  43. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +190 -0
  44. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +9 -7
  46. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +48 -43
  48. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  50. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +41 -63
  52. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  54. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +37 -36
  56. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +5 -5
  58. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/community/router/blogposts.js +3 -0
  62. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +13 -13
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +105 -53
  65. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +92 -98
  67. package/dist/prometheus-framework/src/modules/constructor/components/sections/Viewer.vue.cjs +1 -0
  68. package/dist/prometheus-framework/src/modules/constructor/components/sections/Viewer.vue.js +39 -0
  69. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +13 -12
  75. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +19 -19
  77. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  81. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +7 -7
  82. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  84. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +2 -2
  86. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +13 -15
  88. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  92. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +4 -4
  96. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +8 -8
  97. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/orders/orders.client.js +34 -33
  101. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  105. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +14 -14
  109. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +10 -10
  113. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +5 -5
  115. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  117. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +13 -7
  119. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +18 -18
  121. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  123. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +6 -6
  124. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +11 -11
  126. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +17 -17
  128. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +30 -30
  130. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +9 -9
  131. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  133. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  135. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  137. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  139. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  141. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +16 -16
  143. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/spots/router/spots.js +4 -0
  145. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  147. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +22 -22
  148. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +4 -4
  149. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +17 -17
  151. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
  153. package/dist/prometheus-framework.cjs.js +1 -1
  154. package/dist/prometheus-framework.es.js +1 -1
  155. package/dist/style.css +1 -1
  156. package/dist/{web-3rnOWrQO.mjs → web-CT2tGYho.mjs} +1 -1
  157. package/dist/{web-C04IcLk4.js → web-DWjMBTNi.js} +1 -1
  158. package/package.json +3 -2
  159. package/src/builder/builder.js +14 -0
  160. package/src/builder/modes/spa.dev.js +100 -0
  161. package/src/builder/modes/spa.prod.js +59 -0
  162. package/src/builder/modes/ssr.dev.js +184 -0
  163. package/src/builder/modes/ssr.prod.js +76 -0
  164. package/src/builder/ssr/ssr-render-html.js +57 -0
  165. package/src/builder/ssr/ssr-transform-webpack-stats.js +54 -0
  166. package/src/builder/templates/page.html +37 -0
  167. package/src/builder/templates/screen.html +33 -0
  168. package/src/builder/utils/hot-reload.js +5 -0
  169. package/src/builder/webpack/index.js +13 -0
  170. package/src/builder/webpack/webpack.config.base.js +127 -0
  171. package/src/builder/webpack/webpack.config.client.js +78 -0
  172. package/src/builder/webpack/webpack.config.server.js +31 -0
  173. package/src/builder/webpack/webpack.config.spa.js +80 -0
  174. package/src/builder/webpack/webpack.config.ssr.js +57 -0
  175. package/src/components/Breadcrumbs/Breadcrumbs.vue +39 -16
  176. package/src/components/Field/Field.vue +21 -2
  177. package/src/components/Popup/Popup.vue +1 -1
  178. package/src/modules/auth/store/auth.js +1 -2
  179. package/src/modules/backoffice/components/layouts/Backoffice.vue +36 -62
  180. package/src/modules/backoffice/components/pages/Dashboard.vue +2 -125
  181. package/src/modules/backoffice/components/partials/Sidebar.vue +176 -0
  182. package/src/modules/backoffice/router/admin.js +0 -15
  183. package/src/modules/backoffice/router/backoffice.js +5 -1
  184. package/src/modules/community/components/blocks/CardBlogpost.vue +6 -1
  185. package/src/modules/community/components/pages/BlogPost.vue +30 -67
  186. package/src/modules/community/components/sections/Comments.vue +1 -1
  187. package/src/modules/community/router/blogposts.js +4 -0
  188. package/src/modules/constructor/components/elements/Textarea.vue +197 -79
  189. package/src/modules/constructor/components/sections/Constructor.vue +19 -32
  190. package/src/modules/constructor/components/sections/Viewer.vue +53 -0
  191. package/src/modules/globals/components/layouts/Client.vue +21 -7
  192. package/src/modules/globals/components/layouts/Empty.vue +1 -6
  193. package/src/modules/globals/components/pages/404.vue +1 -1
  194. package/src/modules/globals/components/sections/SectionPageTitle.vue +2 -2
  195. package/src/modules/globals/mixins/mixins.js +129 -97
  196. package/src/modules/landing/router/landing.js +3 -0
  197. package/src/modules/marketplace/components/pages/Catalog.vue +1 -1
  198. package/src/modules/middlewares/client/auth.validation.js +14 -15
  199. package/src/modules/orders/orders.client.js +4 -2
  200. package/src/modules/organizations/router/organizations.js +9 -3
  201. package/src/modules/pages/controllers/factories/pages.factory.js +106 -0
  202. package/src/modules/pages/controllers/routes/pages.routes.js +24 -0
  203. package/src/modules/pages/models/page.model.js +18 -11
  204. package/src/modules/pages/pages.client.js +40 -0
  205. package/src/modules/pages/pages.server.js +32 -0
  206. package/src/modules/pages/views/components/blocks/CardPage.vue +123 -0
  207. package/src/modules/pages/views/components/pages/Page.vue +173 -0
  208. package/src/modules/pages/views/components/pages/PageEdit.vue +121 -0
  209. package/src/modules/pages/views/components/pages/Pages.vue +60 -0
  210. package/src/modules/pages/views/components/partials/SidebarPages.vue +112 -0
  211. package/src/modules/pages/views/router/pages.backoffice.router.js +46 -0
  212. package/src/modules/pages/views/router/pages.router.js +25 -0
  213. package/src/modules/pages/views/store/pages.js +78 -0
  214. package/src/modules/pages/views/store/pages.store.js +5 -0
  215. package/src/modules/products/controllers/leftovers.controller.js +1 -1
  216. package/src/modules/spots/router/spots.js +4 -0
  217. package/src/styles/base/all.scss +66 -53
  218. package/dist/index-BshfsiQG.js +0 -220
  219. package/dist/index-C-8xOJnM.mjs +0 -244
  220. package/dist/index-C-DW6ra2.js +0 -260
  221. package/dist/index-CDbtWkBj.js +0 -243
  222. package/dist/index-D4j29ivg.mjs +0 -261
  223. package/dist/index-DKtnWDNC.mjs +0 -221
  224. package/dist/index-DNI4aUP2.js +0 -259
  225. package/dist/index-Tcyehi73.mjs +0 -260
  226. package/dist/main-3Vn8SU2y.mjs +0 -14509
  227. package/dist/main-5IrI2IOV.js +0 -92
  228. package/dist/main-BFKp44Ze.mjs +0 -14509
  229. package/dist/main-BF_nMkug.js +0 -92
  230. package/dist/main-BHr0-Z3t.mjs +0 -14510
  231. package/dist/main-BY2OvGB9.mjs +0 -14509
  232. package/dist/main-Bcj0J6tP.mjs +0 -14509
  233. package/dist/main-Bq5YvSWe.mjs +0 -14509
  234. package/dist/main-BxHxhrZ_.js +0 -92
  235. package/dist/main-By5Tbyui.js +0 -92
  236. package/dist/main-CEoQQpJV.js +0 -92
  237. package/dist/main-CI9l9xMs.js +0 -92
  238. package/dist/main-Ckn0Sslr.js +0 -92
  239. package/dist/main-DBv451oC.js +0 -92
  240. package/dist/main-DPg58GOU.mjs +0 -14509
  241. package/dist/main-DTHFR7H_.mjs +0 -14510
  242. package/dist/main-DxyAONrm.mjs +0 -14438
  243. package/dist/main-gY_284gJ.js +0 -92
  244. package/dist/main-wXdocsbd.js +0 -92
  245. package/dist/middlewares.server.js +0 -19
  246. package/dist/middlewares.server.mjs +0 -20
  247. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +0 -1
  248. package/dist/prometheus-framework/src/components/Address/Address.vue.js +0 -89
  249. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +0 -1
  250. package/dist/prometheus-framework/src/components/Button/Button.vue.js +0 -95
  251. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +0 -1
  252. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +0 -26
  253. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +0 -1
  254. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +0 -57
  255. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +0 -1
  256. package/dist/prometheus-framework/src/components/Field/Field.vue.js +0 -83
  257. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +0 -1
  258. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +0 -127
  259. package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +0 -1
  260. package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +0 -13
  261. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +0 -1
  262. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +0 -77
  263. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +0 -1
  264. package/dist/prometheus-framework/src/components/Select/Select.vue.js +0 -103
  265. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +0 -1
  266. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +0 -36
  267. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +0 -1
  268. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +0 -44
  269. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +0 -1
  270. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +0 -125
  271. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +0 -2
  272. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +0 -47
  273. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +0 -2
  274. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +0 -46
  275. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +0 -4
  276. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +0 -65
  277. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +0 -5
  278. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -67
  279. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +0 -1
  280. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +0 -30
  281. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +0 -1
  282. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +0 -42
  283. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +0 -1
  284. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +0 -26
  285. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +0 -1
  286. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +0 -42
  287. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +0 -1
  288. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +0 -26
  289. package/dist/queryProcessor-g8208K6g.mjs +0 -178
  290. package/dist/queryProcessor-haY_gPGg.js +0 -177
  291. package/dist/web-5eyiz9L7.mjs +0 -54
  292. package/dist/web-BPUCAST-.mjs +0 -54
  293. package/dist/web-Be96Xqd4.mjs +0 -54
  294. package/dist/web-BmdKi_fZ.js +0 -1
  295. package/dist/web-Bqpk8Mpk.js +0 -1
  296. package/dist/web-BwHcRwYc.mjs +0 -54
  297. package/dist/web-BzUFKqzw.js +0 -1
  298. package/dist/web-CcFPvlkl.js +0 -1
  299. package/dist/web-CgjTW1bL.js +0 -1
  300. package/dist/web-Cw0ijzjY.js +0 -1
  301. package/dist/web-CwTWV4ca.mjs +0 -54
  302. package/dist/web-DHeZE1jJ.js +0 -1
  303. package/dist/web-DZUec7pP.js +0 -1
  304. package/dist/web-Dh669DqQ.mjs +0 -54
  305. package/dist/web-DkWpHYrh.mjs +0 -54
  306. package/dist/web-Dt2RCU54.js +0 -1
  307. package/dist/web-krQQeSb6.mjs +0 -54
  308. package/dist/web-nqFW_Sd1.mjs +0 -54
  309. package/src/modules/community/controllers/comments.controller.aggr.js +0 -280
  310. package/src/modules/community/controllers/comments.controller.populate.js +0 -180
  311. package/src/modules/constructor/components/elements/H2.vue +0 -102
  312. package/src/modules/pages/components/pages/Page.vue +0 -174
  313. package/src/modules/pages/components/pages/PageEdit.vue +0 -159
  314. package/src/modules/pages/components/pages/Pages.vue +0 -108
  315. package/src/modules/pages/controllers/pages.controller.js +0 -71
  316. package/src/modules/pages/router/pages.router.js +0 -15
  317. package/src/modules/pages/routes/pages.routes.js +0 -30
  318. package/src/modules/pages/store/pages.js +0 -94
@@ -1,259 +0,0 @@
1
- "use strict";
2
- const require$$0 = require("jsonwebtoken");
3
- const require$$0$1 = require("crypto");
4
- const require$$0$2 = require("mongodb");
5
- var authJwt;
6
- var hasRequiredAuthJwt;
7
- function requireAuthJwt() {
8
- if (hasRequiredAuthJwt) return authJwt;
9
- hasRequiredAuthJwt = 1;
10
- const jwt = require$$0;
11
- const middlewareFactory = (db) => {
12
- const User = db.user;
13
- const Role = db.role;
14
- const verifyToken = (continueOnFail = false) => {
15
- return async (req, res, next) => {
16
- try {
17
- if (!req.cookies.user) {
18
- req.userId = null;
19
- if (continueOnFail) {
20
- return next();
21
- } else {
22
- return res.status(401).send({ message: "Unauthorized: No user cookie" });
23
- }
24
- }
25
- let user = JSON.parse(req.cookies.user);
26
- let token = req.headers["x-access-token"] || user.accessToken;
27
- if (!token) {
28
- req.userId = null;
29
- if (continueOnFail) {
30
- return next();
31
- } else {
32
- return res.status(401).send({ message: "Unauthorized: No token provided" });
33
- }
34
- }
35
- const decoded = jwt.verify(token, process.env.SECRET_KEY);
36
- req.userId = decoded._id;
37
- next();
38
- } catch (err) {
39
- console.log(err);
40
- req.userId = null;
41
- if (continueOnFail) {
42
- next();
43
- } else {
44
- res.status(401).send({ message: "Unauthorized: Invalid token" });
45
- }
46
- }
47
- };
48
- };
49
- const checkRole = (roleToCheck) => async (req, res, next) => {
50
- try {
51
- const user = await User.findById(req.userId).exec();
52
- if (!user) {
53
- return res.status(404).send({ message: "User Not found." });
54
- }
55
- const roles = await Role.find({ _id: { $in: user.roles } }).exec();
56
- for (let role of roles) {
57
- if (role.name === roleToCheck) {
58
- next();
59
- return;
60
- }
61
- }
62
- res.status(403).send({ message: `Require ${roleToCheck} Role!` });
63
- } catch (err) {
64
- res.status(500).send({ message: err.message });
65
- }
66
- };
67
- const isAdmin = checkRole("admin");
68
- const isModerator = checkRole("moderator");
69
- return {
70
- verifyToken,
71
- isAdmin,
72
- isModerator
73
- };
74
- };
75
- authJwt = middlewareFactory;
76
- return authJwt;
77
- }
78
- var authSecret;
79
- var hasRequiredAuthSecret;
80
- function requireAuthSecret() {
81
- if (hasRequiredAuthSecret) return authSecret;
82
- hasRequiredAuthSecret = 1;
83
- const crypto = require$$0$1;
84
- const middlewareFactory = () => {
85
- const verifySecret = (method, endpoint, secret) => async (req, res, next) => {
86
- const requestSignature = req.headers.signature;
87
- const signature = crypto.createHmac("sha256", secret).update(method + endpoint).digest("hex");
88
- if (signature === requestSignature) {
89
- return next();
90
- }
91
- res.status(403).send("Forbidden");
92
- };
93
- return { verifySecret };
94
- };
95
- authSecret = middlewareFactory;
96
- return authSecret;
97
- }
98
- var verifySignUp;
99
- var hasRequiredVerifySignUp;
100
- function requireVerifySignUp() {
101
- if (hasRequiredVerifySignUp) return verifySignUp;
102
- hasRequiredVerifySignUp = 1;
103
- const middlewareFactory = (db) => {
104
- const User = db.user;
105
- db.role;
106
- const checkDuplicateUsernameOrEmail = async (req, res, next) => {
107
- const { type, email, phone } = req.body;
108
- console.log(req.body);
109
- let query;
110
- if (type === "phone" && phone) {
111
- query = { phone };
112
- }
113
- if (type === "email" && email) {
114
- query = { email };
115
- }
116
- try {
117
- const user = await User.findOne(query).exec();
118
- if (user) {
119
- console.log(`USER_ALREADY_REGISTERED`);
120
- res.status(400).send({ errorCode: "USER_ALREADY_REGISTERED" });
121
- return;
122
- }
123
- next();
124
- } catch (err) {
125
- console.log(err);
126
- res.status(500).send({ message: err.message });
127
- }
128
- };
129
- const checkRolesExisted = (req, res, next) => {
130
- if (req.body.roles) {
131
- for (let i = 0; i < req.body.roles.length; i++) {
132
- if (!ROLES.includes(req.body.roles[i])) {
133
- console.log(`Failed! Role ${req.body.roles[i]} does not exist!`);
134
- res.status(400).send({
135
- message: `Failed! Role ${req.body.roles[i]} does not exist!`
136
- });
137
- return;
138
- }
139
- }
140
- }
141
- next();
142
- };
143
- return {
144
- checkDuplicateUsernameOrEmail,
145
- checkRolesExisted
146
- };
147
- };
148
- verifySignUp = middlewareFactory;
149
- return verifySignUp;
150
- }
151
- var verifyUser;
152
- var hasRequiredVerifyUser;
153
- function requireVerifyUser() {
154
- if (hasRequiredVerifyUser) return verifyUser;
155
- hasRequiredVerifyUser = 1;
156
- const middlewareFactory = (db) => {
157
- const User = db.user;
158
- db.role;
159
- const checkUserExist = async (req, res, next) => {
160
- const { type, email, phone } = req.body;
161
- let query;
162
- if (type === "phone" && phone) {
163
- query = { phone };
164
- }
165
- if (type === "email" && email) {
166
- query = { email };
167
- }
168
- try {
169
- const user = await User.findOne(query).exec();
170
- if (!user) {
171
- console.log(query);
172
- res.status(400).send({ errorCode: "USER_NOT_REGISTERED_YET" });
173
- return;
174
- }
175
- next();
176
- } catch (err) {
177
- res.status(500).send({ message: err.message });
178
- }
179
- };
180
- return {
181
- checkUserExist
182
- };
183
- };
184
- verifyUser = middlewareFactory;
185
- return verifyUser;
186
- }
187
- var verifyInvites;
188
- var hasRequiredVerifyInvites;
189
- function requireVerifyInvites() {
190
- if (hasRequiredVerifyInvites) return verifyInvites;
191
- hasRequiredVerifyInvites = 1;
192
- const { ObjectId } = require$$0$2;
193
- const middlewareFactory = (db) => {
194
- const User = db.user;
195
- const Invite = db.invite;
196
- const Membership = db.membership;
197
- const checkInviteExist = async (req, res, next) => {
198
- for (let invite of req.body.invites) {
199
- let query;
200
- if (invite.contact.includes("@")) {
201
- query = { invitedEmail: invite.contact };
202
- } else {
203
- query = { invitedPhone: invite.contact };
204
- }
205
- query["owner.target"] = req.body.owner.target;
206
- const userInvite = await Invite.findOne(query).exec();
207
- if (userInvite) {
208
- console.log(userInvite);
209
- res.status(400).send({ message: "Инвайт c таким email или телефоном уже создан!" });
210
- return;
211
- }
212
- }
213
- next();
214
- };
215
- const checkUsersExist = async (req, res, next) => {
216
- for (let invite of req.body.invites) {
217
- let query;
218
- if (invite.contact.includes("@")) {
219
- query = { email: invite.contact };
220
- } else {
221
- query = { phone: invite.contact };
222
- }
223
- const user = await User.findOne(query).exec();
224
- console.log(req.params);
225
- if (user) {
226
- const membership = await Membership.findOne({ user: new ObjectId(user._id), "owner.target": req.body.owner.target }).exec();
227
- if (membership) {
228
- console.log(membership);
229
- res.status(400).send({ message: "Пользователь с таким email или телефоном уже добавлен в организацию!" });
230
- return;
231
- }
232
- }
233
- }
234
- next();
235
- };
236
- return {
237
- checkInviteExist,
238
- checkUsersExist
239
- };
240
- };
241
- verifyInvites = middlewareFactory;
242
- return verifyInvites;
243
- }
244
- const middlewareIndexFactory = (db) => {
245
- const authJwt2 = requireAuthJwt()(db);
246
- const authSecret2 = requireAuthSecret()();
247
- const verifySignUp2 = requireVerifySignUp()(db);
248
- const verifyUser2 = requireVerifyUser()(db);
249
- const verifyInvites2 = requireVerifyInvites()(db);
250
- return {
251
- authJwt: authJwt2,
252
- authSecret: authSecret2,
253
- verifySignUp: verifySignUp2,
254
- verifyUser: verifyUser2,
255
- verifyInvites: verifyInvites2
256
- };
257
- };
258
- var middlewares = middlewareIndexFactory;
259
- exports.middlewares = middlewares;
@@ -1,260 +0,0 @@
1
- import require$$0 from "jsonwebtoken";
2
- import require$$0$1 from "crypto";
3
- import require$$0$2 from "mongodb";
4
- var authJwt;
5
- var hasRequiredAuthJwt;
6
- function requireAuthJwt() {
7
- if (hasRequiredAuthJwt) return authJwt;
8
- hasRequiredAuthJwt = 1;
9
- const jwt = require$$0;
10
- const middlewareFactory = (db) => {
11
- const User = db.user;
12
- const Role = db.role;
13
- const verifyToken = (continueOnFail = false) => {
14
- return async (req, res, next) => {
15
- try {
16
- if (!req.cookies.user) {
17
- req.userId = null;
18
- if (continueOnFail) {
19
- return next();
20
- } else {
21
- return res.status(401).send({ message: "Unauthorized: No user cookie" });
22
- }
23
- }
24
- let user = JSON.parse(req.cookies.user);
25
- let token = req.headers["x-access-token"] || user.accessToken;
26
- if (!token) {
27
- req.userId = null;
28
- if (continueOnFail) {
29
- return next();
30
- } else {
31
- return res.status(401).send({ message: "Unauthorized: No token provided" });
32
- }
33
- }
34
- const decoded = jwt.verify(token, process.env.SECRET_KEY);
35
- req.userId = decoded._id;
36
- next();
37
- } catch (err) {
38
- console.log(err);
39
- req.userId = null;
40
- if (continueOnFail) {
41
- next();
42
- } else {
43
- res.status(401).send({ message: "Unauthorized: Invalid token" });
44
- }
45
- }
46
- };
47
- };
48
- const checkRole = (roleToCheck) => async (req, res, next) => {
49
- try {
50
- const user = await User.findById(req.userId).exec();
51
- if (!user) {
52
- return res.status(404).send({ message: "User Not found." });
53
- }
54
- const roles = await Role.find({ _id: { $in: user.roles } }).exec();
55
- for (let role of roles) {
56
- if (role.name === roleToCheck) {
57
- next();
58
- return;
59
- }
60
- }
61
- res.status(403).send({ message: `Require ${roleToCheck} Role!` });
62
- } catch (err) {
63
- res.status(500).send({ message: err.message });
64
- }
65
- };
66
- const isAdmin = checkRole("admin");
67
- const isModerator = checkRole("moderator");
68
- return {
69
- verifyToken,
70
- isAdmin,
71
- isModerator
72
- };
73
- };
74
- authJwt = middlewareFactory;
75
- return authJwt;
76
- }
77
- var authSecret;
78
- var hasRequiredAuthSecret;
79
- function requireAuthSecret() {
80
- if (hasRequiredAuthSecret) return authSecret;
81
- hasRequiredAuthSecret = 1;
82
- const crypto = require$$0$1;
83
- const middlewareFactory = () => {
84
- const verifySecret = (method, endpoint, secret) => async (req, res, next) => {
85
- const requestSignature = req.headers.signature;
86
- const signature = crypto.createHmac("sha256", secret).update(method + endpoint).digest("hex");
87
- if (signature === requestSignature) {
88
- return next();
89
- }
90
- res.status(403).send("Forbidden");
91
- };
92
- return { verifySecret };
93
- };
94
- authSecret = middlewareFactory;
95
- return authSecret;
96
- }
97
- var verifySignUp;
98
- var hasRequiredVerifySignUp;
99
- function requireVerifySignUp() {
100
- if (hasRequiredVerifySignUp) return verifySignUp;
101
- hasRequiredVerifySignUp = 1;
102
- const middlewareFactory = (db) => {
103
- const User = db.user;
104
- db.role;
105
- const checkDuplicateUsernameOrEmail = async (req, res, next) => {
106
- const { type, email, phone } = req.body;
107
- console.log(req.body);
108
- let query;
109
- if (type === "phone" && phone) {
110
- query = { phone };
111
- }
112
- if (type === "email" && email) {
113
- query = { email };
114
- }
115
- try {
116
- const user = await User.findOne(query).exec();
117
- if (user) {
118
- console.log(`USER_ALREADY_REGISTERED`);
119
- res.status(400).send({ errorCode: "USER_ALREADY_REGISTERED" });
120
- return;
121
- }
122
- next();
123
- } catch (err) {
124
- console.log(err);
125
- res.status(500).send({ message: err.message });
126
- }
127
- };
128
- const checkRolesExisted = (req, res, next) => {
129
- if (req.body.roles) {
130
- for (let i = 0; i < req.body.roles.length; i++) {
131
- if (!ROLES.includes(req.body.roles[i])) {
132
- console.log(`Failed! Role ${req.body.roles[i]} does not exist!`);
133
- res.status(400).send({
134
- message: `Failed! Role ${req.body.roles[i]} does not exist!`
135
- });
136
- return;
137
- }
138
- }
139
- }
140
- next();
141
- };
142
- return {
143
- checkDuplicateUsernameOrEmail,
144
- checkRolesExisted
145
- };
146
- };
147
- verifySignUp = middlewareFactory;
148
- return verifySignUp;
149
- }
150
- var verifyUser;
151
- var hasRequiredVerifyUser;
152
- function requireVerifyUser() {
153
- if (hasRequiredVerifyUser) return verifyUser;
154
- hasRequiredVerifyUser = 1;
155
- const middlewareFactory = (db) => {
156
- const User = db.user;
157
- db.role;
158
- const checkUserExist = async (req, res, next) => {
159
- const { type, email, phone } = req.body;
160
- let query;
161
- if (type === "phone" && phone) {
162
- query = { phone };
163
- }
164
- if (type === "email" && email) {
165
- query = { email };
166
- }
167
- try {
168
- const user = await User.findOne(query).exec();
169
- if (!user) {
170
- console.log(query);
171
- res.status(400).send({ errorCode: "USER_NOT_REGISTERED_YET" });
172
- return;
173
- }
174
- next();
175
- } catch (err) {
176
- res.status(500).send({ message: err.message });
177
- }
178
- };
179
- return {
180
- checkUserExist
181
- };
182
- };
183
- verifyUser = middlewareFactory;
184
- return verifyUser;
185
- }
186
- var verifyInvites;
187
- var hasRequiredVerifyInvites;
188
- function requireVerifyInvites() {
189
- if (hasRequiredVerifyInvites) return verifyInvites;
190
- hasRequiredVerifyInvites = 1;
191
- const { ObjectId } = require$$0$2;
192
- const middlewareFactory = (db) => {
193
- const User = db.user;
194
- const Invite = db.invite;
195
- const Membership = db.membership;
196
- const checkInviteExist = async (req, res, next) => {
197
- for (let invite of req.body.invites) {
198
- let query;
199
- if (invite.contact.includes("@")) {
200
- query = { invitedEmail: invite.contact };
201
- } else {
202
- query = { invitedPhone: invite.contact };
203
- }
204
- query["owner.target"] = req.body.owner.target;
205
- const userInvite = await Invite.findOne(query).exec();
206
- if (userInvite) {
207
- console.log(userInvite);
208
- res.status(400).send({ message: "Инвайт c таким email или телефоном уже создан!" });
209
- return;
210
- }
211
- }
212
- next();
213
- };
214
- const checkUsersExist = async (req, res, next) => {
215
- for (let invite of req.body.invites) {
216
- let query;
217
- if (invite.contact.includes("@")) {
218
- query = { email: invite.contact };
219
- } else {
220
- query = { phone: invite.contact };
221
- }
222
- const user = await User.findOne(query).exec();
223
- console.log(req.params);
224
- if (user) {
225
- const membership = await Membership.findOne({ user: new ObjectId(user._id), "owner.target": req.body.owner.target }).exec();
226
- if (membership) {
227
- console.log(membership);
228
- res.status(400).send({ message: "Пользователь с таким email или телефоном уже добавлен в организацию!" });
229
- return;
230
- }
231
- }
232
- }
233
- next();
234
- };
235
- return {
236
- checkInviteExist,
237
- checkUsersExist
238
- };
239
- };
240
- verifyInvites = middlewareFactory;
241
- return verifyInvites;
242
- }
243
- const middlewareIndexFactory = (db) => {
244
- const authJwt2 = requireAuthJwt()(db);
245
- const authSecret2 = requireAuthSecret()();
246
- const verifySignUp2 = requireVerifySignUp()(db);
247
- const verifyUser2 = requireVerifyUser()(db);
248
- const verifyInvites2 = requireVerifyInvites()(db);
249
- return {
250
- authJwt: authJwt2,
251
- authSecret: authSecret2,
252
- verifySignUp: verifySignUp2,
253
- verifyUser: verifyUser2,
254
- verifyInvites: verifyInvites2
255
- };
256
- };
257
- var middlewares = middlewareIndexFactory;
258
- export {
259
- middlewares as m
260
- };