k5web/assets/index.a14977f2.js
2024-10-31 14:41:07 +08:00

1 line
9.3 KiB
JavaScript

import{d as Q,r as ut,bI as it,bJ as ct,C as v,aE as C,aH as e,aI as a,aM as n,aN as p,u as m,a$ as rt,b0 as lt,G as o,bw as st,bK as _t,bG as dt,b8 as pt,bi as mt,bL as ht,bM as ft,bN as gt,bm as wt,bn as bt,D as Ft}from"./arco.9755215d.js";import{v as kt,t as yt,_ as W}from"./index.7d6e688d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as vt,a as r,b as l}from"./serial.c6b76da8.js";import{L as Bt}from"./index.49f61187.js";import"./chart.e5f26fc3.js";import"./vue.e23f7fca.js";const J=""+new URL("../O1CN019Pat6v1ZuNgxL8CRt_!!6000000003254-0-tps-800-450.jpg",import.meta.url).href,St=""+new URL("../adimg1c.png",import.meta.url).href,At=""+new URL("../jjgg.jpg",import.meta.url).href,Et=""+new URL("../gy.png",import.meta.url).href,Ct=""+new URL("../mm_facetoface_collect_qrcode_1714392837792.png",import.meta.url).href,Pt=""+new URL("../1722745910257.jpg",import.meta.url).href,u=g=>(wt("data-v-ad2c1091"),g=g(),bt(),g),Dt=u(()=>o("br",null,null,-1)),Mt=u(()=>o("br",null,null,-1)),xt=u(()=>o("br",null,null,-1)),Nt=u(()=>o("br",null,null,-1)),It=u(()=>o("br",null,null,-1)),$t=u(()=>o("br",null,null,-1)),Rt=u(()=>o("br",null,null,-1)),Lt=u(()=>o("br",null,null,-1)),Vt=u(()=>o("div",{style:{"margin-top":"50px"}},"\xA0",-1)),Tt=u(()=>o("div",{style:{position:"relative",display:"block"}},[o("a",{class:"adimg1",target:"_blank",href:"https://s.click.taobao.com/nnwRvJt",style:{position:"relative",display:"block"}},[o("img",{style:{width:"100%",display:"block",opacity:0},alt:"ads",src:J}),o("img",{style:{width:"100%",position:"absolute",top:0},alt:"ads",src:J}),o("img",{class:"adimg1c",style:{width:"30%",position:"absolute",top:"25%",left:"63%",display:"none"},alt:"ads",src:St})])],-1)),Kt=u(()=>o("div",null,[o("img",{style:{width:"100%"},alt:"ads",src:At})],-1)),Ot=u(()=>o("img",{class:"tencent",style:{"margin-bottom":"10px"},width:"200px",src:Et},null,-1)),jt=u(()=>o("img",{width:"300",src:Ct},null,-1)),zt=u(()=>o("img",{width:"300",src:Pt},null,-1)),Ut=u(()=>o("br",null,null,-1)),Gt=u(()=>o("br",null,null,-1)),Jt=u(()=>o("br",null,null,-1)),Qt=u(()=>o("div",{class:"halloween"},[o("div",{class:"head"},[o("div",{class:"skull"},[o("div",{class:"eyes"},[o("div",{class:"eye eye-left"}),o("div",{class:"eye eye-right"})])])]),o("div",{class:"body"}),o("div",{class:"legs"})],-1)),Wt=u(()=>o("br",null,null,-1)),Zt=u(()=>o("br",null,null,-1)),Ht=Q({__name:"banner",setup(g){var M;const{t:s}=kt.exports.useI18n(),t=yt(),B=ut({eepromSize:s("workplace.clickCheck"),activeKey:JSON.parse((M=localStorage.getItem("mainActiveKey"))!=null?M:"[1]")}),Z=i=>{localStorage.setItem("mainActiveKey",JSON.stringify(i))},H=async()=>{var w,S,A,h,b,d,_,F,f,E,k,y,N,I,$,R,L,V,T,K,O,j,z,U,G;let i=s("workplace.unk");const x=[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 vt(t.connectPort);const c=new Uint8Array(x);if(((w=t.configuration)==null?void 0:w.uart)=="official"){const P=await r(t.connectPort,0,8,(S=t.configuration)==null?void 0:S.uart);await l(t.connectPort,0,c,8,(A=t.configuration)==null?void 0:A.uart);const D=await r(t.connectPort,0,8,(h=t.configuration)==null?void 0:h.uart);c.toString()==D.toString()&&(i=s("global.8kb")),await l(t.connectPort,0,P,8,(b=t.configuration)==null?void 0:b.uart)}else{const P=await r(t.connectPort,0,8,(d=t.configuration)==null?void 0:d.uart);await l(t.connectPort,0,c,8,(_=t.configuration)==null?void 0:_.uart);const D=await r(t.connectPort,0,8,(F=t.configuration)==null?void 0:F.uart);c.toString()==D.toString()&&(i=s("global.8kb")),await l(t.connectPort,0,P,8,(f=t.configuration)==null?void 0:f.uart);const Y=await r(t.connectPort,131064,8,(E=t.configuration)==null?void 0:E.uart);await l(t.connectPort,131064,c,8,(k=t.configuration)==null?void 0:k.uart);const q=await r(t.connectPort,131064,8,(y=t.configuration)==null?void 0:y.uart);c.toString()==q.toString()&&(i=s("global.128kb")),await l(t.connectPort,131064,Y,8,(N=t.configuration)==null?void 0:N.uart);const X=await r(t.connectPort,262136,8,(I=t.configuration)==null?void 0:I.uart);await l(t.connectPort,262136,c,8,($=t.configuration)==null?void 0:$.uart);const tt=await r(t.connectPort,262136,8,(R=t.configuration)==null?void 0:R.uart);c.toString()==tt.toString()&&(i=s("global.256kb")),await l(t.connectPort,262136,X,8,(L=t.configuration)==null?void 0:L.uart);const ot=await r(t.connectPort,393208,8,(V=t.configuration)==null?void 0:V.uart);await l(t.connectPort,393208,c,8,(T=t.configuration)==null?void 0:T.uart);const et=await r(t.connectPort,393208,8,(K=t.configuration)==null?void 0:K.uart);c.toString()==et.toString()&&(i=s("global.384kb")),await l(t.connectPort,393208,ot,8,(O=t.configuration)==null?void 0:O.uart);const at=await r(t.connectPort,524280,8,(j=t.configuration)==null?void 0:j.uart);await l(t.connectPort,524280,c,8,(z=t.configuration)==null?void 0:z.uart);const nt=await r(t.connectPort,524280,8,(U=t.configuration)==null?void 0:U.uart);c.toString()==nt.toString()&&(i=s("global.512kb")),await l(t.connectPort,524280,at,8,(G=t.configuration)==null?void 0:G.uart)}B.eepromSize=i};return(i,x)=>{const c=st,w=_t,S=dt,A=pt,h=it,b=mt,d=Bt,_=ht,F=ft,f=gt,E=ct;return v(),C(w,{class:"banner"},{default:e(()=>[a(w,null,{default:e(()=>[a(c,{heading:5,style:{"margin-top":"0"}},{default:e(()=>[n(p(m(t).connectState?i.$t("workplace.welcomeSuc"):i.$t("workplace.welcome")),1)]),_:1})]),_:1}),a(S,{class:"panel-border"}),a(b,null,{default:e(()=>[rt(a(h,{style:{marginTop:"2em",marginBottom:"2em"},title:i.$t("workplace.info")},{default:e(()=>{var k,y;return[n(p(i.$t("workplace.current"))+p(m(t).firmwareVersion)+" ",1),Dt,n(" "+p(i.$t("workplace.writeconfig"))+p((k=m(t).configuration)==null?void 0:k.name)+" ",1),Mt,n(" "+p(i.$t("workplace.eepromSize"))+p(B.eepromSize)+" "+p(B.eepromSize!=m(s)("workplace.clickCheck")&&((y=m(t).configuration)==null?void 0:y.uart)=="official"?m(s)("workplace.clickNotice"):"")+" ",1),a(A,{size:"mini",type:"primary",onClick:H},{default:e(()=>[n(p(i.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[lt,m(t).connectState]])]),_:1}),o("div",null,[a(c,{heading:5},{default:e(()=>[n("\u8BF4\u660E\uFF1A")]),_:1}),a(_,null,{default:e(()=>[n("\u25C6 \u4F7F\u7528\u5E94\u7B2C\u4E00\u65F6\u95F4"),a(d,{theme:"primary",href:"/#/tool/backup"},{default:e(()=>[n("\u5907\u4EFD")]),_:1}),n("\u914D\u7F6E\u53CA\u6821\u51C6\u6570\u636E\u3002")]),_:1}),xt,a(_,null,{default:e(()=>[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}),Nt,a(_,null,{default:e(()=>[n("\u25C6 \u841D\u535C\uFF08LOSEHU\uFF09\u56FA\u4EF6\u76F8\u5173\u95EE\u9898\u8BF7\u79FB\u6B65\uFF1A"),a(d,{theme:"primary",href:"https://github.com/losehu/uv-k5-firmware-custom",target:"_blank"},{default:e(()=>[n("https://github.com/losehu/uv-k5-firmware-custom")]),_:1}),n(" \u3002")]),_:1}),It,a(_,null,{default:e(()=>[n("\u25C6 K5Web \u5B98\u6269\u5237\u4E2D\u6587\u6559\u7A0B\uFF08BG3ODZ\uFF09\uFF1A"),a(d,{theme:"primary",href:"https://www.bilibili.com/video/BV1Ab421p7rN",target:"_blank"},{default:e(()=>[n("https://www.bilibili.com/video/BV1Ab421p7rN")]),_:1}),n(" \u3002")]),_:1}),$t,a(_,null,{default:e(()=>[n("\u25C6 K5Web \u81EA\u6269\u5237\u4E2D\u6587\u6559\u7A0B\uFF08BG3ODZ\uFF09\uFF1A"),a(d,{theme:"primary",href:"https://www.bilibili.com/video/BV1Qk2BYDErN",target:"_blank"},{default:e(()=>[n("https://www.bilibili.com/video/BV1Qk2BYDErN")]),_:1}),n(" \u3002")]),_:1}),Rt,a(_,null,{default:e(()=>[n("\u25C6 K5Web \u4F7F\u7528\u89C6\u9891\u6559\u7A0B\uFF08BG3ODZ\uFF09\uFF1A"),a(d,{theme:"primary",href:"https://www.bilibili.com/video/BV1Q4421D75x",target:"_blank"},{default:e(()=>[n("https://www.bilibili.com/video/BV1Q4421D75x")]),_:1}),n(" \u3002")]),_:1}),Lt,a(_,null,{default:e(()=>[n("\u25C6 K5Web \u4F7F\u7528\u89C6\u9891\u6559\u7A0B\uFF08BG7QJV\uFF09\uFF1A"),a(d,{theme:"primary",href:"https://www.douyin.com/video/7378314511419313458",target:"_blank"},{default:e(()=>[n("https://www.douyin.com/video/7378314511419313458")]),_:1}),n(" \u3002")]),_:1})]),Vt,o("div",null,[a(E,{"default-active-key":B.activeKey,accordion:"",onChange:Z},{default:e(()=>[(v(),C(f,{header:"\u5E7F\u544A\u533A",key:1},{default:e(()=>[a(b,null,{default:e(()=>[a(h,{hoverable:"",style:{width:"405px"}},{cover:e(()=>[Tt]),default:e(()=>[a(F,{title:"BD8DFN \u6295\u653E"})]),_:1}),a(h,{hoverable:"",style:{width:"600px"}},{cover:e(()=>[Kt]),default:e(()=>[a(F,{title:"BG4IWE \u6295\u653E"})]),_:1})]),_:1})]),_:1})),(v(),C(f,{header:"\u817E\u8BAF\u516C\u76CA",key:2},{default:e(()=>[Ot]),_:1})),(v(),C(f,{header:"\u997F\u997F\u996D\u996D",key:3},{default:e(()=>[jt,zt,Ut,Gt,n(" TRON / TRX\uFF1ATPaSnHJ2cRCQjjv7TyAFJDamb3mZSSz1At ")]),_:1}))]),_:1},8,["default-active-key"])]),Jt,Qt,Wt,Zt]),_:1})}}});const Yt=W(Ht,[["__scopeId","data-v-ad2c1091"]]),qt={class:"container"},Xt={class:"left-side"},to={class:"panel"},oo={name:"Dashboard"},eo=Q({...oo,setup(g){return(s,t)=>(v(),Ft("div",qt,[o("div",Xt,[o("div",to,[a(Yt)])])]))}});const fo=W(eo,[["__scopeId","data-v-8f743d99"]]);export{fo as default};