k5web/assets/index.35976868.js
2024-10-09 23:16:10 +08:00

1 line
7.7 KiB
JavaScript

import{d as J,r as nt,bI as et,bJ as at,C as k,aE as A,aH as o,aI as e,aM as n,aN as d,u as m,a$ as ut,b0 as rt,G as a,bw as ct,bK as it,bG as lt,b8 as st,bi as _t,bL as dt,bM as pt,bN as mt,bm as ht,bn as ft,D as gt}from"./arco.9755215d.js";import{v as wt,t as bt,_ as K}from"./index.cb3e7091.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as Ft,a as i,b as l}from"./serial.c6b76da8.js";import{L as kt}from"./index.e2eb30eb.js";import"./chart.e5f26fc3.js";import"./vue.e23f7fca.js";const yt=""+new URL("../jjgg.jpg",import.meta.url).href,vt=""+new URL("../gy.png",import.meta.url).href,Bt=""+new URL("../mm_facetoface_collect_qrcode_1714392837792.png",import.meta.url).href,St=""+new URL("../1722745910257.jpg",import.meta.url).href,u=f=>(ht("data-v-789d59eb"),f=f(),ft(),f),Et=u(()=>a("br",null,null,-1)),At=u(()=>a("br",null,null,-1)),Ct=u(()=>a("br",null,null,-1)),Pt=u(()=>a("br",null,null,-1)),Dt=u(()=>a("br",null,null,-1)),Mt=u(()=>a("br",null,null,-1)),xt=u(()=>a("br",null,null,-1)),$t=u(()=>a("div",{style:{"margin-top":"50px"}},"\xA0",-1)),It=u(()=>a("div",null,[a("img",{style:{width:"100%"},alt:"ads",src:yt})],-1)),Tt=u(()=>a("img",{class:"tencent",style:{"margin-bottom":"10px"},width:"200px",src:vt},null,-1)),Nt=u(()=>a("img",{width:"300",src:Bt},null,-1)),Vt=u(()=>a("img",{width:"300",src:St},null,-1)),zt=u(()=>a("br",null,null,-1)),Lt=u(()=>a("br",null,null,-1)),Rt=u(()=>a("br",null,null,-1)),jt=u(()=>a("br",null,null,-1)),Gt=J({__name:"banner",setup(f){const{t:s}=wt.exports.useI18n(),t=bt(),C=nt({eepromSize:s("workplace.clickCheck")}),Q=async()=>{var g,y,v,w,B,p,_,S,h,E,b,F,x,$,I,T,N,V,z,L,R,j,G,U,O;let r=s("workplace.unk");const M=[Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256)];await Ft(t.connectPort);const c=new Uint8Array(M);if(((g=t.configuration)==null?void 0:g.uart)=="official"){const P=await i(t.connectPort,0,8,(y=t.configuration)==null?void 0:y.uart);await l(t.connectPort,0,c,8,(v=t.configuration)==null?void 0:v.uart);const D=await i(t.connectPort,0,8,(w=t.configuration)==null?void 0:w.uart);c.toString()==D.toString()&&(r=s("global.8kb")),await l(t.connectPort,0,P,8,(B=t.configuration)==null?void 0:B.uart)}else{const P=await i(t.connectPort,0,8,(p=t.configuration)==null?void 0:p.uart);await l(t.connectPort,0,c,8,(_=t.configuration)==null?void 0:_.uart);const D=await i(t.connectPort,0,8,(S=t.configuration)==null?void 0:S.uart);c.toString()==D.toString()&&(r=s("global.8kb")),await l(t.connectPort,0,P,8,(h=t.configuration)==null?void 0:h.uart);const W=await i(t.connectPort,131064,8,(E=t.configuration)==null?void 0:E.uart);await l(t.connectPort,131064,c,8,(b=t.configuration)==null?void 0:b.uart);const H=await i(t.connectPort,131064,8,(F=t.configuration)==null?void 0:F.uart);c.toString()==H.toString()&&(r=s("global.128kb")),await l(t.connectPort,131064,W,8,(x=t.configuration)==null?void 0:x.uart);const Z=await i(t.connectPort,262136,8,($=t.configuration)==null?void 0:$.uart);await l(t.connectPort,262136,c,8,(I=t.configuration)==null?void 0:I.uart);const q=await i(t.connectPort,262136,8,(T=t.configuration)==null?void 0:T.uart);c.toString()==q.toString()&&(r=s("global.256kb")),await l(t.connectPort,262136,Z,8,(N=t.configuration)==null?void 0:N.uart);const X=await i(t.connectPort,393208,8,(V=t.configuration)==null?void 0:V.uart);await l(t.connectPort,393208,c,8,(z=t.configuration)==null?void 0:z.uart);const Y=await i(t.connectPort,393208,8,(L=t.configuration)==null?void 0:L.uart);c.toString()==Y.toString()&&(r=s("global.384kb")),await l(t.connectPort,393208,X,8,(R=t.configuration)==null?void 0:R.uart);const tt=await i(t.connectPort,524280,8,(j=t.configuration)==null?void 0:j.uart);await l(t.connectPort,524280,c,8,(G=t.configuration)==null?void 0:G.uart);const ot=await i(t.connectPort,524280,8,(U=t.configuration)==null?void 0:U.uart);c.toString()==ot.toString()&&(r=s("global.512kb")),await l(t.connectPort,524280,tt,8,(O=t.configuration)==null?void 0:O.uart)}C.eepromSize=r};return(r,M)=>{const c=ct,g=it,y=lt,v=st,w=et,B=_t,p=kt,_=dt,S=pt,h=mt,E=at;return k(),A(g,{class:"banner"},{default:o(()=>[e(g,null,{default:o(()=>[e(c,{heading:5,style:{"margin-top":"0"}},{default:o(()=>[n(d(m(t).connectState?r.$t("workplace.welcomeSuc"):r.$t("workplace.welcome")),1)]),_:1})]),_:1}),e(y,{class:"panel-border"}),e(B,null,{default:o(()=>[ut(e(w,{style:{marginTop:"2em",marginBottom:"2em"},title:r.$t("workplace.info")},{default:o(()=>{var b,F;return[n(d(r.$t("workplace.current"))+d(m(t).firmwareVersion)+" ",1),Et,n(" "+d(r.$t("workplace.writeconfig"))+d((b=m(t).configuration)==null?void 0:b.name)+" ",1),At,n(" "+d(r.$t("workplace.eepromSize"))+d(C.eepromSize)+" "+d(C.eepromSize!=m(s)("workplace.clickCheck")&&((F=m(t).configuration)==null?void 0:F.uart)=="official"?m(s)("workplace.clickNotice"):"")+" ",1),e(v,{size:"mini",type:"primary",onClick:Q},{default:o(()=>[n(d(r.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[rt,m(t).connectState]])]),_:1}),a("div",null,[e(c,{heading:5},{default:o(()=>[n("\u8BF4\u660E\uFF1A")]),_:1}),e(_,null,{default:o(()=>[n("\u25C6 \u4F7F\u7528\u5E94\u7B2C\u4E00\u65F6\u95F4"),e(p,{theme:"primary",href:"/#/tool/backup"},{default:o(()=>[n("\u5907\u4EFD")]),_:1}),n("\u914D\u7F6E\u53CA\u6821\u51C6\u6570\u636E\u3002")]),_:1}),Ct,e(_,null,{default:o(()=>[n("\u25C6 \u9664\u201C\u56FA\u4EF6\u5347\u7EA7\u201D\u529F\u80FD\u624B\u53F0\u5E94\u5904\u4E8E\u5237\u673A\u6A21\u5F0F\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u9009\u62E9\u8BBE\u5907\u66F4\u65B0\uFF0C\u5176\u4F59\u529F\u80FD\u624B\u53F0\u5747\u9700\u8981\u5728\u6B63\u5E38\u6A21\u5F0F\u8FDE\u63A5\u3002")]),_:1}),Pt,e(_,null,{default:o(()=>[n("\u25C6 \u841D\u535C\uFF08LOSEHU\uFF09\u56FA\u4EF6\u76F8\u5173\u95EE\u9898\u8BF7\u79FB\u6B65\uFF1A"),e(p,{theme:"primary",href:"https://github.com/losehu/uv-k5-firmware-custom",target:"_blank"},{default:o(()=>[n("https://github.com/losehu/uv-k5-firmware-custom")]),_:1}),n(" \u3002")]),_:1}),Dt,e(_,null,{default:o(()=>[n("\u25C6 K5Web \u5B98\u6269\u5237\u4E2D\u6587\u6559\u7A0B\uFF08BG3ODZ\uFF09\uFF1A"),e(p,{theme:"primary",href:"https://www.bilibili.com/video/BV1Ab421p7rN",target:"_blank"},{default:o(()=>[n("https://www.bilibili.com/video/BV1Ab421p7rN")]),_:1}),n(" \u3002")]),_:1}),Mt,e(_,null,{default:o(()=>[n("\u25C6 K5Web \u4F7F\u7528\u89C6\u9891\u6559\u7A0B\uFF08BG3ODZ\uFF09\uFF1A"),e(p,{theme:"primary",href:"https://www.bilibili.com/video/BV1Q4421D75x",target:"_blank"},{default:o(()=>[n("https://www.bilibili.com/video/BV1Q4421D75x")]),_:1}),n(" \u3002")]),_:1}),xt,e(_,null,{default:o(()=>[n("\u25C6 K5Web \u4F7F\u7528\u89C6\u9891\u6559\u7A0B\uFF08BG7QJV\uFF09\uFF1A"),e(p,{theme:"primary",href:"https://www.douyin.com/video/7378314511419313458",target:"_blank"},{default:o(()=>[n("https://www.douyin.com/video/7378314511419313458")]),_:1}),n(" \u3002")]),_:1})]),$t,a("div",null,[e(E,{"default-active-key":[1],accordion:""},{default:o(()=>[(k(),A(h,{header:"\u5E7F\u544A\u533A",key:1},{default:o(()=>[e(w,{hoverable:"",style:{width:"600px"}},{cover:o(()=>[It]),default:o(()=>[e(S,{title:"BG4IWE \u6295\u653E"})]),_:1})]),_:1})),(k(),A(h,{header:"\u817E\u8BAF\u516C\u76CA",key:2},{default:o(()=>[Tt]),_:1})),(k(),A(h,{header:"\u997F\u997F\u996D\u996D",key:3},{default:o(()=>[Nt,Vt,zt,Lt,n(" TRON / TRX\uFF1ATPaSnHJ2cRCQjjv7TyAFJDamb3mZSSz1At ")]),_:1}))]),_:1})]),Rt,jt]),_:1})}}});const Ut=K(Gt,[["__scopeId","data-v-789d59eb"]]),Ot={class:"container"},Jt={class:"left-side"},Kt={class:"panel"},Qt={name:"Dashboard"},Wt=J({...Qt,setup(f){return(s,t)=>(k(),gt("div",Ot,[a("div",Jt,[a("div",Kt,[e(Ut)])])]))}});const co=K(Wt,[["__scopeId","data-v-8f743d99"]]);export{co as default};