@ozdao/prometheus-framework 0.2.251 → 0.2.253
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +298 -14
- package/dist/auth.server.mjs +298 -14
- package/dist/builder.js +4 -4
- package/dist/builder.mjs +4 -4
- package/dist/community.server.js +38 -21
- package/dist/community.server.mjs +38 -21
- package/dist/events.server.js +38 -18
- package/dist/events.server.mjs +38 -17
- package/dist/gallery.server.js +17 -4
- package/dist/gallery.server.mjs +17 -4
- package/dist/organizations.server.js +43 -26
- package/dist/organizations.server.mjs +43 -26
- package/dist/products.server.js +49 -23
- package/dist/products.server.mjs +49 -22
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +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/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/auth.client.cjs +15 -3
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.js +16 -4
- package/dist/prometheus-framework/src/modules/auth/auth.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs +95 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js +95 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js.map +1 -0
- 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/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/Profile.vue.cjs +284 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +284 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs +2 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js +2 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +85 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +85 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +176 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js +176 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +2 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +2 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +1 -0
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +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/components/sections/FeaturedUsers.vue.cjs +114 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +114 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs +72 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js +72 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +97 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/users.js +97 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs +95 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/users.js +95 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/users.js.map +1 -0
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +32 -2
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +32 -2
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +42 -7
- package/dist/prometheus-framework/src/modules/community/community.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +59 -24
- package/dist/prometheus-framework/src/modules/community/community.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +68 -70
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js +68 -70
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +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/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
- 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/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/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +26 -3
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +27 -4
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs +2 -2
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.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/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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +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/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +4 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.js +4 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs +63 -0
- package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/testimonials.js +63 -0
- package/dist/prometheus-framework/src/modules/orders/store/testimonials.js.map +1 -0
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.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.cjs.map +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/Department.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +5 -5
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +60 -11
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +95 -46
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +6 -10
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +8 -12
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +786 -773
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +786 -773
- 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/components/partials/SidebarPages.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +5 -7
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -3
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.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/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/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs +178 -0
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js +178 -0
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +62 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +62 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -3
- 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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- 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.cjs.map +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/FilterProducts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +156 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +157 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js.map +1 -0
- 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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs +128 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js +128 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +74 -7
- package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +114 -47
- package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs +46 -0
- package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js +46 -0
- package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +79 -36
- package/dist/prometheus-framework/src/modules/products/router/products.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/router/products.router.js +78 -35
- package/dist/prometheus-framework/src/modules/products/router/products.router.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs +57 -0
- package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/store/marketplace.js +57 -0
- package/dist/prometheus-framework/src/modules/products/store/marketplace.js.map +1 -0
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js.map +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/users/components/pages/Profile.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- 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/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 +3 -3
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/package.json +1 -1
- package/src/builder/webpack/webpack.config.client.js +2 -2
- package/src/builder/webpack/webpack.config.server.js +1 -1
- package/src/builder/webpack/webpack.config.spa.js +1 -1
- package/src/builder/webpack/webpack.config.ssr.js +1 -1
- package/src/modules/auth/auth.client.js +16 -3
- package/src/modules/auth/auth.server.js +22 -1
- package/src/modules/{users → auth/controllers}/routes/users.routes.js +1 -1
- package/src/modules/auth/controllers/services/auth.service.js +0 -1
- package/src/modules/{users → auth/views}/components/pages/Profile.vue +1 -1
- package/src/modules/{users → auth/views}/components/pages/ProfileEdit.vue +2 -2
- package/src/modules/{users → auth/views}/components/sections/FeaturedUsers.vue +2 -2
- package/src/modules/auth/views/router/users.js +79 -0
- package/src/modules/backoffice/backoffice.client.js +53 -11
- package/src/modules/backoffice/router/backoffice.js +29 -2
- package/src/modules/community/community.client.js +56 -10
- package/src/modules/community/community.server.js +35 -14
- package/src/modules/community/models/comment.model.js +7 -7
- package/src/modules/community/models/reaction.model.js +5 -5
- package/src/modules/community/router/blogposts.js +55 -57
- package/src/modules/events/events.server.js +37 -16
- package/src/modules/events/models/ticket.model.js +6 -6
- package/src/modules/gallery/gallery.client.js +44 -8
- package/src/modules/gallery/gallery.server.js +28 -9
- package/src/modules/gallery/router/gallery.router.js +2 -2
- package/src/modules/globals/globals.client.js +15 -14
- package/src/modules/governance/controllers/factories/initiatives.controller.js +94 -0
- package/src/modules/governance/controllers/factories/tasks.controller.js +94 -0
- package/src/modules/governance/controllers/factories/votes.controller.js +68 -0
- package/src/modules/governance/controllers/factories/votings.controller.js +112 -0
- package/src/modules/governance/controllers/routes/initiatives.routes.js +13 -0
- package/src/modules/governance/controllers/routes/tasks.routes.js +13 -0
- package/src/modules/governance/controllers/routes/votes.routes.js +11 -0
- package/src/modules/governance/controllers/routes/votings.routes.js +14 -0
- package/src/modules/governance/models/initiative.model.js +25 -0
- package/src/modules/governance/models/task.model.js +21 -0
- package/src/modules/governance/models/vote.model.js +20 -0
- package/src/modules/governance/models/voting.model.js +22 -0
- package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +18 -0
- package/src/modules/governance/views/components/blocks/CardTaskItem.vue +19 -0
- package/src/modules/governance/views/components/blocks/CardVotingItem.vue +18 -0
- package/src/modules/governance/views/components/pages/Initiative.vue +22 -0
- package/src/modules/governance/views/components/pages/InitiativeCreate.vue +24 -0
- package/src/modules/governance/views/components/pages/Initiatives.vue +19 -0
- package/src/modules/governance/views/components/pages/Task.vue +23 -0
- package/src/modules/governance/views/components/pages/TaskCreate.vue +25 -0
- package/src/modules/governance/views/components/pages/Tasks.vue +19 -0
- package/src/modules/governance/views/components/pages/Voting.vue +30 -0
- package/src/modules/governance/views/components/pages/VotingCreate.vue +25 -0
- package/src/modules/governance/views/components/pages/Votings.vue +19 -0
- package/src/modules/governance/views/components/partials/RewardDisplay.vue +19 -0
- package/src/modules/governance/views/components/partials/VoteDisplay.vue +21 -0
- package/src/modules/governance/views/components/partials/VotingResult.vue +21 -0
- package/src/modules/governance/views/components/sections/FormInitiativeDetails.vue +37 -0
- package/src/modules/governance/views/components/sections/FormTaskDetails.vue +41 -0
- package/src/modules/governance/views/components/sections/FormVotingDetails.vue +37 -0
- package/src/modules/governance/views/components/sections/VoteForm.vue +29 -0
- package/src/modules/governance/views/store/initiatives.js +102 -0
- package/src/modules/governance/views/store/tasks.js +104 -0
- package/src/modules/governance/views/store/votes.js +115 -0
- package/src/modules/governance/views/store/votings.js +81 -0
- package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
- package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
- package/src/modules/orders/orders.client.js +4 -1
- package/src/modules/orders/orders.server.js +1 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +1 -1
- package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
- package/src/modules/organizations/controllers/organizations.controller.js +0 -2
- package/src/modules/organizations/models/department.model.js +7 -7
- package/src/modules/organizations/models/membership.model.js +5 -5
- package/src/modules/organizations/organizations.client.js +71 -16
- package/src/modules/organizations/organizations.server.js +43 -18
- package/src/modules/organizations/router/organizations.js +6 -13
- package/src/modules/pages/views/store/pages.js +1 -3
- package/src/modules/{marketplace → products}/components/layouts/Marketplace.vue +19 -19
- package/src/modules/{marketplace → products}/components/pages/Catalog.vue +0 -2
- package/src/modules/products/components/pages/Products.vue +2 -2
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/{marketplace → products}/components/sections/Filters.vue +12 -15
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/products/components/sections/MenuSection.vue +8 -9
- package/src/modules/products/components/sections/PopularProducts.vue +1 -1
- package/src/modules/products/models/category.model.js +3 -3
- package/src/modules/products/models/product.model.js +7 -7
- package/src/modules/products/products.client.js +95 -27
- package/src/modules/products/products.server.js +47 -16
- package/src/modules/products/router/marketplace.router.js +38 -0
- package/src/modules/products/router/products.router.js +72 -32
- package/src/modules/spots/components/layouts/Spots.vue +1 -1
- package/src/modules/spots/components/pages/Map.vue +1 -1
- package/src/modules/spots/components/pages/Spot.vue +1 -1
- package/src/modules/backoffice/router/admin.js +0 -51
- package/src/modules/landing/components/pages/404.vue +0 -3
- package/src/modules/landing/components/pages/Farming.vue +0 -226
- package/src/modules/landing/components/pages/Governance.vue +0 -144
- package/src/modules/landing/components/pages/Home.vue +0 -51
- package/src/modules/landing/components/pages/Hotel.vue +0 -43
- package/src/modules/landing/router/landing.js +0 -39
- package/src/modules/legal/components/pages/Legal.vue +0 -62
- package/src/modules/legal/components/pages/legal/Cookies.vue +0 -370
- package/src/modules/legal/components/pages/legal/EULA.vue +0 -2145
- package/src/modules/legal/components/pages/legal/Privacy.vue +0 -4284
- package/src/modules/legal/components/pages/legal/Terms.vue +0 -1283
- package/src/modules/legal/legal.client.js +0 -18
- package/src/modules/legal/router/legal.js +0 -59
- package/src/modules/marketplace/router/marketplace.js +0 -55
- package/src/modules/users/router/users.js +0 -90
- package/src/modules/users/users.client.js +0 -22
- package/src/modules/users/users.server.js +0 -13
- /package/src/modules/{users → auth/controllers}/middlewares/visitor.logger.js +0 -0
- /package/src/modules/{users/controllers/users.controller.js → auth/controllers/services/users.service.js} +0 -0
- /package/src/modules/{users → auth}/models/request.model.js +0 -0
- /package/src/modules/{users → auth}/models/user.model.js +0 -0
- /package/src/modules/{users → auth}/models/visitor.model.js +0 -0
- /package/src/modules/{users → auth/views}/components/blocks/CardUser.vue +0 -0
- /package/src/modules/{users → auth/views}/components/pages/ProfileBlogposts.vue +0 -0
- /package/src/modules/{users → auth/views}/components/pages/ProfileComments.vue +0 -0
- /package/src/modules/{users → auth/views}/components/pages/ProfileLikes.vue +0 -0
- /package/src/modules/{users → auth/views}/components/sections/ProfileCompletion.vue +0 -0
- /package/src/modules/{users → auth/views}/router/account.js +0 -0
- /package/src/modules/{users → auth/views}/store/users.js +0 -0
- /package/src/modules/{projects/controller → governance/controllers/factories}/projects.controller.js +0 -0
- /package/src/modules/{projects → governance/controllers}/routes/projects.routes.js +0 -0
- /package/src/modules/{projects → governance}/models/project.model.js +0 -0
- /package/src/modules/{projects → governance/views}/store/projects.js +0 -0
- /package/src/modules/{marketplace → products}/store/marketplace.js +0 -0
@@ -1,14 +1,14 @@
|
|
1
1
|
const accessesSchema = require('./schemas/accesses.schema.js');
|
2
2
|
|
3
|
-
module.exports = (
|
3
|
+
module.exports = (db) => {
|
4
4
|
// Схема отдела
|
5
|
-
const departmentSchema = new mongoose.Schema({
|
5
|
+
const departmentSchema = new db.mongoose.Schema({
|
6
6
|
owner: {
|
7
|
-
type: mongoose.Schema.Types.ObjectId,
|
7
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
8
8
|
ref: 'User',
|
9
9
|
},
|
10
10
|
organization: {
|
11
|
-
type: mongoose.Schema.Types.ObjectId,
|
11
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
12
12
|
ref: 'Organization',
|
13
13
|
},
|
14
14
|
profile: {
|
@@ -37,7 +37,7 @@ module.exports = (mongoose) => {
|
|
37
37
|
members: [
|
38
38
|
{
|
39
39
|
user: {
|
40
|
-
type: mongoose.Schema.Types.ObjectId,
|
40
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
41
41
|
ref: 'User',
|
42
42
|
},
|
43
43
|
position: {
|
@@ -48,7 +48,7 @@ module.exports = (mongoose) => {
|
|
48
48
|
],
|
49
49
|
subdepartments: [
|
50
50
|
{
|
51
|
-
type: mongoose.Schema.Types.ObjectId,
|
51
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
52
52
|
ref: 'Department',
|
53
53
|
},
|
54
54
|
],
|
@@ -58,7 +58,7 @@ module.exports = (mongoose) => {
|
|
58
58
|
|
59
59
|
departmentSchema.index({ organization: 1 })
|
60
60
|
|
61
|
-
const Department = mongoose.model('Department', departmentSchema);
|
61
|
+
const Department = db.mongoose.model('Department', departmentSchema);
|
62
62
|
|
63
63
|
return Department
|
64
64
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module.exports = (
|
2
|
-
const MembershipSchema = new mongoose.Schema({
|
1
|
+
module.exports = (db) => {
|
2
|
+
const MembershipSchema = new db.mongoose.Schema({
|
3
3
|
user: {
|
4
|
-
type: mongoose.Schema.Types.ObjectId,
|
4
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
5
5
|
ref: 'User',
|
6
6
|
required: true,
|
7
7
|
},
|
@@ -20,7 +20,7 @@ module.exports = (mongoose) => {
|
|
20
20
|
default: 'subscriber'
|
21
21
|
},
|
22
22
|
target: { // заменяем 'organization' на 'target', так как это может быть или User, или Organization
|
23
|
-
type: mongoose.Schema.Types.ObjectId,
|
23
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
24
24
|
ref: function (value) {
|
25
25
|
if (this.type === 'user') return 'User';
|
26
26
|
if (this.type === 'organization') return 'Organization';
|
@@ -33,7 +33,7 @@ module.exports = (mongoose) => {
|
|
33
33
|
|
34
34
|
MembershipSchema.index({ user: 1, target: 1});
|
35
35
|
|
36
|
-
const Membership = mongoose.model('Membership', MembershipSchema);
|
36
|
+
const Membership = db.mongoose.model('Membership', MembershipSchema);
|
37
37
|
|
38
38
|
return Membership;
|
39
39
|
}
|
@@ -1,10 +1,21 @@
|
|
1
|
-
//
|
1
|
+
// Store
|
2
|
+
import * as storeDepartments from './store/departments.js';
|
3
|
+
import * as storeMemberships from './store/memberships.js';
|
4
|
+
import * as storeOrganizations from './store/organizations.js';
|
5
|
+
import * as storeInvites from './store/invites.js';
|
6
|
+
|
7
|
+
// Router
|
8
|
+
import routerOrganization from './router/organizations';
|
9
|
+
|
10
|
+
// Views
|
11
|
+
// Pages
|
2
12
|
import Organization from './components/pages/Organization.vue';
|
3
13
|
import Department from './components/pages/Department.vue';
|
4
14
|
import OrganizationEdit from './components/pages/OrganizationEdit.vue';
|
5
15
|
import Organizations from './components/pages/Organizations.vue';
|
6
16
|
import DepartmentEdit from './components/pages/DepartmentEdit.vue';
|
7
17
|
|
18
|
+
// Blocks
|
8
19
|
import CardOrganization from './components/blocks/CardOrganization.vue';
|
9
20
|
import EditArray from './components/blocks/EditArray.vue';
|
10
21
|
import Unit from './components/blocks/Unit.vue';
|
@@ -15,23 +26,27 @@ import EmptyState from './components/blocks/EmptyState.vue';
|
|
15
26
|
import Contacts from './components/blocks/Contacts.vue';
|
16
27
|
import Socials from './components/blocks/Socials.vue';
|
17
28
|
|
29
|
+
// Sections
|
18
30
|
import MembersAdd from './components/sections/MembersAdd.vue';
|
19
31
|
import DetailsTabSection from './components/sections/DetailsTabSection.vue';
|
20
32
|
import OrganizationsSection from './components/sections/Organizations.vue';
|
21
33
|
import Publics from './components/sections/Publics.vue';
|
22
34
|
import Documents from './components/sections/Documents.vue';
|
23
35
|
|
36
|
+
// Elements
|
24
37
|
import ButtonToggleMembership from './components/elements/ButtonToggleMembership.vue';
|
25
38
|
|
26
|
-
//
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
39
|
+
// Пример функции инициализации для модуля организаций
|
40
|
+
function initializeOrganization(app, store, router, options = {}) {
|
41
|
+
const route = options.route || 'Home';
|
42
|
+
|
43
|
+
router.addRoute(route, routerOrganization);
|
44
|
+
|
45
|
+
store.addStore('departments', storeDepartments);
|
46
|
+
store.addStore('memberships', storeMemberships);
|
47
|
+
store.addStore('organizations', storeOrganizations);
|
48
|
+
store.addStore('invites', storeInvites);
|
49
|
+
}
|
35
50
|
|
36
51
|
// Export components, store modules, and routes
|
37
52
|
export {
|
@@ -55,13 +70,53 @@ export {
|
|
55
70
|
Publics,
|
56
71
|
Documents,
|
57
72
|
ButtonToggleMembership,
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
73
|
+
storeDepartments,
|
74
|
+
storeMemberships,
|
75
|
+
storeOrganizations,
|
76
|
+
storeInvites,
|
77
|
+
routerOrganization
|
63
78
|
};
|
64
79
|
|
65
80
|
|
81
|
+
const ModuleOrganization = {
|
82
|
+
initialize: initializeOrganization,
|
83
|
+
views: {
|
84
|
+
store: {
|
85
|
+
storeDepartments,
|
86
|
+
storeMemberships,
|
87
|
+
storeOrganizations,
|
88
|
+
storeInvites
|
89
|
+
},
|
90
|
+
router: {
|
91
|
+
routerOrganization
|
92
|
+
},
|
93
|
+
components: {
|
94
|
+
// Pages
|
95
|
+
Organization,
|
96
|
+
Department,
|
97
|
+
OrganizationEdit,
|
98
|
+
Organizations,
|
99
|
+
DepartmentEdit,
|
100
|
+
// Blocks
|
101
|
+
CardOrganization,
|
102
|
+
EditArray,
|
103
|
+
Unit,
|
104
|
+
DepartmentSub,
|
105
|
+
CardDepartment,
|
106
|
+
Rating,
|
107
|
+
EmptyState,
|
108
|
+
Contacts,
|
109
|
+
Socials,
|
110
|
+
// Sections
|
111
|
+
MembersAdd,
|
112
|
+
DetailsTabSection,
|
113
|
+
OrganizationsSection,
|
114
|
+
Publics,
|
115
|
+
Documents,
|
116
|
+
// Elements
|
117
|
+
ButtonToggleMembership
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
66
121
|
|
67
|
-
|
122
|
+
export default ModuleOrganization;
|
@@ -1,31 +1,56 @@
|
|
1
|
-
//
|
1
|
+
// Импортируем контроллеры
|
2
2
|
const DepartmentsController = require('./controllers/departments.controller.js');
|
3
3
|
const OrganizationsController = require('./controllers/organizations.controller.js');
|
4
4
|
const MembershipsController = require('./controllers/memberships.controller.js');
|
5
5
|
const InvitesController = require('./controllers/invites.controller.js');
|
6
|
-
|
6
|
+
|
7
|
+
// Импортируем роуты
|
7
8
|
const departmentsRoutes = require('./routes/departments.routes.js');
|
8
9
|
const organizationsRoutes = require('./routes/organizations.routes.js');
|
9
10
|
const membershipsRoutes = require('./routes/memberships.routes.js');
|
10
|
-
const invitesRoutes = require('./routes/invites.routes.js')
|
11
|
-
|
11
|
+
const invitesRoutes = require('./routes/invites.routes.js');
|
12
|
+
|
13
|
+
// Импортируем модели
|
12
14
|
const DepartmentModel = require('./models/department.model.js');
|
13
15
|
const OrganizationModel = require('./models/organization.model.js');
|
14
16
|
const MembershipModel = require('./models/membership.model.js');
|
15
17
|
const InviteModel = require('./models/invite.model.js');
|
16
18
|
|
17
|
-
|
19
|
+
function initializeOrganization(app, db, origins, publicPath) {
|
20
|
+
// Настраиваем модели в объекте базы данных
|
21
|
+
db.department = DepartmentModel(db);
|
22
|
+
db.organization = OrganizationModel(db);
|
23
|
+
db.membership = MembershipModel(db);
|
24
|
+
db.invite = InviteModel(db);
|
25
|
+
|
26
|
+
// Настраиваем маршруты, если объект приложения передан
|
27
|
+
if (app) {
|
28
|
+
departmentsRoutes(app, db, origins, publicPath);
|
29
|
+
organizationsRoutes(app, db, origins, publicPath);
|
30
|
+
membershipsRoutes(app, db, origins, publicPath);
|
31
|
+
invitesRoutes(app, db, origins, publicPath);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
// Экспортируем функцию инициализации, контроллеры, роуты и модели
|
18
36
|
module.exports = {
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
}
|
37
|
+
initialize: initializeOrganization,
|
38
|
+
models: {
|
39
|
+
DepartmentModel,
|
40
|
+
OrganizationModel,
|
41
|
+
MembershipModel,
|
42
|
+
InviteModel,
|
43
|
+
},
|
44
|
+
routes: {
|
45
|
+
departmentsRoutes,
|
46
|
+
organizationsRoutes,
|
47
|
+
membershipsRoutes,
|
48
|
+
invitesRoutes,
|
49
|
+
},
|
50
|
+
controllers: {
|
51
|
+
DepartmentsController,
|
52
|
+
OrganizationsController,
|
53
|
+
MembershipsController,
|
54
|
+
InvitesController,
|
55
|
+
}
|
56
|
+
};
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';
|
2
|
-
|
3
1
|
import membersRoutes from './members.router.js';
|
4
2
|
import departmentRoutes from './departments.router.js'
|
3
|
+
import backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'
|
5
4
|
|
6
|
-
import productRoutes from '@pf/src/modules/products/router/products.router.js'
|
7
5
|
import { createEventRoutes } from '@pf/src/modules/events/router/events';
|
6
|
+
import { createProductRoutes } from '@pf/src/modules/products/router/products.router';
|
8
7
|
import categoriesRoutes from '@pf/src/modules/products/router/categories.router.js'
|
9
8
|
import leftoversRoutes from '@pf/src/modules/products/router/leftovers.router.js'
|
10
9
|
|
@@ -12,15 +11,10 @@ import paymentsRoutes from '@pf/src/modules/wallet/views/router/payments.router.
|
|
12
11
|
import ordersBackofficeRoutes from '@pf/src/modules/orders/router/orders.backoffice.router.js'
|
13
12
|
import galleryBackofficeRoutes from '@pf/src/modules/gallery/router/gallery.backoffice.router.js'
|
14
13
|
|
15
|
-
import backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'
|
16
|
-
|
17
14
|
import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
|
18
15
|
|
19
|
-
const
|
20
|
-
|
21
|
-
const organizations = [{
|
16
|
+
const organizations = {
|
22
17
|
path: 'organizations',
|
23
|
-
component: layoutEmpty,
|
24
18
|
meta: {
|
25
19
|
title: {
|
26
20
|
en: 'Organizations',
|
@@ -50,7 +44,6 @@ const organizations = [{
|
|
50
44
|
ru: 'Группа'
|
51
45
|
},
|
52
46
|
},
|
53
|
-
component: layoutEmpty,
|
54
47
|
children: [
|
55
48
|
{
|
56
49
|
path: '',
|
@@ -68,8 +61,8 @@ const organizations = [{
|
|
68
61
|
},
|
69
62
|
...membersRoutes,
|
70
63
|
...departmentRoutes,
|
71
|
-
|
72
|
-
|
64
|
+
createProductRoutes('Organization_'),
|
65
|
+
createEventRoutes('Organization_'),
|
73
66
|
...categoriesRoutes,
|
74
67
|
...leftoversRoutes,
|
75
68
|
...paymentsRoutes,
|
@@ -89,6 +82,6 @@ const organizations = [{
|
|
89
82
|
beforeEnter: [validationAuth.requiresAuth],
|
90
83
|
component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue'),
|
91
84
|
}]
|
92
|
-
}
|
85
|
+
};
|
93
86
|
|
94
87
|
export default organizations;
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import { reactive, watch } from "vue";
|
2
|
-
import axios from "axios";
|
3
2
|
import { setError } from "@pf/src/modules/globals/views/store/globals";
|
4
3
|
|
5
|
-
|
6
|
-
const $axios = axios.create({ baseURL: clientUrl });
|
4
|
+
import $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';
|
7
5
|
|
8
6
|
const state = reactive({
|
9
7
|
all: [],
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
<span
|
8
8
|
v-if="localPosition.city || localPosition.state || localPosition.country"
|
9
|
-
@click="a => {
|
9
|
+
@click="a => { globals.state.isOpenLocationPopup = true }"
|
10
10
|
class="t-main t-semi cursor-pointer "
|
11
11
|
>
|
12
12
|
<template v-if="localPosition.city">{{localPosition.city}}, </template>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<template v-if="localPosition.country">{{localPosition.country}}</template>
|
15
15
|
</span>
|
16
16
|
|
17
|
-
<span v-else @click="a => {
|
17
|
+
<span v-else @click="a => { globals.state.isOpenLocationPopup = true }" class="h2 pd-l-small pd-r-small pd-t-micro pd-b-micro d-inline-block t-semi radius-extra bg-main t-black cursor-pointer">
|
18
18
|
The World
|
19
19
|
</span>
|
20
20
|
</h2>
|
@@ -23,8 +23,8 @@
|
|
23
23
|
<div class="gap-thin cols-2-1_3">
|
24
24
|
<div class="desktop-only radius-big o-hidden">
|
25
25
|
<BlockFilter
|
26
|
-
v-model:filter="
|
27
|
-
:options="
|
26
|
+
v-model:filter="marketplace.state.filter"
|
27
|
+
:options="marketplace.state.filter.options"
|
28
28
|
class="h-100 w-100 pd-small bg-light"
|
29
29
|
/>
|
30
30
|
</div>
|
@@ -42,15 +42,15 @@
|
|
42
42
|
<script setup="props">
|
43
43
|
// Import libs
|
44
44
|
import { computed, onMounted, watch, ref } from 'vue'
|
45
|
-
import { useStore } from '@/store'
|
46
45
|
import { useRoute, useRouter,onBeforeRouteLeave } from 'vue-router'
|
47
46
|
import { useI18n } from 'vue-i18n'
|
48
47
|
|
49
|
-
|
50
48
|
import BlockFilter from '@pf/src/modules/globals/views/components/blocks/BlockFilter.vue'
|
51
49
|
|
50
|
+
import * as marketplace from '@pf/src/modules/products/store/marketplace';
|
51
|
+
import * as categories from '@pf/src/modules/products/store/categories';
|
52
|
+
|
52
53
|
// Accessing router and store
|
53
|
-
const store = useStore()
|
54
54
|
const route = useRoute()
|
55
55
|
const router = useRouter()
|
56
56
|
|
@@ -90,27 +90,27 @@
|
|
90
90
|
if (route.query) {
|
91
91
|
const query = route.query;
|
92
92
|
|
93
|
-
|
94
|
-
|
95
|
-
|
93
|
+
marketplace.state.filter.selected.categories = query.categories ? query.categories.split(',') : [];
|
94
|
+
marketplace.state.filter.selected.prices = query.prices ? query.prices.split(',') : [];
|
95
|
+
marketplace.state.filter.selected.delivery = query.delivery ? query.delivery.split(',') : [];
|
96
96
|
}
|
97
97
|
|
98
|
-
if (route.query.sortParam)
|
99
|
-
if (route.query.sortOrder)
|
98
|
+
if (route.query.sortParam) marketplace.state.sort.param = route.query.sortParam
|
99
|
+
if (route.query.sortOrder) marketplace.state.sort.order = route.query.sortOrder
|
100
100
|
|
101
101
|
onMounted(async () => {
|
102
102
|
let options = {
|
103
103
|
status: 'published'
|
104
104
|
}
|
105
105
|
|
106
|
-
let categoriesFilter = await
|
106
|
+
let categoriesFilter = await categories.actions.fetchCategories(options);
|
107
107
|
|
108
108
|
categoriesFilter = categoriesFilter.map(category => ({
|
109
109
|
value: category.url,
|
110
110
|
label: category.name
|
111
111
|
}));
|
112
112
|
|
113
|
-
const index =
|
113
|
+
const index = marketplace.state.filter.options.findIndex(option => option.value === 'categories');
|
114
114
|
|
115
115
|
const categoryOption = {
|
116
116
|
title: 'Categories',
|
@@ -119,13 +119,13 @@
|
|
119
119
|
};
|
120
120
|
|
121
121
|
if (index !== -1) {
|
122
|
-
|
122
|
+
marketplace.state.filter.options[index] = categoryOption;
|
123
123
|
} else {
|
124
|
-
|
124
|
+
marketplace.state.filter.options.unshift(categoryOption);
|
125
125
|
}
|
126
126
|
})
|
127
127
|
|
128
|
-
watch(() =>
|
128
|
+
watch(() => marketplace.state.sort, (newSortValue, oldSortValue) => {
|
129
129
|
let query = { ...route.query}
|
130
130
|
|
131
131
|
query.sortParam = newSortValue.param
|
@@ -136,7 +136,7 @@
|
|
136
136
|
}, { deep: true });
|
137
137
|
|
138
138
|
|
139
|
-
watch(() =>
|
139
|
+
watch(() => marketplace.state.filter.selected, (newFilterValue, oldFilterValue) => {
|
140
140
|
// Переводим фильтр в формат query
|
141
141
|
const query = { ...route.query };
|
142
142
|
|
@@ -161,7 +161,7 @@
|
|
161
161
|
router.replace({ query });
|
162
162
|
}, { deep: true })
|
163
163
|
|
164
|
-
watch(() =>
|
164
|
+
watch(() => globals.state.position, (newPosition) => {
|
165
165
|
// get the current route
|
166
166
|
const currentRoute = { ...router.currentRoute.value };
|
167
167
|
|
@@ -43,7 +43,6 @@
|
|
43
43
|
<script setup>
|
44
44
|
import { computed,reactive,ref, onMounted,watch } from 'vue'
|
45
45
|
import { useRoute } from 'vue-router'
|
46
|
-
import { useStore } from '@/store'
|
47
46
|
|
48
47
|
import * as organization from '@pf/src/modules/organizations/store/organizations'
|
49
48
|
|
@@ -52,7 +51,6 @@
|
|
52
51
|
import CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'
|
53
52
|
|
54
53
|
const route = useRoute()
|
55
|
-
const store = useStore()
|
56
54
|
</script>
|
57
55
|
|
58
56
|
<style lang="scss">
|
@@ -76,7 +76,7 @@
|
|
76
76
|
:user="auth.state.access"
|
77
77
|
class="h-max"
|
78
78
|
@click.capture="$router.push({
|
79
|
-
name: '
|
79
|
+
name: 'Organization_Product',
|
80
80
|
params: {
|
81
81
|
_id: route.params._id,
|
82
82
|
product: product._id
|
@@ -108,7 +108,7 @@
|
|
108
108
|
// Accessing router and store
|
109
109
|
import * as auth from '@pf/src/modules/auth/views/store/auth';
|
110
110
|
import * as products from '@pf/src/modules/products/store/products';
|
111
|
-
import * as marketplace from '@pf/src/modules/
|
111
|
+
import * as marketplace from '@pf/src/modules/products/store/marketplace';
|
112
112
|
import * as categories from '@pf/src/modules/products/store/categories';
|
113
113
|
|
114
114
|
const route = useRoute()
|
@@ -89,7 +89,7 @@ const route = useRoute()
|
|
89
89
|
const router = useRouter()
|
90
90
|
|
91
91
|
import * as categories from '@pf/src/modules/products/store/categories';
|
92
|
-
import * as marketplace from '@pf/src/modules/
|
92
|
+
import * as marketplace from '@pf/src/modules/products/store/marketplace';
|
93
93
|
|
94
94
|
let options = {
|
95
95
|
status: 'published'
|
@@ -7,7 +7,7 @@
|
|
7
7
|
:label="t('categoriesTitle')"
|
8
8
|
class="cursor-pointer pd-thin t-semi radius-extra uppercase p-medium"
|
9
9
|
:class="[
|
10
|
-
|
10
|
+
marketplace.state.filter.categories.length > 0 ? 'bg-white t-black' : ''
|
11
11
|
]"
|
12
12
|
>
|
13
13
|
<div class="w-100 h-100 radius-semi o-hidden bg-black">
|
@@ -17,8 +17,8 @@
|
|
17
17
|
name="categories"
|
18
18
|
:value="category.url"
|
19
19
|
class="cursor-pointer w-100 bg-black t-white radius-small pd-small"
|
20
|
-
:radio="
|
21
|
-
@update:radio="event =>
|
20
|
+
:radio="marketplace.state.filter.categories"
|
21
|
+
@update:radio="event => marketplace.state.filter.categories = event"
|
22
22
|
/>
|
23
23
|
</div>
|
24
24
|
</Dropdown>
|
@@ -28,7 +28,7 @@
|
|
28
28
|
:label="t('filters.price.title')"
|
29
29
|
class="cursor-pointer pd-thin t-semi radius-extra uppercase p-medium"
|
30
30
|
:class="[
|
31
|
-
|
31
|
+
marketplace.state.filter.prices.length > 0 ? 'bg-white t-black' : ''
|
32
32
|
]"
|
33
33
|
>
|
34
34
|
<div class="w-100 h-100 radius-semi o-hidden bg-black">
|
@@ -38,8 +38,8 @@
|
|
38
38
|
name="prices"
|
39
39
|
:value="price.value"
|
40
40
|
class="cursor-pointer w-100 mn-t-small bg-black t-white radius-small pd-small"
|
41
|
-
:radio="
|
42
|
-
@update:radio="event =>
|
41
|
+
:radio="marketplace.state.filter.prices"
|
42
|
+
@update:radio="event => marketplace.state.filter.prices = event"
|
43
43
|
/>
|
44
44
|
</div>
|
45
45
|
</Dropdown>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
id="fitlerDelivery"
|
50
50
|
class="cursor-pointer pd-thin t-semi radius-extra uppercase p-medium"
|
51
51
|
:class="[
|
52
|
-
|
52
|
+
marketplace.state.filter.delivery.length > 0 ? 'bg-white t-black' : ''
|
53
53
|
]"
|
54
54
|
>
|
55
55
|
<div class="w-100 h-100 radius-semi o-hidden bg-black">
|
@@ -59,8 +59,8 @@
|
|
59
59
|
name="prices"
|
60
60
|
:value="delivery.value"
|
61
61
|
class="cursor-pointer w-100 mn-t-small bg-black t-white radius-small pd-small"
|
62
|
-
:radio="
|
63
|
-
@update:radio="event =>
|
62
|
+
:radio="marketplace.state.filter.delivery"
|
63
|
+
@update:radio="event => marketplace.state.filter.delivery = event"
|
64
64
|
/>
|
65
65
|
</div>
|
66
66
|
</Dropdown>
|
@@ -72,18 +72,15 @@
|
|
72
72
|
<script setup>
|
73
73
|
import { computed, onMounted, ref } from 'vue'
|
74
74
|
|
75
|
-
|
76
75
|
import Checkbox from "@pf/src/components/Checkbox/Checkbox.vue";
|
77
76
|
import Radio from "@pf/src/components/Radio/Radio.vue";
|
78
77
|
import Select from "@pf/src/components/Select/Select.vue";
|
79
78
|
import Dropdown from "@pf/src/components/Dropdown/Dropdown.vue";
|
80
79
|
|
81
|
-
import { useStore } from '@/store'
|
82
80
|
import { useI18n } from 'vue-i18n'
|
83
81
|
|
84
|
-
|
85
|
-
|
86
|
-
const categories = computed(() => store.categories.state.all)
|
82
|
+
import * as marketplace from '@pf/src/modules/products/store/marketplace';
|
83
|
+
import * as categories from '@pf/src/modules/products/store/categories';
|
87
84
|
|
88
85
|
const delivery = [
|
89
86
|
{ label: 'Pickup', value: 'pickup' },
|
@@ -148,7 +145,7 @@
|
|
148
145
|
status: 'published'
|
149
146
|
}
|
150
147
|
|
151
|
-
await
|
148
|
+
await categories.actions.fetchCategories(options)
|
152
149
|
})
|
153
150
|
|
154
151
|
|
@@ -108,7 +108,7 @@
|
|
108
108
|
<button
|
109
109
|
v-for="(preset,index) in presets"
|
110
110
|
:key="preset"
|
111
|
-
@click.stop="router.push({name: '
|
111
|
+
@click.stop="router.push({name: 'ProductRecommmendation', query: {mood: preset}})"
|
112
112
|
class="
|
113
113
|
uppercase
|
114
114
|
pd-thin
|
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
<ul v-else class="gap-thin grid-container">
|
13
13
|
<router-link :to="getMarketplaceLink([category.url])"
|
14
|
-
v-for="(category,index) in
|
14
|
+
v-for="(category,index) in categories.state.all.slice(0,5)"
|
15
15
|
:key="category"
|
16
16
|
class="cursor-pointer hover-scale-0 flex-v-center flex-h-center flex-nowrap flex-row flex bg-light radius-big pd-medium grid-item"
|
17
17
|
>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
autoplay loop muted
|
23
23
|
>
|
24
24
|
<source
|
25
|
-
src="/output.webm"
|
25
|
+
:src="'/output.webm'"
|
26
26
|
type="video/webm"
|
27
27
|
>
|
28
28
|
</video>
|
@@ -68,14 +68,13 @@
|
|
68
68
|
import Loader from '@pf/src/components/Loader/Loader.vue'
|
69
69
|
|
70
70
|
import { useRouter } from 'vue-router'
|
71
|
-
import { useStore } from '@/store';
|
72
71
|
import { useI18n } from 'vue-i18n'
|
73
72
|
|
74
|
-
|
75
|
-
|
73
|
+
import * as categories from '@pf/src/modules/products/store/categories';
|
74
|
+
import * as products from '@pf/src/modules/products/store/products';
|
75
|
+
|
76
76
|
const router = useRouter()
|
77
77
|
|
78
|
-
|
79
78
|
const text = {
|
80
79
|
locale: 'en',
|
81
80
|
messages: {
|
@@ -88,7 +87,7 @@
|
|
88
87
|
}
|
89
88
|
}
|
90
89
|
|
91
|
-
|
90
|
+
categories.state.all.forEach( category => {
|
92
91
|
category.localization.forEach( localization => {
|
93
92
|
text.messages[localization.locale].categories.push(localization.text)
|
94
93
|
})
|
@@ -100,8 +99,8 @@
|
|
100
99
|
const menu = ref(false)
|
101
100
|
|
102
101
|
onMounted( async () => {
|
103
|
-
countProduct.value = await
|
104
|
-
await
|
102
|
+
countProduct.value = await products.actions.read({count: true})
|
103
|
+
await categories.actions.fetchCategories()
|
105
104
|
menu.value = true
|
106
105
|
})
|
107
106
|
|