mirror of
https://github.com/silenty4ng/k5web
synced 2024-11-14 14:33:23 +00:00
update
This commit is contained in:
parent
5f13f93082
commit
418c0d14d6
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import{u as Ki,b as Ng,c as $g,d as Po,e as Ve,v as Hg,l as Bo,_ as St,f as Gg,g as zg,h as Kg,i as qg,j as qi,R as Zg,D as Yg,k as Xg,m as kg,n as Jg,o as Qg,p as Vg,r as jg}from"./index.45dd0990.js";import{F as nd}from"./index.0f1cf919.js";import{aW as ed,aO as bt,c as rn,d as je,f as Qe,aI as G,bg as td,bh as rd,h as Co,bi as To,bj as id,bk as ud,i as fd,C as an,D as wr,G as ln,aH as j,aM as Oo,u as be,aE as wn,aF as Fe,aN as Wo,bl as od,Q as sd,bb as ad,aX as ld,bm as cd,bd as Zi,be as Yi,ao as hd,E as Uo,bn as _d,a2 as pd,bo as gd,bp as dd,w as No,bq as vd,aK as wd,aJ as xd,br as md,o as $o,bs as yd,b as Ad,b0 as bd,bt as Do,bu as Sd,bv as Id,p as Ed,bw as Rd,bx as Ld,F as Mo,by as Cd,aZ as Td,bz as Od,bA as Dd}from"./arco.cd87ac27.js";import{f as xr,h as Xi,i as Md,j as Fd,k as Pd,l as Bd}from"./vue.a1682e6c.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as Fo,c as Wd,e as Ud}from"./serial.472eb3ab.js";import"./chart.19f3a5b6.js";const Ho="LoseHu Patch\uFF08BD8DFN\uFF09",Nd={name:Ho},$d=Object.freeze(Object.defineProperty({__proto__:null,name:Ho,default:Nd},Symbol.toStringTag,{value:"Module"})),Go="LoseHu Patch\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",Hd={name:Go},Gd=Object.freeze(Object.defineProperty({__proto__:null,name:Go,default:Hd},Symbol.toStringTag,{value:"Module"})),zo="TODO",zd={name:zo},Kd=Object.freeze(Object.defineProperty({__proto__:null,name:zo,default:zd},Symbol.toStringTag,{value:"Module"}));function qd(){const y=xr(),E=Ki();return{logout:async H=>{await E.logout();const W=y.currentRoute.value;ed.success("\u767B\u51FA\u6210\u529F"),y.push({name:H&&typeof H=="string"?H:"login",query:{...y.currentRoute.value.query,redirect:W.name}})}}}const Zd=(y,E)=>{const{target:o="_blank",...H}=E||{};window.open(y,o,Object.entries(H).reduce((W,un)=>{const[T,q]=un;return[...W,`${T}=${q}`]},[]).join(","))},Yd=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"),Xd=[...Ng,...$g],kd=Xd.map(y=>{const{name:E,path:o,meta:H,redirect:W,children:un}=y;return{name:E,path:o,meta:H,redirect:W,children:un}}),Jd=kd;var Gi={exports:{}};/**
|
||||
import{u as Ki,b as Ng,c as $g,d as Po,e as Ve,v as Hg,l as Bo,_ as St,f as Gg,g as zg,h as Kg,i as qg,j as qi,R as Zg,D as Yg,k as Xg,m as kg,n as Jg,o as Qg,p as Vg,r as jg}from"./index.9855b136.js";import{F as nd}from"./index.2d321d2f.js";import{aW as ed,aO as bt,c as rn,d as je,f as Qe,aI as G,bg as td,bh as rd,h as Co,bi as To,bj as id,bk as ud,i as fd,C as an,D as wr,G as ln,aH as j,aM as Oo,u as be,aE as wn,aF as Fe,aN as Wo,bl as od,Q as sd,bb as ad,aX as ld,bm as cd,bd as Zi,be as Yi,ao as hd,E as Uo,bn as _d,a2 as pd,bo as gd,bp as dd,w as No,bq as vd,aK as wd,aJ as xd,br as md,o as $o,bs as yd,b as Ad,b0 as bd,bt as Do,bu as Sd,bv as Id,p as Ed,bw as Rd,bx as Ld,F as Mo,by as Cd,aZ as Td,bz as Od,bA as Dd}from"./arco.cd87ac27.js";import{f as xr,h as Xi,i as Md,j as Fd,k as Pd,l as Bd}from"./vue.a1682e6c.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as Fo,c as Wd,e as Ud}from"./serial.472eb3ab.js";import"./chart.19f3a5b6.js";const Ho="LoseHu Patch\uFF08BD8DFN\uFF09",Nd={name:Ho},$d=Object.freeze(Object.defineProperty({__proto__:null,name:Ho,default:Nd},Symbol.toStringTag,{value:"Module"})),Go="LoseHu Patch\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",Hd={name:Go},Gd=Object.freeze(Object.defineProperty({__proto__:null,name:Go,default:Hd},Symbol.toStringTag,{value:"Module"})),zo="TODO",zd={name:zo},Kd=Object.freeze(Object.defineProperty({__proto__:null,name:zo,default:zd},Symbol.toStringTag,{value:"Module"}));function qd(){const y=xr(),E=Ki();return{logout:async H=>{await E.logout();const W=y.currentRoute.value;ed.success("\u767B\u51FA\u6210\u529F"),y.push({name:H&&typeof H=="string"?H:"login",query:{...y.currentRoute.value.query,redirect:W.name}})}}}const Zd=(y,E)=>{const{target:o="_blank",...H}=E||{};window.open(y,o,Object.entries(H).reduce((W,un)=>{const[T,q]=un;return[...W,`${T}=${q}`]},[]).join(","))},Yd=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"),Xd=[...Ng,...$g],kd=Xd.map(y=>{const{name:E,path:o,meta:H,redirect:W,children:un}=y;return{name:E,path:o,meta:H,redirect:W,children:un}}),Jd=kd;var Gi={exports:{}};/**
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
BIN
assets/default-layout.b2c984c7.js.gz
Normal file
BIN
assets/default-layout.b2c984c7.js.gz
Normal file
Binary file not shown.
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.266f30b8.js.gz
Normal file
BIN
assets/index.266f30b8.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
import{_ as t}from"./index.45dd0990.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.9855b136.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{e as P,_ as A}from"./index.45dd0990.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as L,r as R,b0 as U,C as F,D as H,aI as i,aH as l,aE as x,aM as B,bQ as K,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 C}from"./arco.cd87ac27.js";import{e as X,f as q,g as J}from"./serial.472eb3ab.js";import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const I=b=>(G("data-v-3f4493e9"),b=b(),Q(),b),W={class:"container"},Y=I(()=>C("div",{id:"canvasDiv",style:{zoom:"250%"}},null,-1)),Z=I(()=>C("br",null,null,-1)),$={name:"Backup"},tt=L({...$,setup(b){const g=P(),s=R({activeKey:1,binaryFile:void 0,loading:!1}),k=()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const d=new Blob([e.files[0]],{type:"application/octet-stream"}),c=URL.createObjectURL(d),a=document.createElement("canvas");a.classList.add("mt-3","mr-3","border","shadow-sm"),a.width=128,a.height=64;const p=a.cloneNode(),u=document.getElementById("canvasDiv");u.innerHTML="",u==null||u.append(a,p);const m=new Image;m.src=c,m.onload=()=>{const r=a.getContext("2d");r==null||r.drawImage(m,0,0,128,64);const f=r==null?void 0:r.getImageData(0,0,a.width,a.height).data;function y(o,n){const t=(n*128+o)*4;return f[t]+f[t+1]+f[t+2]>128*3?0:1}const h=p.getContext("2d"),_=h.getImageData(0,0,p.width,p.height);for(let o=0;o<64;o++)for(let n=0;n<128;n++){const t=(o*128+n)*4,w=!y(n,o);_.data[t]=w*255,_.data[t+1]=w*255,_.data[t+2]=w*255,_.data[t+3]=255}h.putImageData(_,0,0);const E=new Uint8Array(1024);let S=0;for(let o=0;o<64;o+=8)for(let n=0;n<128;n++){let v=0;for(let t=0;t<8;t++)v|=y(n,o+t)<<t;E[S++]=v}s.binaryFile=E}},e.click()},D=async()=>{if(g.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}s.loading=!0;let e=123728;s.activeKey==2&&(e=8320),await X(g.connectPort);const d=s.binaryFile;for(let c=e;c<d.length+e;c+=128)await q(g.connectPort,c,d.slice(c-e,c-e+128));await J(g.connectPort),s.loading=!1};return(e,d)=>{const c=U("Breadcrumb"),a=K,p=N,u=O,m=T,r=M,f=V,y=j,h=z;return F(),H("div",W,[i(c,{items:["\u5C0F\u5DE5\u5177","\u5F00\u673A\u56FE\u7247"]}),i(h,{gutter:20,align:"stretch"},{default:l(()=>[i(y,{span:24},{default:l(()=>[i(f,{loading:s.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:l(()=>[i(r,{class:"general-card",title:"\u5F00\u673A\u56FE\u7247"},{default:l(()=>[i(p,{"active-key":s.activeKey,onChange:d[0]||(d[0]=_=>{s.activeKey=_})},{default:l(()=>[(F(),x(a,{key:1,title:"LOSEHU 117"})),(F(),x(a,{key:2,title:"LOSEHU 118+"}))]),_:1},8,["active-key"]),Y,Z,i(m,null,{default:l(()=>[i(u,{onClick:k},{default:l(()=>[B("\u9009\u62E9\u56FE\u7247")]),_:1}),i(u,{type:"primary",disabled:!s.binaryFile,onClick:D},{default:l(()=>[B("\u66F4\u65B0")]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const dt=A(tt,[["__scopeId","data-v-3f4493e9"]]);export{dt as default};
|
||||
import{e as P,_ as A}from"./index.9855b136.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as L,r as R,b0 as U,C as F,D as H,aI as i,aH as l,aE as x,aM as B,bQ as K,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 C}from"./arco.cd87ac27.js";import{e as X,f as q,g as J}from"./serial.472eb3ab.js";import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const I=b=>(G("data-v-3f4493e9"),b=b(),Q(),b),W={class:"container"},Y=I(()=>C("div",{id:"canvasDiv",style:{zoom:"250%"}},null,-1)),Z=I(()=>C("br",null,null,-1)),$={name:"Backup"},tt=L({...$,setup(b){const g=P(),s=R({activeKey:1,binaryFile:void 0,loading:!1}),k=()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const d=new Blob([e.files[0]],{type:"application/octet-stream"}),c=URL.createObjectURL(d),a=document.createElement("canvas");a.classList.add("mt-3","mr-3","border","shadow-sm"),a.width=128,a.height=64;const p=a.cloneNode(),u=document.getElementById("canvasDiv");u.innerHTML="",u==null||u.append(a,p);const m=new Image;m.src=c,m.onload=()=>{const r=a.getContext("2d");r==null||r.drawImage(m,0,0,128,64);const f=r==null?void 0:r.getImageData(0,0,a.width,a.height).data;function y(o,n){const t=(n*128+o)*4;return f[t]+f[t+1]+f[t+2]>128*3?0:1}const h=p.getContext("2d"),_=h.getImageData(0,0,p.width,p.height);for(let o=0;o<64;o++)for(let n=0;n<128;n++){const t=(o*128+n)*4,w=!y(n,o);_.data[t]=w*255,_.data[t+1]=w*255,_.data[t+2]=w*255,_.data[t+3]=255}h.putImageData(_,0,0);const E=new Uint8Array(1024);let S=0;for(let o=0;o<64;o+=8)for(let n=0;n<128;n++){let v=0;for(let t=0;t<8;t++)v|=y(n,o+t)<<t;E[S++]=v}s.binaryFile=E}},e.click()},D=async()=>{if(g.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}s.loading=!0;let e=123728;s.activeKey==2&&(e=8320),await X(g.connectPort);const d=s.binaryFile;for(let c=e;c<d.length+e;c+=128)await q(g.connectPort,c,d.slice(c-e,c-e+128));await J(g.connectPort),s.loading=!1};return(e,d)=>{const c=U("Breadcrumb"),a=K,p=N,u=O,m=T,r=M,f=V,y=j,h=z;return F(),H("div",W,[i(c,{items:["\u5C0F\u5DE5\u5177","\u5F00\u673A\u56FE\u7247"]}),i(h,{gutter:20,align:"stretch"},{default:l(()=>[i(y,{span:24},{default:l(()=>[i(f,{loading:s.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:l(()=>[i(r,{class:"general-card",title:"\u5F00\u673A\u56FE\u7247"},{default:l(()=>[i(p,{"active-key":s.activeKey,onChange:d[0]||(d[0]=_=>{s.activeKey=_})},{default:l(()=>[(F(),x(a,{key:1,title:"LOSEHU 117"})),(F(),x(a,{key:2,title:"LOSEHU 118+"}))]),_:1},8,["active-key"]),Y,Z,i(m,null,{default:l(()=>[i(u,{onClick:k},{default:l(()=>[B("\u9009\u62E9\u56FE\u7247")]),_:1}),i(u,{type:"primary",disabled:!s.binaryFile,onClick:D},{default:l(()=>[B("\u66F4\u65B0")]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const dt=A(tt,[["__scopeId","data-v-3f4493e9"]]);export{dt as default};
|
BIN
assets/index.430c053d.js.gz
Normal file
BIN
assets/index.430c053d.js.gz
Normal file
Binary file not shown.
1
assets/index.5e358bcf.js
Normal file
1
assets/index.5e358bcf.js
Normal file
@ -0,0 +1 @@
|
||||
import{e as h,_ as B}from"./index.9855b136.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as E,r as g,b0 as w,C as A,D as v,aI as s,aH as c,aM as p,aN as k,G as C,n as m,aX as x,bb as D,bD as N,bE as P,bC as T,bF as H}from"./arco.cd87ac27.js";import{d as I,c as S,r as _,i as V,j as b,l as M,n as j}from"./serial.472eb3ab.js";import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const L={class:"container"},R=["innerHTML"],U={name:"Flash"},z=E({...U,setup(G){const u=h(),t=g({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()},f=async()=>{if(!t.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}u.connectPort&&await I(u.connectPort);let a=await S();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)}),u.updateSettings({connectPort:a})};return(a,r)=>{const i=w("Breadcrumb"),o=x,e=D,l=N,d=P,n=T,y=H;return A(),v("div",L,[s(i,{items:["\u5C0F\u5DE5\u5177","\u56FA\u4EF6\u5347\u7EA7"]}),s(y,{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(k(t.binaryFile?t.binaryName:"\u9009\u62E9\u56FA\u4EF6"),1)]),_:1}),s(o,{type:"primary",disabled:!t.binaryFile,onClick:f},{default:c(()=>[p("\u66F4\u65B0")]),_:1},8,["disabled"])]),_:1}),s(l),C("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=B(z,[["__scopeId","data-v-cbafb82f"]]);export{Z as default};
|
BIN
assets/index.5e358bcf.js.gz
Normal file
BIN
assets/index.5e358bcf.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.6924d647.js.gz
Normal file
BIN
assets/index.6924d647.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
import{d as p,r as C,C as d,aE as D,aH as o,aI as e,aM as u,aN as n,u as s,bw as b,bx as y,bl as E,bC as x,bD as A,aX as g,bE as S,bd as w,be as I,G as _,D as k}from"./arco.cd87ac27.js";import{e as N,_ as l}from"./index.45dd0990.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const m=t=>(w("data-v-19872a30"),t=t(),I(),t),T=m(()=>_("br",null,null,-1)),V=m(()=>_("br",null,null,-1)),z=p({__name:"banner",setup(t){const a=N(),c=C({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),F=async()=>{};return(q,J)=>{const f=E,r=x,B=A,h=g,v=S;return d(),D(r,{class:"banner"},{default:o(()=>[e(r,null,{default:o(()=>[e(f,{heading:5,style:{"margin-top":"0"}},{default:o(()=>[u(n(s(a).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(B,{class:"panel-border"}),b(e(v,{style:{width:"360px",marginTop:"2em",marginBottom:"2em"},title:"\u624B\u53F0\u4FE1\u606F"},{default:o(()=>{var i;return[u(" \u5F53\u524D\u56FA\u4EF6\u7248\u672C\uFF1A"+n(s(a).firmwareVersion)+" ",1),T,u(" \u5339\u914D\u5199\u9891\u914D\u7F6E\uFF1A"+n((i=s(a).configuration)==null?void 0:i.name)+" ",1),V,u(" \u5B58\u50A8\u5927\u5C0F\uFF1A"+n(c.eepromSize)+" ",1),e(h,{size:"mini",type:"primary",onClick:F},{default:o(()=>[u("\u68C0\u6D4B")]),_:1})]}),_:1},512),[[y,s(a).connectState]])]),_:1})}}});const $=l(z,[["__scopeId","data-v-19872a30"]]),G={class:"container"},H={class:"left-side"},M={class:"panel"},X={name:"Dashboard"},j=p({...X,setup(t){return(a,c)=>(d(),k("div",G,[_("div",H,[_("div",M,[e($)])])]))}});const ee=l(j,[["__scopeId","data-v-8f743d99"]]);export{ee as default};
|
||||
import{d as p,r as C,C as d,aE as D,aH as o,aI as e,aM as u,aN as n,u as s,bw as b,bx as y,bl as E,bC as x,bD as A,aX as g,bE as S,bd as w,be as I,G as _,D as k}from"./arco.cd87ac27.js";import{e as N,_ as l}from"./index.9855b136.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const m=t=>(w("data-v-19872a30"),t=t(),I(),t),T=m(()=>_("br",null,null,-1)),V=m(()=>_("br",null,null,-1)),z=p({__name:"banner",setup(t){const a=N(),c=C({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),F=async()=>{};return(q,J)=>{const f=E,r=x,B=A,h=g,v=S;return d(),D(r,{class:"banner"},{default:o(()=>[e(r,null,{default:o(()=>[e(f,{heading:5,style:{"margin-top":"0"}},{default:o(()=>[u(n(s(a).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(B,{class:"panel-border"}),b(e(v,{style:{width:"360px",marginTop:"2em",marginBottom:"2em"},title:"\u624B\u53F0\u4FE1\u606F"},{default:o(()=>{var i;return[u(" \u5F53\u524D\u56FA\u4EF6\u7248\u672C\uFF1A"+n(s(a).firmwareVersion)+" ",1),T,u(" \u5339\u914D\u5199\u9891\u914D\u7F6E\uFF1A"+n((i=s(a).configuration)==null?void 0:i.name)+" ",1),V,u(" \u5B58\u50A8\u5927\u5C0F\uFF1A"+n(c.eepromSize)+" ",1),e(h,{size:"mini",type:"primary",onClick:F},{default:o(()=>[u("\u68C0\u6D4B")]),_:1})]}),_:1},512),[[y,s(a).connectState]])]),_:1})}}});const $=l(z,[["__scopeId","data-v-19872a30"]]),G={class:"container"},H={class:"left-side"},M={class:"panel"},X={name:"Dashboard"},j=p({...X,setup(t){return(a,c)=>(d(),k("div",G,[_("div",H,[_("div",M,[e($)])])]))}});const ee=l(j,[["__scopeId","data-v-8f743d99"]]);export{ee as default};
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
.container[data-v-faae17bf]{padding:0 20px 20px}.container[data-v-faae17bf] .arco-list-content{overflow-x:hidden}.container[data-v-faae17bf] .arco-card-meta-title{font-size:14px}[data-v-faae17bf] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-faae17bf] .arco-list-item{width:33%}[data-v-faae17bf] .block-title{margin:0 0 12px;font-size:14px}[data-v-faae17bf] .list-wrap .list-row{align-items:stretch}[data-v-faae17bf] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-faae17bf] .list-wrap :deep(.arco-space){width:100%}[data-v-faae17bf] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
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.9be388c9.js.gz
Normal file
BIN
assets/index.9be388c9.js.gz
Normal file
Binary file not shown.
1
assets/index.adf68ed7.css
Normal file
1
assets/index.adf68ed7.css
Normal file
@ -0,0 +1 @@
|
||||
.container[data-v-cbafb82f]{padding:0 20px 20px}.container[data-v-cbafb82f] .arco-list-content{overflow-x:hidden}.container[data-v-cbafb82f] .arco-card-meta-title{font-size:14px}[data-v-cbafb82f] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-cbafb82f] .arco-list-item{width:33%}[data-v-cbafb82f] .block-title{margin:0 0 12px;font-size:14px}[data-v-cbafb82f] .list-wrap .list-row{align-items:stretch}[data-v-cbafb82f] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-cbafb82f] .list-wrap :deep(.arco-space){width:100%}[data-v-cbafb82f] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
File diff suppressed because one or more lines are too long
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.0f1cf919.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.45dd0990.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.2d321d2f.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.9855b136.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.c4f23dde.js.gz
Normal file
BIN
assets/index.c4f23dde.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
import{e as b,_ as B}from"./index.45dd0990.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as E,r as v,b0 as g,C as w,D as C,aI as u,aH as s,aM as d,G as k,aX as h,bb as x,bD as D,bE as y,bC as A,bF as T,n as H}from"./arco.cd87ac27.js";import{e as P,f as S,g as I}from"./serial.472eb3ab.js";import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const M={class:"container"},N=["innerHTML"],R={name:"Chi"},V=E({...R,setup($){const r=b(),n=v({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:""}),m=async(a=0,t)=>{await P(r.connectPort);for(let o=a;o<t.length+a;o+=128)await S(r.connectPort,o,t.slice(o-a,o-a+128)),n.status=n.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((o-a)/t.length*100).toFixed(1)+"%<br/>",H(()=>{const e=document==null?void 0:document.getElementById("statusArea");e&&(e.scrollTop=e==null?void 0:e.scrollHeight)});n.status=n.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await I(r.connectPort)},c=async(a=1)=>{if(r.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}n.status=n.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;switch(a){case 1:t=await fetch("/old_font.bin");break;default:alert("TODO");return}const o=t.body.getReader(),e=[];for(;;){const{done:_,value:l}=await o.read();if(_)break;e.push(...l)}const i=new Uint8Array(e);await m(8192,i)};return(a,t)=>{const o=g("Breadcrumb"),e=h,i=x,_=D,l=y,F=A,f=T;return w(),C("div",M,[u(o,{items:["\u5C0F\u5DE5\u5177","\u5B57\u5E93\u5199\u5165"]}),u(f,{gutter:20,align:"stretch"},{default:s(()=>[u(F,{span:24},{default:s(()=>[u(l,{class:"general-card",title:"\u5B57\u5E93\u5199\u5165"},{default:s(()=>[u(i,null,{default:s(()=>[u(e,{onClick:t[0]||(t[0]=p=>c(1))},{default:s(()=>[d("\u5199\u5165 117 \u5B57\u5E93\uFF08K\uFF09")]),_:1}),u(e,{onClick:t[1]||(t[1]=p=>c(2))},{default:s(()=>[d("\u5199\u5165 118 \u5B57\u5E93\uFF08K\uFF09")]),_:1}),u(e,{onClick:t[2]||(t[2]=p=>c(3))},{default:s(()=>[d("\u5199\u5165 118 \u5B57\u5E93\uFF08H\uFF09")]),_:1})]),_:1}),u(_),k("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:n.status},null,8,N)]),_:1})]),_:1})]),_:1})])}}});const J=B(V,[["__scopeId","data-v-04409b57"]]);export{J as default};
|
||||
import{e as b,_ as B}from"./index.9855b136.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as E,r as v,b0 as g,C as w,D as C,aI as u,aH as s,aM as d,G as k,aX as h,bb as x,bD as D,bE as y,bC as A,bF as T,n as H}from"./arco.cd87ac27.js";import{e as P,f as S,g as I}from"./serial.472eb3ab.js";import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const M={class:"container"},N=["innerHTML"],R={name:"Chi"},V=E({...R,setup($){const r=b(),n=v({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:""}),m=async(a=0,t)=>{await P(r.connectPort);for(let o=a;o<t.length+a;o+=128)await S(r.connectPort,o,t.slice(o-a,o-a+128)),n.status=n.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((o-a)/t.length*100).toFixed(1)+"%<br/>",H(()=>{const e=document==null?void 0:document.getElementById("statusArea");e&&(e.scrollTop=e==null?void 0:e.scrollHeight)});n.status=n.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await I(r.connectPort)},c=async(a=1)=>{if(r.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}n.status=n.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;switch(a){case 1:t=await fetch("/old_font.bin");break;default:alert("TODO");return}const o=t.body.getReader(),e=[];for(;;){const{done:_,value:l}=await o.read();if(_)break;e.push(...l)}const i=new Uint8Array(e);await m(8192,i)};return(a,t)=>{const o=g("Breadcrumb"),e=h,i=x,_=D,l=y,F=A,f=T;return w(),C("div",M,[u(o,{items:["\u5C0F\u5DE5\u5177","\u5B57\u5E93\u5199\u5165"]}),u(f,{gutter:20,align:"stretch"},{default:s(()=>[u(F,{span:24},{default:s(()=>[u(l,{class:"general-card",title:"\u5B57\u5E93\u5199\u5165"},{default:s(()=>[u(i,null,{default:s(()=>[u(e,{onClick:t[0]||(t[0]=p=>c(1))},{default:s(()=>[d("\u5199\u5165 117 \u5B57\u5E93\uFF08K\uFF09")]),_:1}),u(e,{onClick:t[1]||(t[1]=p=>c(2))},{default:s(()=>[d("\u5199\u5165 118 \u5B57\u5E93\uFF08K\uFF09")]),_:1}),u(e,{onClick:t[2]||(t[2]=p=>c(3))},{default:s(()=>[d("\u5199\u5165 118 \u5B57\u5E93\uFF08H\uFF09")]),_:1})]),_:1}),u(_),k("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:n.status},null,8,N)]),_:1})]),_:1})]),_:1})])}}});const J=B(V,[["__scopeId","data-v-04409b57"]]);export{J as default};
|
BIN
assets/index.cc8972a8.js.gz
Normal file
BIN
assets/index.cc8972a8.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
import{_ as n}from"./index.45dd0990.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.9855b136.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.
@ -1 +0,0 @@
|
||||
import{e as h,_ as B}from"./index.45dd0990.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as E,r as g,b0 as w,C as A,D as v,aI as s,aH as r,aM as p,aN as k,G as C,n as m,aX as x,bb as P,bD as D,bE as N,bC as T,bF as H}from"./arco.cd87ac27.js";import{d as I,c as S,r as _,i as V,j as f,l as M,n as j}from"./serial.472eb3ab.js";import"./chart.19f3a5b6.js";import"./vue.a1682e6c.js";const L={class:"container"},R=["innerHTML"],U={name:"Flash"},z=E({...U,setup(G){const u=h(),t=g({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 c=new Blob([a.files[0]],{type:"application/octet-stream"}),i=new Uint8Array(await c.arrayBuffer());t.binaryFile=i,t.binaryName=a.files[0].name},a.click()},b=async()=>{if(!t.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}u.connectPort&&await I(u.connectPort);let a=await S();await _(a,24,1e3);const c=V(t.binaryFile),i=new Uint8Array([48,5,c.length,0,...c]);await f(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 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)}),u.connectPort&&u.updateSettings({connectPort:a})};return(a,c)=>{const i=w("Breadcrumb"),o=x,e=P,l=D,d=N,n=T,y=H;return A(),v("div",L,[s(i,{items:["\u5C0F\u5DE5\u5177","\u56FA\u4EF6\u5347\u7EA7"]}),s(y,{gutter:20,align:"stretch"},{default:r(()=>[s(n,{span:24},{default:r(()=>[s(d,{class:"general-card",title:"\u56FA\u4EF6\u5347\u7EA7"},{default:r(()=>[s(e,null,{default:r(()=>[s(o,{onClick:F},{default:r(()=>[p(k(t.binaryFile?t.binaryName:"\u9009\u62E9\u56FA\u4EF6"),1)]),_:1}),s(o,{type:"primary",disabled:!t.binaryFile,onClick:b},{default:r(()=>[p("\u66F4\u65B0")]),_:1},8,["disabled"])]),_:1}),s(l),C("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=B(z,[["__scopeId","data-v-faae17bf"]]);export{Z as default};
|
Binary file not shown.
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.45dd0990.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index.9855b136.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">
|
||||
|
Loading…
Reference in New Issue
Block a user