This commit is contained in:
Silent YANG 2024-02-03 13:48:21 +08:00
parent 33abb9b359
commit 67c4d0faa1
40 changed files with 17 additions and 17 deletions

View File

@ -1,4 +1,4 @@
import{u as zi,b as rd,c as id,d as Fo,e as Ve,v as ud,l as Bo,_ as St,f as fd,g as od,h as sd,i as ad,j as qi,R as ld,D as cd,k as hd,m as _d,n as pd,o as gd,p as dd,r as vd}from"./index.8c439602.js";import{F as wd}from"./index.43bab710.js";import{bc as xd,b4 as At,c as rn,d as je,f as Qe,aE as H,bx as md,aF as yd,h as To,by as Co,bz as bd,bA as Ad,i as Sd,C as an,D as wr,G as ln,b0 as j,aV as Oo,u as Ae,aZ as wn,a_ as Pe,b3 as Wo,bB as Id,Q as Ld,bs as Ed,bd as Rd,bC as Td,bu as Zi,bv as Yi,ao as Cd,E as Uo,bD as Od,a2 as Dd,bE as Md,bF as Pd,w as $o,aJ as Fd,aL as Bd,b1 as Wd,bG as Ud,o as No,aO as $d,b as Nd,bi as Hd,bH as Do,bI as Gd,aT as Kd,p as zd,aR as qd,aS as Zd,F as Mo,bJ as Yd,bf as kd,bK as Xd,bL as Jd}from"./arco.b143604e.js";import{f as xr,h as ki,i as Qd,j as Vd,k as jd,l as n0}from"./vue.12fb94d8.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as Po,c as e0,e as t0}from"./serial.3518333f.js";import"./chart.9aa904c5.js";const Ho="LoseHu 118+",Go="official",Ko="official",r0={name:Ho,uart:Go,charset:Ko},i0=Object.freeze(Object.defineProperty({__proto__:null,name:Ho,uart:Go,charset:Ko,default:r0},Symbol.toStringTag,{value:"Module"})),zo="LoseHu 118+ 2Mbit \u6269\u5BB9\u7248",qo="losehu",Zo="gb2312",Yo=!0,u0={name:zo,uart:qo,charset:Zo,H:Yo},f0=Object.freeze(Object.defineProperty({__proto__:null,name:zo,uart:qo,charset:Zo,H:Yo,default:u0},Symbol.toStringTag,{value:"Module"})),ko="LoseHu 118+ \u6269\u5BB9\u7248",Xo="losehu",Jo="gb2312",Qo=!0,o0={name:ko,uart:Xo,charset:Jo,K:Qo},s0=Object.freeze(Object.defineProperty({__proto__:null,name:ko,uart:Xo,charset:Jo,K:Qo,default:o0},Symbol.toStringTag,{value:"Module"})),Vo="LoseHu Patch LTS\uFF08BD8DFN\uFF09",jo="official",ns="official",es=!0,a0={name:Vo,uart:jo,charset:ns,localmdc:es},l0=Object.freeze(Object.defineProperty({__proto__:null,name:Vo,uart:jo,charset:ns,localmdc:es,default:a0},Symbol.toStringTag,{value:"Module"})),ts="LoseHu Patch LTS\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",rs="losehu",is="losehu",us=!0,fs=!0,c0={name:ts,uart:rs,charset:is,K:us,localmdc:fs},h0=Object.freeze(Object.defineProperty({__proto__:null,name:ts,uart:rs,charset:is,K:us,localmdc:fs,default:c0},Symbol.toStringTag,{value:"Module"})),os="Official",_0={name:os},p0=Object.freeze(Object.defineProperty({__proto__:null,name:os,default:_0},Symbol.toStringTag,{value:"Module"}));function g0(){const y=xr(),L=zi();return{logout:async N=>{await L.logout();const W=y.currentRoute.value;xd.success("\u767B\u51FA\u6210\u529F"),y.push({name:N&&typeof N=="string"?N:"login",query:{...y.currentRoute.value.query,redirect:W.name}})}}}const d0=(y,L)=>{const{target:o="_blank",...N}=L||{};window.open(y,o,Object.entries(N).reduce((W,un)=>{const[C,q]=un;return[...W,`${C}=${q}`]},[]).join(","))},v0=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),w0=[...rd,...id],x0=w0.map(y=>{const{name:L,path:o,meta:N,redirect:W,children:un}=y;return{name:L,path:o,meta:N,redirect:W,children:un}}),m0=x0;var Gi={exports:{}};/**
import{u as zi,b as rd,c as id,d as Fo,e as Ve,v as ud,l as Bo,_ as St,f as fd,g as od,h as sd,i as ad,j as qi,R as ld,D as cd,k as hd,m as _d,n as pd,o as gd,p as dd,r as vd}from"./index.208dc033.js";import{F as wd}from"./index.47dbf58e.js";import{bc as xd,b4 as At,c as rn,d as je,f as Qe,aE as H,bx as md,aF as yd,h as To,by as Co,bz as bd,bA as Ad,i as Sd,C as an,D as wr,G as ln,b0 as j,aV as Oo,u as Ae,aZ as wn,a_ as Pe,b3 as Wo,bB as Id,Q as Ld,bs as Ed,bd as Rd,bC as Td,bu as Zi,bv as Yi,ao as Cd,E as Uo,bD as Od,a2 as Dd,bE as Md,bF as Pd,w as $o,aJ as Fd,aL as Bd,b1 as Wd,bG as Ud,o as No,aO as $d,b as Nd,bi as Hd,bH as Do,bI as Gd,aT as Kd,p as zd,aR as qd,aS as Zd,F as Mo,bJ as Yd,bf as kd,bK as Xd,bL as Jd}from"./arco.b143604e.js";import{f as xr,h as ki,i as Qd,j as Vd,k as jd,l as n0}from"./vue.12fb94d8.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as Po,c as e0,e as t0}from"./serial.3518333f.js";import"./chart.9aa904c5.js";const Ho="LoseHu 118+",Go="official",Ko="official",r0={name:Ho,uart:Go,charset:Ko},i0=Object.freeze(Object.defineProperty({__proto__:null,name:Ho,uart:Go,charset:Ko,default:r0},Symbol.toStringTag,{value:"Module"})),zo="LoseHu 118+ 2Mbit \u6269\u5BB9\u7248",qo="losehu",Zo="gb2312",Yo=!0,u0={name:zo,uart:qo,charset:Zo,H:Yo},f0=Object.freeze(Object.defineProperty({__proto__:null,name:zo,uart:qo,charset:Zo,H:Yo,default:u0},Symbol.toStringTag,{value:"Module"})),ko="LoseHu 118+ \u6269\u5BB9\u7248",Xo="losehu",Jo="gb2312",Qo=!0,o0={name:ko,uart:Xo,charset:Jo,K:Qo},s0=Object.freeze(Object.defineProperty({__proto__:null,name:ko,uart:Xo,charset:Jo,K:Qo,default:o0},Symbol.toStringTag,{value:"Module"})),Vo="LoseHu Patch LTS\uFF08BD8DFN\uFF09",jo="official",ns="official",es=!0,a0={name:Vo,uart:jo,charset:ns,localmdc:es},l0=Object.freeze(Object.defineProperty({__proto__:null,name:Vo,uart:jo,charset:ns,localmdc:es,default:a0},Symbol.toStringTag,{value:"Module"})),ts="LoseHu Patch LTS\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",rs="losehu",is="losehu",us=!0,fs=!0,c0={name:ts,uart:rs,charset:is,K:us,localmdc:fs},h0=Object.freeze(Object.defineProperty({__proto__:null,name:ts,uart:rs,charset:is,K:us,localmdc:fs,default:c0},Symbol.toStringTag,{value:"Module"})),os="Official",_0={name:os},p0=Object.freeze(Object.defineProperty({__proto__:null,name:os,default:_0},Symbol.toStringTag,{value:"Module"}));function g0(){const y=xr(),L=zi();return{logout:async N=>{await L.logout();const W=y.currentRoute.value;xd.success("\u767B\u51FA\u6210\u529F"),y.push({name:N&&typeof N=="string"?N:"login",query:{...y.currentRoute.value.query,redirect:W.name}})}}}const d0=(y,L)=>{const{target:o="_blank",...N}=L||{};window.open(y,o,Object.entries(N).reduce((W,un)=>{const[C,q]=un;return[...W,`${C}=${q}`]},[]).join(","))},v0=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),w0=[...rd,...id],x0=w0.map(y=>{const{name:L,path:o,meta:N,redirect:W,children:un}=y;return{name:L,path:o,meta:N,redirect:W,children:un}}),m0=x0;var Gi={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
.arco-layout{display:flex;flex:1;flex-direction:column;margin:0;padding:0}.arco-layout-sider{position:relative;flex:none;width:auto;margin:0;padding:0;background:var(--color-menu-dark-bg);transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-children{height:100%;overflow:auto}.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar{width:0}.arco-layout-sider-has-trigger{box-sizing:border-box;padding-bottom:48px}.arco-layout-sider-trigger{z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;color:var(--color-white);background:rgba(255,255,255,.2);cursor:pointer;transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-trigger-light{color:var(--color-text-1);background:var(--color-menu-light-bg);border-top:1px solid var(--color-bg-5)}.arco-layout-sider-light{background:var(--color-menu-light-bg);box-shadow:0 2px 5px #00000014}.arco-layout-header{flex:0 0 auto;box-sizing:border-box;margin:0}.arco-layout-content{flex:1}.arco-layout-footer{flex:0 0 auto;margin:0}.arco-layout-has-sider{flex-direction:row}.arco-layout-has-sider>.arco-layout,.arco-layout-has-sider>.arco-layout-content{overflow-x:hidden}.footer[data-v-1f7e49eb]{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center}
.arco-layout{display:flex;flex:1;flex-direction:column;margin:0;padding:0}.arco-layout-sider{position:relative;flex:none;width:auto;margin:0;padding:0;background:var(--color-menu-dark-bg);transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-children{height:100%;overflow:auto}.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar{width:0}.arco-layout-sider-has-trigger{box-sizing:border-box;padding-bottom:48px}.arco-layout-sider-trigger{z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;color:var(--color-white);background:rgba(255,255,255,.2);cursor:pointer;transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-trigger-light{color:var(--color-text-1);background:var(--color-menu-light-bg);border-top:1px solid var(--color-bg-5)}.arco-layout-sider-light{background:var(--color-menu-light-bg);box-shadow:0 2px 5px #00000014}.arco-layout-header{flex:0 0 auto;box-sizing:border-box;margin:0}.arco-layout-content{flex:1}.arco-layout-footer{flex:0 0 auto;margin:0}.arco-layout-has-sider{flex-direction:row}.arco-layout-has-sider>.arco-layout,.arco-layout-has-sider>.arco-layout-content{overflow-x:hidden}.footer[data-v-c675c8f8]{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center}

Binary file not shown.

View File

@ -0,0 +1 @@
.container[data-v-c54139b0]{padding:0 20px 20px}[data-v-c54139b0] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-c54139b0]{margin-left:12px;cursor:pointer}.active[data-v-c54139b0]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-c54139b0]{display:flex;align-items:center;width:200px}.setting .title[data-v-c54139b0]{margin-left:12px;cursor:pointer}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

BIN
assets/index.26c0ad8e.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as t}from"./index.8c439602.js";import{C as s,aZ as _,b0 as a,bw as c,bu as n,bv as r,G as p}from"./arco.b143604e.js";const d={},f=e=>(n("data-v-1f7e49eb"),e=e(),r(),e),i=f(()=>p("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202402030850",-1));function b(e,u){const o=c;return s(),_(o,{class:"footer"},{default:a(()=>[i]),_:1})}const m=t(d,[["render",b],["__scopeId","data-v-1f7e49eb"]]);export{m as F};

Binary file not shown.

1
assets/index.47dbf58e.js Normal file
View File

@ -0,0 +1 @@
import{_ as t}from"./index.208dc033.js";import{C as c,aZ as s,b0 as _,bw as a,bu as n,bv as r,G as p}from"./arco.b143604e.js";const d={},f=e=>(n("data-v-c675c8f8"),e=e(),r(),e),i=f(()=>p("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202402031340",-1));function u(e,l){const o=a;return c(),s(o,{class:"footer"},{default:_(()=>[i]),_:1})}const m=t(d,[["render",u],["__scopeId","data-v-c675c8f8"]]);export{m as F};

View File

@ -1 +1 @@
import{e as A,_ as P}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as K,r as L,bi as N,C as F,D as R,aE as r,b0 as _,aZ as x,aV as D,bY as U,b$ as O,bd as T,bs as V,bP as H,bR as M,bN as j,bQ as z,bu as G,bv as Q,G as C}from"./arco.b143604e.js";import{e as Y,f as Z,g as $}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const B=b=>(G("data-v-208cc1d9"),b=b(),Q(),b),q={class:"container"},J=B(()=>C("div",{id:"canvasDiv",style:{zoom:"250%"}},null,-1)),W=B(()=>C("br",null,null,-1)),X={name:"Backup"},tt=K({...X,setup(b){const l=A(),a=L({activeKey:1,binaryFile:void 0,loading:!1}),k=()=>{const o=document.createElement("input");o.type="file",o.onchange=async()=>{const p=new Blob([o.files[0]],{type:"application/octet-stream"}),f=URL.createObjectURL(p),t=document.createElement("canvas");t.width=128,t.height=64;const u=t.cloneNode(),c=document.getElementById("canvasDiv");c.innerHTML="",c==null||c.append(t,u);const n=new Image;n.src=f,n.onload=()=>{const d=t.getContext("2d");d==null||d.drawImage(n,0,0,128,64);const g=d==null?void 0:d.getImageData(0,0,t.width,t.height).data;function y(i,s){const e=(s*128+i)*4;return g[e]+g[e+1]+g[e+2]>128*3?0:1}const h=u.getContext("2d"),m=h.getImageData(0,0,u.width,u.height);for(let i=0;i<64;i++)for(let s=0;s<128;s++){const e=(i*128+s)*4,E=!y(s,i);m.data[e]=E*255,m.data[e+1]=E*255,m.data[e+2]=E*255,m.data[e+3]=255}h.putImageData(m,0,0);const w=new Uint8Array(1024);let S=0;for(let i=0;i<64;i+=8)for(let s=0;s<128;s++){let v=0;for(let e=0;e<8;e++)v|=y(s,i+e)<<e;w[S++]=v}a.binaryFile=w}},o.click()},I=async()=>{var f,t,u,c;if(l.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((f=l.configuration)==null?void 0:f.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(a.activeKey==2&&((t=l.configuration)==null?void 0:t.charset)!="gb2312"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(a.activeKey==1&&((u=l.configuration)==null?void 0:u.charset)!="losehu"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}a.loading=!0;let o=123728;a.activeKey==2&&(o=8320),await Y(l.connectPort);const p=a.binaryFile;for(let n=o;n<p.length+o;n+=128)await Z(l.connectPort,n,p.slice(n-o,n-o+128),128,(c=l.configuration)==null?void 0:c.uart);await $(l.connectPort),a.loading=!1};return(o,p)=>{const f=N("Breadcrumb"),t=U,u=O,c=T,n=V,d=H,g=M,y=j,h=z;return F(),R("div",q,[r(f,{items:["\u5C0F\u5DE5\u5177","\u5F00\u673A\u56FE\u7247"]}),r(h,{gutter:20,align:"stretch"},{default:_(()=>[r(y,{span:24},{default:_(()=>[r(g,{loading:a.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:_(()=>[r(d,{class:"general-card",title:"\u5F00\u673A\u56FE\u7247"},{default:_(()=>[r(u,{"active-key":a.activeKey,onChange:p[0]||(p[0]=m=>{a.activeKey=m})},{default:_(()=>[(F(),x(t,{key:1,title:"LOSEHU 117"})),(F(),x(t,{key:2,title:"LOSEHU 118+"}))]),_:1},8,["active-key"]),J,W,r(n,null,{default:_(()=>[r(c,{onClick:k},{default:_(()=>[D("\u9009\u62E9\u56FE\u7247")]),_:1}),r(c,{type:"primary",disabled:!a.binaryFile,onClick:I},{default:_(()=>[D("\u5199\u5165")]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const lt=P(tt,[["__scopeId","data-v-208cc1d9"]]);export{lt as default};
import{e as A,_ as P}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as K,r as L,bi as N,C as F,D as R,aE as r,b0 as _,aZ as x,aV as D,bY as U,b$ as O,bd as T,bs as V,bP as H,bR as M,bN as j,bQ as z,bu as G,bv as Q,G as C}from"./arco.b143604e.js";import{e as Y,f as Z,g as $}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const B=b=>(G("data-v-208cc1d9"),b=b(),Q(),b),q={class:"container"},J=B(()=>C("div",{id:"canvasDiv",style:{zoom:"250%"}},null,-1)),W=B(()=>C("br",null,null,-1)),X={name:"Backup"},tt=K({...X,setup(b){const l=A(),a=L({activeKey:1,binaryFile:void 0,loading:!1}),k=()=>{const o=document.createElement("input");o.type="file",o.onchange=async()=>{const p=new Blob([o.files[0]],{type:"application/octet-stream"}),f=URL.createObjectURL(p),t=document.createElement("canvas");t.width=128,t.height=64;const u=t.cloneNode(),c=document.getElementById("canvasDiv");c.innerHTML="",c==null||c.append(t,u);const n=new Image;n.src=f,n.onload=()=>{const d=t.getContext("2d");d==null||d.drawImage(n,0,0,128,64);const g=d==null?void 0:d.getImageData(0,0,t.width,t.height).data;function y(i,s){const e=(s*128+i)*4;return g[e]+g[e+1]+g[e+2]>128*3?0:1}const h=u.getContext("2d"),m=h.getImageData(0,0,u.width,u.height);for(let i=0;i<64;i++)for(let s=0;s<128;s++){const e=(i*128+s)*4,E=!y(s,i);m.data[e]=E*255,m.data[e+1]=E*255,m.data[e+2]=E*255,m.data[e+3]=255}h.putImageData(m,0,0);const w=new Uint8Array(1024);let S=0;for(let i=0;i<64;i+=8)for(let s=0;s<128;s++){let v=0;for(let e=0;e<8;e++)v|=y(s,i+e)<<e;w[S++]=v}a.binaryFile=w}},o.click()},I=async()=>{var f,t,u,c;if(l.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((f=l.configuration)==null?void 0:f.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(a.activeKey==2&&((t=l.configuration)==null?void 0:t.charset)!="gb2312"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(a.activeKey==1&&((u=l.configuration)==null?void 0:u.charset)!="losehu"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}a.loading=!0;let o=123728;a.activeKey==2&&(o=8320),await Y(l.connectPort);const p=a.binaryFile;for(let n=o;n<p.length+o;n+=128)await Z(l.connectPort,n,p.slice(n-o,n-o+128),128,(c=l.configuration)==null?void 0:c.uart);await $(l.connectPort),a.loading=!1};return(o,p)=>{const f=N("Breadcrumb"),t=U,u=O,c=T,n=V,d=H,g=M,y=j,h=z;return F(),R("div",q,[r(f,{items:["\u5C0F\u5DE5\u5177","\u5F00\u673A\u56FE\u7247"]}),r(h,{gutter:20,align:"stretch"},{default:_(()=>[r(y,{span:24},{default:_(()=>[r(g,{loading:a.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:_(()=>[r(d,{class:"general-card",title:"\u5F00\u673A\u56FE\u7247"},{default:_(()=>[r(u,{"active-key":a.activeKey,onChange:p[0]||(p[0]=m=>{a.activeKey=m})},{default:_(()=>[(F(),x(t,{key:1,title:"LOSEHU 117"})),(F(),x(t,{key:2,title:"LOSEHU 118+"}))]),_:1},8,["active-key"]),J,W,r(n,null,{default:_(()=>[r(c,{onClick:k},{default:_(()=>[D("\u9009\u62E9\u56FE\u7247")]),_:1}),r(c,{type:"primary",disabled:!a.binaryFile,onClick:I},{default:_(()=>[D("\u5199\u5165")]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const lt=P(tt,[["__scopeId","data-v-208cc1d9"]]);export{lt as default};

BIN
assets/index.564eeaf6.js.gz Normal file

Binary file not shown.

View File

@ -1 +1 @@
import{e as B,_ as h}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as k,bi as C,C as D,D as A,aE as a,b0 as l,aV as E,G as x,bd as y,bs as T,bO as H,bP as P,bN as R,bQ as K,n as N}from"./arco.b143604e.js";import{e as S,f as V,g as U}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const $={class:"container"},I=["innerHTML"],L={name:"Chi"},M=v({...L,setup(z){const o=B(),i=k({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:""}),g=async(e=0,t)=>{var c;await S(o.connectPort);for(let u=e;u<t.length+e;u+=128)await V(o.connectPort,u,t.slice(u-e,u-e+128),128,(c=o.configuration)==null?void 0:c.uart),i.status=i.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((u-e)/t.length*100).toFixed(1)+"%<br/>",N(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.scrollHeight)});i.status=i.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await U(o.connectPort)},w=async(e=1)=>{var c,u,n,p,b,F,m;if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((c=o.configuration)==null?void 0:c.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==1&&((u=o.configuration)==null?void 0:u.charset)!="losehu"||e==1&&((n=o.configuration)==null?void 0:n.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==2&&((p=o.configuration)==null?void 0:p.charset)!="gb2312"||e==2&&((b=o.configuration)==null?void 0:b.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==3&&((F=o.configuration)==null?void 0:F.charset)!="gb2312"||e==3&&((m=o.configuration)==null?void 0:m.H)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}i.status=i.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==1){t=await fetch("/old_font.bin");const r=t.body.getReader(),s=[];for(;;){const{done:_,value:f}=await r.read();if(_)break;s.push(...f)}const d=new Uint8Array(s);await g(8192,d);return}if(e==2){t=await fetch("/new_font_k.bin");const r=t.body.getReader(),s=[];for(;;){const{done:_,value:f}=await r.read();if(_)break;s.push(...f)}const d=new Uint8Array(s);await g(9344,d);return}if(e==3){t=await fetch("/new_font_h.bin");const r=t.body.getReader(),s=[];for(;;){const{done:_,value:f}=await r.read();if(_)break;s.push(...f)}const d=new Uint8Array(s);await g(9344,d);return}};return(e,t)=>{const c=C("Breadcrumb"),u=y,n=T,p=H,b=P,F=R,m=K;return D(),A("div",$,[a(c,{items:["\u5C0F\u5DE5\u5177","\u5B57\u5E93\u5199\u5165"]}),a(m,{gutter:20,align:"stretch"},{default:l(()=>[a(F,{span:24},{default:l(()=>[a(b,{class:"general-card",title:"\u5B57\u5E93\u5199\u5165"},{default:l(()=>[a(n,null,{default:l(()=>[a(u,{onClick:t[0]||(t[0]=r=>w(1))},{default:l(()=>[E("\u5199\u5165 117 \u5B57\u5E93\uFF08K\uFF09")]),_:1}),a(u,{onClick:t[1]||(t[1]=r=>w(2))},{default:l(()=>[E("\u5199\u5165 118+ \u5B57\u5E93\uFF08K\uFF09")]),_:1}),a(u,{onClick:t[2]||(t[2]=r=>w(3))},{default:l(()=>[E("\u5199\u5165 118+ \u5B57\u5E93\uFF08H\uFF09")]),_:1})]),_:1}),a(p),x("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:i.status},null,8,I)]),_:1})]),_:1})]),_:1})])}}});const Z=h(M,[["__scopeId","data-v-c103becb"]]);export{Z as default};
import{e as B,_ as h}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as k,bi as C,C as D,D as A,aE as a,b0 as l,aV as E,G as x,bd as y,bs as T,bO as H,bP as P,bN as R,bQ as K,n as N}from"./arco.b143604e.js";import{e as S,f as V,g as U}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const $={class:"container"},I=["innerHTML"],L={name:"Chi"},M=v({...L,setup(z){const o=B(),i=k({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:""}),g=async(e=0,t)=>{var c;await S(o.connectPort);for(let u=e;u<t.length+e;u+=128)await V(o.connectPort,u,t.slice(u-e,u-e+128),128,(c=o.configuration)==null?void 0:c.uart),i.status=i.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((u-e)/t.length*100).toFixed(1)+"%<br/>",N(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.scrollHeight)});i.status=i.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await U(o.connectPort)},w=async(e=1)=>{var c,u,n,p,b,F,m;if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((c=o.configuration)==null?void 0:c.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==1&&((u=o.configuration)==null?void 0:u.charset)!="losehu"||e==1&&((n=o.configuration)==null?void 0:n.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==2&&((p=o.configuration)==null?void 0:p.charset)!="gb2312"||e==2&&((b=o.configuration)==null?void 0:b.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==3&&((F=o.configuration)==null?void 0:F.charset)!="gb2312"||e==3&&((m=o.configuration)==null?void 0:m.H)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}i.status=i.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==1){t=await fetch("/old_font.bin");const r=t.body.getReader(),s=[];for(;;){const{done:_,value:f}=await r.read();if(_)break;s.push(...f)}const d=new Uint8Array(s);await g(8192,d);return}if(e==2){t=await fetch("/new_font_k.bin");const r=t.body.getReader(),s=[];for(;;){const{done:_,value:f}=await r.read();if(_)break;s.push(...f)}const d=new Uint8Array(s);await g(9344,d);return}if(e==3){t=await fetch("/new_font_h.bin");const r=t.body.getReader(),s=[];for(;;){const{done:_,value:f}=await r.read();if(_)break;s.push(...f)}const d=new Uint8Array(s);await g(9344,d);return}};return(e,t)=>{const c=C("Breadcrumb"),u=y,n=T,p=H,b=P,F=R,m=K;return D(),A("div",$,[a(c,{items:["\u5C0F\u5DE5\u5177","\u5B57\u5E93\u5199\u5165"]}),a(m,{gutter:20,align:"stretch"},{default:l(()=>[a(F,{span:24},{default:l(()=>[a(b,{class:"general-card",title:"\u5B57\u5E93\u5199\u5165"},{default:l(()=>[a(n,null,{default:l(()=>[a(u,{onClick:t[0]||(t[0]=r=>w(1))},{default:l(()=>[E("\u5199\u5165 117 \u5B57\u5E93\uFF08K\uFF09")]),_:1}),a(u,{onClick:t[1]||(t[1]=r=>w(2))},{default:l(()=>[E("\u5199\u5165 118+ \u5B57\u5E93\uFF08K\uFF09")]),_:1}),a(u,{onClick:t[2]||(t[2]=r=>w(3))},{default:l(()=>[E("\u5199\u5165 118+ \u5B57\u5E93\uFF08H\uFF09")]),_:1})]),_:1}),a(p),x("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:i.status},null,8,I)]),_:1})]),_:1})]),_:1})])}}});const Z=h(M,[["__scopeId","data-v-c103becb"]]);export{Z as default};

BIN
assets/index.6a081c50.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.a3b85501.js.gz Normal file

Binary file not shown.

View File

@ -1 +1 @@
import{d as x,c as U,C as i,D as m,G as s,aE as e,b0 as n,aL as D,b1 as R,bl as E,aZ as j,b3 as r,bm as z,f as A,r as G,u as V,aV as f,bc as Q,bn as T,bo as W,bp as Z,bq as H,br as J,bd as K,bs as O,bt as X,bu as Y,bv as ee}from"./arco.b143604e.js";import{F as oe}from"./index.43bab710.js";import{v as C,_ as k,u as se,I as ae,a as ne}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.12fb94d8.js";import{u as le}from"./loading.dfebc5d0.js";import"./chart.9aa904c5.js";const S="/assets/login-banner.426fb77f.png",ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(c){const{t}=C.exports.useI18n(),g=U(()=>[{slogan:t("login.banner.slogan1"),subSlogan:t("login.banner.subSlogan1"),image:S},{slogan:t("login.banner.slogan2"),subSlogan:t("login.banner.subSlogan2"),image:S},{slogan:t("login.banner.slogan3"),subSlogan:t("login.banner.subSlogan3"),image:S}]);return(b,v)=>{const p=z,h=E;return i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,R(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(c){const t=te(),{t:g}=C.exports.useI18n(),b=A(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=G({username:a.value.username,password:a.value.password}),F=async({errors:o,values:l})=>{if(!v.value&&!o){p(!0);try{await h.login(l);const{redirect:_,...w}=t.currentRoute.value.query;t.push({name:_||"Workplace",query:{...w}}),Q.success(g("login.form.login.success"));const{rememberPassword:u}=a.value,{username:$,password:y}=l;a.value.username=u?$:"",a.value.password=u?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=T,u=W,$=ne,y=Z,B=H,q=J,P=K,N=O,M=X;return i(),m("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(M,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(u,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(u,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(y,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(N,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":V(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(q,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:V(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=c=>(Y("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ve=x({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const Ee=k(Ve,[["__scopeId","data-v-24cebde1"]]);export{Ee as default};
import{d as x,c as U,C as i,D as m,G as s,aE as e,b0 as n,aL as D,b1 as R,bl as E,aZ as j,b3 as r,bm as z,f as A,r as G,u as V,aV as f,bc as Q,bn as T,bo as W,bp as Z,bq as H,br as J,bd as K,bs as O,bt as X,bu as Y,bv as ee}from"./arco.b143604e.js";import{F as oe}from"./index.47dbf58e.js";import{v as C,_ as k,u as se,I as ae,a as ne}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.12fb94d8.js";import{u as le}from"./loading.dfebc5d0.js";import"./chart.9aa904c5.js";const S="/assets/login-banner.426fb77f.png",ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(c){const{t}=C.exports.useI18n(),g=U(()=>[{slogan:t("login.banner.slogan1"),subSlogan:t("login.banner.subSlogan1"),image:S},{slogan:t("login.banner.slogan2"),subSlogan:t("login.banner.subSlogan2"),image:S},{slogan:t("login.banner.slogan3"),subSlogan:t("login.banner.subSlogan3"),image:S}]);return(b,v)=>{const p=z,h=E;return i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,R(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(c){const t=te(),{t:g}=C.exports.useI18n(),b=A(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=G({username:a.value.username,password:a.value.password}),F=async({errors:o,values:l})=>{if(!v.value&&!o){p(!0);try{await h.login(l);const{redirect:_,...w}=t.currentRoute.value.query;t.push({name:_||"Workplace",query:{...w}}),Q.success(g("login.form.login.success"));const{rememberPassword:u}=a.value,{username:$,password:y}=l;a.value.username=u?$:"",a.value.password=u?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=T,u=W,$=ne,y=Z,B=H,q=J,P=K,N=O,M=X;return i(),m("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(M,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(u,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(u,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(y,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(N,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":V(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(q,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:V(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=c=>(Y("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ve=x({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const Ee=k(Ve,[["__scopeId","data-v-24cebde1"]]);export{Ee as default};

BIN
assets/index.aaffded7.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{d as i,r as D,C as d,aZ as y,b0 as t,aE as e,aV as u,b3 as n,u as s,aR as C,aS as E,bB as S,bN as x,bO as A,bd as g,bP as k,bs as w,bu as I,bv as T,G as _,D as V}from"./arco.b143604e.js";import{e as N,_ as l}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const m=a=>(I("data-v-cd6bb881"),a=a(),T(),a),z=m(()=>_("br",null,null,-1)),O=m(()=>_("br",null,null,-1)),$=i({__name:"banner",setup(a){const o=N(),c=D({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),F=async()=>{alert("TODO")};return(H,J)=>{const b=S,r=x,f=A,B=g,v=k,h=w;return d(),y(r,{class:"banner"},{default:t(()=>[e(r,null,{default:t(()=>[e(b,{heading:5,style:{"margin-top":"0"}},{default:t(()=>[u(n(s(o).connectState?"\u6B22\u8FCE\u4F60~\uFF0C\u8FDE\u63A5\u6210\u529F\uFF01":"\u6B22\u8FCE\u4F60~\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C\u8FDE\u63A5\u201D\u6309\u94AE\u8FDE\u63A5\u624B\u53F0\u3002"),1)]),_:1})]),_:1}),e(f,{class:"panel-border"}),e(h,null,{default:t(()=>[C(e(v,{style:{marginTop:"2em",marginBottom:"2em"},title:"\u624B\u53F0\u4FE1\u606F"},{default:t(()=>{var p;return[u(" \u5F53\u524D\u56FA\u4EF6\u7248\u672C\uFF1A"+n(s(o).firmwareVersion)+" ",1),z,u(" \u5339\u914D\u5199\u9891\u914D\u7F6E\uFF1A"+n((p=s(o).configuration)==null?void 0:p.name)+" ",1),O,u(" \u5B58\u50A8\u5927\u5C0F\uFF1A"+n(c.eepromSize)+" ",1),e(B,{size:"mini",type:"primary",onClick:F},{default:t(()=>[u("\u68C0\u6D4B")]),_:1})]}),_:1},512),[[E,s(o).connectState]])]),_:1})]),_:1})}}});const G=l($,[["__scopeId","data-v-cd6bb881"]]),P={class:"container"},R={class:"left-side"},Z={class:"panel"},j={name:"Dashboard"},q=i({...j,setup(a){return(o,c)=>(d(),V("div",P,[_("div",R,[_("div",Z,[e(G)])])]))}});const ae=l(q,[["__scopeId","data-v-8f743d99"]]);export{ae as default};
import{d as i,r as D,C as d,aZ as y,b0 as t,aE as e,aV as u,b3 as n,u as s,aR as C,aS as E,bB as S,bN as x,bO as A,bd as g,bP as k,bs as w,bu as I,bv as T,G as _,D as V}from"./arco.b143604e.js";import{e as N,_ as l}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const m=a=>(I("data-v-cd6bb881"),a=a(),T(),a),z=m(()=>_("br",null,null,-1)),O=m(()=>_("br",null,null,-1)),$=i({__name:"banner",setup(a){const o=N(),c=D({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),F=async()=>{alert("TODO")};return(H,J)=>{const b=S,r=x,f=A,B=g,v=k,h=w;return d(),y(r,{class:"banner"},{default:t(()=>[e(r,null,{default:t(()=>[e(b,{heading:5,style:{"margin-top":"0"}},{default:t(()=>[u(n(s(o).connectState?"\u6B22\u8FCE\u4F60~\uFF0C\u8FDE\u63A5\u6210\u529F\uFF01":"\u6B22\u8FCE\u4F60~\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C\u8FDE\u63A5\u201D\u6309\u94AE\u8FDE\u63A5\u624B\u53F0\u3002"),1)]),_:1})]),_:1}),e(f,{class:"panel-border"}),e(h,null,{default:t(()=>[C(e(v,{style:{marginTop:"2em",marginBottom:"2em"},title:"\u624B\u53F0\u4FE1\u606F"},{default:t(()=>{var p;return[u(" \u5F53\u524D\u56FA\u4EF6\u7248\u672C\uFF1A"+n(s(o).firmwareVersion)+" ",1),z,u(" \u5339\u914D\u5199\u9891\u914D\u7F6E\uFF1A"+n((p=s(o).configuration)==null?void 0:p.name)+" ",1),O,u(" \u5B58\u50A8\u5927\u5C0F\uFF1A"+n(c.eepromSize)+" ",1),e(B,{size:"mini",type:"primary",onClick:F},{default:t(()=>[u("\u68C0\u6D4B")]),_:1})]}),_:1},512),[[E,s(o).connectState]])]),_:1})]),_:1})}}});const G=l($,[["__scopeId","data-v-cd6bb881"]]),P={class:"container"},R={class:"left-side"},Z={class:"panel"},j={name:"Dashboard"},q=i({...j,setup(a){return(o,c)=>(d(),V("div",P,[_("div",R,[_("div",Z,[e(G)])])]))}});const ae=l(q,[["__scopeId","data-v-8f743d99"]]);export{ae as default};

BIN
assets/index.b2a81bdd.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{e as B,_ as E}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as g,r as w,bi as A,C as v,D as k,aE as s,b0 as c,aV as p,b3 as C,G as x,n as m,bd as N,bs as P,bO as D,bP as S,bN as T,bQ as V}from"./arco.b143604e.js";import{d as b,c as H,r as _,i as I,j as F,l as j,n as L}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const M={class:"container"},O=["innerHTML"],R={name:"Flash"},U=g({...R,setup(z){const u=B(),t=w({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),f=()=>{const a=document.createElement("input");a.type="file",a.onchange=async()=>{const r=new Blob([a.files[0]],{type:"application/octet-stream"}),i=new Uint8Array(await r.arrayBuffer());t.binaryFile=i,t.binaryName=a.files[0].name},a.click()},y=async()=>{if(!t.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}u.connectPort&&await b(u.connectPort);let a=await H();await _(a,24,1e3);const r=I(t.binaryFile),i=new Uint8Array([48,5,r.length,0,...r]);await F(a,i),await _(a,24);const o=j(t.binaryFile);if(o.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let e=0;e<o.length;e+=256){const l=o.slice(e,e+256),d=L(l,e,o.length);try{await F(a,d),await _(a,26)}catch(n){return console.log("Flash command rejected. Aborting."),Promise.reject(n)}t.status=t.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(e/o.length*100).toFixed(1)}%<br/>`,m(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.scrollHeight)})}t.status=t.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",t.status=t.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",m(()=>{const e=document==null?void 0:document.getElementById("statusArea");e&&(e.scrollTop=e==null?void 0:e.scrollHeight)}),b(a),u.updateSettings({connectState:!1})};return(a,r)=>{const i=A("Breadcrumb"),o=N,e=P,l=D,d=S,n=T,h=V;return v(),k("div",M,[s(i,{items:["\u5C0F\u5DE5\u5177","\u56FA\u4EF6\u5347\u7EA7"]}),s(h,{gutter:20,align:"stretch"},{default:c(()=>[s(n,{span:24},{default:c(()=>[s(d,{class:"general-card",title:"\u56FA\u4EF6\u5347\u7EA7"},{default:c(()=>[s(e,null,{default:c(()=>[s(o,{onClick:f},{default:c(()=>[p(C(t.binaryFile?t.binaryName:"\u9009\u62E9\u56FA\u4EF6"),1)]),_:1}),s(o,{type:"primary",disabled:!t.binaryFile,onClick:y},{default:c(()=>[p("\u66F4\u65B0")]),_:1},8,["disabled"])]),_:1}),s(l),x("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:t.status},null,8,O)]),_:1})]),_:1})]),_:1})])}}});const Z=E(U,[["__scopeId","data-v-dacccb62"]]);export{Z as default};
import{e as B,_ as E}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as g,r as w,bi as A,C as v,D as k,aE as s,b0 as c,aV as p,b3 as C,G as x,n as m,bd as N,bs as P,bO as D,bP as S,bN as T,bQ as V}from"./arco.b143604e.js";import{d as b,c as H,r as _,i as I,j as F,l as j,n as L}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const M={class:"container"},O=["innerHTML"],R={name:"Flash"},U=g({...R,setup(z){const u=B(),t=w({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),f=()=>{const a=document.createElement("input");a.type="file",a.onchange=async()=>{const r=new Blob([a.files[0]],{type:"application/octet-stream"}),i=new Uint8Array(await r.arrayBuffer());t.binaryFile=i,t.binaryName=a.files[0].name},a.click()},y=async()=>{if(!t.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}u.connectPort&&await b(u.connectPort);let a=await H();await _(a,24,1e3);const r=I(t.binaryFile),i=new Uint8Array([48,5,r.length,0,...r]);await F(a,i),await _(a,24);const o=j(t.binaryFile);if(o.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let e=0;e<o.length;e+=256){const l=o.slice(e,e+256),d=L(l,e,o.length);try{await F(a,d),await _(a,26)}catch(n){return console.log("Flash command rejected. Aborting."),Promise.reject(n)}t.status=t.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(e/o.length*100).toFixed(1)}%<br/>`,m(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.scrollHeight)})}t.status=t.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",t.status=t.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",m(()=>{const e=document==null?void 0:document.getElementById("statusArea");e&&(e.scrollTop=e==null?void 0:e.scrollHeight)}),b(a),u.updateSettings({connectState:!1})};return(a,r)=>{const i=A("Breadcrumb"),o=N,e=P,l=D,d=S,n=T,h=V;return v(),k("div",M,[s(i,{items:["\u5C0F\u5DE5\u5177","\u56FA\u4EF6\u5347\u7EA7"]}),s(h,{gutter:20,align:"stretch"},{default:c(()=>[s(n,{span:24},{default:c(()=>[s(d,{class:"general-card",title:"\u56FA\u4EF6\u5347\u7EA7"},{default:c(()=>[s(e,null,{default:c(()=>[s(o,{onClick:f},{default:c(()=>[p(C(t.binaryFile?t.binaryName:"\u9009\u62E9\u56FA\u4EF6"),1)]),_:1}),s(o,{type:"primary",disabled:!t.binaryFile,onClick:y},{default:c(()=>[p("\u66F4\u65B0")]),_:1},8,["disabled"])]),_:1}),s(l),x("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:t.status},null,8,O)]),_:1})]),_:1})]),_:1})])}}});const Z=E(U,[["__scopeId","data-v-dacccb62"]]);export{Z as default};

BIN
assets/index.bf1f22f2.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.d7fc3362.js.gz Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
.container[data-v-a1b95b3e]{padding:0 20px 20px}[data-v-a1b95b3e] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-a1b95b3e]{margin-left:12px;cursor:pointer}.active[data-v-a1b95b3e]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-a1b95b3e]{display:flex;align-items:center;width:200px}.setting .title[data-v-a1b95b3e]{margin-left:12px;cursor:pointer}

View File

@ -1 +1 @@
import{_ as n}from"./index.8c439602.js";/* empty css */import{d as _,bM as c,bd as r,D as u,aE as e,G as p,b0 as i,C as d,aV as l}from"./arco.b143604e.js";import{f as m}from"./vue.12fb94d8.js";import"./chart.9aa904c5.js";const f={class:"content"},b={class:"operation-row"},x=_({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=c,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",b,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const V=n(x,[["__scopeId","data-v-8bef407f"]]);export{V as default};
import{_ as n}from"./index.208dc033.js";/* empty css */import{d as _,bM as c,bd as r,D as u,aE as e,G as p,b0 as i,C as d,aV as l}from"./arco.b143604e.js";import{f as m}from"./vue.12fb94d8.js";import"./chart.9aa904c5.js";const f={class:"content"},b={class:"operation-row"},x=_({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=c,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",b,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const V=n(x,[["__scopeId","data-v-8bef407f"]]);export{V as default};

View File

@ -5,7 +5,7 @@
<link rel="shortcut icon" type="image/x-icon" href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>K5Web</title>
<script type="module" crossorigin src="/assets/index.8c439602.js"></script>
<script type="module" crossorigin src="/assets/index.208dc033.js"></script>
<link rel="modulepreload" crossorigin href="/assets/arco.b143604e.js">
<link rel="modulepreload" crossorigin href="/assets/chart.9aa904c5.js">
<link rel="modulepreload" crossorigin href="/assets/vue.12fb94d8.js">