@ozdao/prometheus-framework 0.2.156 → 0.2.158

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