Files
twofauth-rs/public/build/assets/QRcode-Da_iUmWo.js
T
wt cf25e28c28
Rust verification / test (push) Successful in 4m10s
initial commit
2026-10-28 15:59:54 +07:00

2 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{a6 as f,I as h,l as r,m as s,j as a,k as v,i as l,w as i,a2 as w,e as y,f as n,g as B,h as c,d as V,p as b,t as N}from"./app-dvJP63FL.js";const x={class:"modal modal-otp is-active"},R={class:"modal-card is-flex-grow-1"},S={class:"modal-card-body modal-slot py-0 is-align-content-center has-text-centered"},$={class:"has-text-centered m-5"},q=["src","alt"],C={key:1},T={__name:"QRcode",setup(Q){const d=B(),u=w(),t=y();f(()=>{_()});async function _(){const{data:e}=await h.getQrcode(u.params.twofaccountId);t.value=e.qrcode}return(e,o)=>{const m=n("Spinner"),p=n("NavigationButton"),g=n("router-link"),k=n("VueFooter");return c(),r("div",x,[o[1]||(o[1]=s("div",{class:"modal-background"},null,-1)),s("div",R,[s("section",S,[s("p",$,[a(t)?(c(),r("img",{key:0,src:a(t),class:"qrcode has-background-light",alt:e.$t("alttext.image_of_qrcode_to_scan")},null,8,q)):v("",!0),l(m,{isVisible:!a(t),type:"raw",rawSize:32},null,8,["isVisible"])])]),l(k,null,{default:i(()=>[l(p,{action:"close",onClosed:o[0]||(o[0]=F=>a(d).push({name:"accounts"})),"current-page-title":e.$t("title.showQRcode")},null,8,["current-page-title"])]),subpart:i(()=>[e.$route.name!="accounts"?(c(),V(g,{key:0,id:"lnkBackToHome",to:{name:"accounts"},class:"has-text-grey"},{default:i(()=>[b(N(e.$t("link.back_to_home")),1)]),_:1})):(c(),r("span",C," "))]),_:1})])])}}};export{T as default};