k5web/assets/index.de90462c.js
2024-10-27 16:08:20 +08:00

1 line
8.3 KiB
JavaScript

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