@ozdao/prometheus-framework 0.2.187 → 0.2.189
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/builder.js +6 -3
- package/dist/builder.mjs +6 -3
- 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/node_modules/@unhead/vue/dist/shared/vue.cf295fb1.cjs +1 -0
- package/dist/node_modules/@unhead/vue/dist/shared/vue.cf295fb1.js +26 -0
- package/dist/node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs +1 -0
- package/dist/node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js +26 -0
- package/dist/node_modules/unhead/dist/index.cjs +1 -0
- package/dist/node_modules/unhead/dist/index.js +7 -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/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +5 -5
- 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/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.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 +73 -42
- 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/Comment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.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/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +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/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.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 +3 -3
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.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 +34 -10
- 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/globals/views/classes/globals.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js +72 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +57 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +35 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.js +75 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +194 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.js +38 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +66 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Empty.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Empty.vue.js +16 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +54 -0
- package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.js +7 -0
- package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.js +47 -0
- package/dist/prometheus-framework/src/modules/globals/views/router/scrollBehavior.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/router/scrollBehavior.js +18 -0
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +83 -0
- 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 +11 -11
- 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/Order.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/applications.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.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 +3 -4
- 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 +4 -4
- 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 +3 -4
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.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 +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.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 +3 -3
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/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 +3 -4
- 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 +2 -2
- 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/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.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 +3 -4
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/router/spots.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/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/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
- 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/src/modules/wallet/views/store/payments.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.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/builder/modes/ssr.dev.js +4 -1
- package/src/builder/templates/page.js +1 -1
- package/src/builder/webpack/webpack.config.base.js +2 -1
- package/src/builder/webpack/webpack.config.spa.js +0 -1
- package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -1
- package/src/components/Feed/Feed.vue +5 -5
- package/src/components/Sidebar/Sidebar.vue +2 -2
- 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/controllers/{twofa.controller.js → services/twofa.service.js} +1 -1
- 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 +4 -4
- 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/auth/{store → views/store}/auth.js +1 -1
- package/src/modules/auth/{store → views/store}/twofa.js +1 -1
- 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 +2 -2
- package/src/modules/chats/controllers/chats.controller.js +1 -1
- package/src/modules/chats/routes/chats.routes.js +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +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 +64 -3
- 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/Comment.vue +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/community/models/blogpost.model.js +4 -4
- package/src/modules/community/routes/blog.routes.js +1 -1
- package/src/modules/community/store/blogposts.js +1 -1
- package/src/modules/community/store/reactions.js +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +2 -2
- 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/controllers/events.controller.js +1 -1
- package/src/modules/events/controllers/tickets.controller.js +1 -1
- package/src/modules/events/models/event.model.js +4 -4
- package/src/modules/events/router/events.js +1 -1
- package/src/modules/events/routes/events.routes.js +1 -1
- package/src/modules/events/store/events.js +1 -1
- package/src/modules/events/store/tickets.js +1 -1
- package/src/modules/files/routes/files.routes.js +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +2 -2
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +3 -3
- package/src/modules/gallery/models/photo.model.js +3 -3
- package/src/modules/gallery/routes/gallery.routes.js +2 -2
- package/src/modules/gallery/store/gallery.js +1 -1
- package/src/modules/globals/{services → controllers/classes}/globals.crud.js +2 -2
- package/src/modules/globals/globals.client.js +79 -8
- package/src/modules/globals/globals.server.js +3 -3
- package/src/modules/globals/models/{metadata.schema.js → schemas/metadata.schema.js} +1 -1
- package/src/modules/globals/{services → views/classes}/globals.store.js +1 -1
- package/src/modules/globals/{components → views/components}/blocks/BlockSorting.vue +1 -1
- package/src/modules/globals/views/components/layouts/App.vue +83 -0
- package/src/modules/globals/{components → views/components}/layouts/Client.vue +8 -8
- package/src/modules/globals/{components → views/components}/partials/Header.vue +1 -1
- package/src/modules/globals/views/middlewares/localization.js +16 -0
- package/src/modules/globals/views/router/scrollBehavior.js +30 -0
- package/src/modules/globals/{store → views/store}/globals.js +3 -3
- package/src/modules/integrations/stripe/controllers/webhooks/stripe.webhook.js +2 -2
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +2 -2
- package/src/modules/legal/components/pages/Legal.vue +1 -1
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/marketplace/router/marketplace.js +1 -1
- package/src/modules/orders/components/pages/Order.vue +1 -1
- package/src/modules/orders/components/pages/OrderBackoffice.vue +2 -2
- package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
- package/src/modules/orders/components/pages/Orders.vue +3 -3
- package/src/modules/orders/components/sections/FormAddCustomer.vue +3 -3
- package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
- package/src/modules/orders/controllers/applications.controller.js +1 -1
- package/src/modules/orders/controllers/orders.controller.js +1 -1
- package/src/modules/orders/models/customer.model.js +3 -3
- package/src/modules/orders/models/order.model.js +1 -2
- package/src/modules/orders/orders.server.js +4 -2
- package/src/modules/orders/router/orders.backoffice.router.js +1 -1
- package/src/modules/orders/router/orders.router.js +1 -1
- package/src/modules/orders/routes/applications.routes.js +2 -1
- package/src/modules/orders/routes/orders.routes.js +1 -1
- package/src/modules/orders/store/applications.js +1 -1
- package/src/modules/orders/store/customers.store.js +1 -1
- package/src/modules/orders/store/orders.js +1 -1
- package/src/modules/orders/store/shopcart.js +1 -1
- package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +3 -3
- 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 +2 -2
- package/src/modules/organizations/components/sections/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/Publics.vue +1 -1
- package/src/modules/organizations/controllers/invites.controller.js +1 -1
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/invite.model.js +2 -2
- package/src/modules/organizations/models/organization.model.js +1 -1
- package/src/modules/organizations/router/backoffice.router.js +2 -2
- 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 +2 -2
- package/src/modules/organizations/routes/invites.routes.js +1 -1
- package/src/modules/organizations/store/departments.js +1 -1
- package/src/modules/organizations/store/invites.js +2 -2
- package/src/modules/organizations/store/memberships.js +1 -1
- package/src/modules/organizations/store/organizations.js +1 -1
- package/src/modules/pages/pages.server.js +1 -1
- package/src/modules/pages/views/components/pages/Page.vue +2 -2
- package/src/modules/pages/views/components/pages/PageEdit.vue +1 -1
- package/src/modules/pages/views/components/pages/Pages.vue +3 -3
- package/src/modules/pages/views/components/partials/SidebarPages.vue +2 -2
- package/src/modules/pages/views/router/pages.backoffice.router.js +1 -1
- package/src/modules/pages/views/router/pages.router.js +1 -1
- package/src/modules/pages/views/store/pages.js +1 -1
- package/src/modules/pages/views/store/pages.store.js +1 -1
- package/src/modules/products/components/blocks/CardLeftover.vue +1 -1
- package/src/modules/products/components/pages/EditLeftover.vue +2 -2
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/pages/ProductEdit.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +2 -2
- package/src/modules/products/models/leftover.model.js +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/products/store/categories.js +1 -1
- package/src/modules/products/store/leftovers.js +1 -1
- package/src/modules/products/store/products.js +1 -1
- package/src/modules/projects/store/projects.js +1 -1
- package/src/modules/reports/store/reports.js +1 -1
- package/src/modules/spots/components/layouts/Spots.vue +1 -1
- package/src/modules/spots/components/pages/Map.vue +1 -1
- package/src/modules/spots/router/spots.js +2 -2
- package/src/modules/spots/spots.server.js +1 -1
- package/src/modules/spots/store/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/models/user.model.js +3 -3
- package/src/modules/users/router/users.js +1 -2
- package/src/modules/wallet/controllers/routes/payments.routes.js +2 -2
- package/src/modules/wallet/controllers/routes/rewards.routes.js +1 -1
- package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
- package/src/modules/wallet/views/router/payments.router.js +1 -2
- package/src/modules/wallet/views/store/payments.store.js +1 -1
- package/src/modules/wallet/views/store/wallet.store.js +1 -1
- 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/globals/router/routerGuards.js +0 -29
- 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/{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/globals/{services → controllers/classes}/globals.cache.js +0 -0
- /package/src/modules/globals/{services → controllers/classes}/globals.logger.js +0 -0
- /package/src/modules/globals/{services → controllers/classes}/globals.observer.js +0 -0
- /package/src/modules/globals/{services → controllers/classes}/globals.webhook.js +0 -0
- /package/src/modules/globals/{utils → controllers/utils}/mailing.js +0 -0
- /package/src/modules/globals/{utils → controllers/utils}/parseCookie.js +0 -0
- /package/src/modules/globals/{utils → controllers/utils}/seo-friendly-url.js +0 -0
- /package/src/modules/globals/{utils → controllers/utils}/sitemap.js +0 -0
- /package/src/modules/globals/models/{common.schema.js → schemas/common.schema.js} +0 -0
- /package/src/modules/globals/models/{credentials.schema.js → schemas/credentials.schema.js} +0 -0
- /package/src/modules/globals/models/{engagement.schema.js → schemas/engagement.schema.js} +0 -0
- /package/src/modules/globals/models/{ownership.schema.js → schemas/ownership.schema.js} +0 -0
- /package/src/modules/globals/models/{profile.schema.js → schemas/profile.schema.js} +0 -0
- /package/src/modules/globals/models/{socials.schema.js → schemas/socials.schema.js} +0 -0
- /package/src/modules/globals/{components → views/components}/blocks/BlockFilter.vue +0 -0
- /package/src/modules/globals/{components → views/components}/blocks/BlockSearch.vue +0 -0
- /package/src/modules/globals/{components → views/components}/blocks/CardFooter.vue +0 -0
- /package/src/modules/globals/{components → views/components}/blocks/CardHeader.vue +0 -0
- /package/src/modules/globals/{components → views/components}/elements/ButtonDate.vue +0 -0
- /package/src/modules/globals/{components → views/components}/elements/ButtonSort.vue +0 -0
- /package/src/modules/globals/{components → views/components}/layouts/Empty.vue +0 -0
- /package/src/modules/globals/{components → views/components}/pages/401.vue +0 -0
- /package/src/modules/globals/{components → views/components}/pages/404.vue +0 -0
- /package/src/modules/globals/{components → views/components}/partials/BottomNavigation.vue +0 -0
- /package/src/modules/globals/{components → views/components}/partials/Footer.vue +0 -0
- /package/src/modules/globals/{components → views/components}/partials/Navigation.vue +0 -0
- /package/src/modules/globals/{components → views/components}/partials/NavigationBar.vue +0 -0
- /package/src/modules/globals/{components → views/components}/sections/SectionPageTitle.vue +0 -0
- /package/src/modules/globals/{components → views/components}/sections/Title.vue +0 -0
- /package/src/modules/globals/{components → views/components}/sections/Walkthrough.vue +0 -0
- /package/src/modules/globals/{localization/methods → views/localization}/get-browser-locale.js +0 -0
- /package/src/modules/globals/{mixins → views/mixins}/mixins.js +0 -0
package/dist/auth.server.js
CHANGED
@@ -4,8 +4,15 @@ const require$$0 = require("jsonwebtoken");
|
|
4
4
|
const require$$1$1 = require("bcryptjs");
|
5
5
|
const require$$0$1 = require("mongoose");
|
6
6
|
const require$$1 = require("jwk-to-pem");
|
7
|
-
const mailing = require("./mailing-
|
7
|
+
const mailing = require("./mailing-BQKyTI-q.js");
|
8
8
|
const index = require("./index-oS9yx2Kv.js");
|
9
|
+
var role_model = (db) => {
|
10
|
+
const RoleSchema = new db.mongoose.Schema({
|
11
|
+
name: String
|
12
|
+
});
|
13
|
+
const Role = db.mongoose.model("Role", RoleSchema);
|
14
|
+
return Role;
|
15
|
+
};
|
9
16
|
const jwt$1 = require$$0;
|
10
17
|
const jwkToPem = require$$1;
|
11
18
|
async function verifyAppleIdToken$1(id_token) {
|
@@ -284,7 +291,7 @@ const controllerFactory$3 = (db) => {
|
|
284
291
|
checkAccesses
|
285
292
|
};
|
286
293
|
};
|
287
|
-
var
|
294
|
+
var auth_service = controllerFactory$3;
|
288
295
|
const { sendEmail, sendSms } = mailing.mailing;
|
289
296
|
const controllerFactory$2 = (db) => {
|
290
297
|
const sendcode = async (req, res) => {
|
@@ -313,9 +320,9 @@ const controllerFactory$2 = (db) => {
|
|
313
320
|
sendcode
|
314
321
|
};
|
315
322
|
};
|
316
|
-
var
|
317
|
-
const controllerFactory$1 =
|
318
|
-
const controllerFactoryTwofa =
|
323
|
+
var twofa_service = controllerFactory$2;
|
324
|
+
const controllerFactory$1 = auth_service;
|
325
|
+
const controllerFactoryTwofa = twofa_service;
|
319
326
|
const middlewareFactory$1 = index.middlewares;
|
320
327
|
var auth_routes = function(app, db, origins) {
|
321
328
|
const controller = controllerFactory$1(db);
|
@@ -352,7 +359,7 @@ var auth_routes = function(app, db, origins) {
|
|
352
359
|
controller.checkAccesses
|
353
360
|
);
|
354
361
|
};
|
355
|
-
const controllerFactory =
|
362
|
+
const controllerFactory = twofa_service;
|
356
363
|
const middlewareFactory = index.middlewares;
|
357
364
|
var twofa_routes = function(app, db) {
|
358
365
|
const controller = controllerFactory();
|
@@ -372,26 +379,31 @@ var twofa_routes = function(app, db) {
|
|
372
379
|
controller.sendcode
|
373
380
|
);
|
374
381
|
};
|
375
|
-
|
376
|
-
const Role = mongoose.model(
|
377
|
-
"Role",
|
378
|
-
new mongoose.Schema({
|
379
|
-
name: String
|
380
|
-
})
|
381
|
-
);
|
382
|
-
return Role;
|
383
|
-
};
|
384
|
-
const AuthController = auth_controller;
|
385
|
-
const TwoFaController = twofa_controller;
|
382
|
+
const RoleModel = role_model;
|
386
383
|
const authRoutes = auth_routes;
|
387
384
|
const twofaRoutes = twofa_routes;
|
388
|
-
const
|
385
|
+
const AuthController = auth_service;
|
386
|
+
const TwoFaController = twofa_service;
|
387
|
+
function initializeAuth(app, db, origins, publicPath) {
|
388
|
+
db.role = RoleModel(db);
|
389
|
+
if (app) {
|
390
|
+
authRoutes(app, db);
|
391
|
+
twofaRoutes(app, db);
|
392
|
+
}
|
393
|
+
}
|
389
394
|
var auth_server = {
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
+
initialize: initializeAuth,
|
396
|
+
models: {
|
397
|
+
RoleModel
|
398
|
+
},
|
399
|
+
routes: {
|
400
|
+
authRoutes,
|
401
|
+
twofaRoutes
|
402
|
+
},
|
403
|
+
controllers: {
|
404
|
+
AuthController,
|
405
|
+
TwoFaController
|
406
|
+
}
|
395
407
|
};
|
396
408
|
const auth_server$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(auth_server);
|
397
409
|
module.exports = auth_server$1;
|
package/dist/auth.server.mjs
CHANGED
@@ -3,8 +3,15 @@ import require$$0 from "jsonwebtoken";
|
|
3
3
|
import require$$1$1 from "bcryptjs";
|
4
4
|
import require$$0$1 from "mongoose";
|
5
5
|
import require$$1 from "jwk-to-pem";
|
6
|
-
import { m as mailing } from "./mailing-
|
6
|
+
import { m as mailing } from "./mailing-C3VD4l0h.mjs";
|
7
7
|
import { m as middlewares } from "./index-DahVPg_G.mjs";
|
8
|
+
var role_model = (db) => {
|
9
|
+
const RoleSchema = new db.mongoose.Schema({
|
10
|
+
name: String
|
11
|
+
});
|
12
|
+
const Role = db.mongoose.model("Role", RoleSchema);
|
13
|
+
return Role;
|
14
|
+
};
|
8
15
|
const jwt$1 = require$$0;
|
9
16
|
const jwkToPem = require$$1;
|
10
17
|
async function verifyAppleIdToken$1(id_token) {
|
@@ -283,7 +290,7 @@ const controllerFactory$3 = (db) => {
|
|
283
290
|
checkAccesses
|
284
291
|
};
|
285
292
|
};
|
286
|
-
var
|
293
|
+
var auth_service = controllerFactory$3;
|
287
294
|
const { sendEmail, sendSms } = mailing;
|
288
295
|
const controllerFactory$2 = (db) => {
|
289
296
|
const sendcode = async (req, res) => {
|
@@ -312,9 +319,9 @@ const controllerFactory$2 = (db) => {
|
|
312
319
|
sendcode
|
313
320
|
};
|
314
321
|
};
|
315
|
-
var
|
316
|
-
const controllerFactory$1 =
|
317
|
-
const controllerFactoryTwofa =
|
322
|
+
var twofa_service = controllerFactory$2;
|
323
|
+
const controllerFactory$1 = auth_service;
|
324
|
+
const controllerFactoryTwofa = twofa_service;
|
318
325
|
const middlewareFactory$1 = middlewares;
|
319
326
|
var auth_routes = function(app, db, origins) {
|
320
327
|
const controller = controllerFactory$1(db);
|
@@ -351,7 +358,7 @@ var auth_routes = function(app, db, origins) {
|
|
351
358
|
controller.checkAccesses
|
352
359
|
);
|
353
360
|
};
|
354
|
-
const controllerFactory =
|
361
|
+
const controllerFactory = twofa_service;
|
355
362
|
const middlewareFactory = middlewares;
|
356
363
|
var twofa_routes = function(app, db) {
|
357
364
|
const controller = controllerFactory();
|
@@ -371,26 +378,31 @@ var twofa_routes = function(app, db) {
|
|
371
378
|
controller.sendcode
|
372
379
|
);
|
373
380
|
};
|
374
|
-
|
375
|
-
const Role = mongoose.model(
|
376
|
-
"Role",
|
377
|
-
new mongoose.Schema({
|
378
|
-
name: String
|
379
|
-
})
|
380
|
-
);
|
381
|
-
return Role;
|
382
|
-
};
|
383
|
-
const AuthController = auth_controller;
|
384
|
-
const TwoFaController = twofa_controller;
|
381
|
+
const RoleModel = role_model;
|
385
382
|
const authRoutes = auth_routes;
|
386
383
|
const twofaRoutes = twofa_routes;
|
387
|
-
const
|
384
|
+
const AuthController = auth_service;
|
385
|
+
const TwoFaController = twofa_service;
|
386
|
+
function initializeAuth(app, db, origins, publicPath) {
|
387
|
+
db.role = RoleModel(db);
|
388
|
+
if (app) {
|
389
|
+
authRoutes(app, db);
|
390
|
+
twofaRoutes(app, db);
|
391
|
+
}
|
392
|
+
}
|
388
393
|
var auth_server = {
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
+
initialize: initializeAuth,
|
395
|
+
models: {
|
396
|
+
RoleModel
|
397
|
+
},
|
398
|
+
routes: {
|
399
|
+
authRoutes,
|
400
|
+
twofaRoutes
|
401
|
+
},
|
402
|
+
controllers: {
|
403
|
+
AuthController,
|
404
|
+
TwoFaController
|
405
|
+
}
|
394
406
|
};
|
395
407
|
const auth_server$1 = /* @__PURE__ */ getDefaultExportFromCjs(auth_server);
|
396
408
|
export {
|
package/dist/builder.js
CHANGED
@@ -55,7 +55,7 @@ var page = `
|
|
55
55
|
<!-- <!DOCTYPE html> -->
|
56
56
|
<html {{{ meta.htmlAttrs }}}>
|
57
57
|
<head {{{ meta.headAttrs }}}>
|
58
|
-
{{{ meta.
|
58
|
+
{{{ meta.headTags }}}
|
59
59
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png">
|
60
60
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
|
61
61
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
|
@@ -197,7 +197,10 @@ var ssr_dev = function createSsrDevServer(projectRoot, { clientConfig: clientCon
|
|
197
197
|
const jsonStats = stats.toJson();
|
198
198
|
if (stats.hasErrors()) {
|
199
199
|
console.error(chalk$1.red("Client compilation error"));
|
200
|
-
jsonStats.errors.forEach((err) =>
|
200
|
+
jsonStats.errors.forEach((err) => {
|
201
|
+
if (err.details) console.error(chalk$1.red(err.details));
|
202
|
+
else console.error(chalk$1.red(err.stack));
|
203
|
+
});
|
201
204
|
return;
|
202
205
|
}
|
203
206
|
const { entrypoints, outputPath } = jsonStats;
|
@@ -545,6 +548,7 @@ var webpack_config_base = (projectRoot) => {
|
|
545
548
|
new VueLoaderPlugin(),
|
546
549
|
new Dotenv({
|
547
550
|
path: `.env.${process.env.NODE_ENV}`
|
551
|
+
// ...(process.env.MODE === "SPA" ? [{path: '.env.mobile'}] : []),
|
548
552
|
}),
|
549
553
|
new webpack$4.DefinePlugin({
|
550
554
|
__VUE_I18N_LEGACY_API__: false,
|
@@ -690,7 +694,6 @@ const { StatsWriterPlugin } = require$$4$2;
|
|
690
694
|
const Mustache = require$$1;
|
691
695
|
require$$0$1.promises;
|
692
696
|
const getClientConfig = webpack_config_client;
|
693
|
-
path$1.resolve(__dirname, "../templates/page.html");
|
694
697
|
const isProd = process.env.NODE_ENV === "production";
|
695
698
|
var webpack_config_spa = (projectRoot) => {
|
696
699
|
const spaConfig2 = {
|
package/dist/builder.mjs
CHANGED
@@ -32,7 +32,7 @@ var page = `
|
|
32
32
|
<!-- <!DOCTYPE html> -->
|
33
33
|
<html {{{ meta.htmlAttrs }}}>
|
34
34
|
<head {{{ meta.headAttrs }}}>
|
35
|
-
{{{ meta.
|
35
|
+
{{{ meta.headTags }}}
|
36
36
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png">
|
37
37
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
|
38
38
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
|
@@ -174,7 +174,10 @@ var ssr_dev = function createSsrDevServer(projectRoot, { clientConfig: clientCon
|
|
174
174
|
const jsonStats = stats.toJson();
|
175
175
|
if (stats.hasErrors()) {
|
176
176
|
console.error(chalk$1.red("Client compilation error"));
|
177
|
-
jsonStats.errors.forEach((err) =>
|
177
|
+
jsonStats.errors.forEach((err) => {
|
178
|
+
if (err.details) console.error(chalk$1.red(err.details));
|
179
|
+
else console.error(chalk$1.red(err.stack));
|
180
|
+
});
|
178
181
|
return;
|
179
182
|
}
|
180
183
|
const { entrypoints, outputPath } = jsonStats;
|
@@ -522,6 +525,7 @@ var webpack_config_base = (projectRoot) => {
|
|
522
525
|
new VueLoaderPlugin(),
|
523
526
|
new Dotenv({
|
524
527
|
path: `.env.${process.env.NODE_ENV}`
|
528
|
+
// ...(process.env.MODE === "SPA" ? [{path: '.env.mobile'}] : []),
|
525
529
|
}),
|
526
530
|
new webpack$4.DefinePlugin({
|
527
531
|
__VUE_I18N_LEGACY_API__: false,
|
@@ -667,7 +671,6 @@ const { StatsWriterPlugin } = require$$4$2;
|
|
667
671
|
const Mustache = require$$1;
|
668
672
|
require$$0$1.promises;
|
669
673
|
const getClientConfig = webpack_config_client;
|
670
|
-
path$1.resolve(__dirname, "../templates/page.html");
|
671
674
|
const isProd = process.env.NODE_ENV === "production";
|
672
675
|
var webpack_config_spa = (projectRoot) => {
|
673
676
|
const spaConfig2 = {
|
package/dist/events.server.js
CHANGED
@@ -6,7 +6,7 @@ const queryProcessor$2 = require("./queryProcessor-iewDZq_f.js");
|
|
6
6
|
const metadata_schema = require("./metadata.schema-6slGhpQS.js");
|
7
7
|
const require$$1 = require("stripe");
|
8
8
|
const index = require("./index-oS9yx2Kv.js");
|
9
|
-
const tickets_controller = require("./tickets.controller-
|
9
|
+
const tickets_controller = require("./tickets.controller-BWVUA-GR.js");
|
10
10
|
const common_schema = require("./common.schema-BFhpUXUt.js");
|
11
11
|
const engagement_schema = require("./engagement.schema-D-9md46B.js");
|
12
12
|
const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
|
package/dist/events.server.mjs
CHANGED
@@ -4,7 +4,7 @@ import { q as queryProcessor$2 } from "./queryProcessor-DQSFR9YA.mjs";
|
|
4
4
|
import { s as seoFriendlyUrl, m as metadata_schema } from "./metadata.schema-CK5e2O3f.mjs";
|
5
5
|
import require$$1 from "stripe";
|
6
6
|
import { m as middlewares } from "./index-DahVPg_G.mjs";
|
7
|
-
import { t as tickets_controller } from "./tickets.controller-
|
7
|
+
import { t as tickets_controller } from "./tickets.controller-ChVmHHnj.mjs";
|
8
8
|
import { c as common_schema } from "./common.schema-ChBVARrs.mjs";
|
9
9
|
import { e as engagement_schema } from "./engagement.schema-CCdSLKd4.mjs";
|
10
10
|
import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
|
package/dist/globals.server.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
3
3
|
const require$$0 = require("sitemap");
|
4
4
|
const require$$1 = require("zlib");
|
5
|
-
const mailing$1 = require("./mailing-
|
5
|
+
const mailing$1 = require("./mailing-BQKyTI-q.js");
|
6
6
|
const { SitemapStream, streamToPromise } = require$$0;
|
7
7
|
const { createGzip } = require$$1;
|
8
8
|
async function generateSitemap(db, req, res) {
|
package/dist/globals.server.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
2
2
|
import require$$0 from "sitemap";
|
3
3
|
import require$$1 from "zlib";
|
4
|
-
import { m as mailing$1 } from "./mailing-
|
4
|
+
import { m as mailing$1 } from "./mailing-C3VD4l0h.mjs";
|
5
5
|
const { SitemapStream, streamToPromise } = require$$0;
|
6
6
|
const { createGzip } = require$$1;
|
7
7
|
async function generateSitemap(db, req, res) {
|
@@ -0,0 +1,77 @@
|
|
1
|
+
"use strict";
|
2
|
+
const require$$0 = require("dotenv");
|
3
|
+
const require$$1 = require("nodemailer");
|
4
|
+
const require$$0$1 = require("axios");
|
5
|
+
require$$0.config();
|
6
|
+
const nodemailer = require$$1;
|
7
|
+
const axios = require$$0$1;
|
8
|
+
async function sendEmail(to, subject, text, files = []) {
|
9
|
+
const transporter = nodemailer.createTransport({
|
10
|
+
host: process.env.SMTP_HOST,
|
11
|
+
port: process.env.SMTP_PORT,
|
12
|
+
secure: process.env.SMTP_SECURE === "true",
|
13
|
+
// Ensure the secure option is a boolean
|
14
|
+
auth: {
|
15
|
+
user: process.env.SMTP_USER,
|
16
|
+
pass: process.env.SMTP_PASSWORD
|
17
|
+
}
|
18
|
+
});
|
19
|
+
const attachments = files.map((file) => ({
|
20
|
+
filename: file.split("/").pop(),
|
21
|
+
// Extract filename from path
|
22
|
+
path: file
|
23
|
+
// Full path to the file
|
24
|
+
}));
|
25
|
+
const mailOptions = {
|
26
|
+
from: `${process.env.SMTP_NAME} <${process.env.SMTP_EMAIL}>`,
|
27
|
+
to,
|
28
|
+
subject,
|
29
|
+
text,
|
30
|
+
attachments
|
31
|
+
// Add attachments to mail options
|
32
|
+
};
|
33
|
+
try {
|
34
|
+
const info = await transporter.sendMail(mailOptions);
|
35
|
+
console.log("Email sent: " + info.response);
|
36
|
+
return true;
|
37
|
+
} catch (error) {
|
38
|
+
console.log(error);
|
39
|
+
return false;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
async function sendSms(phone, message) {
|
43
|
+
const sessionUrl = `https://api.sms.to/sms/send?api_key=${process.env.SMS_API_KEY}&to=${phone}&message=${encodeURIComponent(message)}&sender_id=${encodeURIComponent(process.env.APP_NAME)}`;
|
44
|
+
console.log(`Phone:${phone} message:${message} session: ${sessionUrl}`);
|
45
|
+
try {
|
46
|
+
const response = await axios.get(sessionUrl);
|
47
|
+
console.log("SMS sent");
|
48
|
+
return true;
|
49
|
+
} catch (error) {
|
50
|
+
console.log(error);
|
51
|
+
return false;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
async function sendChatMessageTelegram(chatIds, text) {
|
55
|
+
const telegramToken = process.env.TELEGRAM_BOT_TOKEN;
|
56
|
+
const telegramUrl = `https://api.telegram.org/bot${telegramToken}/sendMessage`;
|
57
|
+
try {
|
58
|
+
for (const chatId of chatIds) {
|
59
|
+
await axios.post(telegramUrl, {
|
60
|
+
chat_id: chatId,
|
61
|
+
text
|
62
|
+
// reply_markup: inlineKeyboard
|
63
|
+
});
|
64
|
+
}
|
65
|
+
console.log("Telegram message sent");
|
66
|
+
return true;
|
67
|
+
} catch (error) {
|
68
|
+
console.log(error);
|
69
|
+
return false;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
var mailing = {
|
73
|
+
sendEmail,
|
74
|
+
sendSms,
|
75
|
+
sendChatMessageTelegram
|
76
|
+
};
|
77
|
+
exports.mailing = mailing;
|
@@ -0,0 +1,78 @@
|
|
1
|
+
import require$$0 from "dotenv";
|
2
|
+
import require$$1 from "nodemailer";
|
3
|
+
import require$$0$1 from "axios";
|
4
|
+
require$$0.config();
|
5
|
+
const nodemailer = require$$1;
|
6
|
+
const axios = require$$0$1;
|
7
|
+
async function sendEmail(to, subject, text, files = []) {
|
8
|
+
const transporter = nodemailer.createTransport({
|
9
|
+
host: process.env.SMTP_HOST,
|
10
|
+
port: process.env.SMTP_PORT,
|
11
|
+
secure: process.env.SMTP_SECURE === "true",
|
12
|
+
// Ensure the secure option is a boolean
|
13
|
+
auth: {
|
14
|
+
user: process.env.SMTP_USER,
|
15
|
+
pass: process.env.SMTP_PASSWORD
|
16
|
+
}
|
17
|
+
});
|
18
|
+
const attachments = files.map((file) => ({
|
19
|
+
filename: file.split("/").pop(),
|
20
|
+
// Extract filename from path
|
21
|
+
path: file
|
22
|
+
// Full path to the file
|
23
|
+
}));
|
24
|
+
const mailOptions = {
|
25
|
+
from: `${process.env.SMTP_NAME} <${process.env.SMTP_EMAIL}>`,
|
26
|
+
to,
|
27
|
+
subject,
|
28
|
+
text,
|
29
|
+
attachments
|
30
|
+
// Add attachments to mail options
|
31
|
+
};
|
32
|
+
try {
|
33
|
+
const info = await transporter.sendMail(mailOptions);
|
34
|
+
console.log("Email sent: " + info.response);
|
35
|
+
return true;
|
36
|
+
} catch (error) {
|
37
|
+
console.log(error);
|
38
|
+
return false;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
async function sendSms(phone, message) {
|
42
|
+
const sessionUrl = `https://api.sms.to/sms/send?api_key=${process.env.SMS_API_KEY}&to=${phone}&message=${encodeURIComponent(message)}&sender_id=${encodeURIComponent(process.env.APP_NAME)}`;
|
43
|
+
console.log(`Phone:${phone} message:${message} session: ${sessionUrl}`);
|
44
|
+
try {
|
45
|
+
const response = await axios.get(sessionUrl);
|
46
|
+
console.log("SMS sent");
|
47
|
+
return true;
|
48
|
+
} catch (error) {
|
49
|
+
console.log(error);
|
50
|
+
return false;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
async function sendChatMessageTelegram(chatIds, text) {
|
54
|
+
const telegramToken = process.env.TELEGRAM_BOT_TOKEN;
|
55
|
+
const telegramUrl = `https://api.telegram.org/bot${telegramToken}/sendMessage`;
|
56
|
+
try {
|
57
|
+
for (const chatId of chatIds) {
|
58
|
+
await axios.post(telegramUrl, {
|
59
|
+
chat_id: chatId,
|
60
|
+
text
|
61
|
+
// reply_markup: inlineKeyboard
|
62
|
+
});
|
63
|
+
}
|
64
|
+
console.log("Telegram message sent");
|
65
|
+
return true;
|
66
|
+
} catch (error) {
|
67
|
+
console.log(error);
|
68
|
+
return false;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
var mailing = {
|
72
|
+
sendEmail,
|
73
|
+
sendSms,
|
74
|
+
sendChatMessageTelegram
|
75
|
+
};
|
76
|
+
export {
|
77
|
+
mailing as m
|
78
|
+
};
|