@ozdao/prometheus-framework 0.2.221 → 0.2.223
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +4 -4
- package/dist/auth.server.mjs +4 -4
- package/dist/builder.js +72 -60
- package/dist/builder.mjs +72 -60
- package/dist/community.server.js +9 -4
- package/dist/community.server.mjs +9 -4
- package/dist/events.server.js +14 -24
- package/dist/events.server.mjs +14 -24
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +42 -76
- package/dist/gallery.server.mjs +41 -75
- package/dist/index-CsS7qx1d.js +243 -0
- package/dist/index-UIHE6Rk3.mjs +244 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/@capacitor/core/dist/index.cjs +529 -0
- package/dist/node_modules/@capacitor/core/dist/index.cjs.map +1 -0
- package/dist/node_modules/@capacitor/core/dist/index.js +530 -0
- package/dist/node_modules/@capacitor/core/dist/index.js.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.cjs +51 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.cjs.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js +55 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.cjs +25 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.cjs.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js +13 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.cjs +67 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.cjs.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js +67 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js.map +1 -0
- package/dist/node_modules/@unhead/shared/dist/index.cjs +7 -0
- package/dist/node_modules/@unhead/shared/dist/index.cjs.map +1 -0
- package/dist/node_modules/@unhead/shared/dist/index.js +7 -0
- package/dist/node_modules/@unhead/shared/dist/index.js.map +1 -0
- package/dist/node_modules/@unhead/ssr/dist/index.cjs +87 -0
- package/dist/node_modules/@unhead/ssr/dist/index.cjs.map +1 -0
- package/dist/node_modules/@unhead/ssr/dist/index.js +87 -0
- package/dist/node_modules/@unhead/ssr/dist/index.js.map +1 -0
- package/dist/orders.server.js +2 -2
- package/dist/orders.server.mjs +2 -2
- package/dist/organizations.server.js +174 -95
- package/dist/organizations.server.mjs +174 -95
- package/dist/pages.server.js +1 -1
- package/dist/pages.server.mjs +1 -1
- package/dist/products.server.js +119 -266
- package/dist/products.server.mjs +119 -266
- package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.cjs +814 -0
- package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.cjs.map +1 -0
- package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +814 -0
- package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js.map +1 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.cjs +210 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.cjs.map +1 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.js +210 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +26 -41
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +27 -42
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +6 -8
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +6 -8
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +2 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +2 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +2 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +5 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +5 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.cjs +44 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.js +44 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +37 -35
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +33 -31
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +3 -5
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +2 -4
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs +8 -5
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js +8 -5
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +4 -2
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +4 -2
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +13 -9
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +14 -10
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +53 -40
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +58 -45
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- 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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +16 -15
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +16 -15
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +47 -43
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js +47 -43
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +13 -20
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +9 -16
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +5 -9
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -5
- package/dist/prometheus-framework/src/modules/community/store/reactions.js.map +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.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 +29 -54
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +30 -55
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +163 -134
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +165 -136
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js.map +1 -1
- 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/events/components/pages/Event.vue.cjs +124 -135
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +133 -144
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs +96 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js +96 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +39 -25
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +40 -26
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +4 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +4 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +16 -5
- package/dist/prometheus-framework/src/modules/events/router/events.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +16 -5
- package/dist/prometheus-framework/src/modules/events/router/events.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +5 -6
- package/dist/prometheus-framework/src/modules/events/store/events.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -2
- package/dist/prometheus-framework/src/modules/events/store/events.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +20 -11
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +20 -11
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs +5 -2
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js +5 -2
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +2 -0
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +2 -0
- package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs +4 -3
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js +4 -3
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.cjs +64 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.js +64 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -19
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +1 -19
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +3 -2
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +3 -2
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.cjs +17 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.js +17 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.js.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.cjs +57 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.js +57 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.js.map +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- 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 +1 -1
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +6 -7
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -2
- package/dist/prometheus-framework/src/modules/orders/store/orders.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
- 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/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +60 -23
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +60 -23
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +2 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +2 -0
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +2 -0
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +11 -9
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +6 -4
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +5 -11
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -7
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +807 -801
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +807 -801
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs +5 -10
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js +5 -10
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js.map +1 -1
- 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/CardProduct.vue.cjs +12 -7
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +12 -7
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- 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 +1 -1
- 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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js.map +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +7 -8
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -2
- package/dist/prometheus-framework/src/modules/products/store/categories.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +6 -7
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -2
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +10 -21
- package/dist/prometheus-framework/src/modules/products/store/products.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -12
- package/dist/prometheus-framework/src/modules/products/store/products.js.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +6 -9
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -4
- package/dist/prometheus-framework/src/modules/spots/store/spots.js.map +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js.map +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/router/users.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.js +2 -2
- package/dist/prometheus-framework/src/modules/users/router/users.js.map +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +5 -6
- package/dist/prometheus-framework/src/modules/users/store/users.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +1 -2
- package/dist/prometheus-framework/src/modules/users/store/users.js.map +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/prometheus-framework.cjs.js +17 -17
- package/dist/prometheus-framework.es.js +1790 -1790
- package/dist/queryProcessor-CU4A6Y4N.mjs +197 -0
- package/dist/queryProcessor-CcsJEUBr.js +196 -0
- package/dist/spots.server.js +1 -1
- package/dist/spots.server.mjs +1 -1
- package/dist/verifyAccesses-BsrJOct8.mjs +90 -0
- package/dist/verifyAccesses-BvLnOtBN.js +89 -0
- package/dist/wallet.server.js +2 -2
- package/dist/wallet.server.mjs +2 -2
- package/package.json +1 -1
- package/src/builder/modes/ssr.dev.js +2 -2
- package/src/builder/modes/ssr.prod.js +4 -4
- package/src/builder/ssr/ssr-render-html.js +11 -13
- package/src/builder/templates/page.html +37 -0
- package/src/builder/templates/page.js +4 -0
- package/src/builder/webpack/webpack.config.client.js +9 -6
- package/src/builder/webpack/webpack.config.ssr.js +1 -1
- package/src/components/Button/Button.vue +0 -1
- package/src/components/Feed/Feed.vue +34 -55
- package/src/components/FieldTags/BlockTags.vue +0 -1
- package/src/components/UploadImage/UploadImage.vue +2 -1
- package/src/modules/auth/controllers/middlewares/authJwt.js +1 -1
- package/src/modules/auth/controllers/middlewares/verifySignUp.js +11 -11
- package/src/modules/auth/controllers/routes/auth.routes.js +2 -2
- package/src/modules/auth/controllers/services/auth.service.js +1 -0
- package/src/modules/auth/views/components/pages/SignIn.vue +1 -0
- package/src/modules/auth/views/middlewares/auth.validation.js +17 -1
- package/src/modules/auth/views/middlewares/ownership.validation.js +60 -0
- package/src/modules/auth/views/store/auth.js +43 -39
- package/src/modules/auth/views/store/twofa.js +2 -5
- package/src/modules/auth/views/validations/inputs.validation.js +12 -6
- package/src/modules/community/components/blocks/CardBlogpost.vue +3 -1
- package/src/modules/community/components/layouts/Community.vue +7 -9
- package/src/modules/community/components/pages/BlogPost.vue +122 -123
- package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
- package/src/modules/community/components/sections/Comments.vue +5 -5
- package/src/modules/community/controllers/blog.controller.js +1 -1
- package/src/modules/community/models/blogpost.model.js +1 -1
- package/src/modules/community/router/blogposts.js +40 -33
- package/src/modules/community/routes/blog.routes.js +4 -0
- package/src/modules/community/store/blogposts.js +11 -19
- package/src/modules/community/store/reactions.js +1 -7
- package/src/modules/events/components/elements/ButtonCheck.vue +36 -66
- package/src/modules/events/components/pages/EditEvent.vue +76 -59
- package/src/modules/events/components/pages/Event.vue +2 -15
- package/src/modules/events/components/pages/Events.vue +2 -1
- package/src/modules/events/components/pages/EventsBackoffice.vue +122 -0
- package/src/modules/events/components/sections/HeroEvent.vue +15 -17
- package/src/modules/events/components/sections/SectionPreviousEvents.vue +4 -13
- package/src/modules/events/router/events.js +11 -4
- package/src/modules/events/store/events.js +2 -4
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +24 -13
- package/src/modules/gallery/controllers/gallery.controller.js +30 -31
- package/src/modules/gallery/router/gallery.backoffice.router.js +5 -1
- package/src/modules/gallery/routes/gallery.routes.js +22 -4
- package/src/modules/globals/controllers/utils/queryProcessor.js +24 -4
- package/src/modules/globals/globals.client.js +2 -0
- package/src/modules/globals/views/classes/globals.store.js +4 -3
- package/src/modules/globals/views/components/blocks/Card.vue +56 -0
- package/src/modules/globals/views/components/blocks/CardHeader.vue +1 -3
- package/src/modules/globals/views/components/layouts/App.vue +1 -0
- package/src/modules/globals/views/components/layouts/Client.vue +0 -30
- package/src/modules/globals/views/store/globals.js +4 -2
- package/src/modules/globals/views/utils/axios-instance.js +18 -0
- package/src/modules/globals/views/utils/vue-app-renderer.js +87 -0
- package/src/modules/integrations/stripe/controllers/services/stripe.service.js +15 -30
- package/src/modules/landing/components/pages/Governance.vue +4 -2
- package/src/modules/landing/components/sections/SectionHeroToken.vue +12 -10
- package/src/modules/landing/components/sections/SectionsSection.vue +5 -8
- package/src/modules/landing/router/landing.js +2 -1
- package/src/modules/orders/store/orders.js +1 -3
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +36 -0
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +3 -1
- package/src/modules/organizations/controllers/organizations.controller.js +28 -35
- package/src/modules/organizations/middlewares/verifyAccesses.js +117 -0
- package/src/modules/organizations/models/department.model.js +3 -86
- package/src/modules/organizations/models/organization.model.js +6 -4
- package/src/modules/organizations/models/schemas/accesses.schema.js +142 -0
- package/src/modules/organizations/router/organizations.js +2 -0
- package/src/modules/organizations/store/departments.js +6 -6
- package/src/modules/organizations/store/organizations.js +2 -16
- package/src/modules/pages/views/router/pages.backoffice.router.js +5 -7
- package/src/modules/products/components/blocks/CardProduct.vue +2 -0
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/sections/MenuSection.vue +2 -2
- package/src/modules/products/controllers/products.controller.js +201 -367
- package/src/modules/products/routes/products.routes.js +0 -5
- package/src/modules/products/store/categories.js +1 -2
- package/src/modules/products/store/leftovers.js +1 -2
- package/src/modules/products/store/products.js +1 -13
- package/src/modules/reports/components/sections/FormReport.vue +20 -20
- package/src/modules/spots/store/spots.js +1 -6
- package/src/modules/users/components/pages/Profile.vue +1 -1
- package/src/modules/users/router/users.js +2 -2
- package/src/modules/users/store/users.js +1 -3
- package/src/styles/base/all.scss +0 -2
- package/src/styles/config.scss +6 -0
- package/src/modules/auth/controllers/middlewares/verifyAccesses.js +0 -114
- package/src/modules/users/components/pages/ProfileEvents.vue +0 -69
@@ -2,6 +2,7 @@ import layoutEmpty from "../../globals/views/components/layouts/Empty.vue.js";
|
|
2
2
|
import membersRoutes from "./members.router.js";
|
3
3
|
import departmentRoutes from "./departments.router.js";
|
4
4
|
import productRoutes from "../../products/router/products.router.js";
|
5
|
+
import eventsRoutes from "../../events/router/events.js";
|
5
6
|
import categoriesRoutes from "../../products/router/categories.router.js";
|
6
7
|
import productRoutes$1 from "../../products/router/leftovers.router.js";
|
7
8
|
import payments from "../../wallet/views/router/payments.router.js";
|
@@ -60,6 +61,7 @@ const organizations = [{
|
|
60
61
|
...membersRoutes,
|
61
62
|
...departmentRoutes,
|
62
63
|
...productRoutes,
|
64
|
+
...eventsRoutes,
|
63
65
|
...categoriesRoutes,
|
64
66
|
...productRoutes$1,
|
65
67
|
...payments,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"organizations.js","sources":["../../../../../../src/modules/organizations/router/organizations.js"],"sourcesContent":["import layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';\n\nimport membersRoutes from './members.router.js';\nimport departmentRoutes from './departments.router.js'\n\nimport productRoutes from '@pf/src/modules/products/router/products.router.js'\nimport categoriesRoutes from '@pf/src/modules/products/router/categories.router.js'\nimport leftoversRoutes from '@pf/src/modules/products/router/leftovers.router.js'\n\nimport paymentsRoutes from '@pf/src/modules/wallet/views/router/payments.router.js'\nimport ordersBackofficeRoutes from '@pf/src/modules/orders/router/orders.backoffice.router.js'\nimport galleryBackofficeRoutes from '@pf/src/modules/gallery/router/gallery.backoffice.router.js'\n\nimport backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'\n\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst organizations = [{\n path: 'organizations',\n component: layoutEmpty,\n meta: {\n title: {\n en: 'Organizations',\n ru: 'Организации'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n children: [{\n path: 'create',\n name: 'Create Organization',\n meta: {\n title: {\n en: 'Create Organization',\n ru: 'Создать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue')\n },{\n path: ':_id',\n name: 'OrganizationRoot',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n },\n component: layoutEmpty,\n children: [\n {\n path: '',\n name: 'Organization',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n component: () => import('@pf/src/modules/organizations/components/pages/Organization.vue'),\n },\n ...membersRoutes,\n ...departmentRoutes,\n ...productRoutes,\n ...categoriesRoutes,\n ...leftoversRoutes,\n ...paymentsRoutes,\n ...ordersBackofficeRoutes,\n ...galleryBackofficeRoutes,\n ...backofficeRoutes \n ],\n },{\n path: ':_id/edit',\n name: 'Organization Edit',\n meta: {\n title: {\n en: 'Edit Organization',\n ru: 'Редактировать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue'),\n }]\n}];\n\nexport default organizations;\n"],"names":["validationAuth.requiresAuth","leftoversRoutes","paymentsRoutes","ordersBackofficeRoutes","galleryBackofficeRoutes"],"mappings":"
|
1
|
+
{"version":3,"file":"organizations.js","sources":["../../../../../../src/modules/organizations/router/organizations.js"],"sourcesContent":["import layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';\n\nimport membersRoutes from './members.router.js';\nimport departmentRoutes from './departments.router.js'\n\nimport productRoutes from '@pf/src/modules/products/router/products.router.js'\nimport eventsRoutes from '@pf/src/modules/events/router/events';\nimport categoriesRoutes from '@pf/src/modules/products/router/categories.router.js'\nimport leftoversRoutes from '@pf/src/modules/products/router/leftovers.router.js'\n\nimport paymentsRoutes from '@pf/src/modules/wallet/views/router/payments.router.js'\nimport ordersBackofficeRoutes from '@pf/src/modules/orders/router/orders.backoffice.router.js'\nimport galleryBackofficeRoutes from '@pf/src/modules/gallery/router/gallery.backoffice.router.js'\n\nimport backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'\n\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst organizations = [{\n path: 'organizations',\n component: layoutEmpty,\n meta: {\n title: {\n en: 'Organizations',\n ru: 'Организации'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n children: [{\n path: 'create',\n name: 'Create Organization',\n meta: {\n title: {\n en: 'Create Organization',\n ru: 'Создать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue')\n },{\n path: ':_id',\n name: 'OrganizationRoot',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n },\n component: layoutEmpty,\n children: [\n {\n path: '',\n name: 'Organization',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n component: () => import('@pf/src/modules/organizations/components/pages/Organization.vue'),\n },\n ...membersRoutes,\n ...departmentRoutes,\n ...productRoutes,\n ...eventsRoutes,\n ...categoriesRoutes,\n ...leftoversRoutes,\n ...paymentsRoutes,\n ...ordersBackofficeRoutes,\n ...galleryBackofficeRoutes,\n ...backofficeRoutes \n ],\n },{\n path: ':_id/edit',\n name: 'Organization Edit',\n meta: {\n title: {\n en: 'Edit Organization',\n ru: 'Редактировать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue'),\n }]\n}];\n\nexport default organizations;\n"],"names":["validationAuth.requiresAuth","leftoversRoutes","paymentsRoutes","ordersBackofficeRoutes","galleryBackofficeRoutes"],"mappings":";;;;;;;;;;;;AAkBK,MAAC,gBAAgB,CAAC;AAAA,EACrB,MAAM;AAAA,EACN,WAAW;AAAA,EACX,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,IAAI;AAAA,MACJ,IAAI;AAAA,IACL;AAAA,IACD,aAAa;AAAA,MACX,QAAQ;AAAA,IACT;AAAA,EACF;AAAA,EACD,UAAU,CAAC;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,aAAa,CAACA,YAA2B;AAAA,IACzC,WAAW,MAAM,OAAO,6CAAqE;AAAA,EACjG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW;AAAA,IACX,UAAU;AAAA,MACR;AAAA,QACE,MAAM;AAAA,QACN,MAAM;AAAA,QACN,MAAM;AAAA,UACJ,OAAO;AAAA,YACL,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,UACD,aAAa;AAAA,YACX,QAAQ;AAAA,UACT;AAAA,QACF;AAAA,QACD,WAAW,MAAM,OAAO,yCAAiE;AAAA,MAC1F;AAAA,MACD,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAGC;AAAAA,MACH,GAAGC;AAAAA,MACH,GAAGC;AAAAA,MACH,GAAGC;AAAAA,MACH,GAAG;AAAA,IACJ;AAAA,EACL,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,aAAa,CAACJ,YAA2B;AAAA,IACzC,WAAW,MAAM,OAAO,6CAAqE;AAAA,EACjG,CAAG;AACH,CAAC;"}
|
@@ -1,11 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const axios = require("axios");
|
4
|
-
require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");
|
5
3
|
const vue = require("vue");
|
6
4
|
const globals = require("../../globals/views/store/globals.cjs");
|
7
|
-
const
|
8
|
-
$axios.defaults.withCredentials = true;
|
5
|
+
const axiosInstance = require("../../globals/views/utils/axios-instance.cjs");
|
9
6
|
const state = vue.reactive({
|
10
7
|
departments: [],
|
11
8
|
department: {
|
@@ -29,6 +26,11 @@ const state = vue.reactive({
|
|
29
26
|
// Accesses
|
30
27
|
hidden: false,
|
31
28
|
accesses: {
|
29
|
+
events: {
|
30
|
+
read: false,
|
31
|
+
edit: false,
|
32
|
+
delete: false
|
33
|
+
},
|
32
34
|
gallery: {
|
33
35
|
read: false,
|
34
36
|
edit: false,
|
@@ -57,7 +59,7 @@ const state = vue.reactive({
|
|
57
59
|
const actions = {
|
58
60
|
async readOne(departmentID) {
|
59
61
|
try {
|
60
|
-
const response = await
|
62
|
+
const response = await axiosInstance.default.get(`/api/departments/get/${departmentID}`);
|
61
63
|
state.department = response.data;
|
62
64
|
state.error = null;
|
63
65
|
return response.data;
|
@@ -68,7 +70,7 @@ const actions = {
|
|
68
70
|
},
|
69
71
|
async read(options = {}) {
|
70
72
|
try {
|
71
|
-
const response = await
|
73
|
+
const response = await axiosInstance.default.get(`/api/departments/read`, { params: options });
|
72
74
|
console.log("Response:", response);
|
73
75
|
state.departments = response.data;
|
74
76
|
state.error = null;
|
@@ -81,7 +83,7 @@ const actions = {
|
|
81
83
|
},
|
82
84
|
async create(organizationId, department) {
|
83
85
|
try {
|
84
|
-
const response = await
|
86
|
+
const response = await axiosInstance.default.post(`/api/departments/${organizationId}/create`, department);
|
85
87
|
state.error = null;
|
86
88
|
return response.data;
|
87
89
|
} catch (error) {
|
@@ -91,7 +93,7 @@ const actions = {
|
|
91
93
|
},
|
92
94
|
async update(organizationId, department) {
|
93
95
|
try {
|
94
|
-
const response = await
|
96
|
+
const response = await axiosInstance.default.post(`/api/departments/${organizationId}/update`, department);
|
95
97
|
state.error = null;
|
96
98
|
return response;
|
97
99
|
} catch (error) {
|
@@ -101,7 +103,7 @@ const actions = {
|
|
101
103
|
},
|
102
104
|
async delete(organizationId, departmentId) {
|
103
105
|
try {
|
104
|
-
await
|
106
|
+
await axiosInstance.default.delete(`/api/departments/${organizationId}/delete`, { data: { _id: departmentId } });
|
105
107
|
state.error = null;
|
106
108
|
return true;
|
107
109
|
} catch (error) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"departments.cjs","sources":["../../../../../../src/modules/organizations/store/departments.js"],"sourcesContent":["//
|
1
|
+
{"version":3,"file":"departments.cjs","sources":["../../../../../../src/modules/organizations/store/departments.js"],"sourcesContent":["// Vue modules\nimport { reactive, watch } from \"vue\";\n// Globals \nimport { setError } from '@pf/src/modules/globals/views/store/globals'\n// Setup Axios\nimport $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';\n// State\nconst state = reactive({\n departments: [],\n department: {\n organization: '',\n profile: {\n photo: '',\n name: '',\n description: '',\n categories: [],\n },\n address: '',\n location: {\n lat: null,\n lng: null,\n },\n worktime: [],\n delivery: [],\n payment: [],\n members: [],\n subdepartments: [],\n\n // Accesses\n hidden: false,\n accesses: {\n events: {\n read: false,\n edit: false,\n delete: false,\n },\n gallery: {\n read: false,\n edit: false,\n delete: false,\n },\n products: {\n read: false,\n edit: false,\n delete: false,\n },\n orders: {\n read: false,\n confirm: false, // This property was added based on the schema\n delete: false,\n },\n departments: {\n read: false,\n edit: false,\n delete: false,\n },\n }\n },\n error: null,\n});\n\n// Methods\nconst actions = {\n async readOne(departmentID) {\n try {\n const response = await $axios.get(`/api/departments/get/${departmentID}`);\n state.department = response.data;\n state.error = null;\n return response.data; // Return the response data\n } catch (error) {\n setError(error);\n return null; // Return null or appropriate error response\n }\n },\n\n async read(options = {}) {\n try {\n const response = await $axios.get(`/api/departments/read`, { params: options });\n\n console.log('Response:', response);\n state.departments = response.data;\n state.error = null;\n return response.data; // Return the response data\n } catch (error) {\n console.log(error)\n setError(error);\n return null; // Return null or appropriate error response\n }\n },\n\n async create(organizationId, department) {\n try {\n const response = await $axios.post(`/api/departments/${organizationId}/create`, department);\n state.error = null;\n return response.data; // Return the response data\n } catch (error) {\n setError(error);\n return null; // Return null or appropriate error response\n }\n },\n\n async update(organizationId, department) {\n try {\n const response = await $axios.post(`/api/departments/${organizationId}/update`, department);\n state.error = null;\n return response; // Return the response for update operations, might not have body data\n } catch (error) {\n setError(error);\n return null; // Return null or appropriate error response\n }\n },\n\n async delete(organizationId, departmentId) {\n try {\n await $axios.delete(`/api/departments/${organizationId}/delete`, { data: { _id: departmentId } });\n state.error = null;\n return true; // Return true to indicate successful deletion\n } catch (error) {\n setError(error);\n return false; // Return false or appropriate error response\n }\n },\n};\n\n// History\nconst history = []\nhistory.push(state)\n\n// Watch\nwatch(state, (newState, oldState) => {\n history.push(newState)\n})\n\n// Module Export\nexport {\n state,\n actions,\n}"],"names":["reactive","$axios","setError","watch"],"mappings":";;;;;AAOK,MAAC,QAAQA,IAAAA,SAAS;AAAA,EACrB,aAAa,CAAE;AAAA,EACf,YAAY;AAAA,IACV,cAAc;AAAA,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S;AAC7B,YAAM,QAAQ;AACd,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACd,cAAQ,IAAI,KAAK;AACjBC,cAAQ,SAAC,KAAK;AACd,aAAO;AAAA,IACR;AAAA,EACF;AAAA,EAED,MAAM,OAAO,gBAAgB,YAAY;AACvC,QAAI;AACF,YAAM,WAAW,MAAMD,cAAM,QAAC,KAAK,oBAAoB,cAAc,WAAW,UAAU;AAC1F,YAAM,QAAQ;AACd,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACdC,cAAQ,SAAC,KAAK;AACd,aAAO;AAAA,IACR;AAAA,EACF;AAAA,EAED,MAAM,OAAO,gBAAgB,YAAY;AACvC,QAAI;AACF,YAAM,WAAW,MAAMD,cAAM,QAAC,KAAK,oBAAoB,cAAc,WAAW,UAAU;AAC1F,YAAM,QAAQ;AACd,aAAO;AAAA,IACR,SAAQ,OAAO;AACdC,cAAQ,SAAC,KAAK;AACd,aAAO;AAAA,IACR;AAAA,EACF;AAAA,EAED,MAAM,OAAO,gBAAgB,cAAc;AACzC,QAAI;AACF,YAAMD,sBAAO,OAAO,oBAAoB,cAAc,WAAW,EAAE,MAAM,EAAE,KAAK,aAAY,EAAI,CAAA;AAChG,YAAM,QAAQ;AACd,aAAO;AAAA,IACR,SAAQ,OAAO;AACdC,cAAQ,SAAC,KAAK;AACd,aAAO;AAAA,IACR;AAAA,EACF;AACH;AAOAC,IAAAA,MAAM,OAAO,CAAC,UAAU,aAAa;AAErC,CAAC;;;"}
|
@@ -1,9 +1,6 @@
|
|
1
|
-
import axios from "axios";
|
2
|
-
import "../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
3
1
|
import { reactive, watch } from "vue";
|
4
2
|
import { setError } from "../../globals/views/store/globals.js";
|
5
|
-
|
6
|
-
$axios.defaults.withCredentials = true;
|
3
|
+
import $axios from "../../globals/views/utils/axios-instance.js";
|
7
4
|
const state = reactive({
|
8
5
|
departments: [],
|
9
6
|
department: {
|
@@ -27,6 +24,11 @@ const state = reactive({
|
|
27
24
|
// Accesses
|
28
25
|
hidden: false,
|
29
26
|
accesses: {
|
27
|
+
events: {
|
28
|
+
read: false,
|
29
|
+
edit: false,
|
30
|
+
delete: false
|
31
|
+
},
|
30
32
|
gallery: {
|
31
33
|
read: false,
|
32
34
|
edit: false,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"departments.js","sources":["../../../../../../src/modules/organizations/store/departments.js"],"sourcesContent":["//
|
1
|
+
{"version":3,"file":"departments.js","sources":["../../../../../../src/modules/organizations/store/departments.js"],"sourcesContent":["// Vue modules\nimport { reactive, watch } from \"vue\";\n// Globals \nimport { setError } from '@pf/src/modules/globals/views/store/globals'\n// Setup Axios\nimport $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';\n// State\nconst state = reactive({\n departments: [],\n department: {\n organization: '',\n profile: {\n photo: '',\n name: '',\n description: '',\n categories: [],\n },\n address: '',\n location: {\n lat: null,\n lng: null,\n },\n worktime: [],\n delivery: [],\n payment: [],\n members: [],\n subdepartments: [],\n\n // Accesses\n hidden: false,\n accesses: {\n events: {\n read: false,\n edit: false,\n delete: false,\n },\n gallery: {\n read: false,\n edit: false,\n delete: false,\n },\n products: {\n read: false,\n edit: false,\n delete: false,\n },\n orders: {\n read: false,\n confirm: false, // This property was added based on the schema\n delete: false,\n },\n departments: {\n read: false,\n edit: false,\n delete: false,\n },\n }\n },\n error: null,\n});\n\n// Methods\nconst actions = {\n async readOne(departmentID) {\n try {\n const response = await $axios.get(`/api/departments/get/${departmentID}`);\n state.department = response.data;\n state.error = null;\n return response.data; // Return the response data\n } catch (error) {\n setError(error);\n return null; // Return null or appropriate error response\n }\n },\n\n async read(options = {}) {\n try {\n const response = await $axios.get(`/api/departments/read`, { params: options });\n\n console.log('Response:', response);\n state.departments = response.data;\n state.error = null;\n return response.data; // Return the response data\n } catch (error) {\n console.log(error)\n setError(error);\n return null; // Return null or appropriate error response\n }\n },\n\n async create(organizationId, department) {\n try {\n const response = await $axios.post(`/api/departments/${organizationId}/create`, department);\n state.error = null;\n return response.data; // Return the response data\n } catch (error) {\n setError(error);\n return null; // Return null or appropriate error response\n }\n },\n\n async update(organizationId, department) {\n try {\n const response = await $axios.post(`/api/departments/${organizationId}/update`, department);\n state.error = null;\n return response; // Return the response for update operations, might not have body data\n } catch (error) {\n setError(error);\n return null; // Return null or appropriate error response\n }\n },\n\n async delete(organizationId, departmentId) {\n try {\n await $axios.delete(`/api/departments/${organizationId}/delete`, { data: { _id: departmentId } });\n state.error = null;\n return true; // Return true to indicate successful deletion\n } catch (error) {\n setError(error);\n return false; // Return false or appropriate error response\n }\n },\n};\n\n// History\nconst history = []\nhistory.push(state)\n\n// Watch\nwatch(state, (newState, oldState) => {\n history.push(newState)\n})\n\n// Module Export\nexport {\n state,\n actions,\n}"],"names":[],"mappings":";;;AAOK,MAAC,QAAQ,SAAS;AAAA,EACrB,aAAa,CAAE;AAAA,EACf,YAAY;AAAA,IACV,cAAc;AAAA,IACd,SAAS;AAAA,MACP,OAAO;AAAA,MACP,MAAM;AAAA,MACN,aAAa;AAAA,MACb,YAAY,CAAE;AAAA,IACf;AAAA,IACD,SAAS;AAAA,IACT,UAAU;AAAA,MACR,KAAK;AAAA,MACL,KAAK;AAAA,IACN;AAAA,IACD,UAAU,CAAE;AAAA,IACZ,UAAU,CAAE;AAAA,IACZ,SAAS,CAAE;AAAA,IACX,SAAS,CAAE;AAAA,IACX,gBAAgB,CAAE;AAAA;AAAA,IAGlB,QAAQ;AAAA,IACR,UAAU;AAAA,MACR,QAAQ;AAAA,QACN,MAAM;AAAA,QACN,MAAM;AAAA,QACN,QAAQ;AAAA,MACT;AAAA,MACD,SAAS;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,QACN,QAAQ;AAAA,MACT;AAAA,MACD,UAAU;AAAA,QACR,MAAM;AAAA,QACN,MAAM;AAAA,QACN,QAAQ;AAAA,MACT;AAAA,MACD,QAAQ;AAAA,QACN,MAAM;AAAA,QACN,SAA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,OAAO,oBAAoB,cAAc,WAAW,EAAE,MAAM,EAAE,KAAK,aAAY,EAAI,CAAA;AAChG,YAAM,QAAQ;AACd,aAAO;AAAA,IACR,SAAQ,OAAO;AACd,eAAS,KAAK;AACd,aAAO;AAAA,IACR;AAAA,EACF;AACH;AAOA,MAAM,OAAO,CAAC,UAAU,aAAa;AAErC,CAAC;"}
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const axios = require("axios");
|
4
|
-
const js_cookie = require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");
|
5
3
|
const vue = require("vue");
|
6
4
|
const globals = require("../../globals/views/store/globals.cjs");
|
7
|
-
const
|
5
|
+
const axiosInstance = require("../../globals/views/utils/axios-instance.cjs");
|
8
6
|
const state = vue.reactive({
|
9
7
|
all: [],
|
10
8
|
current: {
|
@@ -43,7 +41,7 @@ const actions = {
|
|
43
41
|
async create(organization, owner) {
|
44
42
|
organization.owner = owner;
|
45
43
|
try {
|
46
|
-
const response = await
|
44
|
+
const response = await axiosInstance.default.post("/api/organizations/create", organization);
|
47
45
|
state.current = response.data;
|
48
46
|
return response.data;
|
49
47
|
} catch (error) {
|
@@ -55,7 +53,7 @@ const actions = {
|
|
55
53
|
async read(options = {}) {
|
56
54
|
console.log(options);
|
57
55
|
try {
|
58
|
-
const response = await
|
56
|
+
const response = await axiosInstance.default.get("/api/organizations", { params: options });
|
59
57
|
if (options._id) {
|
60
58
|
Object.assign(state.current || {}, response.data[0]);
|
61
59
|
} else {
|
@@ -69,7 +67,7 @@ const actions = {
|
|
69
67
|
// Update
|
70
68
|
async update(_id, updatedData) {
|
71
69
|
console.log(_id, updatedData);
|
72
|
-
return await
|
70
|
+
return await axiosInstance.default.post(`/api/organizations/${_id}/update`, updatedData).then(
|
73
71
|
(response) => {
|
74
72
|
console.log("Organization updated successfully");
|
75
73
|
return Promise.resolve(response.data);
|
@@ -82,13 +80,9 @@ const actions = {
|
|
82
80
|
},
|
83
81
|
// Remove
|
84
82
|
async remove(organizationId) {
|
85
|
-
await
|
83
|
+
await axiosInstance.default.delete(`/api/organizations/${organizationId}/delete`).then(
|
86
84
|
(response) => {
|
87
85
|
state.error = null;
|
88
|
-
let cookieValue = js_cookie.default.get("user");
|
89
|
-
let cookieObject = JSON.parse(cookieValue);
|
90
|
-
cookieObject.organization = null;
|
91
|
-
js_cookie.default.set("user", JSON.stringify(cookieObject), { expires: 7, domain: ".osi.plus", sameSite: "none", secure: true });
|
92
86
|
return Promise.resolve(response.data);
|
93
87
|
},
|
94
88
|
(error) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"organizations.cjs","sources":["../../../../../../src/modules/organizations/store/organizations.js"],"sourcesContent":["//
|
1
|
+
{"version":3,"file":"organizations.cjs","sources":["../../../../../../src/modules/organizations/store/organizations.js"],"sourcesContent":["// Vue modules\nimport { reactive, watch } from \"vue\";\n// Globals \nimport { setError } from '@pf/src/modules/globals/views/store/globals'\n// Setup Axios\nimport $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';\n// State\nconst state = reactive({\n all: [],\n current: {\n _id: null,\n profile: {\n tags: [],\n photo: '',\n name: '',\n description: ''\n },\n structure: [],\n owner: null,\n types: '',\n contacts: {\n email: '',\n website: '',\n phone: '',\n address: '',\n },\n socials: {\n telegram: '',\n line: '',\n facebook: '',\n instagram: '',\n youtube: ''\n },\n rating: {\n popularity: 0,\n median: 0,\n amount: 0,\n }\n }\n});\n\nconst actions = {\n // Create\n async create(organization,owner) {\n organization.owner = owner\n try {\n const response = await $axios.post('/api/organizations/create', organization);\n state.current = response.data;\n return response.data;\n } catch (error) {\n console.log(error);\n setError(error);\n throw error;\n }\n },\n async read(options = {}) {\n\n console.log(options)\n\n try {\n const response = await $axios.get('/api/organizations', { params: options });\n\n if (options._id) {\n Object.assign(state.current || {}, response.data[0])\n } else {\n // state.all = [...state.all, ...response.data]; \n // state.all = response.data; // Assuming that the response.data is an array of organization objects\n }\n return Promise.resolve(response.data);\n } catch (error) {\n setError(error)\n return Promise.reject(error);\n }\n },\n // Update\n async update(_id, updatedData) {\n console.log(_id,updatedData)\n return await $axios\n .post(`/api/organizations/${_id}/update`, updatedData)\n .then(\n (response) => {\n console.log('Organization updated successfully');\n return Promise.resolve(response.data);\n },\n (error) => {\n console.log('Updating organization failed');\n return Promise.reject(error);\n }\n );\n },\n\n // Remove\n async remove(organizationId) {\n await $axios\n .delete(`/api/organizations/${organizationId}/delete`)\n .then(\n (response) => {\n state.error = null;\n return Promise.resolve(response.data);\n },\n (error) => {\n setError(error)\n return Promise.reject(error);\n }\n )\n .catch(error => {\n setError(error)\n });\n },\n // Reset\n async reset () {\n state.current = {\n _id: null,\n profile: {\n categories: [],\n photo: '',\n name: '',\n description: ''\n },\n structure: [],\n owner: null,\n types: '',\n contacts: {\n email: '',\n website: '',\n phone: '',\n address: '',\n },\n socials: {\n telegram: '',\n line: '',\n facebook: '',\n instagram: ''\n },\n rating: {\n popularity: 0,\n median: 0,\n amount: 0,\n }\n }\n }\n}\n\nconst history = []\nhistory.push(state) \n\n// // Watch\nwatch(state, (newState, oldState) => {\n history.push(newState)\n})\n\n// Module Export\nexport {\n state,\n actions\n}"],"names":["reactive","$axios","setError","watch"],"mappings":";;;;;AAOK,MAAC,QAAQA,IAAAA,SAAS;AAAA,EACrB,KAAK,CAAE;AAAA,EACP,SAAS;AAAA,IACP,KAAK;AAAA,IACL,SAAS;AAAA,MACP,MAAM,CAAE;AAAA,MACR,OAAO;AAAA,MACP,MAAM;AAAA,MACN,aAAa;AAAA,IACd;AAAA,IACD,WAAW,CAAE;AAAA,IACb,OAAO;AAAA,IACP,OAAO;AAAA,IACP,UAAU;AAAA,MACR,OAAO;AAAA,MACP,SAAS;AAAA,MACT,OAAO;AAAA,MACP,SAAS;AAAA,IACV;AAAA,IACD,SAAS;AAAA,MACP,UAAU;AAAA,MACV,MAAM;AAAA,MACN,UAAU;AAAA,MACV,W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EAGD,MAAM,OAAO,gBAAgB;AAC3B,UAAMA,cAAM,QACT,OAAO,sBAAsB,cAAc,SAAS,EACpD;AAAA,MACC,CAAC,aAAa;AACZ,cAAM,QAAQ;AACd,eAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,MACrC;AAAA,MACD,CAAC,UAAU;AACTC,gBAAAA,SAAS,KAAK;AACd,eAAO,QAAQ,OAAO,KAAK;AAAA,MAC5B;AAAA,IACD,EACD,MAAM,WAAS;AACdA,cAAAA,SAAS,KAAK;AAAA,IACtB,CAAO;AAAA,EACJ;AAAA;AAAA,EAED,MAAM,QAAS;AACb,UAAM,UAAU;AAAA,MACd,KAAK;AAAA,MACL,SAAS;AAAA,QACP,YAAY,CAAE;AAAA,QACd,OAAO;AAAA,QACP,MAAM;AAAA,QACN,aAAa;AAAA,MACd;AAAA,MACD,WAAW,CAAE;AAAA,MACb,OAAO;AAAA,MACP,OAAO;AAAA,MACP,UAAU;AAAA,QACR,OAAO;AAAA,QACP,SAAS;AAAA,QACT,OAAO;AAAA,QACP,SAAS;AAAA,MACV;AAAA,MACD,SAAS;AAAA,QACP,UAAU;AAAA,QACV,MAAM;AAAA,QACN,UAAU;AAAA,QACV,WAAW;AAAA,MACZ;AAAA,MACD,QAAQ;AAAA,QACN,YAAY;AAAA,QACZ,QAAQ;AAAA,QACR,QAAQ;AAAA,MACT;AAAA,IACF;AAAA,EACF;AACH;AAMAC,IAAAA,MAAM,OAAO,CAAC,UAAU,aAAa;AAErC,CAAC;;;"}
|
@@ -1,8 +1,6 @@
|
|
1
|
-
import axios from "axios";
|
2
|
-
import api from "../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
3
1
|
import { reactive, watch } from "vue";
|
4
2
|
import { setError } from "../../globals/views/store/globals.js";
|
5
|
-
|
3
|
+
import $axios from "../../globals/views/utils/axios-instance.js";
|
6
4
|
const state = reactive({
|
7
5
|
all: [],
|
8
6
|
current: {
|
@@ -83,10 +81,6 @@ const actions = {
|
|
83
81
|
await $axios.delete(`/api/organizations/${organizationId}/delete`).then(
|
84
82
|
(response) => {
|
85
83
|
state.error = null;
|
86
|
-
let cookieValue = api.get("user");
|
87
|
-
let cookieObject = JSON.parse(cookieValue);
|
88
|
-
cookieObject.organization = null;
|
89
|
-
api.set("user", JSON.stringify(cookieObject), { expires: 7, domain: ".osi.plus", sameSite: "none", secure: true });
|
90
84
|
return Promise.resolve(response.data);
|
91
85
|
},
|
92
86
|
(error) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"organizations.js","sources":["../../../../../../src/modules/organizations/store/organizations.js"],"sourcesContent":["//
|
1
|
+
{"version":3,"file":"organizations.js","sources":["../../../../../../src/modules/organizations/store/organizations.js"],"sourcesContent":["// Vue modules\nimport { reactive, watch } from \"vue\";\n// Globals \nimport { setError } from '@pf/src/modules/globals/views/store/globals'\n// Setup Axios\nimport $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';\n// State\nconst state = reactive({\n all: [],\n current: {\n _id: null,\n profile: {\n tags: [],\n photo: '',\n name: '',\n description: ''\n },\n structure: [],\n owner: null,\n types: '',\n contacts: {\n email: '',\n website: '',\n phone: '',\n address: '',\n },\n socials: {\n telegram: '',\n line: '',\n facebook: '',\n instagram: '',\n youtube: ''\n },\n rating: {\n popularity: 0,\n median: 0,\n amount: 0,\n }\n }\n});\n\nconst actions = {\n // Create\n async create(organization,owner) {\n organization.owner = owner\n try {\n const response = await $axios.post('/api/organizations/create', organization);\n state.current = response.data;\n return response.data;\n } catch (error) {\n console.log(error);\n setError(error);\n throw error;\n }\n },\n async read(options = {}) {\n\n console.log(options)\n\n try {\n const response = await $axios.get('/api/organizations', { params: options });\n\n if (options._id) {\n Object.assign(state.current || {}, response.data[0])\n } else {\n // state.all = [...state.all, ...response.data]; \n // state.all = response.data; // Assuming that the response.data is an array of organization objects\n }\n return Promise.resolve(response.data);\n } catch (error) {\n setError(error)\n return Promise.reject(error);\n }\n },\n // Update\n async update(_id, updatedData) {\n console.log(_id,updatedData)\n return await $axios\n .post(`/api/organizations/${_id}/update`, updatedData)\n .then(\n (response) => {\n console.log('Organization updated successfully');\n return Promise.resolve(response.data);\n },\n (error) => {\n console.log('Updating organization failed');\n return Promise.reject(error);\n }\n );\n },\n\n // Remove\n async remove(organizationId) {\n await $axios\n .delete(`/api/organizations/${organizationId}/delete`)\n .then(\n (response) => {\n state.error = null;\n return Promise.resolve(response.data);\n },\n (error) => {\n setError(error)\n return Promise.reject(error);\n }\n )\n .catch(error => {\n setError(error)\n });\n },\n // Reset\n async reset () {\n state.current = {\n _id: null,\n profile: {\n categories: [],\n photo: '',\n name: '',\n description: ''\n },\n structure: [],\n owner: null,\n types: '',\n contacts: {\n email: '',\n website: '',\n phone: '',\n address: '',\n },\n socials: {\n telegram: '',\n line: '',\n facebook: '',\n instagram: ''\n },\n rating: {\n popularity: 0,\n median: 0,\n amount: 0,\n }\n }\n }\n}\n\nconst history = []\nhistory.push(state) \n\n// // Watch\nwatch(state, (newState, oldState) => {\n history.push(newState)\n})\n\n// Module Export\nexport {\n state,\n actions\n}"],"names":[],"mappings":";;;AAOK,MAAC,QAAQ,SAAS;AAAA,EACrB,KAAK,CAAE;AAAA,EACP,SAAS;AAAA,IACP,KAAK;AAAA,IACL,SAAS;AAAA,MACP,MAAM,CAAE;AAAA,MACR,OAAO;AAAA,MACP,MAAM;AAAA,MACN,aAAa;AAAA,IACd;AAAA,IACD,WAAW,CAAE;AAAA,IACb,OAAO;AAAA,IACP,OAAO;AAAA,IACP,UAAU;AAAA,MACR,OAAO;AAAA,MACP,SAAS;AAAA,MACT,OAAO;AAAA,MACP,SAAS;AAAA,IACV;AAAA,IACD,SAAS;AAAA,MACP,UAAU;AAAA,MACV,MAAM;AAAA,MACN,UAAU;AAAA,MACV,WAAW;AAAA,MACX,SAAS;AAAA,IACV;AAAA,IACD,QAAQ;AAAA,MACN,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,QAAQ;AAAA,IACT;AAAA,EACF;AACH,CAAC;AAEI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