mirror of
https://github.com/silenty4ng/k5web
synced 2024-11-12 21:54:24 +00:00
update
This commit is contained in:
parent
e5231fb508
commit
0ce9f486c6
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import{u as zi,b as ed,c as td,d as Fo,e as Ve,v as rd,l as Bo,_ as St,f as id,g as ud,h as fd,i as od,j as qi,R as sd,D as ad,k as ld,m as cd,n as hd,o as _d,p as pd,r as gd}from"./index.d9a8a349.js";import{F as dd}from"./index.503b2d63.js";import{aW as vd,aO as At,c as rn,d as je,f as Qe,aI as H,bg as wd,bh as xd,h as To,bi as Co,bj as md,bk as yd,i as bd,C as an,D as wr,G as ln,aH as j,aM as Oo,u as Ae,aE as wn,aF as Pe,aN as Wo,bl as Ad,Q as Sd,bb as Id,aX as Ed,bm as Ld,bd as Zi,be as Yi,ao as Rd,E as Uo,bn as Td,a2 as Cd,bo as Od,bp as Md,w as $o,bq as Dd,aK as Pd,aJ as Fd,br as Bd,o as No,bs as Wd,b as Ud,b0 as $d,bt as Mo,bu as Nd,bv as Hd,p as Gd,bw as Kd,bx as zd,F as Do,by as qd,aZ as Zd,bz as Yd,bA as Xd}from"./arco.cd87ac27.js";import{f as xr,h as Xi,i as kd,j as Jd,k as Qd,l as Vd}from"./vue.a1682e6c.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as Po,c as jd,e as n0}from"./serial.3518333f.js";import"./chart.19f3a5b6.js";const Ho="LoseHu 118 +",Go="official",Ko="official",e0={name:Ho,uart:Go,charset:Ko},t0=Object.freeze(Object.defineProperty({__proto__:null,name:Ho,uart:Go,charset:Ko,default:e0},Symbol.toStringTag,{value:"Module"})),zo="LoseHu 118 + 2Mbit \u6269\u5BB9\u7248",qo="losehu",Zo="gb2312",Yo=!0,r0={name:zo,uart:qo,charset:Zo,H:Yo},i0=Object.freeze(Object.defineProperty({__proto__:null,name:zo,uart:qo,charset:Zo,H:Yo,default:r0},Symbol.toStringTag,{value:"Module"})),Xo="LoseHu 118 + \u6269\u5BB9\u7248",ko="losehu",Jo="gb2312",Qo=!0,u0={name:Xo,uart:ko,charset:Jo,K:Qo},f0=Object.freeze(Object.defineProperty({__proto__:null,name:Xo,uart:ko,charset:Jo,K:Qo,default:u0},Symbol.toStringTag,{value:"Module"})),Vo="LoseHu Patch LTS\uFF08BD8DFN\uFF09",jo="official",ns="official",o0={name:Vo,uart:jo,charset:ns},s0=Object.freeze(Object.defineProperty({__proto__:null,name:Vo,uart:jo,charset:ns,default:o0},Symbol.toStringTag,{value:"Module"})),es="LoseHu Patch LTS\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",ts="losehu",rs="losehu",is=!0,a0={name:es,uart:ts,charset:rs,K:is},l0=Object.freeze(Object.defineProperty({__proto__:null,name:es,uart:ts,charset:rs,K:is,default:a0},Symbol.toStringTag,{value:"Module"})),us="Official",c0={name:us},h0=Object.freeze(Object.defineProperty({__proto__:null,name:us,default:c0},Symbol.toStringTag,{value:"Module"}));function _0(){const y=xr(),E=zi();return{logout:async N=>{await E.logout();const W=y.currentRoute.value;vd.success("\u767B\u51FA\u6210\u529F"),y.push({name:N&&typeof N=="string"?N:"login",query:{...y.currentRoute.value.query,redirect:W.name}})}}}const p0=(y,E)=>{const{target:o="_blank",...N}=E||{};window.open(y,o,Object.entries(N).reduce((W,un)=>{const[C,q]=un;return[...W,`${C}=${q}`]},[]).join(","))},g0=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"),d0=[...ed,...td],v0=d0.map(y=>{const{name:E,path:o,meta:N,redirect:W,children:un}=y;return{name:E,path:o,meta:N,redirect:W,children:un}}),w0=v0;var Gi={exports:{}};/**
|
||||
import{u as zi,b as ed,c as td,d as Fo,e as Ve,v as rd,l as Bo,_ as St,f as id,g as ud,h as fd,i as od,j as qi,R as sd,D as ad,k as ld,m as cd,n as hd,o as _d,p as pd,r as gd}from"./index.20864429.js";import{F as dd}from"./index.bd136e90.js";import{aW as vd,aO as At,c as rn,d as je,f as Qe,aI as H,bg as wd,bh as xd,h as To,bi as Co,bj as md,bk as yd,i as bd,C as an,D as wr,G as ln,aH as j,aM as Oo,u as Ae,aE as wn,aF as Pe,aN as Wo,bl as Ad,Q as Sd,bb as Id,aX as Ed,bm as Ld,bd as Zi,be as Yi,ao as Rd,E as Uo,bn as Td,a2 as Cd,bo as Od,bp as Md,w as $o,bq as Dd,aK as Pd,aJ as Fd,br as Bd,o as No,bs as Wd,b as Ud,b0 as $d,bt as Mo,bu as Nd,bv as Hd,p as Gd,bw as Kd,bx as zd,F as Do,by as qd,aZ as Zd,bz as Yd,bA as Xd}from"./arco.cd87ac27.js";import{f as xr,h as Xi,i as kd,j as Jd,k as Qd,l as Vd}from"./vue.a1682e6c.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as Po,c as jd,e as n0}from"./serial.3518333f.js";import"./chart.19f3a5b6.js";const Ho="LoseHu 118 +",Go="official",Ko="official",e0={name:Ho,uart:Go,charset:Ko},t0=Object.freeze(Object.defineProperty({__proto__:null,name:Ho,uart:Go,charset:Ko,default:e0},Symbol.toStringTag,{value:"Module"})),zo="LoseHu 118 + 2Mbit \u6269\u5BB9\u7248",qo="losehu",Zo="gb2312",Yo=!0,r0={name:zo,uart:qo,charset:Zo,H:Yo},i0=Object.freeze(Object.defineProperty({__proto__:null,name:zo,uart:qo,charset:Zo,H:Yo,default:r0},Symbol.toStringTag,{value:"Module"})),Xo="LoseHu 118 + \u6269\u5BB9\u7248",ko="losehu",Jo="gb2312",Qo=!0,u0={name:Xo,uart:ko,charset:Jo,K:Qo},f0=Object.freeze(Object.defineProperty({__proto__:null,name:Xo,uart:ko,charset:Jo,K:Qo,default:u0},Symbol.toStringTag,{value:"Module"})),Vo="LoseHu Patch LTS\uFF08BD8DFN\uFF09",jo="official",ns="official",o0={name:Vo,uart:jo,charset:ns},s0=Object.freeze(Object.defineProperty({__proto__:null,name:Vo,uart:jo,charset:ns,default:o0},Symbol.toStringTag,{value:"Module"})),es="LoseHu Patch LTS\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",ts="losehu",rs="losehu",is=!0,a0={name:es,uart:ts,charset:rs,K:is},l0=Object.freeze(Object.defineProperty({__proto__:null,name:es,uart:ts,charset:rs,K:is,default:a0},Symbol.toStringTag,{value:"Module"})),us="Official",c0={name:us},h0=Object.freeze(Object.defineProperty({__proto__:null,name:us,default:c0},Symbol.toStringTag,{value:"Module"}));function _0(){const y=xr(),E=zi();return{logout:async N=>{await E.logout();const W=y.currentRoute.value;vd.success("\u767B\u51FA\u6210\u529F"),y.push({name:N&&typeof N=="string"?N:"login",query:{...y.currentRoute.value.query,redirect:W.name}})}}}const p0=(y,E)=>{const{target:o="_blank",...N}=E||{};window.open(y,o,Object.entries(N).reduce((W,un)=>{const[C,q]=un;return[...W,`${C}=${q}`]},[]).join(","))},g0=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"),d0=[...ed,...td],v0=d0.map(y=>{const{name:E,path:o,meta:N,redirect:W,children:un}=y;return{name:E,path:o,meta:N,redirect:W,children:un}}),w0=v0;var Gi={exports:{}};/**
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
BIN
assets/default-layout.5d37a31f.js.gz
Normal file
BIN
assets/default-layout.5d37a31f.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
import{e as A,_ as P}from"./index.d9a8a349.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as K,r as L,b0 as R,C as v,D as U,aI as u,aH as _,aE as x,aM as C,bQ as H,bR as N,aX as O,bb as T,bE as M,bP as V,bC as j,bF as z,bd as G,be as Q,G as D}from"./arco.cd87ac27.js";import{e as X,f as q,g as J}from"./serial.3518333f.js";import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const B=b=>(G("data-v-208cc1d9"),b=b(),Q(),b),W={class:"container"},Y=B(()=>D("div",{id:"canvasDiv",style:{zoom:"250%"}},null,-1)),Z=B(()=>D("br",null,null,-1)),$={name:"Backup"},tt=K({...$,setup(b){const l=A(),a=L({activeKey:1,binaryFile:void 0,loading:!1}),I=()=>{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 r=t.cloneNode(),c=document.getElementById("canvasDiv");c.innerHTML="",c==null||c.append(t,r);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=r.getContext("2d"),m=h.getImageData(0,0,r.width,r.height);for(let i=0;i<64;i++)for(let s=0;s<128;s++){const e=(i*128+s)*4,F=!y(s,i);m.data[e]=F*255,m.data[e+1]=F*255,m.data[e+2]=F*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 E=0;for(let e=0;e<8;e++)E|=y(s,i+e)<<e;w[S++]=E}a.binaryFile=w}},o.click()},k=async()=>{var f,t,r,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&&((r=l.configuration)==null?void 0:r.charset)!="losehu"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}a.loading=!0;let o=123728;a.activeKey==2&&(o=8320),await X(l.connectPort);const p=a.binaryFile;for(let n=o;n<p.length+o;n+=128)await q(l.connectPort,n,p.slice(n-o,n-o+128),128,(c=l.configuration)==null?void 0:c.uart);await J(l.connectPort),a.loading=!1};return(o,p)=>{const f=R("Breadcrumb"),t=H,r=N,c=O,n=T,d=M,g=V,y=j,h=z;return v(),U("div",W,[u(f,{items:["\u5C0F\u5DE5\u5177","\u5F00\u673A\u56FE\u7247"]}),u(h,{gutter:20,align:"stretch"},{default:_(()=>[u(y,{span:24},{default:_(()=>[u(g,{loading:a.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:_(()=>[u(d,{class:"general-card",title:"\u5F00\u673A\u56FE\u7247"},{default:_(()=>[u(r,{"active-key":a.activeKey,onChange:p[0]||(p[0]=m=>{a.activeKey=m})},{default:_(()=>[(v(),x(t,{key:1,title:"LOSEHU 117"})),(v(),x(t,{key:2,title:"LOSEHU 118+"}))]),_:1},8,["active-key"]),Y,Z,u(n,null,{default:_(()=>[u(c,{onClick:I},{default:_(()=>[C("\u9009\u62E9\u56FE\u7247")]),_:1}),u(c,{type:"primary",disabled:!a.binaryFile,onClick:k},{default:_(()=>[C("\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.20864429.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as K,r as L,b0 as R,C as v,D as U,aI as u,aH as _,aE as x,aM as C,bQ as H,bR as N,aX as O,bb as T,bE as M,bP as V,bC as j,bF as z,bd as G,be as Q,G as D}from"./arco.cd87ac27.js";import{e as X,f as q,g as J}from"./serial.3518333f.js";import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const B=b=>(G("data-v-208cc1d9"),b=b(),Q(),b),W={class:"container"},Y=B(()=>D("div",{id:"canvasDiv",style:{zoom:"250%"}},null,-1)),Z=B(()=>D("br",null,null,-1)),$={name:"Backup"},tt=K({...$,setup(b){const l=A(),a=L({activeKey:1,binaryFile:void 0,loading:!1}),I=()=>{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 r=t.cloneNode(),c=document.getElementById("canvasDiv");c.innerHTML="",c==null||c.append(t,r);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=r.getContext("2d"),m=h.getImageData(0,0,r.width,r.height);for(let i=0;i<64;i++)for(let s=0;s<128;s++){const e=(i*128+s)*4,F=!y(s,i);m.data[e]=F*255,m.data[e+1]=F*255,m.data[e+2]=F*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 E=0;for(let e=0;e<8;e++)E|=y(s,i+e)<<e;w[S++]=E}a.binaryFile=w}},o.click()},k=async()=>{var f,t,r,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&&((r=l.configuration)==null?void 0:r.charset)!="losehu"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}a.loading=!0;let o=123728;a.activeKey==2&&(o=8320),await X(l.connectPort);const p=a.binaryFile;for(let n=o;n<p.length+o;n+=128)await q(l.connectPort,n,p.slice(n-o,n-o+128),128,(c=l.configuration)==null?void 0:c.uart);await J(l.connectPort),a.loading=!1};return(o,p)=>{const f=R("Breadcrumb"),t=H,r=N,c=O,n=T,d=M,g=V,y=j,h=z;return v(),U("div",W,[u(f,{items:["\u5C0F\u5DE5\u5177","\u5F00\u673A\u56FE\u7247"]}),u(h,{gutter:20,align:"stretch"},{default:_(()=>[u(y,{span:24},{default:_(()=>[u(g,{loading:a.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:_(()=>[u(d,{class:"general-card",title:"\u5F00\u673A\u56FE\u7247"},{default:_(()=>[u(r,{"active-key":a.activeKey,onChange:p[0]||(p[0]=m=>{a.activeKey=m})},{default:_(()=>[(v(),x(t,{key:1,title:"LOSEHU 117"})),(v(),x(t,{key:2,title:"LOSEHU 118+"}))]),_:1},8,["active-key"]),Y,Z,u(n,null,{default:_(()=>[u(c,{onClick:I},{default:_(()=>[C("\u9009\u62E9\u56FE\u7247")]),_:1}),u(c,{type:"primary",disabled:!a.binaryFile,onClick:k},{default:_(()=>[C("\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.0bb4f9c7.js.gz
Normal file
BIN
assets/index.0bb4f9c7.js.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.20864429.js.gz
Normal file
BIN
assets/index.20864429.js.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.28e8d011.js
Normal file
1
assets/index.28e8d011.js
Normal file
@ -0,0 +1 @@
|
||||
import{e as B,_ as h}from"./index.20864429.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as C,b0 as D,C as k,D as A,aI as a,aH as l,aM as E,G as x,aX as y,bb as H,bD as T,bE as R,bC as K,bF as P,n as S}from"./arco.cd87ac27.js";import{e as I,f as M,g as N}from"./serial.3518333f.js";import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const U={class:"container"},V=["innerHTML"],$={name:"Chi"},L=v({...$,setup(z){const o=B(),i=C({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 I(o.connectPort);for(let u=e;u<t.length+e;u+=128)await M(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/>",S(()=>{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 N(o.connectPort)},w=async(e=1)=>{var c,u,n,p,F,m,b;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&&((F=o.configuration)==null?void 0:F.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==3&&((m=o.configuration)==null?void 0:m.charset)!="gb2312"||e==3&&((b=o.configuration)==null?void 0:b.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:d,value:f}=await r.read();if(d)break;s.push(...f)}const _=new Uint8Array(s);await g(8192,_);return}if(e==2){t=await fetch("/new_font_k.bin");const r=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await r.read();if(d)break;s.push(...f)}const _=new Uint8Array(s);await g(9344,_);return}if(e==3){t=await fetch("/new_font_h.bin");const r=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await r.read();if(d)break;s.push(...f)}const _=new Uint8Array(s);await g(9344,_);return}};return(e,t)=>{const c=D("Breadcrumb"),u=y,n=H,p=T,F=R,m=K,b=P;return k(),A("div",U,[a(c,{items:["\u5C0F\u5DE5\u5177","\u5B57\u5E93\u5199\u5165"]}),a(b,{gutter:20,align:"stretch"},{default:l(()=>[a(m,{span:24},{default:l(()=>[a(F,{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,V)]),_:1})]),_:1})]),_:1})])}}});const Z=h(L,[["__scopeId","data-v-b4a0464e"]]);export{Z as default};
|
BIN
assets/index.28e8d011.js.gz
Normal file
BIN
assets/index.28e8d011.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
import{d as x,c as U,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as R,b4 as E,aE as W,aN as r,b5 as j,f as z,r as A,u as C,aM as f,aW as G,b6 as H,b7 as J,b8 as K,b9 as Q,ba as T,aX as X,bb as O,bc as Y,bd as Z,be as ee}from"./arco.cd87ac27.js";import{F as oe}from"./index.503b2d63.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.d9a8a349.js";/* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.a1682e6c.js";import{u as le}from"./loading.1ec94507.js";import"./chart.19f3a5b6.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}=V.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=j,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(),W(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-2ce84fe6"]]),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}=V.exports.useI18n(),b=z(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=A({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}}),G.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=H,u=J,$=ne,y=K,B=Q,N=T,P=X,M=O,q=Y;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(q,{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(M,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":C(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(N,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(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-0c627d4f"]]),ye=c=>(Z("data-v-7183afbd"),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"},Ce=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 Re=k(Ce,[["__scopeId","data-v-7183afbd"]]);export{Re as default};
|
||||
import{d as x,c as U,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as R,b4 as E,aE as W,aN as r,b5 as j,f as z,r as A,u as C,aM as f,aW as G,b6 as H,b7 as J,b8 as K,b9 as Q,ba as T,aX as X,bb as O,bc as Y,bd as Z,be as ee}from"./arco.cd87ac27.js";import{F as oe}from"./index.bd136e90.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.20864429.js";/* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.a1682e6c.js";import{u as le}from"./loading.1ec94507.js";import"./chart.19f3a5b6.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}=V.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=j,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(),W(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-2ce84fe6"]]),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}=V.exports.useI18n(),b=z(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=A({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}}),G.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=H,u=J,$=ne,y=K,B=Q,N=T,P=X,M=O,q=Y;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(q,{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(M,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":C(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(N,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(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-0c627d4f"]]),ye=c=>(Z("data-v-7183afbd"),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"},Ce=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 Re=k(Ce,[["__scopeId","data-v-7183afbd"]]);export{Re as default};
|
BIN
assets/index.3ea7f889.js.gz
Normal file
BIN
assets/index.3ea7f889.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.4c124374.js.gz
Normal file
BIN
assets/index.4c124374.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.91084adf.js.gz
Normal file
BIN
assets/index.91084adf.js.gz
Normal file
Binary file not shown.
1
assets/index.a0148d53.css
Normal file
1
assets/index.a0148d53.css
Normal file
@ -0,0 +1 @@
|
||||
.container[data-v-b4a0464e]{padding:0 20px 20px}.container[data-v-b4a0464e] .arco-list-content{overflow-x:hidden}.container[data-v-b4a0464e] .arco-card-meta-title{font-size:14px}[data-v-b4a0464e] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-b4a0464e] .arco-list-item{width:33%}[data-v-b4a0464e] .block-title{margin:0 0 12px;font-size:14px}[data-v-b4a0464e] .list-wrap .list-row{align-items:stretch}[data-v-b4a0464e] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-b4a0464e] .list-wrap :deep(.arco-space){width:100%}[data-v-b4a0464e] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
Binary file not shown.
@ -1 +1 @@
|
||||
import{_ as t}from"./index.d9a8a349.js";import{C as a,aE as s,aH as _,bf as c,bd as n,be as r,G as d}from"./arco.cd87ac27.js";const p={},i=e=>(n("data-v-4da2ee18"),e=e(),r(),e),f=i(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web",-1));function l(e,u){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[f]),_:1})}const m=t(p,[["render",l],["__scopeId","data-v-4da2ee18"]]);export{m as F};
|
||||
import{_ as t}from"./index.20864429.js";import{C as a,aE as s,aH as _,bf as c,bd as n,be as r,G as d}from"./arco.cd87ac27.js";const p={},i=e=>(n("data-v-4da2ee18"),e=e(),r(),e),f=i(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web",-1));function l(e,u){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[f]),_:1})}const m=t(p,[["render",l],["__scopeId","data-v-4da2ee18"]]);export{m as F};
|
@ -1 +1 @@
|
||||
import{d as i,r as v,C as d,aE as C,aH as t,aI as e,aM as u,aN as n,u as s,bw as y,bx as E,bl as x,bC as A,bD as S,aX as g,bE as w,bb as I,bd as k,be as T,G as _,D as N}from"./arco.cd87ac27.js";import{e as V,_ as l}from"./index.d9a8a349.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const m=a=>(k("data-v-cd6bb881"),a=a(),T(),a),z=m(()=>_("br",null,null,-1)),$=m(()=>_("br",null,null,-1)),O=i({__name:"banner",setup(a){const o=V(),c=v({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),F=async()=>{alert("TODO")};return(J,K)=>{const b=x,r=A,f=S,B=g,D=w,h=I;return d(),C(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(()=>[y(e(D,{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),$,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(O,[["__scopeId","data-v-cd6bb881"]]),H={class:"container"},M={class:"left-side"},X={class:"panel"},j={name:"Dashboard"},q=i({...j,setup(a){return(o,c)=>(d(),N("div",H,[_("div",M,[_("div",X,[e(G)])])]))}});const oe=l(q,[["__scopeId","data-v-8f743d99"]]);export{oe as default};
|
||||
import{d as i,r as v,C as d,aE as C,aH as t,aI as e,aM as u,aN as n,u as s,bw as y,bx as E,bl as x,bC as A,bD as S,aX as g,bE as w,bb as I,bd as k,be as T,G as _,D as N}from"./arco.cd87ac27.js";import{e as V,_ as l}from"./index.20864429.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const m=a=>(k("data-v-cd6bb881"),a=a(),T(),a),z=m(()=>_("br",null,null,-1)),$=m(()=>_("br",null,null,-1)),O=i({__name:"banner",setup(a){const o=V(),c=v({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),F=async()=>{alert("TODO")};return(J,K)=>{const b=x,r=A,f=S,B=g,D=w,h=I;return d(),C(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(()=>[y(e(D,{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),$,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(O,[["__scopeId","data-v-cd6bb881"]]),H={class:"container"},M={class:"left-side"},X={class:"panel"},j={name:"Dashboard"},q=i({...j,setup(a){return(o,c)=>(d(),N("div",H,[_("div",M,[_("div",X,[e(G)])])]))}});const oe=l(q,[["__scopeId","data-v-8f743d99"]]);export{oe as default};
|
BIN
assets/index.d5d32622.js.gz
Normal file
BIN
assets/index.d5d32622.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
.container[data-v-df9107ac]{padding:0 20px 20px}.container[data-v-df9107ac] .arco-list-content{overflow-x:hidden}.container[data-v-df9107ac] .arco-card-meta-title{font-size:14px}[data-v-df9107ac] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-df9107ac] .arco-list-item{width:33%}[data-v-df9107ac] .block-title{margin:0 0 12px;font-size:14px}[data-v-df9107ac] .list-wrap .list-row{align-items:stretch}[data-v-df9107ac] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-df9107ac] .list-wrap :deep(.arco-space){width:100%}[data-v-df9107ac] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
@ -1 +0,0 @@
|
||||
import{e as D,_ as v}from"./index.d9a8a349.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as C,r as h,b0 as w,C as A,D as k,aI as n,aH as s,aM as F,G as x,aX as T,bb as H,bD as K,bE as P,bC as S,bF as I,n as M}from"./arco.cd87ac27.js";import{e as N,f as R,g as V}from"./serial.3518333f.js";import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const $={class:"container"},y=["innerHTML"],L={name:"Chi"},O=C({...L,setup(z){const o=D(),r=h({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:""}),b=async(t=0,u)=>{var c;await N(o.connectPort);for(let e=t;e<u.length+t;e+=128)await R(o.connectPort,e,u.slice(e-t,e-t+128),128,(c=o.configuration)==null?void 0:c.uart),r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((e-t)/u.length*100).toFixed(1)+"%<br/>",M(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)});r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await V(o.connectPort)},p=async(t=1)=>{var l,_,d,f,i,m,E;if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((l=o.configuration)==null?void 0:l.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(t==1&&((_=o.configuration)==null?void 0:_.charset)!="losehu"||t==1&&((d=o.configuration)==null?void 0:d.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(t==2&&((f=o.configuration)==null?void 0:f.charset)!="gb2312"||t==2&&((i=o.configuration)==null?void 0:i.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(t==3&&((m=o.configuration)==null?void 0:m.charset)!="gb2312"||t==3&&((E=o.configuration)==null?void 0:E.H)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}r.status=r.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let u;switch(t){case 1:u=await fetch("/old_font.bin");break;default:alert("TODO");return}const c=u.body.getReader(),e=[];for(;;){const{done:g,value:B}=await c.read();if(g)break;e.push(...B)}const a=new Uint8Array(e);await b(8192,a)};return(t,u)=>{const c=w("Breadcrumb"),e=T,a=H,l=K,_=P,d=S,f=I;return A(),k("div",$,[n(c,{items:["\u5C0F\u5DE5\u5177","\u5B57\u5E93\u5199\u5165"]}),n(f,{gutter:20,align:"stretch"},{default:s(()=>[n(d,{span:24},{default:s(()=>[n(_,{class:"general-card",title:"\u5B57\u5E93\u5199\u5165"},{default:s(()=>[n(a,null,{default:s(()=>[n(e,{onClick:u[0]||(u[0]=i=>p(1))},{default:s(()=>[F("\u5199\u5165 117 \u5B57\u5E93\uFF08K\uFF09")]),_:1}),n(e,{onClick:u[1]||(u[1]=i=>p(2))},{default:s(()=>[F("\u5199\u5165 118 \u5B57\u5E93\uFF08K\uFF09")]),_:1}),n(e,{onClick:u[2]||(u[2]=i=>p(3))},{default:s(()=>[F("\u5199\u5165 118 \u5B57\u5E93\uFF08H\uFF09")]),_:1})]),_:1}),n(l),x("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:r.status},null,8,y)]),_:1})]),_:1})]),_:1})])}}});const Z=v(O,[["__scopeId","data-v-df9107ac"]]);export{Z as default};
|
Binary file not shown.
@ -1 +1 @@
|
||||
import{e as B,_ as E}from"./index.d9a8a349.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as g,r as w,b0 as A,C as v,D as k,aI as s,aH as c,aM as p,aN as C,G as x,n as m,aX as D,bb as N,bD as P,bE as S,bC as T,bF as H}from"./arco.cd87ac27.js";import{d as F,c as I,r as _,i as V,j as b,l as M,n as j}from"./serial.3518333f.js";import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const L={class:"container"},R=["innerHTML"],U={name:"Flash"},z=g({...U,setup(G){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 F(u.connectPort);let a=await I();await _(a,24,1e3);const r=V(t.binaryFile),i=new Uint8Array([48,5,r.length,0,...r]);await b(a,i),await _(a,24);const o=M(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=j(l,e,o.length);try{await b(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)}),F(a),u.updateSettings({connectState:!1})};return(a,r)=>{const i=A("Breadcrumb"),o=D,e=N,l=P,d=S,n=T,h=H;return v(),k("div",L,[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,R)]),_:1})]),_:1})]),_:1})])}}});const Z=E(z,[["__scopeId","data-v-dacccb62"]]);export{Z as default};
|
||||
import{e as B,_ as E}from"./index.20864429.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as g,r as w,b0 as A,C as v,D as k,aI as s,aH as c,aM as p,aN as C,G as x,n as m,aX as D,bb as N,bD as P,bE as S,bC as T,bF as H}from"./arco.cd87ac27.js";import{d as F,c as I,r as _,i as V,j as b,l as M,n as j}from"./serial.3518333f.js";import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const L={class:"container"},R=["innerHTML"],U={name:"Flash"},z=g({...U,setup(G){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 F(u.connectPort);let a=await I();await _(a,24,1e3);const r=V(t.binaryFile),i=new Uint8Array([48,5,r.length,0,...r]);await b(a,i),await _(a,24);const o=M(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=j(l,e,o.length);try{await b(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)}),F(a),u.updateSettings({connectState:!1})};return(a,r)=>{const i=A("Breadcrumb"),o=D,e=N,l=P,d=S,n=T,h=H;return v(),k("div",L,[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,R)]),_:1})]),_:1})]),_:1})])}}});const Z=E(z,[["__scopeId","data-v-dacccb62"]]);export{Z as default};
|
BIN
assets/index.e70e8145.js.gz
Normal file
BIN
assets/index.e70e8145.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
import{_ as n}from"./index.d9a8a349.js";/* empty css */import{d as _,bB as c,aX as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.cd87ac27.js";import{f as m}from"./vue.a1682e6c.js";import"./chart.19f3a5b6.js";const f={class:"content"},x={class:"operation-row"},b=_({__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",x,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const N=n(b,[["__scopeId","data-v-8bef407f"]]);export{N as default};
|
||||
import{_ as n}from"./index.20864429.js";/* empty css */import{d as _,bB as c,aX as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.cd87ac27.js";import{f as m}from"./vue.a1682e6c.js";import"./chart.19f3a5b6.js";const f={class:"content"},x={class:"operation-row"},b=_({__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",x,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const N=n(b,[["__scopeId","data-v-8bef407f"]]);export{N as default};
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.fe174ea9.js.gz
Normal file
BIN
assets/index.fe174ea9.js.gz
Normal file
Binary file not shown.
@ -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.d9a8a349.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index.20864429.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/arco.cd87ac27.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/chart.19f3a5b6.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/vue.a1682e6c.js">
|
||||
|
BIN
new_font_h.bin
Normal file
BIN
new_font_h.bin
Normal file
Binary file not shown.
BIN
new_font_k.bin
Normal file
BIN
new_font_k.bin
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user