@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
@@ -0,0 +1,822 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ const require$$0 = require("path");
25
+ const require$$1$1 = require("webpack");
26
+ const require$$2$1 = require("compression");
27
+ const require$$3$1 = require("readline");
28
+ const require$$4 = require("chalk");
29
+ const require$$5 = require("webpack-dev-middleware");
30
+ const require$$6 = require("webpack-hot-middleware");
31
+ const require$$1 = require("mustache");
32
+ const require$$2 = require("chokidar");
33
+ const require$$3 = require("fs");
34
+ const require$$9 = require("webpack-hot-middleware/client.js");
35
+ const require$$1$2 = require("express");
36
+ const require$$7 = require("connect-history-api-fallback");
37
+ const require$$2$2 = require("vue-loader");
38
+ const require$$3$2 = require("mini-css-extract-plugin");
39
+ const require$$4$1 = require("clean-webpack-plugin");
40
+ const require$$5$1 = require("webpack-bundle-analyzer");
41
+ const require$$6$1 = require("dotenv-webpack");
42
+ const require$$1$3 = require("glob-all");
43
+ const require$$3$3 = require("webpack-merge");
44
+ const require$$4$2 = require("webpack-stats-plugin");
45
+ const require$$6$2 = require("css-minimizer-webpack-plugin");
46
+ const require$$7$1 = require("terser-webpack-plugin");
47
+ const require$$8 = require("workbox-webpack-plugin");
48
+ const require$$9$1 = require("purgecss-webpack-plugin");
49
+ const require$$2$3 = require("webpack-node-externals");
50
+ const require$$6$3 = require("copy-webpack-plugin");
51
+ const require$$8$1 = require("html-webpack-plugin");
52
+ const require$$4$3 = require("webpack-manifest-plugin");
53
+ function getDefaultExportFromCjs(x) {
54
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
55
+ }
56
+ function commonjsRequire(path2) {
57
+ throw new Error('Could not dynamically require "' + path2 + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
58
+ }
59
+ const path$9 = require$$0;
60
+ const Mustache$1 = require$$1;
61
+ const chokidar = require$$2;
62
+ const { promises: { readFile } } = require$$3;
63
+ const templatePath$1 = path$9.resolve(__dirname, "../templates/page.html");
64
+ let template;
65
+ const renderHtml$1 = async (stuff) => {
66
+ if (!template) {
67
+ const buffer = await readFile(templatePath$1);
68
+ template = buffer.toString();
69
+ }
70
+ const data = {
71
+ ...stuff,
72
+ googleTagId: process.env.GOOGLE_TAG_ID,
73
+ googleMapApiKey: process.env.GOOGLE_MAPS_API_KEY
74
+ };
75
+ return Mustache$1.render(template, data);
76
+ };
77
+ const createHtmlRenderer$1 = (onTemplateUpdate) => {
78
+ let shouldReload = true;
79
+ let currentTemplate;
80
+ chokidar.watch(templatePath$1).on("change", () => {
81
+ shouldReload = true;
82
+ onTemplateUpdate();
83
+ });
84
+ const loadTemplate = async () => {
85
+ if (!shouldReload) return;
86
+ const buffer = await readFile(templatePath$1);
87
+ currentTemplate = buffer.toString();
88
+ shouldReload = false;
89
+ };
90
+ return async (stuff) => {
91
+ await loadTemplate();
92
+ const data = {
93
+ ...stuff,
94
+ googleTagId: process.env.GOOGLE_TAG_ID,
95
+ googleMapApiKey: process.env.GOOGLE_MAPS_API_KEY
96
+ };
97
+ return Mustache$1.render(currentTemplate, data);
98
+ };
99
+ };
100
+ var ssrRenderHtml = {
101
+ createHtmlRenderer: createHtmlRenderer$1,
102
+ renderHtml: renderHtml$1
103
+ };
104
+ const normalizeAssets = (assets) => {
105
+ if (Array.isArray(assets)) return assets;
106
+ if (typeof assets === "object") return Object.values(assets);
107
+ return [assets];
108
+ };
109
+ const transformDevStats$1 = (stats, outputFileSystem) => {
110
+ const {
111
+ assetsByChunkName: { main },
112
+ outputPath,
113
+ publicPath
114
+ } = stats;
115
+ const head = `
116
+ <style>
117
+ ${normalizeAssets(main).filter((path2) => path2.endsWith(".css")).map(
118
+ (path2) => outputFileSystem.readFileSync(path2.join(outputPath, path2))
119
+ ).join("\n")}
120
+ </style>
121
+ `;
122
+ const body = normalizeAssets(main).filter((path2) => path2.endsWith(".js")).map((path2) => `<script src="${publicPath}${path2}"></script>`).join("\n");
123
+ return { head, body };
124
+ };
125
+ const transformProdStats$1 = ({ stats, publicPath }) => {
126
+ const {
127
+ assetsByChunkName: { main }
128
+ } = stats;
129
+ const head = normalizeAssets(main).filter((path2) => path2.endsWith(".css")).map((path2) => `<link rel="stylesheet" href="${publicPath}${path2}">`).join("\n");
130
+ const body = normalizeAssets(main).filter((path2) => path2.endsWith(".js")).map((path2) => `<script src="${publicPath}${path2}"></script>`).join("\n");
131
+ return { head, body };
132
+ };
133
+ var ssrTransformWebpackStats = {
134
+ transformDevStats: transformDevStats$1,
135
+ transformProdStats: transformProdStats$1
136
+ };
137
+ const path$8 = require$$0;
138
+ const webpack$7 = require$$1$1;
139
+ const compression$2 = require$$2$1;
140
+ const readline$1 = require$$3$1;
141
+ const chalk$1 = require$$4;
142
+ const devMiddleware$1 = require$$5;
143
+ const hotMiddleware$1 = require$$6;
144
+ const { createHtmlRenderer } = ssrRenderHtml;
145
+ const { transformDevStats } = ssrTransformWebpackStats;
146
+ var ssr_dev = function createSsrDevServer(projectRoot, { clientConfig: clientConfig2, serverConfig: serverConfig2, ssrConfig: ssrConfig2, createServerPath }) {
147
+ const clientCompiler = webpack$7(clientConfig2);
148
+ const serverCompiler = webpack$7(serverConfig2);
149
+ const ssrCompiler = webpack$7(ssrConfig2);
150
+ const createDevRenderer = (onUpdate) => {
151
+ const createHotReloadingServerRenderer = (config) => {
152
+ const progressPlugin = new webpack$7.ProgressPlugin((percentage, message, ...args) => {
153
+ readline$1.clearLine(process.stdout, 0);
154
+ readline$1.cursorTo(process.stdout, 0);
155
+ process.stdout.write(
156
+ chalk$1.greenBright.bold(`${(percentage * 100).toFixed(2)}% `) + chalk$1.blueBright(message) + " " + args.map((arg) => chalk$1.yellow(arg)).join(" ")
157
+ );
158
+ });
159
+ config.plugins = config.plugins || [];
160
+ config.plugins.push(progressPlugin);
161
+ let renderApp2 = null;
162
+ let setCompilationDone = null;
163
+ let ssrCompilation = new Promise((resolve) => {
164
+ setCompilationDone = resolve;
165
+ });
166
+ ssrCompiler.watch(
167
+ {
168
+ "info-verbosity": "none"
169
+ },
170
+ (error, stats) => {
171
+ if (error) {
172
+ console.error(chalk$1.red("Server critical error"));
173
+ console.error(JSON.stringify(error, null, 2));
174
+ throw error;
175
+ }
176
+ const jsonStats = stats.toJson();
177
+ if (stats.hasErrors()) {
178
+ console.error(chalk$1.red("Client compilation error"));
179
+ jsonStats.errors.forEach((err) => console.error(chalk$1.red(err.details)));
180
+ return;
181
+ }
182
+ const { entrypoints, outputPath } = jsonStats;
183
+ const { main: { assets: [mainChunkPath] } } = entrypoints;
184
+ const { render } = commonjsRequire(path$8.resolve(outputPath, mainChunkPath.name));
185
+ renderApp2 = render;
186
+ setCompilationDone();
187
+ }
188
+ );
189
+ return async (stuff) => {
190
+ await ssrCompilation;
191
+ const result = await renderApp2(stuff);
192
+ return result;
193
+ };
194
+ };
195
+ const renderApp = createHotReloadingServerRenderer(ssrConfig2);
196
+ const renderHtml2 = createHtmlRenderer(onUpdate);
197
+ return async (stuff, { stats, outputFileSystem }) => {
198
+ const { html, meta, state, statusCode } = await renderApp(stuff);
199
+ const { head, body } = transformDevStats(stats.toJson(), outputFileSystem);
200
+ const userState = JSON.stringify(state.user);
201
+ const completeHtml = await renderHtml2({
202
+ appHtml: html,
203
+ meta,
204
+ head,
205
+ body,
206
+ userState
207
+ });
208
+ return { html: completeHtml, statusCode };
209
+ };
210
+ };
211
+ let serverInstance;
212
+ let rendererInstance;
213
+ const clientDevMiddleware = devMiddleware$1(clientCompiler, {
214
+ publicPath: clientConfig2.output.publicPath,
215
+ serverSideRender: true,
216
+ stats: false
217
+ });
218
+ const clientHotMiddleware = hotMiddleware$1(clientCompiler, {
219
+ heartbeat: 5e3,
220
+ log: false
221
+ });
222
+ const port = process.env.PORT || 8080;
223
+ const startServer = async () => {
224
+ if (serverInstance) {
225
+ serverInstance.close();
226
+ }
227
+ Object.keys(require.cache).forEach((id) => {
228
+ delete require.cache[id];
229
+ });
230
+ const { createServer } = commonjsRequire(path$8.resolve(projectRoot, createServerPath));
231
+ let { app, server, env } = await createServer();
232
+ app.use(clientDevMiddleware);
233
+ app.use(clientHotMiddleware);
234
+ if (!rendererInstance) {
235
+ rendererInstance = createDevRenderer(() => {
236
+ clientCompiler.hooks.done.tap("reload", () => {
237
+ setTimeout(() => {
238
+ require$$9.reload();
239
+ }, 500);
240
+ });
241
+ });
242
+ }
243
+ app.use("/*", async (req, res) => {
244
+ const result = await rendererInstance({
245
+ url: req.originalUrl,
246
+ cookies: req.cookies,
247
+ languages: req.acceptsLanguages()
248
+ }, res.locals.webpack.devMiddleware);
249
+ res.status(result.statusCode).header("Content-Type", "text/html; charset=utf-8").send(result.html);
250
+ });
251
+ app.use(compression$2());
252
+ serverInstance = server;
253
+ try {
254
+ await server.listen(port);
255
+ console.log(`Server started at localhost:${port}
256
+ `);
257
+ } catch (err) {
258
+ console.error(err);
259
+ process.exit(1);
260
+ }
261
+ };
262
+ serverCompiler.watch({}, async (err, stats) => {
263
+ if (err) {
264
+ console.error(err);
265
+ return;
266
+ }
267
+ console.log(stats.toString(serverConfig2.stats));
268
+ console.log("Server.js has changed, updating...");
269
+ await startServer();
270
+ });
271
+ return startServer;
272
+ };
273
+ const path$7 = require$$0;
274
+ const express$1 = require$$1$2;
275
+ const { transformProdStats } = ssrTransformWebpackStats;
276
+ const { renderHtml } = ssrRenderHtml;
277
+ var ssr_prod = function createSsrProdServer(projectRoot, { clientConfig: clientConfig2, serverConfig: serverConfig2, createServerPath }) {
278
+ const clientStats = commonjsRequire(path$7.join(projectRoot, "builds/web/client/stats.json"));
279
+ const serverManifest = commonjsRequire(path$7.join(projectRoot, "builds/web/server/manifest.json"));
280
+ const { createServer } = commonjsRequire(path$7.resolve(projectRoot, createServerPath));
281
+ const startServer = async () => {
282
+ const { app, server, env } = await createServer();
283
+ app.use(
284
+ clientConfig2.output.publicPath,
285
+ express$1.static(path$7.resolve(projectRoot, "builds/web/client"), {
286
+ maxAge: "1d"
287
+ // Кэширование на 1 день
288
+ })
289
+ );
290
+ const { render } = commonjsRequire(path$7.join(
291
+ serverConfig2.output.path,
292
+ serverManifest["main.js"]
293
+ ));
294
+ const { head, body } = transformProdStats({
295
+ stats: clientStats,
296
+ publicPath: clientConfig2.output.publicPath
297
+ });
298
+ app.use("/*", async (req, res) => {
299
+ const { html, meta, state, statusCode } = await render({
300
+ url: req.originalUrl,
301
+ cookies: req.cookies,
302
+ languages: req.acceptsLanguages()
303
+ });
304
+ if (state.NotFound) {
305
+ res.status(404);
306
+ }
307
+ const userState = JSON.stringify(state.user);
308
+ const completeHtml = await renderHtml({
309
+ appHtml: html,
310
+ meta,
311
+ head,
312
+ body,
313
+ userState
314
+ });
315
+ res.status(statusCode).header("Content-Type", "text/html; charset=utf-8").send(completeHtml);
316
+ });
317
+ return server;
318
+ };
319
+ const port = process.env.PORT || 8080;
320
+ const start = async () => {
321
+ const server = await startServer();
322
+ try {
323
+ server.listen(port, () => console.log(`Server running on port ${port}`));
324
+ } catch (err) {
325
+ console.error(err);
326
+ process.exit(1);
327
+ }
328
+ };
329
+ return start;
330
+ };
331
+ const path$6 = require$$0;
332
+ const webpack$6 = require$$1$1;
333
+ const compression$1 = require$$2$1;
334
+ const readline = require$$3$1;
335
+ const chalk = require$$4;
336
+ const devMiddleware = require$$5;
337
+ const hotMiddleware = require$$6;
338
+ const history$1 = require$$7;
339
+ var spa_dev = function createSpaDevServer(projectRoot, { spaConfig: spaConfig2, serverConfig: serverConfig2, createServerPath }) {
340
+ const spaCompiler = webpack$6(spaConfig2);
341
+ const serverCompiler = webpack$6(serverConfig2);
342
+ const createDevRenderer = () => {
343
+ const progressPlugin = new webpack$6.ProgressPlugin((percentage, message, ...args) => {
344
+ readline.clearLine(process.stdout, 0);
345
+ readline.cursorTo(process.stdout, 0);
346
+ process.stdout.write(
347
+ chalk.greenBright.bold(`${(percentage * 100).toFixed(2)}% `) + chalk.blueBright(message) + " " + args.map((arg) => chalk.yellow(arg)).join(" ")
348
+ );
349
+ });
350
+ spaConfig2.plugins.push(progressPlugin);
351
+ };
352
+ let serverInstance;
353
+ const clientDevMiddleware = devMiddleware(spaCompiler, {
354
+ publicPath: spaConfig2.output.publicPath,
355
+ stats: false
356
+ });
357
+ const clientHotMiddleware = hotMiddleware(spaCompiler, {
358
+ heartbeat: 5e3,
359
+ log: false
360
+ });
361
+ const port = process.env.PORT || 8080;
362
+ const startServer = async () => {
363
+ if (serverInstance) {
364
+ serverInstance.close();
365
+ }
366
+ Object.keys(require.cache).forEach((id) => {
367
+ delete require.cache[id];
368
+ });
369
+ const { createServer } = commonjsRequire(path$6.resolve(projectRoot, createServerPath));
370
+ let { app, server, env } = await createServer();
371
+ app.use(history$1());
372
+ app.use(clientDevMiddleware);
373
+ app.use(clientHotMiddleware);
374
+ app.use(compression$1());
375
+ app.get("*", (req, res, next) => {
376
+ const filename = path$6.join(spaCompiler.outputPath, "index.html");
377
+ spaCompiler.outputFileSystem.readFile(filename, (err, result) => {
378
+ if (err) {
379
+ return next(err);
380
+ }
381
+ res.set("content-type", "text/html");
382
+ res.send(result);
383
+ res.end();
384
+ });
385
+ });
386
+ serverInstance = server;
387
+ try {
388
+ await server.listen(port);
389
+ console.log(`Server started at http://localhost:${port}
390
+ `);
391
+ } catch (err) {
392
+ console.error(err);
393
+ process.exit(1);
394
+ }
395
+ };
396
+ serverCompiler.watch({}, async (err, stats) => {
397
+ if (err) {
398
+ console.error(err);
399
+ return;
400
+ }
401
+ console.log(stats.toString(serverConfig2.stats));
402
+ console.log("Server.js has changed, updating...");
403
+ await startServer();
404
+ });
405
+ createDevRenderer();
406
+ return startServer;
407
+ };
408
+ const fs$1 = require$$3;
409
+ const path$5 = require$$0;
410
+ const compression = require$$2$1;
411
+ const express = require$$1$2;
412
+ const history = require$$7;
413
+ var spa_prod = function createSpaProdServer(projectRoot, { createServerPath }) {
414
+ const port = process.env.PORT || 8080;
415
+ const startServer = async () => {
416
+ const { createServer } = commonjsRequire(path$5.resolve(projectRoot, createServerPath));
417
+ let { app, server } = await createServer();
418
+ app.use(compression());
419
+ app.use(express.static(path$5.resolve(projectRoot, "builds/web/spa")));
420
+ app.use(history({
421
+ index: "/index.html"
422
+ }));
423
+ app.get("*", (req, res) => {
424
+ fs$1.readFile(path$5.resolve(projectRoot, "builds/web/spa", "index.html"), "utf-8", (err, content) => {
425
+ if (err) {
426
+ console.log('We cannot open "index.html" file.');
427
+ res.writeHead(500, {
428
+ "Content-Type": "text/plain; charset=utf-8"
429
+ });
430
+ res.end("Internal Server Error");
431
+ return;
432
+ }
433
+ res.writeHead(200, {
434
+ "Content-Type": "text/html; charset=utf-8"
435
+ });
436
+ res.end(content);
437
+ });
438
+ });
439
+ try {
440
+ await server.listen(port);
441
+ console.log(`Production server started at http://localhost:${port}
442
+ `);
443
+ } catch (err) {
444
+ console.error(err);
445
+ process.exit(1);
446
+ }
447
+ };
448
+ return startServer;
449
+ };
450
+ const path$4 = require$$0;
451
+ const webpack$5 = require$$1$1;
452
+ const { VueLoaderPlugin } = require$$2$2;
453
+ const MiniCssExtractPlugin = require$$3$2;
454
+ const { CleanWebpackPlugin } = require$$4$1;
455
+ require$$5$1.BundleAnalyzerPlugin;
456
+ const Dotenv = require$$6$1;
457
+ var webpack_config_base = (projectRoot) => {
458
+ return {
459
+ resolve: {
460
+ alias: {
461
+ "@": path$4.resolve(projectRoot, "src"),
462
+ "@pf": path$4.resolve(projectRoot, "prometheus-framework"),
463
+ "vue": path$4.resolve(projectRoot, "node_modules/vue"),
464
+ "vue-router": path$4.resolve(projectRoot, "node_modules/vue-router"),
465
+ "vue-i18n": path$4.resolve(projectRoot, "node_modules/vue-i18n")
466
+ },
467
+ fallback: {
468
+ "path": false
469
+ }
470
+ },
471
+ module: {
472
+ rules: [
473
+ {
474
+ test: /\.m?js$/,
475
+ exclude: /node_modules\/(?!(vue-meta)\/).*/,
476
+ use: {
477
+ loader: "babel-loader",
478
+ options: {
479
+ configFile: path$4.resolve(projectRoot, "babel.config.js")
480
+ }
481
+ }
482
+ },
483
+ {
484
+ test: /\.vue$/,
485
+ use: [
486
+ {
487
+ loader: require.resolve("vue-loader")
488
+ }
489
+ ]
490
+ },
491
+ {
492
+ test: /\.(sa|sc|c)ss$/,
493
+ use: [
494
+ process.env.NODE_ENV !== "production" ? "vue-style-loader" : MiniCssExtractPlugin.loader,
495
+ {
496
+ loader: "css-loader",
497
+ options: {
498
+ sourceMap: true,
499
+ url: {
500
+ filter: (url, resourcePath) => {
501
+ if (url.indexOf("/fonts/") == 0) {
502
+ return false;
503
+ }
504
+ return true;
505
+ }
506
+ }
507
+ }
508
+ },
509
+ {
510
+ loader: "sass-loader",
511
+ options: {
512
+ sourceMap: true
513
+ }
514
+ }
515
+ ]
516
+ },
517
+ {
518
+ test: /\.(?:ico|gif|png|jpg|jpeg|mp4|webp|webm|svg|woff2?|eot|ttf|otf)$/i,
519
+ use: {
520
+ loader: "url-loader",
521
+ options: {
522
+ emitFile: false
523
+ }
524
+ }
525
+ }
526
+ ]
527
+ },
528
+ plugins: [
529
+ // new BundleAnalyzerPlugin(),
530
+ new MiniCssExtractPlugin({
531
+ filename: "[name].[contenthash].css",
532
+ chunkFilename: "[id].[contenthash].css",
533
+ ignoreOrder: true
534
+ }),
535
+ new CleanWebpackPlugin(),
536
+ new VueLoaderPlugin(),
537
+ new Dotenv({
538
+ path: `.env.${process.env.NODE_ENV}`
539
+ }),
540
+ new webpack$5.DefinePlugin({
541
+ __VUE_I18N_LEGACY_API__: false,
542
+ __VUE_OPTIONS_API__: true,
543
+ __VUE_PROD_DEVTOOLS_: false,
544
+ __VUE_PROD_DEVTOOLS__: true,
545
+ __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: true,
546
+ __VUE_I18N_FULL_INSTALL__: true,
547
+ __INTLIFY_PROD_DEVTOOLS__: false,
548
+ __MOBILE_APP__: false
549
+ })
550
+ ],
551
+ infrastructureLogging: {
552
+ level: "verbose"
553
+ },
554
+ stats: {
555
+ colors: true,
556
+ hash: true,
557
+ version: true,
558
+ timings: true,
559
+ assets: true,
560
+ chunks: true,
561
+ modules: true,
562
+ reasons: true,
563
+ children: true,
564
+ source: true,
565
+ errors: true,
566
+ errorDetails: true,
567
+ errorStack: true,
568
+ warnings: true,
569
+ publicPath: true
570
+ }
571
+ };
572
+ };
573
+ const path$3 = require$$0;
574
+ const glob = require$$1$3;
575
+ const webpack$4 = require$$1$1;
576
+ const { merge: merge$2 } = require$$3$3;
577
+ const { StatsWriterPlugin: StatsWriterPlugin$1 } = require$$4$2;
578
+ const CssMinimizerPlugin$1 = require$$6$2;
579
+ const TerserPlugin$1 = require$$7$1;
580
+ const WorkboxPlugin = require$$8;
581
+ const PurgeCSSPlugin = require$$9$1;
582
+ const baseConfig$1 = webpack_config_base;
583
+ var webpack_config_client = (projectRoot) => {
584
+ const isProd2 = process.env.NODE_ENV === "production";
585
+ const config = {
586
+ mode: !isProd2 ? "development" : "production",
587
+ devtool: !isProd2 ? "inline-source-map" : "source-map",
588
+ entry: {
589
+ main: !isProd2 ? [path$3.resolve("../utils/hot-reload.js"), path$3.resolve(projectRoot, "src/entry-client.js")] : path$3.resolve(projectRoot, "src/entry-client.js")
590
+ },
591
+ module: {
592
+ rules: []
593
+ },
594
+ output: {
595
+ filename: "main.[fullhash].js",
596
+ chunkFilename: "[name].[contenthash].js",
597
+ path: path$3.resolve(projectRoot, "builds/web/client"),
598
+ publicPath: "/",
599
+ clean: true
600
+ },
601
+ plugins: [
602
+ ...!isProd2 ? [new webpack$4.HotModuleReplacementPlugin()] : [],
603
+ new StatsWriterPlugin$1(),
604
+ new WorkboxPlugin.GenerateSW({
605
+ clientsClaim: true,
606
+ skipWaiting: true
607
+ }),
608
+ new PurgeCSSPlugin({
609
+ paths: glob.sync([
610
+ path$3.join(projectRoot, "src/**/*.vue"),
611
+ path$3.join(projectRoot, "prometheus-framework/src/**/*.vue")
612
+ ]),
613
+ safelist: { greedy: [/data-v-.*/] }
614
+ })
615
+ ],
616
+ optimization: {
617
+ usedExports: true,
618
+ splitChunks: {
619
+ chunks: "async",
620
+ minSize: 0,
621
+ minRemainingSize: 0,
622
+ minChunks: 1,
623
+ maxAsyncRequests: 30,
624
+ maxInitialRequests: 30,
625
+ enforceSizeThreshold: 5e4,
626
+ cacheGroups: {
627
+ vendor: {
628
+ test: /[\\/]node_modules[\\/]/,
629
+ name: "vendors",
630
+ priority: -10,
631
+ reuseExistingChunk: true
632
+ }
633
+ }
634
+ },
635
+ minimize: isProd2,
636
+ minimizer: [
637
+ new TerserPlugin$1(),
638
+ new CssMinimizerPlugin$1()
639
+ ]
640
+ }
641
+ };
642
+ return merge$2(baseConfig$1(projectRoot), config);
643
+ };
644
+ const path$2 = require$$0;
645
+ const webpack$3 = require$$1$1;
646
+ var webpack_config_server = (projectRoot) => {
647
+ return {
648
+ target: "node",
649
+ mode: "development",
650
+ entry: [
651
+ "webpack/hot/poll?1000",
652
+ path$2.resolve(projectRoot, "server/server.js")
653
+ ],
654
+ output: {
655
+ filename: "server.[fullhash].js",
656
+ path: path$2.resolve(projectRoot, "builds/web/server"),
657
+ clean: true
658
+ },
659
+ resolve: {
660
+ alias: {
661
+ "@pf": path$2.resolve(projectRoot, "prometheus-framework")
662
+ },
663
+ fallback: {
664
+ "path": false
665
+ }
666
+ },
667
+ // externals: [nodeExternals()],
668
+ plugins: [
669
+ new webpack$3.HotModuleReplacementPlugin()
670
+ ]
671
+ };
672
+ };
673
+ const path$1 = require$$0;
674
+ const webpack$2 = require$$1$1;
675
+ const { merge: merge$1 } = require$$3$3;
676
+ const CssMinimizerPlugin = require$$6$2;
677
+ const CopyWebpackPlugin = require$$6$3;
678
+ const TerserPlugin = require$$7$1;
679
+ const HtmlWebpackPlugin = require$$8$1;
680
+ const { StatsWriterPlugin } = require$$4$2;
681
+ const Mustache = require$$1;
682
+ const fs = require$$3.promises;
683
+ const getClientConfig = webpack_config_client;
684
+ const templatePath = path$1.resolve(__dirname, "../templates/page.html");
685
+ const isProd = process.env.NODE_ENV === "production";
686
+ var webpack_config_spa = (projectRoot) => {
687
+ const spaConfig2 = {
688
+ mode: !isProd ? "development" : "production",
689
+ devtool: "source-map",
690
+ entry: {
691
+ main: path$1.resolve(projectRoot, "src/app.js")
692
+ },
693
+ output: {
694
+ filename: "main.js",
695
+ path: path$1.resolve(projectRoot, "builds/web/spa"),
696
+ clean: true
697
+ },
698
+ target: "web",
699
+ module: {
700
+ rules: [
701
+ // Дополнительные правила могут быть добавлены здесь
702
+ ]
703
+ },
704
+ plugins: [
705
+ ...!isProd ? [new webpack$2.HotModuleReplacementPlugin()] : [],
706
+ new StatsWriterPlugin(),
707
+ new webpack$2.optimize.LimitChunkCountPlugin({
708
+ maxChunks: 1
709
+ }),
710
+ new HtmlWebpackPlugin({
711
+ templateContent: async () => {
712
+ const template2 = await fs.readFile(templatePath, "utf8");
713
+ const meta = {
714
+ htmlAttrs: 'lang="en"',
715
+ headAttrs: "",
716
+ bodyAttrs: "",
717
+ head: '<meta name="description" content="Example">',
718
+ body: ""
719
+ };
720
+ const data = {
721
+ googleTagId: process.env.GOOGLE_TAG_ID,
722
+ googleMapApiKey: process.env.GOOGLE_MAPS_API_KEY,
723
+ meta
724
+ };
725
+ return Mustache.render(template2, data);
726
+ },
727
+ filename: "index.html",
728
+ inject: "body"
729
+ }),
730
+ new CopyWebpackPlugin({
731
+ patterns: [
732
+ { from: path$1.resolve(projectRoot, "../public/logo"), to: "logo" },
733
+ { from: path$1.resolve(projectRoot, "../public/walkthrough"), to: "walkthrough" }
734
+ ]
735
+ })
736
+ // new ServiceWorkerPlugin()
737
+ ],
738
+ optimization: {
739
+ minimizer: [new TerserPlugin(), new CssMinimizerPlugin()]
740
+ }
741
+ };
742
+ return merge$1(getClientConfig(projectRoot), spaConfig2);
743
+ };
744
+ const path = require$$0;
745
+ const webpack$1 = require$$1$1;
746
+ const nodeExternals = require$$2$3;
747
+ const { merge } = require$$3$3;
748
+ const { WebpackManifestPlugin } = require$$4$3;
749
+ const getBaseConfig = webpack_config_base;
750
+ var webpack_config_ssr = (projectRoot) => {
751
+ const isProd2 = process.env.NODE_ENV === "production";
752
+ const ssrConfig2 = {
753
+ target: "node",
754
+ mode: !isProd2 ? "development" : "production",
755
+ entry: {
756
+ main: path.resolve(projectRoot, "src/entry-server.js")
757
+ },
758
+ output: {
759
+ filename: "main.[fullhash].js",
760
+ path: path.resolve(projectRoot, "builds/web/server"),
761
+ libraryTarget: "commonjs2",
762
+ clean: true
763
+ },
764
+ module: {
765
+ rules: [
766
+ {
767
+ test: /\.css$/,
768
+ // we don't need styles on the server, so we just ignore them
769
+ use: "null-loader"
770
+ }
771
+ ]
772
+ },
773
+ optimization: {
774
+ minimize: false
775
+ },
776
+ plugins: [
777
+ new webpack$1.optimize.LimitChunkCountPlugin({
778
+ maxChunks: 1
779
+ }),
780
+ ...isProd2 ? [new WebpackManifestPlugin({
781
+ fileName: "manifest.json"
782
+ })] : []
783
+ ],
784
+ externals: [
785
+ nodeExternals({
786
+ allowlist: [
787
+ /^vue-meta*/,
788
+ /\.(css|sass|scss)$/,
789
+ /\.(vue)$/,
790
+ /\.(html)$/
791
+ ]
792
+ })
793
+ ]
794
+ };
795
+ return merge(getBaseConfig(projectRoot), ssrConfig2);
796
+ };
797
+ const baseConfig = webpack_config_base;
798
+ const clientConfig = webpack_config_client;
799
+ const serverConfig = webpack_config_server;
800
+ const spaConfig = webpack_config_spa;
801
+ const ssrConfig = webpack_config_ssr;
802
+ var webpack = {
803
+ baseConfig,
804
+ clientConfig,
805
+ serverConfig,
806
+ spaConfig,
807
+ ssrConfig
808
+ };
809
+ const createSsrDevServer2 = ssr_dev;
810
+ const createSsrProdServer2 = ssr_prod;
811
+ const createSpaDevServer2 = spa_dev;
812
+ const createSpaProdServer2 = spa_prod;
813
+ const webpackConfigs = webpack;
814
+ var builder = {
815
+ createSsrDevServer: createSsrDevServer2,
816
+ createSsrProdServer: createSsrProdServer2,
817
+ createSpaDevServer: createSpaDevServer2,
818
+ createSpaProdServer: createSpaProdServer2,
819
+ webpackConfigs
820
+ };
821
+ const builder$1 = /* @__PURE__ */ getDefaultExportFromCjs(builder);
822
+ module.exports = builder$1;