@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
package/LICENSE
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
Prometheus Framework – Web3 Framework focused on user experience and ease of development.
|
2
|
-
Copyright (C) 2023 OZ DAO
|
2
|
+
Copyright (C) 2023 ILYA BURAKOV, OZ DAO
|
3
3
|
|
4
4
|
This program is free software: you can redistribute it and/or modify
|
5
5
|
it under the terms of the GNU General Public License as published by
|
package/dist/auth.server.js
CHANGED
@@ -5,7 +5,7 @@ const require$$1$1 = require("bcryptjs");
|
|
5
5
|
const require$$0$1 = require("mongoose");
|
6
6
|
const require$$1 = require("jwk-to-pem");
|
7
7
|
const mailing = require("./mailing-BX0q8DIs.js");
|
8
|
-
const index = require("./index-
|
8
|
+
const index = require("./index-BshfsiQG.js");
|
9
9
|
const jwt$1 = require$$0;
|
10
10
|
const jwkToPem = require$$1;
|
11
11
|
async function verifyAppleIdToken$1(id_token) {
|
@@ -74,12 +74,8 @@ const controllerFactory$3 = (db) => {
|
|
74
74
|
}
|
75
75
|
try {
|
76
76
|
let user = await User.findOne(query).populate("roles").exec();
|
77
|
-
if (type
|
78
|
-
|
79
|
-
if (!passwordIsValid) {
|
80
|
-
console.log("req obdy is", req.body);
|
81
|
-
return res.status(401).send({ errorCode: "INCORRECT_PASSWORD_ENTERED", accessToken: null });
|
82
|
-
}
|
77
|
+
if (type !== "apple" && !user) {
|
78
|
+
return res.status(404).send({ errorCode: "USER_NOT_FOUND" });
|
83
79
|
}
|
84
80
|
if (type === "apple" && !user) {
|
85
81
|
const { firstName, lastName } = req.body.user.name;
|
@@ -93,10 +89,14 @@ const controllerFactory$3 = (db) => {
|
|
93
89
|
} else if (!user) {
|
94
90
|
return res.status(404).send({ errorCode: "USER_NOT_FOUND" });
|
95
91
|
}
|
96
|
-
|
92
|
+
if (type === "email" || type === "phone") {
|
93
|
+
const passwordIsValid = bcrypt.compareSync(req.body.password, user.password);
|
94
|
+
if (!passwordIsValid) {
|
95
|
+
return res.status(401).send({ errorCode: "INCORRECT_PASSWORD_ENTERED", accessToken: null });
|
96
|
+
}
|
97
|
+
}
|
97
98
|
const token = jwt.sign({
|
98
|
-
_id: user._id
|
99
|
-
organization: memberships ? memberships.organization : null
|
99
|
+
_id: user._id
|
100
100
|
}, process.env.SECRET_KEY, {
|
101
101
|
expiresIn: 86400
|
102
102
|
});
|
@@ -108,12 +108,10 @@ const controllerFactory$3 = (db) => {
|
|
108
108
|
phone: user.phone,
|
109
109
|
email: user.email,
|
110
110
|
roles: authorities,
|
111
|
-
accessToken: token
|
112
|
-
organization: {
|
113
|
-
_id: memberships ? memberships.organization : null
|
114
|
-
}
|
111
|
+
accessToken: token
|
115
112
|
});
|
116
113
|
} catch (err) {
|
114
|
+
console.error(err);
|
117
115
|
res.status(500).send({ message: err });
|
118
116
|
}
|
119
117
|
};
|
@@ -230,40 +228,33 @@ const controllerFactory$3 = (db) => {
|
|
230
228
|
const ownedOrgs = await Organization.find({ owner: uid });
|
231
229
|
const ownedOrgIds = ownedOrgs.map((org) => org._id.toString());
|
232
230
|
const accesses = {};
|
233
|
-
|
234
|
-
const orgId = dept.organization.toString();
|
231
|
+
const processAccesses = (orgId, isOwner) => {
|
235
232
|
if (!accesses[orgId]) {
|
236
233
|
accesses[orgId] = {
|
237
234
|
organization: orgId,
|
238
235
|
rights: {}
|
239
236
|
};
|
240
237
|
}
|
241
|
-
const
|
242
|
-
|
243
|
-
|
244
|
-
|
238
|
+
const rights = accesses[orgId].rights;
|
239
|
+
const defaultAccesses = new Department();
|
240
|
+
console.log(defaultAccesses);
|
241
|
+
const accessData = isOwner ? defaultAccesses.accesses : (depts.find((dept) => dept.organization.toString() === orgId) || {}).accesses;
|
242
|
+
Object.keys(accessData).forEach((key) => {
|
243
|
+
if (!rights[key]) {
|
244
|
+
rights[key] = {};
|
245
245
|
}
|
246
|
-
const
|
247
|
-
Object.keys(
|
248
|
-
|
246
|
+
const accessRights = accessData[key];
|
247
|
+
Object.keys(accessRights).forEach((right) => {
|
248
|
+
rights[key][right] = isOwner || rights[key][right] || accessRights[right];
|
249
249
|
});
|
250
250
|
});
|
251
|
+
};
|
252
|
+
depts.forEach((dept) => {
|
253
|
+
const orgId = dept.organization.toString();
|
254
|
+
processAccesses(orgId, false);
|
251
255
|
});
|
252
256
|
ownedOrgIds.forEach((orgId) => {
|
253
|
-
|
254
|
-
accesses[orgId] = {
|
255
|
-
organization: orgId,
|
256
|
-
rights: {}
|
257
|
-
};
|
258
|
-
}
|
259
|
-
Object.keys(depts[0].accesses).forEach((key) => {
|
260
|
-
if (!accesses[orgId].rights[key]) {
|
261
|
-
accesses[orgId].rights[key] = {};
|
262
|
-
}
|
263
|
-
Object.keys(depts[0].accesses[key]).forEach((right) => {
|
264
|
-
accesses[orgId].rights[key][right] = true;
|
265
|
-
});
|
266
|
-
});
|
257
|
+
processAccesses(orgId, true);
|
267
258
|
});
|
268
259
|
const accessArray = Object.values(accesses);
|
269
260
|
res.status(200).json(accessArray);
|
package/dist/auth.server.mjs
CHANGED
@@ -4,7 +4,7 @@ import require$$1$1 from "bcryptjs";
|
|
4
4
|
import require$$0$1 from "mongoose";
|
5
5
|
import require$$1 from "jwk-to-pem";
|
6
6
|
import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
|
7
|
-
import { s as server } from "./index-
|
7
|
+
import { s as server } from "./index-DKtnWDNC.mjs";
|
8
8
|
const jwt$1 = require$$0;
|
9
9
|
const jwkToPem = require$$1;
|
10
10
|
async function verifyAppleIdToken$1(id_token) {
|
@@ -73,12 +73,8 @@ const controllerFactory$3 = (db) => {
|
|
73
73
|
}
|
74
74
|
try {
|
75
75
|
let user = await User.findOne(query).populate("roles").exec();
|
76
|
-
if (type
|
77
|
-
|
78
|
-
if (!passwordIsValid) {
|
79
|
-
console.log("req obdy is", req.body);
|
80
|
-
return res.status(401).send({ errorCode: "INCORRECT_PASSWORD_ENTERED", accessToken: null });
|
81
|
-
}
|
76
|
+
if (type !== "apple" && !user) {
|
77
|
+
return res.status(404).send({ errorCode: "USER_NOT_FOUND" });
|
82
78
|
}
|
83
79
|
if (type === "apple" && !user) {
|
84
80
|
const { firstName, lastName } = req.body.user.name;
|
@@ -92,10 +88,14 @@ const controllerFactory$3 = (db) => {
|
|
92
88
|
} else if (!user) {
|
93
89
|
return res.status(404).send({ errorCode: "USER_NOT_FOUND" });
|
94
90
|
}
|
95
|
-
|
91
|
+
if (type === "email" || type === "phone") {
|
92
|
+
const passwordIsValid = bcrypt.compareSync(req.body.password, user.password);
|
93
|
+
if (!passwordIsValid) {
|
94
|
+
return res.status(401).send({ errorCode: "INCORRECT_PASSWORD_ENTERED", accessToken: null });
|
95
|
+
}
|
96
|
+
}
|
96
97
|
const token = jwt.sign({
|
97
|
-
_id: user._id
|
98
|
-
organization: memberships ? memberships.organization : null
|
98
|
+
_id: user._id
|
99
99
|
}, process.env.SECRET_KEY, {
|
100
100
|
expiresIn: 86400
|
101
101
|
});
|
@@ -107,12 +107,10 @@ const controllerFactory$3 = (db) => {
|
|
107
107
|
phone: user.phone,
|
108
108
|
email: user.email,
|
109
109
|
roles: authorities,
|
110
|
-
accessToken: token
|
111
|
-
organization: {
|
112
|
-
_id: memberships ? memberships.organization : null
|
113
|
-
}
|
110
|
+
accessToken: token
|
114
111
|
});
|
115
112
|
} catch (err) {
|
113
|
+
console.error(err);
|
116
114
|
res.status(500).send({ message: err });
|
117
115
|
}
|
118
116
|
};
|
@@ -229,40 +227,33 @@ const controllerFactory$3 = (db) => {
|
|
229
227
|
const ownedOrgs = await Organization.find({ owner: uid });
|
230
228
|
const ownedOrgIds = ownedOrgs.map((org) => org._id.toString());
|
231
229
|
const accesses = {};
|
232
|
-
|
233
|
-
const orgId = dept.organization.toString();
|
230
|
+
const processAccesses = (orgId, isOwner) => {
|
234
231
|
if (!accesses[orgId]) {
|
235
232
|
accesses[orgId] = {
|
236
233
|
organization: orgId,
|
237
234
|
rights: {}
|
238
235
|
};
|
239
236
|
}
|
240
|
-
const
|
241
|
-
|
242
|
-
|
243
|
-
|
237
|
+
const rights = accesses[orgId].rights;
|
238
|
+
const defaultAccesses = new Department();
|
239
|
+
console.log(defaultAccesses);
|
240
|
+
const accessData = isOwner ? defaultAccesses.accesses : (depts.find((dept) => dept.organization.toString() === orgId) || {}).accesses;
|
241
|
+
Object.keys(accessData).forEach((key) => {
|
242
|
+
if (!rights[key]) {
|
243
|
+
rights[key] = {};
|
244
244
|
}
|
245
|
-
const
|
246
|
-
Object.keys(
|
247
|
-
|
245
|
+
const accessRights = accessData[key];
|
246
|
+
Object.keys(accessRights).forEach((right) => {
|
247
|
+
rights[key][right] = isOwner || rights[key][right] || accessRights[right];
|
248
248
|
});
|
249
249
|
});
|
250
|
+
};
|
251
|
+
depts.forEach((dept) => {
|
252
|
+
const orgId = dept.organization.toString();
|
253
|
+
processAccesses(orgId, false);
|
250
254
|
});
|
251
255
|
ownedOrgIds.forEach((orgId) => {
|
252
|
-
|
253
|
-
accesses[orgId] = {
|
254
|
-
organization: orgId,
|
255
|
-
rights: {}
|
256
|
-
};
|
257
|
-
}
|
258
|
-
Object.keys(depts[0].accesses).forEach((key) => {
|
259
|
-
if (!accesses[orgId].rights[key]) {
|
260
|
-
accesses[orgId].rights[key] = {};
|
261
|
-
}
|
262
|
-
Object.keys(depts[0].accesses[key]).forEach((right) => {
|
263
|
-
accesses[orgId].rights[key][right] = true;
|
264
|
-
});
|
265
|
-
});
|
256
|
+
processAccesses(orgId, true);
|
266
257
|
});
|
267
258
|
const accessArray = Object.values(accesses);
|
268
259
|
res.status(200).json(accessArray);
|
package/dist/community.server.js
CHANGED
@@ -4,7 +4,7 @@ const require$$0 = require("mongoose");
|
|
4
4
|
const queryProcessor$3 = require("./queryProcessor-haY_gPGg.js");
|
5
5
|
require("util");
|
6
6
|
require("uuid");
|
7
|
-
const index = require("./index-
|
7
|
+
const index = require("./index-BshfsiQG.js");
|
8
8
|
const common_schema = require("./common.schema-BFhpUXUt.js");
|
9
9
|
const engagement_schema = require("./engagement.schema-fdLNO2_6.js");
|
10
10
|
const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
|
@@ -3,7 +3,7 @@ import require$$0 from "mongoose";
|
|
3
3
|
import { q as queryProcessor$3 } from "./queryProcessor-g8208K6g.mjs";
|
4
4
|
import "util";
|
5
5
|
import "uuid";
|
6
|
-
import { s as server$1 } from "./index-
|
6
|
+
import { s as server$1 } from "./index-DKtnWDNC.mjs";
|
7
7
|
import { c as common_schema } from "./common.schema-ChBVARrs.mjs";
|
8
8
|
import { e as engagement_schema } from "./engagement.schema-CI2ifjXN.mjs";
|
9
9
|
import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
|
package/dist/events.server.js
CHANGED
@@ -5,7 +5,7 @@ const require$$0 = require("mongoose");
|
|
5
5
|
const queryProcessor$2 = require("./queryProcessor-haY_gPGg.js");
|
6
6
|
const metadata_schema = require("./metadata.schema-6slGhpQS.js");
|
7
7
|
const require$$1 = require("stripe");
|
8
|
-
const index = require("./index-
|
8
|
+
const index = require("./index-BshfsiQG.js");
|
9
9
|
const tickets_controller = require("./tickets.controller-WaQ4qMpv.js");
|
10
10
|
const common_schema = require("./common.schema-BFhpUXUt.js");
|
11
11
|
const engagement_schema = require("./engagement.schema-fdLNO2_6.js");
|
package/dist/events.server.mjs
CHANGED
@@ -3,7 +3,7 @@ import require$$0 from "mongoose";
|
|
3
3
|
import { q as queryProcessor$2 } from "./queryProcessor-g8208K6g.mjs";
|
4
4
|
import { s as seoFriendlyUrl, m as metadata_schema } from "./metadata.schema-CK5e2O3f.mjs";
|
5
5
|
import require$$1 from "stripe";
|
6
|
-
import { s as server$1 } from "./index-
|
6
|
+
import { s as server$1 } from "./index-DKtnWDNC.mjs";
|
7
7
|
import { t as tickets_controller } from "./tickets.controller-ByZ33N6_.mjs";
|
8
8
|
import { c as common_schema } from "./common.schema-ChBVARrs.mjs";
|
9
9
|
import { e as engagement_schema } from "./engagement.schema-CI2ifjXN.mjs";
|
package/dist/files.server.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
3
3
|
const require$$0 = require("path");
|
4
|
-
const index = require("./index-
|
4
|
+
const index = require("./index-BshfsiQG.js");
|
5
5
|
const require$$0$1 = require("sharp");
|
6
6
|
const require$$1 = require("fs");
|
7
7
|
const require$$2 = require("fs/promises");
|
package/dist/files.server.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
2
2
|
import require$$0 from "path";
|
3
|
-
import { s as server$1 } from "./index-
|
3
|
+
import { s as server$1 } from "./index-DKtnWDNC.mjs";
|
4
4
|
import require$$0$1 from "sharp";
|
5
5
|
import require$$1 from "fs";
|
6
6
|
import require$$2 from "fs/promises";
|
package/dist/gallery.server.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
3
3
|
const require$$0 = require("path");
|
4
4
|
const queryProcessor = require("./queryProcessor-haY_gPGg.js");
|
5
|
-
const index = require("./index-
|
5
|
+
const index = require("./index-BshfsiQG.js");
|
6
6
|
const common_schema = require("./common.schema-BFhpUXUt.js");
|
7
7
|
const engagement_schema = require("./engagement.schema-fdLNO2_6.js");
|
8
8
|
const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
|
@@ -120,9 +120,13 @@ const middlewareFactory = (db) => {
|
|
120
120
|
const verifyRead = (resource) => {
|
121
121
|
return async (req, res, next) => {
|
122
122
|
try {
|
123
|
+
if (req.userId === null) {
|
124
|
+
req.query.status = "published";
|
125
|
+
return next();
|
126
|
+
}
|
127
|
+
const userId = new db.mongoose.Types.ObjectId(req.userId);
|
123
128
|
const ownerOrgId = new db.mongoose.Types.ObjectId(req.query.owner);
|
124
129
|
;
|
125
|
-
const userId = new db.mongoose.Types.ObjectId(req.userId);
|
126
130
|
const isOwnerOfOrg = await Organization.exists({
|
127
131
|
_id: ownerOrgId,
|
128
132
|
owner: userId
|
package/dist/gallery.server.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
2
2
|
import require$$0 from "path";
|
3
3
|
import { q as queryProcessor } from "./queryProcessor-g8208K6g.mjs";
|
4
|
-
import { s as server } from "./index-
|
4
|
+
import { s as server } from "./index-DKtnWDNC.mjs";
|
5
5
|
import { c as common_schema } from "./common.schema-ChBVARrs.mjs";
|
6
6
|
import { e as engagement_schema } from "./engagement.schema-CI2ifjXN.mjs";
|
7
7
|
import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
|
@@ -119,9 +119,13 @@ const middlewareFactory = (db) => {
|
|
119
119
|
const verifyRead = (resource) => {
|
120
120
|
return async (req, res, next) => {
|
121
121
|
try {
|
122
|
+
if (req.userId === null) {
|
123
|
+
req.query.status = "published";
|
124
|
+
return next();
|
125
|
+
}
|
126
|
+
const userId = new db.mongoose.Types.ObjectId(req.userId);
|
122
127
|
const ownerOrgId = new db.mongoose.Types.ObjectId(req.query.owner);
|
123
128
|
;
|
124
|
-
const userId = new db.mongoose.Types.ObjectId(req.userId);
|
125
129
|
const isOwnerOfOrg = await Organization.exists({
|
126
130
|
_id: ownerOrgId,
|
127
131
|
owner: userId
|
@@ -7,19 +7,23 @@ const middlewareFactory$4 = (db) => {
|
|
7
7
|
const Role = db.role;
|
8
8
|
const verifyToken = async (req, res, next) => {
|
9
9
|
try {
|
10
|
-
|
10
|
+
if (!req.cookies.user) {
|
11
|
+
req.userId = null;
|
12
|
+
return next();
|
13
|
+
}
|
11
14
|
let user = JSON.parse(req.cookies.user);
|
12
15
|
let token = req.headers["x-access-token"] || user.accessToken;
|
13
16
|
if (!token) {
|
14
|
-
|
17
|
+
req.userId = null;
|
18
|
+
return next();
|
15
19
|
}
|
16
20
|
const decoded = jwt.verify(token, process.env.SECRET_KEY);
|
17
21
|
req.userId = decoded._id;
|
18
|
-
console.log("success");
|
19
22
|
next();
|
20
23
|
} catch (err) {
|
21
24
|
console.log(err);
|
22
|
-
|
25
|
+
req.userId = null;
|
26
|
+
next();
|
23
27
|
}
|
24
28
|
};
|
25
29
|
const checkRole = (roleToCheck) => async (req, res, next) => {
|
@@ -6,19 +6,23 @@ const middlewareFactory$4 = (db) => {
|
|
6
6
|
const Role = db.role;
|
7
7
|
const verifyToken = async (req, res, next) => {
|
8
8
|
try {
|
9
|
-
|
9
|
+
if (!req.cookies.user) {
|
10
|
+
req.userId = null;
|
11
|
+
return next();
|
12
|
+
}
|
10
13
|
let user = JSON.parse(req.cookies.user);
|
11
14
|
let token = req.headers["x-access-token"] || user.accessToken;
|
12
15
|
if (!token) {
|
13
|
-
|
16
|
+
req.userId = null;
|
17
|
+
return next();
|
14
18
|
}
|
15
19
|
const decoded = jwt.verify(token, process.env.SECRET_KEY);
|
16
20
|
req.userId = decoded._id;
|
17
|
-
console.log("success");
|
18
21
|
next();
|
19
22
|
} catch (err) {
|
20
23
|
console.log(err);
|
21
|
-
|
24
|
+
req.userId = null;
|
25
|
+
next();
|
22
26
|
}
|
23
27
|
};
|
24
28
|
const checkRole = (roleToCheck) => async (req, res, next) => {
|