@ozdao/prometheus-framework 0.2.80 → 0.2.82
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/community.server.js +3 -3
- package/dist/community.server.mjs +3 -3
- package/dist/credentials.schema-CDZCKfEI.mjs +106 -0
- package/dist/credentials.schema-CfhPcsuI.js +105 -0
- package/dist/events.server.js +4 -15
- package/dist/events.server.mjs +3 -14
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/index-B6a1mPgp.mjs +217 -0
- package/dist/index-BCCiEK_u.js +216 -0
- package/dist/main-8N2Jmsuk.js +91 -0
- package/dist/main-CkeuHuCY.mjs +13619 -0
- package/dist/main.css +1 -1
- package/dist/metadata.schema-Cu_mPkjE.js +77 -0
- package/dist/metadata.schema-cbFgazeK.mjs +78 -0
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -0
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +238 -0
- package/dist/organizations.server.js +297 -134
- package/dist/organizations.server.mjs +295 -132
- package/dist/products.server.js +2 -2
- package/dist/products.server.mjs +2 -2
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +33 -24
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +23 -20
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +32 -155
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +55 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -55
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +71 -60
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +325 -340
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +2 -2
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +53 -44
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -72
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +73 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -97
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +18 -19
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +28 -28
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +26 -26
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +78 -103
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +132 -141
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +29 -27
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +32 -25
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +6 -3
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +70 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.js +35 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +63 -86
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -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.js +174 -114
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +39 -39
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +141 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +77 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +46 -35
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +5 -0
- package/dist/prometheus-framework/src/modules/orders/store/models/customer.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/models/customer.js +30 -0
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +24 -25
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +16 -16
- 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.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +39 -50
- 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.js +6 -6
- 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.js +161 -138
- 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.js +199 -79
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +83 -126
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +59 -70
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +34 -36
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +38 -18
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +34 -35
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +41 -21
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +24 -26
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +78 -0
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +13 -14
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/queryProcessor-BJdKh0Ow.mjs +162 -0
- package/dist/queryProcessor-DRMo_GWK.js +161 -0
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/users.server.js +69 -38
- package/dist/users.server.mjs +67 -36
- package/dist/wallet.server.js +2 -2
- package/dist/wallet.server.mjs +2 -2
- package/dist/web-CtVocufd.js +1 -0
- package/dist/web-DNq1tHCE.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +13 -2
- package/src/components/Block/Block.vue +3 -2
- package/src/components/Button/Button.vue +9 -12
- package/src/components/Feed/Feed.vue +28 -6
- package/src/components/FieldPhone/FieldPhone.vue +592 -558
- package/src/components/LocationMarker/LocationMarker.vue +26 -22
- package/src/components/Popup/Popup.vue +22 -23
- package/src/components/Select/Select.vue +43 -32
- package/src/components/Slider/Slider.vue +3 -4
- package/src/modules/auth/components/pages/Invite.vue +7 -7
- package/src/modules/auth/store/auth.js +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +44 -29
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +4 -3
- package/src/modules/events/components/pages/Event.vue +4 -3
- package/src/modules/events/components/pages/Events.vue +23 -6
- package/src/modules/events/components/sections/HeroEvent.vue +1 -1
- package/src/modules/globals/components/sections/SectionPageTitle.vue +19 -7
- package/src/modules/globals/controllers/utils/queryProcessor.js +21 -7
- package/src/modules/globals/localization/vue-i18n.js +3 -0
- package/src/modules/globals/models/credentials.schema.js +7 -0
- package/src/modules/globals/models/metadata.schema.js +17 -0
- package/src/modules/globals/models/profile.schema.js +23 -0
- package/src/modules/globals/models/socials.schema.js +22 -0
- package/src/modules/globals/router/routerGuards.js +1 -0
- package/src/modules/globals/services/globals.cashe.js +26 -0
- package/src/modules/globals/services/globals.crud.js +115 -0
- package/src/modules/globals/services/globals.logger.js +41 -0
- package/src/modules/globals/services/globals.store.js +114 -0
- package/src/modules/icons/entities/IconGallery.vue +14 -0
- package/src/modules/icons/entities/IconLeftovers.vue +14 -0
- package/src/modules/icons/entities/IconOrders.vue +15 -0
- package/src/modules/icons/entities/IconProducts.vue +14 -0
- package/src/modules/landing/components/sections/HeroSection.vue +1 -1
- package/src/modules/landing/components/sections/MobileApp.vue +4 -4
- package/src/modules/landing/router/landing.js +1 -1
- package/src/modules/marketplace/components/sections/Filters.vue +3 -3
- package/src/modules/middlewares/server/accessors/AccessController.js +33 -0
- package/src/modules/middlewares/server/accessors/ReadDepartments.js +101 -0
- package/src/modules/middlewares/server/verifyAccesses.js +33 -0
- package/src/modules/middlewares/server/verifyInvites.js +4 -4
- package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +105 -68
- package/src/modules/orders/components/pages/Orders.vue +2 -2
- package/src/modules/orders/components/sections/FormAddCustomer.vue +152 -0
- package/src/modules/orders/components/sections/FormCustomerDetails.vue +67 -0
- package/src/modules/orders/components/sections/FormDelivery.vue +17 -3
- package/src/modules/orders/controllers/applications.controller.js +2 -0
- package/src/modules/orders/controllers/orders.controller.js +77 -52
- package/src/modules/orders/models/customer.model.js +54 -18
- package/src/modules/orders/models/order.model.js +1 -1
- package/src/modules/orders/orders.client.js +51 -51
- package/src/modules/orders/orders.server.js +32 -12
- package/src/modules/orders/router/orders.router.js +36 -41
- package/src/modules/orders/routes/orders.routes.js +3 -21
- package/src/modules/orders/store/customers.store.js +5 -0
- package/src/modules/orders/store/models/customer.js +29 -0
- package/src/modules/orders/store/orders.js +14 -20
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +1 -12
- package/src/modules/organizations/components/pages/Department.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +72 -48
- package/src/modules/organizations/components/pages/Members.vue +178 -64
- package/src/modules/organizations/components/pages/Organization.vue +1 -41
- package/src/modules/organizations/components/sections/MembersAdd.vue +44 -52
- package/src/modules/organizations/controllers/departments.controller.js +2 -4
- package/src/modules/organizations/controllers/invites.controller.js +24 -23
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/department.model.js +52 -2
- package/src/modules/organizations/models/invite.model.js +29 -32
- package/src/modules/organizations/models/membership.model.js +2 -0
- package/src/modules/organizations/models/organization.model.js +2 -1
- package/src/modules/organizations/organizations.client.js +0 -2
- package/src/modules/organizations/routes/departments.routes.js +18 -7
- package/src/modules/organizations/routes/invites.routes.js +2 -2
- package/src/modules/organizations/store/departments.js +22 -1
- package/src/modules/organizations/store/invites.js +74 -90
- package/src/modules/products/components/blocks/CardProduct.vue +24 -0
- package/src/modules/products/components/pages/Products.vue +1 -1
- package/src/modules/reports/components/sections/FormReport.vue +40 -40
- package/src/modules/spots/components/pages/Spot.vue +1 -1
- package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
- package/src/modules/users/components/blocks/CardUser.vue +85 -0
- package/src/modules/users/controllers/users.controller.js +36 -13
- package/src/modules/users/middlewares/visitor.logger.js +66 -0
- package/src/modules/users/models/request.model.js +18 -0
- package/src/modules/users/models/user.model.js +26 -55
- package/src/modules/users/models/visitor.model.js +14 -0
- package/src/modules/users/store/users.js +2 -11
- package/src/modules/wallet/controllers/routes/payments.routes.js +2 -0
- package/src/components/FieldPhone/FieldPhone(script-setup).vue +0 -1646
- package/src/components/FieldPhone/FieldPhone2.vue +0 -671
- package/src/modules/orders/components/sections/FormClientDetails.vue +0 -61
- package/src/modules/organizations/components/blocks/User.vue +0 -69
- /package/src/modules/backoffice/components/admin/{User.vue → UserEdit.vue} +0 -0
@@ -13,16 +13,45 @@ const controllerFactory = (db) => {
|
|
13
13
|
let skip = parseInt(req.query.skip) || 0;
|
14
14
|
let limit = parseInt(req.query.limit) || 10;
|
15
15
|
|
16
|
+
console.log(req.query)
|
17
|
+
|
18
|
+
|
16
19
|
const matchConditions = [
|
17
20
|
...(req.query._id ? [{ _id: new ObjectId(req.query._id) }] : []),
|
18
21
|
];
|
19
22
|
|
23
|
+
let search = req.query.search;
|
24
|
+
|
25
|
+
if (search) {
|
26
|
+
let regexPattern = '';
|
27
|
+
|
28
|
+
// Экранирование специальных символов в строке поиска
|
29
|
+
const escapedSearch = search.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
30
|
+
|
31
|
+
// Проверка, является ли строка поиска потенциальным email
|
32
|
+
if (escapedSearch.includes('@')) {
|
33
|
+
regexPattern = escapedSearch;
|
34
|
+
}
|
35
|
+
// Проверка, является ли строка поиска потенциальным телефонным номером
|
36
|
+
else if (escapedSearch.match(/^\+?\d{0,14}$/)) {
|
37
|
+
regexPattern = escapedSearch;
|
38
|
+
}
|
39
|
+
// Иначе, предполагаем, что это имя или username
|
40
|
+
else {
|
41
|
+
regexPattern = `.*${escapedSearch}.*`;
|
42
|
+
}
|
20
43
|
|
21
|
-
|
44
|
+
matchConditions.push({
|
45
|
+
$or: [
|
46
|
+
{ "profile.name": { $regex: regexPattern, $options: 'i' } },
|
47
|
+
{ "email": { $regex: regexPattern, $options: 'i' } },
|
48
|
+
{ "phone": { $regex: regexPattern, $options: 'i' } },
|
49
|
+
{ "username": { $regex: regexPattern, $options: 'i' } }
|
50
|
+
]
|
51
|
+
});
|
52
|
+
}
|
22
53
|
|
23
|
-
|
24
|
-
console.log(query)
|
25
|
-
console.log(req.body)
|
54
|
+
if (matchConditions.length > 0) query.push({ $match: { $and: matchConditions } });
|
26
55
|
|
27
56
|
query.push({
|
28
57
|
$lookup: {
|
@@ -53,7 +82,7 @@ const controllerFactory = (db) => {
|
|
53
82
|
|
54
83
|
|
55
84
|
query.push(addMembersQuantity());
|
56
|
-
query.push(addUserStatusFields(req.query.user));
|
85
|
+
if (req.query.user) query.push(addUserStatusFields(req.query.user));
|
57
86
|
|
58
87
|
query.push({
|
59
88
|
$skip: skip
|
@@ -63,19 +92,13 @@ const controllerFactory = (db) => {
|
|
63
92
|
$limit: limit
|
64
93
|
});
|
65
94
|
|
66
|
-
console.log(req)
|
67
|
-
console.log(query)
|
68
|
-
console.log(req.body)
|
69
|
-
|
70
95
|
try {
|
71
96
|
const users = await User.aggregate(query);
|
72
|
-
|
73
|
-
|
97
|
+
|
98
|
+
if (!users) {
|
74
99
|
return res.status(404).send({ message: "Users not found." });
|
75
100
|
}
|
76
101
|
|
77
|
-
console.log(users)
|
78
|
-
|
79
102
|
res.status(200).send(users);
|
80
103
|
} catch (err) {
|
81
104
|
console.log(err)
|
@@ -0,0 +1,66 @@
|
|
1
|
+
const crypto = require('crypto');
|
2
|
+
|
3
|
+
const fingerprintCache = new Map();
|
4
|
+
|
5
|
+
const generateFingerprint = (req) => {
|
6
|
+
const { ip, headers } = req;
|
7
|
+
const userAgent = headers['user-agent'];
|
8
|
+
const acceptLanguage = headers['accept-language'];
|
9
|
+
const key = `${ip}-${userAgent}-${acceptLanguage}`;
|
10
|
+
|
11
|
+
if (fingerprintCache.has(key)) {
|
12
|
+
return fingerprintCache.get(key);
|
13
|
+
}
|
14
|
+
|
15
|
+
const hash = crypto.createHash('sha256');
|
16
|
+
hash.update(key);
|
17
|
+
const digest = hash.digest('hex');
|
18
|
+
fingerprintCache.set(key, digest);
|
19
|
+
return digest;
|
20
|
+
};
|
21
|
+
|
22
|
+
const modelsFactory = (db) => {
|
23
|
+
const Visitor = db.visitor;
|
24
|
+
const Request = db.request;
|
25
|
+
|
26
|
+
const visitorLogger = async (req, res, next) => {
|
27
|
+
const fingerprint = generateFingerprint(req);
|
28
|
+
|
29
|
+
try {
|
30
|
+
// Check if the visitor already exists
|
31
|
+
let visitor = await Visitor.findOne({ fingerprint: fingerprint });
|
32
|
+
|
33
|
+
// If visitor does not exist, create a new one
|
34
|
+
if (!visitor) {
|
35
|
+
visitor = new Visitor({
|
36
|
+
ip: req.ip,
|
37
|
+
userAgent: req.headers['user-agent'],
|
38
|
+
acceptLanguage: req.headers['accept-language'],
|
39
|
+
fingerprint: fingerprint
|
40
|
+
});
|
41
|
+
await visitor.save();
|
42
|
+
}
|
43
|
+
|
44
|
+
// Log the request in a separate model
|
45
|
+
const newRequest = new Request({
|
46
|
+
visitor: visitor._id,
|
47
|
+
path: req.path,
|
48
|
+
method: req.method,
|
49
|
+
timestamp: new Date()
|
50
|
+
});
|
51
|
+
|
52
|
+
await newRequest.save();
|
53
|
+
|
54
|
+
next();
|
55
|
+
} catch (error) {
|
56
|
+
console.error('Error processing visitor and request data:', error);
|
57
|
+
next();
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
return {
|
62
|
+
visitorLogger
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
module.exports = modelsFactory;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module.exports = (db) => {
|
2
|
+
|
3
|
+
const RequestSchema = new db.mongoose.Schema({
|
4
|
+
visitor: {
|
5
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
6
|
+
ref: "Visitor"
|
7
|
+
},
|
8
|
+
path: String,
|
9
|
+
method: String,
|
10
|
+
timestamp: { type: Date, default: Date.now }
|
11
|
+
});
|
12
|
+
|
13
|
+
RequestSchema.index({ visitor: 1 });
|
14
|
+
|
15
|
+
const Request = db.mongoose.model("Request", RequestSchema);
|
16
|
+
|
17
|
+
return Request;
|
18
|
+
}
|
@@ -1,71 +1,42 @@
|
|
1
|
-
|
1
|
+
const applyProfileSchema = require('@pf/src/modules/globals/models/profile.schema.js');
|
2
|
+
const applySocialsSchema = require('@pf/src/modules/globals/models/socials.schema.js');
|
3
|
+
const applyCredentialsSchema = require('@pf/src/modules/globals/models/credentials.schema.js');
|
2
4
|
|
3
|
-
|
4
|
-
username: String,
|
5
|
-
|
6
|
-
phone: String,
|
7
|
-
email: String,
|
5
|
+
module.exports = (db) => {
|
8
6
|
|
9
|
-
|
10
|
-
|
7
|
+
const UserSchema = new db.mongoose.Schema({
|
8
|
+
username: {
|
9
|
+
type: String,
|
10
|
+
unique: true
|
11
|
+
},
|
12
|
+
password: {
|
13
|
+
type: String,
|
14
|
+
required: true
|
15
|
+
},
|
11
16
|
|
12
17
|
status: {
|
13
18
|
type: String,
|
14
|
-
enum: ['active','banned','removed','inactive'],
|
19
|
+
enum: ['active', 'banned', 'removed', 'inactive'],
|
15
20
|
default: 'active',
|
16
21
|
required: true,
|
17
22
|
},
|
18
|
-
|
19
|
-
profile: {
|
20
|
-
photo: {
|
21
|
-
type: String,
|
22
|
-
default: ''
|
23
|
-
},
|
24
|
-
name: {
|
25
|
-
type: String,
|
26
|
-
default: ''
|
27
|
-
},
|
28
|
-
description: {
|
29
|
-
type: String,
|
30
|
-
default: ''
|
31
|
-
},
|
32
|
-
birthday: {
|
33
|
-
type: Date,
|
34
|
-
}
|
35
|
-
},
|
36
23
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
},
|
46
|
-
facebook: {
|
47
|
-
type: String,
|
48
|
-
default: ''
|
49
|
-
},
|
50
|
-
instagram: {
|
51
|
-
type: String,
|
52
|
-
default: ''
|
53
|
-
}
|
54
|
-
},
|
55
|
-
|
56
|
-
roles: [
|
57
|
-
{
|
58
|
-
type: db.mongoose.Schema.Types.ObjectId,
|
59
|
-
ref: "Role"
|
60
|
-
}
|
61
|
-
]
|
62
|
-
},{
|
63
|
-
// Creation Date
|
64
|
-
timestamps: { currentTime: () => Date.now()
|
24
|
+
roles: [{
|
25
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
26
|
+
ref: "Role"
|
27
|
+
}]
|
28
|
+
}, {
|
29
|
+
// Creation Date
|
30
|
+
timestamps: {
|
31
|
+
currentTime: () => Date.now()
|
65
32
|
}
|
66
33
|
|
67
34
|
});
|
68
35
|
|
36
|
+
applyProfileSchema(UserSchema, db);
|
37
|
+
applySocialsSchema(UserSchema, db);
|
38
|
+
applyCredentialsSchema(UserSchema, db);
|
39
|
+
|
69
40
|
const User = db.mongoose.model("User", UserSchema);
|
70
41
|
|
71
42
|
return User;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module.exports = (db) => {
|
2
|
+
const VisitorSchema = new db.mongoose.Schema({
|
3
|
+
ip: String,
|
4
|
+
userAgent: String,
|
5
|
+
acceptLanguage: String,
|
6
|
+
fingerprint: { type: String, unique: true },
|
7
|
+
});
|
8
|
+
|
9
|
+
VisitorSchema.index({ fingerprint: 1 });
|
10
|
+
|
11
|
+
const Visitor = db.mongoose.model("Visitor", VisitorSchema);
|
12
|
+
|
13
|
+
return Visitor;
|
14
|
+
}
|
@@ -45,19 +45,10 @@ const actions = {
|
|
45
45
|
}
|
46
46
|
},
|
47
47
|
|
48
|
-
async read(options = {}) {
|
49
|
-
options.params = {}
|
50
|
-
|
51
|
-
if (options._id) {
|
52
|
-
options.params._id = options._id;
|
53
|
-
}
|
54
|
-
|
55
|
-
if (options.user) {
|
56
|
-
options.params.user = options.user;
|
57
|
-
}
|
48
|
+
async read(options = {}) {
|
58
49
|
|
59
50
|
try {
|
60
|
-
const response = await $axios.get('/api/users', { params: options
|
51
|
+
const response = await $axios.get('/api/users', { params: options });
|
61
52
|
|
62
53
|
if (options._id) {
|
63
54
|
mutations.set(response.data[0], 'current');
|
@@ -10,7 +10,9 @@ const Observer = require('@pf/src/modules/globals/services/globals.observer');
|
|
10
10
|
// Routes
|
11
11
|
module.exports = function(app, db, origins, publicPath) {
|
12
12
|
const observer = new Observer();
|
13
|
+
|
13
14
|
const webhook = new WebhookStripe(app, db, observer);
|
15
|
+
|
14
16
|
const controller = controllerFactory(db);
|
15
17
|
const controllerTickets = controllerFactoryTickets(db, publicPath);
|
16
18
|
|