mirror of
https://github.com/silenty4ng/k5web
synced 2024-11-14 14:33:23 +00:00
update
This commit is contained in:
parent
0d0e9dd25a
commit
547bc93cb8
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/default-layout.63752858.css.gz
Normal file
BIN
assets/default-layout.63752858.css.gz
Normal file
Binary file not shown.
27
assets/default-layout.c255ed0e.js
Normal file
27
assets/default-layout.c255ed0e.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.c255ed0e.js.gz
Normal file
BIN
assets/default-layout.c255ed0e.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/dep-6deb4e3a.84894bd5.js.gz
Normal file
BIN
assets/dep-6deb4e3a.84894bd5.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/dialog.fde1aef6.js.gz
Normal file
BIN
assets/dialog.fde1aef6.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{u as ee,i as le,g as tt,a as re,_ as Ve,l as rt,b as nt,c as H}from"./useConfig.442d698e.js";import{d as oe,c as N,f as W,g as Be,w as te,b as ze,i as qe,o as He,t as Ke,n as de,aI as q,bn as at,bo as ot,bB as ut}from"./arco.768e32d2.js";import{u as _e,r as be,_ as we,a as lt}from"./dialog.3cb279ab.js";import{t as Q,w as it,x as ct,y as ve,z as st,A as We,B as Ue,C as ft,E as vt,F as dt}from"./index.ed45be5a.js";import{_ as pt,a as mt}from"./index.d87791fe.js";import{i as Ge}from"./index.8714e774.js";/**
|
import{u as ee,i as le,g as tt,a as re,_ as Ve,l as rt,b as nt,c as H}from"./useConfig.c8c4aaa5.js";import{d as oe,c as N,f as W,g as Be,w as te,b as ze,i as qe,o as He,t as Ke,n as de,aI as q,bn as at,bo as ot,bB as ut}from"./arco.768e32d2.js";import{u as _e,r as be,_ as we,a as lt}from"./dialog.fde1aef6.js";import{t as Q,w as it,x as ct,y as ve,z as st,A as We,B as Ue,C as ft,E as vt,F as dt}from"./index.77e506b7.js";import{_ as pt,a as mt}from"./index.d821571f.js";import{i as Ge}from"./index.16730ad8.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
BIN
assets/form-model.71f84e3f.js.gz
Normal file
BIN
assets/form-model.71f84e3f.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{_ as n}from"./index.ed45be5a.js";import{d as c,bG as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.768e32d2.js";import{f as m}from"./vue.5a5bc6a2.js";import"./chart.affe3403.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.77e506b7.js";import{d as c,bG as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.768e32d2.js";import{f as m}from"./vue.5a5bc6a2.js";import"./chart.affe3403.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};
|
@ -1 +0,0 @@
|
|||||||
[data-v-9023bd14] ::-webkit-scrollbar-thumb{border-radius:0!important}[data-v-9023bd14] .scrollbar::-webkit-scrollbar{height:10px}[data-v-9023bd14] .t-table__content::-webkit-scrollbar{height:15px}.container[data-v-9023bd14]{padding:0 20px 20px}[data-v-9023bd14] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-9023bd14]{margin-left:12px;cursor:pointer}.active[data-v-9023bd14]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-9023bd14]{display:flex;align-items:center;width:200px}.setting .title[data-v-9023bd14]{margin-left:12px;cursor:pointer}.ttable[data-v-9023bd14] .t-table__affixed-header-elm-wrap{height:60px!important}.ttable[data-v-9023bd14] .t-table__content{scrollbar-width:auto!important}
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.0fa6650a.js.gz
Normal file
BIN
assets/index.0fa6650a.js.gz
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{u as D,b as R,c as d,d as N}from"./useConfig.442d698e.js";import{f as A,o as I,bs as z,c as S,i as F,g as M,d as $,aI as E,h as X}from"./arco.768e32d2.js";import{L as G}from"./index.d87791fe.js";import{N as _,z as K,O as U,P as V,A as W,G as J,B as Z}from"./index.ed45be5a.js";/**
|
import{u as D,b as R,c as d,d as N}from"./useConfig.c8c4aaa5.js";import{f as A,o as I,bs as z,c as S,i as F,g as M,d as $,aI as E,h as X}from"./arco.768e32d2.js";import{L as G}from"./index.d821571f.js";import{N as _,z as K,O as U,P as V,A as W,G as J,B as Z}from"./index.77e506b7.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
BIN
assets/index.16730ad8.js.gz
Normal file
BIN
assets/index.16730ad8.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.240cd6f3.js.gz
Normal file
BIN
assets/index.240cd6f3.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,5 +0,0 @@
|
|||||||
import{b as o}from"./dialog.3cb279ab.js";import{B as a}from"./index.ed45be5a.js";import"./arco.768e32d2.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var m=a(o);export{m as D};
|
|
@ -1,4 +1,4 @@
|
|||||||
import{d as R,c as t,aI as a,aU as V}from"./arco.768e32d2.js";import{u,b as W}from"./useConfig.442d698e.js";import{A as X,K as Z,B as K}from"./index.ed45be5a.js";import{L as U}from"./index.d87791fe.js";/**
|
import{d as R,c as t,aI as a,aU as V}from"./arco.768e32d2.js";import{u,b as W}from"./useConfig.c8c4aaa5.js";import{A as X,K as Z,B as K}from"./index.77e506b7.js";import{L as U}from"./index.d821571f.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
BIN
assets/index.3477e53b.js.gz
Normal file
BIN
assets/index.3477e53b.js.gz
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{u as re,b as qe,c as h,d as We,i as Ie,_ as Me}from"./useConfig.442d698e.js";import{d as Ee,c as y,aI as C,i as He,f as P,t as Oe,r as Te,o as Ke,b as Ue,w as ke,p as we,n as ze}from"./arco.768e32d2.js";import{G as Ge,A as je,z as Ne,B as Fe,H as Je,J as Ce,K as Xe,M as ie,F as Ze}from"./index.ed45be5a.js";import{u as Qe,i as _e}from"./index.8714e774.js";import{u as Re,F as Be,i as Pe,V as q,_ as R,a as Ye,C as er,r as b,s as $e,v as rr}from"./form-model.10d173e3.js";import{g as de,r as tr}from"./index.d87791fe.js";import{a as ar,C as nr,E as lr}from"./dialog.3cb279ab.js";/**
|
import{u as re,b as qe,c as h,d as We,i as Ie,_ as Me}from"./useConfig.c8c4aaa5.js";import{d as Ee,c as y,aI as C,i as He,f as P,t as Oe,r as Te,o as Ke,b as Ue,w as ke,p as we,n as ze}from"./arco.768e32d2.js";import{G as Ge,A as je,z as Ne,B as Fe,H as Je,J as Ce,K as Xe,M as ie,F as Ze}from"./index.77e506b7.js";import{u as Qe,i as _e}from"./index.16730ad8.js";import{u as Re,F as Be,i as Pe,V as q,_ as R,a as Ye,C as er,r as b,s as $e,v as rr}from"./form-model.71f84e3f.js";import{g as de,r as tr}from"./index.d821571f.js";import{a as ar,C as nr,E as lr}from"./dialog.fde1aef6.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
BIN
assets/index.3e3d8e9b.js.gz
Normal file
BIN
assets/index.3e3d8e9b.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.4264033c.js.gz
Normal file
BIN
assets/index.4264033c.js.gz
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{M as qn,K as Qn,J as Xc,B as zc,v as Kc,e as $c,ak as jc,_ as Yc}from"./index.ed45be5a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as gs,t as Jc,c as Pt,w as Zc,h as ei,aI as Pe,r as ri,bH as qc,C as ti,D as Qc,aH as We,G as Q0,aN as Tt,aM as it,aE as eo,aF as ro,u as ai,a6 as to,a$ as ao,ba as no,bI as io,O as so,bm as fo,bJ as co,be as oo,bf as lo}from"./arco.768e32d2.js";import{u as uo}from"./loading.c097827a.js";import{e as ni,a as P0,u as ii,f as ho,h as L0,s as xo,b as B0,g as po}from"./serial.c741fbda.js";import{b as vo,I as M0}from"./form-model.10d173e3.js";import{S as Vr,C as mo,a as go}from"./dep-6deb4e3a.042be393.js";import{M as _o,T as wo}from"./index.98345adf.js";import{u as To,b as ko,_ as Eo,c as Lt}from"./useConfig.442d698e.js";import{L as So}from"./index.d87791fe.js";import{u as Fo,B as yo}from"./index.8714e774.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";import"./dialog.3cb279ab.js";import"./slot.da180938.js";/**
|
import{M as qn,K as Qn,J as Xc,B as zc,v as Kc,e as $c,ak as jc,_ as Yc}from"./index.77e506b7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as gs,t as Jc,c as Pt,w as Zc,h as ei,aI as Pe,r as ri,bH as qc,C as ti,D as Qc,aH as We,G as Q0,aN as Tt,aM as it,aE as eo,aF as ro,u as ai,a6 as to,a$ as ao,ba as no,bI as io,O as so,bm as fo,bJ as co,be as oo,bf as lo}from"./arco.768e32d2.js";import{u as uo}from"./loading.c097827a.js";import{e as ni,a as P0,u as ii,f as ho,h as L0,s as xo,b as B0,g as po}from"./serial.c741fbda.js";import{b as vo,I as M0}from"./form-model.71f84e3f.js";import{S as Vr,C as mo,a as go}from"./dep-6deb4e3a.84894bd5.js";import{M as _o,T as wo}from"./index.d5e8a3fd.js";import{u as To,b as ko,_ as Eo,c as Lt}from"./useConfig.c8c4aaa5.js";import{L as So}from"./index.d821571f.js";import{u as Fo,B as yo}from"./index.16730ad8.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";import"./dialog.fde1aef6.js";import"./slot.ac9049d4.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
BIN
assets/index.4546455d.js.gz
Normal file
BIN
assets/index.4546455d.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{m as j,u as x,i as p,_ as z,c as l}from"./useConfig.442d698e.js";import{d as w,c as m,aI as u,aK as N}from"./arco.768e32d2.js";import{A as C,J as _,K as y,B as F}from"./index.ed45be5a.js";import{a as A}from"./slot.da180938.js";/**
|
import{m as j,u as x,i as p,_ as z,c as l}from"./useConfig.c8c4aaa5.js";import{d as w,c as m,aI as u,aK as N}from"./arco.768e32d2.js";import{A as C,J as _,K as y,B as F}from"./index.77e506b7.js";import{a as A}from"./slot.ac9049d4.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
BIN
assets/index.4e671ab9.js.gz
Normal file
BIN
assets/index.4e671ab9.js.gz
Normal file
Binary file not shown.
5
assets/index.509e5065.js
Normal file
5
assets/index.509e5065.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import{b as o}from"./dialog.fde1aef6.js";import{B as a}from"./index.77e506b7.js";import"./arco.768e32d2.js";/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var m=a(o);export{m as D};
|
@ -1 +1 @@
|
|||||||
import{e as L,ak as N,_ as F}from"./index.ed45be5a.js";/* empty css *//* empty css *//* empty css */import{d as U,r as V,o as j,bH as O,bO as A,C as h,D as b,aI as f,aH as g,G as x,aK as $,aJ as k,F as H,aM as y,aN as v,a$ as T,ba as q,bI as z,bJ as J,be as K,bf as G}from"./arco.768e32d2.js";import{h as Q}from"./vue.5a5bc6a2.js";import{e as W,b as X,g as Y}from"./serial.c741fbda.js";import"./chart.affe3403.js";const E=w=>(K("data-v-ffb80c1d"),w=w(),G(),w),Z={class:"container"},tt=E(()=>x("div",{id:"canvasDiv",style:{zoom:"250%",display:"none"}},null,-1)),et={style:{padding:"0",margin:"0","border-spacing":"0"}},ot=["onMousedown","onMouseover"],nt=E(()=>x("br",null,null,-1)),at={name:"Backup"},it=U({...at,setup(w){const p=L(),s=V({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=Q();j(async()=>{if(I.query.url){const e=await fetch(I.query.url,{responseType:"blob"});M(window.URL.createObjectURL(await e.blob()))}});const D=()=>{const e=s.matrix;e.map((n,t)=>{n.map((a,l)=>{e[t][l]=a=="#fff"?"#000":"#fff"})}),s.matrix=e},S=(e,n)=>{if(s.mousedown){const t=s.matrix;t[n][e]=s.matrix[n][e]=="#fff"?"#000":"#fff",s.matrix=t}},M=e=>{const n=document.createElement("canvas");n.width=128,n.height=64;const t=n.cloneNode(),a=document.getElementById("canvasDiv");a.innerHTML="",a==null||a.append(n,t);const l=new Image;l.src=e,l.onload=()=>{const i=n.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,n.width,n.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},R=()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const n=new Blob([e.files[0]],{type:"application/octet-stream"}),t=URL.createObjectURL(n),a=document.createElement("canvas");a.width=128,a.height=64;const l=new Image;l.src=t,l.onload=()=>{const i=a.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,a.width,a.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},e.click()},B=async()=>{const e=s.matrix,n=document.createElement("canvas");n.width=128,n.height=64;const t=n.getContext("2d");t&&(t.fillStyle="#fff",t.fillRect(0,0,n.width,n.height),t.fillStyle="#000");for(let l=0;l<64;l++)for(let i=0;i<128;i++)e[l][i]=="#000"&&(t==null||t.beginPath(),t==null||t.rect(i,l,1,1),t==null||t.fill());const a=document.createElement("a");a.href=n.toDataURL("image/jpeg",1),a.download="image.jpg",a.click()},P=async()=>{var l,i,m,_,d;const e=new Uint8Array(1024);let n=0;for(let o=0;o<64;o+=8)for(let r=0;r<128;r++){let u=0;for(let c=0;c<8;c++)u|=(s.matrix[o+c][r]=="#000"?1:0)<<c;e[n++]=u}if(s.binaryFile=e,p.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((l=p.configuration)==null?void 0:l.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((i=p.configuration)==null?void 0:i.charset)!="losehu"&&((m=p.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}s.loading=!0;let t=123728;((_=p.configuration)==null?void 0:_.charset)=="gb2312"&&(t=8320),await W(p.connectPort);const a=s.binaryFile;for(let o=t;o<a.length+t;o+=128)await X(p.connectPort,o,a.slice(o-t,o-t+128),128,(d=p.configuration)==null?void 0:d.uart);await Y(p.connectPort),s.loading=!1};return(e,n)=>{const t=N,a=T,l=q,i=O,m=A,_=z,d=J;return h(),b("div",Z,[f(t,{items:[e.$t("menu.list"),e.$t("menu.image")]},null,8,["items"]),f(d,{gutter:20,align:"stretch"},{default:g(()=>[f(_,{span:24},{default:g(()=>[f(m,{loading:s.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:g(()=>[f(i,{class:"general-card",title:e.$t("menu.image")+e.$t("global.onStart")},{default:g(()=>[tt,x("div",null,[x("table",et,[(h(!0),b($,null,k(s.matrix,(o,r)=>(h(),b("tr",null,[(h(!0),b($,null,k(o,(u,c)=>(h(),b("td",{onMousedown:C=>{s.mousedown=!0,S(c,r)},onMouseup:n[0]||(n[0]=C=>{s.mousedown=!1}),onMouseover:C=>S(c,r),style:H("background-color: "+u+"; height: 5px; width: 3.5px;")},null,44,ot))),256))]))),256))])]),nt,f(l,null,{default:g(()=>[f(a,{onClick:R},{default:g(()=>[y(v(e.$t("tool.selectImage")),1)]),_:1}),f(a,{disabled:s.matrix.length<64,onClick:D},{default:g(()=>[y(v(e.$t("image.negative")),1)]),_:1},8,["disabled"]),f(a,{disabled:s.matrix.length<64,onClick:B},{default:g(()=>[y(v(e.$t("cps.save")),1)]),_:1},8,["disabled"]),f(a,{type:"primary",disabled:s.matrix.length<64,onClick:P},{default:g(()=>[y(v(e.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=F(it,[["__scopeId","data-v-ffb80c1d"]]);export{pt as default};
|
import{e as L,ak as N,_ as F}from"./index.77e506b7.js";/* empty css *//* empty css *//* empty css */import{d as U,r as V,o as j,bH as O,bO as A,C as h,D as b,aI as f,aH as g,G as x,aK as $,aJ as k,F as H,aM as y,aN as v,a$ as T,ba as q,bI as z,bJ as J,be as K,bf as G}from"./arco.768e32d2.js";import{h as Q}from"./vue.5a5bc6a2.js";import{e as W,b as X,g as Y}from"./serial.c741fbda.js";import"./chart.affe3403.js";const E=w=>(K("data-v-ffb80c1d"),w=w(),G(),w),Z={class:"container"},tt=E(()=>x("div",{id:"canvasDiv",style:{zoom:"250%",display:"none"}},null,-1)),et={style:{padding:"0",margin:"0","border-spacing":"0"}},ot=["onMousedown","onMouseover"],nt=E(()=>x("br",null,null,-1)),at={name:"Backup"},it=U({...at,setup(w){const p=L(),s=V({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=Q();j(async()=>{if(I.query.url){const e=await fetch(I.query.url,{responseType:"blob"});M(window.URL.createObjectURL(await e.blob()))}});const D=()=>{const e=s.matrix;e.map((n,t)=>{n.map((a,l)=>{e[t][l]=a=="#fff"?"#000":"#fff"})}),s.matrix=e},S=(e,n)=>{if(s.mousedown){const t=s.matrix;t[n][e]=s.matrix[n][e]=="#fff"?"#000":"#fff",s.matrix=t}},M=e=>{const n=document.createElement("canvas");n.width=128,n.height=64;const t=n.cloneNode(),a=document.getElementById("canvasDiv");a.innerHTML="",a==null||a.append(n,t);const l=new Image;l.src=e,l.onload=()=>{const i=n.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,n.width,n.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},R=()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const n=new Blob([e.files[0]],{type:"application/octet-stream"}),t=URL.createObjectURL(n),a=document.createElement("canvas");a.width=128,a.height=64;const l=new Image;l.src=t,l.onload=()=>{const i=a.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,a.width,a.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},e.click()},B=async()=>{const e=s.matrix,n=document.createElement("canvas");n.width=128,n.height=64;const t=n.getContext("2d");t&&(t.fillStyle="#fff",t.fillRect(0,0,n.width,n.height),t.fillStyle="#000");for(let l=0;l<64;l++)for(let i=0;i<128;i++)e[l][i]=="#000"&&(t==null||t.beginPath(),t==null||t.rect(i,l,1,1),t==null||t.fill());const a=document.createElement("a");a.href=n.toDataURL("image/jpeg",1),a.download="image.jpg",a.click()},P=async()=>{var l,i,m,_,d;const e=new Uint8Array(1024);let n=0;for(let o=0;o<64;o+=8)for(let r=0;r<128;r++){let u=0;for(let c=0;c<8;c++)u|=(s.matrix[o+c][r]=="#000"?1:0)<<c;e[n++]=u}if(s.binaryFile=e,p.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((l=p.configuration)==null?void 0:l.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((i=p.configuration)==null?void 0:i.charset)!="losehu"&&((m=p.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}s.loading=!0;let t=123728;((_=p.configuration)==null?void 0:_.charset)=="gb2312"&&(t=8320),await W(p.connectPort);const a=s.binaryFile;for(let o=t;o<a.length+t;o+=128)await X(p.connectPort,o,a.slice(o-t,o-t+128),128,(d=p.configuration)==null?void 0:d.uart);await Y(p.connectPort),s.loading=!1};return(e,n)=>{const t=N,a=T,l=q,i=O,m=A,_=z,d=J;return h(),b("div",Z,[f(t,{items:[e.$t("menu.list"),e.$t("menu.image")]},null,8,["items"]),f(d,{gutter:20,align:"stretch"},{default:g(()=>[f(_,{span:24},{default:g(()=>[f(m,{loading:s.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:g(()=>[f(i,{class:"general-card",title:e.$t("menu.image")+e.$t("global.onStart")},{default:g(()=>[tt,x("div",null,[x("table",et,[(h(!0),b($,null,k(s.matrix,(o,r)=>(h(),b("tr",null,[(h(!0),b($,null,k(o,(u,c)=>(h(),b("td",{onMousedown:C=>{s.mousedown=!0,S(c,r)},onMouseup:n[0]||(n[0]=C=>{s.mousedown=!1}),onMouseover:C=>S(c,r),style:H("background-color: "+u+"; height: 5px; width: 3.5px;")},null,44,ot))),256))]))),256))])]),nt,f(l,null,{default:g(()=>[f(a,{onClick:R},{default:g(()=>[y(v(e.$t("tool.selectImage")),1)]),_:1}),f(a,{disabled:s.matrix.length<64,onClick:D},{default:g(()=>[y(v(e.$t("image.negative")),1)]),_:1},8,["disabled"]),f(a,{disabled:s.matrix.length<64,onClick:B},{default:g(()=>[y(v(e.$t("cps.save")),1)]),_:1},8,["disabled"]),f(a,{type:"primary",disabled:s.matrix.length<64,onClick:P},{default:g(()=>[y(v(e.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=F(it,[["__scopeId","data-v-ffb80c1d"]]);export{pt as default};
|
BIN
assets/index.5208927b.js.gz
Normal file
BIN
assets/index.5208927b.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{_}from"./index.ed45be5a.js";/* empty css */import{d as F,r as f,o as h,bF as g,a$ as m,D as y,bn as i,bo as c,G as o,aM as s,aI as a,aN as d,aH as v,be as A,bf as b,C as D}from"./arco.768e32d2.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";const l=u=>(A("data-v-9a7d1078"),u=u(),b(),u),S={class:"container"},C={style:{"background-color":"#fff",padding:"10%"}},B=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=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(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",C,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),B,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:v(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-9a7d1078"]]);export{U as default};
|
import{_}from"./index.77e506b7.js";/* empty css */import{d as F,r as f,o as h,bF as g,a$ as m,D as y,bn as i,bo as c,G as o,aM as s,aI as a,aN as d,aH as v,be as A,bf as b,C as D}from"./arco.768e32d2.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";const l=u=>(A("data-v-9a7d1078"),u=u(),b(),u),S={class:"container"},C={style:{"background-color":"#fff",padding:"10%"}},B=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=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(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",C,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),B,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:v(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-9a7d1078"]]);export{U as default};
|
BIN
assets/index.543dae49.js.gz
Normal file
BIN
assets/index.543dae49.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{d as R,r as Q,bH as W,C as U,aE as X,aH as u,aI as s,aM as f,aN as c,u as i,bn as Y,bo as Z,bp as tt,bI as ot,bF as at,a$ as nt,ba as et,be as rt,bf as ct,G as _,D as it}from"./arco.768e32d2.js";import{v as st,e as ut,_ as j}from"./index.ed45be5a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as _t,a as e,b as r}from"./serial.c741fbda.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";const pt=""+new URL("../gy.png",import.meta.url).href,v=p=>(rt("data-v-7f92e336"),p=p(),ct(),p),lt=v(()=>_("br",null,null,-1)),dt=v(()=>_("br",null,null,-1)),mt=v(()=>_("div",null,[_("img",{style:{"margin-bottom":"10px"},width:"600px",src:pt})],-1)),ft=R({__name:"banner",setup(p){const{t:n}=st.exports.useI18n(),t=ut(),b=Q({eepromSize:n("workplace.clickCheck")}),F=async()=>{var l,g,w,h,k,d,m,M,$,I,x,C,z,B,D,E,N,T,V,A,H;let o=n("workplace.unk");const y=[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 _t(t.connectPort);const a=new Uint8Array(y);if(((l=t.configuration)==null?void 0:l.uart)=="official"){const S=await e(t.connectPort,0,8,(g=t.configuration)==null?void 0:g.uart);await r(t.connectPort,0,a,8,(w=t.configuration)==null?void 0:w.uart);const P=await e(t.connectPort,0,8,(h=t.configuration)==null?void 0:h.uart);a.toString()==P.toString()&&(o=n("global.8kb")),await r(t.connectPort,0,S,8,(k=t.configuration)==null?void 0:k.uart)}else{const S=await e(t.connectPort,0,8,(d=t.configuration)==null?void 0:d.uart);await r(t.connectPort,0,a,8,(m=t.configuration)==null?void 0:m.uart);const P=await e(t.connectPort,0,8,(M=t.configuration)==null?void 0:M.uart);a.toString()==P.toString()&&(o=n("global.8kb")),await r(t.connectPort,0,S,8,($=t.configuration)==null?void 0:$.uart);const G=await e(t.connectPort,131064,8,(I=t.configuration)==null?void 0:I.uart);await r(t.connectPort,131064,a,8,(x=t.configuration)==null?void 0:x.uart);const L=await e(t.connectPort,131064,8,(C=t.configuration)==null?void 0:C.uart);a.toString()==L.toString()&&(o=n("global.128kb")),await r(t.connectPort,131064,G,8,(z=t.configuration)==null?void 0:z.uart);const O=await e(t.connectPort,262136,8,(B=t.configuration)==null?void 0:B.uart);await r(t.connectPort,262136,a,8,(D=t.configuration)==null?void 0:D.uart);const q=await e(t.connectPort,262136,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==q.toString()&&(o=n("global.256kb")),await r(t.connectPort,262136,O,8,(N=t.configuration)==null?void 0:N.uart);const J=await e(t.connectPort,524280,8,(T=t.configuration)==null?void 0:T.uart);await r(t.connectPort,524280,a,8,(V=t.configuration)==null?void 0:V.uart);const K=await e(t.connectPort,524280,8,(A=t.configuration)==null?void 0:A.uart);a.toString()==K.toString()&&(o=n("global.512kb")),await r(t.connectPort,524280,J,8,(H=t.configuration)==null?void 0:H.uart)}b.eepromSize=o};return(o,y)=>{const a=tt,l=ot,g=at,w=nt,h=W,k=et;return U(),X(l,{class:"banner"},{default:u(()=>[s(l,null,{default:u(()=>[s(a,{heading:5,style:{"margin-top":"0"}},{default:u(()=>[f(c(i(t).connectState?o.$t("workplace.welcomeSuc"):o.$t("workplace.welcome")),1)]),_:1})]),_:1}),s(g,{class:"panel-border"}),s(k,null,{default:u(()=>[Y(s(h,{style:{marginTop:"2em",marginBottom:"2em"},title:o.$t("workplace.info")},{default:u(()=>{var d,m;return[f(c(o.$t("workplace.current"))+c(i(t).firmwareVersion)+" ",1),lt,f(" "+c(o.$t("workplace.writeconfig"))+c((d=i(t).configuration)==null?void 0:d.name)+" ",1),dt,f(" "+c(o.$t("workplace.eepromSize"))+c(b.eepromSize)+" "+c(b.eepromSize!=i(n)("workplace.clickCheck")&&((m=i(t).configuration)==null?void 0:m.uart)=="official"?i(n)("workplace.clickNotice"):"")+" ",1),s(w,{size:"mini",type:"primary",onClick:F},{default:u(()=>[f(c(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,i(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=j(ft,[["__scopeId","data-v-7f92e336"]]),wt={class:"container"},ht={class:"left-side"},kt={class:"panel"},bt={name:"Dashboard"},St=R({...bt,setup(p){return(n,t)=>(U(),it("div",wt,[_("div",ht,[_("div",kt,[s(gt)])])]))}});const Et=j(St,[["__scopeId","data-v-8f743d99"]]);export{Et as default};
|
import{d as R,r as Q,bH as W,C as U,aE as X,aH as u,aI as s,aM as f,aN as c,u as i,bn as Y,bo as Z,bp as tt,bI as ot,bF as at,a$ as nt,ba as et,be as rt,bf as ct,G as _,D as it}from"./arco.768e32d2.js";import{v as st,e as ut,_ as j}from"./index.77e506b7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as _t,a as e,b as r}from"./serial.c741fbda.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";const pt=""+new URL("../gy.png",import.meta.url).href,v=p=>(rt("data-v-7f92e336"),p=p(),ct(),p),lt=v(()=>_("br",null,null,-1)),dt=v(()=>_("br",null,null,-1)),mt=v(()=>_("div",null,[_("img",{style:{"margin-bottom":"10px"},width:"600px",src:pt})],-1)),ft=R({__name:"banner",setup(p){const{t:n}=st.exports.useI18n(),t=ut(),b=Q({eepromSize:n("workplace.clickCheck")}),F=async()=>{var l,g,w,h,k,d,m,M,$,I,x,C,z,B,D,E,N,T,V,A,H;let o=n("workplace.unk");const y=[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 _t(t.connectPort);const a=new Uint8Array(y);if(((l=t.configuration)==null?void 0:l.uart)=="official"){const S=await e(t.connectPort,0,8,(g=t.configuration)==null?void 0:g.uart);await r(t.connectPort,0,a,8,(w=t.configuration)==null?void 0:w.uart);const P=await e(t.connectPort,0,8,(h=t.configuration)==null?void 0:h.uart);a.toString()==P.toString()&&(o=n("global.8kb")),await r(t.connectPort,0,S,8,(k=t.configuration)==null?void 0:k.uart)}else{const S=await e(t.connectPort,0,8,(d=t.configuration)==null?void 0:d.uart);await r(t.connectPort,0,a,8,(m=t.configuration)==null?void 0:m.uart);const P=await e(t.connectPort,0,8,(M=t.configuration)==null?void 0:M.uart);a.toString()==P.toString()&&(o=n("global.8kb")),await r(t.connectPort,0,S,8,($=t.configuration)==null?void 0:$.uart);const G=await e(t.connectPort,131064,8,(I=t.configuration)==null?void 0:I.uart);await r(t.connectPort,131064,a,8,(x=t.configuration)==null?void 0:x.uart);const L=await e(t.connectPort,131064,8,(C=t.configuration)==null?void 0:C.uart);a.toString()==L.toString()&&(o=n("global.128kb")),await r(t.connectPort,131064,G,8,(z=t.configuration)==null?void 0:z.uart);const O=await e(t.connectPort,262136,8,(B=t.configuration)==null?void 0:B.uart);await r(t.connectPort,262136,a,8,(D=t.configuration)==null?void 0:D.uart);const q=await e(t.connectPort,262136,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==q.toString()&&(o=n("global.256kb")),await r(t.connectPort,262136,O,8,(N=t.configuration)==null?void 0:N.uart);const J=await e(t.connectPort,524280,8,(T=t.configuration)==null?void 0:T.uart);await r(t.connectPort,524280,a,8,(V=t.configuration)==null?void 0:V.uart);const K=await e(t.connectPort,524280,8,(A=t.configuration)==null?void 0:A.uart);a.toString()==K.toString()&&(o=n("global.512kb")),await r(t.connectPort,524280,J,8,(H=t.configuration)==null?void 0:H.uart)}b.eepromSize=o};return(o,y)=>{const a=tt,l=ot,g=at,w=nt,h=W,k=et;return U(),X(l,{class:"banner"},{default:u(()=>[s(l,null,{default:u(()=>[s(a,{heading:5,style:{"margin-top":"0"}},{default:u(()=>[f(c(i(t).connectState?o.$t("workplace.welcomeSuc"):o.$t("workplace.welcome")),1)]),_:1})]),_:1}),s(g,{class:"panel-border"}),s(k,null,{default:u(()=>[Y(s(h,{style:{marginTop:"2em",marginBottom:"2em"},title:o.$t("workplace.info")},{default:u(()=>{var d,m;return[f(c(o.$t("workplace.current"))+c(i(t).firmwareVersion)+" ",1),lt,f(" "+c(o.$t("workplace.writeconfig"))+c((d=i(t).configuration)==null?void 0:d.name)+" ",1),dt,f(" "+c(o.$t("workplace.eepromSize"))+c(b.eepromSize)+" "+c(b.eepromSize!=i(n)("workplace.clickCheck")&&((m=i(t).configuration)==null?void 0:m.uart)=="official"?i(n)("workplace.clickNotice"):"")+" ",1),s(w,{size:"mini",type:"primary",onClick:F},{default:u(()=>[f(c(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,i(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=j(ft,[["__scopeId","data-v-7f92e336"]]),wt={class:"container"},ht={class:"left-side"},kt={class:"panel"},bt={name:"Dashboard"},St=R({...bt,setup(p){return(n,t)=>(U(),it("div",wt,[_("div",ht,[_("div",kt,[s(gt)])])]))}});const Et=j(St,[["__scopeId","data-v-8f743d99"]]);export{Et as default};
|
BIN
assets/index.5e58cdcc.js.gz
Normal file
BIN
assets/index.5e58cdcc.js.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.661209c8.js
Normal file
1
assets/index.661209c8.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{v as H,e as M,ak as N,_ as U}from"./index.77e506b7.js";/* empty css *//* empty css *//* empty css */import{d as V,r as D,c as L,bH as O,C as j,D as G,aI as i,aH as r,G as y,aN as f,aM as g,u as S,a6 as J,a$ as W,ba as q,bI as F,bJ as Q}from"./arco.768e32d2.js";import{u as X}from"./loading.c097827a.js";import{e as h,a as b,u as v,f as Y,h as P,s as Z,b as w,g as ee}from"./serial.c741fbda.js";import{I as C}from"./form-model.71f84e3f.js";import{M as te,T as ae}from"./index.d5e8a3fd.js";import{B as ne}from"./index.16730ad8.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";import"./useConfig.c8c4aaa5.js";import"./dialog.fde1aef6.js";import"./index.d821571f.js";import"./dep-6deb4e3a.84894bd5.js";import"./slot.ac9049d4.js";const oe={class:"container"},re={name:"Radio"},ie=V({...re,setup(se){const{t:m}=H.exports.useI18n(),o=M(),{loading:I,setLoading:u}=X(!1),a=D({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),z=D({showHide:0}),R=e=>{a.renderData=e.newData},$=L(()=>[{colKey:"drag",title:m("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:m("cps.contact"),colKey:"name",width:250,align:"left",cell:(e,{row:t})=>t.name?t.name.replace(/[^a-z0-9_]/g,""):void 0,edit:{component:C,props:{clearable:!0},onEdited:e=>{const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:m("cps.mdcid"),colKey:"mdcid",align:"left",width:200,cell:(e,{row:t})=>parseInt(t.mdcid,16)<=65535?parseInt(t.mdcid,16).toString(16):void 0,edit:{component:C,props:{clearable:!0},onEdited:e=>{e.newRowData.mdcid=e.newRowData.mdcid?e.newRowData.mdcid:void 0;const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:m("cps.operate"),colKey:"operate",align:"left",width:150}]),A=async()=>{var d,c;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await h(o.connectPort),u(!0);let e=new Uint8Array(256);for(let n=7424;n<7680;n+=16){const s=await b(o.connectPort,n,16,(d=o.configuration)==null?void 0:d.uart);e.set(s,n-7424)}const t=[];for(let n=0;n<256;n+=16)v(e.subarray(n,n+2))!="ffff"?t.push({name:Y(e.subarray(n+2,n+16),(c=o.configuration)==null?void 0:c.charset),mdcid:v(e.subarray(n,n+2))}):t.push({});a.renderData=t,u(!1)},T=async()=>{var t,d,c,n;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await h(o.connectPort),u(!0);for(let s=0;s<256;s+=16)if(a.renderData[s/16].mdcid){const l=new Uint8Array(16).fill(32);l.set(P(a.renderData[s/16].mdcid.padStart(4,"0"))),l.set(Z(a.renderData[s/16].name),2),await w(o.connectPort,s+7424,l,16,(t=o.configuration)==null?void 0:t.uart)}else await w(o.connectPort,s+7424,P("ffffffffffffffffffffffffffffffff"),16,(d=o.configuration)==null?void 0:d.uart);const e=await b(o.connectPort,8176,16,(c=o.configuration)==null?void 0:c.uart);e.set([16],16-1),await w(o.connectPort,8176,e,16,(n=o.configuration)==null?void 0:n.uart),await ee(o.connectPort),u(!1)},k=async e=>{const t=[...a.renderData];t.splice(e,1,{scanlist:[]}),a.renderData=t};return(e,t)=>{const d=N,c=J,n=W,s=q,l=F,B=Q,K=ne,x=ae,E=O;return j(),G("div",oe,[i(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.mdc")]},null,8,["items"]),i(E,{class:"general-card"},{title:r(()=>[y("span",{onClick:t[0]||(t[0]=()=>{z.showHide+=1})},f(e.$t("menu.cps.mdc")+e.$t("global.onStart")),1)]),default:r(()=>[i(B,{style:{"margin-bottom":"16px"}},{default:r(()=>[i(l,{span:12},{default:r(()=>[i(s,null,{default:r(()=>[i(n,{type:"primary",onClick:A},{icon:r(()=>[i(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceRead")),1)]),_:1}),i(n,{onClick:T},{icon:r(()=>[i(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),i(x,{class:"ttable",loading:S(I),size:"medium",columns:$.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:t[1]||(t[1]=p=>{a.pageSize=p.pagination.pageSize,a.nowPage=p.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:R},{drag:r(({row:p,rowIndex:_})=>[y("span",null,[i(S(te))])]),index:r(({row:p,rowIndex:_})=>[g(f((a.nowPage-1)*a.pageSize+_+1),1)]),operate:r(({row:p,rowIndex:_})=>[i(K,{theme:"default",variant:"dashed",onClick:ce=>k((a.nowPage-1)*a.pageSize+_)},{default:r(()=>[g(f(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Ie=U(ie,[["__scopeId","data-v-d03a33a5"]]);export{Ie as default};
|
BIN
assets/index.661209c8.js.gz
Normal file
BIN
assets/index.661209c8.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{y as S,J as B,A as ne,B as oe,e as Se,u as Ae,s as C,ak as De,_ as Ee}from"./index.ed45be5a.js";/* empty css *//* empty css *//* empty css */import{d as N,c as _,o as ae,b as Ne,f as Fe,t as $e,p as Ie,r as U,aI as s,aU as re,i as Le,bH as Be,C as x,D as E,aH as i,G as k,u as h,aK as $,aM as O,aN as P,aJ as G,aE as J,a_ as K,b9 as Ue,bI as ze,bJ as Re,be as Te,bf as Ve}from"./arco.768e32d2.js";import{f as Me}from"./vue.5a5bc6a2.js";import{u as se,r as ie,_ as le}from"./dialog.3cb279ab.js";import{R as Ge,L as Je,a as Ke,D as He,T as qe,U as Xe}from"./index.211b9b44.js";import{B as We}from"./index.8714e774.js";import{c as y,i as A,u as ce}from"./useConfig.442d698e.js";import{d as I,I as Qe}from"./form-model.10d173e3.js";import{i as H}from"./index.d87791fe.js";import{C as Ye}from"./index.7386ad14.js";import{P as Ze,s as et}from"./dep-6deb4e3a.042be393.js";import{L as tt,F as nt,a as ot}from"./index.8aa6d3a7.js";import"./chart.affe3403.js";import"./slot.da180938.js";import"./index.2dd4e4ac.js";import"./index.d7f6f21d.js";function q(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),o.push.apply(o,n)}return o}function X(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?q(Object(o),!0).forEach(function(n){le(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):q(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}var at={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"}}]},rt=N({name:"CheckDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:o}=e,n=_(()=>t.size),{className:l,style:d}=se(n),r=_(()=>["t-icon","t-icon-check-double",l.value]),a=_(()=>X(X({},d.value),o.style)),v=_(()=>({class:r.value,style:a.value,onClick:c=>{var m;return(m=t.onClick)===null||m===void 0?void 0:m.call(t,{e:c})}}));return()=>ie(at,v.value)}});const st=rt;function W(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),o.push.apply(o,n)}return o}function Q(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?W(Object(o),!0).forEach(function(n){le(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):W(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}var it={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"}}]},lt=N({name:"ThumbUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:o}=e,n=_(()=>t.size),{className:l,style:d}=se(n),r=_(()=>["t-icon","t-icon-thumb-up",l.value]),a=_(()=>Q(Q({},d.value),o.style)),v=_(()=>({class:r.value,style:a.value,onClick:c=>{var m;return(m=t.onClick)===null||m===void 0?void 0:m.call(t,{e:c})}}));return()=>ie(it,v.value)}});const ct=lt;/**
|
import{y as S,J as B,A as ne,B as oe,e as Se,u as Ae,s as C,ak as De,_ as Ee}from"./index.77e506b7.js";/* empty css *//* empty css *//* empty css */import{d as N,c as _,o as ae,b as Ne,f as Fe,t as $e,p as Ie,r as U,aI as s,aU as re,i as Le,bH as Be,C as x,D as E,aH as i,G as k,u as h,aK as $,aM as O,aN as P,aJ as G,aE as J,a_ as K,b9 as Ue,bI as ze,bJ as Re,be as Te,bf as Ve}from"./arco.768e32d2.js";import{f as Me}from"./vue.5a5bc6a2.js";import{u as se,r as ie,_ as le}from"./dialog.fde1aef6.js";import{R as Ge,L as Je,a as Ke,D as He,T as qe,U as Xe}from"./index.240cd6f3.js";import{B as We}from"./index.16730ad8.js";import{c as y,i as A,u as ce}from"./useConfig.c8c4aaa5.js";import{d as I,I as Qe}from"./form-model.71f84e3f.js";import{i as H}from"./index.d821571f.js";import{C as Ye}from"./index.3477e53b.js";import{P as Ze,s as et}from"./dep-6deb4e3a.84894bd5.js";import{L as tt,F as nt,a as ot}from"./index.3e3d8e9b.js";import"./chart.affe3403.js";import"./slot.ac9049d4.js";import"./index.509e5065.js";import"./index.4e671ab9.js";function q(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),o.push.apply(o,n)}return o}function X(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?q(Object(o),!0).forEach(function(n){le(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):q(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}var at={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"}}]},rt=N({name:"CheckDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:o}=e,n=_(()=>t.size),{className:l,style:d}=se(n),r=_(()=>["t-icon","t-icon-check-double",l.value]),a=_(()=>X(X({},d.value),o.style)),v=_(()=>({class:r.value,style:a.value,onClick:c=>{var m;return(m=t.onClick)===null||m===void 0?void 0:m.call(t,{e:c})}}));return()=>ie(at,v.value)}});const st=rt;function W(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),o.push.apply(o,n)}return o}function Q(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?W(Object(o),!0).forEach(function(n){le(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):W(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}var it={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"}}]},lt=N({name:"ThumbUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:o}=e,n=_(()=>t.size),{className:l,style:d}=se(n),r=_(()=>["t-icon","t-icon-thumb-up",l.value]),a=_(()=>Q(Q({},d.value),o.style)),v=_(()=>({class:r.value,style:a.value,onClick:c=>{var m;return(m=t.onClick)===null||m===void 0?void 0:m.call(t,{e:c})}}));return()=>ie(it,v.value)}});const ct=lt;/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
BIN
assets/index.6db91776.js.gz
Normal file
BIN
assets/index.6db91776.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{ak as g,_ as v}from"./index.ed45be5a.js";/* empty css *//* empty css */import{d as E,r as x,w as M,o as V,bS as C,bH as y,C as D,D as A,aI as e,aH as u,aM as t,bT as w,a$ as B,bI as U,bJ as k}from"./arco.768e32d2.js";import{f as S}from"./vue.5a5bc6a2.js";import{S as I}from"./index.d7f6f21d.js";import"./chart.affe3403.js";import"./useConfig.442d698e.js";import"./slot.da180938.js";const j={class:"container"},O={name:"Backup"},H=E({...O,setup(R){const r=S(),_=()=>{r.push({path:"/tool/flash",query:{url:"https://k5.vicicode.com/diyapi/LOSEHU"+a.flag.join("")+".bin"}})},a=x({versions:[],flag:["0","0","0","0","0","0","0","0"],disMatrix:[{0:!1,4:!1},{0:!1,1:!1},{0:!1,1:!1},{0:!1,1:!1},{0:!1,F:!1,4:!1},{0:!1,1:!1},{0:!1,1:!1},{0:!1,1:!1}]});M(a.flag,()=>{f()});const f=()=>{a.flag.map((n,l)=>{Object.keys(a.disMatrix[l]).map(i=>{a.versions.indexOf("LOSEHU"+a.flag.join("").substring(0,l)+i+a.flag.join("").substring(l+1)+".bin")==-1?a.disMatrix[l][i]=!0:a.disMatrix[l][i]=!1})})};return V(async()=>{const n=await(await fetch("https://k5.vicicode.com/diyapi/version.json?v="+new Date().getTime())).text();a.versions=JSON.parse(n),f()}),(n,l)=>{const i=g,d=C,o=w,p=B,m=I,b=y,F=U,c=k;return D(),A("div",j,[e(i,{items:[n.$t("menu.workshop"),"\u81EA\u5B9A\u4E49\u841D\u535C\u56FA\u4EF6"]},null,8,["items"]),e(c,{gutter:20,align:"stretch"},{default:u(()=>[e(F,{span:24},{default:u(()=>[e(b,{class:"general-card",title:"\u81EA\u5B9A\u4E49\u841D\u535C\u56FA\u4EF6"},{default:u(()=>[e(m,{direction:"vertical"},{default:u(()=>[e(o,{modelValue:a.flag[0],"onUpdate:modelValue":l[0]||(l[0]=s=>a.flag[0]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[0][0]},{default:u(()=>[t("\u82F1\u6587\u4FE1\u9053")]),_:1},8,["disabled"]),e(d,{value:"4",disabled:a.disMatrix[0][4]},{default:u(()=>[t("\u4E2D\u6587\u4FE1\u9053")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[6],"onUpdate:modelValue":l[1]||(l[1]=s=>a.flag[6]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[6][0]},{default:u(()=>[t("\u505C\u7528\u9891\u8C31\u4EEA")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[6][1]},{default:u(()=>[t("\u5F00\u542F\u9891\u8C31\u4EEA")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[3],"onUpdate:modelValue":l[2]||(l[2]=s=>a.flag[3]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[3][0]},{default:u(()=>[t("\u505C\u7528MDC\u4FE1\u4EE4")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[3][1]},{default:u(()=>[t("\u5F00\u542FMDC\u4FE1\u4EE4")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[2],"onUpdate:modelValue":l[3]||(l[3]=s=>a.flag[2]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[2][0]},{default:u(()=>[t("\u505C\u7528\u591A\u666E\u52D2")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[2][1]},{default:u(()=>[t("\u5F00\u542F\u591A\u666E\u52D2")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[5],"onUpdate:modelValue":l[4]||(l[4]=s=>a.flag[5]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[5][0]},{default:u(()=>[t("\u505C\u7528\u8F93\u5165\u6CD5")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[5][1]},{default:u(()=>[t("\u5F00\u542F\u8F93\u5165\u6CD5")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[1],"onUpdate:modelValue":l[5]||(l[5]=s=>a.flag[1]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[1][0]},{default:u(()=>[t("\u505C\u7528\u77ED\u4FE1\u529F\u80FD")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[1][1]},{default:u(()=>[t("\u5F00\u542F\u77ED\u4FE1\u529F\u80FD")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[4],"onUpdate:modelValue":l[6]||(l[6]=s=>a.flag[4]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[4][0]},{default:u(()=>[t("\u505C\u7528\u6536\u97F3\u673A")]),_:1},8,["disabled"]),e(d,{value:"F",disabled:a.disMatrix[4].F},{default:u(()=>[t("\u9ED8\u8BA4\u6536\u97F3\u673A")]),_:1},8,["disabled"]),e(d,{value:"4",disabled:a.disMatrix[4][4]},{default:u(()=>[t("SI4732\u6536\u97F3\u673A")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[7],"onUpdate:modelValue":l[7]||(l[7]=s=>a.flag[7]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[7][0]},{default:u(()=>[t("\u505C\u7528 SI4732 \u5355\u8FB9\u5E26")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[7][1]},{default:u(()=>[t("\u5F00\u542F SI4732 \u5355\u8FB9\u5E26")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(p,{type:"primary",onClick:_},{default:u(()=>[t("\u751F\u6210")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])}}});const P=v(H,[["__scopeId","data-v-70f14c65"]]);export{P as default};
|
import{ak as g,_ as v}from"./index.77e506b7.js";/* empty css *//* empty css */import{d as E,r as x,w as M,o as V,bS as C,bH as y,C as D,D as A,aI as e,aH as u,aM as t,bT as w,a$ as B,bI as U,bJ as k}from"./arco.768e32d2.js";import{f as S}from"./vue.5a5bc6a2.js";import{S as I}from"./index.4e671ab9.js";import"./chart.affe3403.js";import"./useConfig.c8c4aaa5.js";import"./slot.ac9049d4.js";const j={class:"container"},O={name:"Backup"},H=E({...O,setup(R){const r=S(),_=()=>{r.push({path:"/tool/flash",query:{url:"https://k5.vicicode.com/diyapi/LOSEHU"+a.flag.join("")+".bin"}})},a=x({versions:[],flag:["0","0","0","0","0","0","0","0"],disMatrix:[{0:!1,4:!1},{0:!1,1:!1},{0:!1,1:!1},{0:!1,1:!1},{0:!1,F:!1,4:!1},{0:!1,1:!1},{0:!1,1:!1},{0:!1,1:!1}]});M(a.flag,()=>{f()});const f=()=>{a.flag.map((n,l)=>{Object.keys(a.disMatrix[l]).map(i=>{a.versions.indexOf("LOSEHU"+a.flag.join("").substring(0,l)+i+a.flag.join("").substring(l+1)+".bin")==-1?a.disMatrix[l][i]=!0:a.disMatrix[l][i]=!1})})};return V(async()=>{const n=await(await fetch("https://k5.vicicode.com/diyapi/version.json?v="+new Date().getTime())).text();a.versions=JSON.parse(n),f()}),(n,l)=>{const i=g,d=C,o=w,p=B,m=I,b=y,F=U,c=k;return D(),A("div",j,[e(i,{items:[n.$t("menu.workshop"),"\u81EA\u5B9A\u4E49\u841D\u535C\u56FA\u4EF6"]},null,8,["items"]),e(c,{gutter:20,align:"stretch"},{default:u(()=>[e(F,{span:24},{default:u(()=>[e(b,{class:"general-card",title:"\u81EA\u5B9A\u4E49\u841D\u535C\u56FA\u4EF6"},{default:u(()=>[e(m,{direction:"vertical"},{default:u(()=>[e(o,{modelValue:a.flag[0],"onUpdate:modelValue":l[0]||(l[0]=s=>a.flag[0]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[0][0]},{default:u(()=>[t("\u82F1\u6587\u4FE1\u9053")]),_:1},8,["disabled"]),e(d,{value:"4",disabled:a.disMatrix[0][4]},{default:u(()=>[t("\u4E2D\u6587\u4FE1\u9053")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[6],"onUpdate:modelValue":l[1]||(l[1]=s=>a.flag[6]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[6][0]},{default:u(()=>[t("\u505C\u7528\u9891\u8C31\u4EEA")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[6][1]},{default:u(()=>[t("\u5F00\u542F\u9891\u8C31\u4EEA")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[3],"onUpdate:modelValue":l[2]||(l[2]=s=>a.flag[3]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[3][0]},{default:u(()=>[t("\u505C\u7528MDC\u4FE1\u4EE4")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[3][1]},{default:u(()=>[t("\u5F00\u542FMDC\u4FE1\u4EE4")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[2],"onUpdate:modelValue":l[3]||(l[3]=s=>a.flag[2]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[2][0]},{default:u(()=>[t("\u505C\u7528\u591A\u666E\u52D2")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[2][1]},{default:u(()=>[t("\u5F00\u542F\u591A\u666E\u52D2")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[5],"onUpdate:modelValue":l[4]||(l[4]=s=>a.flag[5]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[5][0]},{default:u(()=>[t("\u505C\u7528\u8F93\u5165\u6CD5")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[5][1]},{default:u(()=>[t("\u5F00\u542F\u8F93\u5165\u6CD5")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[1],"onUpdate:modelValue":l[5]||(l[5]=s=>a.flag[1]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[1][0]},{default:u(()=>[t("\u505C\u7528\u77ED\u4FE1\u529F\u80FD")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[1][1]},{default:u(()=>[t("\u5F00\u542F\u77ED\u4FE1\u529F\u80FD")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[4],"onUpdate:modelValue":l[6]||(l[6]=s=>a.flag[4]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[4][0]},{default:u(()=>[t("\u505C\u7528\u6536\u97F3\u673A")]),_:1},8,["disabled"]),e(d,{value:"F",disabled:a.disMatrix[4].F},{default:u(()=>[t("\u9ED8\u8BA4\u6536\u97F3\u673A")]),_:1},8,["disabled"]),e(d,{value:"4",disabled:a.disMatrix[4][4]},{default:u(()=>[t("SI4732\u6536\u97F3\u673A")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[7],"onUpdate:modelValue":l[7]||(l[7]=s=>a.flag[7]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[7][0]},{default:u(()=>[t("\u505C\u7528 SI4732 \u5355\u8FB9\u5E26")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[7][1]},{default:u(()=>[t("\u5F00\u542F SI4732 \u5355\u8FB9\u5E26")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(p,{type:"primary",onClick:_},{default:u(()=>[t("\u751F\u6210")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])}}});const P=v(H,[["__scopeId","data-v-70f14c65"]]);export{P as default};
|
BIN
assets/index.6ed4b5f7.js.gz
Normal file
BIN
assets/index.6ed4b5f7.js.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.74afd992.css
Normal file
1
assets/index.74afd992.css
Normal file
@ -0,0 +1 @@
|
|||||||
|
[data-v-be263a43] ::-webkit-scrollbar-thumb{border-radius:0!important}[data-v-be263a43] .scrollbar::-webkit-scrollbar{height:10px}[data-v-be263a43] .t-table__content::-webkit-scrollbar{height:15px}.container[data-v-be263a43]{padding:0 20px 20px}[data-v-be263a43] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-be263a43]{margin-left:12px;cursor:pointer}.active[data-v-be263a43]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-be263a43]{display:flex;align-items:center;width:200px}.setting .title[data-v-be263a43]{margin-left:12px;cursor:pointer}.ttable[data-v-be263a43] .t-table__affixed-header-elm-wrap{height:60px!important}.ttable[data-v-be263a43] .t-table__content{scrollbar-width:auto!important}
|
File diff suppressed because one or more lines are too long
BIN
assets/index.77e506b7.js.gz
Normal file
BIN
assets/index.77e506b7.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.838e6d45.js.gz
Normal file
BIN
assets/index.838e6d45.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{_ as t}from"./index.ed45be5a.js";import{C as a,aE as s,aH as _,bg as c,be as n,bf as r,G as d}from"./arco.768e32d2.js";const p={},f=e=>(n("data-v-77ebf61d"),e=e(),r(),e),i=f(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202405130020",-1));function b(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[i]),_:1})}const m=t(p,[["render",b],["__scopeId","data-v-77ebf61d"]]);export{m as F};
|
import{_ as t}from"./index.77e506b7.js";import{C as a,aE as s,aH as _,bg as c,be as n,bf as r,G as d}from"./arco.768e32d2.js";const p={},f=e=>(n("data-v-77ebf61d"),e=e(),r(),e),i=f(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202405130020",-1));function b(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[i]),_:1})}const m=t(p,[["render",b],["__scopeId","data-v-77ebf61d"]]);export{m as F};
|
1
assets/index.a4a39b33.css
Normal file
1
assets/index.a4a39b33.css
Normal file
@ -0,0 +1 @@
|
|||||||
|
[data-v-d03a33a5] ::-webkit-scrollbar-thumb{border-radius:0!important}[data-v-d03a33a5] .scrollbar::-webkit-scrollbar{height:10px}[data-v-d03a33a5] .t-table__content::-webkit-scrollbar{height:15px}.container[data-v-d03a33a5]{padding:0 20px 20px}[data-v-d03a33a5] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-d03a33a5]{margin-left:12px;cursor:pointer}.active[data-v-d03a33a5]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-d03a33a5]{display:flex;align-items:center;width:200px}.setting .title[data-v-d03a33a5]{margin-left:12px;cursor:pointer}.ttable[data-v-d03a33a5] .t-table__affixed-header-elm-wrap{height:60px!important}.ttable[data-v-d03a33a5] .t-table__content{scrollbar-width:auto!important}
|
@ -1 +1 @@
|
|||||||
import{d as x,c as q,b5 as R,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as E,aE as j,aN as r,b6 as z,f as A,r as G,b7 as H,b8 as J,b9 as K,ba as Q,bb as T,u as C,aM as f,a_ as W,bc as O,bd as X,a$ as Y,be as Z,bf as ee}from"./arco.768e32d2.js";import{F as oe}from"./index.cd0c9220.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.ed45be5a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.5a5bc6a2.js";import{u as le}from"./loading.c097827a.js";import"./chart.affe3403.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=x({__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,E(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(c){const t=te(),{t:g}=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:$,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=O,$=ne,y=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(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-12db3177"]]),ye=c=>(Z("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},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 je=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{je as default};
|
import{d as x,c as q,b5 as R,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as E,aE as j,aN as r,b6 as z,f as A,r as G,b7 as H,b8 as J,b9 as K,ba as Q,bb as T,u as C,aM as f,a_ as W,bc as O,bd as X,a$ as Y,be as Z,bf as ee}from"./arco.768e32d2.js";import{F as oe}from"./index.a061d700.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.77e506b7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.5a5bc6a2.js";import{u as le}from"./loading.c097827a.js";import"./chart.affe3403.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=x({__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,E(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(c){const t=te(),{t:g}=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:$,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=O,$=ne,y=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(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-12db3177"]]),ye=c=>(Z("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},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 je=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{je as default};
|
BIN
assets/index.adb2a581.js.gz
Normal file
BIN
assets/index.adb2a581.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{e as v,ak as B,_ as E}from"./index.ed45be5a.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as $,r as C,bH as A,C as F,D as S,aI as n,aH as o,G as y,aN as _,aM as b,a$ as H,ba as R,bF as D,bI as I,bJ as P,n as T}from"./arco.768e32d2.js";import{i as M,e as N,b as U,g as V}from"./serial.c741fbda.js";import{C as z}from"./index.7386ad14.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";import"./useConfig.442d698e.js";import"./index.d87791fe.js";const L={class:"container"},G=["innerHTML"],J={name:"Chi"},K=$({...J,setup(O){const i=v(),u=C({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),w=async(e=0,t)=>{var p;await N(i.connectPort);for(let a=e;a<t.length+e;a+=128)await U(i.connectPort,a,t.slice(a-e,a-e+128),128,(p=i.configuration)==null?void 0:p.uart),u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((a-e)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)});u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await V(i.connectPort)},h=async(e=1)=>{var p,a,r,m,g;if(i.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=i.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}u.status=u.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(a=i.configuration)!=null&&a.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(131072,l);return}if(e==5){const c=await M(i.connectPort,(r=i.configuration)==null?void 0:r.uart);if(c!=262144&&c!=524288){u.status=u.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}t=await fetch("/ssb.bin");const s=t.body.getReader(),l=[];for(;;){const{done:f,value:k}=await s.read();if(f)break;l.push(...k)}const d=new Uint8Array(l);await w(246312,d);return}if(e==1){if(((m=i.configuration)==null?void 0:m.charset)=="losehu"){t=await fetch("/old_font.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(8192,l);return}if(((g=i.configuration)==null?void 0:g.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(9344,l);return}}};return(e,t)=>{const p=B,a=H,r=z,m=R,g=D,c=A,s=I,l=P;return F(),S("div",L,[n(p,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),n(l,{gutter:20,align:"stretch"},{default:o(()=>[n(s,{span:24},{default:o(()=>[n(c,{class:"general-card"},{title:o(()=>[y("span",{onClick:t[0]||(t[0]=()=>{u.showHide+=1})},_(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.fontwrite")),1)]),default:o(()=>[n(a,{onClick:t[1]||(t[1]=d=>h(1))},{default:o(()=>[b(_(e.$t("tool.writefontwrite")),1)]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.pinyinwrite")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[2]||(t[2]=d=>h(4))},{default:o(()=>[b(_(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.ssbpatch")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[3]||(t[3]=d=>h(5))},{default:o(()=>[b(_(e.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),n(g),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:u.status},null,8,G)]),_:1})]),_:1})]),_:1})])}}});const at=E(K,[["__scopeId","data-v-38246451"]]);export{at as default};
|
import{e as v,ak as B,_ as E}from"./index.77e506b7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as $,r as C,bH as A,C as F,D as S,aI as n,aH as o,G as y,aN as _,aM as b,a$ as H,ba as R,bF as D,bI as I,bJ as P,n as T}from"./arco.768e32d2.js";import{i as M,e as N,b as U,g as V}from"./serial.c741fbda.js";import{C as z}from"./index.3477e53b.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";import"./useConfig.c8c4aaa5.js";import"./index.d821571f.js";const L={class:"container"},G=["innerHTML"],J={name:"Chi"},K=$({...J,setup(O){const i=v(),u=C({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),w=async(e=0,t)=>{var p;await N(i.connectPort);for(let a=e;a<t.length+e;a+=128)await U(i.connectPort,a,t.slice(a-e,a-e+128),128,(p=i.configuration)==null?void 0:p.uart),u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((a-e)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)});u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await V(i.connectPort)},h=async(e=1)=>{var p,a,r,m,g;if(i.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=i.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}u.status=u.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(a=i.configuration)!=null&&a.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(131072,l);return}if(e==5){const c=await M(i.connectPort,(r=i.configuration)==null?void 0:r.uart);if(c!=262144&&c!=524288){u.status=u.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}t=await fetch("/ssb.bin");const s=t.body.getReader(),l=[];for(;;){const{done:f,value:k}=await s.read();if(f)break;l.push(...k)}const d=new Uint8Array(l);await w(246312,d);return}if(e==1){if(((m=i.configuration)==null?void 0:m.charset)=="losehu"){t=await fetch("/old_font.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(8192,l);return}if(((g=i.configuration)==null?void 0:g.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(9344,l);return}}};return(e,t)=>{const p=B,a=H,r=z,m=R,g=D,c=A,s=I,l=P;return F(),S("div",L,[n(p,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),n(l,{gutter:20,align:"stretch"},{default:o(()=>[n(s,{span:24},{default:o(()=>[n(c,{class:"general-card"},{title:o(()=>[y("span",{onClick:t[0]||(t[0]=()=>{u.showHide+=1})},_(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.fontwrite")),1)]),default:o(()=>[n(a,{onClick:t[1]||(t[1]=d=>h(1))},{default:o(()=>[b(_(e.$t("tool.writefontwrite")),1)]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.pinyinwrite")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[2]||(t[2]=d=>h(4))},{default:o(()=>[b(_(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.ssbpatch")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[3]||(t[3]=d=>h(5))},{default:o(()=>[b(_(e.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),n(g),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:u.status},null,8,G)]),_:1})]),_:1})]),_:1})])}}});const at=E(K,[["__scopeId","data-v-38246451"]]);export{at as default};
|
BIN
assets/index.af7308f9.js.gz
Normal file
BIN
assets/index.af7308f9.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{e as B,ak as D,_ as N}from"./index.ed45be5a.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as T,r as H,aX as K,bO as L,bH as R,C as E,D as F,aI as e,aH as r,aM as V,aN as A,u as J,a6 as M,a$ as O,ba as W,bI as X,bJ as j,b7 as q,bc as x}from"./arco.768e32d2.js";import{u as z}from"./loading.c097827a.js";import{e as $,a as S,f as w,s as h,b as P,g as G}from"./serial.c741fbda.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";const Q={class:"container"},Y={name:"Chi"},Z=T({...Y,setup(oo){const o=B(),{loading:I,setLoading:C}=z(!1),t=H({logo_line1:"",logo_line2:"",mdc_audio_local:!0}),v=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await $(o.connectPort),C(!0),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let a=new Uint8Array(38);a.set(await S(o.connectPort,123680,38,(i=o.configuration)==null?void 0:i.uart),0),t.logo_line1=w(a.subarray(0,19),(f=o.configuration)==null?void 0:f.charset),t.logo_line2=w(a.subarray(19,38),(c=o.configuration)==null?void 0:c.charset)}else if(((u=o.configuration)==null?void 0:u.charset)=="gb2312"){let a=new Uint8Array(36);a.set(await S(o.connectPort,8192,36,(m=o.configuration)==null?void 0:m.uart),0),t.logo_line1=w(a.subarray(0,18),(_=o.configuration)==null?void 0:_.charset),t.logo_line2=w(a.subarray(18,36),(g=o.configuration)==null?void 0:g.charset)}else{let a=new Uint8Array(32);a.set(await S(o.connectPort,3760,32,(d=o.configuration)==null?void 0:d.uart),0),t.logo_line1=w(a.subarray(0,16),(s=o.configuration)==null?void 0:s.charset),t.logo_line2=w(a.subarray(16,32),(b=o.configuration)==null?void 0:b.charset)}parseInt(await S(o.connectPort,8189,1,(y=o.configuration)==null?void 0:y.uart))==0?t.mdc_audio_local=!1:t.mdc_audio_local=!0,C(!1)},k=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y,a,p,U;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(C(!0),await $(o.connectPort),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let l=new Uint8Array(38);l.set(h(t.logo_line1,(i=o.configuration)==null?void 0:i.charset).subarray(0,19),0),l.set(h(t.logo_line2,(f=o.configuration)==null?void 0:f.charset).subarray(0,19),19),await P(o.connectPort,123678,[18,18],2,(c=o.configuration)==null?void 0:c.uart),await P(o.connectPort,123680,l,38,(u=o.configuration)==null?void 0:u.uart)}else if(((m=o.configuration)==null?void 0:m.charset)=="gb2312"){let l=new Uint8Array(36);l.set(h(t.logo_line1,(_=o.configuration)==null?void 0:_.charset).subarray(0,18),0),l.set(h(t.logo_line2,(g=o.configuration)==null?void 0:g.charset).subarray(0,18),18),await P(o.connectPort,8228,[18,18],2,(d=o.configuration)==null?void 0:d.uart),await P(o.connectPort,8192,l,36,(s=o.configuration)==null?void 0:s.uart)}else{let l=new Uint8Array(32);l.set(h(t.logo_line1,(b=o.configuration)==null?void 0:b.charset).subarray(0,16),0),l.set(h(t.logo_line2,(y=o.configuration)==null?void 0:y.charset).subarray(0,16),16),await P(o.connectPort,3760,l,32,(a=o.configuration)==null?void 0:a.uart)}(p=o.configuration)!=null&&p.localmdc&&await P(o.connectPort,8189,new Uint8Array([t.mdc_audio_local?1:0]),1,(U=o.configuration)==null?void 0:U.uart),await G(o.connectPort),C(!1)};return(n,i)=>{const f=D,c=M,u=O,m=W,_=X,g=j,d=q,s=x,b=K,y=L,a=R;return E(),F("div",Q,[e(f,{items:[n.$t("menu.dashboard"),n.$t("menu.cps.settings")]},null,8,["items"]),e(g,{gutter:20,align:"stretch"},{default:r(()=>[e(_,{span:24},{default:r(()=>[e(a,{class:"general-card",title:n.$t("menu.cps.settings")+n.$t("global.onStart")},{default:r(()=>[e(g,{style:{"margin-bottom":"16px"}},{default:r(()=>[e(_,{span:12},{default:r(()=>[e(m,null,{default:r(()=>[e(u,{type:"primary",onClick:v},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceRead")),1)]),_:1}),e(u,{onClick:k},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(y,{loading:J(I),style:{width:"100%"}},{default:r(()=>[e(s,{"label-col-style":{width:"25%"},field:"logo_line1",label:n.$t("cps.line1")},{default:r(()=>[e(d,{modelValue:t.logo_line1,"onUpdate:modelValue":i[0]||(i[0]=p=>t.logo_line1=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.line2")},{default:r(()=>[e(d,{modelValue:t.logo_line2,"onUpdate:modelValue":i[1]||(i[1]=p=>t.logo_line2=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.mdclocplay")},{default:r(()=>[e(b,{modelValue:t.mdc_audio_local,"onUpdate:modelValue":i[2]||(i[2]=p=>t.mdc_audio_local=p),type:"round"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["loading"])]),_:1},8,["title"])]),_:1})]),_:1})])}}});const _o=N(Z,[["__scopeId","data-v-739b81b7"]]);export{_o as default};
|
import{e as B,ak as D,_ as N}from"./index.77e506b7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as T,r as H,aX as K,bO as L,bH as R,C as E,D as F,aI as e,aH as r,aM as V,aN as A,u as J,a6 as M,a$ as O,ba as W,bI as X,bJ as j,b7 as q,bc as x}from"./arco.768e32d2.js";import{u as z}from"./loading.c097827a.js";import{e as $,a as S,f as w,s as h,b as P,g as G}from"./serial.c741fbda.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";const Q={class:"container"},Y={name:"Chi"},Z=T({...Y,setup(oo){const o=B(),{loading:I,setLoading:C}=z(!1),t=H({logo_line1:"",logo_line2:"",mdc_audio_local:!0}),v=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await $(o.connectPort),C(!0),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let a=new Uint8Array(38);a.set(await S(o.connectPort,123680,38,(i=o.configuration)==null?void 0:i.uart),0),t.logo_line1=w(a.subarray(0,19),(f=o.configuration)==null?void 0:f.charset),t.logo_line2=w(a.subarray(19,38),(c=o.configuration)==null?void 0:c.charset)}else if(((u=o.configuration)==null?void 0:u.charset)=="gb2312"){let a=new Uint8Array(36);a.set(await S(o.connectPort,8192,36,(m=o.configuration)==null?void 0:m.uart),0),t.logo_line1=w(a.subarray(0,18),(_=o.configuration)==null?void 0:_.charset),t.logo_line2=w(a.subarray(18,36),(g=o.configuration)==null?void 0:g.charset)}else{let a=new Uint8Array(32);a.set(await S(o.connectPort,3760,32,(d=o.configuration)==null?void 0:d.uart),0),t.logo_line1=w(a.subarray(0,16),(s=o.configuration)==null?void 0:s.charset),t.logo_line2=w(a.subarray(16,32),(b=o.configuration)==null?void 0:b.charset)}parseInt(await S(o.connectPort,8189,1,(y=o.configuration)==null?void 0:y.uart))==0?t.mdc_audio_local=!1:t.mdc_audio_local=!0,C(!1)},k=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y,a,p,U;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(C(!0),await $(o.connectPort),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let l=new Uint8Array(38);l.set(h(t.logo_line1,(i=o.configuration)==null?void 0:i.charset).subarray(0,19),0),l.set(h(t.logo_line2,(f=o.configuration)==null?void 0:f.charset).subarray(0,19),19),await P(o.connectPort,123678,[18,18],2,(c=o.configuration)==null?void 0:c.uart),await P(o.connectPort,123680,l,38,(u=o.configuration)==null?void 0:u.uart)}else if(((m=o.configuration)==null?void 0:m.charset)=="gb2312"){let l=new Uint8Array(36);l.set(h(t.logo_line1,(_=o.configuration)==null?void 0:_.charset).subarray(0,18),0),l.set(h(t.logo_line2,(g=o.configuration)==null?void 0:g.charset).subarray(0,18),18),await P(o.connectPort,8228,[18,18],2,(d=o.configuration)==null?void 0:d.uart),await P(o.connectPort,8192,l,36,(s=o.configuration)==null?void 0:s.uart)}else{let l=new Uint8Array(32);l.set(h(t.logo_line1,(b=o.configuration)==null?void 0:b.charset).subarray(0,16),0),l.set(h(t.logo_line2,(y=o.configuration)==null?void 0:y.charset).subarray(0,16),16),await P(o.connectPort,3760,l,32,(a=o.configuration)==null?void 0:a.uart)}(p=o.configuration)!=null&&p.localmdc&&await P(o.connectPort,8189,new Uint8Array([t.mdc_audio_local?1:0]),1,(U=o.configuration)==null?void 0:U.uart),await G(o.connectPort),C(!1)};return(n,i)=>{const f=D,c=M,u=O,m=W,_=X,g=j,d=q,s=x,b=K,y=L,a=R;return E(),F("div",Q,[e(f,{items:[n.$t("menu.dashboard"),n.$t("menu.cps.settings")]},null,8,["items"]),e(g,{gutter:20,align:"stretch"},{default:r(()=>[e(_,{span:24},{default:r(()=>[e(a,{class:"general-card",title:n.$t("menu.cps.settings")+n.$t("global.onStart")},{default:r(()=>[e(g,{style:{"margin-bottom":"16px"}},{default:r(()=>[e(_,{span:12},{default:r(()=>[e(m,null,{default:r(()=>[e(u,{type:"primary",onClick:v},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceRead")),1)]),_:1}),e(u,{onClick:k},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(y,{loading:J(I),style:{width:"100%"}},{default:r(()=>[e(s,{"label-col-style":{width:"25%"},field:"logo_line1",label:n.$t("cps.line1")},{default:r(()=>[e(d,{modelValue:t.logo_line1,"onUpdate:modelValue":i[0]||(i[0]=p=>t.logo_line1=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.line2")},{default:r(()=>[e(d,{modelValue:t.logo_line2,"onUpdate:modelValue":i[1]||(i[1]=p=>t.logo_line2=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.mdclocplay")},{default:r(()=>[e(b,{modelValue:t.mdc_audio_local,"onUpdate:modelValue":i[2]||(i[2]=p=>t.mdc_audio_local=p),type:"round"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["loading"])]),_:1},8,["title"])]),_:1})]),_:1})])}}});const _o=N(Z,[["__scopeId","data-v-739b81b7"]]);export{_o as default};
|
BIN
assets/index.d09892e1.js.gz
Normal file
BIN
assets/index.d09892e1.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.d5e8a3fd.js.gz
Normal file
BIN
assets/index.d5e8a3fd.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{a1 as $e,a2 as en,Q as nn,P as an,a3 as Ae,a4 as rn,a5 as tn,J as N,a6 as sn,a7 as ln,a8 as on,a9 as un,aa as Se,w as Pe,V as cn,E as fn,ab as dn,ac as Ee,M as F,K as Te,ad as se,ae as vn,af as gn,y as Le,ag as hn,ah as xe,ai as mn,aj as pn,B as yn}from"./index.ed45be5a.js";import{e as _n,c as M,u as p,b as Cn,_ as wn}from"./useConfig.442d698e.js";import{d as k,o as ee,g as bn,n as On,aI as h,c as m,f as z,w as Ie,t as $n,bB as q,bD as ie,r as An,h as Sn,b4 as Pn}from"./arco.768e32d2.js";/**
|
import{a1 as $e,a2 as en,Q as nn,P as an,a3 as Ae,a4 as rn,a5 as tn,J as N,a6 as sn,a7 as ln,a8 as on,a9 as un,aa as Se,w as Pe,V as cn,E as fn,ab as dn,ac as Ee,M as F,K as Te,ad as se,ae as vn,af as gn,y as Le,ag as hn,ah as xe,ai as mn,aj as pn,B as yn}from"./index.77e506b7.js";import{e as _n,c as M,u as p,b as Cn,_ as wn}from"./useConfig.c8c4aaa5.js";import{d as k,o as ee,g as bn,n as On,aI as h,c as m,f as z,w as Ie,t as $n,bB as q,bD as ie,r as An,h as Sn,b4 as Pn}from"./arco.768e32d2.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
BIN
assets/index.d821571f.js.gz
Normal file
BIN
assets/index.d821571f.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
import{v as A,e as K,ak as H,_ as E}from"./index.ed45be5a.js";/* empty css *//* empty css *//* empty css */import{d as M,r as g,c as N,bH as F,C as V,D as L,aI as r,aH as o,G as f,aN as p,aM as m,u as w,a6 as O,a$ as U,ba as j,bI as G,bJ as J}from"./arco.768e32d2.js";import{u as W}from"./loading.c097827a.js";import{e as D,a as q,u as Q,b as S,h,g as X}from"./serial.c741fbda.js";import{I as Y}from"./form-model.10d173e3.js";import{M as Z,T as ee}from"./index.98345adf.js";import{B as te}from"./index.8714e774.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";import"./useConfig.442d698e.js";import"./dialog.3cb279ab.js";import"./index.d87791fe.js";import"./dep-6deb4e3a.042be393.js";import"./slot.da180938.js";const ae={class:"container"},oe={name:"Radio"},ne=M({...oe,setup(re){const{t:_}=A.exports.useI18n(),s=K(),{loading:b,setLoading:d}=W(!1),a=g({renderData:Array.from({length:20}).map(e=>({scanlist:[]})),pageSize:20,nowPage:1}),y=g({showHide:0}),v=e=>{a.renderData=e.newData},x=N(()=>[{colKey:"drag",title:_("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:_("cps.rx"),colKey:"rx",align:"left",width:200,cell:(e,{row:t})=>parseFloat(t.rx)?parseFloat(t.rx).toFixed(2):void 0,edit:{component:Y,props:{clearable:!0},onEdited:e=>{e.newRowData.rx=e.newRowData.rx?e.newRowData.rx:void 0;const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:_("cps.operate"),colKey:"operate",align:"left",width:150}]),C=async()=>{var i;if(s.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await D(s.connectPort),d(!0);let e=new Uint8Array(40);for(let n=3648;n<3681;n+=8){const c=await q(s.connectPort,n,8,(i=s.configuration)==null?void 0:i.uart);e.set(c,n-3648)}const t=[];for(let n=0;n<40;n+=2){const c=Q(e.subarray(n,n+2));c!="ffff"?t.push({rx:parseInt(c,16)/10}):t.push({})}a.renderData=t,console.log(e),d(!1)},I=async()=>{var e,t;if(s.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await D(s.connectPort),d(!0);for(let i=0;i<40;i+=2)a.renderData[i/2].rx?await S(s.connectPort,i+3648,h(parseInt(a.renderData[i/2].rx*10).toString(16).padStart(4,"0")),2,(e=s.configuration)==null?void 0:e.uart):await S(s.connectPort,i+3648,h("0000"),2,(t=s.configuration)==null?void 0:t.uart);await X(s.connectPort),d(!1)},P=async e=>{const t=[...a.renderData];t.splice(e,1,{scanlist:[]}),a.renderData=t};return(e,t)=>{const i=H,n=O,c=U,z=j,R=G,$=J,k=te,B=ee,T=F;return V(),L("div",ae,[r(i,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.radio")]},null,8,["items"]),r(T,{class:"general-card"},{title:o(()=>[f("span",{onClick:t[0]||(t[0]=()=>{y.showHide+=1})},p(e.$t("menu.cps.radio")+e.$t("global.onStart")),1)]),default:o(()=>[r($,{style:{"margin-bottom":"16px"}},{default:o(()=>[r(R,{span:12},{default:o(()=>[r(z,null,{default:o(()=>[r(c,{type:"primary",onClick:C},{icon:o(()=>[r(n)]),default:o(()=>[m(" "+p(e.$t("cps.onDeviceRead")),1)]),_:1}),r(c,{onClick:I},{icon:o(()=>[r(n)]),default:o(()=>[m(" "+p(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),r(B,{class:"ttable",loading:w(b),size:"medium",columns:x.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:t[1]||(t[1]=l=>{a.pageSize=l.pagination.pageSize,a.nowPage=l.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:v},{drag:o(({row:l,rowIndex:u})=>[f("span",null,[r(w(Z))])]),index:o(({row:l,rowIndex:u})=>[m(p((a.nowPage-1)*a.pageSize+u+1),1)]),operate:o(({row:l,rowIndex:u})=>[r(k,{theme:"default",variant:"dashed",onClick:se=>P((a.nowPage-1)*a.pageSize+u)},{default:o(()=>[m(p(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const xe=E(ne,[["__scopeId","data-v-9023bd14"]]);export{xe as default};
|
|
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{e as B,ak as k,_ as E}from"./index.ed45be5a.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as A,o as C,bH as N,C as $,D as I,aI as i,aH as c,aM as p,aN as f,G as H,n as y,a$ as P,ba as S,bF as T,bI as D,bJ as M}from"./arco.768e32d2.js";import{h as V}from"./vue.5a5bc6a2.js";import{d as b,c as q,r as _,j as x,k as h,l as R,m as j}from"./serial.c741fbda.js";import"./chart.affe3403.js";const L={class:"container"},U=["innerHTML"],O={name:"Flash"},z=v({...O,setup(G){const m=B(),e=A({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),d=V();C(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),r=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(r){const n=[];for(;;){const{done:u,value:l}=await r.read();if(u)break;n.push(...l)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1)}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},g=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}m.connectPort&&await b(m.connectPort);let t=await q();await _(t,24,1e3);const o=x(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);await h(t,r),await _(t,24);const n=R(e.binaryFile);if(n.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<n.length;a+=256){const u=n.slice(a,a+256),l=j(u,a,n.length);try{await h(t,l),await _(t,26)}catch(s){return console.log("Flash command rejected. Aborting."),Promise.reject(s)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,y(()=>{const s=document==null?void 0:document.getElementById("statusArea");s&&(s.scrollTop=s==null?void 0:s.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",y(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),b(t),m.updateSettings({connectState:!1})};return(t,o)=>{const r=k,n=P,a=S,u=T,l=N,s=D,w=M;return $(),I("div",L,[i(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),i(w,{gutter:20,align:"stretch"},{default:c(()=>[i(s,{span:24},{default:c(()=>[i(l,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:c(()=>[i(a,null,{default:c(()=>[i(n,{onClick:F},{default:c(()=>[p(f(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),i(n,{type:"primary",disabled:!e.binaryFile,onClick:g},{default:c(()=>[p(f(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1}),i(u),H("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,U)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const at=E(z,[["__scopeId","data-v-20389da6"]]);export{at as default};
|
import{e as B,ak as k,_ as E}from"./index.77e506b7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as A,o as C,bH as N,C as $,D as I,aI as i,aH as c,aM as p,aN as f,G as H,n as y,a$ as P,ba as S,bF as T,bI as D,bJ as M}from"./arco.768e32d2.js";import{h as V}from"./vue.5a5bc6a2.js";import{d as b,c as q,r as _,j as x,k as h,l as R,m as j}from"./serial.c741fbda.js";import"./chart.affe3403.js";const L={class:"container"},U=["innerHTML"],O={name:"Flash"},z=v({...O,setup(G){const m=B(),e=A({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),d=V();C(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),r=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(r){const n=[];for(;;){const{done:u,value:l}=await r.read();if(u)break;n.push(...l)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1)}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},g=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}m.connectPort&&await b(m.connectPort);let t=await q();await _(t,24,1e3);const o=x(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);await h(t,r),await _(t,24);const n=R(e.binaryFile);if(n.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<n.length;a+=256){const u=n.slice(a,a+256),l=j(u,a,n.length);try{await h(t,l),await _(t,26)}catch(s){return console.log("Flash command rejected. Aborting."),Promise.reject(s)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,y(()=>{const s=document==null?void 0:document.getElementById("statusArea");s&&(s.scrollTop=s==null?void 0:s.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",y(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),b(t),m.updateSettings({connectState:!1})};return(t,o)=>{const r=k,n=P,a=S,u=T,l=N,s=D,w=M;return $(),I("div",L,[i(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),i(w,{gutter:20,align:"stretch"},{default:c(()=>[i(s,{span:24},{default:c(()=>[i(l,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:c(()=>[i(a,null,{default:c(()=>[i(n,{onClick:F},{default:c(()=>[p(f(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),i(n,{type:"primary",disabled:!e.binaryFile,onClick:g},{default:c(()=>[p(f(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1}),i(u),H("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,U)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const at=E(z,[["__scopeId","data-v-20389da6"]]);export{at as default};
|
BIN
assets/index.dd0b14fd.js.gz
Normal file
BIN
assets/index.dd0b14fd.js.gz
Normal file
Binary file not shown.
1
assets/index.e09978d9.js
Normal file
1
assets/index.e09978d9.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{v as K,e as H,ak as M,_ as N}from"./index.77e506b7.js";/* empty css *//* empty css *//* empty css */import{d as F,r as S,c as O,bH as U,C as V,D as L,aI as i,aH as s,G as h,aN as u,aM as _,u as x,a6 as j,a$ as G,ba as J,bI as W,bJ as q}from"./arco.768e32d2.js";import{u as Q}from"./loading.c097827a.js";import{e as b,a as y,u as v,b as g,h as w,g as X}from"./serial.c741fbda.js";import{I as Y}from"./form-model.71f84e3f.js";import{M as Z,T as ee}from"./index.d5e8a3fd.js";import{B as te}from"./index.16730ad8.js";import"./chart.affe3403.js";import"./vue.5a5bc6a2.js";import"./useConfig.c8c4aaa5.js";import"./dialog.fde1aef6.js";import"./index.d821571f.js";import"./dep-6deb4e3a.84894bd5.js";import"./slot.ac9049d4.js";const ae={class:"container"},oe={name:"Radio"},ne=F({...oe,setup(re){const{t:D}=K.exports.useI18n(),o=H(),{loading:P,setLoading:f}=Q(!1),a=S({renderData:Array.from({length:20}).map(t=>({})),pageSize:50,nowPage:1}),I=S({showHide:0}),C=t=>{a.renderData=t.newData},R=O(()=>[{colKey:"drag",title:D("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:D("cps.rx"),colKey:"rx",align:"left",width:200,cell:(t,{row:n})=>parseFloat(n.rx)?parseFloat(n.rx).toFixed(2):void 0,edit:{component:Y,props:{clearable:!0},onEdited:t=>{t.newRowData.rx=t.newRowData.rx?t.newRowData.rx:void 0;const n=[...a.renderData];n.splice((a.nowPage-1)*a.pageSize+t.rowIndex,1,t.newRowData),a.renderData=n}}},{title:D("cps.operate"),colKey:"operate",align:"left",width:150}]),z=async()=>{var t,n,p;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await b(o.connectPort),f(!0),(t=o.configuration)!=null&&t.fm30){let c=new Uint8Array(60);for(let e=131008;e<131057;e+=8){const l=await y(o.connectPort,e,8,(n=o.configuration)==null?void 0:n.uart);c.set(l,e-131008)}const r=[];for(let e=0;e<60;e+=2){const l=v(c.subarray(e,e+2));l!="ffff"?r.push({rx:parseInt(l,16)/10}):r.push({})}a.renderData=r}else{let c=new Uint8Array(40);for(let e=3648;e<3681;e+=8){const l=await y(o.connectPort,e,8,(p=o.configuration)==null?void 0:p.uart);c.set(l,e-3648)}const r=[];for(let e=0;e<40;e+=2){const l=v(c.subarray(e,e+2));l!="ffff"?r.push({rx:parseInt(l,16)/10}):r.push({})}a.renderData=r}f(!1)},$=async()=>{var t,n,p,c,r;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await b(o.connectPort),f(!0),(t=o.configuration)!=null&&t.fm30)for(let e=0;e<60;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+131008,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(n=o.configuration)==null?void 0:n.uart):await g(o.connectPort,e+131008,w("0000"),2,(p=o.configuration)==null?void 0:p.uart);else for(let e=0;e<40;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+3648,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(c=o.configuration)==null?void 0:c.uart):await g(o.connectPort,e+3648,w("0000"),2,(r=o.configuration)==null?void 0:r.uart);await X(o.connectPort),f(!1)},k=async t=>{const n=[...a.renderData];n.splice(t,1,{scanlist:[]}),a.renderData=n};return(t,n)=>{const p=M,c=j,r=G,e=J,l=W,A=q,B=te,T=ee,E=U;return V(),L("div",ae,[i(p,{items:[t.$t("menu.dashboard"),t.$t("menu.cps.radio")]},null,8,["items"]),i(E,{class:"general-card"},{title:s(()=>[h("span",{onClick:n[0]||(n[0]=()=>{I.showHide+=1})},u(t.$t("menu.cps.radio")+t.$t("global.onStart")),1)]),default:s(()=>[i(A,{style:{"margin-bottom":"16px"}},{default:s(()=>[i(l,{span:12},{default:s(()=>[i(e,null,{default:s(()=>[i(r,{type:"primary",onClick:z},{icon:s(()=>[i(c)]),default:s(()=>[_(" "+u(t.$t("cps.onDeviceRead")),1)]),_:1}),i(r,{onClick:$},{icon:s(()=>[i(c)]),default:s(()=>[_(" "+u(t.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),i(T,{class:"ttable",loading:x(P),size:"medium",columns:R.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:n[1]||(n[1]=d=>{a.pageSize=d.pagination.pageSize,a.nowPage=d.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:C},{drag:s(({row:d,rowIndex:m})=>[h("span",null,[i(x(Z))])]),index:s(({row:d,rowIndex:m})=>[_(u((a.nowPage-1)*a.pageSize+m+1),1)]),operate:s(({row:d,rowIndex:m})=>[i(B,{theme:"default",variant:"dashed",onClick:se=>k((a.nowPage-1)*a.pageSize+m)},{default:s(()=>[_(u(t.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const ve=N(ne,[["__scopeId","data-v-be263a43"]]);export{ve as default};
|
BIN
assets/index.e09978d9.js.gz
Normal file
BIN
assets/index.e09978d9.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{w as h,J as u}from"./index.ed45be5a.js";import{bL as p,aK as f,g as d}from"./arco.768e32d2.js";/**
|
import{w as h,J as u}from"./index.77e506b7.js";import{bL as p,aK as f,g as d}from"./arco.768e32d2.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{w as c,O as y,P as p,z as m}from"./index.ed45be5a.js";import{c as s}from"./arco.768e32d2.js";/**
|
import{w as c,O as y,P as p,z as m}from"./index.77e506b7.js";import{c as s}from"./arco.768e32d2.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
BIN
assets/useConfig.c8c4aaa5.js.gz
Normal file
BIN
assets/useConfig.c8c4aaa5.js.gz
Normal file
Binary file not shown.
@ -23,7 +23,7 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script src="serial.js"></script>
|
<script src="serial.js"></script>
|
||||||
<script type="module" crossorigin src="./assets/index.ed45be5a.js"></script>
|
<script type="module" crossorigin src="./assets/index.77e506b7.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="./assets/arco.768e32d2.js">
|
<link rel="modulepreload" crossorigin href="./assets/arco.768e32d2.js">
|
||||||
<link rel="modulepreload" crossorigin href="./assets/chart.affe3403.js">
|
<link rel="modulepreload" crossorigin href="./assets/chart.affe3403.js">
|
||||||
<link rel="modulepreload" crossorigin href="./assets/vue.5a5bc6a2.js">
|
<link rel="modulepreload" crossorigin href="./assets/vue.5a5bc6a2.js">
|
||||||
|
BIN
index.html.gz
BIN
index.html.gz
Binary file not shown.
Loading…
Reference in New Issue
Block a user