@ozdao/prometheus-framework 0.2.252 → 0.2.254
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/chats.server.js +110 -0
- package/dist/chats.server.mjs +111 -0
- 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/files.server.js +12 -3
- package/dist/files.server.mjs +12 -3
- 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/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/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/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/chats/chats.client.cjs +31 -0
- package/dist/prometheus-framework/src/modules/chats/chats.client.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/chats/chats.client.js +31 -0
- package/dist/prometheus-framework/src/modules/chats/chats.client.js.map +1 -0
- 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/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/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/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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +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/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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/sections/MembersAdd.vue.cjs +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
- 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 +500 -500
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +500 -500
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs +179 -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 +179 -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 +64 -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 +64 -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/ProductRecommmendation.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -2
- 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/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/PopularProducts.vue.cjs +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +72 -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 -49
- 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/reports.client.cjs +21 -2
- package/dist/prometheus-framework/src/modules/reports/reports.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/reports.client.js +20 -1
- package/dist/prometheus-framework/src/modules/reports/reports.client.js.map +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 +2 -2
- 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 +2 -2
- 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/reports.server.js +21 -8
- package/dist/reports.server.mjs +21 -8
- package/package.json +9 -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/chats/chats.client.js +48 -0
- package/src/modules/chats/chats.server.js +32 -0
- 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/files/files.server.js +17 -7
- 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/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/{marketplace → products}/components/layouts/Marketplace.vue +20 -19
- package/src/modules/{marketplace → products}/components/pages/Catalog.vue +5 -5
- 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/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 +93 -25
- 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/reports/models/report.model.js +4 -4
- package/src/modules/reports/reports.client.js +35 -14
- package/src/modules/reports/reports.server.js +27 -8
- 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 -54
- 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,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;
|
@@ -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,16 @@
|
|
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 globals from '@pf/src/modules/globals/views/store/globals'
|
52
|
+
import * as categories from '@pf/src/modules/products/store/categories';
|
53
|
+
|
52
54
|
// Accessing router and store
|
53
|
-
const store = useStore()
|
54
55
|
const route = useRoute()
|
55
56
|
const router = useRouter()
|
56
57
|
|
@@ -90,27 +91,27 @@
|
|
90
91
|
if (route.query) {
|
91
92
|
const query = route.query;
|
92
93
|
|
93
|
-
|
94
|
-
|
95
|
-
|
94
|
+
marketplace.state.filter.selected.categories = query.categories ? query.categories.split(',') : [];
|
95
|
+
marketplace.state.filter.selected.prices = query.prices ? query.prices.split(',') : [];
|
96
|
+
marketplace.state.filter.selected.delivery = query.delivery ? query.delivery.split(',') : [];
|
96
97
|
}
|
97
98
|
|
98
|
-
if (route.query.sortParam)
|
99
|
-
if (route.query.sortOrder)
|
99
|
+
if (route.query.sortParam) marketplace.state.sort.param = route.query.sortParam
|
100
|
+
if (route.query.sortOrder) marketplace.state.sort.order = route.query.sortOrder
|
100
101
|
|
101
102
|
onMounted(async () => {
|
102
103
|
let options = {
|
103
104
|
status: 'published'
|
104
105
|
}
|
105
106
|
|
106
|
-
let categoriesFilter = await
|
107
|
+
let categoriesFilter = await categories.actions.fetchCategories(options);
|
107
108
|
|
108
109
|
categoriesFilter = categoriesFilter.map(category => ({
|
109
110
|
value: category.url,
|
110
111
|
label: category.name
|
111
112
|
}));
|
112
113
|
|
113
|
-
const index =
|
114
|
+
const index = marketplace.state.filter.options.findIndex(option => option.value === 'categories');
|
114
115
|
|
115
116
|
const categoryOption = {
|
116
117
|
title: 'Categories',
|
@@ -119,13 +120,13 @@
|
|
119
120
|
};
|
120
121
|
|
121
122
|
if (index !== -1) {
|
122
|
-
|
123
|
+
marketplace.state.filter.options[index] = categoryOption;
|
123
124
|
} else {
|
124
|
-
|
125
|
+
marketplace.state.filter.options.unshift(categoryOption);
|
125
126
|
}
|
126
127
|
})
|
127
128
|
|
128
|
-
watch(() =>
|
129
|
+
watch(() => marketplace.state.sort, (newSortValue, oldSortValue) => {
|
129
130
|
let query = { ...route.query}
|
130
131
|
|
131
132
|
query.sortParam = newSortValue.param
|
@@ -136,7 +137,7 @@
|
|
136
137
|
}, { deep: true });
|
137
138
|
|
138
139
|
|
139
|
-
watch(() =>
|
140
|
+
watch(() => marketplace.state.filter.selected, (newFilterValue, oldFilterValue) => {
|
140
141
|
// Переводим фильтр в формат query
|
141
142
|
const query = { ...route.query };
|
142
143
|
|
@@ -161,7 +162,7 @@
|
|
161
162
|
router.replace({ query });
|
162
163
|
}, { deep: true })
|
163
164
|
|
164
|
-
watch(() =>
|
165
|
+
watch(() => globals.state.position, (newPosition) => {
|
165
166
|
// get the current route
|
166
167
|
const currentRoute = { ...router.currentRoute.value };
|
167
168
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<template>
|
2
2
|
<Feed
|
3
|
-
v-model:sort="
|
4
|
-
v-model:filter="
|
3
|
+
v-model:sort="marketplace.state.sort"
|
4
|
+
v-model:filter="marketplace.state.filter"
|
5
5
|
:search="true"
|
6
6
|
:showLoadMore="false"
|
7
7
|
:states="{
|
@@ -20,7 +20,7 @@
|
|
20
20
|
categories: route.query.categories,
|
21
21
|
prices: route.query.prices,
|
22
22
|
delivery: route.query.delivery,
|
23
|
-
location:
|
23
|
+
location: globals.state.position?.location,
|
24
24
|
contain: ['products'],
|
25
25
|
}"
|
26
26
|
v-slot="{
|
@@ -43,16 +43,16 @@
|
|
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'
|
48
|
+
import * as marketplace from '@pf/src/modules/products/store/marketplace';
|
49
|
+
import * as globals from '@pf/src/modules/globals/views/store/globals'
|
49
50
|
|
50
51
|
import Feed from '@pf/src/components/Feed/Feed.vue'
|
51
52
|
|
52
53
|
import CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'
|
53
54
|
|
54
55
|
const route = useRoute()
|
55
|
-
const store = useStore()
|
56
56
|
</script>
|
57
57
|
|
58
58
|
<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
|
@@ -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
|
}
|