@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
@@ -1 +1,103 @@
|
|
1
|
-
|
1
|
+
import { ref as y, computed as M, watch as N, openBlock as s, createElementBlock as n, Fragment as b, withDirectives as k, withModifiers as w, normalizeClass as S, createElementVNode as u, toDisplayString as d, createCommentVNode as m, createVNode as _, Transition as g, withCtx as x, renderList as T, vShow as $, unref as z } from "vue";
|
2
|
+
import D from "../FieldPhone/click-outside.js";
|
3
|
+
import "./Select.vue.js";
|
4
|
+
import E from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
+
const L = {
|
6
|
+
key: 0,
|
7
|
+
class: "t-transp mn-r-small"
|
8
|
+
}, A = { class: "w-100" }, F = ["onClick"], I = {
|
9
|
+
key: 0,
|
10
|
+
class: "w-100"
|
11
|
+
}, P = {
|
12
|
+
key: 0,
|
13
|
+
class: "mn-t-thin invalid-feedback"
|
14
|
+
}, Y = {
|
15
|
+
__name: "Select",
|
16
|
+
props: {
|
17
|
+
label: String,
|
18
|
+
placeholder: { type: String, default: "Please select an item" },
|
19
|
+
select: [String, Object],
|
20
|
+
property: String,
|
21
|
+
options: { type: Array, default: () => [] },
|
22
|
+
validation: Boolean
|
23
|
+
},
|
24
|
+
emits: [
|
25
|
+
"update:select",
|
26
|
+
"focus",
|
27
|
+
"blur"
|
28
|
+
],
|
29
|
+
setup(o, { emit: C }) {
|
30
|
+
let O = D;
|
31
|
+
const p = C, e = o, c = y(!1), l = y(
|
32
|
+
e.property ? v(e.select, e.property, e.options) : e.select
|
33
|
+
), B = M(() => e.select ? e.options.filter((t) => t !== e.select) : e.options);
|
34
|
+
N(() => e.select, (t) => {
|
35
|
+
l.value = e.property ? v(e.select, e.property, e.options) : e.select;
|
36
|
+
});
|
37
|
+
const f = () => {
|
38
|
+
c.value = !c.value, p(c.value ? "focus" : "blur");
|
39
|
+
};
|
40
|
+
function V() {
|
41
|
+
c.value = !1;
|
42
|
+
}
|
43
|
+
const j = (t) => {
|
44
|
+
l.value = t, f(), e.property ? p("update:select", l.value[e.property]) : p("update:select", l.value);
|
45
|
+
};
|
46
|
+
function v(t, h, i) {
|
47
|
+
for (const a of i)
|
48
|
+
if (a[h] === t || a === t)
|
49
|
+
return a;
|
50
|
+
return null;
|
51
|
+
}
|
52
|
+
return (t, h) => {
|
53
|
+
var i, a;
|
54
|
+
return s(), n(b, null, [
|
55
|
+
k((s(), n("div", {
|
56
|
+
onClick: w(f, ["stop"]),
|
57
|
+
class: S([t.$attrs.class, "cursor-pointer flex-v-center flex-nowrap flex pos-relative"])
|
58
|
+
}, [
|
59
|
+
o.label ? (s(), n("div", L, [
|
60
|
+
u("span", null, d(o.label), 1)
|
61
|
+
])) : m("", !0),
|
62
|
+
u("li", A, [
|
63
|
+
u("span", null, d((i = l.value) != null && i.name ? (a = l.value) == null ? void 0 : a.name : l.value || o.placeholder), 1)
|
64
|
+
]),
|
65
|
+
_(g, {
|
66
|
+
mode: "out-in",
|
67
|
+
name: "TransitionTranslateY"
|
68
|
+
}, {
|
69
|
+
default: x(() => [
|
70
|
+
k(u("ul", {
|
71
|
+
class: S([t.$attrs.class, "bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),
|
72
|
+
style: { "min-width": "max-content" }
|
73
|
+
}, [
|
74
|
+
(s(!0), n(b, null, T(B.value, (r) => (s(), n("li", {
|
75
|
+
onClick: w((q) => j(r), ["stop"])
|
76
|
+
}, [
|
77
|
+
r ? (s(), n("span", I, d(r.name || r), 1)) : m("", !0)
|
78
|
+
], 8, F))), 256))
|
79
|
+
], 2), [
|
80
|
+
[$, c.value]
|
81
|
+
])
|
82
|
+
]),
|
83
|
+
_: 1
|
84
|
+
})
|
85
|
+
], 2)), [
|
86
|
+
[z(O), V]
|
87
|
+
]),
|
88
|
+
_(g, {
|
89
|
+
mode: "out-in",
|
90
|
+
name: "fade"
|
91
|
+
}, {
|
92
|
+
default: x(() => [
|
93
|
+
o.validation ? (s(), n("div", P, " * " + d(o.validation.message), 1)) : m("", !0)
|
94
|
+
]),
|
95
|
+
_: 1
|
96
|
+
})
|
97
|
+
], 64);
|
98
|
+
};
|
99
|
+
}
|
100
|
+
}, Q = /* @__PURE__ */ E(Y, [["__scopeId", "data-v-bf25c24d"]]);
|
101
|
+
export {
|
102
|
+
Q as default
|
103
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router");require("vue-i18n");const f=require("../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router");require("vue-i18n");const f=require("../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs"),b=require("../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs");require("../Loader/Loader.vue.cjs");const _={class:"embla__container"},v={__name:"Slider",props:{store:Object,options:Object,text:Object,user:Object},setup(n){const l=n;m.useRouter();const r=e.ref([]),s=e.ref(!0),u=e.ref(0),c={delay:2e3,jump:!1,stopOnInteraction:!1,stopOnMouseEnter:!1,stopOnFocusIn:!0,stopOnLastSnap:!1,rootNode:t=>t.parentElement},[i,o]=f.default({loop:!0},[b.default(c)]),a=t=>u.value=o.value.selectedScrollSnap();return e.onMounted(async()=>{r.value=await l.store.read(l.options),s.value=!1,a(),o.value.on("reInit",a),o.value.on("select",a)}),(t,O)=>(e.openBlock(),e.createElementBlock("div",{class:"embla",ref_key:"emblaNode",ref:i},[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(d,p,S)=>(e.openBlock(),e.createElementBlock("div",{class:"embla__slide pd-nano",key:p},[e.createVNode(e.Transition,{name:"fade",mode:"out-in",appear:""},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:d,user:n.user})]),_:2},1024)]))),128))])],512))}};exports.default=v;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ref as a, onMounted as
|
2
|
-
import { useRouter as
|
1
|
+
import { ref as a, onMounted as b, openBlock as n, createElementBlock as s, createElementVNode as _, Fragment as v, renderList as O, createVNode as S, Transition as y, withCtx as j, renderSlot as x } from "vue";
|
2
|
+
import { useRouter as N } from "vue-router";
|
3
3
|
import "vue-i18n";
|
4
|
-
import
|
4
|
+
import k from "../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js";
|
5
5
|
import E from "../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js";
|
6
6
|
import "../Loader/Loader.vue.js";
|
7
7
|
const I = { class: "embla__container" }, F = {
|
@@ -9,12 +9,13 @@ const I = { class: "embla__container" }, F = {
|
|
9
9
|
props: {
|
10
10
|
store: Object,
|
11
11
|
options: Object,
|
12
|
-
text: Object
|
12
|
+
text: Object,
|
13
|
+
user: Object
|
13
14
|
},
|
14
|
-
setup(
|
15
|
-
const
|
16
|
-
|
17
|
-
const
|
15
|
+
setup(r) {
|
16
|
+
const l = r;
|
17
|
+
N();
|
18
|
+
const c = a([]), u = a(!0), i = a(0), p = {
|
18
19
|
delay: 2e3,
|
19
20
|
jump: !1,
|
20
21
|
stopOnInteraction: !1,
|
@@ -22,23 +23,21 @@ const I = { class: "embla__container" }, F = {
|
|
22
23
|
stopOnFocusIn: !0,
|
23
24
|
stopOnLastSnap: !1,
|
24
25
|
rootNode: (e) => e.parentElement
|
25
|
-
}, [m, t] =
|
26
|
+
}, [m, t] = k(
|
26
27
|
{ loop: !0 },
|
27
28
|
[
|
28
29
|
E(p)
|
29
30
|
]
|
30
|
-
), o = (e) =>
|
31
|
-
return
|
32
|
-
|
33
|
-
...r.options
|
34
|
-
}), u.value = !1, o(), t.value.on("reInit", o), t.value.on("select", o);
|
31
|
+
), o = (e) => i.value = t.value.selectedScrollSnap();
|
32
|
+
return b(async () => {
|
33
|
+
c.value = await l.store.read(l.options), u.value = !1, o(), t.value.on("reInit", o), t.value.on("select", o);
|
35
34
|
}), (e, h) => (n(), s("div", {
|
36
35
|
class: "embla",
|
37
36
|
ref_key: "emblaNode",
|
38
37
|
ref: m
|
39
38
|
}, [
|
40
|
-
|
41
|
-
(n(!0), s(v, null, O(
|
39
|
+
_("div", I, [
|
40
|
+
(n(!0), s(v, null, O(c.value, (d, f, L) => (n(), s("div", {
|
42
41
|
class: "embla__slide pd-nano",
|
43
42
|
key: f
|
44
43
|
}, [
|
@@ -47,10 +46,10 @@ const I = { class: "embla__container" }, F = {
|
|
47
46
|
mode: "out-in",
|
48
47
|
appear: ""
|
49
48
|
}, {
|
50
|
-
default:
|
51
|
-
|
49
|
+
default: j(() => [
|
50
|
+
x(e.$slots, "default", {
|
52
51
|
item: d,
|
53
|
-
user:
|
52
|
+
user: r.user
|
54
53
|
})
|
55
54
|
]),
|
56
55
|
_: 2
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tooltip.vue2.cjs");const s=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),a={__name:"Tooltip",props:{text:{type:String,required:!0}},setup(n){const l=e.ref(!1),t=e.reactive({position:"absolute",width:"max-content",zIndex:1e3,background:"#333",color:"#fff",padding:"5px 10px",borderRadius:"3px",fontSize:"14px",display:"none"});function i(o){l.value=!0,t.left=`${o.clientX/100+10}px`,t.top=`${o.clientY/100+10}px`,t.display="block"}function r(){l.value=!1,t.display="none"}return(o,p)=>(e.openBlock(),e.createElementBlock("div",{class:"cursor-pointer tooltip-container",onMouseover:i,onMouseleave:r},[e.renderSlot(o.$slots,"default",{},void 0,!0),e.createElementVNode("div",{class:"tooltip-content",style:e.normalizeStyle(t)},e.toDisplayString(n.text),5)],32))}},u=s.default(a,[["__scopeId","data-v-f89d5a93"]]);exports.default=u;
|
@@ -1 +1,45 @@
|
|
1
|
-
|
1
|
+
import { ref as r, reactive as p, openBlock as s, createElementBlock as a, renderSlot as c, createElementVNode as d, normalizeStyle as u, toDisplayString as f } from "vue";
|
2
|
+
import "./Tooltip.vue2.js";
|
3
|
+
import x from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const m = {
|
5
|
+
__name: "Tooltip",
|
6
|
+
props: {
|
7
|
+
text: {
|
8
|
+
type: String,
|
9
|
+
required: !0
|
10
|
+
}
|
11
|
+
},
|
12
|
+
setup(n) {
|
13
|
+
const o = r(!1), e = p({
|
14
|
+
position: "absolute",
|
15
|
+
width: "max-content",
|
16
|
+
zIndex: 1e3,
|
17
|
+
background: "#333",
|
18
|
+
color: "#fff",
|
19
|
+
padding: "5px 10px",
|
20
|
+
borderRadius: "3px",
|
21
|
+
fontSize: "14px",
|
22
|
+
display: "none"
|
23
|
+
});
|
24
|
+
function i(t) {
|
25
|
+
o.value = !0, e.left = `${t.clientX / 100 + 10}px`, e.top = `${t.clientY / 100 + 10}px`, e.display = "block";
|
26
|
+
}
|
27
|
+
function l() {
|
28
|
+
o.value = !1, e.display = "none";
|
29
|
+
}
|
30
|
+
return (t, _) => (s(), a("div", {
|
31
|
+
class: "cursor-pointer tooltip-container",
|
32
|
+
onMouseover: i,
|
33
|
+
onMouseleave: l
|
34
|
+
}, [
|
35
|
+
c(t.$slots, "default", {}, void 0, !0),
|
36
|
+
d("div", {
|
37
|
+
class: "tooltip-content",
|
38
|
+
style: u(e)
|
39
|
+
}, f(n.text), 5)
|
40
|
+
], 32));
|
41
|
+
}
|
42
|
+
}, b = /* @__PURE__ */ x(m, [["__scopeId", "data-v-f89d5a93"]]);
|
43
|
+
export {
|
44
|
+
b as default
|
45
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,45 +1 @@
|
|
1
|
-
|
2
|
-
import "./Tooltip.vue.js";
|
3
|
-
import x from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const m = {
|
5
|
-
__name: "Tooltip",
|
6
|
-
props: {
|
7
|
-
text: {
|
8
|
-
type: String,
|
9
|
-
required: !0
|
10
|
-
}
|
11
|
-
},
|
12
|
-
setup(n) {
|
13
|
-
const o = r(!1), e = p({
|
14
|
-
position: "absolute",
|
15
|
-
width: "max-content",
|
16
|
-
zIndex: 1e3,
|
17
|
-
background: "#333",
|
18
|
-
color: "#fff",
|
19
|
-
padding: "5px 10px",
|
20
|
-
borderRadius: "3px",
|
21
|
-
fontSize: "14px",
|
22
|
-
display: "none"
|
23
|
-
});
|
24
|
-
function i(t) {
|
25
|
-
o.value = !0, e.left = `${t.clientX / 100 + 10}px`, e.top = `${t.clientY / 100 + 10}px`, e.display = "block";
|
26
|
-
}
|
27
|
-
function l() {
|
28
|
-
o.value = !1, e.display = "none";
|
29
|
-
}
|
30
|
-
return (t, _) => (s(), a("div", {
|
31
|
-
class: "cursor-pointer tooltip-container",
|
32
|
-
onMouseover: i,
|
33
|
-
onMouseleave: l
|
34
|
-
}, [
|
35
|
-
c(t.$slots, "default", {}, void 0, !0),
|
36
|
-
d("div", {
|
37
|
-
class: "tooltip-content",
|
38
|
-
style: u(e)
|
39
|
-
}, f(n.text), 5)
|
40
|
-
], 32));
|
41
|
-
}
|
42
|
-
}, b = /* @__PURE__ */ x(m, [["__scopeId", "data-v-f89d5a93"]]);
|
43
|
-
export {
|
44
|
-
b as default
|
45
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const d=require("../../../../components/Field/Field.vue2.cjs"),w=require("../../../../components/Button/Button.vue2.cjs"),u=require("vue-router"),t=require("../../store/auth.cjs"),f=require("../../../organizations/store/invites.cjs"),c=require("../../../middlewares/client/inputs.validation.cjs");require("./Invite.vue2.cjs");const h={class:"t-left pd-medium"},v=e.createElementVNode("h3",{class:"mn-b-small"},"You have been invited to the organization",-1),b=e.createElementVNode("p",{class:"mn-b-semi t-transp"},"Please provide a password to complete the registration.",-1),y={class:"mn-b-semi radius-small o-hidden"},q=e.createElementVNode("span",null,"Join",-1),g={__name:"Invite",async setup(V){let i,n;const l=e.ref(null),a=u.useRoute(),p=u.useRouter();[i,n]=e.withAsyncContext(()=>f.actions.readOne(a.query.inviteCode)),await i,n();async function m(){try{await c.validateInputs(l,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}try{await t.actions.signup(t.state.user,a.query.type,a.query.inviteCode)}catch(r){console.log(r)}}function _(){p.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(r,s)=>(e.openBlock(),e.createElementBlock("section",h,[v,b,e.createElementVNode("div",y,[e.createVNode(d.default,{field:t.state.user.password,"onUpdate:field":s[0]||(s[0]=o=>t.state.user.password=o),type:"password",validation:l.value,label:"Password",placeholder:"******",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field","validation"]),e.createVNode(d.default,{field:t.state.user.passwordRepeat,"onUpdate:field":s[1]||(s[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Repeat Password",placeholder:"******",class:"bg-grey pd-medium radius-small"},null,8,["field"])]),e.createVNode(w.default,{submit:m,callback:_,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[q]),_:1})]))}};exports.default=g;
|
@@ -1,23 +1,23 @@
|
|
1
|
-
import { ref as f, withAsyncContext as _, openBlock as w, createElementBlock as
|
1
|
+
import { ref as f, withAsyncContext as _, openBlock as w, createElementBlock as h, createElementVNode as s, createVNode as i, withCtx as b } from "vue";
|
2
2
|
import "../../../../components/Tab/Tab.vue.js";
|
3
|
-
import
|
3
|
+
import p from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import y from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import { useRoute as v, useRouter as g } from "vue-router";
|
6
|
-
import { state as e, actions as
|
7
|
-
import { actions as
|
8
|
-
import { validateInputs as
|
6
|
+
import { state as e, actions as P } from "../../store/auth.js";
|
7
|
+
import { actions as R } from "../../../organizations/store/invites.js";
|
8
|
+
import { validateInputs as q, validatePassword as x } from "../../../middlewares/client/inputs.validation.js";
|
9
9
|
import "./Invite.vue2.js";
|
10
|
-
const
|
10
|
+
const C = { class: "t-left pd-medium" }, k = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "You have been invited to the organization", -1), E = /* @__PURE__ */ s("p", { class: "mn-b-semi t-transp" }, "Please provide a password to complete the registration.", -1), U = { class: "mn-b-semi radius-small o-hidden" }, V = /* @__PURE__ */ s("span", null, "Join", -1), T = {
|
11
11
|
__name: "Invite",
|
12
|
-
async setup(
|
13
|
-
let
|
14
|
-
const d = f(null), o = v(),
|
15
|
-
[
|
12
|
+
async setup(A) {
|
13
|
+
let n, l;
|
14
|
+
const d = f(null), o = v(), m = g();
|
15
|
+
[n, l] = _(() => R.readOne(o.query.inviteCode)), await n, l();
|
16
16
|
async function u() {
|
17
17
|
try {
|
18
|
-
await
|
18
|
+
await q(
|
19
19
|
d,
|
20
|
-
|
20
|
+
x,
|
21
21
|
e.user.password,
|
22
22
|
"Некорректный пароль"
|
23
23
|
);
|
@@ -25,13 +25,13 @@ const k = { class: "t-left pd-medium" }, E = /* @__PURE__ */ t("h3", { class: "m
|
|
25
25
|
throw new Error();
|
26
26
|
}
|
27
27
|
try {
|
28
|
-
await
|
28
|
+
await P.signup(e.user, o.query.type, o.query.inviteCode);
|
29
29
|
} catch (r) {
|
30
30
|
console.log(r);
|
31
31
|
}
|
32
32
|
}
|
33
33
|
function c() {
|
34
|
-
|
34
|
+
m.push({
|
35
35
|
name: "User Profile",
|
36
36
|
params: {
|
37
37
|
_id: e.user._id
|
@@ -41,26 +41,26 @@ const k = { class: "t-left pd-medium" }, E = /* @__PURE__ */ t("h3", { class: "m
|
|
41
41
|
}
|
42
42
|
});
|
43
43
|
}
|
44
|
-
return (r,
|
44
|
+
return (r, t) => (w(), h("section", C, [
|
45
|
+
k,
|
45
46
|
E,
|
46
|
-
U,
|
47
|
-
|
48
|
-
i(m, {
|
47
|
+
s("div", U, [
|
48
|
+
i(p, {
|
49
49
|
field: e.user.password,
|
50
|
-
"onUpdate:field":
|
50
|
+
"onUpdate:field": t[0] || (t[0] = (a) => e.user.password = a),
|
51
51
|
type: "password",
|
52
52
|
validation: d.value,
|
53
|
-
label: "
|
53
|
+
label: "Password",
|
54
54
|
placeholder: "******",
|
55
|
-
class: "bg-
|
55
|
+
class: "mn-b-thin bg-grey pd-medium radius-small"
|
56
56
|
}, null, 8, ["field", "validation"]),
|
57
|
-
i(
|
57
|
+
i(p, {
|
58
58
|
field: e.user.passwordRepeat,
|
59
|
-
"onUpdate:field":
|
59
|
+
"onUpdate:field": t[1] || (t[1] = (a) => e.user.passwordRepeat = a),
|
60
60
|
type: "password",
|
61
|
-
label: "
|
61
|
+
label: "Repeat Password",
|
62
62
|
placeholder: "******",
|
63
|
-
class: "bg-
|
63
|
+
class: "bg-grey pd-medium radius-small"
|
64
64
|
}, null, 8, ["field"])
|
65
65
|
]),
|
66
66
|
i(y, {
|
@@ -68,8 +68,8 @@ const k = { class: "t-left pd-medium" }, E = /* @__PURE__ */ t("h3", { class: "m
|
|
68
68
|
callback: c,
|
69
69
|
class: "w-100 bg-main mn-b-big"
|
70
70
|
}, {
|
71
|
-
default:
|
72
|
-
|
71
|
+
default: b(() => [
|
72
|
+
V
|
73
73
|
]),
|
74
74
|
_: 1
|
75
75
|
})
|
@@ -77,5 +77,5 @@ const k = { class: "t-left pd-medium" }, E = /* @__PURE__ */ t("h3", { class: "m
|
|
77
77
|
}
|
78
78
|
};
|
79
79
|
export {
|
80
|
-
|
80
|
+
T as default
|
81
81
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../../../../node_modules/axios/lib/axios.cjs"),d=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),l=require("../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),f=require("vue"),i=require("../../globals/store/globals.cjs"),g=require("./twofa.cjs"),u=w.default.create({baseURL:process.env.API_URL,withCredentials:!0}),a=f.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1}});async function O(){const e=await m("user");if(e){const{_id:t,email:s,phone:c,roles:o,accessToken:n}=e;Object.assign(a.user,{_id:t,email:s,phone:c}),Object.assign(a.access,{token:n,roles:o,status:!!n}),u.interceptors.request.use(r=>(n&&(r.headers["x-access-token"]=n),r),r=>Promise.reject(r))}}O();const h={async login(e,t){try{const s=await u.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(a.user,{...s.data}),Object.assign(a.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){return Object.assign(a.access,{token:null,status:!1,roles:null}),i.setError(s),Promise.reject(s)}},async signup(e,t,s){var n;const{password:c,passwordRepeat:o}=a.user;if(console.log(c),console.log(o),c!==o){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw i.setError(r),new Error(r.response.status)}try{(n=e.phone)!=null&&n.number&&(e.phone=e.phone.number);const r=await u.post("/api/auth/signup",{...e,type:t,inviteCode:s});return console.log(r),r.data.accessToken&&p("user",r.data),Object.assign(a.user,{...r.data}),Object.assign(a.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){throw i.setError(r),console.log("Sign up falied"),r}},logout(){P("user"),Object.assign(a.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(a.access,{token:null,status:!1})},async resetPassword(e,t){try{const s=await u.post("/api/auth/reset-password",{email:e.email,phone:e.phone.number,type:t});return Object.assign(g.state.code,{...s.data,isSended:!0}),s.data}catch(s){return i.setError(s),Promise.reject(s)}},async updatePassword(e,t){const{password:s,passwordRepeat:c}=a.user;if(s!==c){const o={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw i.setError(o),new Error(o.response.status)}try{const o=await u.post("/api/auth/update-password",{email:e.email,phone:e.phone.number,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return o.data.accessToken&&p("user",o.data),Object.assign(a.user,{...o.data}),Object.assign(a.access,{token:o.data.accessToken,status:!0}),o.data}catch(o){return i.setError(o),Promise.reject(o)}}},k={development:{secure:!1,expires:7},production:{expires:7,path:"/",domain:process.env.API_URL,sameSite:"none",secure:!0}};async function m(e){if(process.env.MOBILE_APP){const{value:t}=await l.Preferences.get({key:e});return t?JSON.parse(t):null}else{const t=d.default.get(e);return t?JSON.parse(t):null}}function p(e,t,s=process.env.DOMAIN_URL){process.env.MOBILE_APP?l.Preferences.set({key:e,value:JSON.stringify(t)}):d.default.set(e,JSON.stringify(t),k[s])}function P(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)l.Preferences.remove({key:e});else{const s=t==="production"?{domain:process.env.API_URL}:{};d.default.remove(e,s)}}f.watch(a,(e,t)=>{});exports.actions=h;exports.state=a;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../../../../node_modules/axios/lib/axios.cjs"),d=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),l=require("../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),f=require("vue"),i=require("../../globals/store/globals.cjs"),g=require("./twofa.cjs"),u=w.default.create({baseURL:process.env.API_URL,withCredentials:!0}),a=f.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1}});async function O(){const e=await m("user");if(e){const{_id:t,email:s,phone:c,roles:o,accessToken:n}=e;Object.assign(a.user,{_id:t,email:s,phone:c}),Object.assign(a.access,{token:n,roles:o,status:!!n}),u.interceptors.request.use(r=>(n&&(r.headers["x-access-token"]=n),r),r=>Promise.reject(r))}}O();const h={async login(e,t){try{const s=await u.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(a.user,{...s.data}),Object.assign(a.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){return Object.assign(a.access,{token:null,status:!1,roles:null}),i.setError(s),Promise.reject(s)}},async signup(e,t,s){var n;const{password:c,passwordRepeat:o}=a.user;if(console.log(c),console.log(o),c!==o){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw i.setError(r),new Error(r.response.status)}try{(n=e.phone)!=null&&n.number&&(e.phone=e.phone.number);const r=await u.post("/api/auth/signup",{...e,type:t,inviteCode:s});return console.log(r),r.data.accessToken&&p("user",r.data),Object.assign(a.user,{...r.data}),Object.assign(a.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){throw i.setError(r),console.log("Sign up falied"),r}},logout(){P("user"),Object.assign(a.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(a.access,{token:null,status:!1})},async resetPassword(e,t){try{const s=await u.post("/api/auth/reset-password",{email:e.email,phone:e.phone.number,type:t});return Object.assign(g.state.code,{...s.data,isSended:!0}),s.data}catch(s){return i.setError(s),Promise.reject(s)}},async updatePassword(e,t){const{password:s,passwordRepeat:c}=a.user;if(s!==c){const o={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw i.setError(o),new Error(o.response.status)}try{const o=await u.post("/api/auth/update-password",{email:e.email,phone:e.phone.number,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return o.data.accessToken&&p("user",o.data),Object.assign(a.user,{...o.data}),Object.assign(a.access,{token:o.data.accessToken,status:!0}),o.data}catch(o){return i.setError(o),Promise.reject(o)}}},k={development:{secure:!1,expires:7,sameSite:"Lax"},production:{expires:7,path:"/",domain:process.env.API_URL,sameSite:"none",secure:!0}};async function m(e){if(process.env.MOBILE_APP){const{value:t}=await l.Preferences.get({key:e});return t?JSON.parse(t):null}else{const t=d.default.get(e);return t?JSON.parse(t):null}}function p(e,t,s=process.env.DOMAIN_URL){process.env.MOBILE_APP?l.Preferences.set({key:e,value:JSON.stringify(t)}):d.default.set(e,JSON.stringify(t),k[s])}function P(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)l.Preferences.remove({key:e});else{const s=t==="production"?{domain:process.env.API_URL}:{};d.default.remove(e,s)}}f.watch(a,(e,t)=>{});exports.actions=h;exports.state=a;
|
@@ -4,7 +4,7 @@ import { Preferences as l } from "../../../../node_modules/@capacitor/preference
|
|
4
4
|
import { reactive as w, watch as f } from "vue";
|
5
5
|
import { setError as i } from "../../globals/store/globals.js";
|
6
6
|
import { state as O } from "./twofa.js";
|
7
|
-
const p = m.create({ baseURL: process.env.API_URL, withCredentials: !0 }),
|
7
|
+
const p = m.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = w({
|
8
8
|
user: {
|
9
9
|
_id: void 0,
|
10
10
|
username: "",
|
@@ -22,8 +22,8 @@ const p = m.create({ baseURL: process.env.API_URL, withCredentials: !0 }), a = w
|
|
22
22
|
async function g() {
|
23
23
|
const e = await k("user");
|
24
24
|
if (e) {
|
25
|
-
const { _id: t, email: s, phone: c, roles:
|
26
|
-
Object.assign(
|
25
|
+
const { _id: t, email: s, phone: c, roles: a, accessToken: n } = e;
|
26
|
+
Object.assign(r.user, { _id: t, email: s, phone: c }), Object.assign(r.access, { token: n, roles: a, status: !!n }), p.interceptors.request.use((o) => (n && (o.headers["x-access-token"] = n), o), (o) => Promise.reject(o));
|
27
27
|
}
|
28
28
|
}
|
29
29
|
g();
|
@@ -34,15 +34,15 @@ const R = {
|
|
34
34
|
...e,
|
35
35
|
type: t
|
36
36
|
});
|
37
|
-
return u("user", s.data), Object.assign(
|
37
|
+
return u("user", s.data), Object.assign(r.user, {
|
38
38
|
...s.data
|
39
|
-
}), Object.assign(
|
39
|
+
}), Object.assign(r.access, {
|
40
40
|
token: s.data.accessToken,
|
41
41
|
status: !0,
|
42
42
|
roles: s.data.roles
|
43
43
|
}), s.data;
|
44
44
|
} catch (s) {
|
45
|
-
return Object.assign(
|
45
|
+
return Object.assign(r.access, {
|
46
46
|
token: null,
|
47
47
|
status: !1,
|
48
48
|
roles: null
|
@@ -51,8 +51,8 @@ const R = {
|
|
51
51
|
},
|
52
52
|
async signup(e, t, s) {
|
53
53
|
var n;
|
54
|
-
const { password: c, passwordRepeat:
|
55
|
-
if (console.log(c), console.log(
|
54
|
+
const { password: c, passwordRepeat: a } = r.user;
|
55
|
+
if (console.log(c), console.log(a), c !== a) {
|
56
56
|
const o = {
|
57
57
|
response: {
|
58
58
|
data: { errorCode: "PASSWORDS_DO_NOT_MATCH" }
|
@@ -67,9 +67,9 @@ const R = {
|
|
67
67
|
type: t,
|
68
68
|
inviteCode: s
|
69
69
|
});
|
70
|
-
return console.log(o), o.data.accessToken && u("user", o.data), Object.assign(
|
70
|
+
return console.log(o), o.data.accessToken && u("user", o.data), Object.assign(r.user, {
|
71
71
|
...o.data
|
72
|
-
}), Object.assign(
|
72
|
+
}), Object.assign(r.access, {
|
73
73
|
token: o.data.accessToken,
|
74
74
|
status: !0,
|
75
75
|
roles: o.data.roles
|
@@ -79,12 +79,12 @@ const R = {
|
|
79
79
|
}
|
80
80
|
},
|
81
81
|
logout() {
|
82
|
-
P("user"), Object.assign(
|
82
|
+
P("user"), Object.assign(r.user, {
|
83
83
|
email: "",
|
84
84
|
phone: "",
|
85
85
|
password: "",
|
86
86
|
passwordRepeat: ""
|
87
|
-
}), Object.assign(
|
87
|
+
}), Object.assign(r.access, {
|
88
88
|
token: null,
|
89
89
|
status: !1
|
90
90
|
});
|
@@ -105,35 +105,35 @@ const R = {
|
|
105
105
|
}
|
106
106
|
},
|
107
107
|
async updatePassword(e, t) {
|
108
|
-
const { password: s, passwordRepeat: c } =
|
108
|
+
const { password: s, passwordRepeat: c } = r.user;
|
109
109
|
if (s !== c) {
|
110
|
-
const
|
110
|
+
const a = {
|
111
111
|
response: {
|
112
112
|
data: { errorCode: "PASSWORDS_DO_NOT_MATCH" }
|
113
113
|
}
|
114
114
|
};
|
115
|
-
throw i(
|
115
|
+
throw i(a), new Error(a.response.status);
|
116
116
|
}
|
117
117
|
try {
|
118
|
-
const
|
118
|
+
const a = await p.post("/api/auth/update-password", {
|
119
119
|
email: e.email,
|
120
120
|
phone: e.phone.number,
|
121
121
|
password: e.password,
|
122
122
|
passwordRepeat: e.passwordRepeat,
|
123
123
|
type: t
|
124
124
|
});
|
125
|
-
return
|
126
|
-
...
|
127
|
-
}), Object.assign(
|
128
|
-
token:
|
125
|
+
return a.data.accessToken && u("user", a.data), Object.assign(r.user, {
|
126
|
+
...a.data
|
127
|
+
}), Object.assign(r.access, {
|
128
|
+
token: a.data.accessToken,
|
129
129
|
status: !0
|
130
|
-
}),
|
131
|
-
} catch (
|
132
|
-
return i(
|
130
|
+
}), a.data;
|
131
|
+
} catch (a) {
|
132
|
+
return i(a), Promise.reject(a);
|
133
133
|
}
|
134
134
|
}
|
135
135
|
}, h = {
|
136
|
-
development: { secure: !1, expires: 7 },
|
136
|
+
development: { secure: !1, expires: 7, sameSite: "Lax" },
|
137
137
|
production: { expires: 7, path: "/", domain: process.env.API_URL, sameSite: "none", secure: !0 }
|
138
138
|
};
|
139
139
|
async function k(e) {
|
@@ -159,9 +159,9 @@ function P(e, t = process.env.NODE_ENV) {
|
|
159
159
|
d.remove(e, s);
|
160
160
|
}
|
161
161
|
}
|
162
|
-
f(
|
162
|
+
f(r, (e, t) => {
|
163
163
|
});
|
164
164
|
export {
|
165
165
|
R as actions,
|
166
|
-
|
166
|
+
r as state
|
167
167
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../../mobile/components/Menu/Menu.vue2.cjs"),l=require("../../../mobile/components/Menu/MenuItem.vue.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const i=require("../../../icons/entities/IconProducts.vue.cjs"),u=require("../../../icons/entities/IconEvents.vue.cjs"),c=require("../../../icons/entities/IconGroups.vue.cjs"),d=require("../../../icons/entities/IconGallery.vue.cjs"),f=require("../../../icons/entities/IconOrders.vue.cjs"),m=require("../../../icons/entities/IconLeftovers.vue.cjs"),o=require("vue-router");require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const p={class:""},_=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-grey mn-b-small"},"Welcome to Backoffice",-1),v=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Products ",-1),V=e.createElementVNode("span",null," Leftovers ",-1),h=e.createElementVNode("span",null," Orders ",-1),b=e.createElementVNode("span",null," Gallery ",-1),g=e.createElementVNode("span",null," Events ",-1),q={__name:"Dashboard",props:{favorites:Array},setup(w){const t=o.useRoute(),s=o.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(C,r)=>(e.openBlock(),e.createElementBlock("div",p,[_,e.createVNode(a.default,{class:"bg-grey mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[0]||(r[0]=n=>e.unref(s).push({name:"Organization Members",params:{_id:e.unref(t).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(c.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"},null,8,["fill"]),v]),_:1}),e.createVNode(l.default,{onClick:r[1]||(r[1]=n=>e.unref(s).push({name:"Products",params:{_id:e.unref(t).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"},null,8,["fill"]),N]),_:1}),e.createVNode(l.default,{onClick:r[2]||(r[2]=n=>e.unref(s).push({name:"Leftovers",params:{_id:e.unref(t).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(m.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"},null,8,["fill"]),V]),_:1}),e.createVNode(l.default,{onClick:r[3]||(r[3]=n=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(t).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"},null,8,["fill"]),h]),_:1}),e.createVNode(l.default,{onClick:r[4]||(r[4]=n=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(t).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"},null,8,["fill"]),b]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=n=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(t).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"},null,8,["fill"]),g]),_:1})]),_:1})]))}};exports.default=q;
|