@ozdao/prometheus-framework 0.2.187 → 0.2.188
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +35 -23
- package/dist/auth.server.mjs +35 -23
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/mailing-BQKyTI-q.js +77 -0
- package/dist/mailing-C3VD4l0h.mjs +78 -0
- package/dist/main-BVZtf9OG.js +92 -0
- package/dist/main-CbTw08vO.mjs +13584 -0
- package/dist/orders.server.js +162 -12
- package/dist/orders.server.mjs +162 -12
- package/dist/organizations.server.js +1 -1
- package/dist/organizations.server.mjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.js +41 -22
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +41 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +124 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +94 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +82 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +118 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +168 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +129 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.js +88 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.js +20 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.js +26 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.js +30 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.js +38 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.js +32 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +30 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/auth.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/auth.js +119 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +176 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +31 -0
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js +45 -0
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +1 -1
- 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/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +3 -4
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.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 +10 -10
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
- 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 +12 -13
- package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +1 -1
- 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/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +5 -5
- package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.js +7 -0
- package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.js +18 -0
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +38 -76
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +5 -5
- 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 +2 -2
- 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.js +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.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +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.js +2 -3
- 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 +2 -2
- 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 +4 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
- 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 +3 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.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 +2 -3
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/departments.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/departments.router.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
- 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 +2 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -3
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/router/categories.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/router/categories.router.js +1 -1
- package/dist/prometheus-framework/src/modules/products/router/leftovers.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/router/leftovers.router.js +1 -1
- package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/router/products.router.js +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.js +2 -3
- package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/router/spots.js +1 -1
- 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/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.js +3 -4
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.js +1 -1
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/tickets.controller-BWVUA-GR.js +401 -0
- package/dist/tickets.controller-ChVmHHnj.mjs +402 -0
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/dist/web-CK9TrlwB.js +1 -0
- package/dist/web-aOWHNbX1.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -1
- package/src/components/Sidebar/Sidebar.vue +1 -1
- package/src/modules/auth/auth.client.js +53 -28
- package/src/modules/auth/auth.server.js +32 -14
- package/src/modules/auth/{routes → controllers/routes}/auth.routes.js +3 -3
- package/src/modules/auth/{routes → controllers/routes}/twofa.routes.js +2 -2
- package/src/modules/auth/controllers/{auth.controller.js → services/auth.service.js} +2 -3
- package/src/modules/auth/models/role.model.js +9 -8
- package/src/modules/auth/{components → views/components}/layouts/Auth.vue +3 -3
- package/src/modules/auth/{components → views/components}/pages/EnterCode.vue +3 -3
- package/src/modules/auth/{components → views/components}/pages/EnterPassword.vue +3 -3
- package/src/modules/auth/{components → views/components}/pages/Invite.vue +2 -2
- package/src/modules/auth/{components → views/components}/pages/ResetPassword.vue +4 -4
- package/src/modules/auth/{components → views/components}/pages/SignIn.vue +3 -3
- package/src/modules/auth/{components → views/components}/pages/SignUp.vue +4 -4
- package/src/modules/{middlewares/client → auth/views/middlewares}/auth.validation.js +20 -1
- package/src/modules/auth/views/router/auth.js +102 -0
- package/src/modules/{middlewares/client → auth/views/validations}/inputs.validation.js +3 -6
- package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
- package/src/modules/backoffice/components/partials/Sidebar.vue +1 -1
- package/src/modules/backoffice/router/backoffice.js +1 -1
- package/src/modules/chats/routes/chats.routes.js +1 -1
- package/src/modules/community/components/layouts/Community.vue +1 -1
- package/src/modules/community/components/pages/Blog.vue +1 -1
- package/src/modules/community/components/pages/BlogPost.vue +1 -1
- package/src/modules/community/components/pages/Community.vue +1 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/community/routes/blog.routes.js +1 -1
- package/src/modules/events/components/elements/ButtonJoin.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +1 -1
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Event.vue +1 -1
- package/src/modules/events/components/pages/Events.vue +1 -1
- package/src/modules/events/components/sections/FeaturedEvents.vue +1 -1
- package/src/modules/events/router/events.js +1 -1
- package/src/modules/events/routes/events.routes.js +1 -1
- package/src/modules/files/routes/files.routes.js +1 -1
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +1 -1
- package/src/modules/gallery/routes/gallery.routes.js +2 -2
- package/src/modules/globals/globals.client.js +4 -3
- package/src/modules/globals/router/scrollBehavior.js +30 -0
- package/src/modules/globals/store/globals.js +3 -3
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
- package/src/modules/legal/components/pages/Legal.vue +1 -1
- 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/pages/Orders.vue +1 -1
- package/src/modules/orders/components/sections/FormAddCustomer.vue +1 -1
- package/src/modules/orders/models/order.model.js +0 -1
- package/src/modules/orders/orders.server.js +3 -1
- package/src/modules/orders/routes/applications.routes.js +2 -1
- package/src/modules/orders/routes/orders.routes.js +1 -1
- package/src/modules/organizations/components/elements/ButtonToggleMembership.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/pages/OrganizationBackoffice.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationCreate.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationDetails.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/MembersAdd.vue +1 -1
- package/src/modules/organizations/components/sections/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/Publics.vue +1 -1
- package/src/modules/organizations/router/backoffice.router.js +1 -1
- package/src/modules/organizations/router/departments.router.js +1 -1
- package/src/modules/organizations/router/members.router.js +1 -1
- package/src/modules/organizations/router/organizations.js +1 -1
- package/src/modules/organizations/routes/invites.routes.js +1 -1
- package/src/modules/organizations/store/invites.js +1 -1
- package/src/modules/pages/views/components/pages/Page.vue +1 -1
- package/src/modules/pages/views/components/pages/Pages.vue +1 -1
- package/src/modules/pages/views/components/partials/SidebarPages.vue +1 -1
- package/src/modules/products/components/pages/EditLeftover.vue +1 -1
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +1 -1
- package/src/modules/products/router/categories.router.js +1 -1
- package/src/modules/products/router/leftovers.router.js +1 -1
- package/src/modules/products/router/products.router.js +1 -1
- package/src/modules/spots/router/spots.js +1 -1
- package/src/modules/users/components/pages/Profile.vue +1 -1
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +2 -2
- package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
- package/src/modules/users/router/users.js +1 -2
- package/src/modules/wallet/controllers/routes/payments.routes.js +1 -1
- package/src/modules/wallet/controllers/routes/rewards.routes.js +1 -1
- package/src/modules/wallet/views/router/payments.router.js +1 -2
- package/src/modules/auth/router/auth.js +0 -111
- package/src/modules/globals/localization/methods/get-app-locales.js +0 -13
- package/src/modules/globals/localization/vue-i18n.js +0 -38
- package/src/modules/globals/localization/vue-i18n.singleton.js +0 -11
- package/src/modules/middlewares/client/states.validation.js +0 -23
- package/src/modules/middlewares/middlewares.client.js +0 -11
- package/src/modules/middlewares/middlewares.server.js +0 -18
- package/src/modules/orders/routes/backcalls.routes.js +0 -36
- package/src/modules/orders/routes/fastorders.routes.js +0 -32
- /package/src/modules/auth/{middlewares → controllers/middlewares}/authJwt.js +0 -0
- /package/src/modules/auth/{middlewares → controllers/middlewares}/authSecret.js +0 -0
- /package/src/modules/auth/{middlewares → controllers/middlewares}/index.js +0 -0
- /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyAccesses.js +0 -0
- /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyInvites.js +0 -0
- /package/src/modules/auth/{middlewares → controllers/middlewares}/verifySignUp.js +0 -0
- /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyUser.js +0 -0
- /package/src/modules/auth/controllers/{twofa.controller.js → services/twofa.service.js} +0 -0
- /package/src/modules/auth/{utils/server → controllers/utils}/verifyAppleIdToken.js +0 -0
- /package/src/modules/auth/{components → views/components}/sections/SliderFeatures.vue +0 -0
- /package/src/modules/auth/{localization → views/localization}/EnterCode.json +0 -0
- /package/src/modules/auth/{localization → views/localization}/EnterPassword.json +0 -0
- /package/src/modules/auth/{localization → views/localization}/ResetPassword.json +0 -0
- /package/src/modules/auth/{localization → views/localization}/SignIn.json +0 -0
- /package/src/modules/auth/{localization → views/localization}/SignUp.json +0 -0
- /package/src/modules/auth/{store → views/store}/auth.js +0 -0
- /package/src/modules/auth/{store → views/store}/twofa.js +0 -0
- /package/src/modules/globals/localization/{methods/get-browser-locale.js → get-browser-locale.js} +0 -0
@@ -1,19 +1,37 @@
|
|
1
|
-
//
|
2
|
-
const AuthController = require('./controllers/auth.controller.js');
|
3
|
-
const TwoFaController = require('./controllers/twofa.controller.js');
|
4
|
-
|
5
|
-
// Importing routes
|
6
|
-
const authRoutes = require('./routes/auth.routes.js');
|
7
|
-
const twofaRoutes = require('./routes/twofa.routes.js');
|
8
|
-
// Importing models (assuming they are also in CommonJS format)
|
1
|
+
// Импортируем модели
|
9
2
|
const RoleModel = require('./models/role.model.js');
|
10
3
|
|
4
|
+
// Импортируем роуты
|
5
|
+
const authRoutes = require('./controllers/routes/auth.routes.js');
|
6
|
+
const twofaRoutes = require('./controllers/routes/twofa.routes.js');
|
7
|
+
|
8
|
+
// Импортируем контроллеры
|
9
|
+
const AuthController = require('./controllers/services/auth.service.js');
|
10
|
+
const TwoFaController = require('./controllers/services/twofa.service.js');
|
11
|
+
|
12
|
+
function initializeAuth(app, db, origins, publicPath) {
|
13
|
+
// Настраиваем модели в объекте базы данных
|
14
|
+
db.role = RoleModel(db);
|
15
|
+
|
16
|
+
// Настраиваем маршруты, если объект приложения передан
|
17
|
+
if (app) {
|
18
|
+
authRoutes(app, db, origins, publicPath);
|
19
|
+
twofaRoutes(app, db, origins, publicPath);
|
20
|
+
}
|
21
|
+
}
|
11
22
|
|
12
|
-
//
|
23
|
+
// Экспортируем контроллеры, роуты и модели
|
13
24
|
module.exports = {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
25
|
+
initialize: initializeAuth,
|
26
|
+
models: {
|
27
|
+
RoleModel,
|
28
|
+
},
|
29
|
+
routes: {
|
30
|
+
authRoutes,
|
31
|
+
twofaRoutes,
|
32
|
+
},
|
33
|
+
controllers: {
|
34
|
+
AuthController,
|
35
|
+
TwoFaController,
|
36
|
+
}
|
19
37
|
};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
// Factories
|
2
|
-
const controllerFactory = require("../
|
3
|
-
const controllerFactoryTwofa = require("../
|
2
|
+
const controllerFactory = require("../services/auth.service");
|
3
|
+
const controllerFactoryTwofa = require("../services/twofa.service");
|
4
4
|
// Middlewares
|
5
|
-
const middlewareFactory = require('
|
5
|
+
const middlewareFactory = require('../middlewares');
|
6
6
|
// Routes
|
7
7
|
module.exports = function(app, db, origins) {
|
8
8
|
const controller = controllerFactory(db);
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// Factories
|
2
|
-
const controllerFactory = require("../
|
2
|
+
const controllerFactory = require("../services/twofa.service");
|
3
3
|
// Middlewares
|
4
|
-
const middlewareFactory = require('@pf/src/modules/auth/middlewares');
|
4
|
+
const middlewareFactory = require('@pf/src/modules/auth/controllers/middlewares');
|
5
5
|
// Routes
|
6
6
|
module.exports = function(app, db) {
|
7
7
|
const controller = controllerFactory(db);
|
@@ -1,10 +1,8 @@
|
|
1
1
|
const jwt = require("jsonwebtoken");
|
2
2
|
const bcrypt = require("bcryptjs");
|
3
3
|
const ObjectId = require('mongoose').Types.ObjectId;
|
4
|
-
|
5
|
-
|
6
4
|
// Utils
|
7
|
-
const { verifyAppleIdToken } = require('../utils/
|
5
|
+
const { verifyAppleIdToken } = require('../utils/verifyAppleIdToken')
|
8
6
|
// Factory
|
9
7
|
const controllerFactory = (db) => {
|
10
8
|
|
@@ -228,6 +226,7 @@ const controllerFactory = (db) => {
|
|
228
226
|
const depts = await Department.find({ 'members.user': uid });
|
229
227
|
const ownedOrgs = await Organization.find({ owner: uid });
|
230
228
|
const ownedOrgIds = ownedOrgs.map(org => org._id.toString());
|
229
|
+
|
231
230
|
const accesses = {};
|
232
231
|
|
233
232
|
const processAccesses = (orgId, isOwner, deptAccesses) => {
|
@@ -1,10 +1,11 @@
|
|
1
|
-
module.exports = (
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
);
|
1
|
+
module.exports = (db) => {
|
2
|
+
|
3
|
+
const RoleSchema = new db.mongoose.Schema({
|
4
|
+
name: String
|
5
|
+
});
|
6
|
+
|
7
|
+
const Role = db.mongoose.model("Role", RoleSchema);
|
8
8
|
|
9
9
|
return Role;
|
10
|
-
};
|
10
|
+
};
|
11
|
+
|
@@ -31,14 +31,14 @@ import Tab from '@pf/src/components/Tab/Tab.vue'
|
|
31
31
|
import Field from '@pf/src/components/Field/Field.vue'
|
32
32
|
import Button from '@pf/src/components/Button/Button.vue'
|
33
33
|
// Import blocks
|
34
|
-
import SliderFeatures from '@pf/src/modules/auth/components/sections/SliderFeatures.vue'
|
34
|
+
import SliderFeatures from '@pf/src/modules/auth/views/components/sections/SliderFeatures.vue'
|
35
35
|
// Import libs
|
36
36
|
import { computed, onMounted, ref } from 'vue'
|
37
37
|
import { useRoute, useRouter } from 'vue-router'
|
38
38
|
// Import state
|
39
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
39
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
40
40
|
// Import validation
|
41
|
-
import * as inputsValidation from '@pf/src/modules/
|
41
|
+
import * as inputsValidation from '@pf/src/modules/auth/views/validations/inputs.validation'
|
42
42
|
|
43
43
|
const phoneValidation = ref(null)
|
44
44
|
const passswordValidation = ref(null)
|
@@ -66,15 +66,15 @@
|
|
66
66
|
import { useRoute,useRouter } from 'vue-router'
|
67
67
|
import { useI18n } from 'vue-i18n'
|
68
68
|
// Import state
|
69
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
70
|
-
import * as twofa from '@pf/src/modules/auth/store/twofa'
|
69
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
70
|
+
import * as twofa from '@pf/src/modules/auth/views/store/twofa'
|
71
71
|
import { setError } from '@pf/src/modules/globals/store/globals'
|
72
72
|
|
73
73
|
const route = useRoute()
|
74
74
|
const router = useRouter()
|
75
75
|
|
76
76
|
// Localization
|
77
|
-
import text from '@pf/src/modules/auth/localization/EnterCode.json'
|
77
|
+
import text from '@pf/src/modules/auth/views/localization/EnterCode.json'
|
78
78
|
// Localization
|
79
79
|
const { t } = useI18n({
|
80
80
|
useScope: 'global',
|
@@ -46,12 +46,12 @@ import { computed, onMounted, ref, onBeforeMount } from 'vue'
|
|
46
46
|
import { useRoute, useRouter } from 'vue-router'
|
47
47
|
import { useI18n } from 'vue-i18n'
|
48
48
|
// Import state
|
49
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
49
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
50
50
|
// Import validation
|
51
|
-
import * as inputsValidation from '@pf/src/modules/
|
51
|
+
import * as inputsValidation from '@pf/src/modules/auth/views/validations/inputs.validation'
|
52
52
|
const passswordValidation = ref(null)
|
53
53
|
// Localization
|
54
|
-
import text from '@pf/src/modules/auth/localization/EnterPassword.json'
|
54
|
+
import text from '@pf/src/modules/auth/views/localization/EnterPassword.json'
|
55
55
|
// Localization
|
56
56
|
const { t } = useI18n({
|
57
57
|
useScope: 'global',
|
@@ -42,10 +42,10 @@ import Button from '@pf/src/components/Button/Button.vue'
|
|
42
42
|
import { computed, onMounted, ref, onBeforeMount } from 'vue'
|
43
43
|
import { useRoute, useRouter } from 'vue-router'
|
44
44
|
// Import state
|
45
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
45
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
46
46
|
import * as invites from '@pf/src/modules/organizations/store/invites'
|
47
47
|
// Import validation
|
48
|
-
import * as inputsValidation from '@pf/src/modules/
|
48
|
+
import * as inputsValidation from '@pf/src/modules/auth/views/validations/inputs.validation'
|
49
49
|
const passswordValidation = ref(null)
|
50
50
|
// Accessing router
|
51
51
|
const route = useRoute()
|
@@ -65,12 +65,12 @@ import { computed, onMounted, ref } from 'vue'
|
|
65
65
|
import { useRoute, useRouter } from 'vue-router'
|
66
66
|
import { useI18n } from 'vue-i18n'
|
67
67
|
// Localization
|
68
|
-
import text from '@pf/src/modules/auth/localization/ResetPassword.json'
|
68
|
+
import text from '@pf/src/modules/auth/views/localization/ResetPassword.json'
|
69
69
|
// Import state
|
70
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
71
|
-
import * as twofa from '@pf/src/modules/auth/store/twofa'
|
70
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
71
|
+
import * as twofa from '@pf/src/modules/auth/views/store/twofa'
|
72
72
|
// Import validation
|
73
|
-
import * as inputsValidation from '@pf/src/modules/
|
73
|
+
import * as inputsValidation from '@pf/src/modules/auth/views/validations/inputs.validation'
|
74
74
|
// Localization
|
75
75
|
const { t } = useI18n({
|
76
76
|
useScope: 'global',
|
@@ -109,11 +109,11 @@ import { computed, onMounted, ref, inject } from 'vue'
|
|
109
109
|
import { useRoute, useRouter } from 'vue-router'
|
110
110
|
import { useI18n } from 'vue-i18n'
|
111
111
|
// Import localization
|
112
|
-
import text from '@pf/src/modules/auth/localization/SignIn.json'
|
112
|
+
import text from '@pf/src/modules/auth/views/localization/SignIn.json'
|
113
113
|
// Import state
|
114
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
114
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
115
115
|
// Import validation
|
116
|
-
import * as inputsValidation from '@pf/src/modules/
|
116
|
+
import * as inputsValidation from '@pf/src/modules/auth/views/validations/inputs.validation'
|
117
117
|
|
118
118
|
// Init validation
|
119
119
|
const phoneValidation = ref(null)
|
@@ -71,12 +71,12 @@
|
|
71
71
|
import { useRoute, useRouter } from 'vue-router'
|
72
72
|
import { useI18n } from 'vue-i18n'
|
73
73
|
// Import localization
|
74
|
-
import text from '@pf/src/modules/auth/localization/SignUp.json'
|
74
|
+
import text from '@pf/src/modules/auth/views/localization/SignUp.json'
|
75
75
|
// Import state
|
76
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
77
|
-
import * as twofa from '@pf/src/modules/auth/store/twofa'
|
76
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
77
|
+
import * as twofa from '@pf/src/modules/auth/views/store/twofa'
|
78
78
|
// Import validation
|
79
|
-
import * as inputsValidation from '@pf/src/modules/
|
79
|
+
import * as inputsValidation from '@pf/src/modules/auth/views/validations/inputs.validation'
|
80
80
|
// Localization
|
81
81
|
const { t } = useI18n({
|
82
82
|
useScope: 'global',
|
@@ -1,4 +1,21 @@
|
|
1
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
1
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
2
|
+
|
3
|
+
function resetUser(to, from, next) {
|
4
|
+
next()
|
5
|
+
auth.state.user.phone = ''
|
6
|
+
auth.state.user.email = ''
|
7
|
+
auth.state.user.password = ''
|
8
|
+
auth.state.user.passwordRepeat = ''
|
9
|
+
}
|
10
|
+
|
11
|
+
// Check state before open
|
12
|
+
function checkUser(to, from, next) {
|
13
|
+
if (auth.state.user.phone === '' && auth.state.user.email === '') {
|
14
|
+
next('/auth/signin')
|
15
|
+
} else {
|
16
|
+
next()
|
17
|
+
}
|
18
|
+
}
|
2
19
|
|
3
20
|
function requiresNoAuth(to, from, next) {
|
4
21
|
|
@@ -38,4 +55,6 @@ export {
|
|
38
55
|
requiresNoAuth,
|
39
56
|
requiresAuth,
|
40
57
|
requiresAdmin,
|
58
|
+
resetUser,
|
59
|
+
checkUser
|
41
60
|
}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
import layoutAuth from '../components/layouts/Auth.vue'
|
2
|
+
|
3
|
+
import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
|
4
|
+
|
5
|
+
const auth = {
|
6
|
+
path: 'auth',
|
7
|
+
name: 'Authentication',
|
8
|
+
meta: {
|
9
|
+
title: {
|
10
|
+
en: 'Аутентификация',
|
11
|
+
ru: 'Authentication'
|
12
|
+
},
|
13
|
+
},
|
14
|
+
component: layoutAuth,
|
15
|
+
children: [{
|
16
|
+
path: 'signin',
|
17
|
+
name: 'Sign In',
|
18
|
+
beforeEnter: [
|
19
|
+
validationAuth.requiresNoAuth,
|
20
|
+
validationAuth.resetUser
|
21
|
+
],
|
22
|
+
meta: {
|
23
|
+
title: {
|
24
|
+
en: 'Sign In',
|
25
|
+
ru: 'Вход'
|
26
|
+
},
|
27
|
+
},
|
28
|
+
component: () => import(/* webpackChunkName: "signin" */ '../components/pages/SignIn.vue'),
|
29
|
+
},{
|
30
|
+
path: 'reset-password',
|
31
|
+
name: 'Reset Password',
|
32
|
+
beforeEnter: [
|
33
|
+
validationAuth.requiresNoAuth,
|
34
|
+
validationAuth.resetUser
|
35
|
+
],
|
36
|
+
meta: {
|
37
|
+
title: {
|
38
|
+
en: 'Reset Password',
|
39
|
+
ru: 'Сбросить Пароль'
|
40
|
+
},
|
41
|
+
},
|
42
|
+
component: () => import(/* webpackChunkName: "reset-password" */ '../components/pages/ResetPassword.vue'),
|
43
|
+
},{
|
44
|
+
path: 'signup',
|
45
|
+
name: 'Sign Up',
|
46
|
+
beforeEnter: [
|
47
|
+
validationAuth.requiresNoAuth,
|
48
|
+
validationAuth.resetUser
|
49
|
+
],
|
50
|
+
meta: {
|
51
|
+
title: {
|
52
|
+
en: 'Sign Up',
|
53
|
+
ru: 'Регистрация'
|
54
|
+
},
|
55
|
+
},
|
56
|
+
component: () => import(/* webpackChunkName: "signup" */ '../components/pages/SignUp.vue'),
|
57
|
+
},{
|
58
|
+
path: 'enter-code',
|
59
|
+
name: 'Enter Code',
|
60
|
+
beforeEnter: [
|
61
|
+
validationAuth.requiresNoAuth,
|
62
|
+
validationAuth.checkUser
|
63
|
+
],
|
64
|
+
meta: {
|
65
|
+
title: {
|
66
|
+
en: 'Enter Code',
|
67
|
+
ru: 'Введите Код'
|
68
|
+
},
|
69
|
+
},
|
70
|
+
component: () => import(/* webpackChunkName: "signup" */ '../components/pages/EnterCode.vue'),
|
71
|
+
},{
|
72
|
+
path: 'enter-password',
|
73
|
+
name: 'Enter Password',
|
74
|
+
beforeEnter: [
|
75
|
+
validationAuth.requiresNoAuth,
|
76
|
+
validationAuth.checkUser
|
77
|
+
],
|
78
|
+
meta: {
|
79
|
+
title: {
|
80
|
+
en: 'Enter Password',
|
81
|
+
ru: 'Введите Пароль'
|
82
|
+
},
|
83
|
+
},
|
84
|
+
component: () => import(/* webpackChunkName: "signup" */ '../components/pages/EnterPassword.vue'),
|
85
|
+
},{
|
86
|
+
path: 'invite',
|
87
|
+
name: 'Invite',
|
88
|
+
beforeEnter: [
|
89
|
+
validationAuth.requiresNoAuth,
|
90
|
+
validationAuth.resetUser
|
91
|
+
],
|
92
|
+
meta: {
|
93
|
+
title: {
|
94
|
+
en: 'Invite',
|
95
|
+
ru: 'Приглашение'
|
96
|
+
},
|
97
|
+
},
|
98
|
+
component: () => import(/* webpackChunkName: "signup" */ '../components/pages/Invite.vue'),
|
99
|
+
}],
|
100
|
+
};
|
101
|
+
|
102
|
+
export default auth;
|
@@ -1,7 +1,4 @@
|
|
1
|
-
import i18n from "@pf/src/modules/globals/localization/vue-i18n";
|
2
|
-
|
3
|
-
import { parsePhoneNumberFromString } from 'libphonenumber-js';
|
4
|
-
|
1
|
+
// import i18n from "@pf/src/modules/globals/localization/vue-i18n";
|
5
2
|
const messages = {
|
6
3
|
ru: {
|
7
4
|
"validation": {
|
@@ -35,8 +32,8 @@ const messages = {
|
|
35
32
|
}
|
36
33
|
};
|
37
34
|
|
38
|
-
i18n.global.mergeLocaleMessage('ru', messages.ru);
|
39
|
-
i18n.global.mergeLocaleMessage('en', messages.en);
|
35
|
+
// i18n.global.mergeLocaleMessage('ru', messages.ru);
|
36
|
+
// i18n.global.mergeLocaleMessage('en', messages.en);
|
40
37
|
|
41
38
|
function validateLength(input) {
|
42
39
|
const length = input.length;
|
@@ -29,7 +29,7 @@ import { ref, onMounted } from 'vue';
|
|
29
29
|
/////////////////////////////
|
30
30
|
import { useRoute, useRouter } from 'vue-router'
|
31
31
|
|
32
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
32
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
33
33
|
import * as organizations from '@pf/src/modules/organizations/store/organizations'
|
34
34
|
|
35
35
|
const route = useRoute()
|
@@ -29,7 +29,7 @@ import IconLeftovers from '@pf/src/modules/icons/entities/IconLeftovers.vue'
|
|
29
29
|
/////////////////////////////
|
30
30
|
import { useRoute, useRouter } from 'vue-router'
|
31
31
|
|
32
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
32
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
33
33
|
import * as organizations from '@pf/src/modules/organizations/store/organizations'
|
34
34
|
|
35
35
|
const route = useRoute()
|
@@ -151,7 +151,7 @@ import IconLeftovers from '@pf/src/modules/icons/entities/IconLeftovers.vue'
|
|
151
151
|
/////////////////////////////
|
152
152
|
import { useRoute, useRouter } from 'vue-router'
|
153
153
|
|
154
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
154
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
155
155
|
import * as organizations from '@pf/src/modules/organizations/store/organizations'
|
156
156
|
|
157
157
|
const route = useRoute()
|
@@ -3,7 +3,7 @@ import Sidebar from '../components/partials/Sidebar.vue'
|
|
3
3
|
|
4
4
|
import layoutEmpty from '@pf/src/modules/globals/components/layouts/Empty.vue';
|
5
5
|
|
6
|
-
import * as validationAuth from '@pf/src/modules/middlewares/
|
6
|
+
import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
|
7
7
|
|
8
8
|
const backofficeRoutes = [{
|
9
9
|
path: 'backoffice',
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// Factories
|
2
2
|
const controllerFactory = require('../controllers/chats.controller.js');
|
3
3
|
// Middlewares
|
4
|
-
const middlewareFactory = require('@pf/src/modules/auth/middlewares');
|
4
|
+
const middlewareFactory = require('@pf/src/modules/auth/controllers/middlewares');
|
5
5
|
// Routes
|
6
6
|
module.exports = function(app, db, wss) {
|
7
7
|
const controller = controllerFactory(db);
|
@@ -152,7 +152,7 @@
|
|
152
152
|
|
153
153
|
// Import state
|
154
154
|
import * as blog from '@pf/src/modules/community/store/blogposts.js';
|
155
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
155
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
156
156
|
import * as organizations from '@pf/src/modules/organizations/store/organizations'
|
157
157
|
import * as memberships from '@pf/src/modules/organizations/store/memberships'
|
158
158
|
|
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
// Import state
|
50
50
|
import * as blog from '@pf/src/modules/community/store/blogposts.js';
|
51
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
51
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
52
52
|
|
53
53
|
// State
|
54
54
|
const route = useRoute();
|
@@ -71,7 +71,7 @@
|
|
71
71
|
import Viewer from '@pf/src/modules/constructor/components/sections/Viewer.vue';
|
72
72
|
|
73
73
|
import * as blog from '@pf/src/modules/community/store/blogposts.js';
|
74
|
-
import * as auth from '@pf/src/modules/auth/store/auth';
|
74
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth';
|
75
75
|
|
76
76
|
import { useRoute } from 'vue-router';
|
77
77
|
|
@@ -42,7 +42,7 @@ import {
|
|
42
42
|
clean as cleanBlogPost,
|
43
43
|
remove as deleteBlogPost
|
44
44
|
} from '@pf/src/modules/community/store/blogposts.js';
|
45
|
-
import * as auth from '@pf/src/modules/auth/store/auth';
|
45
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth';
|
46
46
|
import { useRoute, useRouter } from 'vue-router'
|
47
47
|
|
48
48
|
const router = useRouter()
|
@@ -103,7 +103,7 @@ import { useRoute, useRouter } from 'vue-router';
|
|
103
103
|
import { VueDraggableNext } from 'vue-draggable-next';
|
104
104
|
// Store & Router
|
105
105
|
import * as blog from '@pf/src/modules/community/store/blogposts.js';
|
106
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
106
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
107
107
|
import * as organizations from '@pf/src/modules/organizations/store/organizations'
|
108
108
|
|
109
109
|
const route = useRoute();
|
@@ -57,7 +57,7 @@
|
|
57
57
|
import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';
|
58
58
|
// Import state
|
59
59
|
import * as blog from '@pf/src/modules/community/store/blogposts.js';
|
60
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
60
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
61
61
|
</script>
|
62
62
|
|
63
63
|
<style lang="scss" >
|
@@ -1,6 +1,6 @@
|
|
1
1
|
const controllerFactory = require("../controllers/blog.controller");
|
2
2
|
|
3
|
-
const middlewareFactoryAuth = require('@pf/src/modules/auth/middlewares');
|
3
|
+
const middlewareFactoryAuth = require('@pf/src/modules/auth/controllers/middlewares');
|
4
4
|
const middlewareFactoryCommunity = require('../middlewares/server');
|
5
5
|
|
6
6
|
module.exports = function(app, db, origins) {
|
@@ -11,7 +11,7 @@
|
|
11
11
|
import Button from "@pf/src/components/Button/Button.vue";
|
12
12
|
|
13
13
|
import { ref } from 'vue'
|
14
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
14
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
15
15
|
import * as tickets from '@pf/src/modules/events/store/tickets' // replace memberships with tickets
|
16
16
|
|
17
17
|
const emits = defineEmits(['updateTicket']) // Rename the event to updateTicket
|
@@ -461,7 +461,7 @@ import { ref, onMounted } from 'vue';
|
|
461
461
|
import { useRoute, useRouter } from 'vue-router';
|
462
462
|
|
463
463
|
import * as events from '@pf/src/modules/events/store/events.js';
|
464
|
-
import * as auth from '@pf/src/modules/auth/store/auth';
|
464
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth';
|
465
465
|
import * as organizations from '@pf/src/modules/organizations/store/organizations';
|
466
466
|
|
467
467
|
const route = useRoute();
|
@@ -148,7 +148,7 @@ import { ref, onMounted } from 'vue';
|
|
148
148
|
import { useRoute, useRouter } from 'vue-router';
|
149
149
|
|
150
150
|
import * as events from '@pf/src/modules/events/store/events.js';
|
151
|
-
import * as auth from '@pf/src/modules/auth/store/auth';
|
151
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth';
|
152
152
|
import * as organizations from '@pf/src/modules/organizations/store/organizations';
|
153
153
|
|
154
154
|
import * as tickets from '@pf/src/modules/events/store/tickets';
|
@@ -187,7 +187,7 @@
|
|
187
187
|
|
188
188
|
import * as events from '@pf/src/modules/events/store/events.js';
|
189
189
|
import * as tickets from '@pf/src/modules/events/store/tickets.js';
|
190
|
-
import * as auth from '@pf/src/modules/auth/store/auth';
|
190
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth';
|
191
191
|
|
192
192
|
import { useRoute } from 'vue-router';
|
193
193
|
|
@@ -75,7 +75,7 @@
|
|
75
75
|
import CardEvent from '@pf/src/modules/events/components/blocks/CardEvent.vue';
|
76
76
|
// Import state
|
77
77
|
import * as events from '@pf/src/modules/events/store/events.js';
|
78
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
78
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
79
79
|
|
80
80
|
// State
|
81
81
|
const route = useRoute();
|
@@ -35,7 +35,7 @@
|
|
35
35
|
import List from '@pf/src/modules/events/components/sections/List.vue';
|
36
36
|
// Import state
|
37
37
|
import * as events from '@pf/src/modules/events/store/events.js';
|
38
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
38
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth'
|
39
39
|
|
40
40
|
// State
|
41
41
|
const route = useRoute();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import layoutEvents from '../components/layouts/layoutEvents.vue'
|
2
|
-
import * as validationAuth from '@pf/src/modules/middlewares/
|
2
|
+
import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
|
3
3
|
|
4
4
|
const eventsRoutes = [
|
5
5
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// Factories
|
2
2
|
const controllerFactory = require("../controllers/events.controller");
|
3
3
|
// Middlewares
|
4
|
-
const middlewareFactoryAuth = require('@pf/src/modules/auth/middlewares');
|
4
|
+
const middlewareFactoryAuth = require('@pf/src/modules/auth/controllers/middlewares');
|
5
5
|
const middlewareFactoryEvents = require('../middlewares/server');
|
6
6
|
// Routes
|
7
7
|
module.exports = function(app, db, origins) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// Factories
|
2
2
|
const controllerFactory = require("../controllers/files.controller");
|
3
3
|
// Middlewares
|
4
|
-
const middlewareFactoryAuth = require('@pf/src/modules/auth/middlewares');
|
4
|
+
const middlewareFactoryAuth = require('@pf/src/modules/auth/controllers/middlewares');
|
5
5
|
const middlewareFactoryFiles = require('../middlewares/server');
|
6
6
|
|
7
7
|
module.exports = function(app, db, origins, publicPath) {
|
@@ -157,7 +157,7 @@ import Popup from '@pf/src/components/Popup/Popup.vue'
|
|
157
157
|
import Feed from '@pf/src/components/Feed/Feed.vue'
|
158
158
|
import PhotoViewer from '@pf/src/components/PhotoViewer/PhotoViewer.vue'
|
159
159
|
|
160
|
-
import * as auth from '@pf/src/modules/auth/store/auth';
|
160
|
+
import * as auth from '@pf/src/modules/auth/views/store/auth';
|
161
161
|
import * as organizations from '@pf/src/modules/organizations/store/organizations';
|
162
162
|
|
163
163
|
import gallery from '@pf/src/modules/gallery/store/gallery';
|
@@ -1,8 +1,8 @@
|
|
1
1
|
// Factories
|
2
2
|
const controllerFactory = require("../controllers/gallery.controller");
|
3
3
|
// Middlewares
|
4
|
-
const middlewareFactoryAuth = require('@pf/src/modules/auth/middlewares');
|
5
|
-
const middlewareFactoryAccesses = require('@pf/src/modules/auth/middlewares/verifyAccesses')
|
4
|
+
const middlewareFactoryAuth = require('@pf/src/modules/auth/controllers/middlewares');
|
5
|
+
const middlewareFactoryAccesses = require('@pf/src/modules/auth/controllers/middlewares/verifyAccesses')
|
6
6
|
|
7
7
|
module.exports = function(app, db, origins) {
|
8
8
|
const controller = controllerFactory(db);
|