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