@ozdao/martyrs 0.2.585 → 0.2.586
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth.server.js +161 -96
- package/dist/{authJwt-J1csaMWA.js → authJwt-DKbMMjw0.js} +33 -0
- package/dist/chats.server.js +2 -2
- package/dist/community.server.js +1 -1
- package/dist/core.server.js +191 -2
- package/dist/{core.websocket-C2FxNmZ1.js → core.websocket-Cl76z2wT.js} +41 -5
- package/dist/{crud-q1ye5IhV.js → crud-DpOXTZep.js} +1 -1
- package/dist/events.server.js +2 -2
- package/dist/files.server.js +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/index-kvBwwb0w.js +427 -0
- package/dist/inventory.server.js +2 -2
- package/dist/{mailing-DuEFRsa3.js → mailing-DT7nbNjZ.js} +16 -3
- package/dist/{main-xL-jtBkT.js → main-BIf-WirR.js} +863 -865
- package/dist/marketplace.server.js +1 -1
- package/dist/martyrs/dist/{main-xL-jtBkT.js → main-BIf-WirR.js} +192 -38
- package/dist/martyrs/dist/main-BIf-WirR.js.map +1 -0
- package/dist/martyrs/dist/{web-BA6h6Z8P.js → web-O7lXcjg0.js} +2 -2
- package/dist/martyrs/dist/{web-BA6h6Z8P.js.map → web-O7lXcjg0.js.map} +1 -1
- package/dist/martyrs/src/components/Button/{Button.vue2.js → Button.vue.js} +8 -7
- package/dist/martyrs/src/components/Button/Button.vue.js.map +1 -0
- package/dist/martyrs/src/components/Feed/Feed.vue.js +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue.js +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue.js.map +1 -1
- package/dist/martyrs/src/components/Spoiler/{Spoiler.vue2.js → Spoiler.vue.js} +2 -2
- package/dist/martyrs/src/components/Spoiler/Spoiler.vue.js.map +1 -0
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js +17 -22
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/auth/auth.client.js +18 -24
- package/dist/martyrs/src/modules/auth/auth.client.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js +178 -0
- package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +53 -45
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +198 -14
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +70 -29
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +86 -30
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/plugins/otp.plugin.js +100 -0
- package/dist/martyrs/src/modules/auth/views/plugins/otp.plugin.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/router/auth.router.js +2 -31
- package/dist/martyrs/src/modules/auth/views/router/auth.router.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/router/users.router.js +0 -14
- package/dist/martyrs/src/modules/auth/views/router/users.router.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.js +1 -56
- package/dist/martyrs/src/modules/auth/views/store/auth.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/store/users.js +5 -1
- package/dist/martyrs/src/modules/auth/views/store/users.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js +0 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupAuth.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/elements/OnlineIndicator.vue.js +74 -0
- package/dist/martyrs/src/modules/core/views/components/elements/OnlineIndicator.vue.js.map +1 -0
- package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +63 -47
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/{Filters.vue2.js → Filters.vue.js} +2 -2
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue.js.map +1 -0
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/pages/Marketplace.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +0 -1
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/player/PlayerControls.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js +1 -1
- package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +1 -2
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +0 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +0 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +0 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +0 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/music.server.js +1 -1
- package/dist/notifications.server.js +1 -1
- package/dist/orders.server.js +7 -6
- package/dist/organizations.server.js +2 -2
- package/dist/products.server.js +2 -2
- package/dist/profile.schema-C31Lynn3.js +21 -0
- package/dist/rents.server.js +1 -1
- package/dist/sessions.service-COcwjd0f.js +86 -0
- package/dist/style.css +178 -108
- package/dist/{tickets.controller-B7r0mK-5.js → tickets.controller-DdF85W-i.js} +1 -1
- package/dist/visitors.service-B1dhhuSo.js +83 -0
- package/dist/wallet.server.js +2 -2
- package/dist/{web-BA6h6Z8P.js → web-O7lXcjg0.js} +1 -1
- package/package.json +5 -1
- package/src/cli/commands/create.js +106 -0
- package/src/cli/index.js +25 -0
- package/src/cli/templates/app/.env.development.mustache +14 -0
- package/src/cli/templates/app/.env.production.mustache +14 -0
- package/src/cli/templates/app/Dockerfile +36 -0
- package/src/cli/templates/app/babel.config.js +14 -0
- package/src/cli/templates/app/env.js +3 -0
- package/src/cli/templates/app/index.js +46 -0
- package/src/cli/templates/app/mongodb.config.js +18 -0
- package/src/cli/templates/app/package.json.mustache +65 -0
- package/src/cli/templates/app/src/client.js +22 -0
- package/src/cli/templates/app/src/components/pages/Index.vue +11 -0
- package/src/cli/templates/app/src/configs/global.config.js.mustache +40 -0
- package/src/cli/templates/app/src/localization/extensions.js +2 -0
- package/src/cli/templates/app/src/localization/index.js +44 -0
- package/src/cli/templates/app/src/localization/overrides.js +2 -0
- package/src/cli/templates/app/src/localization/translations.js +10 -0
- package/src/cli/templates/app/src/models/index.js +9 -0
- package/src/cli/templates/app/src/router/index.js +48 -0
- package/src/cli/templates/app/src/scss/theme.scss +18 -0
- package/src/cli/templates/app/src/server.js +68 -0
- package/src/cli/templates/app/src/store/index.js +9 -0
- package/src/cli/templates/docker-compose.yaml.mustache +47 -0
- package/src/cli/templates/nginx/Dockerfile +5 -0
- package/src/cli/templates/nginx/default.conf.mustache +55 -0
- package/src/cli/templates/public/favicon/.gitkeep +0 -0
- package/src/cli/templates/start-dev.sh.mustache +131 -0
- package/src/cli/templates/start-prod.sh.mustache +12 -0
- package/src/components/Button/Button.vue +61 -15
- package/src/components/Loader/Loader.vue +1 -1
- package/src/components/Tooltip/Tooltip.vue +31 -23
- package/src/modules/TASKS.MD +30 -1
- package/src/modules/auth/CLAUDE.md +381 -0
- package/src/modules/auth/FIXES.md +0 -38
- package/src/modules/auth/auth.client.js +4 -6
- package/src/modules/auth/auth.server.js +4 -15
- package/src/modules/auth/controllers/middlewares/authJwt.js +59 -17
- package/src/modules/auth/controllers/middlewares/index.js +4 -1
- package/src/modules/auth/controllers/middlewares/otp.middleware.js +166 -0
- package/src/modules/auth/controllers/middlewares/verifySignUp.js +0 -1
- package/src/modules/auth/controllers/middlewares/verifyUser.js +58 -11
- package/src/modules/auth/controllers/routes/auth.routes.js +48 -6
- package/src/modules/auth/controllers/routes/users.routes.js +29 -8
- package/src/modules/auth/controllers/services/auth.service.js +62 -12
- package/src/modules/auth/controllers/services/otp.service.js +109 -0
- package/src/modules/auth/controllers/services/users.service.js +46 -6
- package/src/modules/auth/models/otp.model.js +20 -0
- package/src/modules/auth/views/components/blocks/OtpDialog.vue +168 -0
- package/src/modules/auth/views/components/pages/Profile.vue +18 -13
- package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +199 -45
- package/src/modules/auth/views/components/pages/ResetPassword.vue +170 -132
- package/src/modules/auth/views/components/pages/SignIn.vue +2 -1
- package/src/modules/auth/views/components/pages/SignUp.vue +203 -147
- package/src/modules/auth/views/plugins/otp.plugin.js +104 -0
- package/src/modules/auth/views/router/auth.router.js +1 -24
- package/src/modules/auth/views/router/users.router.js +1 -12
- package/src/modules/auth/views/store/auth.js +0 -68
- package/src/modules/auth/views/store/users.js +6 -2
- package/src/modules/core/controllers/classes/core.websocket.js +57 -6
- package/src/modules/core/controllers/middlewares/visitor.logger.js +49 -0
- package/src/modules/core/controllers/services/requests.service.js +53 -0
- package/src/modules/core/controllers/services/sessions.service.js +98 -0
- package/src/modules/core/controllers/services/visitors.service.js +102 -0
- package/src/modules/core/controllers/utils/mailing.js +16 -3
- package/src/modules/core/core.server.js +45 -3
- package/src/modules/core/models/request.model.js +30 -0
- package/src/modules/core/models/session.model.js +43 -0
- package/src/modules/core/models/visitor.model.js +28 -0
- package/src/modules/core/views/components/elements/OnlineIndicator.vue +115 -0
- package/src/modules/core/views/components/layouts/App.vue +2 -2
- package/src/modules/core/views/components/layouts/Client.vue +443 -477
- package/src/modules/orders/controllers/orders.controller.js +3 -3
- package/src/modules/products/components/pages/Products.vue +1 -1
- package/dist/_virtual/alignment-pattern.js +0 -5
- package/dist/_virtual/alignment-pattern.js.map +0 -1
- package/dist/_virtual/browser.js +0 -8
- package/dist/_virtual/browser.js.map +0 -1
- package/dist/_virtual/browser2.js +0 -5
- package/dist/_virtual/browser2.js.map +0 -1
- package/dist/_virtual/canvas.js +0 -5
- package/dist/_virtual/canvas.js.map +0 -1
- package/dist/_virtual/dijkstra.js +0 -5
- package/dist/_virtual/dijkstra.js.map +0 -1
- package/dist/_virtual/error-correction-code.js +0 -5
- package/dist/_virtual/error-correction-code.js.map +0 -1
- package/dist/_virtual/error-correction-level.js +0 -5
- package/dist/_virtual/error-correction-level.js.map +0 -1
- package/dist/_virtual/finder-pattern.js +0 -5
- package/dist/_virtual/finder-pattern.js.map +0 -1
- package/dist/_virtual/format-info.js +0 -5
- package/dist/_virtual/format-info.js.map +0 -1
- package/dist/_virtual/galois-field.js +0 -5
- package/dist/_virtual/galois-field.js.map +0 -1
- package/dist/_virtual/mask-pattern.js +0 -5
- package/dist/_virtual/mask-pattern.js.map +0 -1
- package/dist/_virtual/mode.js +0 -5
- package/dist/_virtual/mode.js.map +0 -1
- package/dist/_virtual/polynomial.js +0 -5
- package/dist/_virtual/polynomial.js.map +0 -1
- package/dist/_virtual/qrcode.js +0 -5
- package/dist/_virtual/qrcode.js.map +0 -1
- package/dist/_virtual/regex.js +0 -5
- package/dist/_virtual/regex.js.map +0 -1
- package/dist/_virtual/segments.js +0 -5
- package/dist/_virtual/segments.js.map +0 -1
- package/dist/_virtual/svg-tag.js +0 -5
- package/dist/_virtual/svg-tag.js.map +0 -1
- package/dist/_virtual/utils.js +0 -5
- package/dist/_virtual/utils.js.map +0 -1
- package/dist/_virtual/utils2.js +0 -5
- package/dist/_virtual/utils2.js.map +0 -1
- package/dist/_virtual/version-check.js +0 -5
- package/dist/_virtual/version-check.js.map +0 -1
- package/dist/_virtual/version.js +0 -5
- package/dist/_virtual/version.js.map +0 -1
- package/dist/index-_Edcmck_.js +0 -170
- package/dist/martyrs/dist/main-xL-jtBkT.js.map +0 -1
- package/dist/martyrs/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js +0 -1336
- package/dist/martyrs/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js.map +0 -1
- package/dist/martyrs/src/components/Button/Button.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Spoiler/Spoiler.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js +0 -166
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js.map +0 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +0 -118
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js.map +0 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +0 -360
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js.map +0 -1
- package/dist/martyrs/src/modules/auth/views/store/twofa.js +0 -40
- package/dist/martyrs/src/modules/auth/views/store/twofa.js.map +0 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js +0 -43
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js.map +0 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +0 -47
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js.map +0 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.js +0 -29
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.js.map +0 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +0 -89
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js.map +0 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js +0 -136
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js.map +0 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +0 -238
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js.map +0 -1
- package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.js +0 -9
- package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.js.map +0 -1
- package/dist/martyrs/src/modules/wallet/views/store/wallet.store.js +0 -134
- package/dist/martyrs/src/modules/wallet/views/store/wallet.store.js.map +0 -1
- package/dist/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js +0 -106
- package/dist/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js +0 -79
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js +0 -14
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js +0 -43
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js +0 -85
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js +0 -40
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js +0 -34
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js +0 -36
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js +0 -367
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js +0 -52
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js +0 -25
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js +0 -24
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js +0 -38
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js +0 -46
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js +0 -149
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js +0 -90
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js +0 -41
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js +0 -44
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js +0 -279
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js +0 -38
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js +0 -33
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js +0 -201
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +0 -84
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js +0 -14
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js +0 -107
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js +0 -61
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js +0 -64
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js.map +0 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +0 -87
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js.map +0 -1
- package/dist/profile.schema-CjLOfG7b.js +0 -92
- package/src/modules/auth/controllers/middlewares/visitor.logger.js +0 -75
- package/src/modules/auth/controllers/routes/twofa.routes.js +0 -8
- package/src/modules/auth/controllers/services/twofa.service.js +0 -30
- package/src/modules/auth/models/request.model.js +0 -14
- package/src/modules/auth/models/visitor.model.js +0 -11
- package/src/modules/auth/views/components/pages/EnterCode.vue +0 -204
- package/src/modules/auth/views/components/pages/EnterPassword.vue +0 -123
- package/src/modules/auth/views/components/sections/ProfileEditCredentials.vue +0 -329
- package/src/modules/auth/views/store/twofa.js +0 -70
- package/src/modules/auth//320/220/320/240/320/245/320/230/320/242/320/225/320/232/320/242/320/243/320/240/320/220.md +0 -445
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Types } from "mongoose";
|
|
2
2
|
import apn from "apn";
|
|
3
|
-
import { m as mailing } from "./mailing-
|
|
3
|
+
import { m as mailing } from "./mailing-DT7nbNjZ.js";
|
|
4
4
|
import admin from "firebase-admin";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import webpush from "web-push";
|
package/dist/orders.server.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "./mailing-
|
|
1
|
+
import "./mailing-DT7nbNjZ.js";
|
|
2
2
|
import { q as queryProcessorCore } from "./queryProcessor-C_5Iipam.js";
|
|
3
|
-
import {
|
|
3
|
+
import { g as getVisitorsService } from "./visitors.service-B1dhhuSo.js";
|
|
4
4
|
import { a as applyOwnershipSchema } from "./ownership.schema-fwwDf_e5.js";
|
|
5
5
|
import { a as applyCredentialsSchema } from "./credentials.schema--2vvcu8c.js";
|
|
6
|
-
import {
|
|
6
|
+
import { a as applyProfileSchema } from "./profile.schema-C31Lynn3.js";
|
|
7
|
+
import { C as CRUD } from "./crud-DpOXTZep.js";
|
|
7
8
|
import { c as coreabac } from "./abac-BPl9Bmf9.js";
|
|
8
9
|
import axios from "axios";
|
|
9
10
|
import { V as Verifier, a as Validator } from "./core.verifier-gPPX_jhf.js";
|
|
10
|
-
import { m as middlewareIndexFactory } from "./index-
|
|
11
|
+
import { m as middlewareIndexFactory } from "./index-kvBwwb0w.js";
|
|
11
12
|
const controllerFactory = (db) => {
|
|
12
13
|
const Order = db.order;
|
|
13
14
|
const Customer = db.customer;
|
|
14
15
|
const Department = db.department;
|
|
15
|
-
const { findOrCreateVisitor } = modelsFactory(db);
|
|
16
16
|
const getUsersWithOrdersConfirmAccess = async (organizationId) => {
|
|
17
17
|
console.log("=== Getting users with orders.confirm access ===");
|
|
18
18
|
console.log("Organization ID:", organizationId);
|
|
@@ -118,7 +118,8 @@ const controllerFactory = (db) => {
|
|
|
118
118
|
customer = await Customer.findOne({ $or: [searchCriteria] });
|
|
119
119
|
}
|
|
120
120
|
if (!customer) {
|
|
121
|
-
const
|
|
121
|
+
const visitorsService = getVisitorsService();
|
|
122
|
+
const visitor = await visitorsService.findOrCreateVisitor(req);
|
|
122
123
|
let creatorType = customerInfo.creator?.type || orderCreator.type;
|
|
123
124
|
let creatorTarget = customerInfo.creator?.target || orderCreator.target;
|
|
124
125
|
if (!creatorTarget) {
|
|
@@ -2,8 +2,8 @@ import { c as coreabac } from "./abac-BPl9Bmf9.js";
|
|
|
2
2
|
import { a as applyCredentialsSchema } from "./credentials.schema--2vvcu8c.js";
|
|
3
3
|
import { a as applyOwnershipSchema } from "./ownership.schema-fwwDf_e5.js";
|
|
4
4
|
import { a as applyEngagementSchema } from "./engagement.schema-fh6W1fb_.js";
|
|
5
|
-
import { m as middlewareIndexFactory } from "./index-
|
|
6
|
-
import { m as mailing } from "./mailing-
|
|
5
|
+
import { m as middlewareIndexFactory } from "./index-kvBwwb0w.js";
|
|
6
|
+
import { m as mailing } from "./mailing-DT7nbNjZ.js";
|
|
7
7
|
import { uuid } from "uuidv4";
|
|
8
8
|
import { q as queryProcessorCore } from "./queryProcessor-C_5Iipam.js";
|
|
9
9
|
import { Types } from "mongoose";
|
package/dist/products.server.js
CHANGED
|
@@ -6,9 +6,9 @@ import { a as applyCommonSchema } from "./common.schema-DswiUXKB.js";
|
|
|
6
6
|
import { a as applyEngagementSchema } from "./engagement.schema-fh6W1fb_.js";
|
|
7
7
|
import { a as applyMetadataSchema } from "./metadata.schema-CIRR_WQ-.js";
|
|
8
8
|
import { a as applyOwnershipSchema } from "./ownership.schema-fwwDf_e5.js";
|
|
9
|
-
import { m as middlewareFactory } from "./authJwt-
|
|
9
|
+
import { m as middlewareFactory } from "./authJwt-DKbMMjw0.js";
|
|
10
10
|
import { a as Validator, V as Verifier } from "./core.verifier-gPPX_jhf.js";
|
|
11
|
-
import { C as CRUD } from "./crud-
|
|
11
|
+
import { C as CRUD } from "./crud-DpOXTZep.js";
|
|
12
12
|
const controllerFactory$1 = (db) => {
|
|
13
13
|
const Category = db.category;
|
|
14
14
|
const logger = new LoggerNamespaced(db);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const applyProfileSchema = (function applyProfileSchema2(schema, db) {
|
|
2
|
+
schema.add({
|
|
3
|
+
profile: {
|
|
4
|
+
photo: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: null
|
|
7
|
+
},
|
|
8
|
+
name: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
description: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: null
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
applyProfileSchema as a
|
|
21
|
+
};
|
package/dist/rents.server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as middlewareIndexFactory } from "./index-
|
|
1
|
+
import { m as middlewareIndexFactory } from "./index-kvBwwb0w.js";
|
|
2
2
|
import { L as LoggerNamespaced, c as coreabac } from "./abac-BPl9Bmf9.js";
|
|
3
3
|
import { C as CacheNamespaced } from "./core.cache-DALYFDdy.js";
|
|
4
4
|
import { V as Verifier, a as Validator } from "./core.verifier-gPPX_jhf.js";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
const DEFAULT_SESSION_TTL = 864e3;
|
|
2
|
+
let instance = null;
|
|
3
|
+
function initSessionsService(db) {
|
|
4
|
+
const Session = db.session;
|
|
5
|
+
async function createSession({ userId, visitorId = null, req, expiresIn = DEFAULT_SESSION_TTL }) {
|
|
6
|
+
const session = await Session.create({
|
|
7
|
+
target: new db.mongoose.Types.ObjectId(userId),
|
|
8
|
+
visitor: visitorId ? new db.mongoose.Types.ObjectId(visitorId) : null,
|
|
9
|
+
ip: req.ip,
|
|
10
|
+
userAgent: req.headers["user-agent"],
|
|
11
|
+
expiresAt: new Date(Date.now() + expiresIn * 1e3)
|
|
12
|
+
});
|
|
13
|
+
return session;
|
|
14
|
+
}
|
|
15
|
+
async function validateSession({ sessionId, userId = null }) {
|
|
16
|
+
const query = {
|
|
17
|
+
_id: new db.mongoose.Types.ObjectId(sessionId),
|
|
18
|
+
isActive: true,
|
|
19
|
+
expiresAt: { $gt: /* @__PURE__ */ new Date() }
|
|
20
|
+
};
|
|
21
|
+
if (userId) {
|
|
22
|
+
query.target = new db.mongoose.Types.ObjectId(userId);
|
|
23
|
+
}
|
|
24
|
+
const session = await Session.findOne(query).lean();
|
|
25
|
+
return session;
|
|
26
|
+
}
|
|
27
|
+
async function deactivateSession(sessionId) {
|
|
28
|
+
const session = await Session.findByIdAndUpdate(
|
|
29
|
+
sessionId,
|
|
30
|
+
{
|
|
31
|
+
isActive: false,
|
|
32
|
+
revokedAt: /* @__PURE__ */ new Date()
|
|
33
|
+
},
|
|
34
|
+
{ new: true }
|
|
35
|
+
);
|
|
36
|
+
return session;
|
|
37
|
+
}
|
|
38
|
+
async function deactivateAllUserSessions(userId, reason = null) {
|
|
39
|
+
const result = await Session.updateMany(
|
|
40
|
+
{
|
|
41
|
+
target: new db.mongoose.Types.ObjectId(userId),
|
|
42
|
+
isActive: true
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
isActive: false,
|
|
46
|
+
revokedAt: /* @__PURE__ */ new Date()
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
return result;
|
|
50
|
+
}
|
|
51
|
+
async function touchSession(sessionId) {
|
|
52
|
+
const session = await Session.findByIdAndUpdate(
|
|
53
|
+
sessionId,
|
|
54
|
+
{ lastSeenAt: /* @__PURE__ */ new Date() },
|
|
55
|
+
{ new: true }
|
|
56
|
+
);
|
|
57
|
+
return session;
|
|
58
|
+
}
|
|
59
|
+
async function getActiveSessions(userId) {
|
|
60
|
+
const sessions = await Session.find({
|
|
61
|
+
target: new db.mongoose.Types.ObjectId(userId),
|
|
62
|
+
isActive: true,
|
|
63
|
+
expiresAt: { $gt: /* @__PURE__ */ new Date() }
|
|
64
|
+
}).lean();
|
|
65
|
+
return sessions;
|
|
66
|
+
}
|
|
67
|
+
instance = {
|
|
68
|
+
createSession,
|
|
69
|
+
validateSession,
|
|
70
|
+
deactivateSession,
|
|
71
|
+
deactivateAllUserSessions,
|
|
72
|
+
touchSession,
|
|
73
|
+
getActiveSessions
|
|
74
|
+
};
|
|
75
|
+
return instance;
|
|
76
|
+
}
|
|
77
|
+
function getSessionsService() {
|
|
78
|
+
if (!instance) {
|
|
79
|
+
throw new Error("Sessions service not initialized. Call initSessionsService(db) first.");
|
|
80
|
+
}
|
|
81
|
+
return instance;
|
|
82
|
+
}
|
|
83
|
+
export {
|
|
84
|
+
getSessionsService as g,
|
|
85
|
+
initSessionsService as i
|
|
86
|
+
};
|
package/dist/style.css
CHANGED
|
@@ -76,6 +76,14 @@ input[data-v-4a88f18b]::placeholder { color: rgba(var(--dark), 0.4);
|
|
|
76
76
|
}
|
|
77
77
|
.background-div {
|
|
78
78
|
flex-grow: 1;
|
|
79
|
+
}.tab-selector {
|
|
80
|
+
position: absolute;
|
|
81
|
+
width: 50%;
|
|
82
|
+
height: 100%;
|
|
83
|
+
left: 0;
|
|
84
|
+
top: 0;
|
|
85
|
+
z-index: 0;
|
|
86
|
+
transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
79
87
|
}
|
|
80
88
|
input[data-v-ba38e654],
|
|
81
89
|
textarea[data-v-ba38e654],
|
|
@@ -97,68 +105,6 @@ input[type="time"][data-v-ba38e654]::-webkit-calendar-picker-indicator {
|
|
|
97
105
|
opacity: 1;
|
|
98
106
|
color: inherit;
|
|
99
107
|
}
|
|
100
|
-
.tab-selector {
|
|
101
|
-
position: absolute;
|
|
102
|
-
width: 50%;
|
|
103
|
-
height: 100%;
|
|
104
|
-
left: 0;
|
|
105
|
-
top: 0;
|
|
106
|
-
z-index: 0;
|
|
107
|
-
transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
108
|
-
}
|
|
109
|
-
.circular-loader-centered {
|
|
110
|
-
top: calc(50% - 1rem);
|
|
111
|
-
left: calc(50% - 1rem);
|
|
112
|
-
}
|
|
113
|
-
.circular-loader svg {
|
|
114
|
-
animation: rotate 2s linear infinite;
|
|
115
|
-
}
|
|
116
|
-
.circular-loader-circle {
|
|
117
|
-
stroke-dasharray: 1, 200;
|
|
118
|
-
stroke-dashoffset: 0;
|
|
119
|
-
stroke-linecap: round;
|
|
120
|
-
stroke: rgb(var(--main));
|
|
121
|
-
animation: dash 1.5s ease-in-out infinite;
|
|
122
|
-
}
|
|
123
|
-
.circular-loader-fill {
|
|
124
|
-
stroke-linecap: round;
|
|
125
|
-
stroke: rgba(var(--black),0.2);
|
|
126
|
-
}
|
|
127
|
-
.progress-text {
|
|
128
|
-
position: absolute;
|
|
129
|
-
top: 50%;
|
|
130
|
-
left: 50%;
|
|
131
|
-
transform: translate(-50%, -50%);
|
|
132
|
-
font-size: 0.8rem;
|
|
133
|
-
color: rgb(var(--main));
|
|
134
|
-
}
|
|
135
|
-
.status-text {
|
|
136
|
-
position: absolute;
|
|
137
|
-
top: 120%;
|
|
138
|
-
left: calc(50% - 5rem);
|
|
139
|
-
font-size: 0.8rem;
|
|
140
|
-
width: 10rem !important;
|
|
141
|
-
text-align: center;
|
|
142
|
-
}
|
|
143
|
-
@keyframes rotate {
|
|
144
|
-
100% {
|
|
145
|
-
transform: rotate(360deg);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
@keyframes dash {
|
|
149
|
-
0% {
|
|
150
|
-
stroke-dasharray: 1, 200;
|
|
151
|
-
stroke-dashoffset: 0;
|
|
152
|
-
}
|
|
153
|
-
50% {
|
|
154
|
-
stroke-dasharray: 89, 200;
|
|
155
|
-
stroke-dashoffset: -35;
|
|
156
|
-
}
|
|
157
|
-
100% {
|
|
158
|
-
stroke-dasharray: 1, 200;
|
|
159
|
-
stroke-dashoffset: -124;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
108
|
button[disabled] {
|
|
163
109
|
opacity: 0.75 !important;
|
|
164
110
|
pointer-events: none !important;
|
|
@@ -215,7 +161,13 @@ a.button {
|
|
|
215
161
|
align-items: center;
|
|
216
162
|
justify-content: center;
|
|
217
163
|
gap: 8px;
|
|
218
|
-
|
|
164
|
+
transform: translateY(0);
|
|
165
|
+
opacity: 1;
|
|
166
|
+
transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
167
|
+
}
|
|
168
|
+
.button-content.hidden {
|
|
169
|
+
opacity: 0;
|
|
170
|
+
transform: translateY(4px);
|
|
219
171
|
}
|
|
220
172
|
.button-loader {
|
|
221
173
|
position: absolute;
|
|
@@ -223,10 +175,40 @@ a.button {
|
|
|
223
175
|
display: flex;
|
|
224
176
|
align-items: center;
|
|
225
177
|
justify-content: center;
|
|
178
|
+
gap: 4px;
|
|
226
179
|
opacity: 0;
|
|
227
|
-
|
|
180
|
+
transform: translateY(4px);
|
|
181
|
+
transition: opacity 0.25s cubic-bezier(0, 0, 0.2, 1) 0.05s, transform 0.25s cubic-bezier(0, 0, 0.2, 1) 0.05s;
|
|
228
182
|
pointer-events: none;
|
|
229
183
|
}
|
|
184
|
+
.button-loader.active {
|
|
185
|
+
opacity: 1;
|
|
186
|
+
transform: translateY(0);
|
|
187
|
+
}
|
|
188
|
+
.button-loader .dot {
|
|
189
|
+
width: 6px;
|
|
190
|
+
height: 6px;
|
|
191
|
+
border-radius: 50%;
|
|
192
|
+
background: currentColor;
|
|
193
|
+
animation: dot-bounce 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
194
|
+
}
|
|
195
|
+
.button-loader .dot:nth-child(1) {
|
|
196
|
+
animation-delay: 0s;
|
|
197
|
+
}
|
|
198
|
+
.button-loader .dot:nth-child(2) {
|
|
199
|
+
animation-delay: 0.12s;
|
|
200
|
+
}
|
|
201
|
+
.button-loader .dot:nth-child(3) {
|
|
202
|
+
animation-delay: 0.24s;
|
|
203
|
+
}
|
|
204
|
+
@keyframes dot-bounce {
|
|
205
|
+
0%, 100% {
|
|
206
|
+
transform: translateY(0);
|
|
207
|
+
}
|
|
208
|
+
50% {
|
|
209
|
+
transform: translateY(-5px);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
230
212
|
.button-success {
|
|
231
213
|
position: absolute;
|
|
232
214
|
inset: 0;
|
|
@@ -234,9 +216,14 @@ a.button {
|
|
|
234
216
|
align-items: center;
|
|
235
217
|
justify-content: center;
|
|
236
218
|
opacity: 0;
|
|
237
|
-
|
|
219
|
+
transform: translateY(4px);
|
|
220
|
+
transition: opacity 0.2s cubic-bezier(0, 0, 0.2, 1), transform 0.2s cubic-bezier(0, 0, 0.2, 1);
|
|
238
221
|
pointer-events: none;
|
|
239
222
|
}
|
|
223
|
+
.button-success.active {
|
|
224
|
+
opacity: 1;
|
|
225
|
+
transform: translateY(0);
|
|
226
|
+
}
|
|
240
227
|
.button-error {
|
|
241
228
|
position: absolute;
|
|
242
229
|
inset: 0;
|
|
@@ -244,27 +231,13 @@ a.button {
|
|
|
244
231
|
align-items: center;
|
|
245
232
|
justify-content: center;
|
|
246
233
|
opacity: 0;
|
|
247
|
-
|
|
234
|
+
transform: translateY(4px);
|
|
235
|
+
transition: opacity 0.2s cubic-bezier(0, 0, 0.2, 1), transform 0.2s cubic-bezier(0, 0, 0.2, 1);
|
|
248
236
|
pointer-events: none;
|
|
249
237
|
}
|
|
250
|
-
.active {
|
|
238
|
+
.button-error.active {
|
|
251
239
|
opacity: 1;
|
|
252
|
-
|
|
253
|
-
.hidden {
|
|
254
|
-
opacity: 0;
|
|
255
|
-
}.slide-fade-enter-active {
|
|
256
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
257
|
-
}
|
|
258
|
-
.slide-fade-leave-active {
|
|
259
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
260
|
-
}
|
|
261
|
-
.slide-fade-enter-from,
|
|
262
|
-
.slide-fade-leave-to {
|
|
263
|
-
position: absolute;
|
|
264
|
-
transform: translateX(20px);
|
|
265
|
-
opacity: 0;
|
|
266
|
-
left: 0;
|
|
267
|
-
top: 0;
|
|
240
|
+
transform: translateY(0);
|
|
268
241
|
}.slide-fade-enter-active {
|
|
269
242
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
270
243
|
}
|
|
@@ -396,7 +369,117 @@ ul li[data-v-af5048fc] {
|
|
|
396
369
|
}
|
|
397
370
|
.field-wrapper[data-v-af5048fc]:focus {
|
|
398
371
|
outline: none;
|
|
399
|
-
}.
|
|
372
|
+
}.tooltip-container {
|
|
373
|
+
position: relative;
|
|
374
|
+
display: inline-block;
|
|
375
|
+
}
|
|
376
|
+
.tooltip-content {
|
|
377
|
+
position: absolute;
|
|
378
|
+
width: max-content;
|
|
379
|
+
z-index: 1000;
|
|
380
|
+
background: #333;
|
|
381
|
+
color: #fff;
|
|
382
|
+
padding: 5px;
|
|
383
|
+
border-radius: 3px;
|
|
384
|
+
font-size: 14px;
|
|
385
|
+
pointer-events: none;
|
|
386
|
+
}
|
|
387
|
+
.tooltip-enter-active,
|
|
388
|
+
.tooltip-leave-active {
|
|
389
|
+
transition: opacity 0.2s ease;
|
|
390
|
+
}
|
|
391
|
+
.tooltip-enter-from,
|
|
392
|
+
.tooltip-leave-to {
|
|
393
|
+
opacity: 0;
|
|
394
|
+
}.online-indicator {
|
|
395
|
+
position: relative;
|
|
396
|
+
border-radius: 50%;
|
|
397
|
+
background: rgb(var(--grey));
|
|
398
|
+
border: 3px solid rgb(var(--light));
|
|
399
|
+
flex-shrink: 0;
|
|
400
|
+
}
|
|
401
|
+
.online-indicator.is-online {
|
|
402
|
+
background: rgb(var(--green));
|
|
403
|
+
}
|
|
404
|
+
.online-indicator.is-online::before, .online-indicator.is-online::after {
|
|
405
|
+
content: "";
|
|
406
|
+
position: absolute;
|
|
407
|
+
top: 50%;
|
|
408
|
+
left: 50%;
|
|
409
|
+
width: 100%;
|
|
410
|
+
height: 100%;
|
|
411
|
+
background: inherit;
|
|
412
|
+
border-radius: 50%;
|
|
413
|
+
transform: translate(-50%, -50%);
|
|
414
|
+
animation: indicator-pulse 2s infinite ease-out;
|
|
415
|
+
}
|
|
416
|
+
.online-indicator.is-online::after {
|
|
417
|
+
animation-delay: 1s;
|
|
418
|
+
}
|
|
419
|
+
@keyframes indicator-pulse {
|
|
420
|
+
0% {
|
|
421
|
+
transform: translate(-50%, -50%) scale(1);
|
|
422
|
+
opacity: 0.5;
|
|
423
|
+
}
|
|
424
|
+
100% {
|
|
425
|
+
transform: translate(-50%, -50%) scale(1.8);
|
|
426
|
+
opacity: 0;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
.circular-loader-centered {
|
|
430
|
+
top: calc(50% - 1rem);
|
|
431
|
+
left: calc(50% - 1rem);
|
|
432
|
+
}
|
|
433
|
+
.circular-loader svg {
|
|
434
|
+
animation: rotate 2s linear infinite;
|
|
435
|
+
}
|
|
436
|
+
.circular-loader-circle {
|
|
437
|
+
stroke-dasharray: 1, 200;
|
|
438
|
+
stroke-dashoffset: 0;
|
|
439
|
+
stroke-linecap: round;
|
|
440
|
+
stroke: rgb(var(--main));
|
|
441
|
+
animation: dash 1.5s ease-in-out infinite;
|
|
442
|
+
}
|
|
443
|
+
.circular-loader-fill {
|
|
444
|
+
stroke-linecap: round;
|
|
445
|
+
stroke: rgba(var(--black),0.2);
|
|
446
|
+
}
|
|
447
|
+
.progress-text {
|
|
448
|
+
position: absolute;
|
|
449
|
+
top: 50%;
|
|
450
|
+
left: 50%;
|
|
451
|
+
transform: translate(-50%, -50%);
|
|
452
|
+
font-size: 0.8rem;
|
|
453
|
+
color: rgb(var(--main));
|
|
454
|
+
}
|
|
455
|
+
.status-text {
|
|
456
|
+
position: absolute;
|
|
457
|
+
top: 120%;
|
|
458
|
+
left: calc(50% - 5rem);
|
|
459
|
+
font-size: 0.8rem;
|
|
460
|
+
width: 10rem !important;
|
|
461
|
+
text-align: center;
|
|
462
|
+
}
|
|
463
|
+
@keyframes rotate {
|
|
464
|
+
100% {
|
|
465
|
+
transform: rotate(360deg);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
@keyframes dash {
|
|
469
|
+
0% {
|
|
470
|
+
stroke-dasharray: 1, 200;
|
|
471
|
+
stroke-dashoffset: 0;
|
|
472
|
+
}
|
|
473
|
+
50% {
|
|
474
|
+
stroke-dasharray: 89, 200;
|
|
475
|
+
stroke-dashoffset: -35;
|
|
476
|
+
}
|
|
477
|
+
100% {
|
|
478
|
+
stroke-dasharray: 1, 200;
|
|
479
|
+
stroke-dashoffset: -124;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
.vue3-reactive-tel-input {
|
|
400
483
|
display: flex;
|
|
401
484
|
}
|
|
402
485
|
.vue3-reactive-tel-input.disabled .dropdown,
|
|
@@ -463,9 +546,7 @@ ul li[data-v-af5048fc] {
|
|
|
463
546
|
font-size: inherit;
|
|
464
547
|
color: inherit;
|
|
465
548
|
text-align: center;
|
|
466
|
-
}.slide-fade-enter-active
|
|
467
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
468
|
-
}
|
|
549
|
+
}.slide-fade-enter-active,
|
|
469
550
|
.slide-fade-leave-active {
|
|
470
551
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
471
552
|
}
|
|
@@ -479,9 +560,7 @@ ul li[data-v-af5048fc] {
|
|
|
479
560
|
}.input-error {
|
|
480
561
|
border: 1px solid red;
|
|
481
562
|
box-shadow: 0 0 3px 0 red;
|
|
482
|
-
}.slide-fade-enter-active
|
|
483
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
484
|
-
}
|
|
563
|
+
}.slide-fade-enter-active,
|
|
485
564
|
.slide-fade-leave-active {
|
|
486
565
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
487
566
|
}
|
|
@@ -864,14 +943,6 @@ button[data-v-7c705e8c]:disabled {
|
|
|
864
943
|
font-size: 0;
|
|
865
944
|
}
|
|
866
945
|
|
|
867
|
-
.tooltip-container {
|
|
868
|
-
position: relative;
|
|
869
|
-
display: inline-block;
|
|
870
|
-
}
|
|
871
|
-
.tooltip-content {
|
|
872
|
-
pointer-events: none;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
946
|
.comment-children[data-v-d265fc89] {
|
|
876
947
|
margin-top: 1rem;
|
|
877
948
|
}
|
|
@@ -1296,10 +1367,12 @@ to {
|
|
|
1296
1367
|
.shop-cart-active .shopcart-footer {
|
|
1297
1368
|
right: 0;
|
|
1298
1369
|
}
|
|
1299
|
-
}.fade-enter-active,
|
|
1370
|
+
}.fade-enter-active,
|
|
1371
|
+
.fade-leave-active {
|
|
1300
1372
|
transition: opacity 0.5s;
|
|
1301
1373
|
}
|
|
1302
|
-
.fade-enter,
|
|
1374
|
+
.fade-enter,
|
|
1375
|
+
.fade-leave-to {
|
|
1303
1376
|
opacity: 0;
|
|
1304
1377
|
}
|
|
1305
1378
|
.fade-move,
|
|
@@ -1316,7 +1389,7 @@ to {
|
|
|
1316
1389
|
}
|
|
1317
1390
|
|
|
1318
1391
|
/* 3. ensure leaving items are taken out of layout flow so that moving
|
|
1319
|
-
|
|
1392
|
+
animations can be calculated correctly. */
|
|
1320
1393
|
.fade-leave-active {
|
|
1321
1394
|
position: absolute;
|
|
1322
1395
|
}
|
|
@@ -1417,7 +1490,8 @@ to {
|
|
|
1417
1490
|
.scaleIn-leave-active {
|
|
1418
1491
|
transition: all 0.5s ease;
|
|
1419
1492
|
}
|
|
1420
|
-
.scaleIn-enter-active > section,
|
|
1493
|
+
.scaleIn-enter-active > section,
|
|
1494
|
+
.scaleIn-enter-active div,
|
|
1421
1495
|
.scaleIn-leave-active > section,
|
|
1422
1496
|
.scaleIn-leave-active div {
|
|
1423
1497
|
transform-origin: 0 0;
|
|
@@ -1429,7 +1503,8 @@ to {
|
|
|
1429
1503
|
opacity: 0;
|
|
1430
1504
|
transform: scale(0.95);
|
|
1431
1505
|
}
|
|
1432
|
-
.scaleIn-enter-from > section,
|
|
1506
|
+
.scaleIn-enter-from > section,
|
|
1507
|
+
.scaleIn-enter-from div,
|
|
1433
1508
|
.scaleIn-leave-to > section,
|
|
1434
1509
|
.scaleIn-leave-to div {
|
|
1435
1510
|
transform: translateZ(-30px);
|
|
@@ -3337,11 +3412,6 @@ input[data-v-120f776b]:focus {
|
|
|
3337
3412
|
outline: none;
|
|
3338
3413
|
}
|
|
3339
3414
|
|
|
3340
|
-
.address[data-v-3daeada0] {
|
|
3341
|
-
text-wrap: nowrap;
|
|
3342
|
-
display: block;
|
|
3343
|
-
}
|
|
3344
|
-
|
|
3345
3415
|
.barcode-scanner-modal {
|
|
3346
3416
|
visibility: visible;
|
|
3347
3417
|
position: fixed;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import crypto from "crypto";
|
|
2
|
+
const fingerprintCache = /* @__PURE__ */ new Map();
|
|
3
|
+
const generateFingerprint = (req) => {
|
|
4
|
+
const { ip, headers } = req;
|
|
5
|
+
const userAgent = headers["user-agent"] || "";
|
|
6
|
+
const acceptLanguage = headers["accept-language"] || "";
|
|
7
|
+
const key = `${ip}-${userAgent}-${acceptLanguage}`;
|
|
8
|
+
if (fingerprintCache.has(key)) {
|
|
9
|
+
return fingerprintCache.get(key);
|
|
10
|
+
}
|
|
11
|
+
const hash = crypto.createHash("sha256");
|
|
12
|
+
hash.update(key);
|
|
13
|
+
const digest = hash.digest("hex");
|
|
14
|
+
fingerprintCache.set(key, digest);
|
|
15
|
+
return digest;
|
|
16
|
+
};
|
|
17
|
+
const generateVisitorId = () => crypto.randomBytes(16).toString("hex");
|
|
18
|
+
let instance = null;
|
|
19
|
+
function initVisitorsService(db) {
|
|
20
|
+
const Visitor = db.visitor;
|
|
21
|
+
async function findOrCreateVisitor(req) {
|
|
22
|
+
let visitorId = req.cookies?.visitorId;
|
|
23
|
+
let visitor = null;
|
|
24
|
+
if (visitorId && db.mongoose.Types.ObjectId.isValid(visitorId)) {
|
|
25
|
+
try {
|
|
26
|
+
visitor = await Visitor.findById(visitorId);
|
|
27
|
+
} catch (err) {
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
if (!visitor) {
|
|
31
|
+
const fingerprint = generateFingerprint(req);
|
|
32
|
+
visitor = await Visitor.findOneAndUpdate(
|
|
33
|
+
{ fingerprint },
|
|
34
|
+
{
|
|
35
|
+
$setOnInsert: {
|
|
36
|
+
ip: req.ip,
|
|
37
|
+
userAgent: req.headers["user-agent"],
|
|
38
|
+
acceptLanguage: req.headers["accept-language"],
|
|
39
|
+
fingerprint
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{ upsert: true, new: true }
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
return visitor;
|
|
46
|
+
}
|
|
47
|
+
async function linkVisitorToUser({ visitorId, userId, sessionId = null }) {
|
|
48
|
+
const visitor = await Visitor.findByIdAndUpdate(
|
|
49
|
+
visitorId,
|
|
50
|
+
{
|
|
51
|
+
target: new db.mongoose.Types.ObjectId(userId),
|
|
52
|
+
linkedAt: /* @__PURE__ */ new Date()
|
|
53
|
+
},
|
|
54
|
+
{ new: true }
|
|
55
|
+
);
|
|
56
|
+
return visitor;
|
|
57
|
+
}
|
|
58
|
+
async function getVisitorByFingerprint(fingerprint) {
|
|
59
|
+
return Visitor.findOne({ fingerprint });
|
|
60
|
+
}
|
|
61
|
+
async function getVisitorById(visitorId) {
|
|
62
|
+
return Visitor.findById(visitorId);
|
|
63
|
+
}
|
|
64
|
+
instance = {
|
|
65
|
+
findOrCreateVisitor,
|
|
66
|
+
linkVisitorToUser,
|
|
67
|
+
getVisitorByFingerprint,
|
|
68
|
+
getVisitorById,
|
|
69
|
+
generateFingerprint,
|
|
70
|
+
generateVisitorId
|
|
71
|
+
};
|
|
72
|
+
return instance;
|
|
73
|
+
}
|
|
74
|
+
function getVisitorsService() {
|
|
75
|
+
if (!instance) {
|
|
76
|
+
throw new Error("Visitors service not initialized. Call initVisitorsService(db) first.");
|
|
77
|
+
}
|
|
78
|
+
return instance;
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
getVisitorsService as g,
|
|
82
|
+
initVisitorsService as i
|
|
83
|
+
};
|
package/dist/wallet.server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as QRCode from "qrcode";
|
|
2
|
-
import { m as middlewareIndexFactory } from "./index-
|
|
3
|
-
import { c as controllerFactory$1 } from "./tickets.controller-
|
|
2
|
+
import { m as middlewareIndexFactory } from "./index-kvBwwb0w.js";
|
|
3
|
+
import { c as controllerFactory$1 } from "./tickets.controller-DdF85W-i.js";
|
|
4
4
|
import { O as ObserverNamespaced } from "./core.observer-MZsqaE6F.js";
|
|
5
5
|
import Stripe from "stripe";
|
|
6
6
|
const controllerFactory = (db) => {
|