mirror of
https://github.com/silenty4ng/k5web
synced 2024-11-14 14:33:23 +00:00
update
This commit is contained in:
parent
80052235af
commit
dd38215779
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import{u as Gi,b as bd,c as Ad,d as Ff,e as Ve,v as Sd,l as Mf,_ as St,f as Ed,g as Ld,h as Id,i as Td,j as qi,R as Cd,D as Rd,k as Od,m as Dd,n as Fd,o as Md,p as Pd,r as Bd}from"./index.55662615.js";import{F as Wd}from"./index.b478b6bb.js";import{b6 as Ud,aO as At,c as rn,d as je,f as Qe,aI as K,bp as $d,aU as Hd,h as If,bq as Tf,br as Nd,bs as Kd,i as zd,bi as Gd,bt as qd,C as an,D as wr,G as ln,aH as j,aM as Cf,u as Ae,aE as wn,aF as Me,aN as Pf,bu as Zd,Q as Yd,b7 as kd,ao as Xd,bv as Jd,E as Bf,bw as Qd,a2 as Vd,bx as jd,bm as Wf,bn as Uf,w as $f,aZ as n1,by as e1,aK as t1,aJ as r1,o as Hf,bz as i1,b as u1,ba as o1,bA as Rf,bB as f1,b1 as s1,p as a1,b5 as l1,bC as c1,a_ as h1,a$ as _1,F as Of,bD as p1,bE as g1}from"./arco.93f0afda.js";import{f as mr,h as Zi,i as d1,j as v1,k as w1,l as m1}from"./vue.ded74ca2.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as Df,c as x1,e as y1}from"./serial.bad97c4e.js";import"./chart.c383733a.js";const Nf="LoseHu 117 \u5386\u53F2\u7248\u672C",Kf="official",zf="official",b1={name:Nf,uart:Kf,charset:zf},A1=Object.freeze(Object.defineProperty({__proto__:null,name:Nf,uart:Kf,charset:zf,default:b1},Symbol.toStringTag,{value:"Module"})),Gf="LoseHu 117 \u5386\u53F2\u7248\u672C\u6269\u5BB9\u7248",qf="losehu",Zf="losehu",Yf=!0,S1={name:Gf,uart:qf,charset:Zf,K:Yf},E1=Object.freeze(Object.defineProperty({__proto__:null,name:Gf,uart:qf,charset:Zf,K:Yf,default:S1},Symbol.toStringTag,{value:"Module"})),kf="LoseHu 118+",Xf="official",Jf="official",L1={name:kf,uart:Xf,charset:Jf},I1=Object.freeze(Object.defineProperty({__proto__:null,name:kf,uart:Xf,charset:Jf,default:L1},Symbol.toStringTag,{value:"Module"})),Qf="LoseHu 118+ 2Mbit \u6269\u5BB9\u7248",Vf="losehu",jf="gb2312",ns=!0,es=!0,T1={name:Qf,uart:Vf,charset:jf,H:ns,sat:es},C1=Object.freeze(Object.defineProperty({__proto__:null,name:Qf,uart:Vf,charset:jf,H:ns,sat:es,default:T1},Symbol.toStringTag,{value:"Module"})),ts="LoseHu 118+ \u6269\u5BB9\u7248",rs="losehu",is="gb2312",us=!0,R1={name:ts,uart:rs,charset:is,K:us},O1=Object.freeze(Object.defineProperty({__proto__:null,name:ts,uart:rs,charset:is,K:us,default:R1},Symbol.toStringTag,{value:"Module"})),os="LoseHu 120+ \u6269\u5BB9\u7248",fs="losehu",ss="gb2312",as=!0,ls=!0,D1={name:os,uart:fs,charset:ss,K:as,sat:ls},F1=Object.freeze(Object.defineProperty({__proto__:null,name:os,uart:fs,charset:ss,K:as,sat:ls,default:D1},Symbol.toStringTag,{value:"Module"})),cs="LoseHu 124+ 2Mbit \u6269\u5BB9\u7248",hs="losehu",_s="gb2312",ps=!0,gs=!0,ds=!0,M1={name:cs,uart:hs,charset:_s,H:ps,sat:gs,newpinyin:ds},P1=Object.freeze(Object.defineProperty({__proto__:null,name:cs,uart:hs,charset:_s,H:ps,sat:gs,newpinyin:ds,default:M1},Symbol.toStringTag,{value:"Module"})),vs="LoseHu Patch LTS\uFF08BD8DFN\uFF09",ws="official",ms="official",xs=!0,B1={name:vs,uart:ws,charset:ms,localmdc:xs},W1=Object.freeze(Object.defineProperty({__proto__:null,name:vs,uart:ws,charset:ms,localmdc:xs,default:B1},Symbol.toStringTag,{value:"Module"})),ys="LoseHu Patch LTS\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",bs="losehu",As="losehu",Ss=!0,Es=!0,U1={name:ys,uart:bs,charset:As,K:Ss,localmdc:Es},$1=Object.freeze(Object.defineProperty({__proto__:null,name:ys,uart:bs,charset:As,K:Ss,localmdc:Es,default:U1},Symbol.toStringTag,{value:"Module"})),Ls="Official",H1={name:Ls},N1=Object.freeze(Object.defineProperty({__proto__:null,name:Ls,default:H1},Symbol.toStringTag,{value:"Module"}));function K1(){const A=mr(),L=Gi();return{logout:async N=>{await L.logout();const W=A.currentRoute.value;Ud.success("\u767B\u51FA\u6210\u529F"),A.push({name:N&&typeof N=="string"?N:"login",query:{...A.currentRoute.value.query,redirect:W.name}})}}}const z1=(A,L)=>{const{target:f="_blank",...N}=L||{};window.open(A,f,Object.entries(N).reduce((W,un)=>{const[R,q]=un;return[...W,`${R}=${q}`]},[]).join(","))},G1=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"),q1=[...bd,...Ad],Z1=q1.map(A=>{const{name:L,path:f,meta:N,redirect:W,children:un}=A;return{name:L,path:f,meta:N,redirect:W,children:un}}),Y1=Z1;var Ki={exports:{}};/**
|
||||
import{u as Gi,b as bd,c as Ad,d as Ff,e as Ve,v as Sd,l as Mf,_ as St,f as Ed,g as Ld,h as Id,i as Td,j as qi,R as Cd,D as Rd,k as Od,m as Dd,n as Fd,o as Md,p as Pd,r as Bd}from"./index.832d54dc.js";import{F as Wd}from"./index.c119bc5c.js";import{b6 as Ud,aO as At,c as rn,d as je,f as Qe,aI as K,bp as $d,aU as Hd,h as If,bq as Tf,br as Nd,bs as Kd,i as zd,bi as Gd,bt as qd,C as an,D as wr,G as ln,aH as j,aM as Cf,u as Ae,aE as wn,aF as Me,aN as Pf,bu as Zd,Q as Yd,b7 as kd,ao as Xd,bv as Jd,E as Bf,bw as Qd,a2 as Vd,bx as jd,bm as Wf,bn as Uf,w as $f,aZ as n1,by as e1,aK as t1,aJ as r1,o as Hf,bz as i1,b as u1,ba as o1,bA as Rf,bB as f1,b1 as s1,p as a1,b5 as l1,bC as c1,a_ as h1,a$ as _1,F as Of,bD as p1,bE as g1}from"./arco.93f0afda.js";import{f as mr,h as Zi,i as d1,j as v1,k as w1,l as m1}from"./vue.ded74ca2.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as Df,c as x1,e as y1}from"./serial.bad97c4e.js";import"./chart.c383733a.js";const Nf="LoseHu 117 \u5386\u53F2\u7248\u672C",Kf="official",zf="official",b1={name:Nf,uart:Kf,charset:zf},A1=Object.freeze(Object.defineProperty({__proto__:null,name:Nf,uart:Kf,charset:zf,default:b1},Symbol.toStringTag,{value:"Module"})),Gf="LoseHu 117 \u5386\u53F2\u7248\u672C\u6269\u5BB9\u7248",qf="losehu",Zf="losehu",Yf=!0,S1={name:Gf,uart:qf,charset:Zf,K:Yf},E1=Object.freeze(Object.defineProperty({__proto__:null,name:Gf,uart:qf,charset:Zf,K:Yf,default:S1},Symbol.toStringTag,{value:"Module"})),kf="LoseHu 118+",Xf="official",Jf="official",L1={name:kf,uart:Xf,charset:Jf},I1=Object.freeze(Object.defineProperty({__proto__:null,name:kf,uart:Xf,charset:Jf,default:L1},Symbol.toStringTag,{value:"Module"})),Qf="LoseHu 118+ 2Mbit \u6269\u5BB9\u7248",Vf="losehu",jf="gb2312",ns=!0,es=!0,T1={name:Qf,uart:Vf,charset:jf,H:ns,sat:es},C1=Object.freeze(Object.defineProperty({__proto__:null,name:Qf,uart:Vf,charset:jf,H:ns,sat:es,default:T1},Symbol.toStringTag,{value:"Module"})),ts="LoseHu 118+ \u6269\u5BB9\u7248",rs="losehu",is="gb2312",us=!0,R1={name:ts,uart:rs,charset:is,K:us},O1=Object.freeze(Object.defineProperty({__proto__:null,name:ts,uart:rs,charset:is,K:us,default:R1},Symbol.toStringTag,{value:"Module"})),os="LoseHu 120+ \u6269\u5BB9\u7248",fs="losehu",ss="gb2312",as=!0,ls=!0,D1={name:os,uart:fs,charset:ss,K:as,sat:ls},F1=Object.freeze(Object.defineProperty({__proto__:null,name:os,uart:fs,charset:ss,K:as,sat:ls,default:D1},Symbol.toStringTag,{value:"Module"})),cs="LoseHu 124+ 2Mbit \u6269\u5BB9\u7248",hs="losehu",_s="gb2312",ps=!0,gs=!0,ds=!0,M1={name:cs,uart:hs,charset:_s,H:ps,sat:gs,newpinyin:ds},P1=Object.freeze(Object.defineProperty({__proto__:null,name:cs,uart:hs,charset:_s,H:ps,sat:gs,newpinyin:ds,default:M1},Symbol.toStringTag,{value:"Module"})),vs="LoseHu Patch LTS\uFF08BD8DFN\uFF09",ws="official",ms="official",xs=!0,B1={name:vs,uart:ws,charset:ms,localmdc:xs},W1=Object.freeze(Object.defineProperty({__proto__:null,name:vs,uart:ws,charset:ms,localmdc:xs,default:B1},Symbol.toStringTag,{value:"Module"})),ys="LoseHu Patch LTS\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",bs="losehu",As="losehu",Ss=!0,Es=!0,U1={name:ys,uart:bs,charset:As,K:Ss,localmdc:Es},$1=Object.freeze(Object.defineProperty({__proto__:null,name:ys,uart:bs,charset:As,K:Ss,localmdc:Es,default:U1},Symbol.toStringTag,{value:"Module"})),Ls="Official",H1={name:Ls},N1=Object.freeze(Object.defineProperty({__proto__:null,name:Ls,default:H1},Symbol.toStringTag,{value:"Module"}));function K1(){const A=mr(),L=Gi();return{logout:async N=>{await L.logout();const W=A.currentRoute.value;Ud.success("\u767B\u51FA\u6210\u529F"),A.push({name:N&&typeof N=="string"?N:"login",query:{...A.currentRoute.value.query,redirect:W.name}})}}}const z1=(A,L)=>{const{target:f="_blank",...N}=L||{};window.open(A,f,Object.entries(N).reduce((W,un)=>{const[R,q]=un;return[...W,`${R}=${q}`]},[]).join(","))},G1=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"),q1=[...bd,...Ad],Z1=q1.map(A=>{const{name:L,path:f,meta:N,redirect:W,children:un}=A;return{name:L,path:f,meta:N,redirect:W,children:un}}),Y1=Z1;var Ki={exports:{}};/**
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
BIN
assets/default-layout.d4fd7f3f.js.gz
Normal file
BIN
assets/default-layout.d4fd7f3f.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
import{_ as n}from"./index.55662615.js";import{d as c,bG as _,b7 as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.93f0afda.js";import{f as m}from"./vue.ded74ca2.js";import"./chart.c383733a.js";const f={class:"content"},x={class:"operation-row"},b=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,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 E=n(b,[["__scopeId","data-v-8bef407f"]]);export{E as default};
|
||||
import{_ as n}from"./index.832d54dc.js";import{d as c,bG as _,b7 as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.93f0afda.js";import{f as m}from"./vue.ded74ca2.js";import"./chart.c383733a.js";const f={class:"content"},x={class:"operation-row"},b=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,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 E=n(b,[["__scopeId","data-v-8bef407f"]]);export{E as default};
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.26509b74.css.gz
Normal file
BIN
assets/index.26509b74.css.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
import{_ as r}from"./index.55662615.js";/* empty css */import{d as p,r as _,o as f,bF as m,b7 as h,D as F,a_ as i,a$ as c,G as a,aI as e,aN as n,aH as g,bm as y,bn as v,C as A,aM as D}from"./arco.93f0afda.js";import"./chart.c383733a.js";import"./vue.ded74ca2.js";const S=s=>(y("data-v-14f2aa44"),s=s(),v(),s),b={class:"container"},B={style:{"background-color":"#fff",padding:"10%"}},C={style:{"background-color":"#fff",padding:"10%"}},E=S(()=>a("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F ",-1)),x={name:"SatLoc"},w=p({...x,setup(s){const t=_({lat:0,lng:0,alt:0,type:0,uuid:""});f(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(o=>{o.coords&&(t.lat=o.coords.latitude,t.lng=o.coords.longitude,o.coords.altitude&&(t.alt=o.coords.altitude))})});const d=async()=>{await fetch("https://k5.vicicode.com/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(o,k)=>{const u=m,l=h;return A(),F("div",b,[i(a("div",B," \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE ",512),[[c,t.type!=0]]),i(a("div",C,[E,e(u),a("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF1A"+n(t.lng),1),e(u),a("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF1A"+n(t.lat),1),e(u),a("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF1A"+n(t.alt),1),e(u),e(l,{type:"primary",onClick:d},{default:g(()=>[D("\u4E0A\u4F20")]),_:1})],512),[[c,t.type==0]])])}}});const V=r(w,[["__scopeId","data-v-14f2aa44"]]);export{V as default};
|
||||
import{_ as r}from"./index.832d54dc.js";/* empty css */import{d as p,r as _,o as f,bF as m,b7 as h,D as F,a_ as i,a$ as c,G as a,aI as e,aN as n,aH as g,bm as y,bn as v,C as A,aM as D}from"./arco.93f0afda.js";import"./chart.c383733a.js";import"./vue.ded74ca2.js";const S=s=>(y("data-v-14f2aa44"),s=s(),v(),s),b={class:"container"},B={style:{"background-color":"#fff",padding:"10%"}},C={style:{"background-color":"#fff",padding:"10%"}},E=S(()=>a("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F ",-1)),x={name:"SatLoc"},w=p({...x,setup(s){const t=_({lat:0,lng:0,alt:0,type:0,uuid:""});f(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(o=>{o.coords&&(t.lat=o.coords.latitude,t.lng=o.coords.longitude,o.coords.altitude&&(t.alt=o.coords.altitude))})});const d=async()=>{await fetch("https://k5.vicicode.com/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(o,k)=>{const u=m,l=h;return A(),F("div",b,[i(a("div",B," \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE ",512),[[c,t.type!=0]]),i(a("div",C,[E,e(u),a("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF1A"+n(t.lng),1),e(u),a("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF1A"+n(t.lat),1),e(u),a("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF1A"+n(t.alt),1),e(u),e(l,{type:"primary",onClick:d},{default:g(()=>[D("\u4E0A\u4F20")]),_:1})],512),[[c,t.type==0]])])}}});const V=r(w,[["__scopeId","data-v-14f2aa44"]]);export{V as default};
|
BIN
assets/index.31e93651.js.gz
Normal file
BIN
assets/index.31e93651.js.gz
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import{q as oe,s as ce,t as ie,L as j,S as A,$ as z,G as J,z as R,y as x,F as H,V as _e,W as he,e as Oe,ag as we,_ as je}from"./index.55662615.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as I,c as p,o as Ce,b as Se,f as Pe,t as xe,p as Ee,r as ue,aI as u,aU as K,i as Fe,bP as De,bH as Ne,bN as Ae,C as B,D as W,aH as w,aK as ke,aJ as Ie,aE as L,G as U,u as X,aM as q,bI as Be,bM as $e,bQ as Te,b7 as Le,bi as Me,bm as ze,bn as Re}from"./arco.93f0afda.js";import{e as He,b as Ke,g as Ue}from"./serial.bad97c4e.js";import{b as k,L as Ve,B as Ge}from"./index.b449f454.js";import{i as T,P as Je}from"./index.e413cbb8.js";import"./chart.c383733a.js";import"./vue.ded74ca2.js";function Z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function Q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Z(Object(n),!0).forEach(function(a){ie(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var We={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.66 7.17l-5.3 5.3-1.42-1.41 5.3-5.3 1.42 1.41zm5.65 0l-10.6 10.6-6.37-6.36L7.76 10l4.95 4.95 9.19-9.2 1.41 1.42zM2.11 10l4.94 4.95.35-.35L8.82 16l-1.77 1.77L.69 11.4 2.1 10z"}}]},Xe=I({name:"CheckDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,a=p(()=>t.size),{className:o,style:d}=oe(a),i=p(()=>["t-icon","t-icon-check-double",o.value]),r=p(()=>Q(Q({},d.value),n.style)),s=p(()=>({class:i.value,style:r.value,onClick:f=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:f})}}));return()=>ce(We,s.value)}});const qe=Xe;function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function ee(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y(Object(n),!0).forEach(function(a){ie(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Ze={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.88 1.38l1.28.22a4 4 0 013.34 3.94V8h5.32a2 2 0 011.97 2.33l-1.66 10A2 2 0 0119.15 22H7V10.8l3.88-9.42zm1.23 2.26L9 11.2V20h10.15l1.67-10H13.5V5.54a2 2 0 00-1.39-1.9zM4 10v12H2V10h2z"}}]},Qe=I({name:"ThumbUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,a=p(()=>t.size),{className:o,style:d}=oe(a),i=p(()=>["t-icon","t-icon-thumb-up",o.value]),r=p(()=>ee(ee({},d.value),n.style)),s=p(()=>({class:i.value,style:r.value,onClick:f=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:f})}}));return()=>ce(Ze,s.value)}});const Ye=Qe;/**
|
||||
import{q as oe,s as ce,t as ie,L as j,S as A,$ as z,G as J,z as R,y as x,F as H,V as _e,W as he,e as Oe,ag as we,_ as je}from"./index.832d54dc.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as I,c as p,o as Ce,b as Se,f as Pe,t as xe,p as Ee,r as ue,aI as u,aU as K,i as Fe,bP as De,bH as Ne,bN as Ae,C as B,D as W,aH as w,aK as ke,aJ as Ie,aE as L,G as U,u as X,aM as q,bI as Be,bM as $e,bQ as Te,b7 as Le,bi as Me,bm as ze,bn as Re}from"./arco.93f0afda.js";import{e as He,b as Ke,g as Ue}from"./serial.bad97c4e.js";import{b as k,L as Ve,B as Ge}from"./index.f1bec257.js";import{i as T,P as Je}from"./index.57de0a28.js";import"./chart.c383733a.js";import"./vue.ded74ca2.js";function Z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function Q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Z(Object(n),!0).forEach(function(a){ie(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var We={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.66 7.17l-5.3 5.3-1.42-1.41 5.3-5.3 1.42 1.41zm5.65 0l-10.6 10.6-6.37-6.36L7.76 10l4.95 4.95 9.19-9.2 1.41 1.42zM2.11 10l4.94 4.95.35-.35L8.82 16l-1.77 1.77L.69 11.4 2.1 10z"}}]},Xe=I({name:"CheckDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,a=p(()=>t.size),{className:o,style:d}=oe(a),i=p(()=>["t-icon","t-icon-check-double",o.value]),r=p(()=>Q(Q({},d.value),n.style)),s=p(()=>({class:i.value,style:r.value,onClick:f=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:f})}}));return()=>ce(We,s.value)}});const qe=Xe;function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function ee(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y(Object(n),!0).forEach(function(a){ie(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Ze={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.88 1.38l1.28.22a4 4 0 013.34 3.94V8h5.32a2 2 0 011.97 2.33l-1.66 10A2 2 0 0119.15 22H7V10.8l3.88-9.42zm1.23 2.26L9 11.2V20h10.15l1.67-10H13.5V5.54a2 2 0 00-1.39-1.9zM4 10v12H2V10h2z"}}]},Qe=I({name:"ThumbUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,a=p(()=>t.size),{className:o,style:d}=oe(a),i=p(()=>["t-icon","t-icon-thumb-up",o.value]),r=p(()=>ee(ee({},d.value),n.style)),s=p(()=>({class:i.value,style:r.value,onClick:f=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:f})}}));return()=>ce(Ze,s.value)}});const Ye=Qe;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.3e6d6a21.js.gz
Normal file
BIN
assets/index.3e6d6a21.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
import{d as T,r as J,bH as Q,C as V,aE as W,aH as u,aI as r,aM as d,aN as f,u as g,a_ as X,a$ as Y,bu as Z,bI as tt,bF as ot,b7 as nt,bi as at,bm as et,bn as rt,G as c,D as ut}from"./arco.93f0afda.js";import{e as ct,_ as H}from"./index.55662615.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as it,a as n,b as a}from"./serial.bad97c4e.js";import"./chart.c383733a.js";import"./vue.ded74ca2.js";const st=""+new URL("../gy.png",import.meta.url).href,B=i=>(et("data-v-63b01619"),i=i(),rt(),i),_t=B(()=>c("br",null,null,-1)),dt=B(()=>c("br",null,null,-1)),pt=B(()=>c("div",null,[c("img",{style:{"margin-bottom":"10px"},width:"600px",src:st})],-1)),mt=T({__name:"banner",setup(i){const t=ct(),h=J({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),R=async()=>{var s,p,m,l,F,_,P,M,y,E,v,C,D,k,x,A,I,K,z,$,N;let e="\u672A\u77E5\u3001\u6545\u969C\u3001\u4E0D\u53EF\u7528";const S=[Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256)];await it(t.connectPort);const o=new Uint8Array(S);if(((s=t.configuration)==null?void 0:s.uart)=="official"){const b=await n(t.connectPort,0,8,(p=t.configuration)==null?void 0:p.uart);await a(t.connectPort,0,o,8,(m=t.configuration)==null?void 0:m.uart);const w=await n(t.connectPort,0,8,(l=t.configuration)==null?void 0:l.uart);o.toString()==w.toString()&&(e="8KB\uFF0864Kbit\uFF09"),await a(t.connectPort,0,b,8,(F=t.configuration)==null?void 0:F.uart)}else{const b=await n(t.connectPort,0,8,(_=t.configuration)==null?void 0:_.uart);await a(t.connectPort,0,o,8,(P=t.configuration)==null?void 0:P.uart);const w=await n(t.connectPort,0,8,(M=t.configuration)==null?void 0:M.uart);o.toString()==w.toString()&&(e="8KB\uFF0864Kbit\uFF09"),await a(t.connectPort,0,b,8,(y=t.configuration)==null?void 0:y.uart);const U=await n(t.connectPort,131064,8,(E=t.configuration)==null?void 0:E.uart);await a(t.connectPort,131064,o,8,(v=t.configuration)==null?void 0:v.uart);const G=await n(t.connectPort,131064,8,(C=t.configuration)==null?void 0:C.uart);o.toString()==G.toString()&&(e="128KB\uFF081Mbit\uFF09"),await a(t.connectPort,131064,U,8,(D=t.configuration)==null?void 0:D.uart);const L=await n(t.connectPort,262136,8,(k=t.configuration)==null?void 0:k.uart);await a(t.connectPort,262136,o,8,(x=t.configuration)==null?void 0:x.uart);const O=await n(t.connectPort,262136,8,(A=t.configuration)==null?void 0:A.uart);o.toString()==O.toString()&&(e="256KB\uFF082Mbit\uFF09"),await a(t.connectPort,262136,L,8,(I=t.configuration)==null?void 0:I.uart);const j=await n(t.connectPort,524280,8,(K=t.configuration)==null?void 0:K.uart);await a(t.connectPort,524280,o,8,(z=t.configuration)==null?void 0:z.uart);const q=await n(t.connectPort,524280,8,($=t.configuration)==null?void 0:$.uart);o.toString()==q.toString()&&(e="512KB\uFF084Mbit\uFF09"),await a(t.connectPort,524280,j,8,(N=t.configuration)==null?void 0:N.uart)}h.eepromSize=e};return(e,S)=>{const o=Z,s=tt,p=ot,m=nt,l=Q,F=at;return V(),W(s,{class:"banner"},{default:u(()=>[r(s,null,{default:u(()=>[r(o,{heading:5,style:{"margin-top":"0"}},{default:u(()=>[d(f(g(t).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}),r(p,{class:"panel-border"}),r(F,null,{default:u(()=>[X(r(l,{style:{marginTop:"2em",marginBottom:"2em"},title:"\u624B\u53F0\u4FE1\u606F"},{default:u(()=>{var _;return[d(" \u5F53\u524D\u56FA\u4EF6\u7248\u672C\uFF1A"+f(g(t).firmwareVersion)+" ",1),_t,d(" \u5339\u914D\u5199\u9891\u914D\u7F6E\uFF1A"+f((_=g(t).configuration)==null?void 0:_.name)+" ",1),dt,d(" \u5B58\u50A8\u5927\u5C0F\uFF1A"+f(h.eepromSize)+" ",1),r(m,{size:"mini",type:"primary",onClick:R},{default:u(()=>[d("\u68C0\u6D4B")]),_:1})]}),_:1},512),[[Y,g(t).connectState]])]),_:1}),pt]),_:1})}}});const lt=H(mt,[["__scopeId","data-v-63b01619"]]),Ft={class:"container"},ft={class:"left-side"},gt={class:"panel"},ht={name:"Dashboard"},bt=T({...ht,setup(i){return(t,h)=>(V(),ut("div",Ft,[c("div",ft,[c("div",gt,[r(lt)])])]))}});const xt=H(bt,[["__scopeId","data-v-8f743d99"]]);export{xt as default};
|
||||
import{d as T,r as J,bH as Q,C as V,aE as W,aH as u,aI as r,aM as d,aN as f,u as g,a_ as X,a$ as Y,bu as Z,bI as tt,bF as ot,b7 as nt,bi as at,bm as et,bn as rt,G as c,D as ut}from"./arco.93f0afda.js";import{e as ct,_ as H}from"./index.832d54dc.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as it,a as n,b as a}from"./serial.bad97c4e.js";import"./chart.c383733a.js";import"./vue.ded74ca2.js";const st=""+new URL("../gy.png",import.meta.url).href,B=i=>(et("data-v-63b01619"),i=i(),rt(),i),_t=B(()=>c("br",null,null,-1)),dt=B(()=>c("br",null,null,-1)),pt=B(()=>c("div",null,[c("img",{style:{"margin-bottom":"10px"},width:"600px",src:st})],-1)),mt=T({__name:"banner",setup(i){const t=ct(),h=J({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),R=async()=>{var s,p,m,l,F,_,P,M,y,E,v,C,D,k,x,A,I,K,z,$,N;let e="\u672A\u77E5\u3001\u6545\u969C\u3001\u4E0D\u53EF\u7528";const S=[Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256)];await it(t.connectPort);const o=new Uint8Array(S);if(((s=t.configuration)==null?void 0:s.uart)=="official"){const b=await n(t.connectPort,0,8,(p=t.configuration)==null?void 0:p.uart);await a(t.connectPort,0,o,8,(m=t.configuration)==null?void 0:m.uart);const w=await n(t.connectPort,0,8,(l=t.configuration)==null?void 0:l.uart);o.toString()==w.toString()&&(e="8KB\uFF0864Kbit\uFF09"),await a(t.connectPort,0,b,8,(F=t.configuration)==null?void 0:F.uart)}else{const b=await n(t.connectPort,0,8,(_=t.configuration)==null?void 0:_.uart);await a(t.connectPort,0,o,8,(P=t.configuration)==null?void 0:P.uart);const w=await n(t.connectPort,0,8,(M=t.configuration)==null?void 0:M.uart);o.toString()==w.toString()&&(e="8KB\uFF0864Kbit\uFF09"),await a(t.connectPort,0,b,8,(y=t.configuration)==null?void 0:y.uart);const U=await n(t.connectPort,131064,8,(E=t.configuration)==null?void 0:E.uart);await a(t.connectPort,131064,o,8,(v=t.configuration)==null?void 0:v.uart);const G=await n(t.connectPort,131064,8,(C=t.configuration)==null?void 0:C.uart);o.toString()==G.toString()&&(e="128KB\uFF081Mbit\uFF09"),await a(t.connectPort,131064,U,8,(D=t.configuration)==null?void 0:D.uart);const L=await n(t.connectPort,262136,8,(k=t.configuration)==null?void 0:k.uart);await a(t.connectPort,262136,o,8,(x=t.configuration)==null?void 0:x.uart);const O=await n(t.connectPort,262136,8,(A=t.configuration)==null?void 0:A.uart);o.toString()==O.toString()&&(e="256KB\uFF082Mbit\uFF09"),await a(t.connectPort,262136,L,8,(I=t.configuration)==null?void 0:I.uart);const j=await n(t.connectPort,524280,8,(K=t.configuration)==null?void 0:K.uart);await a(t.connectPort,524280,o,8,(z=t.configuration)==null?void 0:z.uart);const q=await n(t.connectPort,524280,8,($=t.configuration)==null?void 0:$.uart);o.toString()==q.toString()&&(e="512KB\uFF084Mbit\uFF09"),await a(t.connectPort,524280,j,8,(N=t.configuration)==null?void 0:N.uart)}h.eepromSize=e};return(e,S)=>{const o=Z,s=tt,p=ot,m=nt,l=Q,F=at;return V(),W(s,{class:"banner"},{default:u(()=>[r(s,null,{default:u(()=>[r(o,{heading:5,style:{"margin-top":"0"}},{default:u(()=>[d(f(g(t).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}),r(p,{class:"panel-border"}),r(F,null,{default:u(()=>[X(r(l,{style:{marginTop:"2em",marginBottom:"2em"},title:"\u624B\u53F0\u4FE1\u606F"},{default:u(()=>{var _;return[d(" \u5F53\u524D\u56FA\u4EF6\u7248\u672C\uFF1A"+f(g(t).firmwareVersion)+" ",1),_t,d(" \u5339\u914D\u5199\u9891\u914D\u7F6E\uFF1A"+f((_=g(t).configuration)==null?void 0:_.name)+" ",1),dt,d(" \u5B58\u50A8\u5927\u5C0F\uFF1A"+f(h.eepromSize)+" ",1),r(m,{size:"mini",type:"primary",onClick:R},{default:u(()=>[d("\u68C0\u6D4B")]),_:1})]}),_:1},512),[[Y,g(t).connectState]])]),_:1}),pt]),_:1})}}});const lt=H(mt,[["__scopeId","data-v-63b01619"]]),Ft={class:"container"},ft={class:"left-side"},gt={class:"panel"},ht={name:"Dashboard"},bt=T({...ht,setup(i){return(t,h)=>(V(),ut("div",Ft,[c("div",ft,[c("div",gt,[r(lt)])])]))}});const xt=H(bt,[["__scopeId","data-v-8f743d99"]]);export{xt as default};
|
BIN
assets/index.56361c99.js.gz
Normal file
BIN
assets/index.56361c99.js.gz
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import{q as Oe,s as Se,t as _e,a2 as Ue,ah as Wa,L as R,ai as Ua,aj as Ga,ak as Ya,al as Xa,$ as ze,O as Ut,am as Ja,an as qa,ao as Za,y as ae,K as ue,S as Te,J as Ke,Y as Qa,V as et,z as $e,F as Pe,W as Be,ap as er,aq as tr,a7 as nr,Q as ar,a8 as rr,A as He,M as It,U as at,ar as mt,x as ma,P as lr,as as ya,Z as ur,X as ir}from"./index.55662615.js";import{d as te,c as g,f as Y,g as Gt,r as Yt,w as ge,o as Ge,t as me,n as We,aI as P,i as ut,b as gt,a_ as or,a$ as cr,b0 as Me,aZ as sr,h as Ze,aU as xt,a as vr,p as Bt,aK as Jt}from"./arco.93f0afda.js";import{j as Ca,k as fr,l as dr,m as kt,n as Oa,o as Sa,b as it,p as gr,g as qt,q as hr,B as vt,r as pr,_ as br,a as mr,L as _a,s as Pa,u as yr,f as ft,c as Cr}from"./index.b449f454.js";/**
|
||||
import{q as Oe,s as Se,t as _e,a2 as Ue,ah as Wa,L as R,ai as Ua,aj as Ga,ak as Ya,al as Xa,$ as ze,O as Ut,am as Ja,an as qa,ao as Za,y as ae,K as ue,S as Te,J as Ke,Y as Qa,V as et,z as $e,F as Pe,W as Be,ap as er,aq as tr,a7 as nr,Q as ar,a8 as rr,A as He,M as It,U as at,ar as mt,x as ma,P as lr,as as ya,Z as ur,X as ir}from"./index.832d54dc.js";import{d as te,c as g,f as Y,g as Gt,r as Yt,w as ge,o as Ge,t as me,n as We,aI as P,i as ut,b as gt,a_ as or,a$ as cr,b0 as Me,aZ as sr,h as Ze,aU as xt,a as vr,p as Bt,aK as Jt}from"./arco.93f0afda.js";import{j as Ca,k as fr,l as dr,m as kt,n as Oa,o as Sa,b as it,p as gr,g as qt,q as hr,B as vt,r as pr,_ as br,a as mr,L as _a,s as Pa,u as yr,f as ft,c as Cr}from"./index.f1bec257.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.57de0a28.js.gz
Normal file
BIN
assets/index.57de0a28.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
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.832d54dc.js.gz
Normal file
BIN
assets/index.832d54dc.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.9a609c14.js.gz
Normal file
BIN
assets/index.9a609c14.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
import{e as h,ag as E,_ as B}from"./index.55662615.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as k,r as v,bH as C,C as y,D as A,aI as s,aH as d,G as g,aM as F,b7 as D,bi as x,bF as H,bI as R,bM as M,n as T}from"./arco.93f0afda.js";import{e as P,b as I,g as S}from"./serial.bad97c4e.js";import"./chart.c383733a.js";import"./vue.ded74ca2.js";const U={class:"container"},N=["innerHTML"],V={name:"Chi"},$=k({...V,setup(L){const a=h(),c=v({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),p=async(e=0,t)=>{var l;await P(a.connectPort);for(let n=e;n<t.length+e;n+=128)await I(a.connectPort,n,t.slice(n-e,n-e+128),128,(l=a.configuration)==null?void 0:l.uart),c.status=c.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((n-e)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const o=document==null?void 0:document.getElementById("statusArea");o&&(o.scrollTop=o==null?void 0:o.scrollHeight)});c.status=c.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await S(a.connectPort)},m=async(e=1)=>{var l,n,o,b,w;if(a.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((l=a.configuration)==null?void 0:l.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==1&&((n=a.configuration)==null?void 0:n.charset)!="losehu"||e==1&&((o=a.configuration)==null?void 0:o.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==2&&((b=a.configuration)==null?void 0:b.charset)!="gb2312"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}c.status=c.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==1){t=await fetch("/old_font.bin");const i=t.body.getReader(),u=[];for(;;){const{done:_,value:f}=await i.read();if(_)break;u.push(...f)}const r=new Uint8Array(u);await p(8192,r);return}if(e==2){t=await fetch("/new_font_k.bin");const i=t.body.getReader(),u=[];for(;;){const{done:_,value:f}=await i.read();if(_)break;u.push(...f)}const r=new Uint8Array(u);await p(9344,r);return}if(e==3){t=await fetch("/new_font_h.bin");const i=t.body.getReader(),u=[];for(;;){const{done:_,value:f}=await i.read();if(_)break;u.push(...f)}const r=new Uint8Array(u);await p(9344,r);return}if(e==4){(w=a.configuration)!=null&&w.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const i=t.body.getReader(),u=[];for(;;){const{done:_,value:f}=await i.read();if(_)break;u.push(...f)}const r=new Uint8Array(u);await p(131072,r);return}};return(e,t)=>{const l=E,n=D,o=x,b=H,w=C,i=R,u=M;return y(),A("div",U,[s(l,{items:["\u5C0F\u5DE5\u5177","\u5B57\u5E93\u5199\u5165"]}),s(u,{gutter:20,align:"stretch"},{default:d(()=>[s(i,{span:24},{default:d(()=>[s(w,{class:"general-card"},{title:d(()=>[g("span",{onClick:t[0]||(t[0]=()=>{c.showHide+=1})},"\u5B57\u5E93\u5199\u5165")]),default:d(()=>[s(o,null,{default:d(()=>[s(n,{onClick:t[1]||(t[1]=r=>m(1))},{default:d(()=>[F("\u5199\u5165 117 \u5B57\u5E93")]),_:1}),s(n,{onClick:t[2]||(t[2]=r=>m(2))},{default:d(()=>[F("\u5199\u5165 118+ \u5B57\u5E93")]),_:1}),s(n,{onClick:t[3]||(t[3]=r=>m(4))},{default:d(()=>[F("\u5199\u5165\u62FC\u97F3\u68C0\u7D22\u8868\uFF082Mbit EEPROM\u53EF\u7528\uFF09")]),_:1})]),_:1}),s(b),g("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:c.status},null,8,N)]),_:1})]),_:1})]),_:1})])}}});const X=B($,[["__scopeId","data-v-c9da2ebd"]]);export{X as default};
|
||||
import{e as h,ag as E,_ as B}from"./index.832d54dc.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as k,r as v,bH as C,C as y,D as A,aI as s,aH as d,G as g,aM as F,b7 as D,bi as x,bF as H,bI as R,bM as M,n as T}from"./arco.93f0afda.js";import{e as P,b as I,g as S}from"./serial.bad97c4e.js";import"./chart.c383733a.js";import"./vue.ded74ca2.js";const U={class:"container"},N=["innerHTML"],V={name:"Chi"},$=k({...V,setup(L){const a=h(),c=v({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),p=async(e=0,t)=>{var l;await P(a.connectPort);for(let n=e;n<t.length+e;n+=128)await I(a.connectPort,n,t.slice(n-e,n-e+128),128,(l=a.configuration)==null?void 0:l.uart),c.status=c.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((n-e)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const o=document==null?void 0:document.getElementById("statusArea");o&&(o.scrollTop=o==null?void 0:o.scrollHeight)});c.status=c.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await S(a.connectPort)},m=async(e=1)=>{var l,n,o,b,w;if(a.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((l=a.configuration)==null?void 0:l.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==1&&((n=a.configuration)==null?void 0:n.charset)!="losehu"||e==1&&((o=a.configuration)==null?void 0:o.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==2&&((b=a.configuration)==null?void 0:b.charset)!="gb2312"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}c.status=c.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==1){t=await fetch("/old_font.bin");const i=t.body.getReader(),u=[];for(;;){const{done:_,value:f}=await i.read();if(_)break;u.push(...f)}const r=new Uint8Array(u);await p(8192,r);return}if(e==2){t=await fetch("/new_font_k.bin");const i=t.body.getReader(),u=[];for(;;){const{done:_,value:f}=await i.read();if(_)break;u.push(...f)}const r=new Uint8Array(u);await p(9344,r);return}if(e==3){t=await fetch("/new_font_h.bin");const i=t.body.getReader(),u=[];for(;;){const{done:_,value:f}=await i.read();if(_)break;u.push(...f)}const r=new Uint8Array(u);await p(9344,r);return}if(e==4){(w=a.configuration)!=null&&w.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const i=t.body.getReader(),u=[];for(;;){const{done:_,value:f}=await i.read();if(_)break;u.push(...f)}const r=new Uint8Array(u);await p(131072,r);return}};return(e,t)=>{const l=E,n=D,o=x,b=H,w=C,i=R,u=M;return y(),A("div",U,[s(l,{items:["\u5C0F\u5DE5\u5177","\u5B57\u5E93\u5199\u5165"]}),s(u,{gutter:20,align:"stretch"},{default:d(()=>[s(i,{span:24},{default:d(()=>[s(w,{class:"general-card"},{title:d(()=>[g("span",{onClick:t[0]||(t[0]=()=>{c.showHide+=1})},"\u5B57\u5E93\u5199\u5165")]),default:d(()=>[s(o,null,{default:d(()=>[s(n,{onClick:t[1]||(t[1]=r=>m(1))},{default:d(()=>[F("\u5199\u5165 117 \u5B57\u5E93")]),_:1}),s(n,{onClick:t[2]||(t[2]=r=>m(2))},{default:d(()=>[F("\u5199\u5165 118+ \u5B57\u5E93")]),_:1}),s(n,{onClick:t[3]||(t[3]=r=>m(4))},{default:d(()=>[F("\u5199\u5165\u62FC\u97F3\u68C0\u7D22\u8868\uFF082Mbit EEPROM\u53EF\u7528\uFF09")]),_:1})]),_:1}),s(b),g("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:c.status},null,8,N)]),_:1})]),_:1})]),_:1})])}}});const X=B($,[["__scopeId","data-v-c9da2ebd"]]);export{X as default};
|
BIN
assets/index.a1fe51ab.js.gz
Normal file
BIN
assets/index.a1fe51ab.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
import{d as k,c as q,bd as R,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as j,aE as E,aN as r,be as z,f as A,r as G,bf as H,bg as J,bh as K,bi as Q,bj as T,u as C,aM as f,b6 as W,bk as O,bl as X,b7 as Y,bm as Z,bn as ee}from"./arco.93f0afda.js";import{F as oe}from"./index.b478b6bb.js";import{v as V,_ as x,u as se,I as ae,a as ne}from"./index.55662615.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.ded74ca2.js";import{u as le}from"./loading.fe99eb42.js";import"./chart.c383733a.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=k({__name:"banner",setup(c){const{t}=V.exports.useI18n(),g=q(()=>[{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=R;return i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,j(g.value,a=>(i(),E(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=x(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=k({__name:"login-form",setup(c){const t=te(),{t:g}=V.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}}),W.success(g("login.form.login.success"));const{rememberPassword:u}=a.value,{username:y,password:$}=l;a.value.username=u?y:"",a.value.password=u?$:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,u=O,y=ne,$=X,B=J,N=K,P=Y,M=Q,U=T;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(U,{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($,{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(y)]),_: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 ye=x(we,[["__scopeId","data-v-12db3177"]]),$e=c=>(Z("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=$e(()=>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)),ke={class:"content"},xe={class:"content-inner"},Pe={class:"footer"},Ce=k({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",ke,[s("div",xe,[e(ye)]),s("div",Pe,[e(oe)])])]))}});const Ee=x(Ce,[["__scopeId","data-v-24cebde1"]]);export{Ee as default};
|
||||
import{d as k,c as q,bd as R,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as j,aE as E,aN as r,be as z,f as A,r as G,bf as H,bg as J,bh as K,bi as Q,bj as T,u as C,aM as f,b6 as W,bk as O,bl as X,b7 as Y,bm as Z,bn as ee}from"./arco.93f0afda.js";import{F as oe}from"./index.c119bc5c.js";import{v as V,_ as x,u as se,I as ae,a as ne}from"./index.832d54dc.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.ded74ca2.js";import{u as le}from"./loading.fe99eb42.js";import"./chart.c383733a.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=k({__name:"banner",setup(c){const{t}=V.exports.useI18n(),g=q(()=>[{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=R;return i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,j(g.value,a=>(i(),E(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=x(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=k({__name:"login-form",setup(c){const t=te(),{t:g}=V.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}}),W.success(g("login.form.login.success"));const{rememberPassword:u}=a.value,{username:y,password:$}=l;a.value.username=u?y:"",a.value.password=u?$:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,u=O,y=ne,$=X,B=J,N=K,P=Y,M=Q,U=T;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(U,{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($,{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(y)]),_: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 ye=x(we,[["__scopeId","data-v-12db3177"]]),$e=c=>(Z("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=$e(()=>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)),ke={class:"content"},xe={class:"content-inner"},Pe={class:"footer"},Ce=k({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",ke,[s("div",xe,[e(ye)]),s("div",Pe,[e(oe)])])]))}});const Ee=x(Ce,[["__scopeId","data-v-24cebde1"]]);export{Ee as default};
|
BIN
assets/index.a42d49cb.js.gz
Normal file
BIN
assets/index.a42d49cb.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
import{_ as t}from"./index.55662615.js";import{C as a,aE as s,aH as _,bo as c,bm as n,bn as r,G as p}from"./arco.93f0afda.js";const d={},i=e=>(n("data-v-4b65ea7a"),e=e(),r(),e),b=i(()=>p("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202404150050",-1));function f(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[b]),_:1})}const m=t(d,[["render",f],["__scopeId","data-v-4b65ea7a"]]);export{m as F};
|
||||
import{_ as t}from"./index.832d54dc.js";import{C as a,aE as s,aH as _,bo as c,bm as n,bn as r,G as p}from"./arco.93f0afda.js";const d={},i=e=>(n("data-v-4b65ea7a"),e=e(),r(),e),b=i(()=>p("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202404150050",-1));function f(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[b]),_:1})}const m=t(d,[["render",f],["__scopeId","data-v-4b65ea7a"]]);export{m as F};
|
Binary file not shown.
@ -1 +1 @@
|
||||
import{e as g,ag as B,_ as E}from"./index.55662615.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as w,r as A,bH as k,C as v,D as x,aI as s,aH as c,aM as p,aN as C,G as N,n as m,b7 as D,bi as H,bF as I,bI as P,bM as S}from"./arco.93f0afda.js";import{d as F,c as T,r as _,j as M,k as b,l as V,m as j}from"./serial.bad97c4e.js";import"./chart.c383733a.js";import"./vue.ded74ca2.js";const L={class:"container"},R=["innerHTML"],U={name:"Flash"},z=w({...U,setup(G){const u=g(),t=A({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 T();await _(a,24,1e3);const r=M(t.binaryFile),i=new Uint8Array([48,5,r.length,0,...r]);await b(a,i),await _(a,24);const o=V(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=B,o=D,e=H,l=I,d=k,n=P,h=S;return v(),x("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),N("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 g,ag as B,_ as E}from"./index.832d54dc.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as w,r as A,bH as k,C as v,D as x,aI as s,aH as c,aM as p,aN as C,G as N,n as m,b7 as D,bi as H,bF as I,bI as P,bM as S}from"./arco.93f0afda.js";import{d as F,c as T,r as _,j as M,k as b,l as V,m as j}from"./serial.bad97c4e.js";import"./chart.c383733a.js";import"./vue.ded74ca2.js";const L={class:"container"},R=["innerHTML"],U={name:"Flash"},z=w({...U,setup(G){const u=g(),t=A({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 T();await _(a,24,1e3);const r=M(t.binaryFile),i=new Uint8Array([48,5,r.length,0,...r]);await b(a,i),await _(a,24);const o=V(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=B,o=D,e=H,l=I,d=k,n=P,h=S;return v(),x("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),N("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.d2b23e8a.js.gz
Normal file
BIN
assets/index.d2b23e8a.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.d6a0f32e.js.gz
Normal file
BIN
assets/index.d6a0f32e.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.e1408c94.js.gz
Normal file
BIN
assets/index.e1408c94.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import{at as Ne,au as Oa,av as Ke,ai as Ge,Q as Ue,aw as ne,ax as Sa,ay as q,az as wa,S as re,$ as E,aA as te,aB as j,am as z,aC as qe,aD as Ea,ap as Pa,aE as Ia,aF as xa,aG as La,aH as ja,aI as ze,aJ as Ma,aK as Da,aL as Ra,aM as Fa,a1 as He,x as Xe,al as Ba,aq as Na,aN as Ka,aO as We,U as G,aP as ce,L as O,y as C,A as fe,aQ as Ga,a3 as ke,V as Ze,K as Ua,aR as Q,aS as V,ar as ve,a4 as qa,aT as za,aU as Ha,a0 as Xa,aV as Wa,F as Je,aW as ie,a2 as ka,z as Za,M as Ja}from"./index.55662615.js";import{d as H,o as X,g as Ye,n as Ya,aI as m,c as _,f as x,w as Qe,t as Qa,b0 as R,aW as de,r as Va,h as Ve,bc as en,aZ as an,i as nn}from"./arco.93f0afda.js";/**
|
||||
import{at as Ne,au as Oa,av as Ke,ai as Ge,Q as Ue,aw as ne,ax as Sa,ay as q,az as wa,S as re,$ as E,aA as te,aB as j,am as z,aC as qe,aD as Ea,ap as Pa,aE as Ia,aF as xa,aG as La,aH as ja,aI as ze,aJ as Ma,aK as Da,aL as Ra,aM as Fa,a1 as He,x as Xe,al as Ba,aq as Na,aN as Ka,aO as We,U as G,aP as ce,L as O,y as C,A as fe,aQ as Ga,a3 as ke,V as Ze,K as Ua,aR as Q,aS as V,ar as ve,a4 as qa,aT as za,aU as Ha,a0 as Xa,aV as Wa,F as Je,aW as ie,a2 as ka,z as Za,M as Ja}from"./index.832d54dc.js";import{d as H,o as X,g as Ye,n as Ya,aI as m,c as _,f as x,w as Qe,t as Qa,b0 as R,aW as de,r as Va,h as Ve,bc as en,aZ as an,i as nn}from"./arco.93f0afda.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.f1bec257.js.gz
Normal file
BIN
assets/index.f1bec257.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -23,7 +23,7 @@
|
||||
}
|
||||
</style>
|
||||
<script src="serial.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index.55662615.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index.832d54dc.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./assets/arco.93f0afda.js">
|
||||
<link rel="modulepreload" crossorigin href="./assets/chart.c383733a.js">
|
||||
<link rel="modulepreload" crossorigin href="./assets/vue.ded74ca2.js">
|
||||
|
BIN
index.html.gz
BIN
index.html.gz
Binary file not shown.
BIN
mm_facetoface_collect_qrcode_1714392837792.png
Normal file
BIN
mm_facetoface_collect_qrcode_1714392837792.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 155 KiB |
Loading…
Reference in New Issue
Block a user