@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,5 +1,5 @@
|
|
1
|
-
module.exports = (
|
2
|
-
const СategorySchema = new mongoose.Schema({
|
1
|
+
module.exports = (db) => {
|
2
|
+
const СategorySchema = new db.mongoose.Schema({
|
3
3
|
name: {
|
4
4
|
type: String,
|
5
5
|
required: true,
|
@@ -69,7 +69,7 @@ module.exports = (mongoose) => {
|
|
69
69
|
|
70
70
|
СategorySchema.index({ 'owner.target': 1, 'creator.target': 1});
|
71
71
|
|
72
|
-
const Сategory = mongoose.model('Сategory', СategorySchema, 'categories');
|
72
|
+
const Сategory = db.mongoose.model('Сategory', СategorySchema, 'categories');
|
73
73
|
|
74
74
|
return Сategory;
|
75
75
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
module.exports = (
|
2
|
-
const ProductSchema = new mongoose.Schema({
|
1
|
+
module.exports = (db) => {
|
2
|
+
const ProductSchema = new db.mongoose.Schema({
|
3
3
|
status: {type: String},
|
4
4
|
name: {type: String},
|
5
5
|
category: {type: Array},
|
@@ -19,7 +19,7 @@ module.exports = (mongoose) => {
|
|
19
19
|
prices: { type: Array},
|
20
20
|
//
|
21
21
|
variants: [{
|
22
|
-
_id: { type: mongoose.Schema.Types.ObjectId, auto: true },
|
22
|
+
_id: { type: db.mongoose.Schema.Types.ObjectId, auto: true },
|
23
23
|
name: { type: String },
|
24
24
|
price:{ type: Number },
|
25
25
|
options: [{
|
@@ -30,7 +30,7 @@ module.exports = (mongoose) => {
|
|
30
30
|
}],
|
31
31
|
ingredients: [{
|
32
32
|
_id: {
|
33
|
-
type: mongoose.Schema.Types.ObjectId,
|
33
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
34
34
|
ref: 'Product',
|
35
35
|
},
|
36
36
|
price: {
|
@@ -65,11 +65,11 @@ module.exports = (mongoose) => {
|
|
65
65
|
}],
|
66
66
|
// Refactor
|
67
67
|
owner: {
|
68
|
-
type: mongoose.Schema.Types.ObjectId,
|
68
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
69
69
|
ref: 'User',
|
70
70
|
},
|
71
71
|
organization: {
|
72
|
-
type: mongoose.Schema.Types.ObjectId,
|
72
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
73
73
|
ref: 'Organization',
|
74
74
|
},
|
75
75
|
}, {
|
@@ -83,7 +83,7 @@ module.exports = (mongoose) => {
|
|
83
83
|
ProductSchema.index({ price: 1 }); // Создаем индекс
|
84
84
|
|
85
85
|
|
86
|
-
const Product = mongoose.model('Product', ProductSchema);
|
86
|
+
const Product = db.mongoose.model('Product', ProductSchema);
|
87
87
|
|
88
88
|
return Product;
|
89
89
|
}
|
@@ -1,47 +1,116 @@
|
|
1
|
-
//
|
2
|
-
|
1
|
+
// Router
|
2
|
+
import { createProductRoutes } from './router/products.router';
|
3
|
+
import routerMarketplace from './router/marketplace.router.js';
|
4
|
+
|
5
|
+
//Store
|
6
|
+
import * as storeCategories from './store/categories.js';
|
7
|
+
import * as storeLeftovers from './store/leftovers.js';
|
8
|
+
import * as storeProducts from './store/products.js';
|
9
|
+
import * as storeMarketplace from './store/marketplace.js';
|
10
|
+
|
11
|
+
// Layouts
|
12
|
+
import Marketplace from './components/layouts/Marketplace.vue';
|
13
|
+
|
14
|
+
// Blocks
|
3
15
|
import ImagesThumbnails from './components/blocks/ImagesThumbnails.vue';
|
4
16
|
import LeftoverPositions from './components/blocks/LeftoverPositions.vue';
|
5
17
|
import ListPositions from './components/blocks/ListPositions.vue';
|
6
|
-
|
7
18
|
import CardCategory from './components/blocks/CardCategory.vue';
|
8
19
|
import CardProduct from './components/blocks/CardProduct.vue';
|
9
20
|
import CardLeftover from './components/blocks/CardLeftover.vue';
|
10
|
-
|
11
21
|
import Images360 from './components/blocks/Images360.vue';
|
12
22
|
import CardPosition from './components/blocks/CardPosition.vue';
|
13
23
|
|
24
|
+
// Sections
|
14
25
|
import SectionProduct from './components/sections/SectionProduct.vue';
|
15
|
-
// import ProductInformationSection from './components/sections/ProductInformationSection.vue';
|
16
26
|
import HeroRecommendation from './components/sections/HeroRecommendation.vue';
|
17
27
|
import FilterProducts from './components/sections/FilterProducts.vue';
|
18
|
-
|
28
|
+
import MenuSection from './components/sections/MenuSection.vue';
|
19
29
|
import EditModifications from './components/sections/EditModifications.vue';
|
20
30
|
import PopularProducts from './components/sections/PopularProducts.vue';
|
21
31
|
import EditProductInfo from './components/sections/EditProductInfo.vue';
|
32
|
+
import Filters from './components/sections/Filters.vue';
|
22
33
|
|
34
|
+
// Elements
|
23
35
|
import Price from './components/elements/Price.vue';
|
24
36
|
import THC from './components/elements/THC.vue';
|
25
37
|
|
38
|
+
// Pages
|
26
39
|
import Product from './components/pages/Product.vue';
|
27
|
-
|
28
40
|
import ProductEdit from './components/pages/ProductEdit.vue';
|
29
41
|
import EditLeftover from './components/pages/EditLeftover.vue';
|
30
|
-
import ProductRecommendation from './components/pages/ProductRecommmendation.vue';
|
42
|
+
import ProductRecommendation from './components/pages/ProductRecommmendation.vue';
|
31
43
|
import Products from './components/pages/Products.vue';
|
32
44
|
import Leftovers from './components/pages/Leftovers.vue';
|
45
|
+
import Catalog from './components/pages/Catalog.vue';
|
46
|
+
|
47
|
+
// Пример функции инициализации для модуля продуктов
|
48
|
+
function initializeProducts(app, store, router, options = {}) {
|
49
|
+
const route = options.route || 'Home';
|
33
50
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
import * as productsStore from './store/products.js';
|
51
|
+
const routesProducts = createProductRoutes();
|
52
|
+
|
53
|
+
router.addRoute(route, routesProducts);
|
38
54
|
|
39
|
-
|
40
|
-
|
55
|
+
router.addRoute(route, routerMarketplace);
|
56
|
+
|
57
|
+
store.addStore('categories', storeCategories);
|
58
|
+
store.addStore('leftovers', storeLeftovers);
|
59
|
+
store.addStore('products', storeProducts);
|
60
|
+
store.addStore('marketplace', storeMarketplace);
|
61
|
+
}
|
62
|
+
|
63
|
+
const ModuleProducts = {
|
64
|
+
initialize: initializeProducts,
|
65
|
+
views: {
|
66
|
+
store: {
|
67
|
+
storeCategories,
|
68
|
+
storeLeftovers,
|
69
|
+
storeProducts,
|
70
|
+
storeMarketplace,
|
71
|
+
routerMarketplace
|
72
|
+
},
|
73
|
+
router: {
|
74
|
+
createProductRoutes
|
75
|
+
},
|
76
|
+
components: {
|
77
|
+
// Elements
|
78
|
+
Price,
|
79
|
+
THC,
|
80
|
+
// Blocks
|
81
|
+
ImagesThumbnails,
|
82
|
+
LeftoverPositions,
|
83
|
+
ListPositions,
|
84
|
+
CardCategory,
|
85
|
+
CardProduct,
|
86
|
+
CardLeftover,
|
87
|
+
Images360,
|
88
|
+
CardPosition,
|
89
|
+
// Sections
|
90
|
+
SectionProduct,
|
91
|
+
HeroRecommendation,
|
92
|
+
FilterProducts,
|
93
|
+
MenuSection,
|
94
|
+
EditModifications,
|
95
|
+
PopularProducts,
|
96
|
+
EditProductInfo,
|
97
|
+
Filters,
|
98
|
+
// Pages
|
99
|
+
Product,
|
100
|
+
ProductEdit,
|
101
|
+
EditLeftover,
|
102
|
+
ProductRecommendation,
|
103
|
+
Products,
|
104
|
+
Leftovers,
|
105
|
+
Catalog,
|
106
|
+
// Layouts
|
107
|
+
Marketplace
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
41
111
|
|
42
|
-
// Экспортирование компонентов, модулей хранилища и маршрутов
|
43
112
|
export {
|
44
|
-
//
|
113
|
+
// Blocks
|
45
114
|
ImagesThumbnails,
|
46
115
|
LeftoverPositions,
|
47
116
|
ListPositions,
|
@@ -50,29 +119,28 @@ export {
|
|
50
119
|
CardLeftover,
|
51
120
|
Images360,
|
52
121
|
CardPosition,
|
53
|
-
|
122
|
+
// Sections
|
54
123
|
SectionProduct,
|
55
|
-
// ProductInformationSection,
|
56
124
|
HeroRecommendation,
|
57
125
|
FilterProducts,
|
58
|
-
|
126
|
+
MenuSection,
|
59
127
|
EditModifications,
|
60
128
|
PopularProducts,
|
61
129
|
EditProductInfo,
|
62
|
-
|
130
|
+
Filters,
|
131
|
+
// Elements
|
63
132
|
Price,
|
64
133
|
THC,
|
65
|
-
|
134
|
+
// Pages
|
66
135
|
Product,
|
67
136
|
ProductEdit,
|
68
137
|
EditLeftover,
|
69
138
|
ProductRecommendation,
|
70
139
|
Products,
|
71
140
|
Leftovers,
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
productsStore,
|
76
|
-
|
77
|
-
// productsRoutes
|
141
|
+
Catalog,
|
142
|
+
// Layouts
|
143
|
+
Marketplace
|
78
144
|
};
|
145
|
+
|
146
|
+
export default ModuleProducts;
|
@@ -1,17 +1,48 @@
|
|
1
|
-
//
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
// Routes
|
6
|
-
import productsRoutes from './routes/products.routes.js'
|
7
|
-
import categoriesRoutes from './routes/categories.routes.js'
|
8
|
-
import leftoversRoutes from './routes/leftovers.routes.js'
|
1
|
+
// Импортируем модели
|
2
|
+
const ProductModel = require('./models/product.model.js');
|
3
|
+
const CategoryModel = require('./models/category.model.js');
|
4
|
+
const LeftoverModel = require('./models/leftover.model.js');
|
9
5
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
6
|
+
// Импортируем роуты
|
7
|
+
const productsRoutes = require('./routes/products.routes.js');
|
8
|
+
const categoriesRoutes = require('./routes/categories.routes.js');
|
9
|
+
const leftoversRoutes = require('./routes/leftovers.routes.js');
|
10
|
+
|
11
|
+
// Импортируем контроллеры (предполагаем, что они существуют или будут созданы)
|
12
|
+
const ProductController = require('./controllers/products.controller.js');
|
13
|
+
const CategoryController = require('./controllers/categories.controller.js');
|
14
|
+
const LeftoverController = require('./controllers/leftovers.controller.js');
|
15
|
+
|
16
|
+
function initializeProduct(app, db, origins, publicPath) {
|
17
|
+
// Настраиваем модели в объекте базы данных
|
18
|
+
db.product = ProductModel(db);
|
19
|
+
db.category = CategoryModel(db);
|
20
|
+
db.leftover = LeftoverModel(db);
|
21
|
+
|
22
|
+
// Настраиваем маршруты, если объект приложения передан
|
23
|
+
if (app) {
|
24
|
+
productsRoutes(app, db, origins, publicPath);
|
25
|
+
categoriesRoutes(app, db, origins, publicPath);
|
26
|
+
leftoversRoutes(app, db, origins, publicPath);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
// Экспортируем функцию инициализации, контроллеры, роуты и модели
|
31
|
+
module.exports = {
|
32
|
+
initialize: initializeProduct,
|
33
|
+
models: {
|
34
|
+
ProductModel,
|
35
|
+
CategoryModel,
|
36
|
+
LeftoverModel,
|
37
|
+
},
|
38
|
+
routes: {
|
39
|
+
productsRoutes,
|
40
|
+
categoriesRoutes,
|
41
|
+
leftoversRoutes,
|
42
|
+
},
|
43
|
+
controllers: {
|
44
|
+
ProductController,
|
45
|
+
CategoryController,
|
46
|
+
LeftoverController,
|
47
|
+
}
|
48
|
+
};
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue'
|
2
|
+
import layoutMarketplace from '../components/layouts/Marketplace.vue'
|
3
|
+
|
4
|
+
const marketplace = {
|
5
|
+
path: 'marketplace',
|
6
|
+
component: layoutMarketplace,
|
7
|
+
name: 'Marketplace',
|
8
|
+
meta: {
|
9
|
+
title: {
|
10
|
+
en: 'Marketplace',
|
11
|
+
ru: 'Маркетплейс'
|
12
|
+
}
|
13
|
+
},
|
14
|
+
children: [
|
15
|
+
{
|
16
|
+
path: ':country?',
|
17
|
+
component: () => import(/* webpackChunkName: 'Deliveries' */ '../components/pages/Catalog.vue'),
|
18
|
+
children: [
|
19
|
+
{
|
20
|
+
path: ':state?',
|
21
|
+
name: 'State',
|
22
|
+
component: () => import(/* webpackChunkName: 'Deliveries' */ '../components/pages/Catalog.vue'),
|
23
|
+
children: [
|
24
|
+
{
|
25
|
+
path: ':city?',
|
26
|
+
name: 'City',
|
27
|
+
component: () => import(/* webpackChunkName: 'Deliveries' */ '../components/pages/Catalog.vue'),
|
28
|
+
}
|
29
|
+
]
|
30
|
+
}
|
31
|
+
]
|
32
|
+
},
|
33
|
+
],
|
34
|
+
}
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
export default marketplace;
|
@@ -1,35 +1,75 @@
|
|
1
1
|
import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
name: 'Products',
|
6
|
-
meta: {
|
7
|
-
title: {
|
8
|
-
en: 'Products',
|
9
|
-
ru: 'Товары'
|
10
|
-
},
|
11
|
-
authorize: []
|
12
|
-
},
|
13
|
-
component: () => import(/* webpackChunkName: 'Products' */ '@pf/src/modules/products/components/pages/Products.vue'),
|
14
|
-
},{
|
15
|
-
path: 'products/add',
|
16
|
-
name: 'ProductAdd',
|
17
|
-
component: () => import('@pf/src/modules/products/components/pages/ProductEdit.vue')
|
18
|
-
},{
|
19
|
-
path: 'products/:product',
|
20
|
-
name: 'Product Organization',
|
21
|
-
meta: {
|
22
|
-
title: {
|
23
|
-
en: 'Product',
|
24
|
-
ru: 'Продукт'
|
25
|
-
}
|
26
|
-
},
|
27
|
-
component: () => import('@pf/src/modules/products/components/pages/Product.vue')
|
28
|
-
}, {
|
29
|
-
path: 'products/:product/edit',
|
30
|
-
name: 'ProductEdit',
|
31
|
-
beforeEnter: [validationAuth.requiresAuth],
|
32
|
-
component: () => import('@pf/src/modules/products/components/pages/ProductEdit.vue')
|
33
|
-
}];
|
3
|
+
export function createProductRoutes(prefix = '', options = {}) {
|
4
|
+
const nameWithPrefix = (name) => prefix ? `${prefix}${name}` : name;
|
34
5
|
|
35
|
-
|
6
|
+
const routes = {
|
7
|
+
path: options.basePath || 'products',
|
8
|
+
children: [
|
9
|
+
{
|
10
|
+
path: '',
|
11
|
+
name: nameWithPrefix('Products'),
|
12
|
+
meta: {
|
13
|
+
title: {
|
14
|
+
en: 'Products',
|
15
|
+
ru: 'Товары'
|
16
|
+
},
|
17
|
+
authorize: options.productsAuthorize || []
|
18
|
+
},
|
19
|
+
component: () => import(/* webpackChunkName: 'Products' */ '@pf/src/modules/products/components/pages/Products.vue'),
|
20
|
+
},
|
21
|
+
{
|
22
|
+
path: 'add',
|
23
|
+
name: nameWithPrefix('ProductAdd'),
|
24
|
+
meta: {
|
25
|
+
title: {
|
26
|
+
en: 'Add Product',
|
27
|
+
ru: 'Добавить товар'
|
28
|
+
},
|
29
|
+
authorize: options.addProductAuthorize || []
|
30
|
+
},
|
31
|
+
component: () => import('@pf/src/modules/products/components/pages/ProductEdit.vue')
|
32
|
+
},
|
33
|
+
{
|
34
|
+
path: ':product',
|
35
|
+
name: nameWithPrefix('Product'),
|
36
|
+
meta: {
|
37
|
+
title: {
|
38
|
+
en: 'Product',
|
39
|
+
ru: 'Продукт'
|
40
|
+
}
|
41
|
+
},
|
42
|
+
component: () => import('@pf/src/modules/products/components/pages/Product.vue')
|
43
|
+
},
|
44
|
+
{
|
45
|
+
path: ':product/edit',
|
46
|
+
name: nameWithPrefix('ProductEdit'),
|
47
|
+
meta: {
|
48
|
+
title: {
|
49
|
+
en: 'Edit Product',
|
50
|
+
ru: 'Редактировать продукт'
|
51
|
+
},
|
52
|
+
authorize: options.editProductAuthorize || []
|
53
|
+
},
|
54
|
+
beforeEnter: [validationAuth.requiresAuth],
|
55
|
+
component: () => import('@pf/src/modules/products/components/pages/ProductEdit.vue')
|
56
|
+
},
|
57
|
+
{
|
58
|
+
path: 'recommendation',
|
59
|
+
name: nameWithPrefix('ProductRecommmendation'),
|
60
|
+
meta: {
|
61
|
+
title: {
|
62
|
+
en: 'Product Recommmendation',
|
63
|
+
ru: 'Рекомендации продукта'
|
64
|
+
},
|
65
|
+
header_theme: 'dark',
|
66
|
+
footer_theme: 'dark',
|
67
|
+
},
|
68
|
+
component: () => import(/* webpackChunkName: 'Product Recommmendation' */ '@pf/src/modules/products/components/pages/ProductRecommmendation.vue'),
|
69
|
+
props: route => ({ mood: route.query.mood })
|
70
|
+
}
|
71
|
+
]
|
72
|
+
};
|
73
|
+
|
74
|
+
return routes;
|
75
|
+
}
|
@@ -61,7 +61,7 @@
|
|
61
61
|
|
62
62
|
import * as globals from '@pf/src/modules/globals/views/store/globals';
|
63
63
|
import * as categories from '@pf/src/modules/products/store/categories';
|
64
|
-
import * as marketplace from '@pf/src/modules/
|
64
|
+
import * as marketplace from '@pf/src/modules/products/store/marketplace';
|
65
65
|
|
66
66
|
// Accessing router and store
|
67
67
|
const route = useRoute()
|
@@ -25,7 +25,7 @@ import Button from '@pf/src/components/Button/Button.vue'
|
|
25
25
|
import { state, actions } from '@pf/src/modules/organizations/store/organizations'
|
26
26
|
|
27
27
|
import * as globals from '@pf/src/modules/globals/views/store/globals';
|
28
|
-
import * as marketplace from '@pf/src/modules/
|
28
|
+
import * as marketplace from '@pf/src/modules/products/store/marketplace';
|
29
29
|
|
30
30
|
const router = useRouter();
|
31
31
|
const route = useRoute();
|
@@ -92,7 +92,7 @@ import Map from '@pf/src/components/Map/Map.vue';
|
|
92
92
|
|
93
93
|
|
94
94
|
import SpotSub from '@pf/src/modules/spots/components/blocks/SpotSub.vue';
|
95
|
-
import User from '@pf/src/modules/
|
95
|
+
import User from '@pf/src/modules/auth/views/components/blocks/CardUser.vue';
|
96
96
|
|
97
97
|
const props = defineProps({
|
98
98
|
spot: Object,
|
@@ -1,51 +0,0 @@
|
|
1
|
-
// import layoutAdmin from '/src/components/layout/admin.vue'
|
2
|
-
|
3
|
-
// const admin = [
|
4
|
-
// {
|
5
|
-
// path: 'admin',
|
6
|
-
// component: layoutAdmin,
|
7
|
-
// meta: { authorize: ["ROLE_MODERATOR"] },
|
8
|
-
// children: [{
|
9
|
-
// path: 'backcalls',
|
10
|
-
// name: 'Backcalls',
|
11
|
-
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
12
|
-
// component: () => import(/* webpackChunkName: 'Backcalls' */ '@/components/pages/admin/Backcalls.vue')
|
13
|
-
// },{
|
14
|
-
// path: 'fastorder',
|
15
|
-
// name: 'FastOrders',
|
16
|
-
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
17
|
-
// component: () => import(/* webpackChunkName: 'FastOrders' */ '@/components/pages/admin/FastOrders.vue')
|
18
|
-
// },{
|
19
|
-
// path: 'users',
|
20
|
-
// name: 'Users',
|
21
|
-
// component: () => import(/* webpackChunkName: 'Users' */ '@/components/pages/admin/Users.vue')
|
22
|
-
// },{
|
23
|
-
// path: 'users/:phone',
|
24
|
-
// name: 'User',
|
25
|
-
// component: () => import(/* webpackChunkName: 'User' */ '@/components/pages/admin/User.vue')
|
26
|
-
// }]
|
27
|
-
// }
|
28
|
-
// ];
|
29
|
-
|
30
|
-
// export default admin;
|
31
|
-
|
32
|
-
import layoutBackoffice from '../components/layouts/Backoffice.vue'
|
33
|
-
|
34
|
-
const backofficeRoutes = [{
|
35
|
-
path: 'backoffice',
|
36
|
-
component: layoutBackoffice,
|
37
|
-
children: [{
|
38
|
-
path: ':_id',
|
39
|
-
name: 'Backoffice',
|
40
|
-
meta: {
|
41
|
-
title: {
|
42
|
-
en: 'Backoffice',
|
43
|
-
ru: 'Управление'
|
44
|
-
},
|
45
|
-
authorize: []
|
46
|
-
},
|
47
|
-
component: () => import(/* webpackChunkName: 'BackofficeGallery' */ '@pf/src/modules/gallery/components/sections/BackofficeGallery.vue'),
|
48
|
-
}]
|
49
|
-
}];
|
50
|
-
|
51
|
-
export default backofficeRoutes;
|