@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
package/dist/auth.server.js
CHANGED
@@ -1,11 +1,73 @@
|
|
1
1
|
"use strict";
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
3
|
+
const profile_schema = require("./profile.schema-CkOhhf37.js");
|
4
|
+
const credentials_schema = require("./credentials.schema-B-KD_ozQ.js");
|
3
5
|
const require$$0 = require("jsonwebtoken");
|
4
6
|
const require$$1$1 = require("bcryptjs");
|
5
7
|
const require$$0$1 = require("mongoose");
|
6
8
|
const require$$1 = require("jwk-to-pem");
|
7
9
|
const mailing = require("./mailing-BQKyTI-q.js");
|
8
10
|
const index = require("./index-CsS7qx1d.js");
|
11
|
+
require("uuid");
|
12
|
+
const addMembersQuantity$1 = require("./addMembersQuantity-B8UgqlUM.js");
|
13
|
+
const require$$0$2 = require("crypto");
|
14
|
+
var socials_schema = function applySocialsSchema(schema, db) {
|
15
|
+
schema.add({
|
16
|
+
socials: {
|
17
|
+
telegram: {
|
18
|
+
type: String,
|
19
|
+
default: ""
|
20
|
+
},
|
21
|
+
twitter: {
|
22
|
+
type: String,
|
23
|
+
default: ""
|
24
|
+
},
|
25
|
+
facebook: {
|
26
|
+
type: String,
|
27
|
+
default: ""
|
28
|
+
},
|
29
|
+
instagram: {
|
30
|
+
type: String,
|
31
|
+
default: ""
|
32
|
+
}
|
33
|
+
}
|
34
|
+
});
|
35
|
+
};
|
36
|
+
const applyProfileSchema = profile_schema.profile_schema;
|
37
|
+
const applySocialsSchema2 = socials_schema;
|
38
|
+
const applyCredentialsSchema = credentials_schema.credentials_schema;
|
39
|
+
var user_model = (db) => {
|
40
|
+
const UserSchema = new db.mongoose.Schema({
|
41
|
+
username: {
|
42
|
+
type: String,
|
43
|
+
unique: true
|
44
|
+
},
|
45
|
+
password: {
|
46
|
+
type: String,
|
47
|
+
required: true
|
48
|
+
},
|
49
|
+
status: {
|
50
|
+
type: String,
|
51
|
+
enum: ["active", "banned", "removed", "inactive"],
|
52
|
+
default: "active",
|
53
|
+
required: true
|
54
|
+
},
|
55
|
+
roles: [{
|
56
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
57
|
+
ref: "Role"
|
58
|
+
}]
|
59
|
+
}, {
|
60
|
+
// Creation Date
|
61
|
+
timestamps: {
|
62
|
+
currentTime: () => Date.now()
|
63
|
+
}
|
64
|
+
});
|
65
|
+
applyProfileSchema(UserSchema);
|
66
|
+
applySocialsSchema2(UserSchema);
|
67
|
+
applyCredentialsSchema(UserSchema);
|
68
|
+
const User = db.mongoose.model("User", UserSchema);
|
69
|
+
return User;
|
70
|
+
};
|
9
71
|
var role_model = (db) => {
|
10
72
|
const RoleSchema = new db.mongoose.Schema({
|
11
73
|
name: String
|
@@ -13,6 +75,31 @@ var role_model = (db) => {
|
|
13
75
|
const Role = db.mongoose.model("Role", RoleSchema);
|
14
76
|
return Role;
|
15
77
|
};
|
78
|
+
var visitor_model = (db) => {
|
79
|
+
const VisitorSchema = new db.mongoose.Schema({
|
80
|
+
ip: String,
|
81
|
+
userAgent: String,
|
82
|
+
acceptLanguage: String,
|
83
|
+
fingerprint: { type: String, unique: true }
|
84
|
+
});
|
85
|
+
VisitorSchema.index({ fingerprint: 1 });
|
86
|
+
const Visitor = db.mongoose.model("Visitor", VisitorSchema);
|
87
|
+
return Visitor;
|
88
|
+
};
|
89
|
+
var request_model = (db) => {
|
90
|
+
const RequestSchema = new db.mongoose.Schema({
|
91
|
+
visitor: {
|
92
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
93
|
+
ref: "Visitor"
|
94
|
+
},
|
95
|
+
path: String,
|
96
|
+
method: String,
|
97
|
+
timestamp: { type: Date, default: Date.now }
|
98
|
+
});
|
99
|
+
RequestSchema.index({ visitor: 1 });
|
100
|
+
const Request = db.mongoose.model("Request", RequestSchema);
|
101
|
+
return Request;
|
102
|
+
};
|
16
103
|
const jwt$1 = require$$0;
|
17
104
|
const jwkToPem = require$$1;
|
18
105
|
async function verifyAppleIdToken$1(id_token) {
|
@@ -52,9 +139,9 @@ async function verifyAppleIdToken$1(id_token) {
|
|
52
139
|
var verifyAppleIdToken_1 = { verifyAppleIdToken: verifyAppleIdToken$1 };
|
53
140
|
const jwt = require$$0;
|
54
141
|
const bcrypt = require$$1$1;
|
55
|
-
const ObjectId = require$$0$1.Types.ObjectId;
|
142
|
+
const ObjectId$1 = require$$0$1.Types.ObjectId;
|
56
143
|
const { verifyAppleIdToken } = verifyAppleIdToken_1;
|
57
|
-
const controllerFactory$
|
144
|
+
const controllerFactory$5 = (db) => {
|
58
145
|
const User = db.user;
|
59
146
|
const Membership = db.membership;
|
60
147
|
const Department = db.department;
|
@@ -163,8 +250,8 @@ const controllerFactory$3 = (db) => {
|
|
163
250
|
await invite.save();
|
164
251
|
const newMembership = new Membership({
|
165
252
|
type: "organization",
|
166
|
-
user: new ObjectId(user._id),
|
167
|
-
target: new ObjectId(invite.owner.target),
|
253
|
+
user: new ObjectId$1(user._id),
|
254
|
+
target: new ObjectId$1(invite.owner.target),
|
168
255
|
role: invite.role,
|
169
256
|
label: invite.role
|
170
257
|
});
|
@@ -291,9 +378,9 @@ const controllerFactory$3 = (db) => {
|
|
291
378
|
checkAccesses
|
292
379
|
};
|
293
380
|
};
|
294
|
-
var auth_service = controllerFactory$
|
381
|
+
var auth_service = controllerFactory$5;
|
295
382
|
const { sendEmail, sendSms } = mailing.mailing;
|
296
|
-
const controllerFactory$
|
383
|
+
const controllerFactory$4 = (db) => {
|
297
384
|
const sendcode = async (req, res) => {
|
298
385
|
const code = Math.floor(1e3 + Math.random() * 9e3);
|
299
386
|
const type = req.body.type;
|
@@ -320,12 +407,12 @@ const controllerFactory$2 = (db) => {
|
|
320
407
|
sendcode
|
321
408
|
};
|
322
409
|
};
|
323
|
-
var twofa_service = controllerFactory$
|
324
|
-
const controllerFactory$
|
410
|
+
var twofa_service = controllerFactory$4;
|
411
|
+
const controllerFactory$3 = auth_service;
|
325
412
|
const controllerFactoryTwofa = twofa_service;
|
326
413
|
const middlewareFactory$1 = index.middlewares;
|
327
414
|
var auth_routes = function(app, db, origins) {
|
328
|
-
const controller = controllerFactory$
|
415
|
+
const controller = controllerFactory$3(db);
|
329
416
|
const controllerTwofa = controllerFactoryTwofa();
|
330
417
|
const { verifySignUp, verifyUser, authJwt } = middlewareFactory$1(db);
|
331
418
|
app.post(
|
@@ -359,10 +446,10 @@ var auth_routes = function(app, db, origins) {
|
|
359
446
|
controller.checkAccesses
|
360
447
|
);
|
361
448
|
};
|
362
|
-
const controllerFactory = twofa_service;
|
449
|
+
const controllerFactory$2 = twofa_service;
|
363
450
|
const middlewareFactory = index.middlewares;
|
364
451
|
var twofa_routes = function(app, db) {
|
365
|
-
const controller = controllerFactory();
|
452
|
+
const controller = controllerFactory$2();
|
366
453
|
const { verifySignUp, verifyUser } = middlewareFactory(db);
|
367
454
|
app.post(
|
368
455
|
"/api/twofa/sendcode",
|
@@ -379,30 +466,227 @@ var twofa_routes = function(app, db) {
|
|
379
466
|
controller.sendcode
|
380
467
|
);
|
381
468
|
};
|
469
|
+
const ObjectId = require$$0$1.Types.ObjectId;
|
470
|
+
const addUserStatusFields = addMembersQuantity$1.addUserStatusFields_1;
|
471
|
+
const addMembersQuantity = addMembersQuantity$1.addMembersQuantity_1;
|
472
|
+
const controllerFactory$1 = (db) => {
|
473
|
+
const User = db.user;
|
474
|
+
const read = async (req, res) => {
|
475
|
+
let query = [];
|
476
|
+
let skip = parseInt(req.query.skip) || 0;
|
477
|
+
let limit = parseInt(req.query.limit) || 10;
|
478
|
+
console.log(req.query);
|
479
|
+
const matchConditions = [
|
480
|
+
...req.query._id ? [{ _id: new ObjectId(req.query._id) }] : []
|
481
|
+
];
|
482
|
+
let search = req.query.search;
|
483
|
+
if (search) {
|
484
|
+
let regexPattern = "";
|
485
|
+
const escapedSearch = search.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
486
|
+
if (escapedSearch.includes("@")) {
|
487
|
+
regexPattern = escapedSearch;
|
488
|
+
} else if (escapedSearch.match(/^\+?\d{0,14}$/)) {
|
489
|
+
regexPattern = escapedSearch;
|
490
|
+
} else {
|
491
|
+
regexPattern = `.*${escapedSearch}.*`;
|
492
|
+
}
|
493
|
+
matchConditions.push({
|
494
|
+
$or: [
|
495
|
+
{ "profile.name": { $regex: regexPattern, $options: "i" } },
|
496
|
+
{ "email": { $regex: regexPattern, $options: "i" } },
|
497
|
+
{ "phone": { $regex: regexPattern, $options: "i" } },
|
498
|
+
{ "username": { $regex: regexPattern, $options: "i" } }
|
499
|
+
]
|
500
|
+
});
|
501
|
+
}
|
502
|
+
if (matchConditions.length > 0) query.push({ $match: { $and: matchConditions } });
|
503
|
+
query.push({
|
504
|
+
$lookup: {
|
505
|
+
from: "orders",
|
506
|
+
localField: "_id",
|
507
|
+
foreignField: "user",
|
508
|
+
as: "orders"
|
509
|
+
}
|
510
|
+
});
|
511
|
+
query.push({
|
512
|
+
$lookup: {
|
513
|
+
from: "roles",
|
514
|
+
localField: "roles",
|
515
|
+
foreignField: "_id",
|
516
|
+
as: "roles"
|
517
|
+
}
|
518
|
+
});
|
519
|
+
query.push({
|
520
|
+
$lookup: {
|
521
|
+
from: "memberships",
|
522
|
+
localField: "_id",
|
523
|
+
foreignField: "target",
|
524
|
+
as: "memberships"
|
525
|
+
}
|
526
|
+
});
|
527
|
+
query.push(addMembersQuantity());
|
528
|
+
if (req.query.user) query.push(addUserStatusFields(req.query.user));
|
529
|
+
query.push({
|
530
|
+
$skip: skip
|
531
|
+
});
|
532
|
+
query.push({
|
533
|
+
$limit: limit
|
534
|
+
});
|
535
|
+
try {
|
536
|
+
const users = await User.aggregate(query);
|
537
|
+
if (!users) {
|
538
|
+
return res.status(404).send({ message: "Users not found." });
|
539
|
+
}
|
540
|
+
res.status(200).send(users);
|
541
|
+
} catch (err) {
|
542
|
+
console.log(err);
|
543
|
+
res.status(500).send({ message: err });
|
544
|
+
}
|
545
|
+
};
|
546
|
+
const create = async (req, res) => {
|
547
|
+
try {
|
548
|
+
const newUser = {
|
549
|
+
phone: req.body.phone,
|
550
|
+
email: req.body.email,
|
551
|
+
roles: req.body.roles ? req.body.roles : []
|
552
|
+
};
|
553
|
+
const user = await User.create(newUser);
|
554
|
+
if (!user) {
|
555
|
+
return res.status(404).send({ errorCode: "USER_NOT_CREATED", message: "User is not created." });
|
556
|
+
}
|
557
|
+
res.status(200).send(user);
|
558
|
+
} catch (err) {
|
559
|
+
return res.status(500).send({ errorCode: "INTERNAL_SERVER_ERROR", message: err });
|
560
|
+
}
|
561
|
+
};
|
562
|
+
const update = async (req, res) => {
|
563
|
+
try {
|
564
|
+
const user = await User.findOneAndUpdate({ _id: req.params._id }, req.body, { new: true });
|
565
|
+
if (!user) {
|
566
|
+
return res.status(404).send({ errorCode: "UPDATE_FAILED", message: "Something wrong when updating user." });
|
567
|
+
}
|
568
|
+
res.status(200).send(user);
|
569
|
+
} catch (err) {
|
570
|
+
return res.status(500).send({ errorCode: "INTERNAL_SERVER_ERROR", message: err });
|
571
|
+
}
|
572
|
+
};
|
573
|
+
const remove = async (req, res) => {
|
574
|
+
try {
|
575
|
+
const user = await User.findOneAndDelete({ phone: req.params.phone });
|
576
|
+
if (!user) {
|
577
|
+
return res.status(404).send({ errorCode: "DELETION_FAILED", message: "User is not deleted." });
|
578
|
+
}
|
579
|
+
res.status(200).send(user);
|
580
|
+
} catch (err) {
|
581
|
+
return res.status(500).send({ errorCode: "INTERNAL_SERVER_ERROR", message: err });
|
582
|
+
}
|
583
|
+
};
|
584
|
+
return {
|
585
|
+
read,
|
586
|
+
create,
|
587
|
+
update,
|
588
|
+
remove
|
589
|
+
};
|
590
|
+
};
|
591
|
+
var users_service = controllerFactory$1;
|
592
|
+
const controllerFactory = users_service;
|
593
|
+
var users_routes = function(app, db, origins) {
|
594
|
+
const controller = controllerFactory(db);
|
595
|
+
app.post("/api/users", controller.create);
|
596
|
+
app.get("/api/users", controller.read);
|
597
|
+
app.put("/api/users/:_id", controller.update);
|
598
|
+
app.delete("/api/users/:_id", controller.remove);
|
599
|
+
};
|
600
|
+
const crypto = require$$0$2;
|
601
|
+
const fingerprintCache = /* @__PURE__ */ new Map();
|
602
|
+
const generateFingerprint = (req) => {
|
603
|
+
const { ip, headers } = req;
|
604
|
+
const userAgent = headers["user-agent"];
|
605
|
+
const acceptLanguage = headers["accept-language"];
|
606
|
+
const key = `${ip}-${userAgent}-${acceptLanguage}`;
|
607
|
+
if (fingerprintCache.has(key)) {
|
608
|
+
return fingerprintCache.get(key);
|
609
|
+
}
|
610
|
+
const hash = crypto.createHash("sha256");
|
611
|
+
hash.update(key);
|
612
|
+
const digest = hash.digest("hex");
|
613
|
+
fingerprintCache.set(key, digest);
|
614
|
+
return digest;
|
615
|
+
};
|
616
|
+
const modelsFactory = (db) => {
|
617
|
+
const Visitor = db.visitor;
|
618
|
+
const Request = db.request;
|
619
|
+
const visitorLogger = async (req, res, next) => {
|
620
|
+
const fingerprint = generateFingerprint(req);
|
621
|
+
try {
|
622
|
+
let visitor = await Visitor.findOne({ fingerprint });
|
623
|
+
if (!visitor) {
|
624
|
+
visitor = new Visitor({
|
625
|
+
ip: req.ip,
|
626
|
+
userAgent: req.headers["user-agent"],
|
627
|
+
acceptLanguage: req.headers["accept-language"],
|
628
|
+
fingerprint
|
629
|
+
});
|
630
|
+
await visitor.save();
|
631
|
+
}
|
632
|
+
const newRequest = new Request({
|
633
|
+
visitor: visitor._id,
|
634
|
+
path: req.path,
|
635
|
+
method: req.method,
|
636
|
+
timestamp: /* @__PURE__ */ new Date()
|
637
|
+
});
|
638
|
+
await newRequest.save();
|
639
|
+
next();
|
640
|
+
} catch (error) {
|
641
|
+
console.error("Error processing visitor and request data:", error);
|
642
|
+
next();
|
643
|
+
}
|
644
|
+
};
|
645
|
+
return {
|
646
|
+
visitorLogger
|
647
|
+
};
|
648
|
+
};
|
649
|
+
var visitor_logger = modelsFactory;
|
650
|
+
const UserModel = user_model;
|
382
651
|
const RoleModel = role_model;
|
652
|
+
const VisitorModel = visitor_model;
|
653
|
+
const RequestModel = request_model;
|
383
654
|
const authRoutes = auth_routes;
|
384
655
|
const twofaRoutes = twofa_routes;
|
656
|
+
const usersRoutes = users_routes;
|
385
657
|
const AuthController = auth_service;
|
386
658
|
const TwoFaController = twofa_service;
|
659
|
+
const UsersController = users_service;
|
660
|
+
const visitors = visitor_logger;
|
387
661
|
function initializeAuth(app, db, origins, publicPath) {
|
388
662
|
db.role = RoleModel(db);
|
663
|
+
db.user = UserModel(db);
|
664
|
+
db.visitor = VisitorModel(db);
|
665
|
+
db.request = RequestModel(db);
|
389
666
|
if (app) {
|
390
667
|
authRoutes(app, db);
|
391
668
|
twofaRoutes(app, db);
|
669
|
+
usersRoutes(app, db);
|
670
|
+
const visitorModule = visitors(db);
|
671
|
+
app.use(visitorModule.visitorLogger);
|
392
672
|
}
|
393
673
|
}
|
394
674
|
var auth_server = {
|
395
675
|
initialize: initializeAuth,
|
396
676
|
models: {
|
397
|
-
RoleModel
|
677
|
+
RoleModel,
|
678
|
+
UserModel,
|
679
|
+
VisitorModel
|
398
680
|
},
|
399
681
|
routes: {
|
400
682
|
authRoutes,
|
401
|
-
twofaRoutes
|
683
|
+
twofaRoutes,
|
684
|
+
usersRoutes
|
402
685
|
},
|
403
686
|
controllers: {
|
404
687
|
AuthController,
|
405
|
-
TwoFaController
|
688
|
+
TwoFaController,
|
689
|
+
UsersController
|
406
690
|
}
|
407
691
|
};
|
408
692
|
const auth_server$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(auth_server);
|