mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-03 22:01:45 +01:00
1 line
1.6 KiB
Plaintext
1 line
1.6 KiB
Plaintext
{"version":3,"file":"QRcode-B4Y7o_65.js","sources":["../../../resources/js/views/twofaccounts/QRcode.vue"],"sourcesContent":["<script setup>\n import twofaccountService from '@/services/twofaccountService'\n import Spinner from '@/components/Spinner.vue'\n\n const router = useRouter()\n const route = useRoute()\n const qrcode = ref()\n\n onBeforeMount(() => {\n getQRcode()\n })\n\n /**\n * Get a QR code image resource from backend\n */\n async function getQRcode () {\n const { data } = await twofaccountService.getQrcode(route.params.twofaccountId)\n qrcode.value = data.qrcode\n }\n</script>\n\n<template>\n <div class=\"modal modal-otp is-active\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-content modal-with-footer\">\n <p class=\"has-text-centered m-5\">\n <img v-if=\"qrcode\" :src=\"qrcode\" class=\"qrcode has-background-light\" :alt=\"$t('commons.image_of_qrcode_to_scan')\">\n <Spinner :isVisible=\"!qrcode\" :type=\"'raw'\" class=\"is-size-1\" />\n </p>\n </div>\n <VueFooter :showButtons=\"true\" :internalFooterType=\"'modal'\">\n <ButtonBackCloseCancel :returnTo=\"{ name: 'accounts' }\" action=\"close\" />\n </VueFooter>\n </div>\n</template>"],"names":["useRouter","route","useRoute","qrcode","ref","onBeforeMount","getQRcode","data","twofaccountService"],"mappings":"maAImBA,EAAS,EACxB,MAAMC,EAAQC,EAAQ,EAChBC,EAASC,EAAG,EAElBC,EAAc,IAAM,CAChBC,EAAS,CACZ,CAAA,EAKD,eAAeA,GAAa,CACxB,KAAM,CAAE,KAAAC,CAAI,EAAK,MAAMC,EAAmB,UAAUP,EAAM,OAAO,aAAa,EAC9EE,EAAO,MAAQI,EAAK,MAC5B"} |