All Downloads are FREE. Search and download functionalities are using the official Maven repository.

admin.assets.index-DW0NfX1U.js Maven / Gradle / Ivy

import{d as Q,a as O,m as te,o as N,b as j,e as a,i as ve,n as ge,r as z,p as ce,q as ie,c as oe,s as le,v as V,x as k,h as l,t as $,T as Ee,y as Te,z as we,A as Ie,w as g,f as r,$ as W,g as re,C as Se,D as xe,E as Ce,B as ye,_ as Oe,F as de,G as Xe,H as Re,I as be,J as Ve,K as ee,L as Ae,M as Pe,N as Me,O as De,P as Ye,Q as Ne,R as Le,S as Be,U as Ue,V as ke,W as ze,X as He}from"./index-D2gfy4BV.js";const Fe={class:"absolute-lt z-1 size-full overflow-hidden"},We={class:"absolute -right-300px -top-900px lt-sm:-right-100px lt-sm:-top-1170px"},$e={height:"1337",width:"1337"},Ge=a("path",{id:"path-1",opacity:"1","fill-rule":"evenodd",d:"M1337,668.5 C1337,1037.455193874239 1037.455193874239,1337 668.5,1337 C523.6725684305388,1337 337,1236 370.50000000000006,1094 C434.03835568300906,824.6732385973953 6.906089672974592e-14,892.6277623047779 0,668.5000000000001 C0,299.5448061257611 299.5448061257609,1.1368683772161603e-13 668.4999999999999,0 C1037.455193874239,0 1337,299.544806125761 1337,668.5Z"},null,-1),je={id:"linearGradient-2",x1:"0.79",y1:"0.62",x2:"0.21",y2:"0.86"},Qe=["stop-color"],Ze=["stop-color"],Je=a("g",{opacity:"1"},[a("use",{"xlink:href":"#path-1",fill:"url(#linearGradient-2)","fill-opacity":"1"})],-1),qe={class:"absolute -bottom-400px -left-200px lt-sm:-bottom-760px lt-sm:-left-100px"},Ke={height:"896",width:"967.8852157128662"},et=a("path",{id:"path-2",opacity:"1","fill-rule":"evenodd",d:"M896,448 C1142.6325445712241,465.5747656464056 695.2579309733121,896 448,896 C200.74206902668806,896 5.684341886080802e-14,695.2579309733121 0,448.0000000000001 C0,200.74206902668806 200.74206902668791,5.684341886080802e-14 447.99999999999994,0 C695.2579309733121,0 475,418 896,448Z"},null,-1),tt={id:"linearGradient-3",x1:"0.5",y1:"0",x2:"0.5",y2:"1"},ot=["stop-color"],st=["stop-color"],at=a("g",{opacity:"1"},[a("use",{"xlink:href":"#path-2",fill:"url(#linearGradient-3)","fill-opacity":"1"})],-1),nt=Q({name:"WaveBg",__name:"wave-bg",props:{themeColor:{}},setup(c){const S=c,E=O(()=>te(S.themeColor,200)),s=O(()=>te(S.themeColor,500));return(A,_)=>(N(),j("div",Fe,[a("div",We,[(N(),j("svg",$e,[a("defs",null,[Ge,a("linearGradient",je,[a("stop",{offset:"0","stop-color":E.value,"stop-opacity":"1"},null,8,Qe),a("stop",{offset:"1","stop-color":s.value,"stop-opacity":"1"},null,8,Ze)])]),Je]))]),a("div",qe,[(N(),j("svg",Ke,[a("defs",null,[et,a("linearGradient",tt,[a("stop",{offset:"0","stop-color":s.value,"stop-opacity":"1"},null,8,ot),a("stop",{offset:"1","stop-color":E.value,"stop-opacity":"1"},null,8,st)])]),at]))])]))}}),it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAELklEQVRYR+2YW2wUZRTH//9vtlCoF9IoIklT3PqgPGi326hoetuaGEhIr9SgCYkkgt2WGOQVCca+GavWdr0GjD4YhG3RB3hply1LQA1tEQIxEXapGI2pEkys9LIzx2ylYWfY6e5sF0oi+7hzzvl+3/9855xvhrjNf7zN+XAHcL4Z+n8o6JWTeYt++W25S596AIZy6TB+n3yo+Nchlk8vmIIVowdXU9c3Q1gDSilBlQwjgBAYFGDvdF58/4milqvZwDpOcXWsb5Uh8hmBqkwXFMhlCN8aX5LXNbRy/T+Z+iXsHAFWRXs3QGQPyLucLDJrK5DgUXdTsxPfjAEro8E3Ce50EtxsKxPTwCPH3U2jTmJkBJgWTnAMxDeGMEoa0xQ+LJQnCD4HYFkCyAC3RdwN3U7gMkpxRTTYrMD91sCJIgCxV5R6O1Jcfy7VwonqLoj9/CqB2kF341qncGkBvRe+ureAWpRgoalCBecMFzcdK24YymZRJz5zprgq1tsJwXYL3CVZGvdGHmwZc7JQtra2gE+f712ep2QUYP714DJhaJrXLqXZQszlZwtYdSHoB9ljVk/ePVrSZFL0ZkAlxzQBVseCT8WhZhRThtFB8plk9Zi/qCi8cv0fNxvKFrDy4oF11NXXIFy2EII4iBcG3Y03VLZT8OqRd5aFPduvOEpxRayvXolxAKB2g6NgEhobBlc1HHYKY7WvHf5wtVAPgegIlbbZ9seUZ7AyFnwewi9pGoUyDmhrB931kfnC1ZwOeKlLP8GZJi6QLSFP2yep4toXSbT3ZQAfX3O6omt8Nhd9r/aHQAUMOQywYBZo5uZD2ThQ2rbPCjlnH6yI9rUryE5DU75ctJaake46Be4DuDjF8dFBNA94/AdtiySVxIlpMlTS8td801o70vMigM9huTda2lhcKHVHPO2HZv/P6LIwX7hk/+qzPSvUJGMkrg8AQYTkroRdXMlE+HH/twsG6BsOdJHYZlaO/lBZ6weOiiSXqs3Gqj0TeAxx+T75DIpgwjC0onD51pQD4JaluPrkR/cpFT9DcoVp84LOgTL/DjtBbglgou+puHwB8lEznPxJw1XSX77VtgizBvQNBw4RMqB7xt4Lc3c8lQKJaQHoO4R8ydz0/7MWoCXk8c85MrMC9J3qaafw/WtQlwXST+F3BnAeYB4obgJ1BJIuG+YtiKAjVOZ/Pd1ZdwzoG+4uBtSPpjaRbhXLcwF3hzytb2TilgVgT5BkYybBrTYC+Rvg5nRpdTRJrIs8+VPXPQXj2i4ItxC4O2NQQUQnN4U9rRcz9nH64p4ceM2lziX5Y4s3KHCdUHwE77ecMkMEp6BwhIa2Z6DslZRvfulgHafYLuCas58WLp2aLCFUga70qxOFU6dPFL2W1feYeaU43Y5z/TxnCuYabMEuC043ckdBp4pZ7f8FE5psOI1g6fwAAAAASUVORK5CYII=",lt=["width","height"],ct=["width","height"],rt=["width","height"],dt=a("div",{class:"loading-gif_"},[a("span"),a("span"),a("span"),a("span"),a("span")],-1),pt=[dt],ut={class:"auth-control_"},ht={class:"range-text"},_t=a("div",null,null,-1),mt=a("div",null,null,-1),ft=a("div",null,null,-1),vt=[_t,mt,ft],gt=Q({__name:"App",props:{type:{type:String,default:"modal"},canvasWidth:{type:Number,default:310},canvasHeight:{type:Number,default:160},show:{type:Boolean,default:!1},puzzleScale:{type:Number,default:1},sliderSize:{type:Number,default:50},range:{type:Number,default:10},zIndex:{type:Number,default:999},imgs:{type:Array,default:null},successText:{type:String,default:"验证通过!"},failText:{type:String,default:"验证失败,请重试"},sliderText:{type:String,default:"拖动滑块完成拼图"},className:{type:String,default:""}},emits:["success","fail","close","reset"],setup(c,{expose:S,emit:E}){const s=c;ve(()=>{document.addEventListener("mousemove",R,!1),document.addEventListener("mouseup",T,!1),document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",T,!1),t.isInside=s.type==="inside",s.show&&(!t.isInside&&document.body.classList.add("vue-puzzle-overflow"),H())}),ge(()=>{t.timer1&&clearTimeout(t.timer1),document.removeEventListener("mousemove",R,!1),document.removeEventListener("mouseup",T,!1),document.removeEventListener("touchmove",R,!1),document.removeEventListener("touchend",T,!1)});const A=z(),_=z(),f=z(),X=z(),t=ce({isInside:!1,mouseDown:!1,startWidth:50,startX:0,newX:0,pinX:0,pinY:0,loading:!1,isCanSlide:!1,error:!1,infoBoxShow:!1,infoText:"",infoBoxFail:!1,timer1:void 0,closeDown:!1,isSuccess:!1,imgIndex:-1,isSubmting:!1});ie(()=>s.show,o=>{o?(!t.isInside&&document.body.classList.add("vue-puzzle-overflow"),H()):(t.isSubmting=!1,t.isSuccess=!1,t.infoBoxShow=!1,document.body.classList.remove("vue-puzzle-overflow"))}),ie(()=>s.type,o=>{o==="inside"?(t.isInside=!0,document.body.classList.remove("vue-puzzle-overflow")):t.isInside=!1});const x=O(()=>{const o=t.startWidth+t.newX-t.startX;return os.canvasWidth?s.canvasWidth:o}),d=O(()=>Math.round(Math.max(Math.min(s.puzzleScale,2),.2)*52.5+6)),p=O(()=>Math.max(Math.min(Math.round(s.sliderSize),Math.round(s.canvasWidth*.5)),10)),m=O(()=>s.zIndex!==999?`z-index:${s.zIndex}`:""),u=()=>{!t.mouseDown&&!t.isSubmting&&(t.timer1&&clearTimeout(t.timer1),E("close"))},P=()=>{t.isInside||(t.closeDown=!0)},M=()=>{t.closeDown&&u(),t.closeDown=!1},D=o=>{var n;t.isCanSlide&&(t.mouseDown=!0,t.startWidth=((n=A.value)==null?void 0:n.clientWidth)||0,t.newX=o.clientX!==void 0?o.clientX:o.changedTouches[0].clientX,t.startX=o.clientX!==void 0?o.clientX:o.changedTouches[0].clientX)},R=o=>{t.mouseDown&&(o.preventDefault(),t.newX=o.clientX!==void 0?o.clientX:o.changedTouches[0].clientX)},T=()=>{t.mouseDown&&(t.mouseDown=!1,ue())},L=(o=!1)=>{var n;if(t.loading&&!o)return;t.loading=!0,t.isCanSlide=!1;const h=_.value,v=f.value,w=X.value,e=h==null?void 0:h.getContext("2d",{willReadFrequently:!0}),C=v==null?void 0:v.getContext("2d"),G=w==null?void 0:w.getContext("2d");if(!e||!C||!G){console.error("not found ctx / ctx2 / ctx3");return}const _e=navigator.userAgent.indexOf("Firefox")>=0&&navigator.userAgent.indexOf("Windows")>=0,y=document.createElement("img");if(e.fillStyle="rgba(255,255,255,1)",G.fillStyle="rgba(255,255,255,1)",e.clearRect(0,0,s.canvasWidth,s.canvasHeight),C.clearRect(0,0,s.canvasWidth,s.canvasHeight),t.pinX=i(d.value+20,s.canvasWidth-d.value-10),t.pinY=i(20,s.canvasHeight-d.value-10),y.crossOrigin="anonymous",y.onload=()=>{const[I,J,q,K]=Z(y),se=Math.random(),ae=Math.random(),ne=Math.random(),me=Math.random(),F=se<.33?-1:se<.66?0:1,B=ae<.33?-1:ae<.66?0:1,U=ne<.33?-1:ne<.66?0:1;let Y=me<.6?1:0;F===B&&B===U&&U===Y&&Y===0&&(Y=1),e.save(),b(e,F,B,U,Y),e.closePath(),_e?(e.clip(),e.save(),e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowColor="#000",e.shadowBlur=3,e.fill(),e.restore()):(e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowColor="#000",e.shadowBlur=3,e.fill(),e.clip()),e.drawImage(y,I,J,q,K),G.fillRect(0,0,s.canvasWidth,s.canvasHeight),G.drawImage(y,I,J,q,K),e.globalCompositeOperation="source-atop",b(e,F,B,U,Y),e.arc(t.pinX+Math.ceil(d.value/2),t.pinY+Math.ceil(d.value/2),d.value*1.2,0,Math.PI*2,!0),e.closePath(),e.shadowColor="rgba(255, 255, 255, .8)",e.shadowOffsetX=-1,e.shadowOffsetY=-1,e.shadowBlur=Math.min(Math.ceil(8*s.puzzleScale),12),e.fillStyle="#ffffaa",e.fill();const fe=e.getImageData(t.pinX-3,t.pinY-20,t.pinX+d.value+5,t.pinY+d.value+5);C.putImageData(fe,0,t.pinY-20),e.restore(),e.clearRect(0,0,s.canvasWidth,s.canvasHeight),e.save(),b(e,F,B,U,Y),e.globalAlpha=.8,e.fillStyle="#ffffff",e.fill(),e.restore(),e.save(),e.globalCompositeOperation="source-atop",b(e,F,B,U,Y),e.arc(t.pinX+Math.ceil(d.value/2),t.pinY+Math.ceil(d.value/2),d.value*1.2,0,Math.PI*2,!0),e.shadowColor="#000",e.shadowOffsetX=2,e.shadowOffsetY=2,e.shadowBlur=16,e.fill(),e.restore(),e.save(),e.globalCompositeOperation="destination-over",e.drawImage(y,I,J,q,K),e.restore(),t.loading=!1,t.isCanSlide=!0},y.onerror=()=>{L(!0)},!o&&(n=s.imgs)!=null&&n.length){let I=i(0,s.imgs.length-1);I===t.imgIndex&&(I===s.imgs.length-1?I=0:I++),t.imgIndex=I,y.src=s.imgs[I]}else y.src=pe()},i=(o,n)=>Math.ceil(Math.random()*(n-o)+o),Z=o=>{const n=o.width/o.height,h=s.canvasWidth/s.canvasHeight;let v=0,w=0,e=0,C=0;return n>h?(C=s.canvasHeight,e=n*C,w=0,v=(s.canvasWidth-e)/2):(e=s.canvasWidth,C=e/n,v=0,w=(s.canvasHeight-C)/2),[v,w,e,C]},b=(o,n,h,v,w)=>{const e=Math.ceil(15*s.puzzleScale);o.beginPath(),o.moveTo(t.pinX,t.pinY),o.lineTo(t.pinX+e,t.pinY),o.arcTo(t.pinX+e,t.pinY+n*e/2,t.pinX+e+e/2,t.pinY+n*e/2,e/2),o.arcTo(t.pinX+e+e,t.pinY+n*e/2,t.pinX+e+e,t.pinY,e/2),o.lineTo(t.pinX+e+e+e,t.pinY),o.lineTo(t.pinX+e+e+e,t.pinY+e),o.arcTo(t.pinX+e+e+e+h*e/2,t.pinY+e,t.pinX+e+e+e+h*e/2,t.pinY+e+e/2,e/2),o.arcTo(t.pinX+e+e+e+h*e/2,t.pinY+e+e,t.pinX+e+e+e,t.pinY+e+e,e/2),o.lineTo(t.pinX+e+e+e,t.pinY+e+e+e),o.lineTo(t.pinX+e+e,t.pinY+e+e+e),o.arcTo(t.pinX+e+e,t.pinY+e+e+e+v*e/2,t.pinX+e+e/2,t.pinY+e+e+e+v*e/2,e/2),o.arcTo(t.pinX+e,t.pinY+e+e+e+v*e/2,t.pinX+e,t.pinY+e+e+e,e/2),o.lineTo(t.pinX,t.pinY+e+e+e),o.lineTo(t.pinX,t.pinY+e+e),o.arcTo(t.pinX+w*e/2,t.pinY+e+e,t.pinX+w*e/2,t.pinY+e+e/2,e/2),o.arcTo(t.pinX+w*e/2,t.pinY+e,t.pinX,t.pinY+e,e/2),o.lineTo(t.pinX,t.pinY)},pe=()=>{const o=document.createElement("canvas"),n=o.getContext("2d");if(!n)return console.error("not found ctx"),"";o.width=s.canvasWidth,o.height=s.canvasHeight,n.fillStyle=`rgb(${i(100,255)},${i(100,255)},${i(100,255)})`,n.fillRect(0,0,s.canvasWidth,s.canvasHeight);for(let h=0;h<12;h++)if(n.fillStyle=`rgb(${i(100,255)},${i(100,255)},${i(100,255)})`,n.strokeStyle=`rgb(${i(100,255)},${i(100,255)},${i(100,255)})`,i(0,2)>1)n.save(),n.rotate(i(-90,90)*Math.PI/180),n.fillRect(i(-20,o.width-20),i(-20,o.height-20),i(10,o.width/2+10),i(10,o.height/2+10)),n.restore();else{n.beginPath();const v=i(-Math.PI,Math.PI);n.arc(i(0,o.width),i(0,o.height),i(10,o.height/2+10),v,v+Math.PI*1.5),n.closePath(),n.fill()}return o.toDataURL("image/png")},ue=()=>{t.isSubmting=!0;const o=x.value-p.value-(d.value-p.value)*((x.value-p.value)/(s.canvasWidth-p.value)),n=t.pinX-3-o;Math.abs(n){t.isSubmting=!1,E("success",n,{deviation:n,offsetX:o,pinX:t.pinX-3})},800)):(t.infoText=s.failText,t.infoBoxFail=!0,t.infoBoxShow=!0,t.isCanSlide=!1,E("fail",n,{deviation:n,offsetX:o,pinX:t.pinX-3}),t.timer1&&clearTimeout(t.timer1),t.timer1=setTimeout(()=>{t.isSubmting=!1,H()},800))},he=()=>{t.infoBoxFail=!1,t.infoBoxShow=!1,t.isCanSlide=!1,t.isSuccess=!1,t.startWidth=p.value,t.startX=0,t.newX=0},H=o=>{t.isSubmting||(he(),L(),o&&E("reset"))};return S({reset:H}),(o,n)=>(N(),oe(Ee,{to:"body",disabled:t.isInside},[a("div",{class:k(["vue-puzzle-vcode",{inside_:t.isInside,show_:c.show},c.className]),style:V(l(m)),onMousedown:P,onMouseup:M,onTouchstartPassive:P,onTouchend:M},[a("div",{class:"vue-auth-box_",onMousedown:n[3]||(n[3]=le(()=>{},["stop"])),onTouchstart:n[4]||(n[4]=le(()=>{},["stop"]))},[a("div",{class:"auth-body_",style:V(`width:${c.canvasWidth}px;height: ${c.canvasHeight}px`)},[a("canvas",{ref_key:"canvas1",ref:_,class:"auth-canvas1_",width:c.canvasWidth,height:c.canvasHeight},null,8,lt),a("canvas",{ref_key:"canvas3",ref:X,class:k(["auth-canvas3_",{show:t.isSuccess}]),width:c.canvasWidth,height:c.canvasHeight},null,10,ct),a("canvas",{ref_key:"canvas2",ref:f,class:"auth-canvas2_",width:l(d),height:c.canvasHeight,style:V(`width:${l(d)}px;height:${c.canvasHeight}px;transform:translateX(${l(x)-l(p)-(l(d)-l(p))*((l(x)-l(p))/(c.canvasWidth-l(p)))}px)`)},null,12,rt),a("div",{class:k(["loading-box_",{hide_:!t.loading}])},pt,2),a("div",{class:k(["info-box_",{show:t.infoBoxShow},{fail:t.infoBoxFail}])},$(t.infoText),3),a("div",{class:k(["flash_",{show:t.isSuccess}]),style:V(`transform: translateX(${t.isSuccess?`${c.canvasWidth+c.canvasHeight*.578}px`:`-${c.canvasHeight*.578}px`}) skew(-30deg, 0);`)},null,6),a("img",{class:"reset_",onClick:n[0]||(n[0]=h=>H(!0)),src:it})],4),a("div",ut,[a("div",{class:"range-box",style:V(`height:${l(p)}px;width:${c.canvasWidth}px`)},[a("div",ht,$(c.sliderText),1),a("div",{class:"range-slider",ref_key:"rangeSlider",ref:A,style:V(`width:${l(x)}px`)},[a("div",{class:k(["range-btn",{isDown:t.mouseDown}]),style:V(`width:${l(p)}px`),onMousedown:n[1]||(n[1]=h=>D(h)),onTouchstart:n[2]||(n[2]=h=>D(h))},vt,38)],4)],4)])],32)],38)],8,["disabled"]))}});var Et={VITE_APP_TITLE:"Snail Job",VITE_APP_DESC:"A flexible, reliable, and fast platform for distributed task retry and distributed task scheduling.",VITE_APP_VERSION:"1.1.1",VITE_APP_DEFAULT_TOKEN:"SJ_Wyz3dmsdbDOkDujOTSSoBjGQP1BMsVnj",VITE_ICON_PREFIX:"icon",VITE_ICON_LOCAL_PREFIX:"icon-local",VITE_AUTH_ROUTE_MODE:"static",VITE_ROUTE_HOME:"home",VITE_MENU_ICON:"mdi:menu",VITE_HTTP_PROXY:"Y",VITE_ROUTER_HISTORY_MODE:"hash",VITE_SERVICE_SUCCESS_CODE:"1",VITE_SERVICE_LOGOUT_CODES:"8888,8889",VITE_SERVICE_MODAL_LOGOUT_CODES:"5001",VITE_SERVICE_EXPIRED_TOKEN_CODES:"9999,9998",VITE_STATIC_SUPER_ROLE:"R_ADMIN",VITE_SOURCE_MAP:"N",VITE_STORAGE_PREFIX:"",VITE_ICONIFY_URL:"/snail-job/iconify",VITE_UPDATE_NOTIFY:"N",VITE_LOGIN_CODE:"N",VITE_BASE_URL:"/snail-job",VITE_SERVICE_BASE_URL:"/snail-job",BASE_URL:"/snail-job",MODE:"prod",DEV:!1,PROD:!0,SSR:!1};const Tt=Q({name:"PwdLogin",__name:"pwd-login",setup(c){const S=Te(),{formRef:E,validate:s}=we(),{defaultRequiredRule:A}=Ie(),_=ce({userName:"",password:""}),f={userName:A,password:A};async function X(){const m=Ve(_.password);await S.login(_.userName,m)}const t=z(!1),x=async()=>{const{VITE_LOGIN_CODE:m}=Et;if(await s(),m==="Y"){t.value=!0;return}X()},d=()=>{t.value=!1},p=()=>{X()};return(m,u)=>{const P=xe,M=Ce,D=ye,R=Oe,T=de,L=Xe,i=Re,Z=be;return N(),oe(Z,{ref_key:"formRef",ref:E,model:_,rules:f,size:"large","show-label":!1,onKeydown:Se(X,["enter"])},{default:g(()=>[r(M,{path:"userName"},{default:g(()=>[r(P,{value:_.userName,"onUpdate:value":u[0]||(u[0]=b=>_.userName=b),placeholder:l(W)("page.login.common.userNamePlaceholder")},null,8,["value","placeholder"])]),_:1}),r(M,{path:"password"},{default:g(()=>[r(P,{value:_.password,"onUpdate:value":u[1]||(u[1]=b=>_.password=b),type:"password","show-password-on":"click",placeholder:l(W)("page.login.common.passwordPlaceholder")},null,8,["value","placeholder"])]),_:1}),r(i,{vertical:"",size:24},{default:g(()=>[r(L,{show:t.value,row:"",style:{padding:"0"}},{trigger:g(()=>[r(D,{type:"primary",size:"large",round:"",block:"",loading:l(S).loginLoading,onClick:x},{default:g(()=>[re($(l(W)("page.login.common.login")),1)]),_:1},8,["loading"])]),default:g(()=>[r(T,{title:l(W)("page.login.common.codeTip"),"header-style":{padding:"10px 24px"}},{"header-extra":g(()=>[r(D,{text:"",onClick:d},{icon:g(()=>[r(R,{"local-icon":"close"})]),_:1})]),default:g(()=>[r(l(gt),{type:"inside",show:"",onSuccess:p,onClose:d})]),_:1},8,["title"])]),_:1},8,["show"])]),_:1})]),_:1},8,["model"])}}});var wt={VITE_APP_TITLE:"Snail Job",VITE_APP_DESC:"A flexible, reliable, and fast platform for distributed task retry and distributed task scheduling.",VITE_APP_VERSION:"1.1.1",VITE_APP_DEFAULT_TOKEN:"SJ_Wyz3dmsdbDOkDujOTSSoBjGQP1BMsVnj",VITE_ICON_PREFIX:"icon",VITE_ICON_LOCAL_PREFIX:"icon-local",VITE_AUTH_ROUTE_MODE:"static",VITE_ROUTE_HOME:"home",VITE_MENU_ICON:"mdi:menu",VITE_HTTP_PROXY:"Y",VITE_ROUTER_HISTORY_MODE:"hash",VITE_SERVICE_SUCCESS_CODE:"1",VITE_SERVICE_LOGOUT_CODES:"8888,8889",VITE_SERVICE_MODAL_LOGOUT_CODES:"5001",VITE_SERVICE_EXPIRED_TOKEN_CODES:"9999,9998",VITE_STATIC_SUPER_ROLE:"R_ADMIN",VITE_SOURCE_MAP:"N",VITE_STORAGE_PREFIX:"",VITE_ICONIFY_URL:"/snail-job/iconify",VITE_UPDATE_NOTIFY:"N",VITE_LOGIN_CODE:"N",VITE_BASE_URL:"/snail-job",VITE_SERVICE_BASE_URL:"/snail-job",BASE_URL:"/snail-job",MODE:"prod",DEV:!1,PROD:!0,SSR:!1};const It={class:"w-400px lt-sm:w-300px"},St={class:"flex-y-center justify-between"},xt={class:"flex text-28px text-primary font-500 lt-sm:text-22px"},Ct={class:"mt-3px pl-12px text-16px color-#00000072 font-600"},yt={class:"i-flex-col"},Ot={class:"pt-24px"},Xt={class:"pt-0px"},Rt={class:"pt-12px text-center"},Vt=Q({name:"login",__name:"index",props:{module:{}},setup(c){const S=c,{VITE_APP_VERSION:E}=wt,s=z(`${ee.get("version")||E}`);(async()=>{const{data:m,error:u}=await Le();if(!u&&m){s.value=m,ee.set("version",m);return}ee.remove("version")})();const _=Ae(),f=Pe(),X={"pwd-login":{label:Be["pwd-login"],component:Tt}},t=O(()=>X[S.module||"pwd-login"]),x=O(()=>f.darkMode?te(f.themeColor,600):f.themeColor),d=O(()=>{const m="#ffffff",u=f.darkMode?.5:.2;return Me(m,f.themeColor,u)}),p=m=>{window.open(m,"_blank")};return(m,u)=>{const P=nt,M=Ue,D=ke,R=ze,T=He,L=de;return N(),j("div",{class:"relative size-full flex-center overflow-hidden",style:V({backgroundColor:d.value})},[r(P,{"theme-color":x.value},null,8,["theme-color"]),r(L,{bordered:!1,class:"relative z-4 w-auto rd-12px"},{default:g(()=>[a("div",It,[a("header",St,[r(M,{class:"fill-primary text-64px lt-sm:text-48px"}),a("h3",xt,[re($(l(W)("system.title"))+" ",1),a("span",Ct,"v"+$(s.value),1)]),a("div",yt,[r(D,{"theme-schema":l(f).themeScheme,"show-tooltip":!1,class:"text-20px lt-sm:text-18px",onSwitch:l(f).toggleThemeScheme},null,8,["theme-schema","onSwitch"]),r(R,{lang:l(_).locale,"lang-options":l(_).localeOptions,"show-tooltip":!1,onChangeLang:l(_).changeLocale},null,8,["lang","lang-options","onChangeLang"])])]),a("main",Ot,[a("div",Xt,[r(De,{name:l(f).page.animateMode,mode:"out-in",appear:""},{default:g(()=>[(N(),oe(Ye(t.value.component)))]),_:1},8,["name"])]),a("div",Rt,[r(T,{"tooltip-content":"Mail",class:"color-#272636 dark:color-#f0f2f5",icon:"simple-icons:maildotru",onClick:u[0]||(u[0]=i=>p("mailto:[email protected]"))}),r(T,{class:"color-#c71d23","tooltip-content":"Gitee",icon:"simple-icons:gitee",onClick:u[1]||(u[1]=i=>p("https://gitee.com/aizuda/snail-job"))}),r(T,{"tooltip-content":"Github",class:"color-#010409 dark:color-#e6edf3",icon:"simple-icons:github",onClick:u[2]||(u[2]=i=>p("https://github.com/aizuda/snail-job"))})]),r(Ne)])])]),_:1})],4)}}});export{Vt as default};




© 2015 - 2025 Weber Informatics LLC | Privacy Policy