k5web/assets/index.41279fd1.js
2024-08-08 00:10:32 +08:00

1 line
7.1 KiB
JavaScript

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