@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
@@ -0,0 +1,129 @@
|
|
1
|
+
import { ref as d, resolveComponent as E, openBlock as S, createElementBlock as x, createElementVNode as o, toDisplayString as r, unref as t, createVNode as a, Transition as h, withCtx as m, withDirectives as _, vShow as f, createTextVNode as v } from "vue";
|
2
|
+
import N from "../../../../../components/Tab/Tab.vue2.js";
|
3
|
+
import V from "../../../../../components/Field/Field.vue2.js";
|
4
|
+
import y from "../../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
+
import D from "../../../../../components/Button/Button.vue2.js";
|
6
|
+
import { useRoute as I, useRouter as O } from "vue-router";
|
7
|
+
import { useI18n as P } from "vue-i18n";
|
8
|
+
import T from "../../localization/SignUp.json.js";
|
9
|
+
import { state as s } from "../../store/auth.js";
|
10
|
+
import { sendCode as U } from "../../store/twofa.js";
|
11
|
+
import { validateInputs as b, validatePhone as $, validateEmail as A } from "../../validations/inputs.validation.js";
|
12
|
+
/* empty css */
|
13
|
+
const B = { class: "t-left pd-medium" }, F = { class: "mn-b-small" }, R = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, L = { class: "pos-relative" }, j = { class: "mn-b-semi radius-small" }, q = { class: "mn-b-small t-transp" }, z = { class: "mn-b-semi radius-small o-hidden" }, G = { class: "mn-b-small t-transp" }, H = { class: "w-100" }, ie = {
|
14
|
+
__name: "SignUp",
|
15
|
+
setup(J) {
|
16
|
+
const { t: e } = P({
|
17
|
+
useScope: "global",
|
18
|
+
...T
|
19
|
+
}), u = d(null), c = d(null);
|
20
|
+
I();
|
21
|
+
const g = O(), l = d("phone");
|
22
|
+
async function w() {
|
23
|
+
try {
|
24
|
+
l.value === "phone" && await b(
|
25
|
+
u,
|
26
|
+
$,
|
27
|
+
s.user.phone,
|
28
|
+
"Некорректный телефон"
|
29
|
+
), l.value === "email" && await b(
|
30
|
+
c,
|
31
|
+
A,
|
32
|
+
s.user.email,
|
33
|
+
"Некорректный email"
|
34
|
+
);
|
35
|
+
} catch {
|
36
|
+
throw new Error();
|
37
|
+
}
|
38
|
+
try {
|
39
|
+
await U(s.user, "signup", l.value);
|
40
|
+
} catch {
|
41
|
+
throw new Error();
|
42
|
+
}
|
43
|
+
}
|
44
|
+
function C() {
|
45
|
+
g.push({ name: "Enter Code" });
|
46
|
+
}
|
47
|
+
return (p, i) => {
|
48
|
+
const k = E("router-link");
|
49
|
+
return S(), x("section", B, [
|
50
|
+
o("h3", F, r(t(e)("title")), 1),
|
51
|
+
o("div", R, [
|
52
|
+
a(N, {
|
53
|
+
selected: l.value,
|
54
|
+
"onUpdate:selected": i[0] || (i[0] = (n) => l.value = n),
|
55
|
+
tabs: [
|
56
|
+
{ name: t(e)("phone"), value: "phone" },
|
57
|
+
{ name: t(e)("email"), value: "email" }
|
58
|
+
]
|
59
|
+
}, null, 8, ["selected", "tabs"])
|
60
|
+
]),
|
61
|
+
o("div", L, [
|
62
|
+
a(h, { name: "slide-fade" }, {
|
63
|
+
default: m(() => [
|
64
|
+
_(o("div", j, [
|
65
|
+
o("p", q, r(t(e)("smsNotice")), 1),
|
66
|
+
a(y, {
|
67
|
+
onChange: i[1] || (i[1] = (n) => s.user.phone = n),
|
68
|
+
dropdownOptions: {
|
69
|
+
showDialCodeInSelection: !0,
|
70
|
+
showFlags: !0,
|
71
|
+
showDialCodeInList: !0
|
72
|
+
},
|
73
|
+
validation: u.value,
|
74
|
+
mode: "national",
|
75
|
+
inputOptions: { placeholder: t(e)("phonePlaceholder") },
|
76
|
+
class: "bg-light pd-small radius-small mn-b-thin"
|
77
|
+
}, null, 8, ["validation", "inputOptions"])
|
78
|
+
], 512), [
|
79
|
+
[f, l.value === "phone"]
|
80
|
+
])
|
81
|
+
]),
|
82
|
+
_: 1
|
83
|
+
}),
|
84
|
+
a(h, { name: "slide-fade" }, {
|
85
|
+
default: m(() => [
|
86
|
+
_(o("div", z, [
|
87
|
+
o("p", G, r(t(e)("emailNotice")), 1),
|
88
|
+
a(V, {
|
89
|
+
field: s.user.email,
|
90
|
+
"onUpdate:field": i[2] || (i[2] = (n) => s.user.email = n),
|
91
|
+
placeholder: t(e)("emailPlaceholder"),
|
92
|
+
validation: c.value,
|
93
|
+
class: "bg-light pd-medium radius-small"
|
94
|
+
}, null, 8, ["field", "placeholder", "validation"])
|
95
|
+
], 512), [
|
96
|
+
[f, l.value === "email"]
|
97
|
+
])
|
98
|
+
]),
|
99
|
+
_: 1
|
100
|
+
})
|
101
|
+
]),
|
102
|
+
a(D, {
|
103
|
+
submit: w,
|
104
|
+
callback: C,
|
105
|
+
class: "w-100 bg-main mn-b-big"
|
106
|
+
}, {
|
107
|
+
default: m(() => [
|
108
|
+
v(r(t(e)("sendCode")), 1)
|
109
|
+
]),
|
110
|
+
_: 1
|
111
|
+
}),
|
112
|
+
o("div", H, [
|
113
|
+
a(k, {
|
114
|
+
to: "/auth/signin",
|
115
|
+
class: "underline mn-b-medium d-block t-blue"
|
116
|
+
}, {
|
117
|
+
default: m(() => [
|
118
|
+
v(r(t(e)("haveAccount")), 1)
|
119
|
+
]),
|
120
|
+
_: 1
|
121
|
+
})
|
122
|
+
])
|
123
|
+
]);
|
124
|
+
};
|
125
|
+
}
|
126
|
+
};
|
127
|
+
export {
|
128
|
+
ie as default
|
129
|
+
};
|
package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-i18n"),_=require("../../../../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs"),v=require("../../../../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs");;/* empty css */const b={class:"embla__container"},g=e.createElementVNode("div",{class:"background-div"},null,-1),h={class:"mn-b-small"},f={class:"mn-b-big mn-r-small mn-l-small"},k={__name:"SliderFeatures",setup(y){const a={messages:{en:{features:[{title:"What's the Weeder Token, Dude?",description:"WDT is like, the backbone of our rad community. It's cash, it's power, it's an investment. Groovy, right?"},{title:"Light Up and Level Up",description:"Order up, light up, and earn Weeder tokens. More tokes, more cash in your pocket, man."},{title:"Hang Ten with Our Community",description:"Find the dopest strains and start floating on cloud 9 with us!"},{title:"Shop 'Til You Drop... Into Your Couch",description:"Score primo bud and gear with just a few clicks. Delivered right to your pad!"}]},ru:{features:[{title:"Что такое токен Weeder, Бро?",description:"WDT - это как основа нашего крутого сообщества. Это деньги, это власть, это инвестиции. Круто, а?"},{title:"Зажигай и Развивайся",description:"Закажи шмали, курни и зарабатывай токены Weeder. Чем больше курнешь, тем больше кэша у тебя в кармане, чувак."},{title:"Веселись с Нашим Сообществом",description:"Найди самые крутые сорта и начни шмалить на девятом облаке вместе с нами."},{title:"Покупайте, Когда Накурились",description:"Закажи премиумную бошку и крутые аксессуары за пару кликов, чувак. Прямо к твоей двери!"}]}}},{tm:i,rt:S}=m.useI18n(a),c=e.ref(0),u=e.ref([]),d={delay:2e3,jump:!1,stopOnInteraction:!1,stopOnMouseEnter:!1,stopOnFocusIn:!0,stopOnLastSnap:!1,rootNode:n=>n.parentElement},[p,t]=_.default({loop:!0},[v.default(d)]),s=n=>u.value=t.value.scrollSnapList(),o=n=>c.value=t.value.selectedScrollSnap();return e.onMounted(async()=>{s(),o(),t.value.on("reInit",s),t.value.on("reInit",o),t.value.on("select",o)}),(n,E)=>(e.openBlock(),e.createElementBlock("div",{class:"embla",ref_key:"emblaNode",ref:p},[e.createElementVNode("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i)("features"),(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:"embla__slide pd-nano",key:l},[e.createElementVNode("div",{class:"parent-div",style:e.normalizeStyle(`background-image: url(/assets/images/features/${l}.png); background-size:cover; background-position: center center;`)},[g,e.createElementVNode("h4",h,e.toDisplayString(r.title),1),e.createElementVNode("p",f,e.toDisplayString(r.description),1)],4)]))),128))])],512))}};exports.default=k;
|
package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.js
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
import { ref as c, onMounted as b, openBlock as s, createElementBlock as r, createElementVNode as t, Fragment as v, renderList as g, unref as k, normalizeStyle as y, toDisplayString as d } from "vue";
|
2
|
+
import { useI18n as S } from "vue-i18n";
|
3
|
+
import I from "../../../../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js";
|
4
|
+
import O from "../../../../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js";
|
5
|
+
/* empty css */
|
6
|
+
const W = { class: "embla__container" }, D = /* @__PURE__ */ t("div", { class: "background-div" }, null, -1), w = { class: "mn-b-small" }, L = { class: "mn-b-big mn-r-small mn-l-small" }, z = {
|
7
|
+
__name: "SliderFeatures",
|
8
|
+
setup(T) {
|
9
|
+
const u = {
|
10
|
+
messages: {
|
11
|
+
en: {
|
12
|
+
features: [
|
13
|
+
{
|
14
|
+
title: "What's the Weeder Token, Dude?",
|
15
|
+
description: "WDT is like, the backbone of our rad community. It's cash, it's power, it's an investment. Groovy, right?"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
title: "Light Up and Level Up",
|
19
|
+
description: "Order up, light up, and earn Weeder tokens. More tokes, more cash in your pocket, man."
|
20
|
+
},
|
21
|
+
{
|
22
|
+
title: "Hang Ten with Our Community",
|
23
|
+
description: "Find the dopest strains and start floating on cloud 9 with us!"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
title: "Shop 'Til You Drop... Into Your Couch",
|
27
|
+
description: "Score primo bud and gear with just a few clicks. Delivered right to your pad!"
|
28
|
+
}
|
29
|
+
]
|
30
|
+
},
|
31
|
+
ru: {
|
32
|
+
features: [
|
33
|
+
{
|
34
|
+
title: "Что такое токен Weeder, Бро?",
|
35
|
+
description: "WDT - это как основа нашего крутого сообщества. Это деньги, это власть, это инвестиции. Круто, а?"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
title: "Зажигай и Развивайся",
|
39
|
+
description: "Закажи шмали, курни и зарабатывай токены Weeder. Чем больше курнешь, тем больше кэша у тебя в кармане, чувак."
|
40
|
+
},
|
41
|
+
{
|
42
|
+
title: "Веселись с Нашим Сообществом",
|
43
|
+
description: "Найди самые крутые сорта и начни шмалить на девятом облаке вместе с нами."
|
44
|
+
},
|
45
|
+
{
|
46
|
+
title: "Покупайте, Когда Накурились",
|
47
|
+
description: "Закажи премиумную бошку и крутые аксессуары за пару кликов, чувак. Прямо к твоей двери!"
|
48
|
+
}
|
49
|
+
]
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}, { tm: p, rt: E } = S(u), m = c(0), h = c([]), _ = {
|
53
|
+
delay: 2e3,
|
54
|
+
jump: !1,
|
55
|
+
stopOnInteraction: !1,
|
56
|
+
stopOnMouseEnter: !1,
|
57
|
+
stopOnFocusIn: !0,
|
58
|
+
stopOnLastSnap: !1,
|
59
|
+
rootNode: (o) => o.parentElement
|
60
|
+
}, [f, e] = I({ loop: !0 }, [O(_)]), a = (o) => h.value = e.value.scrollSnapList(), n = (o) => m.value = e.value.selectedScrollSnap();
|
61
|
+
return b(async () => {
|
62
|
+
a(), n(), e.value.on("reInit", a), e.value.on("reInit", n), e.value.on("select", n);
|
63
|
+
}), (o, F) => (s(), r("div", {
|
64
|
+
class: "embla",
|
65
|
+
ref_key: "emblaNode",
|
66
|
+
ref: f
|
67
|
+
}, [
|
68
|
+
t("div", W, [
|
69
|
+
(s(!0), r(v, null, g(k(p)("features"), (i, l) => (s(), r("div", {
|
70
|
+
class: "embla__slide pd-nano",
|
71
|
+
key: l
|
72
|
+
}, [
|
73
|
+
t("div", {
|
74
|
+
class: "parent-div",
|
75
|
+
style: y(`background-image: url(/assets/images/features/${l}.png); background-size:cover; background-position: center center;`)
|
76
|
+
}, [
|
77
|
+
D,
|
78
|
+
t("h4", w, d(i.title), 1),
|
79
|
+
t("p", L, d(i.description), 1)
|
80
|
+
], 4)
|
81
|
+
]))), 128))
|
82
|
+
])
|
83
|
+
], 512));
|
84
|
+
}
|
85
|
+
};
|
86
|
+
export {
|
87
|
+
z as default
|
88
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-default":{verifyNumberTitle:"Verify Number",instructions:"We have sent a registration code to your phone number. Please enter it in the field below:",resendCode:"Send the code again",secondsResend:"seconds to the possibility of sending the code again."},"ru-default":{verifyNumberTitle:"Подтвердите номер",instructions:"Мы отправили код регистрации на ваш номер телефона. Введите его в поле ниже:",resendCode:"Отправить код еще раз",secondsResend:"секунд до возможности отправить код еще раз."}},s={messages:e};exports.default=s;exports.messages=e;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
const e = {
|
2
|
+
"en-default": {
|
3
|
+
verifyNumberTitle: "Verify Number",
|
4
|
+
instructions: "We have sent a registration code to your phone number. Please enter it in the field below:",
|
5
|
+
resendCode: "Send the code again",
|
6
|
+
secondsResend: "seconds to the possibility of sending the code again."
|
7
|
+
},
|
8
|
+
"ru-default": {
|
9
|
+
verifyNumberTitle: "Подтвердите номер",
|
10
|
+
instructions: "Мы отправили код регистрации на ваш номер телефона. Введите его в поле ниже:",
|
11
|
+
resendCode: "Отправить код еще раз",
|
12
|
+
secondsResend: "секунд до возможности отправить код еще раз."
|
13
|
+
}
|
14
|
+
}, s = {
|
15
|
+
messages: e
|
16
|
+
};
|
17
|
+
export {
|
18
|
+
s as default,
|
19
|
+
e as messages
|
20
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-default":{almostDone:"Almost there!",newPasswordPrompt:"Please, set a new password.",registrationPasswordPrompt:"Please, set your password to complete the registration.",passwordPlaceholder:"Password",repeatPasswordPlaceholder:"Repeat Password",changePasswordBtn:"Change Password",registerBtn:"Register"},"ru-default":{almostDone:"Почти все!",newPasswordPrompt:"Пожалуйста, укажите новый пароль.",registrationPasswordPrompt:"Пожалуйста, укажите пароль, на этом регистрация будет закончена.",passwordPlaceholder:"Пароль",repeatPasswordPlaceholder:"Повторите пароль",changePasswordBtn:"Поменять пароль",registerBtn:"Зарегистрироваться"}},s={messages:e};exports.default=s;exports.messages=e;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
const e = {
|
2
|
+
"en-default": {
|
3
|
+
almostDone: "Almost there!",
|
4
|
+
newPasswordPrompt: "Please, set a new password.",
|
5
|
+
registrationPasswordPrompt: "Please, set your password to complete the registration.",
|
6
|
+
passwordPlaceholder: "Password",
|
7
|
+
repeatPasswordPlaceholder: "Repeat Password",
|
8
|
+
changePasswordBtn: "Change Password",
|
9
|
+
registerBtn: "Register"
|
10
|
+
},
|
11
|
+
"ru-default": {
|
12
|
+
almostDone: "Почти все!",
|
13
|
+
newPasswordPrompt: "Пожалуйста, укажите новый пароль.",
|
14
|
+
registrationPasswordPrompt: "Пожалуйста, укажите пароль, на этом регистрация будет закончена.",
|
15
|
+
passwordPlaceholder: "Пароль",
|
16
|
+
repeatPasswordPlaceholder: "Повторите пароль",
|
17
|
+
changePasswordBtn: "Поменять пароль",
|
18
|
+
registerBtn: "Зарегистрироваться"
|
19
|
+
}
|
20
|
+
}, s = {
|
21
|
+
messages: e
|
22
|
+
};
|
23
|
+
export {
|
24
|
+
s as default,
|
25
|
+
e as messages
|
26
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-default":{forgotPasswordTitle:"Forgot Password?",instructions:"To reset your password, specify the phone or email used during registration.",smsInfo:"We will send you an SMS with a confirmation code to reset your password, which you will need to enter in the next step.",emailInfo:"We will send you an email with a confirmation code to reset your password, which you will need to enter in the next step.",phone:"Phone",email:"Email",phonePlaceholder:"Enter your phone",emailPlaceholder:"Enter your email",sendCode:"Send code"},"ru-default":{forgotPasswordTitle:"Забыли пароль?",instructions:"Чтобы сбросить пароль, укажите телефон или email, использованные при регистрации.",smsInfo:"Мы вышлем вам SMS с кодом подтверждения для сброса пароля, который вы должны будете ввести в следующем шаге.",emailInfo:"Мы отправим вам электронное письмо с кодом подтверждения для сброса пароля, который вы должны будете ввести в следующем шаге.",phone:"Телефон",email:"Email",phonePlaceholder:"Введите ваш телефон",emailPlaceholder:"Введите ваш email",sendCode:"Отправить код"}},o={messages:e};exports.default=o;exports.messages=e;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
const e = {
|
2
|
+
"en-default": {
|
3
|
+
forgotPasswordTitle: "Forgot Password?",
|
4
|
+
instructions: "To reset your password, specify the phone or email used during registration.",
|
5
|
+
smsInfo: "We will send you an SMS with a confirmation code to reset your password, which you will need to enter in the next step.",
|
6
|
+
emailInfo: "We will send you an email with a confirmation code to reset your password, which you will need to enter in the next step.",
|
7
|
+
phone: "Phone",
|
8
|
+
email: "Email",
|
9
|
+
phonePlaceholder: "Enter your phone",
|
10
|
+
emailPlaceholder: "Enter your email",
|
11
|
+
sendCode: "Send code"
|
12
|
+
},
|
13
|
+
"ru-default": {
|
14
|
+
forgotPasswordTitle: "Забыли пароль?",
|
15
|
+
instructions: "Чтобы сбросить пароль, укажите телефон или email, использованные при регистрации.",
|
16
|
+
smsInfo: "Мы вышлем вам SMS с кодом подтверждения для сброса пароля, который вы должны будете ввести в следующем шаге.",
|
17
|
+
emailInfo: "Мы отправим вам электронное письмо с кодом подтверждения для сброса пароля, который вы должны будете ввести в следующем шаге.",
|
18
|
+
phone: "Телефон",
|
19
|
+
email: "Email",
|
20
|
+
phonePlaceholder: "Введите ваш телефон",
|
21
|
+
emailPlaceholder: "Введите ваш email",
|
22
|
+
sendCode: "Отправить код"
|
23
|
+
}
|
24
|
+
}, o = {
|
25
|
+
messages: e
|
26
|
+
};
|
27
|
+
export {
|
28
|
+
o as default,
|
29
|
+
e as messages
|
30
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-default":{title:"Welcome to Weeder",subtitle:"Sign In to Continue",signup:"Don't have an account?",phone:"Phone",email:"Email",phonePlaceholder:"Enter your phone",emailPlaceholder:"Enter your email",haveAccount:"Don't have an account? Sign Up",passwordPlaceholder:"Enter your password",forgotPassword:"Forgot Password?",signin:"Sign In",signin_apple:"Sign In with Apple",soon:"SOON"},"ru-default":{title:"Приветствуем вас,",subtitle:"Войдите для продолжения",signup:"Нет аккаунта?",phone:"Телефон",email:"Email",phonePlaceholder:"Введите ваш телефон",emailPlaceholder:"Введите ваш email",haveAccount:"Нет аккаунта? Зарегистрироваться",passwordPlaceholder:"Введите ваш пароль",forgotPassword:"Забыли пароль?",signin:"Войти",signin_apple:"Войти через Apple",soon:"СКОРО"}},o={messages:e};exports.default=o;exports.messages=e;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
const e = {
|
2
|
+
"en-default": {
|
3
|
+
title: "Welcome to Weeder",
|
4
|
+
subtitle: "Sign In to Continue",
|
5
|
+
signup: "Don't have an account?",
|
6
|
+
phone: "Phone",
|
7
|
+
email: "Email",
|
8
|
+
phonePlaceholder: "Enter your phone",
|
9
|
+
emailPlaceholder: "Enter your email",
|
10
|
+
haveAccount: "Don't have an account? Sign Up",
|
11
|
+
passwordPlaceholder: "Enter your password",
|
12
|
+
forgotPassword: "Forgot Password?",
|
13
|
+
signin: "Sign In",
|
14
|
+
signin_apple: "Sign In with Apple",
|
15
|
+
soon: "SOON"
|
16
|
+
},
|
17
|
+
"ru-default": {
|
18
|
+
title: "Приветствуем вас,",
|
19
|
+
subtitle: "Войдите для продолжения",
|
20
|
+
signup: "Нет аккаунта?",
|
21
|
+
phone: "Телефон",
|
22
|
+
email: "Email",
|
23
|
+
phonePlaceholder: "Введите ваш телефон",
|
24
|
+
emailPlaceholder: "Введите ваш email",
|
25
|
+
haveAccount: "Нет аккаунта? Зарегистрироваться",
|
26
|
+
passwordPlaceholder: "Введите ваш пароль",
|
27
|
+
forgotPassword: "Забыли пароль?",
|
28
|
+
signin: "Войти",
|
29
|
+
signin_apple: "Войти через Apple",
|
30
|
+
soon: "СКОРО"
|
31
|
+
}
|
32
|
+
}, o = {
|
33
|
+
messages: e
|
34
|
+
};
|
35
|
+
export {
|
36
|
+
o as default,
|
37
|
+
e as messages
|
38
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-default":{title:"Sign Up",description:"Choose a convenient way to register via phone or email:",phone:"Phone",email:"Email",phonePlaceholder:"Enter your phone",emailPlaceholder:"Enter your email",emailNotice:"We will send you an email with a confirmation code that you will need to enter in the next step.",smsNotice:"We will send you an SMS with a confirmation code that you will need to enter in the next step.",sendCode:"Send Code",haveAccount:"Already have an account?"},"ru-default":{title:"Новая учетная запись",description:"Выберите удобный способ регистрации через телефон или email:",phone:"Телефон",email:"Email",phonePlaceholder:"Введите ваш телефон",emailPlaceholder:"Введите ваш email",emailNotice:"Мы отправим вам электронное письмо с кодом подтверждения, который вы должны будете ввести в следующем шаге.",smsNotice:"Мы вышлем вам SMS с кодом подтверждения, который вы должны будете ввести в следующем шаге.",sendCode:"Отправить код",haveAccount:"У вас уже есть аккаунт?"}},t={messages:e};exports.default=t;exports.messages=e;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
const e = {
|
2
|
+
"en-default": {
|
3
|
+
title: "Sign Up",
|
4
|
+
description: "Choose a convenient way to register via phone or email:",
|
5
|
+
phone: "Phone",
|
6
|
+
email: "Email",
|
7
|
+
phonePlaceholder: "Enter your phone",
|
8
|
+
emailPlaceholder: "Enter your email",
|
9
|
+
emailNotice: "We will send you an email with a confirmation code that you will need to enter in the next step.",
|
10
|
+
smsNotice: "We will send you an SMS with a confirmation code that you will need to enter in the next step.",
|
11
|
+
sendCode: "Send Code",
|
12
|
+
haveAccount: "Already have an account?"
|
13
|
+
},
|
14
|
+
"ru-default": {
|
15
|
+
title: "Новая учетная запись",
|
16
|
+
description: "Выберите удобный способ регистрации через телефон или email:",
|
17
|
+
phone: "Телефон",
|
18
|
+
email: "Email",
|
19
|
+
phonePlaceholder: "Введите ваш телефон",
|
20
|
+
emailPlaceholder: "Введите ваш email",
|
21
|
+
emailNotice: "Мы отправим вам электронное письмо с кодом подтверждения, который вы должны будете ввести в следующем шаге.",
|
22
|
+
smsNotice: "Мы вышлем вам SMS с кодом подтверждения, который вы должны будете ввести в следующем шаге.",
|
23
|
+
sendCode: "Отправить код",
|
24
|
+
haveAccount: "У вас уже есть аккаунт?"
|
25
|
+
}
|
26
|
+
}, o = {
|
27
|
+
messages: e
|
28
|
+
};
|
29
|
+
export {
|
30
|
+
o as default,
|
31
|
+
e as messages
|
32
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../store/auth.cjs");function o(t,r,e){e(),s.state.user.phone="",s.state.user.email="",s.state.user.password="",s.state.user.passwordRepeat=""}function n(t,r,e){s.state.user.phone===""&&s.state.user.email===""?e("/auth/signin"):e()}function a(t,r,e){if(s.state.access.status)return e("/profile/"+s.state.user._id);e()}function c(t,r,e){if(s.state.access.status!==!0)return e("/auth/signin");e()}async function f(t,r,e){var u;if(((u=s.state.access.roles)!=null&&u.includes("ROLE_ADMIN")?s.state.access.roles.includes("ROLE_ADMIN"):!1)!==!0)return e("/401");e()}exports.checkUser=n;exports.requiresAdmin=f;exports.requiresAuth=c;exports.requiresNoAuth=a;exports.resetUser=o;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { state as e } from "../store/auth.js";
|
2
|
+
function u(r, i, s) {
|
3
|
+
s(), e.user.phone = "", e.user.email = "", e.user.password = "", e.user.passwordRepeat = "";
|
4
|
+
}
|
5
|
+
function c(r, i, s) {
|
6
|
+
e.user.phone === "" && e.user.email === "" ? s("/auth/signin") : s();
|
7
|
+
}
|
8
|
+
function f(r, i, s) {
|
9
|
+
if (e.access.status)
|
10
|
+
return s("/profile/" + e.user._id);
|
11
|
+
s();
|
12
|
+
}
|
13
|
+
function a(r, i, s) {
|
14
|
+
if (e.access.status !== !0)
|
15
|
+
return s("/auth/signin");
|
16
|
+
s();
|
17
|
+
}
|
18
|
+
async function m(r, i, s) {
|
19
|
+
var n;
|
20
|
+
if (((n = e.access.roles) != null && n.includes("ROLE_ADMIN") ? e.access.roles.includes("ROLE_ADMIN") : !1) !== !0)
|
21
|
+
return s("/401");
|
22
|
+
s();
|
23
|
+
}
|
24
|
+
export {
|
25
|
+
c as checkUser,
|
26
|
+
m as requiresAdmin,
|
27
|
+
a as requiresAuth,
|
28
|
+
f as requiresNoAuth,
|
29
|
+
u as resetUser
|
30
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../components/layouts/Auth.vue.cjs"),e=require("../middlewares/auth.validation.cjs"),r={path:"auth",name:"Authentication",meta:{title:{en:"Аутентификация",ru:"Authentication"}},component:t.default,children:[{path:"signin",name:"Sign In",beforeEnter:[e.requiresNoAuth,e.resetUser],meta:{title:{en:"Sign In",ru:"Вход"}},component:()=>Promise.resolve().then(()=>require("../components/pages/SignIn.vue.cjs"))},{path:"reset-password",name:"Reset Password",beforeEnter:[e.requiresNoAuth,e.resetUser],meta:{title:{en:"Reset Password",ru:"Сбросить Пароль"}},component:()=>Promise.resolve().then(()=>require("../components/pages/ResetPassword.vue.cjs"))},{path:"signup",name:"Sign Up",beforeEnter:[e.requiresNoAuth,e.resetUser],meta:{title:{en:"Sign Up",ru:"Регистрация"}},component:()=>Promise.resolve().then(()=>require("../components/pages/SignUp.vue.cjs"))},{path:"enter-code",name:"Enter Code",beforeEnter:[e.requiresNoAuth,e.checkUser],meta:{title:{en:"Enter Code",ru:"Введите Код"}},component:()=>Promise.resolve().then(()=>require("../components/pages/EnterCode.vue.cjs"))},{path:"enter-password",name:"Enter Password",beforeEnter:[e.requiresNoAuth,e.checkUser],meta:{title:{en:"Enter Password",ru:"Введите Пароль"}},component:()=>Promise.resolve().then(()=>require("../components/pages/EnterPassword.vue.cjs"))},{path:"invite",name:"Invite",beforeEnter:[e.requiresNoAuth,e.resetUser],meta:{title:{en:"Invite",ru:"Приглашение"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Invite.vue.cjs"))}]};exports.default=r;
|
@@ -0,0 +1,119 @@
|
|
1
|
+
import r from "../components/layouts/Auth.vue.js";
|
2
|
+
import { requiresNoAuth as e, resetUser as t, checkUser as n } from "../middlewares/auth.validation.js";
|
3
|
+
const i = {
|
4
|
+
path: "auth",
|
5
|
+
name: "Authentication",
|
6
|
+
meta: {
|
7
|
+
title: {
|
8
|
+
en: "Аутентификация",
|
9
|
+
ru: "Authentication"
|
10
|
+
}
|
11
|
+
},
|
12
|
+
component: r,
|
13
|
+
children: [{
|
14
|
+
path: "signin",
|
15
|
+
name: "Sign In",
|
16
|
+
beforeEnter: [
|
17
|
+
e,
|
18
|
+
t
|
19
|
+
],
|
20
|
+
meta: {
|
21
|
+
title: {
|
22
|
+
en: "Sign In",
|
23
|
+
ru: "Вход"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
component: () => import(
|
27
|
+
/* webpackChunkName: "signin" */
|
28
|
+
"../components/pages/SignIn.vue.js"
|
29
|
+
)
|
30
|
+
}, {
|
31
|
+
path: "reset-password",
|
32
|
+
name: "Reset Password",
|
33
|
+
beforeEnter: [
|
34
|
+
e,
|
35
|
+
t
|
36
|
+
],
|
37
|
+
meta: {
|
38
|
+
title: {
|
39
|
+
en: "Reset Password",
|
40
|
+
ru: "Сбросить Пароль"
|
41
|
+
}
|
42
|
+
},
|
43
|
+
component: () => import(
|
44
|
+
/* webpackChunkName: "reset-password" */
|
45
|
+
"../components/pages/ResetPassword.vue.js"
|
46
|
+
)
|
47
|
+
}, {
|
48
|
+
path: "signup",
|
49
|
+
name: "Sign Up",
|
50
|
+
beforeEnter: [
|
51
|
+
e,
|
52
|
+
t
|
53
|
+
],
|
54
|
+
meta: {
|
55
|
+
title: {
|
56
|
+
en: "Sign Up",
|
57
|
+
ru: "Регистрация"
|
58
|
+
}
|
59
|
+
},
|
60
|
+
component: () => import(
|
61
|
+
/* webpackChunkName: "signup" */
|
62
|
+
"../components/pages/SignUp.vue.js"
|
63
|
+
)
|
64
|
+
}, {
|
65
|
+
path: "enter-code",
|
66
|
+
name: "Enter Code",
|
67
|
+
beforeEnter: [
|
68
|
+
e,
|
69
|
+
n
|
70
|
+
],
|
71
|
+
meta: {
|
72
|
+
title: {
|
73
|
+
en: "Enter Code",
|
74
|
+
ru: "Введите Код"
|
75
|
+
}
|
76
|
+
},
|
77
|
+
component: () => import(
|
78
|
+
/* webpackChunkName: "signup" */
|
79
|
+
"../components/pages/EnterCode.vue.js"
|
80
|
+
)
|
81
|
+
}, {
|
82
|
+
path: "enter-password",
|
83
|
+
name: "Enter Password",
|
84
|
+
beforeEnter: [
|
85
|
+
e,
|
86
|
+
n
|
87
|
+
],
|
88
|
+
meta: {
|
89
|
+
title: {
|
90
|
+
en: "Enter Password",
|
91
|
+
ru: "Введите Пароль"
|
92
|
+
}
|
93
|
+
},
|
94
|
+
component: () => import(
|
95
|
+
/* webpackChunkName: "signup" */
|
96
|
+
"../components/pages/EnterPassword.vue.js"
|
97
|
+
)
|
98
|
+
}, {
|
99
|
+
path: "invite",
|
100
|
+
name: "Invite",
|
101
|
+
beforeEnter: [
|
102
|
+
e,
|
103
|
+
t
|
104
|
+
],
|
105
|
+
meta: {
|
106
|
+
title: {
|
107
|
+
en: "Invite",
|
108
|
+
ru: "Приглашение"
|
109
|
+
}
|
110
|
+
},
|
111
|
+
component: () => import(
|
112
|
+
/* webpackChunkName: "signup" */
|
113
|
+
"../components/pages/Invite.vue.js"
|
114
|
+
)
|
115
|
+
}]
|
116
|
+
};
|
117
|
+
export {
|
118
|
+
i as default
|
119
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("axios"),d=require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),g=require("../../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),w=require("vue"),c=require("../../../globals/store/globals.cjs"),h=require("./twofa.cjs"),i=k.create({baseURL:process.env.API_URL,withCredentials:!0}),o=w.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1},accesses:[]});async function l(){try{const e=await j("user");if(console.log("cookie is",e),e){const{_id:t,email:s,phone:n,roles:a,accessToken:r}=e;console.log("accessToken is",r),i.interceptors.request.use(u=>(u.headers["x-access-token"]=r,u),u=>Promise.reject(u));const f=(await i.get("/api/auth/check-accesses")).data;Object.assign(o.user,{_id:t,email:s,phone:n}),Object.assign(o.access,{token:r,roles:a,status:!!r}),o.accesses=f}}catch(e){console.error("Error initializing app:",e),O("user"),o.accesses=[]}}l();const m={async login(e,t){try{const s=await i.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(o.user,{...s.data}),Object.assign(o.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),await l(),s.data}catch(s){return Object.assign(o.access,{token:null,status:!1,roles:null}),console.log(s),c.setError(s),Promise.reject(s)}},async signup(e,t,s){const{password:n,passwordRepeat:a}=o.user;if(console.log(n),console.log(a),n!==a){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(r),new Error(r.response.status)}try{const r=await i.post("/api/auth/signup",{...e,type:t,inviteCode:s});return console.log(r),r.data.accessToken&&p("user",r.data),Object.assign(o.user,{...r.data}),Object.assign(o.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),await l(),r.data}catch(r){throw c.setError(r),console.log("Sign up falied"),r}},logout(){O("user"),Object.assign(o.user,{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(o.access,{roles:null,token:null,status:!1}),o.accesses=[]},async resetPassword(e,t){try{const s=await i.post("/api/auth/reset-password",{email:e.email,phone:e.phone,type:t});return Object.assign(h.state.code,{...s.data,isSended:!0}),s.data}catch(s){return c.setError(s),Promise.reject(s)}},async updatePassword(e,t){const{password:s,passwordRepeat:n}=o.user;if(s!==n){const a={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(a),new Error(a.response.status)}try{const a=await i.post("/api/auth/update-password",{email:e.email,phone:e.phone,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return a.data.accessToken&&p("user",a.data),Object.assign(o.user,{...a.data}),Object.assign(o.access,{token:a.data.accessToken,status:!0}),a.data}catch(a){return c.setError(a),Promise.reject(a)}}},P={development:{secure:!1,expires:7,sameSite:"Lax"},production:{expires:7,path:"/",domain:process.env.DOMAIN_URL,sameSite:"none",secure:!0}};async function j(e){if(process.env.MOBILE_APP){const{value:t}=await g.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?g.Preferences.set({key:e,value:JSON.stringify(t)}):d.default.set(e,JSON.stringify(t),P[s])}function O(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)g.Preferences.remove({key:e});else{const s=t==="production"?{domain:process.env.DOMAIN_URL}:{};d.default.remove(e,s)}}w.watch(o,(e,t)=>{});exports.actions=m;exports.initialize=l;exports.state=o;
|