@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,8 +1,8 @@
|
|
1
|
-
module.exports = (
|
1
|
+
module.exports = (db) => {
|
2
2
|
|
3
|
-
const ReactionSchema = new mongoose.Schema({
|
3
|
+
const ReactionSchema = new db.mongoose.Schema({
|
4
4
|
user: {
|
5
|
-
type: mongoose.Schema.Types.ObjectId,
|
5
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
6
6
|
ref: function (value) {
|
7
7
|
if (this.owner.type === 'user') return 'User';
|
8
8
|
if (this.owner.type === 'organization') return 'Organization';
|
@@ -16,7 +16,7 @@ module.exports = (mongoose) => {
|
|
16
16
|
required: true,
|
17
17
|
},
|
18
18
|
target: {
|
19
|
-
type: mongoose.Schema.Types.ObjectId,
|
19
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
20
20
|
ref: function (value) {
|
21
21
|
if (this.owner.type === 'event') return 'Event';
|
22
22
|
if (this.owner.type === 'comment') return 'Comment';
|
@@ -42,7 +42,7 @@ module.exports = (mongoose) => {
|
|
42
42
|
},{
|
43
43
|
strict: false
|
44
44
|
});
|
45
|
-
const Reaction = mongoose.model("Reaction", ReactionSchema);
|
45
|
+
const Reaction = db.mongoose.model("Reaction", ReactionSchema);
|
46
46
|
|
47
47
|
return Reaction;
|
48
48
|
}
|
@@ -1,73 +1,71 @@
|
|
1
1
|
import layoutCommunity from '../components/layouts/Community.vue'
|
2
|
+
|
2
3
|
import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
|
3
4
|
import * as validationOwnership from '@pf/src/modules/auth/views/middlewares/ownership.validation';
|
4
5
|
|
6
|
+
const community = {
|
7
|
+
path: 'community',
|
8
|
+
component: layoutCommunity,
|
9
|
+
meta: {
|
10
|
+
title: {
|
11
|
+
en: 'Community',
|
12
|
+
ru: 'Коммьюнити'
|
13
|
+
},
|
14
|
+
breadcrumbs: {
|
15
|
+
hidden: true
|
16
|
+
},
|
17
|
+
title_hide: true
|
5
18
|
|
6
|
-
|
7
|
-
{
|
8
|
-
path: '
|
9
|
-
|
19
|
+
},
|
20
|
+
children: [{
|
21
|
+
path: ':category?',
|
22
|
+
name: 'Blog',
|
10
23
|
meta: {
|
11
24
|
title: {
|
12
25
|
en: 'Community',
|
13
26
|
ru: 'Коммьюнити'
|
14
27
|
},
|
15
|
-
breadcrumbs: {
|
16
|
-
hidden: true
|
17
|
-
},
|
18
28
|
title_hide: true
|
19
|
-
|
20
29
|
},
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
title_hide: true
|
30
|
-
},
|
31
|
-
component: () => import(/* webpackChunkName: 'Blog' */ '../components/pages/Blog.vue')
|
32
|
-
},{
|
33
|
-
path: 'posts/create',
|
34
|
-
name: 'Create BlogPost',
|
35
|
-
meta: {
|
36
|
-
title: {
|
37
|
-
en: 'Create Post',
|
38
|
-
ru: 'Создать Пост'
|
39
|
-
},
|
40
|
-
},
|
41
|
-
// beforeEnter: [
|
42
|
-
// validationAuth.requiresAuth,
|
43
|
-
// ],
|
44
|
-
component: () => import(/* webpackChunkName: 'CreateBlogPost' */ '../components/pages/CreateBlogPost.vue')
|
45
|
-
},{
|
46
|
-
path: 'posts/:url',
|
47
|
-
name: 'BlogPost',
|
48
|
-
meta: {
|
49
|
-
title: {
|
50
|
-
en: 'Post',
|
51
|
-
ru: 'Пост'
|
52
|
-
}
|
30
|
+
component: () => import(/* webpackChunkName: 'Blog' */ '../components/pages/Blog.vue')
|
31
|
+
},{
|
32
|
+
path: 'posts/create',
|
33
|
+
name: 'Create BlogPost',
|
34
|
+
meta: {
|
35
|
+
title: {
|
36
|
+
en: 'Create Post',
|
37
|
+
ru: 'Создать Пост'
|
53
38
|
},
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
39
|
+
},
|
40
|
+
// beforeEnter: [
|
41
|
+
// validationAuth.requiresAuth,
|
42
|
+
// ],
|
43
|
+
component: () => import(/* webpackChunkName: 'CreateBlogPost' */ '../components/pages/CreateBlogPost.vue')
|
44
|
+
},{
|
45
|
+
path: 'posts/:url',
|
46
|
+
name: 'BlogPost',
|
47
|
+
meta: {
|
48
|
+
title: {
|
49
|
+
en: 'Post',
|
50
|
+
ru: 'Пост'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
component: () => import(/* webpackChunkName: 'BlogPost' */ '../components/pages/BlogPost.vue')
|
54
|
+
},{
|
55
|
+
path: 'posts/:url/edit',
|
56
|
+
name: 'Edit BlogPost',
|
57
|
+
meta: {
|
58
|
+
title: {
|
59
|
+
en: 'Edit Post',
|
60
|
+
ru: 'Редактировать пост'
|
63
61
|
},
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
}
|
71
|
-
|
62
|
+
},
|
63
|
+
beforeEnter: [
|
64
|
+
validationAuth.requiresAuth,
|
65
|
+
validationOwnership.requiresEditAccess
|
66
|
+
],
|
67
|
+
component: () => import(/* webpackChunkName: 'CreateBlogPost' */ '../components/pages/CreateBlogPost.vue')
|
68
|
+
}]
|
69
|
+
}
|
72
70
|
|
73
71
|
export default community;
|
@@ -1,19 +1,40 @@
|
|
1
|
-
//
|
2
|
-
|
1
|
+
// Импортируем контроллеры
|
2
|
+
const EventsController = require('./controllers/events.controller.js');
|
3
|
+
const TicketsController = require('./controllers/tickets.controller.js');
|
3
4
|
|
4
|
-
//
|
5
|
-
|
6
|
-
|
5
|
+
// Импортируем роуты
|
6
|
+
const eventsRoutes = require('./routes/events.routes.js');
|
7
|
+
const ticketsRoutes = require('./routes/tickets.routes.js');
|
7
8
|
|
8
|
-
//
|
9
|
-
|
10
|
-
|
9
|
+
// Импортируем модели
|
10
|
+
const EventModel = require('./models/event.model.js');
|
11
|
+
const TicketModel = require('./models/ticket.model.js');
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
function initializeEvent(app, db, origins, publicPath) {
|
14
|
+
// Настраиваем модели в объекте базы данных
|
15
|
+
db.event = EventModel(db);
|
16
|
+
db.ticket = TicketModel(db);
|
17
|
+
|
18
|
+
// Настраиваем маршруты, если объект приложения передан
|
19
|
+
if (app) {
|
20
|
+
eventsRoutes(app, db, origins, publicPath);
|
21
|
+
ticketsRoutes(app, db, origins, publicPath);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
// Экспортируем функцию инициализации, контроллеры, роуты и модели
|
26
|
+
module.exports = {
|
27
|
+
initialize: initializeEvent,
|
28
|
+
models: {
|
29
|
+
EventModel,
|
30
|
+
TicketModel,
|
31
|
+
},
|
32
|
+
routes: {
|
33
|
+
eventsRoutes,
|
34
|
+
ticketsRoutes,
|
35
|
+
},
|
36
|
+
controllers: {
|
37
|
+
EventsController,
|
38
|
+
TicketsController,
|
39
|
+
}
|
40
|
+
};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module.exports = (
|
2
|
-
const TicketSchema = new mongoose.Schema({
|
1
|
+
module.exports = (db) => {
|
2
|
+
const TicketSchema = new db.mongoose.Schema({
|
3
3
|
client: {
|
4
|
-
type: mongoose.Schema.Types.ObjectId,
|
4
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
5
5
|
ref: 'Client',
|
6
6
|
},
|
7
7
|
client_refactor: {
|
@@ -13,7 +13,7 @@ module.exports = (mongoose) => {
|
|
13
13
|
},
|
14
14
|
},
|
15
15
|
user: {
|
16
|
-
type: mongoose.Schema.Types.ObjectId,
|
16
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
17
17
|
ref: 'User',
|
18
18
|
},
|
19
19
|
type: {
|
@@ -23,7 +23,7 @@ module.exports = (mongoose) => {
|
|
23
23
|
required: true,
|
24
24
|
},
|
25
25
|
target: {
|
26
|
-
type: mongoose.Schema.Types.ObjectId,
|
26
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
27
27
|
ref: function (value) {
|
28
28
|
if (this.type === 'event') return 'Event';
|
29
29
|
if (this.type === 'parking') return 'Parking';
|
@@ -53,7 +53,7 @@ module.exports = (mongoose) => {
|
|
53
53
|
|
54
54
|
TicketSchema.index({ user: 1, type: 1, target: 1 });
|
55
55
|
|
56
|
-
const Ticket = mongoose.model('Ticket', TicketSchema);
|
56
|
+
const Ticket = db.mongoose.model('Ticket', TicketSchema);
|
57
57
|
|
58
58
|
return Ticket;
|
59
59
|
}
|
@@ -2,12 +2,22 @@
|
|
2
2
|
const filesController = require('./controllers/files.controller.js');
|
3
3
|
// Importing routes from the routes directory
|
4
4
|
const filesRoutes = require('./routes/files.routes.js');
|
5
|
-
// Models
|
6
|
-
// const FileModel = require('./models/file.model.js');
|
7
5
|
|
8
|
-
|
6
|
+
function initializeFiles(app, db, origins, publicPath) {
|
7
|
+
// Настраиваем маршруты, если объект приложения передан
|
8
|
+
if (app) {
|
9
|
+
filesRoutes(app, db, origins, publicPath);
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
// Экспортируем функцию инициализации, контроллеры, роуты и модели
|
9
14
|
module.exports = {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
15
|
+
initialize: initializeFiles,
|
16
|
+
|
17
|
+
routes: {
|
18
|
+
filesRoutes
|
19
|
+
},
|
20
|
+
controllers: {
|
21
|
+
filesController
|
22
|
+
}
|
23
|
+
};
|
@@ -1,10 +1,46 @@
|
|
1
|
-
|
1
|
+
// Store
|
2
|
+
import * as storeGallery from './store/gallery.js';
|
2
3
|
|
3
|
-
//
|
4
|
-
import
|
4
|
+
// Router
|
5
|
+
import routerGallery from './router/gallery.router';
|
6
|
+
// import { createGalleryBackofficeRoutes } from './router/gallery.backoffice.router';
|
5
7
|
|
6
|
-
//
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
// Views
|
9
|
+
// Pages
|
10
|
+
import Gallery from './components/pages/Gallery.vue';
|
11
|
+
|
12
|
+
// Sections
|
13
|
+
import BackofficeGallery from './components/sections/BackofficeGallery.vue';
|
14
|
+
|
15
|
+
// Пример функции инициализации для модуля галереи
|
16
|
+
function initializeGallery(app, store, router, options = {}) {
|
17
|
+
const route = options.route || 'Home';
|
18
|
+
|
19
|
+
// const routesGallery = createGalleryRoutes();
|
20
|
+
// const routesGalleryBackoffice = createGalleryBackofficeRoutes();
|
21
|
+
|
22
|
+
router.addRoute(route, routerGallery);
|
23
|
+
// router.addRoute('Backoffice', routesGalleryBackoffice);
|
24
|
+
|
25
|
+
store.addStore('gallery', storeGallery);
|
26
|
+
}
|
27
|
+
|
28
|
+
const ModuleGallery = {
|
29
|
+
initialize: initializeGallery,
|
30
|
+
views: {
|
31
|
+
store: {
|
32
|
+
storeGallery
|
33
|
+
},
|
34
|
+
router: {
|
35
|
+
routerGallery
|
36
|
+
},
|
37
|
+
components: {
|
38
|
+
// Pages
|
39
|
+
Gallery,
|
40
|
+
// Sections
|
41
|
+
BackofficeGallery
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
export default ModuleGallery;
|
@@ -1,13 +1,32 @@
|
|
1
|
-
//
|
2
|
-
const
|
3
|
-
|
1
|
+
// Импортируем контроллеры
|
2
|
+
const GalleryController = require('./controllers/gallery.controller.js');
|
3
|
+
|
4
|
+
// Импортируем роуты
|
4
5
|
const galleryRoutes = require('./routes/gallery.routes.js');
|
5
|
-
|
6
|
+
|
7
|
+
// Импортируем модели
|
6
8
|
const PhotoModel = require('./models/photo.model.js');
|
7
9
|
|
8
|
-
|
10
|
+
function initializeGallery(app, db, origins, publicPath) {
|
11
|
+
// Настраиваем модели в объекте базы данных
|
12
|
+
db.photo = PhotoModel(db);
|
13
|
+
|
14
|
+
// Настраиваем маршруты, если объект приложения передан
|
15
|
+
if (app) {
|
16
|
+
galleryRoutes(app, db, origins, publicPath);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
// Экспортируем функцию инициализации, контроллеры, роуты и модели
|
9
21
|
module.exports = {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
22
|
+
initialize: initializeGallery,
|
23
|
+
models: {
|
24
|
+
PhotoModel,
|
25
|
+
},
|
26
|
+
routes: {
|
27
|
+
galleryRoutes,
|
28
|
+
},
|
29
|
+
controllers: {
|
30
|
+
GalleryController,
|
31
|
+
}
|
32
|
+
};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
const gallery =
|
1
|
+
const gallery = {
|
2
2
|
name: 'Gallery',
|
3
3
|
path: 'gallery',
|
4
4
|
meta: {
|
5
5
|
title_hide: true
|
6
6
|
},
|
7
7
|
component: () => import(/* webpackChunkName: 'Gallery' */ '@pf/src/modules/gallery/components/pages/Gallery.vue'),
|
8
|
-
}
|
8
|
+
};
|
9
9
|
|
10
10
|
export default gallery;
|
@@ -132,7 +132,7 @@ import * as auth from '@pf/src/modules/auth/views/store/auth';
|
|
132
132
|
import * as shopcart from '@pf/src/modules/orders/store/shopcart';
|
133
133
|
import * as organizations from '@pf/src/modules/organizations/store/organizations';
|
134
134
|
import * as orders from '@pf/src/modules/orders/store/orders';
|
135
|
-
import * as users from '@pf/src/modules/
|
135
|
+
import * as users from '@pf/src/modules/auth/views/store/users';
|
136
136
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
137
137
|
// Variables and computed
|
138
138
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -206,7 +206,7 @@
|
|
206
206
|
|
207
207
|
import CardOrderItem from '@pf/src/modules/orders/components/blocks/CardOrderItem.vue'
|
208
208
|
import CardPosition from '@pf/src/modules/products/components/blocks/CardPosition.vue';
|
209
|
-
import CardUser from '@pf/src/modules/
|
209
|
+
import CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue'
|
210
210
|
|
211
211
|
import BlockSearch from '@pf/src/modules/globals/views/components/blocks/BlockSearch.vue'
|
212
212
|
|
@@ -87,11 +87,11 @@ import Button from '@pf/src/components/Button/Button.vue'
|
|
87
87
|
|
88
88
|
import BlockSearch from '@pf/src/modules/globals/views/components/blocks/BlockSearch.vue'
|
89
89
|
|
90
|
-
import CardUser from '@pf/src/modules/
|
90
|
+
import CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue'
|
91
91
|
|
92
92
|
import FormCustomerDetails from '@pf/src/modules/orders/components/sections/FormCustomerDetails.vue'
|
93
93
|
|
94
|
-
import * as users from '@pf/src/modules/
|
94
|
+
import * as users from '@pf/src/modules/auth/views/store/users';
|
95
95
|
import * as auth from '@pf/src/modules/auth/views/store/auth';
|
96
96
|
|
97
97
|
import { setError } from '@pf/src/modules/globals/views/store/globals'
|
@@ -1,6 +1,7 @@
|
|
1
1
|
// Store
|
2
2
|
import * as storeOrders from './store/orders.js';
|
3
3
|
import * as storeShopcart from './store/shopcart.js';
|
4
|
+
import * as storeTestimonials from './store/testimonials';
|
4
5
|
// Router
|
5
6
|
import routerOrders from './router/orders.router.js';
|
6
7
|
// Views
|
@@ -30,6 +31,7 @@ function initializeOrders(app, store, router, options = {}) {
|
|
30
31
|
router.addRoute(route, routerOrders);
|
31
32
|
store.addStore('orders', storeOrders);
|
32
33
|
store.addStore('shopcart', storeShopcart);
|
34
|
+
store.addStore('testimonials', storeTestimonials);
|
33
35
|
}
|
34
36
|
|
35
37
|
const ModuleOrder = {
|
@@ -37,7 +39,8 @@ const ModuleOrder = {
|
|
37
39
|
views: {
|
38
40
|
store: {
|
39
41
|
storeOrders,
|
40
|
-
storeShopcart
|
42
|
+
storeShopcart,
|
43
|
+
storeTestimonials
|
41
44
|
},
|
42
45
|
router: {
|
43
46
|
routerOrders
|
@@ -5,6 +5,7 @@ const ModelApplication = require('./models/application.model.js');
|
|
5
5
|
|
6
6
|
const RoutesOrder = require('./routes/orders.routes.js');
|
7
7
|
const RoutesApplications = require('./routes/applications.routes.js');
|
8
|
+
// require('@pf/src/modules/orders/routes/testimonials.routes')(app);
|
8
9
|
|
9
10
|
const FactoryOrder = require('./controllers/orders.controller.js');
|
10
11
|
|
@@ -53,7 +53,7 @@ import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
|
|
53
53
|
|
54
54
|
import Spoiler from '@pf/src/components/Spoiler/Spoiler.vue';
|
55
55
|
import DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';
|
56
|
-
import User from '@pf/src/modules/
|
56
|
+
import User from '@pf/src/modules/auth/views/components/blocks/CardUser.vue';
|
57
57
|
|
58
58
|
const props = defineProps({
|
59
59
|
department: Object,
|
@@ -89,7 +89,7 @@
|
|
89
89
|
<div v-if="showProducts && organization.products.length > 0" class="w-100 o-scroll radius-medium">
|
90
90
|
<div class="w-max flex-nowrap flex gap-thin">
|
91
91
|
<CardOrderItem
|
92
|
-
@click.stop="$router.push({name: '
|
92
|
+
@click.stop="$router.push({name: 'Organization_Product', params: {_id: organization._id, product: product._id}})"
|
93
93
|
v-for="product in organization.products.slice(0,5)"
|
94
94
|
:key="product._id"
|
95
95
|
:editable="false"
|
@@ -64,7 +64,7 @@ import { useRoute, useRouter } from 'vue-router';
|
|
64
64
|
|
65
65
|
import Spoiler from '@pf/src/components/Spoiler/Spoiler.vue';
|
66
66
|
import DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';
|
67
|
-
import User from '@pf/src/modules/
|
67
|
+
import User from '@pf/src/modules/auth/views/components/blocks/CardUser.vue';
|
68
68
|
import * as departments from '@pf/src/modules/organizations/store/departments';
|
69
69
|
|
70
70
|
import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
|
@@ -331,7 +331,7 @@ import IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue'
|
|
331
331
|
import EditArray from "@pf/src/modules/organizations/components/blocks/EditArray.vue";
|
332
332
|
import DepartmentSub from "@pf/src/modules/organizations/components/blocks/DepartmentSub.vue";
|
333
333
|
|
334
|
-
import CardUser from '@pf/src/modules/
|
334
|
+
import CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue'
|
335
335
|
|
336
336
|
import * as globals from "@pf/src/modules/globals/views/store/globals";
|
337
337
|
import * as departments from "@pf/src/modules/organizations/store/departments";
|
@@ -177,7 +177,7 @@ import MembersAdd from '@pf/src/modules/organizations/components/sections/Member
|
|
177
177
|
import Menu from '@pf/src/components/Menu/Menu.vue'
|
178
178
|
import MenuItem from '@pf/src/components/Menu/MenuItem.vue'
|
179
179
|
|
180
|
-
import CardUser from '@pf/src/modules/
|
180
|
+
import CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue';
|
181
181
|
import CardDepartment from '@pf/src/modules/organizations/components/blocks/CardDepartment.vue';
|
182
182
|
|
183
183
|
import IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue'
|
@@ -184,7 +184,7 @@
|
|
184
184
|
// Organizations
|
185
185
|
import DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';
|
186
186
|
import DetailsTabSection from '@pf/src/modules/organizations/components/sections/DetailsTabSection.vue'
|
187
|
-
import User from '@pf/src/modules/
|
187
|
+
import User from '@pf/src/modules/auth/views/components/blocks/CardUser.vue';
|
188
188
|
// Feeds
|
189
189
|
import FeedEvents from '@pf/src/modules/events/components/sections/Feed.vue';
|
190
190
|
// Spots
|
@@ -112,14 +112,14 @@
|
|
112
112
|
|
113
113
|
import BlockSearch from '@pf/src/modules/globals/views/components/blocks/BlockSearch.vue'
|
114
114
|
|
115
|
-
import CardUser from '@pf/src/modules/
|
115
|
+
import CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue'
|
116
116
|
|
117
117
|
import IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue';
|
118
118
|
import IconAdd from '@pf/src/modules/icons/navigation/IconAdd.vue';
|
119
119
|
// Import validation
|
120
120
|
import * as inputsValidation from '@pf/src/modules/auth/views/validations/inputs.validation'
|
121
121
|
// Store
|
122
|
-
import * as users from '@pf/src/modules/
|
122
|
+
import * as users from '@pf/src/modules/auth/views/store/users';
|
123
123
|
// Props
|
124
124
|
const props = defineProps({
|
125
125
|
organization: Object,
|
@@ -14,8 +14,6 @@ const parseCookie = require('@pf/src/modules/globals/controllers/utils/parseCook
|
|
14
14
|
const controllerFactory = (db) => {
|
15
15
|
const Organization = db.organization;
|
16
16
|
const Membership = db.membership;
|
17
|
-
const User = db.user;
|
18
|
-
const Role = db.role;
|
19
17
|
|
20
18
|
const read = async (req, res) => {
|
21
19
|
//////////////////////////////////////
|
@@ -1,14 +1,14 @@
|
|
1
1
|
const accessesSchema = require('./schemas/accesses.schema.js');
|
2
2
|
|
3
|
-
module.exports = (
|
3
|
+
module.exports = (db) => {
|
4
4
|
// Схема отдела
|
5
|
-
const departmentSchema = new mongoose.Schema({
|
5
|
+
const departmentSchema = new db.mongoose.Schema({
|
6
6
|
owner: {
|
7
|
-
type: mongoose.Schema.Types.ObjectId,
|
7
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
8
8
|
ref: 'User',
|
9
9
|
},
|
10
10
|
organization: {
|
11
|
-
type: mongoose.Schema.Types.ObjectId,
|
11
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
12
12
|
ref: 'Organization',
|
13
13
|
},
|
14
14
|
profile: {
|
@@ -37,7 +37,7 @@ module.exports = (mongoose) => {
|
|
37
37
|
members: [
|
38
38
|
{
|
39
39
|
user: {
|
40
|
-
type: mongoose.Schema.Types.ObjectId,
|
40
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
41
41
|
ref: 'User',
|
42
42
|
},
|
43
43
|
position: {
|
@@ -48,7 +48,7 @@ module.exports = (mongoose) => {
|
|
48
48
|
],
|
49
49
|
subdepartments: [
|
50
50
|
{
|
51
|
-
type: mongoose.Schema.Types.ObjectId,
|
51
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
52
52
|
ref: 'Department',
|
53
53
|
},
|
54
54
|
],
|
@@ -58,7 +58,7 @@ module.exports = (mongoose) => {
|
|
58
58
|
|
59
59
|
departmentSchema.index({ organization: 1 })
|
60
60
|
|
61
|
-
const Department = mongoose.model('Department', departmentSchema);
|
61
|
+
const Department = db.mongoose.model('Department', departmentSchema);
|
62
62
|
|
63
63
|
return Department
|
64
64
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module.exports = (
|
2
|
-
const MembershipSchema = new mongoose.Schema({
|
1
|
+
module.exports = (db) => {
|
2
|
+
const MembershipSchema = new db.mongoose.Schema({
|
3
3
|
user: {
|
4
|
-
type: mongoose.Schema.Types.ObjectId,
|
4
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
5
5
|
ref: 'User',
|
6
6
|
required: true,
|
7
7
|
},
|
@@ -20,7 +20,7 @@ module.exports = (mongoose) => {
|
|
20
20
|
default: 'subscriber'
|
21
21
|
},
|
22
22
|
target: { // заменяем 'organization' на 'target', так как это может быть или User, или Organization
|
23
|
-
type: mongoose.Schema.Types.ObjectId,
|
23
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
24
24
|
ref: function (value) {
|
25
25
|
if (this.type === 'user') return 'User';
|
26
26
|
if (this.type === 'organization') return 'Organization';
|
@@ -33,7 +33,7 @@ module.exports = (mongoose) => {
|
|
33
33
|
|
34
34
|
MembershipSchema.index({ user: 1, target: 1});
|
35
35
|
|
36
|
-
const Membership = mongoose.model('Membership', MembershipSchema);
|
36
|
+
const Membership = db.mongoose.model('Membership', MembershipSchema);
|
37
37
|
|
38
38
|
return Membership;
|
39
39
|
}
|