@ozdao/prometheus-framework 0.2.156 → 0.2.157
Sign up to get free protection for your applications and to get access to all the features.
- 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/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 +1 -1
- 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/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 +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 +1 -1
- 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 +4 -4
- 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-3rnOWrQO.mjs → web-CT2tGYho.mjs} +1 -1
- package/dist/{web-C04IcLk4.js → web-DWjMBTNi.js} +1 -1
- package/package.json +3 -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/Menu/Menu.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +0 -13
- 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/components/Tooltip/Tooltip.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +0 -44
- 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-5eyiz9L7.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
@@ -0,0 +1,190 @@
|
|
1
|
+
import { ref as a, onMounted as m, openBlock as f, createElementBlock as p, createVNode as e, withCtx as o, unref as n, createElementVNode as i } from "vue";
|
2
|
+
import u from "../../../../components/Menu/Menu.vue2.js";
|
3
|
+
import r from "../../../../components/Menu/MenuItem.vue.js";
|
4
|
+
/* empty css */
|
5
|
+
import c from "../../../icons/entities/IconProducts.vue.js";
|
6
|
+
import _ from "../../../icons/entities/IconEvents.vue.js";
|
7
|
+
import d from "../../../icons/entities/IconGroups.vue.js";
|
8
|
+
import v from "../../../icons/entities/IconGallery.vue.js";
|
9
|
+
import k from "../../../icons/entities/IconOrders.vue.js";
|
10
|
+
import $ from "../../../icons/entities/IconLeftovers.vue.js";
|
11
|
+
import { useRoute as g, useRouter as C } from "vue-router";
|
12
|
+
import "../../../auth/store/auth.js";
|
13
|
+
import "../../../organizations/store/organizations.js";
|
14
|
+
const b = { class: "" }, h = /* @__PURE__ */ i("span", null, " Members ", -1), B = /* @__PURE__ */ i("span", null, " Community ", -1), y = /* @__PURE__ */ i("span", null, " Products ", -1), w = /* @__PURE__ */ i("span", null, " Leftovers ", -1), P = /* @__PURE__ */ i("span", null, " Orders ", -1), O = /* @__PURE__ */ i("span", null, " Gallery ", -1), E = /* @__PURE__ */ i("span", null, " Events ", -1), R = /* @__PURE__ */ i("span", null, " Payments ", -1), x = /* @__PURE__ */ i("span", null, " Organizations ", -1), z = /* @__PURE__ */ i("span", null, " Pages ", -1), G = /* @__PURE__ */ i("span", null, " Reports ", -1), T = {
|
15
|
+
__name: "Sidebar",
|
16
|
+
props: {
|
17
|
+
favorites: Array
|
18
|
+
},
|
19
|
+
setup(M) {
|
20
|
+
g();
|
21
|
+
const t = C();
|
22
|
+
return a(null), a([]), m(async () => {
|
23
|
+
}), (L, s) => (f(), p("div", b, [
|
24
|
+
e(u, { class: "bg-light mn-b-semi" }, {
|
25
|
+
default: o(() => [
|
26
|
+
e(r, {
|
27
|
+
onClick: s[0] || (s[0] = (l) => n(t).push({
|
28
|
+
name: "Organization Members"
|
29
|
+
})),
|
30
|
+
class: "cursor-pointer"
|
31
|
+
}, {
|
32
|
+
default: o(() => [
|
33
|
+
e(d, {
|
34
|
+
class: "i-semi",
|
35
|
+
icon: !0,
|
36
|
+
fill: "rgb(var(--white))"
|
37
|
+
}),
|
38
|
+
h
|
39
|
+
]),
|
40
|
+
_: 1
|
41
|
+
}),
|
42
|
+
e(r, {
|
43
|
+
onClick: s[1] || (s[1] = (l) => n(t).push({
|
44
|
+
name: "Backoffice Community"
|
45
|
+
})),
|
46
|
+
class: "cursor-pointer"
|
47
|
+
}, {
|
48
|
+
default: o(() => [
|
49
|
+
B
|
50
|
+
]),
|
51
|
+
_: 1
|
52
|
+
}),
|
53
|
+
e(r, {
|
54
|
+
onClick: s[2] || (s[2] = (l) => n(t).push({
|
55
|
+
name: "Products"
|
56
|
+
})),
|
57
|
+
class: "cursor-pointer"
|
58
|
+
}, {
|
59
|
+
default: o(() => [
|
60
|
+
e(c, {
|
61
|
+
class: "i-semi",
|
62
|
+
icon: !0,
|
63
|
+
fill: "rgb(var(--white))"
|
64
|
+
}),
|
65
|
+
y
|
66
|
+
]),
|
67
|
+
_: 1
|
68
|
+
}),
|
69
|
+
e(r, {
|
70
|
+
onClick: s[3] || (s[3] = (l) => n(t).push({
|
71
|
+
name: "Leftovers"
|
72
|
+
})),
|
73
|
+
class: "cursor-pointer"
|
74
|
+
}, {
|
75
|
+
default: o(() => [
|
76
|
+
e($, {
|
77
|
+
class: "i-semi",
|
78
|
+
icon: !0,
|
79
|
+
fill: "rgb(var(--white))"
|
80
|
+
}),
|
81
|
+
w
|
82
|
+
]),
|
83
|
+
_: 1
|
84
|
+
}),
|
85
|
+
e(r, {
|
86
|
+
onClick: s[4] || (s[4] = (l) => n(t).push({
|
87
|
+
name: "Backoffice Orders"
|
88
|
+
})),
|
89
|
+
class: "cursor-pointer"
|
90
|
+
}, {
|
91
|
+
default: o(() => [
|
92
|
+
e(k, {
|
93
|
+
class: "i-semi",
|
94
|
+
icon: !0,
|
95
|
+
fill: "rgb(var(--white))"
|
96
|
+
}),
|
97
|
+
P
|
98
|
+
]),
|
99
|
+
_: 1
|
100
|
+
}),
|
101
|
+
e(r, {
|
102
|
+
onClick: s[5] || (s[5] = (l) => n(t).push({
|
103
|
+
name: "Backoffice Gallery"
|
104
|
+
})),
|
105
|
+
class: "cursor-pointer"
|
106
|
+
}, {
|
107
|
+
default: o(() => [
|
108
|
+
e(v, {
|
109
|
+
class: "i-semi",
|
110
|
+
icon: !0,
|
111
|
+
fill: "rgb(var(--white))"
|
112
|
+
}),
|
113
|
+
O
|
114
|
+
]),
|
115
|
+
_: 1
|
116
|
+
}),
|
117
|
+
e(r, {
|
118
|
+
onClick: s[6] || (s[6] = (l) => n(t).push({
|
119
|
+
name: "Backoffice Events"
|
120
|
+
})),
|
121
|
+
class: "cursor-pointer"
|
122
|
+
}, {
|
123
|
+
default: o(() => [
|
124
|
+
e(_, {
|
125
|
+
class: "i-semi",
|
126
|
+
icon: !0,
|
127
|
+
fill: "rgb(var(--white))"
|
128
|
+
}),
|
129
|
+
E
|
130
|
+
]),
|
131
|
+
_: 1
|
132
|
+
}),
|
133
|
+
e(r, {
|
134
|
+
onClick: s[7] || (s[7] = (l) => n(t).push({
|
135
|
+
name: "Payments"
|
136
|
+
})),
|
137
|
+
class: "cursor-pointer"
|
138
|
+
}, {
|
139
|
+
default: o(() => [
|
140
|
+
R
|
141
|
+
]),
|
142
|
+
_: 1
|
143
|
+
})
|
144
|
+
]),
|
145
|
+
_: 1
|
146
|
+
}),
|
147
|
+
e(u, { class: "bg-light" }, {
|
148
|
+
default: o(() => [
|
149
|
+
e(r, {
|
150
|
+
onClick: s[8] || (s[8] = (l) => n(t).push({
|
151
|
+
name: "Backoffice Organizations"
|
152
|
+
})),
|
153
|
+
class: "cursor-pointer"
|
154
|
+
}, {
|
155
|
+
default: o(() => [
|
156
|
+
x
|
157
|
+
]),
|
158
|
+
_: 1
|
159
|
+
}),
|
160
|
+
e(r, {
|
161
|
+
onClick: s[9] || (s[9] = (l) => n(t).push({
|
162
|
+
name: "Backoffice Pages"
|
163
|
+
})),
|
164
|
+
class: "cursor-pointer"
|
165
|
+
}, {
|
166
|
+
default: o(() => [
|
167
|
+
z
|
168
|
+
]),
|
169
|
+
_: 1
|
170
|
+
}),
|
171
|
+
e(r, {
|
172
|
+
onClick: s[10] || (s[10] = (l) => n(t).push({
|
173
|
+
name: "Backoffice Reports"
|
174
|
+
})),
|
175
|
+
class: "cursor-pointer"
|
176
|
+
}, {
|
177
|
+
default: o(() => [
|
178
|
+
G
|
179
|
+
]),
|
180
|
+
_: 1
|
181
|
+
})
|
182
|
+
]),
|
183
|
+
_: 1
|
184
|
+
})
|
185
|
+
]));
|
186
|
+
}
|
187
|
+
};
|
188
|
+
export {
|
189
|
+
T as default
|
190
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../components/layouts/Backoffice.vue.cjs"),t=require("../components/partials/Sidebar.vue.cjs");require("vue");const o=require("../../middlewares/client/auth.validation.cjs"),i=[{path:"backoffice",name:"Backoffice Root",component:e.default,beforeEnter:[o.requiresAdmin],children:[{path:"",name:"Backoffice Admin",meta:{title:{en:"Backoffice",ru:"Управление"},sidebar:t.default,authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Dashboard.vue.cjs"))},{path:"reports",name:"Backoffice Reports",meta:{title:{en:"Backoffice Reports",ru:"Управление Жалобами"}},component:()=>Promise.resolve().then(()=>require("../../reports/components/pages/BackofficeReports.vue.cjs"))},{path:"organizations",name:"Backoffice Organizations",meta:{title:{en:"Backoffice Organizations",ru:"Управление Организациями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../organizations/components/pages/Organizations.vue.cjs"))},{path:"events",name:"Backoffice Events",meta:{title:{en:"Backoffice Events",ru:"Управление Событиями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../events/components/pages/Events.vue.cjs"))},{path:"community",name:"Backoffice Community",meta:{title:{en:"Backoffice Community",ru:"Управление Сообществом"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../community/components/pages/Community.vue.cjs"))}]}];exports.default=i;
|
@@ -1,12 +1,13 @@
|
|
1
|
+
import e from "../components/layouts/Backoffice.vue.js";
|
2
|
+
import t from "../components/partials/Sidebar.vue.js";
|
1
3
|
import "vue";
|
2
|
-
|
3
|
-
|
4
|
-
import { requiresAdmin as e } from "../../middlewares/client/auth.validation.js";
|
5
|
-
const m = [{
|
4
|
+
import { requiresAdmin as o } from "../../middlewares/client/auth.validation.js";
|
5
|
+
const c = [{
|
6
6
|
path: "backoffice",
|
7
|
-
|
7
|
+
name: "Backoffice Root",
|
8
|
+
component: e,
|
8
9
|
beforeEnter: [
|
9
|
-
|
10
|
+
o
|
10
11
|
],
|
11
12
|
children: [
|
12
13
|
{
|
@@ -17,6 +18,7 @@ const m = [{
|
|
17
18
|
en: "Backoffice",
|
18
19
|
ru: "Управление"
|
19
20
|
},
|
21
|
+
sidebar: t,
|
20
22
|
authorize: []
|
21
23
|
},
|
22
24
|
component: () => import(
|
@@ -86,5 +88,5 @@ const m = [{
|
|
86
88
|
]
|
87
89
|
}];
|
88
90
|
export {
|
89
|
-
|
91
|
+
c as default
|
90
92
|
};
|
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css */const g=require("vue-router"),b={class:"pos-relative bg-light radius-big flex-column flex"},p={class:"pd-t-zero pd-b-zero pd-medium"},y={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},f={key:1,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},h={key:1,class:"mn-b-small t-transp p-big"},k={key:2,class:"mn-b-small h2"},v=["src"],B={key:1,controls:"",class:"mn-b-medium object-fit-cover w-100 h-max-20r"},x=["src"],V={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1}},setup(t){const i=g.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),s=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),a=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,r)=>{var c;return e.openBlock(),e.createElementBlock("article",b,[e.createVNode(u.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt,actions:t.user&&t.user===t.blogpost.creator.target._id?[{to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},label:"Edit"}]:null},null,8,["class","entity","user","owner","creator","date","actions"]),e.createElementVNode("section",p,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",y,[t.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m.default,{key:0,text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:r[0]||(r[0]=E=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"])),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.value&&a.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(a.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"&&!t.hideTitle?(e.openBlock(),e.createElementBlock("h3",k,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-100"},null,8,v)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("video",B,[e.createElementVNode("source",{src:s.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=V;
|
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
import { computed as c, openBlock as o, createElementBlock as l, createVNode as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
/* empty css
|
6
|
-
import { useRouter as
|
7
|
-
const
|
1
|
+
import { computed as c, openBlock as o, createElementBlock as l, createVNode as g, normalizeClass as f, createElementVNode as b, createBlock as h, unref as y, createCommentVNode as s, toDisplayString as u, renderSlot as v, createTextVNode as x } from "vue";
|
2
|
+
import k from "../../../globals/components/blocks/CardHeader.vue.js";
|
3
|
+
import w from "./FooterBlogpost.vue.js";
|
4
|
+
import B from "../../../../components/Text/Text.vue.js";
|
5
|
+
/* empty css */
|
6
|
+
import { useRouter as E } from "vue-router";
|
7
|
+
const P = { class: "pos-relative bg-light radius-big flex-column flex" }, T = { class: "pd-t-zero pd-b-zero pd-medium" }, V = {
|
8
8
|
key: 0,
|
9
9
|
class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
|
10
10
|
}, S = {
|
11
|
-
key:
|
11
|
+
key: 1,
|
12
12
|
class: "pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"
|
13
13
|
}, $ = {
|
14
14
|
key: 1,
|
@@ -20,7 +20,7 @@ const E = { class: "pos-relative bg-light radius-big flex-column flex" }, P = {
|
|
20
20
|
key: 1,
|
21
21
|
controls: "",
|
22
22
|
class: "mn-b-medium object-fit-cover w-100 h-max-20r"
|
23
|
-
}, R = ["src"],
|
23
|
+
}, R = ["src"], O = {
|
24
24
|
__name: "CardBlogpost",
|
25
25
|
props: {
|
26
26
|
blogpost: {
|
@@ -35,69 +35,74 @@ const E = { class: "pos-relative bg-light radius-big flex-column flex" }, P = {
|
|
35
35
|
hideDescription: {
|
36
36
|
type: Boolean,
|
37
37
|
default: !1
|
38
|
+
},
|
39
|
+
hideTitle: {
|
40
|
+
type: Boolean,
|
41
|
+
default: !1
|
38
42
|
}
|
39
43
|
},
|
40
|
-
setup(
|
41
|
-
const p =
|
42
|
-
return (
|
43
|
-
var
|
44
|
-
return o(), l("article",
|
45
|
-
|
44
|
+
setup(e) {
|
45
|
+
const p = E(), a = e, n = c(() => a.blogpost.content.find((t) => t.type === "ImageUpload")), r = c(() => a.blogpost.content.find((t) => t.type === "Video")), i = c(() => a.blogpost.content.find((t) => t.type === "Textarea"));
|
46
|
+
return (t, d) => {
|
47
|
+
var m;
|
48
|
+
return o(), l("article", P, [
|
49
|
+
g(k, {
|
46
50
|
class: f({
|
47
|
-
"mn-b-small pd-medium":
|
48
|
-
"flex-child-order-last flex-child mn-l-small":
|
51
|
+
"mn-b-small pd-medium": e.type !== "short",
|
52
|
+
"flex-child-order-last flex-child mn-l-small": e.type === "short"
|
49
53
|
}),
|
50
|
-
entity:
|
54
|
+
entity: e.blogpost,
|
51
55
|
entityType: "blogpost",
|
52
|
-
user:
|
53
|
-
owner:
|
54
|
-
creator:
|
55
|
-
date:
|
56
|
-
actions:
|
57
|
-
{ to: { name: "Edit BlogPost", params: { url:
|
56
|
+
user: e.user,
|
57
|
+
owner: e.blogpost.owner,
|
58
|
+
creator: e.blogpost.creator,
|
59
|
+
date: e.blogpost.createdAt,
|
60
|
+
actions: e.user && e.user === e.blogpost.creator.target._id ? [
|
61
|
+
{ to: { name: "Edit BlogPost", params: { url: e.blogpost.url } }, label: "Edit" }
|
58
62
|
] : null
|
59
63
|
}, null, 8, ["class", "entity", "user", "owner", "creator", "date", "actions"]),
|
60
|
-
b("section",
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
+
b("section", T, [
|
65
|
+
e.type !== "blogpostPage" ? (o(), l("div", V, [
|
66
|
+
e.hideTitle ? s("", !0) : (o(), h(B, {
|
67
|
+
key: 0,
|
68
|
+
text: e.blogpost.name || "",
|
64
69
|
maxLen: 80,
|
65
70
|
class: "h3 d-block",
|
66
|
-
onClick: d[0] || (d[0] = (
|
71
|
+
onClick: d[0] || (d[0] = (j) => y(p).push({
|
67
72
|
name: "BlogPost",
|
68
73
|
params: {
|
69
|
-
url:
|
74
|
+
url: e.blogpost.url
|
70
75
|
}
|
71
76
|
}))
|
72
|
-
}, null, 8, ["text"]),
|
73
|
-
|
77
|
+
}, null, 8, ["text"])),
|
78
|
+
e.blogpost.status === "draft" ? (o(), l("div", S, u(e.blogpost.status), 1)) : s("", !0)
|
74
79
|
])) : s("", !0),
|
75
|
-
i.value && i.value.content &&
|
76
|
-
|
77
|
-
|
80
|
+
i.value && i.value.content && e.type !== "blogpostPage" && !e.hideDescription ? (o(), l("p", $, u(i.value.content.slice(0, 120)) + "... ", 1)) : s("", !0),
|
81
|
+
e.type === "blogpostPage" && !e.hideTitle ? (o(), l("h3", z, u(e.blogpost.name), 1)) : s("", !0),
|
82
|
+
v(t.$slots, "default")
|
78
83
|
]),
|
79
|
-
n.value && n.value.content &&
|
84
|
+
n.value && n.value.content && e.type !== "blogpostPage" ? (o(), l("img", {
|
80
85
|
key: 0,
|
81
|
-
src: (
|
86
|
+
src: (t.FILE_SERVER_URL || "") + n.value.content,
|
82
87
|
alt: "Blog post image",
|
83
88
|
class: "mn-b-medium object-fit-cover w-100 h-min-10r h-100"
|
84
89
|
}, null, 8, C)) : s("", !0),
|
85
|
-
!((
|
90
|
+
!((m = n.value) != null && m.content) && r.value && r.value.content && e.type !== "blogpostPage" ? (o(), l("video", N, [
|
86
91
|
b("source", {
|
87
92
|
src: r.value.content,
|
88
93
|
type: "video/mp4"
|
89
94
|
}, null, 8, R),
|
90
|
-
|
95
|
+
x(" Your browser does not support the video tag. ")
|
91
96
|
])) : s("", !0),
|
92
|
-
|
97
|
+
g(w, {
|
93
98
|
class: "pd-t-zero pd-medium",
|
94
|
-
blogpost:
|
95
|
-
user:
|
99
|
+
blogpost: e.blogpost,
|
100
|
+
user: e.user
|
96
101
|
}, null, 8, ["blogpost", "user"])
|
97
102
|
]);
|
98
103
|
};
|
99
104
|
}
|
100
105
|
};
|
101
106
|
export {
|
102
|
-
|
107
|
+
O as default
|
103
108
|
};
|
package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),f=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),f=require("../../../../components/Select/Select.vue2.cjs"),g=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),x=require("../../../icons/entities/IconFeatured.vue.cjs"),b=require("../../../icons/entities/IconPopular.vue.cjs"),w=require("../../../icons/entities/IconRecent.vue.cjs"),_=require("../../../icons/entities/IconFollowing.vue.cjs"),a=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),d=require("../../../organizations/store/organizations.cjs"),k=require("../../../organizations/store/memberships.cjs"),N={style:{"grid-template-columns":"2fr 4fr 2fr"},class:"cols-3 gap-thin pd-thin"},V={class:"align-self-start pos-sticky pos-t-0 w-100 bg-light radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex"},v={class:"pos-relative"},C={class:"bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex"},y={class:"pos-relative flex-v-center flex-nowrap flex"},B=e.createElementVNode("span",{class:"mn-r-thin"},"Topics for ",-1),q={class:"align-self-start bg-light radius-big pd-medium"},E={class:"gap-thin flex-nowrap flex"},z=e.createElementVNode("p",{class:"t-medium mn-b-small"},"Popular Communities",-1),T={__name:"Community",setup(F){const o=m.useRoute(),s=m.useRouter();o.params.category==="popular"&&(a.state.sort.param="views"),o.params.category==="new"&&(a.state.sort.param="createdAt");const p=({membership:u,status:t,target:n},c,r)=>{k.mutations.handleMembershipUpdate(d.state.current,u,t,n,c,r)};return(u,t)=>{const n=e.resolveComponent("router-link"),c=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("ul",V,[e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="featured"},"cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"]),onClick:t[0]||(t[0]=()=>{a.state.sort.param="createdAt",e.unref(s).push({name:"Blog",params:{category:"featured"}})})},[e.createVNode(x.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Featured ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="popular"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:t[1]||(t[1]=()=>{a.state.sort.param="views",e.unref(s).push({name:"Blog",params:{category:"popular"}})})},[e.createVNode(b.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Popular ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="new"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:t[2]||(t[2]=()=>{a.state.sort.param="createdAt",e.unref(s).push({name:"Blog",params:{category:"new"}})})},[e.createVNode(w.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Recent ")],2),i.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="following"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:t[3]||(t[3]=()=>{a.state.sort.param="createdAt",e.unref(s).push({name:"Blog",params:{category:"following"}})})},[e.createVNode(_.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Following ")],2)):e.createCommentVNode("",!0),e.createVNode(n,{to:{name:"Create BlogPost"},class:"button t-medium mn-t-small bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Create Post ")]),_:1})]),e.createElementVNode("section",v,[e.createElementVNode("header",C,[e.createElementVNode("h3",y,[B,e.createVNode(f.default,{options:["today","week","month","year","all time"],select:a.state.filter.period,"onUpdate:select":t[4]||(t[4]=r=>a.state.filter.period=r),placeholder:"all time",class:"t-semi pos-relative w-max bg-main t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10"},null,8,["select"])])]),e.createVNode(c,null,{default:e.withCtx(({Component:r,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r),{ref:"page",key:l.query}))]),_:2},1024)]),_:1})]),e.createElementVNode("div",q,[e.createElementVNode("div",E,[z,i.state.user._id?(e.openBlock(),e.createBlock(n,{key:0,to:{name:"Create Organization"},class:"t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" + ")]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createVNode(g.default,{states:{empty:{title:"No Organization Found",description:"Currently, there are no organization available."}},store:{read:r=>d.actions.read(r),state:d.state},options:{user:i.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,l=>(e.openBlock(),e.createBlock(h.default,{key:l._id,organization:l,user:i.state.user,showProducts:!1,showRating:!1,showFeatured:!1,showFollowers:!1,onUpdateMembership:p,class:"mn-b-thin w-100 pd-0 bg-white radius-big o-hidden"},null,8,["organization","user"]))),128))]),_:1},8,["store","options"])]),_:1})])])}}};exports.default=T;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { resolveComponent as x, openBlock as n, createElementBlock as h, createElementVNode as t, normalizeClass as u, unref as s, createVNode as r, createTextVNode as l, createCommentVNode as w, withCtx as m, Transition as y, createBlock as _, resolveDynamicComponent as C, Fragment as B, renderList as $ } from "vue";
|
2
2
|
import { useRoute as F, useRouter as z } from "vue-router";
|
3
|
-
import N from "../../../../components/Select/Select.
|
3
|
+
import N from "../../../../components/Select/Select.vue2.js";
|
4
4
|
import P from "../../../../components/Feed/Feed.vue.js";
|
5
5
|
import A from "../../../organizations/components/blocks/CardOrganization.vue.js";
|
6
6
|
import M from "../../../icons/entities/IconFeatured.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const s=require("../../../../components/EmptyState/EmptyState.vue.cjs"),c=require("../blocks/CardBlogpost.vue.cjs"),i=require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs"),d=require("../../../organizations/components/sections/Publics.vue.cjs"),m=require("../sections/Comments.vue.cjs"),p=require("../../../constructor/components/sections/Viewer.vue.cjs"),g=require("../../store/blogposts.cjs"),r=require("../../../auth/store/auth.cjs"),k=require("vue-router"),b={class:"pd-thin"},v=["href"],h=e.createElementVNode("h3",{class:"mn-b-small"},"Recommended Communities",-1),_={__name:"BlogPost",setup(f){const n=k.useRoute(),t=e.ref(null),o=e.ref(!0);return e.onMounted(async()=>{o.value=!0;const a=await g.read({user:r.state.user._id,url:n.params.url});t.value=a[0],o.value=!1}),(a,l)=>(e.openBlock(),e.createElementBlock("section",b,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-light radius-big"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,u=>e.createVNode(i.default,{key:u})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!o.value&&!t.value?(e.openBlock(),e.createBlock(s.default,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-b-thin bg-light radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!o.value&&t.value?(e.openBlock(),e.createBlock(c.default,{key:0,onClick:l[0]||(l[0]=u=>a.$router.push({name:"Blogpost",params:{url:t.value.url}})),blogpost:t.value,user:r.state.user._id,type:"blogpostPage",hideTitle:!0,class:"mn-b-medium"},{default:e.withCtx(()=>[t.value&&t.value.content?(e.openBlock(),e.createBlock(p.default,{key:0,content:t.value.content},null,8,["content"])):e.createCommentVNode("",!0),t.value.source?(e.openBlock(),e.createElementBlock("a",{key:1,href:t.value.source,target:"_blank",class:"mn-b-semi d-block w-max radius-big pd-thin bg-black t-white"}," Check Source 🔗 ",8,v)):e.createCommentVNode("",!0)]),_:1},8,["blogpost","user"])):e.createCommentVNode("",!0),h,e.createVNode(d.default,{class:"mn-b-small"}),!o.value&&t.value?(e.openBlock(),e.createBlock(m.default,{key:1,type:"blogpost",target:t.value._id,owner:r.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;
|
@@ -1,52 +1,36 @@
|
|
1
|
-
import { ref as d, onMounted as
|
1
|
+
import { ref as d, onMounted as f, openBlock as t, createElementBlock as u, createVNode as r, TransitionGroup as p, withCtx as l, Fragment as g, renderList as b, createCommentVNode as a, Transition as v, createBlock as s, createElementVNode as h } from "vue";
|
2
2
|
/* empty css */
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import {
|
12
|
-
|
13
|
-
import { useRoute as E } from "vue-router";
|
14
|
-
const F = { class: "pd-thin" }, I = ["href"], R = /* @__PURE__ */ v("h3", { class: "mn-b-small" }, "Recommended Communities", -1), Y = {
|
3
|
+
import k from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
|
+
import y from "../blocks/CardBlogpost.vue.js";
|
5
|
+
import B from "../../../icons/skeletons/SkeletonBlogpost.vue.js";
|
6
|
+
import $ from "../../../organizations/components/sections/Publics.vue.js";
|
7
|
+
import w from "../sections/Comments.vue.js";
|
8
|
+
import C from "../../../constructor/components/sections/Viewer.vue.js";
|
9
|
+
import { read as N } from "../../store/blogposts.js";
|
10
|
+
import { state as i } from "../../../auth/store/auth.js";
|
11
|
+
import { useRoute as x } from "vue-router";
|
12
|
+
const P = { class: "pd-thin" }, T = ["href"], V = /* @__PURE__ */ h("h3", { class: "mn-b-small" }, "Recommended Communities", -1), H = {
|
15
13
|
__name: "BlogPost",
|
16
|
-
setup(
|
17
|
-
const
|
18
|
-
|
14
|
+
setup(E) {
|
15
|
+
const _ = x(), e = d(null), o = d(!0);
|
16
|
+
return f(async () => {
|
19
17
|
o.value = !0;
|
20
|
-
const
|
21
|
-
e.value =
|
22
|
-
})
|
23
|
-
|
24
|
-
Textarea: "p",
|
25
|
-
H2: "h2",
|
26
|
-
Bullets: "p",
|
27
|
-
Caption: "p",
|
28
|
-
ImageUpload: M,
|
29
|
-
Video: P,
|
30
|
-
Link: "a",
|
31
|
-
Embed: N
|
32
|
-
};
|
33
|
-
function b(t) {
|
34
|
-
return t.type === "Textarea" ? { innerHTML: t.content, class: "p-big" } : t.type === "H2" ? { innerHTML: t.content, class: "h3" } : t.type === "Caption" ? { innerHTML: t.content } : t.type === "ImageUpload" ? { src: t.content } : {};
|
35
|
-
}
|
36
|
-
return (t, p) => (n(), l("section", F, [
|
37
|
-
s(f, {
|
18
|
+
const n = await N({ user: i.user._id, url: _.params.url });
|
19
|
+
e.value = n[0], o.value = !1;
|
20
|
+
}), (n, m) => (t(), u("section", P, [
|
21
|
+
r(p, {
|
38
22
|
tag: "ul",
|
39
23
|
name: "fade",
|
40
24
|
class: "o-hidden bg-light radius-big"
|
41
25
|
}, {
|
42
|
-
default:
|
43
|
-
o.value ? (
|
26
|
+
default: l(() => [
|
27
|
+
o.value ? (t(), u(g, { key: 0 }, b(3, (c) => r(B, { key: c })), 64)) : a("", !0)
|
44
28
|
]),
|
45
29
|
_: 1
|
46
30
|
}),
|
47
|
-
|
48
|
-
default:
|
49
|
-
!o.value && !e.value ? (
|
31
|
+
r(v, { name: "fade" }, {
|
32
|
+
default: l(() => [
|
33
|
+
!o.value && !e.value ? (t(), s(k, {
|
50
34
|
key: 0,
|
51
35
|
title: "No Blogpost Found",
|
52
36
|
description: "Currently, there are no blogposts available. Please check back later.",
|
@@ -55,48 +39,42 @@ const F = { class: "pd-thin" }, I = ["href"], R = /* @__PURE__ */ v("h3", { clas
|
|
55
39
|
]),
|
56
40
|
_: 1
|
57
41
|
}),
|
58
|
-
|
42
|
+
r(p, {
|
59
43
|
tag: "ul",
|
60
44
|
name: "fade",
|
61
45
|
class: "container"
|
62
46
|
}, {
|
63
|
-
default:
|
64
|
-
!o.value && e.value ? (
|
47
|
+
default: l(() => [
|
48
|
+
!o.value && e.value ? (t(), s(y, {
|
65
49
|
key: 0,
|
66
|
-
onClick:
|
50
|
+
onClick: m[0] || (m[0] = (c) => n.$router.push({ name: "Blogpost", params: { url: e.value.url } })),
|
67
51
|
blogpost: e.value,
|
68
|
-
user:
|
52
|
+
user: i.user._id,
|
69
53
|
type: "blogpostPage",
|
54
|
+
hideTitle: !0,
|
70
55
|
class: "mn-b-medium"
|
71
56
|
}, {
|
72
|
-
default:
|
73
|
-
|
74
|
-
e.value && e.value.content ? (n(!0), l(_, { key: 0 }, g(e.value.content, (r, c) => (n(), i(B(y[r.type]), $({
|
75
|
-
key: c,
|
76
|
-
index: c,
|
77
|
-
component: r,
|
78
|
-
prop: r,
|
79
|
-
class: r.class,
|
80
|
-
content: "content",
|
81
|
-
ref_for: !0
|
82
|
-
}, b(r), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : a("", !0)
|
83
|
-
]),
|
84
|
-
e.value.source ? (n(), l("a", {
|
57
|
+
default: l(() => [
|
58
|
+
e.value && e.value.content ? (t(), s(C, {
|
85
59
|
key: 0,
|
60
|
+
content: e.value.content
|
61
|
+
}, null, 8, ["content"])) : a("", !0),
|
62
|
+
e.value.source ? (t(), u("a", {
|
63
|
+
key: 1,
|
86
64
|
href: e.value.source,
|
87
65
|
target: "_blank",
|
88
66
|
class: "mn-b-semi d-block w-max radius-big pd-thin bg-black t-white"
|
89
|
-
}, " Check Source 🔗 ", 8,
|
67
|
+
}, " Check Source 🔗 ", 8, T)) : a("", !0)
|
90
68
|
]),
|
91
69
|
_: 1
|
92
70
|
}, 8, ["blogpost", "user"])) : a("", !0),
|
93
|
-
|
94
|
-
|
95
|
-
!o.value && e.value ? (
|
71
|
+
V,
|
72
|
+
r($, { class: "mn-b-small" }),
|
73
|
+
!o.value && e.value ? (t(), s(w, {
|
96
74
|
key: 1,
|
97
75
|
type: "blogpost",
|
98
76
|
target: e.value._id,
|
99
|
-
owner:
|
77
|
+
owner: i.user._id
|
100
78
|
}, null, 8, ["target", "owner"])) : a("", !0)
|
101
79
|
]),
|
102
80
|
_: 1
|
@@ -105,5 +83,5 @@ const F = { class: "pd-thin" }, I = ["href"], R = /* @__PURE__ */ v("h3", { clas
|
|
105
83
|
}
|
106
84
|
};
|
107
85
|
export {
|
108
|
-
|
86
|
+
H as default
|
109
87
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const p=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */;/* empty css */require("axios");;/* empty css */const _=require("../blocks/CardBlogpost.vue.cjs"),n=require("../../store/blogposts.cjs"),f=require("../../../auth/store/auth.cjs"),b=require("vue-router");;/* empty css */const v=l=>(e.pushScopeId("data-v-bdf0e48a"),l=l(),e.popScopeId(),l),g={class:"flex-v-center flex-nowrap flex mn-b-medium"},h=v(()=>e.createElementVNode("h3",{class:"mn-r-medium"},"Blog",-1)),k={class:""},w={class:"flex-nowrap flex pd-t-zero pd-b-zero pd-big"},q=["onClick"],y=["onClick"],C={__name:"Community",async setup(l){let s,u;const i=b.useRouter();[s,u]=e.withAsyncContext(()=>n.read()),await s,u(),console.log(n.state),e.ref({title:"",content:"",categories:[]});const d=async t=>{window.confirm("Are you sure you want to delete this post?")&&(console.log(t),await n.remove(t))};let c=e.ref("all");const a=e.computed(()=>c.value==="all"?n.state.all:n.state.all.filter(t=>t.categories.includes(c.value)));return e.computed(()=>{for(let t of a.value)if(t.blocks&&t.blocks.length>0){const r=t.blocks.find(o=>o.type.name==="ImageUpload");if(r)return r.content}return null}),(t,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",g,[h,e.createElementVNode("button",{onClick:r[0]||(r[0]=o=>e.unref(i).push({name:"Create BlogPost"})),class:"t-white bg-second button-small button"},"+")]),e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,o=>(e.openBlock(),e.createBlock(_.default,{key:o._id,blogpost:o,owner:f.state.user._id,class:"mn-b-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("button",{class:"mn-r-thin button-small w-100 button",onClick:m=>t.$router.push({path:"/community/posts/"+o.url+"/edit"})},"Edit",8,q),e.createElementVNode("button",{class:"button-small w-100 button",onClick:m=>d(o._id)},"Delete",8,y)])]),_:2},1032,["blogpost","owner"]))),128))])]))}},B=p.default(C,[["__scopeId","data-v-bdf0e48a"]]);exports.default=B;
|