@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
@@ -1,15 +1,15 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { useRoute as
|
1
|
+
import { ref as U, onMounted as B, openBlock as n, createElementBlock as s, createVNode as a, withCtx as o, createElementVNode as m, toDisplayString as E, unref as p, createBlock as b, createTextVNode as $, createCommentVNode as z, Fragment as f, renderList as _ } from "vue";
|
2
|
+
import { useRoute as F, useRouter as R } from "vue-router";
|
3
3
|
import "vue-i18n";
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
/* empty css */
|
6
6
|
import d from "../../../../components/Block/Block.vue.js";
|
7
7
|
/* empty css */
|
8
8
|
import v from "../../../../components/Field/Field.vue2.js";
|
9
|
-
import
|
9
|
+
import S from "../../../../components/Checkbox/Checkbox.vue.js";
|
10
10
|
import N from "../../../../components/Button/Button.vue2.js";
|
11
|
-
import
|
12
|
-
import
|
11
|
+
import T from "../../../../components/Popup/Popup.vue2.js";
|
12
|
+
import A from "../../../../components/Feed/Feed.vue.js";
|
13
13
|
import L from "../../../../components/EditImages/EditImages.vue.js";
|
14
14
|
import D from "../../../icons/navigation/IconDelete.vue.js";
|
15
15
|
import q from "../blocks/CardPosition.vue.js";
|
@@ -25,7 +25,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
25
25
|
}, Y = { class: "bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, Z = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, ee = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, ke = {
|
26
26
|
__name: "ProductEdit",
|
27
27
|
setup(te) {
|
28
|
-
const
|
28
|
+
const l = F(), k = R(), P = U(e.all), y = U(!1);
|
29
29
|
function O(g) {
|
30
30
|
y.value = !0;
|
31
31
|
}
|
@@ -33,10 +33,10 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
33
33
|
y.value = !1;
|
34
34
|
}
|
35
35
|
B(async () => {
|
36
|
-
G.resetProduct(),
|
36
|
+
G.resetProduct(), l.params.product && await c.read({ _id: l.params.product }), e.current.ingredients || (e.current.ingredients = []), await H.fetchCategories();
|
37
37
|
try {
|
38
38
|
const g = await c.read({
|
39
|
-
organization:
|
39
|
+
organization: l.params._id,
|
40
40
|
limit: 100
|
41
41
|
});
|
42
42
|
P.value = g;
|
@@ -45,7 +45,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
45
45
|
}
|
46
46
|
});
|
47
47
|
function I() {
|
48
|
-
|
48
|
+
l.params.product ? c.update(l.params.product, e.current) : c.create(l.params._id, e.current);
|
49
49
|
}
|
50
50
|
function V() {
|
51
51
|
c.deleteProduct(e.current._id);
|
@@ -54,22 +54,22 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
54
54
|
k.push({
|
55
55
|
name: "Organization",
|
56
56
|
params: {
|
57
|
-
_id:
|
57
|
+
_id: l.params._id
|
58
58
|
}
|
59
59
|
});
|
60
60
|
}
|
61
61
|
return (g, h) => (n(), s("div", K, [
|
62
62
|
a(d, { class: "flex-nowrap flex-v-center flex" }, {
|
63
|
-
default:
|
64
|
-
m("h1", Q, E(p(
|
65
|
-
p(
|
63
|
+
default: o(() => [
|
64
|
+
m("h1", Q, E(p(l).params.product ? e.current.name : "Create Product"), 1),
|
65
|
+
p(l).params.product ? (n(), b(N, {
|
66
66
|
key: 0,
|
67
67
|
submit: V,
|
68
68
|
callback: C,
|
69
69
|
class: "bg-red mn-r-thin"
|
70
70
|
}, {
|
71
|
-
default:
|
72
|
-
|
71
|
+
default: o(() => [
|
72
|
+
$(" Delete ")
|
73
73
|
]),
|
74
74
|
_: 1
|
75
75
|
})) : z("", !0),
|
@@ -78,8 +78,8 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
78
78
|
callback: C,
|
79
79
|
class: "bg-main"
|
80
80
|
}, {
|
81
|
-
default:
|
82
|
-
|
81
|
+
default: o(() => [
|
82
|
+
$(" Save ")
|
83
83
|
]),
|
84
84
|
_: 1
|
85
85
|
})
|
@@ -90,7 +90,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
90
90
|
placeholder: "The product doesn't have any images yet.",
|
91
91
|
class: "h-min"
|
92
92
|
}, {
|
93
|
-
default:
|
93
|
+
default: o(() => [
|
94
94
|
a(L, {
|
95
95
|
images: e.current.images,
|
96
96
|
uploadPath: "photos",
|
@@ -103,7 +103,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
103
103
|
}),
|
104
104
|
m("div", W, [
|
105
105
|
a(d, { title: "Profile" }, {
|
106
|
-
default:
|
106
|
+
default: o(() => [
|
107
107
|
a(j, {
|
108
108
|
product: e.current
|
109
109
|
}, null, 8, ["product"])
|
@@ -118,7 +118,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
118
118
|
function: () => O()
|
119
119
|
}]
|
120
120
|
}, {
|
121
|
-
default:
|
121
|
+
default: o(() => [
|
122
122
|
e.current.ingredients.length > 0 ? (n(), s("div", X, [
|
123
123
|
(n(!0), s(f, null, _(e.current.ingredients, (t, i) => (n(), b(q, {
|
124
124
|
key: t._id,
|
@@ -140,15 +140,15 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
140
140
|
]),
|
141
141
|
_: 1
|
142
142
|
}, 8, ["actions"]),
|
143
|
-
a(
|
143
|
+
a(T, {
|
144
144
|
title: "Add ingredient",
|
145
145
|
onClosePopup: u,
|
146
146
|
isPopupOpen: y.value,
|
147
147
|
class: "bg-white w-min-30r w-max-30r radius-big pd-medium"
|
148
148
|
}, {
|
149
|
-
default:
|
149
|
+
default: o(() => [
|
150
150
|
m("div", Y, [
|
151
|
-
a(
|
151
|
+
a(A, {
|
152
152
|
search: {
|
153
153
|
class: "bg-white mn-b-thin"
|
154
154
|
},
|
@@ -163,11 +163,11 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
163
163
|
state: null
|
164
164
|
},
|
165
165
|
options: {
|
166
|
-
organization: p(
|
166
|
+
organization: p(l).params._id
|
167
167
|
},
|
168
168
|
class: ""
|
169
169
|
}, {
|
170
|
-
default:
|
170
|
+
default: o(({
|
171
171
|
items: t
|
172
172
|
}) => [
|
173
173
|
(n(!0), s(f, null, _(t, (i, r) => (n(), b(M, {
|
@@ -195,13 +195,13 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
195
195
|
function: () => p(k).push({
|
196
196
|
name: "Categories Organization",
|
197
197
|
params: {
|
198
|
-
_id: p(
|
198
|
+
_id: p(l).params._id
|
199
199
|
}
|
200
200
|
})
|
201
201
|
}]
|
202
202
|
}, {
|
203
|
-
default:
|
204
|
-
(n(!0), s(f, null, _(J.all, (t, i) => (n(), b(
|
203
|
+
default: o(() => [
|
204
|
+
(n(!0), s(f, null, _(J.all, (t, i) => (n(), b(S, {
|
205
205
|
label: t.name,
|
206
206
|
name: "categories",
|
207
207
|
value: t.url,
|
@@ -221,7 +221,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
221
221
|
}],
|
222
222
|
class: "cols-1 gap-thin"
|
223
223
|
}, {
|
224
|
-
default:
|
224
|
+
default: o(() => [
|
225
225
|
(n(!0), s(f, null, _(e.current.information, (t, i) => (n(), s("div", {
|
226
226
|
class: "gap-thin flex-nowrap flex",
|
227
227
|
key: i
|
@@ -256,7 +256,7 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
256
256
|
function: () => e.current.localization.push({ name: "", value: "" })
|
257
257
|
}]
|
258
258
|
}, {
|
259
|
-
default:
|
259
|
+
default: o(() => [
|
260
260
|
(n(!0), s(f, null, _(e.current.localization, (t, i) => (n(), s("div", {
|
261
261
|
class: "gap-thin mn-b-thin flex-nowrap flex",
|
262
262
|
key: i
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js
CHANGED
@@ -3,7 +3,7 @@ import u from "../../../../components/Field/Field.vue2.js";
|
|
3
3
|
const M = {
|
4
4
|
key: 0,
|
5
5
|
class: "mn-b-small w-100"
|
6
|
-
},
|
6
|
+
}, B = { class: "w-100 flex-nowrap flex" }, $ = ["onClick"], E = /* @__PURE__ */ e("svg", {
|
7
7
|
width: "26",
|
8
8
|
height: "26",
|
9
9
|
viewBox: "0 0 26 26",
|
@@ -23,7 +23,7 @@ const M = {
|
|
23
23
|
})
|
24
24
|
], -1), N = [
|
25
25
|
E
|
26
|
-
], V = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), q = ["onClick"],
|
26
|
+
], V = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), q = ["onClick"], F = /* @__PURE__ */ e("svg", {
|
27
27
|
width: "26",
|
28
28
|
height: "26",
|
29
29
|
viewBox: "0 0 26 26",
|
@@ -41,9 +41,9 @@ const M = {
|
|
41
41
|
d: "M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",
|
42
42
|
fill: "rgb(var(--white))"
|
43
43
|
})
|
44
|
-
], -1),
|
45
|
-
|
46
|
-
],
|
44
|
+
], -1), Z = [
|
45
|
+
F
|
46
|
+
], j = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), O = ["onClick"], z = {
|
47
47
|
__name: "EditModifications",
|
48
48
|
props: {
|
49
49
|
product: Object
|
@@ -72,7 +72,7 @@ const M = {
|
|
72
72
|
class: "mn-b-small flex-column flex-wrap block",
|
73
73
|
key: a
|
74
74
|
}, [
|
75
|
-
e("div",
|
75
|
+
e("div", B, [
|
76
76
|
r(u, {
|
77
77
|
field: n.quantity,
|
78
78
|
"onUpdate:field": (t) => n.quantity = t,
|
@@ -90,7 +90,7 @@ const M = {
|
|
90
90
|
e("button", {
|
91
91
|
onClick: (t) => g(a),
|
92
92
|
class: "mn-l-small i-normal pd-regular button-delete button"
|
93
|
-
}, N, 8,
|
93
|
+
}, N, 8, $)
|
94
94
|
]),
|
95
95
|
V,
|
96
96
|
(i(!0), o(h, null, b(n.characteristics, (t, f) => (i(), o("div", {
|
@@ -112,9 +112,9 @@ const M = {
|
|
112
112
|
e("button", {
|
113
113
|
onClick: (c) => x(a, f),
|
114
114
|
class: "mn-l-small i-normal pd-regular button-delete button"
|
115
|
-
},
|
115
|
+
}, Z, 8, q)
|
116
116
|
]))), 128)),
|
117
|
-
|
117
|
+
j,
|
118
118
|
e("button", {
|
119
119
|
onClick: (t) => k(a),
|
120
120
|
class: "button"
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");;/* empty css */;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs"),i=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");;/* empty css */;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs"),i=require("../../../../components/Select/Select.vue2.cjs"),u={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,t)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(i.default,{select:e.product.status,"onUpdate:select":t[0]||(t[0]=l=>e.product.status=l),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":t[1]||(t[1]=l=>e.product.name=l),label:"Name",placeholder:"Enter product name",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":t[3]||(t[3]=l=>e.product.price=l),label:"Price",placeholder:"Enter product price",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(i.default,{select:e.product.price.currency,"onUpdate:select":t[2]||(t[2]=l=>e.product.price.currency=l),placeholder:"฿",options:["฿"],class:"pos-relative bg-light pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":t[4]||(t[4]=l=>e.product.description=l),label:"Description",placeholder:"Enter product description",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=u;
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { openBlock as
|
1
|
+
import { openBlock as u, createElementBlock as a, Fragment as o, createVNode as d, withCtx as n } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
import i from "../../../../components/Field/Field.vue2.js";
|
5
|
-
import r from "../../../../components/Select/Select.
|
5
|
+
import r from "../../../../components/Select/Select.vue2.js";
|
6
6
|
const w = {
|
7
7
|
__name: "EditProductInfo",
|
8
8
|
props: {
|
9
9
|
product: Object
|
10
10
|
},
|
11
11
|
setup(e) {
|
12
|
-
return (
|
12
|
+
return (p, t) => (u(), a(o, null, [
|
13
13
|
d(r, {
|
14
14
|
select: e.product.status,
|
15
15
|
"onUpdate:select": t[0] || (t[0] = (l) => e.product.status = l),
|
package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue2.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../store/reports.cjs"),b=e.createElementVNode("h3",{class:"mn-b-small"}," Report Content ",-1),g=e.createElementVNode("p",{class:"p-medium mn-b-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),v=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),h={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(i){const t=i,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function l(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:o[1]||(o[1]=n=>u())},[e.renderSlot(p.$slots,"default"),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[b,g,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[0]||(o[0]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-b-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),v,e.createVNode(d.default,{submit:l,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])]))}};exports.default=h;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { reactive as d, ref as f, openBlock as b, createElementBlock as g, renderSlot as h, createVNode as s, withCtx as l, createTextVNode as y, createElementVNode as a } from "vue";
|
2
|
-
import _ from "../../../../components/Popup/Popup.
|
2
|
+
import _ from "../../../../components/Popup/Popup.vue2.js";
|
3
3
|
import v from "../../../../components/Button/Button.vue2.js";
|
4
|
-
import w from "../../../../components/Select/Select.
|
4
|
+
import w from "../../../../components/Select/Select.vue2.js";
|
5
5
|
import { actions as S } from "../../store/reports.js";
|
6
6
|
const k = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, " Report Content ", -1), P = /* @__PURE__ */ a("p", { class: "p-medium mn-b-small" }, " We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ", -1), R = /* @__PURE__ */ a("p", { class: "p-medium mn-b-small" }, "Our moderators will review your report within 24 hours and take action if it violates our policies.", -1), O = {
|
7
7
|
__name: "FormReport",
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../icons/navigation/IconEdit.vue.cjs"),a=require("../../../../components/Chips/Chips.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../icons/navigation/IconEdit.vue.cjs"),a=require("../../../../components/Chips/Chips.vue.cjs"),d=require("../../../../components/Map/Map.vue.cjs");;/* empty css */const c=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),l=t=>(e.pushScopeId("data-v-6c15ff4f"),t=t(),e.popScopeId(),t),p={class:"radius-big o-hidden pos-relative cols-2-1_3"},u={class:"pd-medium w-100"},m=["innerHTML"],h={class:"d-block p-big mn-b-semi"},g=l(()=>e.createElementVNode("h4",null,"Delivery:",-1)),f=l(()=>e.createElementVNode("h4",null,"Accepted Payment:",-1)),y={__name:"CardSpot",props:{spot:Object,organization:Object},setup(t){const i=t;return(o,n)=>(e.openBlock(),e.createElementBlock("div",p,[e.createVNode(d.default,{apiKey:o.GOOGLE_MAPS_API_KEY,location:{lat:t.spot.location.coordinates[1],lng:t.spot.location.coordinates[0]},locale:o.$i18n.locale,class:""},null,8,["apiKey","location","locale"]),e.createElementVNode("div",u,[e.createVNode(r.default,{onClick:n[0]||(n[0]=s=>o.$router.push({name:"Spot Edit",params:{_id:i.organization._id,spot:t.spot._id}})),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"}),e.createElementVNode("p",{onClick:n[1]||(n[1]=s=>o.$router.push(`/app/organization/${i.organization._id}/spots/${t.spot._id}`)),class:"pd-thin bg-white radius-small mn-b-thin p-small w-max"},e.toDisplayString(t.spot.address),1),e.createElementVNode("h3",{onClick:n[2]||(n[2]=s=>o.$router.push(`/app/organization/${i.organization._id}/spots/${t.spot._id}`)),class:"mn-b-thin w-100",innerHTML:t.spot.profile.name},null,8,m),e.createElementVNode("p",h,e.toDisplayString(t.spot.profile.description),1),g,o.type!=="short"&&t.spot.delivery.length>0?(e.openBlock(),e.createBlock(a.default,{key:0,chips:t.spot.delivery},null,8,["chips"])):e.createCommentVNode("",!0),f,o.type!=="short"&&t.spot.payment.length>0?(e.openBlock(),e.createBlock(a.default,{key:1,chips:t.spot.payment},null,8,["chips"])):e.createCommentVNode("",!0)])]))}},v=c.default(y,[["__scopeId","data-v-6c15ff4f"]]);exports.default=v;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { openBlock as n, createElementBlock as u, createVNode as l, createElementVNode as i, toDisplayString as r, createBlock as p, createCommentVNode as d, pushScopeId as h, popScopeId as f } from "vue";
|
2
2
|
import g from "../../../icons/navigation/IconEdit.vue.js";
|
3
|
-
import c from "../../../../components/Chips/Chips.
|
3
|
+
import c from "../../../../components/Chips/Chips.vue.js";
|
4
4
|
import y from "../../../../components/Map/Map.vue.js";
|
5
5
|
/* empty css */
|
6
6
|
import $ from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs
CHANGED
@@ -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 _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */const f={class:"br-grey-transp-25 radius-small mn-b-small"},k={key:1,class:"pd-small br-grey-transp-25 br-1px br-solid"},v=["disabled"],y={__name:"SpotMemberModify",props:{isPopupOpen:Boolean,spot:Number,spots:Array,mainspot:Object,allspots:Array},emits:["callback","remove"],setup(a,{emit:c}){const t=a,r=c,o=e.ref({subspot:null});t.spot!==null&&(o.value=t.spots[t.spot]);function p(u,s,n){return u.filter(l=>!(s.some(b=>b._id===l._id)||n._id===l._id))}const i=e.computed(()=>p(t.allspots,t.spots,t.mainspot));async function m(){t.spots.push(o.value.subspot),r("callback")}async function d(){t.spots.splice(t.spot,1),r("callback")}return(u,s)=>{const n=e.resolveComponent("VueSelect");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",f,[t.spot===null?(e.openBlock(),e.createBlock(n,{key:0,modelValue:o.value.subspot,"onUpdate:modelValue":s[0]||(s[0]=l=>o.value.subspot=l),options:i.value,"get-option-label":l=>l.name,class:"w-100 mn-b-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",k,e.toDisplayString(o.value.name?o.value.name:"Безымянный"),1))]),t.spot===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!o.value.subspot,onClick:m,class:"w-100 button bg-second t-white"}," Добавить отдел ",8,v)):e.createCommentVNode("",!0),t.spot!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 button bg-fourth t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)])}}},B=_.default(y,[["__scopeId","data-v-3c991e96"]]);exports.default=B;
|
package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as v, computed as y, resolveComponent as k, openBlock as s, createElementBlock as n, createElementVNode as g, createBlock as S, toDisplayString as V, createCommentVNode as u } from "vue";
|
2
2
|
/* empty css */
|
3
|
-
/* empty css */
|
4
3
|
import h from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
/* empty css */
|
5
5
|
/* empty css */
|
6
6
|
const w = { class: "br-grey-transp-25 radius-small mn-b-small" }, M = {
|
7
7
|
key: 1,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router"),v=require("vue-i18n");;/* empty css */;/* empty css */require("../../../globals/localization/vue-i18n.cjs");;/* empty css */;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router"),v=require("vue-i18n");;/* empty css */;/* empty css */require("../../../globals/localization/vue-i18n.cjs");;/* empty css */;/* empty css */const m=require("../../../globals/store/globals.cjs"),f=require("../../../products/store/categories.cjs"),g=require("../../../marketplace/store/marketplace.cjs"),h={class:"w-100 h-100"},k={class:"h-100 w-100 flex-nowrap flex-column flex gap-thin"},_={class:"pos-absolute z-index-2 w-100"},w={class:"bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center"},b=e.createElementVNode("span",{class:""},"Weed in ",-1),B={key:0},q={key:1},E={key:2},C={__name:"Spots",setup(O){const s=y.useRoute(),n=y.useRouter(),o=e.ref({city:null,state:null,country:null});function u(t){return t.replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}e.onMounted(async()=>{if(s.params){let t={country:u(s.params.country),state:u(s.params.state),city:u(s.params.city)};o.value=t}if(s.query){const t=s.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};g.state.filter.selected=r}await f.actions.fetchCategories()}),e.watch(()=>g.state.filter.selected,(t,r)=>{const a={...s.query};Object.keys(r).forEach(l=>{a[l]&&delete a[l]});const i=Object.fromEntries(Object.entries(t).filter(([l,c])=>Array.isArray(c)&&c.length>0).map(([l,c])=>[l,c.join(",")]));Object.assign(a,i),n.push({query:a})},{deep:!0});function p(t){return t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,"")}e.watch(()=>m.state.position,t=>{const r={...n.currentRoute.value};let a={country:p(t.country),state:p(t.state),city:p(t.city)};r.params=a,n.replace(r)},{deep:!0});const d={locale:"en",messages:{en:{meta:{title:"Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",description:"Browse our marketplace of top-grade weed strains and choose from a variety of delivery options. Order now and have your favorite strains delivered straight to your door. Safe, fast, and reliable."},breadcrumbs:{home:"Home",store:"Marketplace"},categoriesTitle:"Category",categories:[],sort:{price:"By price",newest:"By newest",popularity:"By popularity"},filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{meta:{title:"Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",description:"Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."},breadcrumbs:{home:"Главная",store:"Маркетплейс"},categoriesTitle:"Категория",categories:[],sort:{price:"По цене",newest:"По новизне",popularity:"По популярности"},filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};return f.state.all.forEach(t=>{t.localization.forEach(r=>{d.messages[r.locale].categories.push(r.text)})}),v.useI18n(d),(t,r)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",k,[e.createElementVNode("div",_,[e.createElementVNode("h2",w,[b,o.value.city||o.value.state||o.value.country?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[0]||(r[0]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"},[o.value.city?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(o.value.city)+", ",1)):e.createCommentVNode("",!0),o.value.state?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(o.value.state)+", ",1)):e.createCommentVNode("",!0),o.value.country?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(o.value.country),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",{key:1,onClick:r[1]||(r[1]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"}," The World "))])]),e.createVNode(a,null,{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.value,apiKey:t.GOOGLE_MAPS_API_KEY,locale:t.$i18n.locale,class:""},null,8,["localPosition","apiKey","locale"]))]),_:2},1024)]),_:1})])])}}};exports.default=C;
|
@@ -5,7 +5,7 @@ import { useI18n as j } from "vue-i18n";
|
|
5
5
|
/* empty css */
|
6
6
|
import "../../../globals/localization/vue-i18n.js";
|
7
7
|
/* empty css */
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
import { state as h } from "../../../globals/store/globals.js";
|
10
10
|
import { actions as q, state as R } from "../../../products/store/categories.js";
|
11
11
|
import { state as b } from "../../../marketplace/store/marketplace.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Block/Block.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs");;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Block/Block.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs");;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Select/Select.vue2.cjs"),n=require("../../../../components/Checkbox/Checkbox.vue.cjs"),w=require("../../../../components/Address/Address.vue2.cjs"),V=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),m=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");;/* empty css */const t=require("../../store/spots.cjs"),y={class:"for-transition w-100 cols-1 pd-thin gap-thin"},E={class:"mn-r-auto"},S={class:"cols-2 gap-thin"},q={class:"gap-small mn-b-small cols-2-fit-content"},k={class:"w-100"},U=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please the available delivery options:",-1),_=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please select the available payment methods:",-1),P=e.createElementVNode("p",{class:"mn-b-small p-medium"},"Options:",-1),O={__name:"SpotEdit",setup(x){const p=u.useRouter(),l=u.useRoute();e.ref("details"),e.ref(!1),e.onMounted(async()=>{await c()});async function c(){var s,o;l.params.spot&&await t.actions.readOne(l.params.spot);const i=(s=t.state.spot.location)==null?void 0:s.coordinates[0],a=(o=t.state.spot.location)==null?void 0:o.coordinates[1];t.state.spot.location={lat:a||1,lng:i||1}}async function f(){t.state.spot.location={type:"Point",coordinates:[t.state.spot.location.lng,t.state.spot.location.lat]},l.params.spot&&await t.actions.update(l.params._id,t.state.spot),l.params.spot||await t.actions.create(l.params._id,t.state.spot)}function b(){p.push({name:"Organization",params:{_id:l.params._id}})}async function h(){await t.actions.delete(l.params._id,t.state.spot)}function v(){p.push({name:"Organization",params:{_id:l.params._id}})}return(i,a)=>(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(d.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",E,e.toDisplayString(e.unref(l).params.spot?t.state.spot.profile.name:"Create Spot"),1),e.createVNode(m.default,{submit:f,callback:b,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save Spot ")]),_:1})]),_:1}),e.createElementVNode("div",S,[e.createVNode(d.default,{title:"Profile",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(g.default,{photo:t.state.spot.profile.photo,"onUpdate:photo":a[0]||(a[0]=s=>t.state.spot.profile.photo=s),uploadPath:"organizations/"+t.state.spot.name+"/avatars",class:"aspect-1x1 w-8r o-hidden radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",k,[e.createVNode(r.default,{field:t.state.spot.profile.name,"onUpdate:field":a[1]||(a[1]=s=>t.state.spot.profile.name=s),label:"Name",placeholder:"Spot Name",class:"mn-b-small bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"]),e.createVNode(r.default,{field:t.state.spot.profile.description,"onUpdate:field":a[2]||(a[2]=s=>t.state.spot.profile.description=s),label:"Description",placeholder:"Spot description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])])]),e.createVNode(N.default,{select:t.state.spot.status,"onUpdate:select":a[3]||(a[3]=s=>t.state.spot.status=s),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),U,(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["pickup","courier","post"],s=>e.createVNode(n.default,{label:s,name:"Delivery",value:s,class:"w-100 mn-b-small bg-white radius-small pd-small",radio:t.state.spot.delivery,"onUpdate:radio":a[4]||(a[4]=o=>t.state.spot.delivery=o)},null,8,["label","value","radio"])),64)),_,(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["cash","bank transfer","crypto"],s=>e.createVNode(n.default,{label:s,name:"Payment",value:s,class:"w-100 mn-b-small bg-white radius-small pd-small",radio:t.state.spot.payment,"onUpdate:radio":a[5]||(a[5]=o=>t.state.spot.payment=o)},null,8,["label","value","radio"])),64))]),_:1}),e.createVNode(d.default,{title:"Location",class:"pos-relative"},{default:e.withCtx(()=>{var s;return[e.createVNode(w.default,{apiKey:i.GOOGLE_MAPS_API_KEY,address:t.state.spot.address,location:t.state.spot.location,locale:i.$i18n.locale,label:"Address",placeholder:"Enter delivery address",class:"bg-white pd-small radius-tl-medium radius-tr-medium","onUpdate:location":a[6]||(a[6]=o=>{t.state.spot.location=o}),"onUpdate:address":a[7]||(a[7]=o=>{t.state.spot.address=o})},null,8,["apiKey","address","location","locale"]),e.createVNode(V.default,{apiKey:i.GOOGLE_MAPS_API_KEY,address:t.state.spot.address,location:t.state.spot.location,locale:i.$i18n.locale,class:"h-20r mn-b-small radius-bl-medium radius-br-medium o-hidden","onUpdate:location":a[8]||(a[8]=o=>{t.state.spot.location=o}),"onUpdate:address":a[9]||(a[9]=o=>{t.state.spot.address=o})},null,8,["apiKey","address","location","locale"]),P,e.createVNode(n.default,{label:"Hide address",name:"address",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:(s=t.state.spot.position)==null?void 0:s.hide,"onUpdate:radio":a[10]||(a[10]=o=>t.state.spot.position.hide=o)},null,8,["radio"]),e.createVNode(r.default,{field:t.state.spot.minorder,"onUpdate:field":a[11]||(a[11]=o=>t.state.spot.minorder=o),label:"Min.order",placeholder:"Enter minimum order value",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])]}),_:1})]),e.createVNode(m.default,{submit:h,callback:v,class:"w-100 bg-light"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1})]))}};exports.default=O;
|
@@ -1,22 +1,22 @@
|
|
1
|
-
import { ref as v, onMounted as
|
2
|
-
import { useRouter as
|
1
|
+
import { ref as v, onMounted as D, openBlock as p, createElementBlock as m, createVNode as l, withCtx as d, createElementVNode as n, toDisplayString as N, unref as O, createTextVNode as h, Fragment as g, renderList as w } from "vue";
|
2
|
+
import { useRouter as $, useRoute as k } from "vue-router";
|
3
3
|
import u from "../../../../components/Block/Block.vue.js";
|
4
4
|
import z from "../../../../components/UploadImage/UploadImage.vue.js";
|
5
5
|
/* empty css */
|
6
6
|
import c from "../../../../components/Field/Field.vue2.js";
|
7
|
-
import K from "../../../../components/Select/Select.
|
7
|
+
import K from "../../../../components/Select/Select.vue2.js";
|
8
8
|
import f from "../../../../components/Checkbox/Checkbox.vue.js";
|
9
9
|
import A from "../../../../components/Address/Address.vue2.js";
|
10
10
|
import G from "../../../../components/LocationMarker/LocationMarker.vue2.js";
|
11
|
-
import
|
11
|
+
import _ from "../../../../components/Button/Button.vue2.js";
|
12
12
|
import "vue-i18n";
|
13
|
-
/* empty css
|
13
|
+
/* empty css */
|
14
14
|
import { actions as r, state as a } from "../../store/spots.js";
|
15
|
-
const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, M = { class: "mn-r-auto" }, x = { class: "cols-2 gap-thin" }, V = { class: "gap-small mn-b-small cols-2-fit-content" }, B = { class: "w-100" }, C = /* @__PURE__ */ n("p", { class: "p-medium mn-b-small" }, "Please the available delivery options:", -1),
|
15
|
+
const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, M = { class: "mn-r-auto" }, x = { class: "cols-2 gap-thin" }, V = { class: "gap-small mn-b-small cols-2-fit-content" }, B = { class: "w-100" }, C = /* @__PURE__ */ n("p", { class: "p-medium mn-b-small" }, "Please the available delivery options:", -1), F = /* @__PURE__ */ n("p", { class: "p-medium mn-b-small" }, "Please select the available payment methods:", -1), I = /* @__PURE__ */ n("p", { class: "mn-b-small p-medium" }, "Options:", -1), la = {
|
16
16
|
__name: "SpotEdit",
|
17
|
-
setup(
|
18
|
-
const b =
|
19
|
-
v("details"), v(!1),
|
17
|
+
setup(R) {
|
18
|
+
const b = $(), e = k();
|
19
|
+
v("details"), v(!1), D(async () => {
|
20
20
|
await y();
|
21
21
|
});
|
22
22
|
async function y() {
|
@@ -55,8 +55,8 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, M = { class
|
|
55
55
|
return (i, o) => (p(), m("div", L, [
|
56
56
|
l(u, { class: "flex-nowrap flex-v-center flex" }, {
|
57
57
|
default: d(() => [
|
58
|
-
n("h1", M,
|
59
|
-
l(
|
58
|
+
n("h1", M, N(O(e).params.spot ? a.spot.profile.name : "Create Spot"), 1),
|
59
|
+
l(_, {
|
60
60
|
submit: S,
|
61
61
|
callback: U,
|
62
62
|
class: "bg-main"
|
@@ -114,7 +114,7 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, M = { class
|
|
114
114
|
class: "pos-relative w-100 mn-b-small bg-white radius-small pd-medium"
|
115
115
|
}, null, 8, ["select"]),
|
116
116
|
C,
|
117
|
-
(p(), m(g, null,
|
117
|
+
(p(), m(g, null, w(["pickup", "courier", "post"], (s) => l(f, {
|
118
118
|
label: s,
|
119
119
|
name: "Delivery",
|
120
120
|
value: s,
|
@@ -122,8 +122,8 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, M = { class
|
|
122
122
|
radio: a.spot.delivery,
|
123
123
|
"onUpdate:radio": o[4] || (o[4] = (t) => a.spot.delivery = t)
|
124
124
|
}, null, 8, ["label", "value", "radio"])), 64)),
|
125
|
-
|
126
|
-
(p(), m(g, null,
|
125
|
+
F,
|
126
|
+
(p(), m(g, null, w(["cash", "bank transfer", "crypto"], (s) => l(f, {
|
127
127
|
label: s,
|
128
128
|
name: "Payment",
|
129
129
|
value: s,
|
@@ -169,7 +169,7 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, M = { class
|
|
169
169
|
a.spot.address = t;
|
170
170
|
})
|
171
171
|
}, null, 8, ["apiKey", "address", "location", "locale"]),
|
172
|
-
|
172
|
+
I,
|
173
173
|
l(f, {
|
174
174
|
label: "Hide address",
|
175
175
|
name: "address",
|
@@ -190,7 +190,7 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, M = { class
|
|
190
190
|
_: 1
|
191
191
|
})
|
192
192
|
]),
|
193
|
-
l(
|
193
|
+
l(_, {
|
194
194
|
submit: P,
|
195
195
|
callback: E,
|
196
196
|
class: "w-100 bg-light"
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../globals/components/layouts/Empty.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../globals/components/layouts/Empty.vue.cjs"),r=require("../components/layouts/Spots.vue.cjs"),e=require("../../middlewares/client/auth.validation.cjs"),o={path:"spots",component:t.default,meta:{title:{en:"Spots",ru:"Места"},breadcrumbs:{hide:!0,hidden:!0}},children:[{path:":country?",component:r.default,meta:{title:{en:"Spots",ru:"Места"},header_theme:"dark",footer_theme:"dark"},children:[{path:":state?",name:"Spots tate",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs")),children:[{path:":city?",name:"Spots City",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs"))}]}]},{path:":_id/spots/create",name:"Spot Creation",meta:{title:"Создание точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))},{path:":_id/spots/:spot",name:"Spot",meta:{title:"Точка"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/Spot.vue.cjs"))},{path:":_id/spots/:spot/edit",name:"Spot Edit",meta:{title:"Редактирование точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))}]};exports.default=o;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const h=require("../../../../components/Dropdown/Dropdown.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const h=require("../../../../components/Dropdown/Dropdown.vue.cjs"),g=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../../components/Menu/Menu.vue2.cjs"),l=require("../../../../components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),N=require("../../../reports/components/sections/FormReport.vue.cjs"),V=require("../../../organizations/components/blocks/Socials.vue.cjs"),B=require("../../../icons/entities/IconEvents.vue.cjs"),f=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),C=require("../../../icons/navigation/IconEdit.vue.cjs"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),_=require("vue-router"),o=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),v=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const x={key:0,class:"for-transition w-100"},y={key:0,class:"flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light"},U={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),P=["src"],R={class:"mn-b-thin"},$={key:4,class:"mn-b-thin t-main t-semi"},D={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},F={class:"t-semi mn-b-small"},L={key:6,class:"mn-t-small mn-b-thin"},O=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),j=e.createElementVNode("span",null,"Posts",-1),W=e.createElementVNode("span",null,"Wallet",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),T=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),H={__name:"Profile",setup(J){const a=_.useRoute(),n=_.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:a.params._id,user:o.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{v.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function b(){o.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",x,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",y," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(a).params._id===o.state.user._id&&u.value?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,target:t.state.current,cta:!0,text_cta:"Fill Profile",text:"Profile completed at",class:"mn-b-medium"},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[e.createVNode(N.default,{user:o.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","target"]),o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:o.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.unref(a).params._id===o.state.user._id?(e.openBlock(),e.createBlock(C.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:o.state.user._id}})),class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo&&t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,P)):(e.openBlock(),e.createBlock(E.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",R,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Anonymous"),1),t.state.current.username?(e.openBlock(),e.createElementBlock("p",$," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Bio not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",F," 👨👨👧👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),o.state.user._id&&e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:5,user:o.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",L," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(V.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),e.createVNode(d.default,{class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),O]),_:1}),e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),j]),_:1})]),_:1}),i.APP_NAME==="Weeder"?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Wallet",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),W]),_:1})]),_:1})):e.createCommentVNode("",!0),o.state.user._id===e.unref(a).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>b())},{default:e.withCtx(()=>[T]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=H;
|
@@ -2,7 +2,7 @@ import { ref as U, onMounted as C, openBlock as i, createElementBlock as c, unre
|
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
/* empty css */
|
5
|
-
import B from "../../../../components/Dropdown/Dropdown.
|
5
|
+
import B from "../../../../components/Dropdown/Dropdown.vue.js";
|
6
6
|
import M from "../../../../components/Completion/Completion.vue.js";
|
7
7
|
import k from "../../../../components/Menu/Menu.vue2.js";
|
8
8
|
import _ from "../../../../components/Menu/MenuItem.vue.js";
|