PageSourceSearch

https://console.gopluslabs.io/static/js/SignIn-Bh37FfP0.js

js gopluslabs.io collected 2026-10-01 14:30:51 UTC 3,860 bytes, 1 lines download raw bytes

1import{m as e,a,b as l}from"./index-DUTsZrGm.js";/* empty css                     *//* empty css                  *//* empty css                 */import{x as r,ax as s,r as t,y as o,A as u,Q as i,O as n,I as d,V as m,aD as p,aE as c,ag as v,z as f,u as h,M as g}from"./vue-vendor-CWnpe3Tt.js";import{_ as w}from"./auth-logo-gi_QLJVT.js";import{a as y}from"./auth-BfSwUhpF.js";import{T as x}from"./Turnstile-U5i4yKf9.js";import{H as b,I as j,x as _,h as k}from"./element-plus-DF7PAk4y.js";import"./utils--ad82PJh.js";import"./echarts-BraXCa4u.js";const I={class:"sign-in"},A={class:"flex flex-col min-w-[400px]"},P={class:"title"},V={class:"form-group"},$={class:"form-group"},q={class:"flex justify-end"},E={class:"divider"},U=l(r({__name:"SignIn",setup(l){const r=p(),U=c(),{t:R}=s(),T=t(),z=t(),S=t(!1),D=t(""),N=t({email:"",password:""}),O={email:[{required:!0,message:R("auth.validation.emailRequired"),trigger:"blur"},{type:"email",message:R("auth.validation.emailInvalid"),trigger:"blur"}],password:[{required:!0,message:R("auth.validation.passwordRequired"),trigger:"blur"}]},C=e=>{D.value=e},F=()=>{D.value="",e.error("Verification failed. Please try again.")},H=()=>{D.value=""},K=a=>{if(!a)return;let l=a.message||R("auth.forgotPassword.error");1014===+a.code?l=R("auth.error.signError"):1015===+a.code?l=R("auth.error.accountFreez"):1016===+a.code&&(l=R("auth.error.pwdError")),e.error(l)},L=()=>{return l=this,s=null,t=function*(){var l,s,t;if(T.value)try{if(yield T.value.validate(),!D.value)return void e.error("Please complete the verification first");S.value=!0;const s=yield y.login({accountName:N.value.email,password:N.value.password},D.value);1===+s.code&&s.result?(a.setToken(s.result.token),a.setAccount(s.result.accountName),a.setExpireTimestamp(s.result.expireTimestamp),U.query.redirect?r.push(U.query.redirect):r.push("/dashboard")):(K(s),D.value="",null==(l=z.value)||l.reset())}catch(o){K(null==(s=o.response)?void 0:s.data),D.value="",null==(t=z.value)||t.reset()}finally{S.value=!1}},new Promise((e,a)=>{var r=e=>{try{u(t.next(e))}catch(l){a(l)}},o=e=>{try{u(t.throw(e))}catch(l){a(l)}},u=a=>a.done?e(a.value):Promise.resolve(a.value).then(r,o);u((t=t.apply(l,s)).next())});var l,s,t};return(e,a)=>{const l=_,r=j,s=v("router-link"),t=k,p=b;return f(),o("div",I,[u("div",A,[u("h1",P,n(e.$t("auth.signIn.title")),1),i(p,{ref_key:"formRef",ref:T,model:N.value,rules:O,onSubmit:m(L,["prevent"])},{default:d(()=>[u("div",V,[u("label",null,n(e.$t("auth.common.email")),1),i(r,{prop:"email"},{default:d(()=>[i(l,{modelValue:N.value.email,"onUpdate:modelValue":a[0]||(a[0]=e=>N.value.email=e),placeholder:e.$t("auth.common.emailPlaceholder"),type:"email"},null,8,["modelValue","placeholder"])]),_:1})]),u("div",$,[u("label",null,n(e.$t("auth.common.password")),1),i(r,{prop:"password"},{default:d(()=>[i(l,{modelValue:N.value.password,"onUpdate:modelValue":a[1]||(a[1]=e=>N.value.password=e),placeholder:e.$t("auth.common.passwordPlaceholder"),type:"password","show-password":""},null,8,["modelValue","placeholder"])]),_:1})]),i(x,{ref_key:"captchaRef",ref:z,token:D.value,"onUpdate:token":a[2]||(a[2]=e=>D.value=e),"site-key":h("0x4AAAAAADlvKUU613ejfP2L"),size:"flexible",onSuccess:C,onError:F,onExpired:H},null,8,["token","site-key"]),u("div",q,[i(s,{to:"/auth/forgot-password",class:"forget-password-link"},{default:d(()=>[g(n(e.$t("auth.signIn.forgotPassword")),1)]),_:1})]),i(t,{class:"submit-btn",loading:S.value,onClick:L},{default:d(()=>[g(n(e.$t("auth.signIn.submit")),1)]),_:1},8,["loading"]),u("div",E,[u("span",null,n(e.$t("auth.common.or")),1)]),i(s,{to:"/auth/signup",class:"signup-btn"},{default:d(()=>[g(n(e.$t("auth.signIn.signUp")),1)]),_:1})]),_:1},8,["model"])]),a[3]||(a[3]=u("div",{class:"illustration"},[u("img",{src:w,alt:"Auth Illustration"})],-1))])}}}),[["__scopeId","data-v-a7a69785"]]);export{U as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.