@ozdao/prometheus-framework 0.2.127 → 0.2.129
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +1 -1
- package/dist/auth.server.js +28 -37
- package/dist/auth.server.mjs +28 -37
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +6 -2
- package/dist/gallery.server.mjs +6 -2
- package/dist/{index-BCCiEK_u.js → index-BshfsiQG.js} +8 -4
- package/dist/{index-B6a1mPgp.mjs → index-DKtnWDNC.mjs} +8 -4
- package/dist/{main-CmL_j3wv.mjs → main-DvdaURTh.mjs} +3261 -3154
- package/dist/main-hLtpe4Hr.js +92 -0
- package/dist/main.css +1 -1
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/node_modules/zod/lib/index.cjs +1 -1
- package/dist/node_modules/zod/lib/index.js +1162 -1033
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +1 -1
- package/dist/organizations.server.mjs +1 -1
- package/dist/products.server.js +1 -1
- package/dist/products.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +1 -89
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js +73 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +23 -22
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +1 -27
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +27 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +1 -58
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +58 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +144 -112
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +5 -5
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -127
- package/dist/prometheus-framework/src/components/Menu/MenuItem.vue.cjs +1 -0
- package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/MenuItem.vue.js +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -0
- package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue.js +6 -6
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +77 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -77
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +7 -6
- 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 +114 -77
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +7 -22
- 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 +62 -70
- 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 +2 -2
- 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 +2 -2
- 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 +17 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
- 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 +0 -66
- 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 +1 -1
- 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 +3 -3
- 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 +1 -1
- 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 +5 -5
- 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 +9 -9
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs +1 -0
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js +18 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +46 -0
- 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 +20 -16
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +10 -10
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +27 -4
- package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +14 -12
- 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/OrderCreate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +111 -93
- 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/AskToLogin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.js +13 -14
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +20 -22
- 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/router/orders.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +5 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +154 -0
- 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 +2 -2
- 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 +1 -1
- 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 +1 -1
- 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/backoffice.router.cjs +1 -0
- package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +27 -0
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -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 +1 -1
- 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 +26 -27
- 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 +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +22 -23
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +30 -29
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +72 -51
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +51 -53
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +22 -22
- 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/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +62 -48
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +43 -44
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +5 -5
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +24 -25
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/dist/{web-Bk_OtXgv.js → web-CVIepGUM.js} +1 -1
- package/dist/{web-BHzpMOmk.mjs → web-Dt2JR41o.mjs} +1 -1
- package/package.json +3 -2
- package/src/{modules/mobile/components → components}/BottomSheet/BottomSheet.vue +24 -21
- package/src/components/Button/Button.vue +20 -3
- package/src/components/Feed/Feed.vue +28 -3
- package/src/components/FieldBig/FieldBig.vue +2 -2
- package/src/components/Sidebar/Sidebar.vue +13 -5
- package/src/components/index.js +0 -1
- package/src/main.js +0 -4
- package/src/modules/auth/controllers/auth.controller.js +32 -48
- package/src/modules/auth/router/auth.js +1 -4
- package/src/modules/auth/store/auth.js +28 -24
- package/src/modules/backoffice/components/pages/Dashboard.vue +29 -56
- package/src/modules/backoffice/router/backoffice.js +4 -15
- package/src/modules/community/components/blocks/CardBlogpost.vue +28 -26
- package/src/modules/community/components/layouts/Community.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +1 -2
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -1
- package/src/modules/gallery/router/gallery.backoffice.router.js +14 -0
- package/src/modules/globals/components/blocks/BlockFilter.vue +44 -0
- package/src/modules/globals/components/blocks/CardHeader.vue +5 -3
- package/src/modules/globals/components/layouts/Client.vue +99 -43
- package/src/modules/globals/components/pages/401.vue +5 -0
- package/src/modules/globals/components/pages/404.vue +5 -0
- package/src/modules/globals/components/partials/Footer.vue +17 -5
- package/src/modules/globals/components/partials/Header.vue +37 -18
- package/src/modules/globals/components/partials/Navigation.vue +7 -2
- package/src/modules/landing/components/sections/MobileApp.vue +2 -2
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
- package/src/modules/landing/router/landing.js +2 -12
- package/src/modules/legal/components/pages/Legal.vue +2 -2
- package/src/modules/marketplace/components/layouts/Marketplace.vue +30 -13
- package/src/modules/marketplace/components/pages/Catalog.vue +2 -1
- package/src/modules/marketplace/router/marketplace.js +12 -10
- package/src/modules/marketplace/store/marketplace.js +25 -1
- package/src/modules/middlewares/client/auth.validation.js +5 -2
- package/src/modules/middlewares/server/authJwt.js +12 -6
- package/src/modules/middlewares/server/verifyAccesses.js +7 -3
- package/src/modules/orders/components/pages/OrderCreate.vue +34 -22
- package/src/modules/orders/components/sections/AskToLogin.vue +8 -7
- package/src/modules/orders/components/sections/FormDelivery.vue +6 -6
- package/src/modules/orders/router/orders.router.js +6 -3
- package/src/modules/organizations/components/pages/Members.vue +2 -2
- package/src/modules/organizations/components/pages/Organization.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +204 -0
- package/src/modules/organizations/router/backoffice.router.js +25 -0
- package/src/modules/organizations/router/organizations.js +3 -1
- package/src/modules/pages/router/pages.router.js +15 -0
- package/src/modules/products/components/blocks/ImagesThumbnails.vue +11 -12
- package/src/modules/products/components/pages/Product.vue +7 -3
- package/src/modules/products/components/pages/ProductRecommmendation.vue +6 -5
- package/src/modules/products/components/sections/FilterProducts.vue +6 -6
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/products/components/sections/PopularProducts.vue +1 -3
- package/src/modules/products/components/sections/SectionProduct.vue +8 -8
- package/src/modules/spots/components/layouts/Spots.vue +33 -31
- package/src/modules/spots/components/pages/Map.vue +380 -353
- package/src/modules/spots/router/spots.js +3 -1
- package/src/modules/users/components/pages/Profile.vue +4 -4
- package/src/modules/users/components/pages/ProfileEdit.vue +4 -3
- package/src/modules/wallet/controllers/routes/payments.routes.js +0 -1
- package/src/styles/base/all.scss +4 -0
- package/src/styles/config.scss +2 -1
- package/src/styles/layout.scss +0 -1
- package/dist/credentials.schema-CDZCKfEI.mjs +0 -106
- package/dist/credentials.schema-CfhPcsuI.js +0 -105
- package/dist/index-CGIn4v5E.mjs +0 -217
- package/dist/index-CL9l0HRS.js +0 -216
- package/dist/main-8APITHuW.mjs +0 -14201
- package/dist/main-8N2Jmsuk.js +0 -91
- package/dist/main-BJvlNekm.mjs +0 -13631
- package/dist/main-BQisDfLk.js +0 -92
- package/dist/main-BV1Yv9Hy.js +0 -92
- package/dist/main-Ba3zK8PO.js +0 -92
- package/dist/main-Btlny-89.mjs +0 -14207
- package/dist/main-Bw0PvTs-.mjs +0 -13616
- package/dist/main-ByCtZbHD.mjs +0 -13752
- package/dist/main-CF35oB7q.js +0 -92
- package/dist/main-CX2ISR43.mjs +0 -13629
- package/dist/main-CXObXjv-.js +0 -92
- package/dist/main-CkeuHuCY.mjs +0 -13619
- package/dist/main-CnfcBov2.mjs +0 -13740
- package/dist/main-D0va05OD.js +0 -92
- package/dist/main-D50VqYhy.js +0 -91
- package/dist/main-D8gNZLSa.js +0 -92
- package/dist/main-DL3vRQCi.js +0 -92
- package/dist/main-DPsHxX0l.mjs +0 -13633
- package/dist/main-DTlUA63C.mjs +0 -13617
- package/dist/main-DfD5hLQo.mjs +0 -13633
- package/dist/main-Dh6Zfei9.js +0 -92
- package/dist/main-DmNP-t33.mjs +0 -13625
- package/dist/main-Ds3Z5x5d.mjs +0 -14206
- package/dist/main-DwyUYWFX.js +0 -92
- package/dist/main-VcxO-jAt.js +0 -92
- package/dist/main-cffh4bbv.js +0 -92
- package/dist/main-o_2eO2tP.mjs +0 -14208
- package/dist/main-pGo7JpSP.js +0 -92
- package/dist/metadata.schema-BLGSCSmy.mjs +0 -55
- package/dist/metadata.schema-Cu_mPkjE.js +0 -77
- package/dist/metadata.schema-DWR97jhW.js +0 -54
- package/dist/metadata.schema-cbFgazeK.mjs +0 -78
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +0 -1
- package/dist/node_modules/@noble/hashes/esm/sha512.js +0 -126
- package/dist/node_modules/vue-meta/dist/vue-meta.esm-browser.min.cjs +0 -7
- package/dist/node_modules/vue-meta/dist/vue-meta.esm-browser.min.js +0 -38
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/mergeArrays.cjs +0 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +0 -43
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +0 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +0 -373
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +0 -1
- package/dist/prometheus-framework/src/components/FieldPhone/utils.cjs +0 -1
- package/dist/prometheus-framework/src/components/FieldPhone/utils.js +0 -259
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +0 -62
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +0 -1
- package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +0 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +0 -110
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +0 -1
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +0 -27
- package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.js +0 -29
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +0 -65
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +0 -87
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +0 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +0 -51
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +0 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +0 -53
- package/dist/queryProcessor-BJdKh0Ow.mjs +0 -162
- package/dist/queryProcessor-BJoJAetd.mjs +0 -162
- package/dist/queryProcessor-BUDoM96e.js +0 -148
- package/dist/queryProcessor-Cl6sU582.mjs +0 -149
- package/dist/queryProcessor-DRMo_GWK.js +0 -161
- package/dist/queryProcessor-DWf9tsis.js +0 -161
- package/dist/web-B2xhKZNK.js +0 -1
- package/dist/web-B8tq3Fda.mjs +0 -54
- package/dist/web-BDaOF322.js +0 -1
- package/dist/web-BEJCRWop.mjs +0 -54
- package/dist/web-BNKN7kk3.mjs +0 -54
- package/dist/web-BX5um81l.js +0 -1
- package/dist/web-ByJkgGrt.js +0 -1
- package/dist/web-C0sFgeYh.mjs +0 -54
- package/dist/web-CQQEUA9l.js +0 -1
- package/dist/web-CQiHBOEN.mjs +0 -54
- package/dist/web-CXzcKdk4.mjs +0 -54
- package/dist/web-CciQvENI.js +0 -1
- package/dist/web-CkrMHYIU.js +0 -1
- package/dist/web-CtVocufd.js +0 -1
- package/dist/web-CvRd3N_J.mjs +0 -54
- package/dist/web-D0ugI6ra.js +0 -1
- package/dist/web-D2Em-p-C.mjs +0 -54
- package/dist/web-D9Cfcy5k.js +0 -1
- package/dist/web-DEysqj0n.js +0 -1
- package/dist/web-DNq1tHCE.mjs +0 -54
- package/dist/web-DTzbVshr.mjs +0 -54
- package/dist/web-Douq6xn6.js +0 -1
- package/dist/web-DtWmpLE-.mjs +0 -54
- package/dist/web-TGdVOTnw.js +0 -1
- package/dist/web-VFuzUsNl.mjs +0 -54
- package/dist/web-_W9a_nWD.mjs +0 -54
- package/dist/web-kg3KgbAF.js +0 -1
- package/dist/web-nVxTNRH4.mjs +0 -54
- package/src/components/Magnifier/Magnifier.vue +0 -89
- /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue.cjs +0 -0
- /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue.js +0 -0
- /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue2.cjs +0 -0
- /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue2.js +0 -0
- /package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue2.cjs +0 -0
- /package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue2.js +0 -0
- /package/src/{modules/mobile/components → components}/Menu/Menu.vue +0 -0
- /package/src/{modules/mobile/components → components}/Menu/MenuItem.vue +0 -0
- /package/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue +0 -0
- /package/src/modules/{mobile/components/BottomNavigation → globals/components/partials}/BottomNavigation.vue +0 -0
- /package/src/modules/{mobile/components/NavigationBar → globals/components/partials}/NavigationBar.vue +0 -0
- /package/src/modules/{mobile/components/Walkthrough → globals/components/sections}/Walkthrough.vue +0 -0
- /package/src/modules/{landing → pages}/components/pages/Page.vue +0 -0
- /package/src/modules/{backoffice/components/admin → pages/components/pages}/PageEdit.vue +0 -0
- /package/src/modules/{backoffice/components/admin → pages/components/pages}/Pages.vue +0 -0
@@ -43,16 +43,10 @@ const controllerFactory = (db) => {
|
|
43
43
|
try {
|
44
44
|
let user = await User.findOne(query).populate('roles').exec();
|
45
45
|
|
46
|
-
if (
|
47
|
-
|
48
|
-
const passwordIsValid = bcrypt.compareSync(req.body.password, user.password);
|
49
|
-
|
50
|
-
if (!passwordIsValid) {
|
51
|
-
console.log('req obdy is', req.body)
|
52
|
-
return res.status(401).send({ errorCode: "INCORRECT_PASSWORD_ENTERED", accessToken: null });
|
53
|
-
}
|
46
|
+
if (type !== 'apple' && !user) {
|
47
|
+
return res.status(404).send({ errorCode: "USER_NOT_FOUND" });
|
54
48
|
}
|
55
|
-
|
49
|
+
|
56
50
|
if (type === 'apple' && !user) {
|
57
51
|
const { firstName, lastName } = req.body.user.name;
|
58
52
|
|
@@ -67,12 +61,18 @@ const controllerFactory = (db) => {
|
|
67
61
|
} else if (!user) {
|
68
62
|
return res.status(404).send({ errorCode: "USER_NOT_FOUND" });
|
69
63
|
}
|
70
|
-
|
71
|
-
|
64
|
+
|
65
|
+
if (type === 'email' || type === 'phone') {
|
66
|
+
|
67
|
+
const passwordIsValid = bcrypt.compareSync(req.body.password, user.password);
|
68
|
+
|
69
|
+
if (!passwordIsValid) {
|
70
|
+
return res.status(401).send({ errorCode: "INCORRECT_PASSWORD_ENTERED", accessToken: null });
|
71
|
+
}
|
72
|
+
}
|
72
73
|
|
73
74
|
const token = jwt.sign({
|
74
75
|
_id: user._id,
|
75
|
-
organization: memberships ? memberships.organization : null
|
76
76
|
}, process.env.SECRET_KEY, {
|
77
77
|
expiresIn: 86400
|
78
78
|
});
|
@@ -87,12 +87,9 @@ const controllerFactory = (db) => {
|
|
87
87
|
email: user.email,
|
88
88
|
roles: authorities,
|
89
89
|
accessToken: token,
|
90
|
-
organization: {
|
91
|
-
_id: memberships ? memberships.organization : null
|
92
|
-
}
|
93
90
|
});
|
94
91
|
} catch (err) {
|
95
|
-
|
92
|
+
console.error(err);
|
96
93
|
res.status(500).send({ message: err });
|
97
94
|
}
|
98
95
|
};
|
@@ -229,56 +226,43 @@ const controllerFactory = (db) => {
|
|
229
226
|
try {
|
230
227
|
const uid = new db.mongoose.Types.ObjectId(req.userId);
|
231
228
|
const depts = await Department.find({ 'members.user': uid });
|
232
|
-
|
233
|
-
// Fetch organizations where the user is the owner
|
234
229
|
const ownedOrgs = await Organization.find({ owner: uid });
|
235
230
|
const ownedOrgIds = ownedOrgs.map(org => org._id.toString());
|
236
|
-
|
237
231
|
const accesses = {};
|
238
232
|
|
239
|
-
|
240
|
-
const orgId = dept.organization.toString();
|
241
|
-
|
233
|
+
const processAccesses = (orgId, isOwner) => {
|
242
234
|
if (!accesses[orgId]) {
|
243
235
|
accesses[orgId] = {
|
244
236
|
organization: orgId,
|
245
237
|
rights: {}
|
246
238
|
};
|
247
239
|
}
|
240
|
+
const rights = accesses[orgId].rights;
|
248
241
|
|
249
|
-
const
|
250
|
-
|
251
|
-
Object.keys(dept.accesses).forEach(key => {
|
252
|
-
if (!existingAccess[key]) {
|
253
|
-
existingAccess[key] = {};
|
254
|
-
}
|
242
|
+
const defaultAccesses = new Department
|
255
243
|
|
256
|
-
|
244
|
+
console.log(defaultAccesses)
|
257
245
|
|
258
|
-
|
259
|
-
|
246
|
+
const accessData = isOwner ? defaultAccesses.accesses : (depts.find(dept => dept.organization.toString() === orgId) || {}).accesses;
|
247
|
+
|
248
|
+
Object.keys(accessData).forEach(key => {
|
249
|
+
if (!rights[key]) {
|
250
|
+
rights[key] = {};
|
251
|
+
}
|
252
|
+
const accessRights = accessData[key];
|
253
|
+
Object.keys(accessRights).forEach(right => {
|
254
|
+
rights[key][right] = isOwner || rights[key][right] || accessRights[right];
|
260
255
|
});
|
261
256
|
});
|
257
|
+
};
|
258
|
+
|
259
|
+
depts.forEach(dept => {
|
260
|
+
const orgId = dept.organization.toString();
|
261
|
+
processAccesses(orgId, false);
|
262
262
|
});
|
263
263
|
|
264
|
-
// Grant all accesses as true if the user is the owner of the organization
|
265
264
|
ownedOrgIds.forEach(orgId => {
|
266
|
-
|
267
|
-
accesses[orgId] = {
|
268
|
-
organization: orgId,
|
269
|
-
rights: {}
|
270
|
-
};
|
271
|
-
}
|
272
|
-
|
273
|
-
Object.keys(depts[0].accesses).forEach(key => {
|
274
|
-
if (!accesses[orgId].rights[key]) {
|
275
|
-
accesses[orgId].rights[key] = {};
|
276
|
-
}
|
277
|
-
|
278
|
-
Object.keys(depts[0].accesses[key]).forEach(right => {
|
279
|
-
accesses[orgId].rights[key][right] = true;
|
280
|
-
});
|
281
|
-
});
|
265
|
+
processAccesses(orgId, true);
|
282
266
|
});
|
283
267
|
|
284
268
|
const accessArray = Object.values(accesses);
|
@@ -29,10 +29,7 @@ function createAuthRoutes (options) {
|
|
29
29
|
ru: 'Вход'
|
30
30
|
},
|
31
31
|
},
|
32
|
-
component: () => import(
|
33
|
-
/* webpackChunkName: "signin" */
|
34
|
-
'../components/pages/SignIn.vue'
|
35
|
-
),
|
32
|
+
component: () => import(/* webpackChunkName: "signin" */ '../components/pages/SignIn.vue'),
|
36
33
|
},{
|
37
34
|
path: 'reset-password',
|
38
35
|
name: 'Reset Password',
|
@@ -31,35 +31,37 @@
|
|
31
31
|
});
|
32
32
|
|
33
33
|
async function initialize() {
|
34
|
-
|
35
|
-
|
34
|
+
try {
|
35
|
+
const userCookie = await getCookie('user');
|
36
|
+
|
37
|
+
if (userCookie) {
|
38
|
+
const { _id, email, phone, roles, accessToken } = userCookie;
|
39
|
+
|
40
|
+
// Установка токена в Axios интерцептор для всех запросов
|
41
|
+
axios.interceptors.request.use(config => {
|
42
|
+
config.headers['x-access-token'] = accessToken;
|
43
|
+
return config;
|
44
|
+
}, error => {
|
45
|
+
return Promise.reject(error);
|
46
|
+
});
|
36
47
|
|
37
|
-
|
38
|
-
|
48
|
+
// Проверка токена через серверный маршрут
|
49
|
+
const response = await axios.get('/api/auth/check-accesses');
|
50
|
+
const userAccesses = response.data;
|
39
51
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
return config;
|
44
|
-
}, error => {
|
45
|
-
return Promise.reject(error);
|
46
|
-
});
|
52
|
+
// Обновление состояния приложения с информацией о пользователе и его правах доступа
|
53
|
+
Object.assign(state.user, { _id, email, phone });
|
54
|
+
Object.assign(state.access, { token: accessToken, roles, status: !!accessToken });
|
47
55
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
state.accesses = userAccesses;
|
56
|
+
// console.log('roles by initilioze is', state.access.roles)
|
57
|
+
state.accesses = userAccesses;
|
58
|
+
}
|
59
|
+
} catch (error) {
|
60
|
+
console.error('Error initializing app:', error);
|
61
|
+
removeCookie('user');
|
62
|
+
state.accesses = [];
|
56
63
|
}
|
57
|
-
} catch (error) {
|
58
|
-
console.error('Error initializing app:', error);
|
59
|
-
removeCookie('user');
|
60
|
-
state.accesses = [];
|
61
64
|
}
|
62
|
-
}
|
63
65
|
|
64
66
|
initialize();
|
65
67
|
|
@@ -92,6 +94,7 @@
|
|
92
94
|
roles: null
|
93
95
|
});
|
94
96
|
|
97
|
+
console.log(error)
|
95
98
|
setError(error)
|
96
99
|
return Promise.reject(error);
|
97
100
|
}
|
@@ -277,5 +280,6 @@
|
|
277
280
|
// Module Export
|
278
281
|
export {
|
279
282
|
state,
|
283
|
+
initialize,
|
280
284
|
actions
|
281
285
|
};
|
@@ -1,17 +1,13 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="">
|
3
|
-
<h1 class="pd-medium radius-medium bg-light mn-b-small">Welcome to
|
3
|
+
<h1 class="pd-medium radius-medium bg-light mn-b-small">Welcome to Backoffice2</h1>
|
4
4
|
|
5
5
|
<Menu
|
6
6
|
class="bg-light mn-b-semi"
|
7
7
|
>
|
8
8
|
<MenuItem
|
9
|
-
v-if="hasAccess(route.params._id, 'members', 'read', auth.state.accesses)"
|
10
9
|
@click="router.push({
|
11
|
-
name: 'Organization Members'
|
12
|
-
params: {
|
13
|
-
_id: route.params._id
|
14
|
-
}
|
10
|
+
name: 'Organization Members'
|
15
11
|
})"
|
16
12
|
class="cursor-pointer"
|
17
13
|
>
|
@@ -21,26 +17,19 @@
|
|
21
17
|
</span>
|
22
18
|
</MenuItem>
|
23
19
|
|
24
|
-
|
20
|
+
<MenuItem
|
25
21
|
@click="router.push({
|
26
|
-
name: 'Backoffice Community'
|
27
|
-
params: {
|
28
|
-
_id: route.params._id
|
29
|
-
}
|
22
|
+
name: 'Backoffice Community'
|
30
23
|
})"
|
31
24
|
class="cursor-pointer">
|
32
25
|
<span>
|
33
26
|
Community
|
34
27
|
</span>
|
35
|
-
</MenuItem>
|
28
|
+
</MenuItem>
|
36
29
|
|
37
30
|
<MenuItem
|
38
|
-
v-if="hasAccess(route.params._id, 'products', 'read', auth.state.accesses)"
|
39
31
|
@click="router.push({
|
40
|
-
name: 'Products'
|
41
|
-
params: {
|
42
|
-
_id: route.params._id
|
43
|
-
}
|
32
|
+
name: 'Products'
|
44
33
|
})"
|
45
34
|
class="cursor-pointer">
|
46
35
|
<IconProducts class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
|
@@ -50,12 +39,8 @@
|
|
50
39
|
</MenuItem>
|
51
40
|
|
52
41
|
<MenuItem
|
53
|
-
v-if="hasAccess(route.params._id, 'leftovers', 'read', auth.state.accesses)"
|
54
42
|
@click="router.push({
|
55
|
-
name: 'Leftovers'
|
56
|
-
params: {
|
57
|
-
_id: route.params._id
|
58
|
-
}
|
43
|
+
name: 'Leftovers'
|
59
44
|
})"
|
60
45
|
class="cursor-pointer">
|
61
46
|
<IconLeftovers class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
|
@@ -65,12 +50,8 @@
|
|
65
50
|
</MenuItem>
|
66
51
|
|
67
52
|
<MenuItem
|
68
|
-
v-if="hasAccess(route.params._id, 'orders', 'read', auth.state.accesses)"
|
69
53
|
@click="router.push({
|
70
|
-
name: 'Backoffice Orders'
|
71
|
-
params: {
|
72
|
-
_id: route.params._id
|
73
|
-
}
|
54
|
+
name: 'Backoffice Orders'
|
74
55
|
})"
|
75
56
|
class="cursor-pointer">
|
76
57
|
<IconOrders class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
|
@@ -80,12 +61,8 @@
|
|
80
61
|
</MenuItem>
|
81
62
|
|
82
63
|
<MenuItem
|
83
|
-
v-if="hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)"
|
84
64
|
@click="router.push({
|
85
|
-
name: 'Backoffice Gallery'
|
86
|
-
params: {
|
87
|
-
_id: route.params._id
|
88
|
-
}
|
65
|
+
name: 'Backoffice Gallery'
|
89
66
|
})"
|
90
67
|
class="cursor-pointer">
|
91
68
|
<IconGallery class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
|
@@ -95,12 +72,8 @@
|
|
95
72
|
</MenuItem>
|
96
73
|
|
97
74
|
<MenuItem
|
98
|
-
v-if="hasAccess(route.params._id, 'events', 'read', auth.state.accesses)"
|
99
75
|
@click="router.push({
|
100
|
-
name: 'Backoffice Events'
|
101
|
-
params: {
|
102
|
-
_id: route.params._id
|
103
|
-
}
|
76
|
+
name: 'Backoffice Events'
|
104
77
|
})"
|
105
78
|
class="cursor-pointer">
|
106
79
|
<IconEvents class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
|
@@ -109,29 +82,23 @@
|
|
109
82
|
</span>
|
110
83
|
</MenuItem>
|
111
84
|
|
112
|
-
|
85
|
+
<MenuItem
|
113
86
|
@click="router.push({
|
114
|
-
name: 'Payments'
|
115
|
-
params: {
|
116
|
-
_id: route.params._id
|
117
|
-
}
|
87
|
+
name: 'Payments'
|
118
88
|
})"
|
119
89
|
class="cursor-pointer">
|
120
90
|
<span>
|
121
91
|
Payments
|
122
92
|
</span>
|
123
|
-
</MenuItem>
|
93
|
+
</MenuItem>
|
124
94
|
</Menu>
|
125
95
|
|
126
|
-
|
96
|
+
<Menu
|
127
97
|
class="bg-light"
|
128
98
|
>
|
129
99
|
<MenuItem
|
130
100
|
@click="router.push({
|
131
|
-
name: 'Backoffice Organizations'
|
132
|
-
params: {
|
133
|
-
_id: route.params._id
|
134
|
-
}
|
101
|
+
name: 'Backoffice Organizations'
|
135
102
|
})"
|
136
103
|
class="cursor-pointer">
|
137
104
|
<span>
|
@@ -141,17 +108,24 @@
|
|
141
108
|
|
142
109
|
<MenuItem
|
143
110
|
@click="router.push({
|
144
|
-
name: 'Backoffice
|
145
|
-
|
146
|
-
|
147
|
-
|
111
|
+
name: 'Backoffice Pages'
|
112
|
+
})"
|
113
|
+
class="cursor-pointer">
|
114
|
+
<span>
|
115
|
+
Pages
|
116
|
+
</span>
|
117
|
+
</MenuItem>
|
118
|
+
|
119
|
+
<MenuItem
|
120
|
+
@click="router.push({
|
121
|
+
name: 'Backoffice Reports'
|
148
122
|
})"
|
149
123
|
class="cursor-pointer">
|
150
124
|
<span>
|
151
125
|
Reports
|
152
126
|
</span>
|
153
127
|
</MenuItem>
|
154
|
-
</Menu>
|
128
|
+
</Menu>
|
155
129
|
</div>
|
156
130
|
</template>
|
157
131
|
|
@@ -162,8 +136,8 @@
|
|
162
136
|
import { ref, onMounted } from 'vue';
|
163
137
|
|
164
138
|
// Mobile Module
|
165
|
-
import Menu from '@pf/src/
|
166
|
-
import MenuItem from '@pf/src/
|
139
|
+
import Menu from '@pf/src/components/Menu/Menu.vue'
|
140
|
+
import MenuItem from '@pf/src/components/Menu/MenuItem.vue'
|
167
141
|
import SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue'
|
168
142
|
|
169
143
|
import IconProducts from '@pf/src/modules/icons/entities/IconProducts.vue'
|
@@ -179,7 +153,6 @@ import IconLeftovers from '@pf/src/modules/icons/entities/IconLeftovers.vue'
|
|
179
153
|
import { useRoute, useRouter } from 'vue-router'
|
180
154
|
|
181
155
|
import * as auth from '@pf/src/modules/auth/store/auth'
|
182
|
-
|
183
156
|
import * as organizations from '@pf/src/modules/organizations/store/organizations'
|
184
157
|
|
185
158
|
const route = useRoute()
|
@@ -6,12 +6,12 @@ import * as validationAuth from '@pf/src/modules/middlewares/client/auth.validat
|
|
6
6
|
const backofficeRoutes = [{
|
7
7
|
path: 'backoffice',
|
8
8
|
component: layoutEmpty,
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
beforeEnter: [
|
10
|
+
validationAuth.requiresAdmin,
|
11
|
+
],
|
12
12
|
children: [{
|
13
13
|
path: '',
|
14
|
-
name: 'Backoffice',
|
14
|
+
name: 'Backoffice Admin',
|
15
15
|
meta: {
|
16
16
|
title: {
|
17
17
|
en: 'Backoffice',
|
@@ -20,17 +20,6 @@ const backofficeRoutes = [{
|
|
20
20
|
authorize: []
|
21
21
|
},
|
22
22
|
component: () => import(/* webpackChunkName: 'BackofficeGallery' */ '../components/pages/Dashboard.vue'),
|
23
|
-
},{
|
24
|
-
path: 'gallery',
|
25
|
-
name: 'Backoffice Gallery',
|
26
|
-
meta: {
|
27
|
-
title: {
|
28
|
-
en: 'Backoffice Gallery',
|
29
|
-
ru: 'Управление Галерей'
|
30
|
-
},
|
31
|
-
authorize: []
|
32
|
-
},
|
33
|
-
component: () => import(/* webpackChunkName: 'BackofficeGallery' */ '@pf/src/modules/gallery/components/sections/BackofficeGallery.vue'),
|
34
23
|
},{
|
35
24
|
path: 'reports',
|
36
25
|
name: 'Backoffice Reports',
|
@@ -36,31 +36,9 @@
|
|
36
36
|
:date="blogpost.createdAt"
|
37
37
|
/>
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
<template
|
42
|
-
v-if="firstImage && firstImage.content && type !== 'blogpostPage'"
|
43
|
-
>
|
44
|
-
<img
|
45
|
-
:src="(FILE_SERVER_URL || '') + firstImage.content"
|
46
|
-
alt="Blog post image"
|
47
|
-
class="mn-b-medium object-fit-cover w-100 h-min-10r h-100"
|
48
|
-
/>
|
49
|
-
</template>
|
50
|
-
|
51
|
-
<template
|
52
|
-
v-if="!firstImage?.content && firstVideo && firstVideo.content && type !== 'blogpostPage'"
|
53
|
-
>
|
54
|
-
<div class="flex-center flex">
|
55
|
-
<video controls class="mn-b-medium object-fit-cover w-100 h-min-10r h-max-20r">
|
56
|
-
<source :src="firstVideo.content" type="video/mp4">
|
57
|
-
Your browser does not support the video tag.
|
58
|
-
</video>
|
59
|
-
</div>
|
60
|
-
</template>
|
61
|
-
|
39
|
+
|
62
40
|
<section
|
63
|
-
class="pd-t-zero pd-medium"
|
41
|
+
class="pd-t-zero pd-b-zero pd-medium"
|
64
42
|
>
|
65
43
|
|
66
44
|
<div v-if="type !== 'blogpostPage'" class="cursor-pointer mn-b-thin flex-nowrap flex w-100">
|
@@ -102,12 +80,36 @@
|
|
102
80
|
|
103
81
|
<slot></slot>
|
104
82
|
|
105
|
-
<Chips
|
83
|
+
<!-- <Chips
|
106
84
|
v-if="type !== 'short' && blogpost.tags?.length > 0"
|
107
85
|
:chips="blogpost.tags"
|
108
|
-
/>
|
86
|
+
/> -->
|
109
87
|
|
110
88
|
</section>
|
89
|
+
|
90
|
+
<!-- <Image :prop="{content:firstImage.content}" class="h-100"/> -->
|
91
|
+
|
92
|
+
<template
|
93
|
+
v-if="firstImage && firstImage.content && type !== 'blogpostPage'"
|
94
|
+
>
|
95
|
+
<img
|
96
|
+
:src="(FILE_SERVER_URL || '') + firstImage.content"
|
97
|
+
alt="Blog post image"
|
98
|
+
class="mn-b-medium object-fit-cover w-100 h-min-10r h-100"
|
99
|
+
/>
|
100
|
+
</template>
|
101
|
+
|
102
|
+
<template
|
103
|
+
v-if="!firstImage?.content && firstVideo && firstVideo.content && type !== 'blogpostPage'"
|
104
|
+
>
|
105
|
+
<!-- <div class="flex-center flex"> -->
|
106
|
+
<video controls class="mn-b-medium object-fit-cover w-100 h-max-20r">
|
107
|
+
<source :src="firstVideo.content" type="video/mp4">
|
108
|
+
Your browser does not support the video tag.
|
109
|
+
</video>
|
110
|
+
<!-- </div> -->
|
111
|
+
</template>
|
112
|
+
|
111
113
|
|
112
114
|
<FooterBlogpost
|
113
115
|
class="pd-t-zero pd-medium"
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</li>
|
29
29
|
<li
|
30
30
|
v-if="auth.state.user._id"
|
31
|
-
:class="{'t-
|
31
|
+
:class="{'t-black bg-white': route.params.category === 'following'}"
|
32
32
|
@click="router.push({name: 'Blog', params: { category: 'following' } })"
|
33
33
|
class="cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"
|
34
34
|
>
|
@@ -66,11 +66,10 @@
|
|
66
66
|
|
67
67
|
import Feed from '@pf/src/components/Feed/Feed.vue'
|
68
68
|
import Popup from '@pf/src/components/Popup/Popup.vue'
|
69
|
+
import PhotoViewer from '@pf/src/components/PhotoViewer/PhotoViewer.vue'
|
69
70
|
|
70
71
|
import SectionPageTitle from '@pf/src/modules/globals/components/sections/SectionPageTitle.vue'
|
71
72
|
|
72
|
-
import PhotoViewer from '@pf/src/modules/gallery/components/blocks/PhotoViewer.vue'
|
73
|
-
|
74
73
|
import gallery from '@pf/src/modules/gallery/store/gallery';
|
75
74
|
|
76
75
|
const photos = ref([])
|
@@ -155,6 +155,7 @@ import Checkbox from '@pf/src/components/Checkbox/Checkbox.vue';
|
|
155
155
|
import SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue';
|
156
156
|
import Popup from '@pf/src/components/Popup/Popup.vue'
|
157
157
|
import Feed from '@pf/src/components/Feed/Feed.vue'
|
158
|
+
import PhotoViewer from '@pf/src/components/PhotoViewer/PhotoViewer.vue'
|
158
159
|
|
159
160
|
import * as auth from '@pf/src/modules/auth/store/auth';
|
160
161
|
import * as organizations from '@pf/src/modules/organizations/store/organizations';
|
@@ -164,7 +165,7 @@ import gallery from '@pf/src/modules/gallery/store/gallery';
|
|
164
165
|
import CardHeader from '@pf/src/modules/globals/components/blocks/CardHeader.vue'
|
165
166
|
import SectionPageTitle from '@pf/src/modules/globals/components/sections/SectionPageTitle.vue'
|
166
167
|
|
167
|
-
|
168
|
+
|
168
169
|
|
169
170
|
import EditImages from '@pf/src/components/EditImages/EditImages.vue';
|
170
171
|
import BlockTags from '@pf/src/components/FieldTags/BlockTags.vue';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
const gallery = [{
|
2
|
+
path: 'gallery',
|
3
|
+
name: 'Backoffice Gallery',
|
4
|
+
meta: {
|
5
|
+
title: {
|
6
|
+
en: 'Backoffice Gallery',
|
7
|
+
ru: 'Управление Галерей'
|
8
|
+
},
|
9
|
+
authorize: []
|
10
|
+
},
|
11
|
+
component: () => import(/* webpackChunkName: 'BackofficeGallery' */ '@pf/src/modules/gallery/components/sections/BackofficeGallery.vue'),
|
12
|
+
}];
|
13
|
+
|
14
|
+
export default gallery;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { ref } from 'vue';
|
3
|
+
|
4
|
+
import Checkbox from "@pf/src/components/Checkbox/Checkbox.vue";
|
5
|
+
import Spoiler from "@pf/src/components/Spoiler/Spoiler.vue"
|
6
|
+
|
7
|
+
const props = defineProps({
|
8
|
+
title: {
|
9
|
+
type: String,
|
10
|
+
default: 'Sorting Options'
|
11
|
+
},
|
12
|
+
options: {
|
13
|
+
type: Array
|
14
|
+
}
|
15
|
+
});
|
16
|
+
|
17
|
+
const filter = defineModel('filter')
|
18
|
+
</script>
|
19
|
+
|
20
|
+
<template>
|
21
|
+
<div class="w-100 o-hidden">
|
22
|
+
<Spoiler
|
23
|
+
v-for="filterOption in options"
|
24
|
+
class="radius-small o-hidden mn-b-small"
|
25
|
+
:status="true"
|
26
|
+
>
|
27
|
+
<template #header>
|
28
|
+
<p class="cursor-pointer mn-r-auto t-medium p-big">{{ filterOption.title }}</p>
|
29
|
+
</template>
|
30
|
+
|
31
|
+
<template #content>
|
32
|
+
<Checkbox
|
33
|
+
v-for="(checkbox, index) in filterOption.options"
|
34
|
+
:key="index"
|
35
|
+
:label="checkbox.label"
|
36
|
+
:value="checkbox.value"
|
37
|
+
class="w-100 mn-t-small mn-b-small bg-white radius-small pd-small"
|
38
|
+
:radio="filter[filterOption.value]"
|
39
|
+
@update:radio="event => filter[filterOption.value] = event"
|
40
|
+
/>
|
41
|
+
</template>
|
42
|
+
</Spoiler>
|
43
|
+
</div>
|
44
|
+
</template>
|
@@ -62,10 +62,12 @@
|
|
62
62
|
· by {{creator.target?.profile?.name || creator.target?.username || 'Anonymous'}}
|
63
63
|
</span>
|
64
64
|
|
65
|
+
<span v-if="date" class="mn-l-micro mn-r-micro ">·</span>
|
66
|
+
|
65
67
|
<span v-if="date" class="pos-relative">
|
66
|
-
|
67
|
-
|
68
|
-
|
68
|
+
<Tooltip v-if="date" :text="formatDate(date)">
|
69
|
+
{{getTimeElapsed(date)}}
|
70
|
+
</Tooltip>
|
69
71
|
</span>
|
70
72
|
|
71
73
|
<span v-if="dateFormatted">
|