This commit is contained in:
Silent YANG 2024-07-01 22:33:25 +08:00
parent 9ff98c5a9f
commit 7eec2d3bbe
112 changed files with 46 additions and 46 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{Z as N,f as _e,$ as me,a0 as xe,G as le,K as be}from"./index.3745f9af.js";import{_ as we,a as Fe}from"./index.8a14470a.js";import{_ as Se}from"./useConfig.d93d68c1.js";import{i as ye}from"./useDisabled.f946fc31.js";import{i as te,b as re}from"./helper.38552a88.js";/**
import{Z as N,f as _e,$ as me,a0 as xe,G as le,K as be}from"./index.e1698f3e.js";import{_ as we,a as Fe}from"./index.c9d9f013.js";import{_ as Se}from"./useConfig.3a51a7af.js";import{i as ye}from"./useDisabled.242d5b98.js";import{i as te,b as re}from"./helper.e7853506.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{c as v,b as f}from"./useConfig.d93d68c1.js";import{g as b,h as d}from"./index.3745f9af.js";/**
import{c as v,b as f}from"./useConfig.3a51a7af.js";import{g as b,h as d}from"./index.e1698f3e.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.0175e301.js.gz Normal file

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.106b8ba5.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.

Binary file not shown.

View File

@ -1 +1 @@
import{_ as n}from"./index.3745f9af.js";import{d as c,bH as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.7f845a67.js";import{g as m}from"./vue.0bef8fc5.js";import"./chart.3e6cb2f1.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.e1698f3e.js";import{d as c,bH as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.7f845a67.js";import{g as m}from"./vue.0bef8fc5.js";import"./chart.3e6cb2f1.js";const f={class:"content"},x={class:"operation-row"},b=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",x,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const E=n(b,[["__scopeId","data-v-8bef407f"]]);export{E as default};

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

5
assets/index.463930ae.js Normal file
View File

@ -0,0 +1,5 @@
import{_ as o}from"./dialog.4a111457.js";import{w as a}from"./index.e1698f3e.js";import"./arco.7f845a67.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var m=a(o);export{m as D};

View File

@ -1 +0,0 @@
import{m as A,ak as N,_ as V}from"./index.3745f9af.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as C,r as $,o as I,bT as P,bI as T,C as L,D as O,aI as s,aH as r,G as p,aM as _,aN as y,n as b,a$ as R,ba as S,bU as x,bG as D,bJ as H,bL as M}from"./arco.7f845a67.js";import{f as U}from"./vue.0bef8fc5.js";import{d as h,c as j,r as f,j as q,k as g,l as G,m as z,n as J}from"./serial.c6b76da8.js";import"./chart.3e6cb2f1.js";const W={class:"container"},K={style:{display:"flex","justify-content":"space-between","align-items":"center"}},Q=["innerHTML"],X={name:"Flash"},Y=C({...X,setup(Z){const m=A(),e=$({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:"",protocol:"Official"}),d=U();I(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),c=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(c){const n=[];for(;;){const{done:l,value:u}=await c.read();if(l)break;n.push(...u)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1).split("?")[0]+" "}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),c=new Uint8Array(await o.arrayBuffer());e.binaryFile=c,e.binaryName=t.files[0].name},t.click()},w=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}m.connectPort&&await h(m.connectPort);let t=await j();await f(t,24,1e3);const o=q(e.binaryFile),c=new Uint8Array([48,5,o.length,0,...o]);await g(t,c),await f(t,24);const n=G(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 l=n.slice(a,a+256),u=z(l,a,n.length);try{await g(t,u),e.protocol=="Official"?await f(t,26):await J(t)}catch(i){return console.log("Flash command rejected. Aborting."),Promise.reject(i)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,b(()=>{const i=document==null?void 0:document.getElementById("statusArea");i&&(i.scrollTop=i==null?void 0:i.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",b(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),h(t),m.updateSettings({connectState:!1})};return(t,o)=>{const c=N,n=R,a=S,l=P,u=x,i=D,B=T,v=H,k=M;return L(),O("div",W,[s(c,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),s(k,{gutter:20,align:"stretch"},{default:r(()=>[s(v,{span:24},{default:r(()=>[s(B,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:r(()=>[p("div",K,[p("div",null,[s(a,null,{default:r(()=>[s(n,{onClick:F},{default:r(()=>[_(y(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),s(n,{type:"primary",disabled:!e.binaryFile,onClick:w},{default:r(()=>[_(y(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1})]),p("div",null,[s(u,{type:"button",size:"mini",modelValue:e.protocol,"onUpdate:modelValue":o[0]||(o[0]=E=>e.protocol=E)},{default:r(()=>[s(l,{value:"Official"},{default:r(()=>[_("Official")]),_:1}),s(l,{value:"Losehu"},{default:r(()=>[_("Losehu")]),_:1})]),_:1},8,["modelValue"])])]),s(i),p("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,Q)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const ut=V(Y,[["__scopeId","data-v-d2368ccd"]]);export{ut as default};

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.5501acc1.js.gz Normal file

Binary file not shown.

View File

@ -1 +1 @@
import{m as B,ak as E,_ as S}from"./index.3745f9af.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as A,r as F,bT as R,bI as T,C as D,D as U,aI as o,aH as n,G as y,aN as f,aM as _,bg as k,bh as C,bU as V,a$ as H,ba as I,bG as P,bJ as M,bL as N,n as z}from"./arco.7f845a67.js";import{i as G,e as L,b as J,g as K}from"./serial.c6b76da8.js";import{C as O}from"./index.10935cc5.js";import"./chart.3e6cb2f1.js";import"./vue.0bef8fc5.js";import"./useConfig.d93d68c1.js";import"./index.8a14470a.js";import"./helper.38552a88.js";const j={class:"container"},q=["innerHTML"],Q={name:"Chi"},W=A({...Q,setup(X){const s=B(),r=F({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0,lang:"Simplified_Chinese"}),g=async(e=0,t)=>{var m;await L(s.connectPort);for(let u=e;u<t.length+e;u+=128)await J(s.connectPort,u,t.slice(u-e,u-e+128),128,(m=s.configuration)==null?void 0:m.uart),r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((u-e)/t.length*100).toFixed(1)+"%<br/>",z(()=>{const p=document==null?void 0:document.getElementById("statusArea");p&&(p.scrollTop=p==null?void 0:p.scrollHeight)});r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await K(s.connectPort)},v=async(e=1)=>{var m,u,p,b,w,h;if(s.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((m=s.configuration)==null?void 0:m.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}r.status=r.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(u=s.configuration)!=null&&u.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const l=t.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(131072,d);return}if(e==5){const l=await G(s.connectPort,(p=s.configuration)==null?void 0:p.uart);if(l!=262144&&l!=524288){r.status=r.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}t=await fetch("/ssb.bin");const a=t.body.getReader(),d=[];for(;;){const{done:i,value:$}=await a.read();if(i)break;d.push(...$)}const c=new Uint8Array(d);await g(246312,c);return}if(e==1){if(((b=s.configuration)==null?void 0:b.charset)=="losehu"){t=await fetch("/old_font.bin");const l=t.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(8192,d);return}if(((w=s.configuration)==null?void 0:w.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const l=t.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(9344,d);return}}if(e==6)if(((h=s.configuration)==null?void 0:h.charset)=="gb2312"){t=await fetch("/new_font_k_f.bin");const l=t.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(9344,d);return}else alert("\u4E0D\u652F\u6301\u7684\u7248\u672C")};return(e,t)=>{const m=E,u=R,p=V,b=H,w=O,h=I,l=P,a=T,d=M,c=N;return D(),U("div",j,[o(m,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),o(c,{gutter:20,align:"stretch"},{default:n(()=>[o(d,{span:24},{default:n(()=>[o(a,{class:"general-card"},{title:n(()=>[y("span",{onClick:t[0]||(t[0]=()=>{r.showHide+=1})},f(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(w,{bordered:"",style:{width:"420px"}},{header:n(()=>[_(f(e.$t("tool.fontwrite"))+" ",1),y("div",null,[o(p,{type:"button",size:"mini",modelValue:r.lang,"onUpdate:modelValue":t[1]||(t[1]=i=>r.lang=i)},{default:n(()=>[o(u,{value:"Simplified_Chinese"},{default:n(()=>[_(f(e.$t("tool.Simplified_Chinese")),1)]),_:1}),o(u,{value:"Traditional_Chinese"},{default:n(()=>[_(f(e.$t("tool.Traditional_Chinese")),1)]),_:1})]),_:1},8,["modelValue"])])]),default:n(()=>[y("div",null,[k(o(b,{onClick:t[2]||(t[2]=i=>v(1))},{default:n(()=>[_(f(e.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Simplified_Chinese"]]),k(o(b,{onClick:t[3]||(t[3]=i=>v(6))},{default:n(()=>[_(f(e.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Traditional_Chinese"]])])]),_:1}),o(w,{bordered:""},{header:n(()=>[_(f(e.$t("tool.pinyinwrite")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:t[4]||(t[4]=i=>v(4))},{default:n(()=>[_(f(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),o(w,{bordered:""},{header:n(()=>[_(f(e.$t("tool.ssbpatch")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:t[5]||(t[5]=i=>v(5))},{default:n(()=>[_(f(e.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),o(l),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:r.status},null,8,q)]),_:1})]),_:1})]),_:1})])}}});const ct=S(W,[["__scopeId","data-v-5b175fa0"]]);export{ct as default};
import{m as B,ak as E,_ as S}from"./index.e1698f3e.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as A,r as F,bT as R,bI as T,C as D,D as U,aI as o,aH as n,G as y,aN as f,aM as _,bg as k,bh as C,bU as V,a$ as H,ba as I,bG as P,bJ as M,bL as N,n as z}from"./arco.7f845a67.js";import{i as G,e as L,b as J,g as K}from"./serial.c6b76da8.js";import{C as O}from"./index.7fee970a.js";import"./chart.3e6cb2f1.js";import"./vue.0bef8fc5.js";import"./useConfig.3a51a7af.js";import"./index.c9d9f013.js";import"./helper.e7853506.js";const j={class:"container"},q=["innerHTML"],Q={name:"Chi"},W=A({...Q,setup(X){const s=B(),r=F({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0,lang:"Simplified_Chinese"}),g=async(e=0,t)=>{var m;await L(s.connectPort);for(let u=e;u<t.length+e;u+=128)await J(s.connectPort,u,t.slice(u-e,u-e+128),128,(m=s.configuration)==null?void 0:m.uart),r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((u-e)/t.length*100).toFixed(1)+"%<br/>",z(()=>{const p=document==null?void 0:document.getElementById("statusArea");p&&(p.scrollTop=p==null?void 0:p.scrollHeight)});r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await K(s.connectPort)},v=async(e=1)=>{var m,u,p,b,w,h;if(s.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((m=s.configuration)==null?void 0:m.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}r.status=r.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(u=s.configuration)!=null&&u.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const l=t.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(131072,d);return}if(e==5){const l=await G(s.connectPort,(p=s.configuration)==null?void 0:p.uart);if(l!=262144&&l!=524288){r.status=r.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}t=await fetch("/ssb.bin");const a=t.body.getReader(),d=[];for(;;){const{done:i,value:$}=await a.read();if(i)break;d.push(...$)}const c=new Uint8Array(d);await g(246312,c);return}if(e==1){if(((b=s.configuration)==null?void 0:b.charset)=="losehu"){t=await fetch("/old_font.bin");const l=t.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(8192,d);return}if(((w=s.configuration)==null?void 0:w.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const l=t.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(9344,d);return}}if(e==6)if(((h=s.configuration)==null?void 0:h.charset)=="gb2312"){t=await fetch("/new_font_k_f.bin");const l=t.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(9344,d);return}else alert("\u4E0D\u652F\u6301\u7684\u7248\u672C")};return(e,t)=>{const m=E,u=R,p=V,b=H,w=O,h=I,l=P,a=T,d=M,c=N;return D(),U("div",j,[o(m,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),o(c,{gutter:20,align:"stretch"},{default:n(()=>[o(d,{span:24},{default:n(()=>[o(a,{class:"general-card"},{title:n(()=>[y("span",{onClick:t[0]||(t[0]=()=>{r.showHide+=1})},f(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(w,{bordered:"",style:{width:"420px"}},{header:n(()=>[_(f(e.$t("tool.fontwrite"))+" ",1),y("div",null,[o(p,{type:"button",size:"mini",modelValue:r.lang,"onUpdate:modelValue":t[1]||(t[1]=i=>r.lang=i)},{default:n(()=>[o(u,{value:"Simplified_Chinese"},{default:n(()=>[_(f(e.$t("tool.Simplified_Chinese")),1)]),_:1}),o(u,{value:"Traditional_Chinese"},{default:n(()=>[_(f(e.$t("tool.Traditional_Chinese")),1)]),_:1})]),_:1},8,["modelValue"])])]),default:n(()=>[y("div",null,[k(o(b,{onClick:t[2]||(t[2]=i=>v(1))},{default:n(()=>[_(f(e.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Simplified_Chinese"]]),k(o(b,{onClick:t[3]||(t[3]=i=>v(6))},{default:n(()=>[_(f(e.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Traditional_Chinese"]])])]),_:1}),o(w,{bordered:""},{header:n(()=>[_(f(e.$t("tool.pinyinwrite")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:t[4]||(t[4]=i=>v(4))},{default:n(()=>[_(f(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),o(w,{bordered:""},{header:n(()=>[_(f(e.$t("tool.ssbpatch")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:t[5]||(t[5]=i=>v(5))},{default:n(()=>[_(f(e.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),o(l),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:r.status},null,8,q)]),_:1})]),_:1})]),_:1})])}}});const ct=S(W,[["__scopeId","data-v-5b175fa0"]]);export{ct as default};

BIN
assets/index.581c74e0.js.gz Normal file

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.5a4fc7c0.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{J as q0,e as Q0,i as pc,w as vc,v as mc,m as gc,ak as _c,_ as wc}from"./index.3745f9af.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as ui,t as Tc,c as pt,w as Ec,h as en,aI as Oe,r as rn,o as kc,bI as Sc,C as tn,D as Fc,aH as Pe,G as x0,aN as tt,aM as Xr,aE as Ac,aF as Cc,u as an,a6 as yc,a$ as Dc,ba as Oc,bJ as Rc,O as Ic,bp as Nc,bL as Pc,be as bc,bf as Lc}from"./arco.7f845a67.js";import{f as Mc}from"./vue.0bef8fc5.js";import{u as Bc}from"./loading.1a4e75f4.js";import{e as nn,a as Za,u as sn,f as Uc,h as qa,s as Vc,b as Qa,g as Wc}from"./serial.c6b76da8.js";import{b as Hc,I as e0}from"./index.4da4cb96.js";import{S as Or,C as Gc,a as Xc}from"./dep-6deb4e3a.0a0d6735.js";import{M as zc,T as Kc}from"./index.62b1f95a.js";import{_ as $c}from"./helper.38552a88.js";import{u as jc,a as Yc,_ as vt}from"./useConfig.d93d68c1.js";import{L as Jc}from"./index.8a14470a.js";import{u as Zc}from"./useDisabled.f946fc31.js";import{B as qc}from"./index.9569a401.js";import"./chart.3e6cb2f1.js";import"./useGlobalIcon.68d734e0.js";import"./dialog.8b2a8663.js";import"./form-model.9ce06e3e.js";import"./slot.e92e5310.js";/**
import{J as q0,e as Q0,i as pc,w as vc,v as mc,m as gc,ak as _c,_ as wc}from"./index.e1698f3e.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as ui,t as Tc,c as pt,w as Ec,h as en,aI as Oe,r as rn,o as kc,bI as Sc,C as tn,D as Fc,aH as Pe,G as x0,aN as tt,aM as Xr,aE as Ac,aF as Cc,u as an,a6 as yc,a$ as Dc,ba as Oc,bJ as Rc,O as Ic,bp as Nc,bL as Pc,be as bc,bf as Lc}from"./arco.7f845a67.js";import{f as Mc}from"./vue.0bef8fc5.js";import{u as Bc}from"./loading.1a4e75f4.js";import{e as nn,a as Za,u as sn,f as Uc,h as qa,s as Vc,b as Qa,g as Wc}from"./serial.c6b76da8.js";import{b as Hc,I as e0}from"./index.754948b2.js";import{S as Or,C as Gc,a as Xc}from"./dep-6deb4e3a.716901b3.js";import{M as zc,T as Kc}from"./index.9c55c2fc.js";import{_ as $c}from"./helper.e7853506.js";import{u as jc,a as Yc,_ as vt}from"./useConfig.3a51a7af.js";import{L as Jc}from"./index.c9d9f013.js";import{u as Zc}from"./useDisabled.242d5b98.js";import{B as qc}from"./index.95128039.js";import"./chart.3e6cb2f1.js";import"./useGlobalIcon.e6846aca.js";import"./dialog.4a111457.js";import"./form-model.cbf372df.js";import"./slot.62ee6927.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{g as j,i as v,_ as w}from"./helper.38552a88.js";import{u as x,_ as l}from"./useConfig.d93d68c1.js";import{d as z,c as m,aI as u,aK as N}from"./arco.7f845a67.js";import{c as _,i as C,e as y,w as F}from"./index.3745f9af.js";import{u as T}from"./slot.e92e5310.js";/**
import{g as j,i as v,_ as w}from"./helper.e7853506.js";import{u as x,_ as l}from"./useConfig.3a51a7af.js";import{d as z,c as m,aI as u,aK as N}from"./arco.7f845a67.js";import{c as _,i as C,e as y,w as F}from"./index.e1698f3e.js";import{u as T}from"./slot.62ee6927.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

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

Binary file not shown.

View File

@ -1,5 +0,0 @@
import{_ as o}from"./dialog.8b2a8663.js";import{w as a}from"./index.3745f9af.js";import"./arco.7f845a67.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var m=a(o);export{m as D};

View File

@ -1 +1 @@
import{v as K,m as M,ak as H,_ as N}from"./index.3745f9af.js";/* empty css *//* empty css *//* empty css */import{d as F,r as S,c as L,bI as O,C as U,D as V,aI as s,aH as i,G as h,aN as u,aM as _,u as x,a6 as j,a$ as G,ba as J,bJ as W,bL as q}from"./arco.7f845a67.js";import{u as Q}from"./loading.1a4e75f4.js";import{e as b,a as y,u as v,b as g,h as w,g as X}from"./serial.c6b76da8.js";import{I as Y}from"./index.4da4cb96.js";import{M as Z,T as ee}from"./index.62b1f95a.js";import{B as te}from"./index.9569a401.js";import"./chart.3e6cb2f1.js";import"./vue.0bef8fc5.js";import"./useConfig.d93d68c1.js";import"./useGlobalIcon.68d734e0.js";import"./helper.38552a88.js";import"./dep-6deb4e3a.0a0d6735.js";import"./dialog.8b2a8663.js";import"./index.8a14470a.js";import"./form-model.9ce06e3e.js";import"./useDisabled.f946fc31.js";import"./slot.e92e5310.js";const ae={class:"container"},oe={name:"Radio"},ne=F({...oe,setup(re){const{t:D}=K.exports.useI18n(),o=M(),{loading:P,setLoading:m}=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=L(()=>[{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,l;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await b(o.connectPort),m(!0),(t=o.configuration)!=null&&t.fm30){let c=new Uint8Array(60);for(let e=131008;e<131057;e+=8){const p=await y(o.connectPort,e,8,(n=o.configuration)==null?void 0:n.uart);c.set(p,e-131008)}const r=[];for(let e=0;e<60;e+=2){const p=v(c.subarray(e,e+2));p!="ffff"?r.push({rx:parseInt(p,16)/10}):r.push({})}a.renderData=r}else{let c=new Uint8Array(40);for(let e=3648;e<3681;e+=8){const p=await y(o.connectPort,e,8,(l=o.configuration)==null?void 0:l.uart);c.set(p,e-3648)}const r=[];for(let e=0;e<40;e+=2){const p=v(c.subarray(e,e+2));p!="ffff"?r.push({rx:parseInt(p,16)/10}):r.push({})}a.renderData=r}m(!1)},$=async()=>{var t,n,l,c,r;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await b(o.connectPort),m(!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,(l=o.configuration)==null?void 0:l.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),m(!1)},k=async t=>{const n=[...a.renderData];n.splice(t,1,{scanlist:[]}),a.renderData=n};return(t,n)=>{const l=H,c=j,r=G,e=J,p=W,A=q,B=te,T=ee,E=O;return U(),V("div",ae,[s(l,{items:[t.$t("menu.dashboard"),t.$t("menu.cps.radio")]},null,8,["items"]),s(E,{class:"general-card"},{title:i(()=>[h("span",{onClick:n[0]||(n[0]=()=>{I.showHide+=1})},u(t.$t("menu.cps.radio")+t.$t("global.onStart")),1)]),default:i(()=>[s(A,{style:{"margin-bottom":"16px"}},{default:i(()=>[s(p,{span:12},{default:i(()=>[s(e,null,{default:i(()=>[s(r,{type:"primary",onClick:z},{icon:i(()=>[s(c)]),default:i(()=>[_(" "+u(t.$t("cps.onDeviceRead")),1)]),_:1}),s(r,{onClick:$},{icon:i(()=>[s(c)]),default:i(()=>[_(" "+u(t.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(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:i(({row:d,rowIndex:f})=>[h("span",null,[s(x(Z))])]),index:i(({row:d,rowIndex:f})=>[_(u((a.nowPage-1)*a.pageSize+f+1),1)]),operate:i(({row:d,rowIndex:f})=>[s(B,{theme:"default",variant:"dashed",onClick:ie=>k((a.nowPage-1)*a.pageSize+f)},{default:i(()=>[_(u(t.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Re=N(ne,[["__scopeId","data-v-be263a43"]]);export{Re as default};
import{v as K,m as M,ak as H,_ as N}from"./index.e1698f3e.js";/* empty css *//* empty css *//* empty css */import{d as F,r as S,c as L,bI as O,C as U,D as V,aI as s,aH as i,G as h,aN as u,aM as _,u as x,a6 as j,a$ as G,ba as J,bJ as W,bL as q}from"./arco.7f845a67.js";import{u as Q}from"./loading.1a4e75f4.js";import{e as b,a as y,u as v,b as g,h as w,g as X}from"./serial.c6b76da8.js";import{I as Y}from"./index.754948b2.js";import{M as Z,T as ee}from"./index.9c55c2fc.js";import{B as te}from"./index.95128039.js";import"./chart.3e6cb2f1.js";import"./vue.0bef8fc5.js";import"./useConfig.3a51a7af.js";import"./useGlobalIcon.e6846aca.js";import"./helper.e7853506.js";import"./dep-6deb4e3a.716901b3.js";import"./dialog.4a111457.js";import"./index.c9d9f013.js";import"./form-model.cbf372df.js";import"./useDisabled.242d5b98.js";import"./slot.62ee6927.js";const ae={class:"container"},oe={name:"Radio"},ne=F({...oe,setup(re){const{t:D}=K.exports.useI18n(),o=M(),{loading:P,setLoading:m}=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=L(()=>[{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,l;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await b(o.connectPort),m(!0),(t=o.configuration)!=null&&t.fm30){let c=new Uint8Array(60);for(let e=131008;e<131057;e+=8){const p=await y(o.connectPort,e,8,(n=o.configuration)==null?void 0:n.uart);c.set(p,e-131008)}const r=[];for(let e=0;e<60;e+=2){const p=v(c.subarray(e,e+2));p!="ffff"?r.push({rx:parseInt(p,16)/10}):r.push({})}a.renderData=r}else{let c=new Uint8Array(40);for(let e=3648;e<3681;e+=8){const p=await y(o.connectPort,e,8,(l=o.configuration)==null?void 0:l.uart);c.set(p,e-3648)}const r=[];for(let e=0;e<40;e+=2){const p=v(c.subarray(e,e+2));p!="ffff"?r.push({rx:parseInt(p,16)/10}):r.push({})}a.renderData=r}m(!1)},$=async()=>{var t,n,l,c,r;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await b(o.connectPort),m(!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,(l=o.configuration)==null?void 0:l.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),m(!1)},k=async t=>{const n=[...a.renderData];n.splice(t,1,{scanlist:[]}),a.renderData=n};return(t,n)=>{const l=H,c=j,r=G,e=J,p=W,A=q,B=te,T=ee,E=O;return U(),V("div",ae,[s(l,{items:[t.$t("menu.dashboard"),t.$t("menu.cps.radio")]},null,8,["items"]),s(E,{class:"general-card"},{title:i(()=>[h("span",{onClick:n[0]||(n[0]=()=>{I.showHide+=1})},u(t.$t("menu.cps.radio")+t.$t("global.onStart")),1)]),default:i(()=>[s(A,{style:{"margin-bottom":"16px"}},{default:i(()=>[s(p,{span:12},{default:i(()=>[s(e,null,{default:i(()=>[s(r,{type:"primary",onClick:z},{icon:i(()=>[s(c)]),default:i(()=>[_(" "+u(t.$t("cps.onDeviceRead")),1)]),_:1}),s(r,{onClick:$},{icon:i(()=>[s(c)]),default:i(()=>[_(" "+u(t.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(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:i(({row:d,rowIndex:f})=>[h("span",null,[s(x(Z))])]),index:i(({row:d,rowIndex:f})=>[_(u((a.nowPage-1)*a.pageSize+f+1),1)]),operate:i(({row:d,rowIndex:f})=>[s(B,{theme:"default",variant:"dashed",onClick:ie=>k((a.nowPage-1)*a.pageSize+f)},{default:i(()=>[_(u(t.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Re=N(ne,[["__scopeId","data-v-be263a43"]]);export{Re as default};

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

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{u as B,a as Ve,_}from"./useConfig.d93d68c1.js";import{d as R,c as h,f as j,g as he,w as E,b as we,i as Oe,o as Ce,t as _e,n as ee,aI as C,bg as Fe,bh as Te,bC as Be}from"./arco.7f845a67.js";import{u as ne,r as te,_ as ae,a as Ee}from"./useGlobalIcon.68d734e0.js";import{F as $e,G as Ae,d as Le,c as Ie,w as Pe}from"./index.3745f9af.js";import{i as De,a as Re,b as ce,_ as Se,l as ze}from"./helper.38552a88.js";/**
import{u as B,a as Ve,_}from"./useConfig.3a51a7af.js";import{d as R,c as h,f as j,g as he,w as E,b as we,i as Oe,o as Ce,t as _e,n as ee,aI as C,bg as Fe,bh as Te,bC as Be}from"./arco.7f845a67.js";import{u as ne,r as te,_ as ae,a as Ee}from"./useGlobalIcon.e6846aca.js";import{F as $e,G as Ae,d as Le,c as Ie,w as Pe}from"./index.e1698f3e.js";import{i as De,a as Re,b as ce,_ as Se,l as ze}from"./helper.e7853506.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

BIN
assets/index.754948b2.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{d as R,c as t,aI as a,aU as V}from"./arco.7f845a67.js";import{u,a as W}from"./useConfig.d93d68c1.js";import{c as X,e as Z,w as U}from"./index.3745f9af.js";import{L as k}from"./index.8a14470a.js";/**
import{d as R,c as t,aI as a,aU as V}from"./arco.7f845a67.js";import{u,a as W}from"./useConfig.3a51a7af.js";import{c as X,e as Z,w as U}from"./index.e1698f3e.js";import{L as k}from"./index.c9d9f013.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

BIN
assets/index.7fee970a.js.gz Normal file

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{G as S,i as U,c as ne,w as oe,m as Se,u as Ae,E as C,ak as De,_ as Ee}from"./index.3745f9af.js";/* empty css *//* empty css *//* empty css */import{d as N,c as w,o as ae,b as Ne,f as $e,t as Fe,p as Ie,r as z,aI as r,aU as re,i as Le,bI as Ue,C as k,D as E,aH as i,G as x,u as j,aK as F,aM as O,aN as h,aJ as G,aE as K,a_ as J,b9 as ze,bJ as Re,bL as Be,be as Te,bf as Ve}from"./arco.7f845a67.js";import{g as Me}from"./vue.0bef8fc5.js";import{u as se,r as ie,_ as le}from"./useGlobalIcon.68d734e0.js";import{R as Ge,L as Ke,a as Je,D as He,T as qe,U as Xe}from"./index.dba35809.js";import{B as We}from"./index.9569a401.js";import{_ as b,u as ce}from"./useConfig.d93d68c1.js";import{i as I,I as Qe}from"./index.4da4cb96.js";import{i as A}from"./helper.38552a88.js";import{i as H}from"./index.8a14470a.js";import{C as Ye}from"./index.10935cc5.js";import{P as Ze,s as et}from"./dep-6deb4e3a.0a0d6735.js";import{L as tt}from"./index.5942e319.js";import{F as nt,a as ot}from"./index.1b40a982.js";import"./chart.3e6cb2f1.js";import"./dialog.8b2a8663.js";import"./slot.e92e5310.js";import"./index.6d76f73b.js";import"./index.1722d344.js";import"./useDisabled.f946fc31.js";import"./form-model.9ce06e3e.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=w(()=>t.size),{className:l,style:d}=se(n),s=w(()=>["t-icon","t-icon-check-double",l.value]),a=w(()=>X(X({},d.value),o.style)),v=w(()=>({class:s.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=w(()=>t.size),{className:l,style:d}=se(n),s=w(()=>["t-icon","t-icon-thumb-up",l.value]),a=w(()=>Q(Q({},d.value),o.style)),v=w(()=>({class:s.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{G as S,i as U,c as ne,w as oe,m as Se,u as Ae,E as C,ak as De,_ as Ee}from"./index.e1698f3e.js";/* empty css *//* empty css *//* empty css */import{d as N,c as w,o as ae,b as Ne,f as $e,t as Fe,p as Ie,r as z,aI as r,aU as re,i as Le,bI as Ue,C as k,D as E,aH as i,G as x,u as j,aK as F,aM as O,aN as h,aJ as G,aE as K,a_ as J,b9 as ze,bJ as Re,bL as Be,be as Te,bf as Ve}from"./arco.7f845a67.js";import{g as Me}from"./vue.0bef8fc5.js";import{u as se,r as ie,_ as le}from"./useGlobalIcon.e6846aca.js";import{R as Ge,L as Ke,a as Je,D as He,T as qe,U as Xe}from"./index.9a6517bd.js";import{B as We}from"./index.95128039.js";import{_ as b,u as ce}from"./useConfig.3a51a7af.js";import{i as I,I as Qe}from"./index.754948b2.js";import{i as A}from"./helper.e7853506.js";import{i as H}from"./index.c9d9f013.js";import{C as Ye}from"./index.7fee970a.js";import{P as Ze,s as et}from"./dep-6deb4e3a.716901b3.js";import{L as tt}from"./index.c9ce06d2.js";import{F as nt,a as ot}from"./index.b4eae575.js";import"./chart.3e6cb2f1.js";import"./dialog.4a111457.js";import"./slot.62ee6927.js";import"./index.463930ae.js";import"./index.6b0b7b60.js";import"./useDisabled.242d5b98.js";import"./form-model.cbf372df.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=w(()=>t.size),{className:l,style:d}=se(n),s=w(()=>["t-icon","t-icon-check-double",l.value]),a=w(()=>X(X({},d.value),o.style)),v=w(()=>({class:s.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=w(()=>t.size),{className:l,style:d}=se(n),s=w(()=>["t-icon","t-icon-thumb-up",l.value]),a=w(()=>Q(Q({},d.value),o.style)),v=w(()=>({class:s.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
* (c) 2024 tdesign
* @license MIT

BIN
assets/index.84b757e5.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
.container[data-v-d2368ccd]{padding:0 20px 20px}.container[data-v-d2368ccd] .arco-list-content{overflow-x:hidden}.container[data-v-d2368ccd] .arco-card-meta-title{font-size:14px}[data-v-d2368ccd] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-d2368ccd] .arco-list-item{width:33%}[data-v-d2368ccd] .block-title{margin:0 0 12px;font-size:14px}[data-v-d2368ccd] .list-wrap .list-row{align-items:stretch}[data-v-d2368ccd] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-d2368ccd] .list-wrap :deep(.arco-space){width:100%}[data-v-d2368ccd] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}

View File

@ -1,4 +1,4 @@
import{u as A,a as B,_ as d,b as N}from"./useConfig.d93d68c1.js";import{f as R,o as I,bt as z,d as D,c as P,aI as k,h as F}from"./arco.7f845a67.js";import{L as M}from"./index.8a14470a.js";import{M as w,d as X,c as $,b as K,w as U}from"./index.3745f9af.js";import{u as V}from"./useDisabled.f946fc31.js";/**
import{u as A,a as B,_ as d,b as N}from"./useConfig.3a51a7af.js";import{f as R,o as I,bt as z,d as D,c as P,aI as k,h as F}from"./arco.7f845a67.js";import{L as M}from"./index.c9d9f013.js";import{M as w,d as X,c as $,b as K,w as U}from"./index.e1698f3e.js";import{u as V}from"./useDisabled.242d5b98.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

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

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.9a6517bd.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.9c55c2fc.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

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

Binary file not shown.

View File

@ -1 +1 @@
import{m as L,ak as N,_ as F}from"./index.3745f9af.js";/* empty css *//* empty css *//* empty css */import{d as U,r as V,o as j,bI as A,bP as O,C as h,D as b,aI as f,aH as g,G as x,aK as $,aJ as k,F as T,aM as y,aN as v,a$ as q,ba as z,bJ as H,bL as J,be as K,bf as G}from"./arco.7f845a67.js";import{f as Q}from"./vue.0bef8fc5.js";import{e as W,b as X,g as Y}from"./serial.c6b76da8.js";import"./chart.3e6cb2f1.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}},P=()=>{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()},R=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()},B=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=q,l=z,i=A,m=O,_=H,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:T("background-color: "+u+"; height: 5px; width: 3.5px;")},null,44,ot))),256))]))),256))])]),nt,f(l,null,{default:g(()=>[f(a,{onClick:P},{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:R},{default:g(()=>[y(v(e.$t("cps.save")),1)]),_:1},8,["disabled"]),f(a,{type:"primary",disabled:s.matrix.length<64,onClick:B},{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{m as L,ak as N,_ as F}from"./index.e1698f3e.js";/* empty css *//* empty css *//* empty css */import{d as U,r as V,o as j,bI as A,bP as O,C as h,D as b,aI as f,aH as g,G as x,aK as $,aJ as k,F as T,aM as y,aN as v,a$ as q,ba as z,bJ as H,bL as J,be as K,bf as G}from"./arco.7f845a67.js";import{f as Q}from"./vue.0bef8fc5.js";import{e as W,b as X,g as Y}from"./serial.c6b76da8.js";import"./chart.3e6cb2f1.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}},P=()=>{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()},R=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()},B=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=q,l=z,i=A,m=O,_=H,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:T("background-color: "+u+"; height: 5px; width: 3.5px;")},null,44,ot))),256))]))),256))])]),nt,f(l,null,{default:g(()=>[f(a,{onClick:P},{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:R},{default:g(()=>[y(v(e.$t("cps.save")),1)]),_:1},8,["disabled"]),f(a,{type:"primary",disabled:s.matrix.length<64,onClick:B},{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.af8aa2e2.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{i as Ce,_ as A,r as b,s as Fe,v as De}from"./form-model.9ce06e3e.js";import{i as Ie,_ as Me}from"./helper.38552a88.js";import{u as Z,_ as j}from"./useConfig.d93d68c1.js";import{d as Le,i as qe,c as p,f as V,t as we,r as ke,o as We,b as He,w as je,aI as M,p as Oe,n as xe}from"./arco.7f845a67.js";import{c as Pe,d as Ke,H as Ue,i as Ee,e as Ge,J as Y,K as Je,w as Ae}from"./index.3745f9af.js";import{i as _e}from"./useDisabled.f946fc31.js";import{g as se,r as Xe}from"./index.8a14470a.js";import{u as Re,F as Ne,V as B,a as ze,C as Qe}from"./index.4da4cb96.js";import{a as Ye}from"./useGlobalIcon.68d734e0.js";import{C as Ze,E as er}from"./dialog.8b2a8663.js";/**
import{i as Ce,_ as A,r as b,s as Fe,v as De}from"./form-model.cbf372df.js";import{i as Ie,_ as Me}from"./helper.e7853506.js";import{u as Z,_ as j}from"./useConfig.3a51a7af.js";import{d as Le,i as qe,c as p,f as V,t as we,r as ke,o as We,b as He,w as je,aI as M,p as Oe,n as xe}from"./arco.7f845a67.js";import{c as Pe,d as Ke,H as Ue,i as Ee,e as Ge,J as Y,K as Je,w as Ae}from"./index.e1698f3e.js";import{i as _e}from"./useDisabled.242d5b98.js";import{g as se,r as Xe}from"./index.c9d9f013.js";import{u as Re,F as Ne,V as B,a as ze,C as Qe}from"./index.754948b2.js";import{a as Ye}from"./useGlobalIcon.e6846aca.js";import{C as Ze,E as er}from"./dialog.4a111457.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

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

Binary file not shown.

View File

@ -0,0 +1 @@
.container[data-v-ca233ee4]{padding:0 20px 20px}.container[data-v-ca233ee4] .arco-list-content{overflow-x:hidden}.container[data-v-ca233ee4] .arco-card-meta-title{font-size:14px}[data-v-ca233ee4] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-ca233ee4] .arco-list-item{width:33%}[data-v-ca233ee4] .block-title{margin:0 0 12px;font-size:14px}[data-v-ca233ee4] .list-wrap .list-row{align-items:stretch}[data-v-ca233ee4] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-ca233ee4] .list-wrap :deep(.arco-space){width:100%}[data-v-ca233ee4] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}

Binary file not shown.

View File

@ -1 +1 @@
import{d as x,c as q,b5 as R,C as c,D as u,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.7f845a67.js";import{F as oe}from"./index.67bf78d3.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.3745f9af.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as te,h as re}from"./vue.0bef8fc5.js";import{u as le}from"./loading.1a4e75f4.js";import"./index.5942e319.js";import"./useConfig.d93d68c1.js";import"./useDisabled.f946fc31.js";import"./index.1722d344.js";import"./helper.38552a88.js";import"./slot.e92e5310.js";import"./chart.3e6cb2f1.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ie={class:"banner"},ce={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},me=["src"],ue=x({__name:"banner",setup(i){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 c(),u("div",ie,[s("div",ce,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(c(!0),u(D,null,E(g.value,a=>(c(),j(p,{key:a.slogan},{default:n(()=>[(c(),u("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,me)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(ue,[["__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(i){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:m}=a.value,{username:$,password:y}=l;a.value.username=m?$:"",a.value.password=m?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,m=O,$=ne,y=X,B=J,N=K,P=Y,M=Q,U=T;return c(),u("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(m,{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(m,{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=i=>(Z("data-v-24cebde1"),i=i(),ee(),i),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(i){return(t,g)=>(c(),u("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const Ke=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{Ke as default};
import{d as x,c as q,b5 as R,C as c,D as u,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.7f845a67.js";import{F as oe}from"./index.f5f0184a.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.e1698f3e.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as te,h as re}from"./vue.0bef8fc5.js";import{u as le}from"./loading.1a4e75f4.js";import"./index.c9ce06d2.js";import"./useConfig.3a51a7af.js";import"./useDisabled.242d5b98.js";import"./index.6b0b7b60.js";import"./helper.e7853506.js";import"./slot.62ee6927.js";import"./chart.3e6cb2f1.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ie={class:"banner"},ce={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},me=["src"],ue=x({__name:"banner",setup(i){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 c(),u("div",ie,[s("div",ce,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(c(!0),u(D,null,E(g.value,a=>(c(),j(p,{key:a.slogan},{default:n(()=>[(c(),u("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,me)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(ue,[["__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(i){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:m}=a.value,{username:$,password:y}=l;a.value.username=m?$:"",a.value.password=m?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,m=O,$=ne,y=X,B=J,N=K,P=Y,M=Q,U=T;return c(),u("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(m,{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(m,{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=i=>(Z("data-v-24cebde1"),i=i(),ee(),i),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(i){return(t,g)=>(c(),u("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const Ke=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{Ke as default};

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

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{u as C,a as h,_ as i,b as w}from"./useConfig.d93d68c1.js";import{d as x,c as P,aI as c}from"./arco.7f845a67.js";import{b as k,c as j,d as _,w as I}from"./index.3745f9af.js";import{u as N}from"./useDisabled.f946fc31.js";/**
import{u as C,a as h,_ as i,b as w}from"./useConfig.3a51a7af.js";import{d as x,c as P,aI as c}from"./arco.7f845a67.js";import{b as k,c as j,d as _,w as I}from"./index.e1698f3e.js";import{u as N}from"./useDisabled.242d5b98.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

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

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{a1 as $e,a2 as en,N as nn,h as an,a3 as Ae,a4 as rn,a5 as tn,i as N,a6 as sn,a7 as ln,a8 as on,a9 as un,aa as Se,f as Pe,S as cn,a0 as fn,ab as dn,ac as Ee,J as M,e as Te,ad as se,ae as vn,af as gn,G as Le,ag as hn,ah as xe,ai as mn,aj as pn,w as yn}from"./index.3745f9af.js";import{_ as F,u as p,a as _n}from"./useConfig.d93d68c1.js";import{d as k,o as ee,g as Cn,n as wn,aI as h,c as m,f as z,w as Ie,t as bn,bC as q,bE as ie,r as On,h as $n,b4 as An}from"./arco.7f845a67.js";import{c as Sn,_ as Pn}from"./helper.38552a88.js";/**
import{a1 as $e,a2 as en,N as nn,h as an,a3 as Ae,a4 as rn,a5 as tn,i as N,a6 as sn,a7 as ln,a8 as on,a9 as un,aa as Se,f as Pe,S as cn,a0 as fn,ab as dn,ac as Ee,J as M,e as Te,ad as se,ae as vn,af as gn,G as Le,ag as hn,ah as xe,ai as mn,aj as pn,w as yn}from"./index.e1698f3e.js";import{_ as F,u as p,a as _n}from"./useConfig.3a51a7af.js";import{d as k,o as ee,g as Cn,n as wn,aI as h,c as m,f as z,w as Ie,t as bn,bC as q,bE as ie,r as On,h as $n,b4 as An}from"./arco.7f845a67.js";import{c as Sn,_ as Pn}from"./helper.e7853506.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

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

Binary file not shown.

File diff suppressed because one or more lines are too long

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

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

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

Binary file not shown.

View File

@ -1 +1 @@
import{v as H,m as L,ak as M,_ as N}from"./index.3745f9af.js";/* empty css *//* empty css *//* empty css */import{d as U,r as y,c as V,bI as O,C as j,D as G,aI as s,aH as r,G as S,aN as m,aM as g,u as h,a6 as J,a$ as W,ba as Z,bJ as q,bL as F}from"./arco.7f845a67.js";import{u as Q}from"./loading.1a4e75f4.js";import{e as v,a as C,u as w,f as X,h as D,s as Y,b,g as ee}from"./serial.c6b76da8.js";import{I as P}from"./index.4da4cb96.js";import{M as te,T as ae}from"./index.62b1f95a.js";import{B as ne}from"./index.9569a401.js";import"./chart.3e6cb2f1.js";import"./vue.0bef8fc5.js";import"./useConfig.d93d68c1.js";import"./useGlobalIcon.68d734e0.js";import"./helper.38552a88.js";import"./dep-6deb4e3a.0a0d6735.js";import"./dialog.8b2a8663.js";import"./index.8a14470a.js";import"./form-model.9ce06e3e.js";import"./useDisabled.f946fc31.js";import"./slot.e92e5310.js";const oe={class:"container"},re={name:"Radio"},ie=U({...re,setup(se){const{t:f}=H.exports.useI18n(),o=L(),{loading:I,setLoading:u}=Q(!1),a=y({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),z=y({showHide:0}),R=e=>{a.renderData=e.newData},A=V(()=>[{colKey:"drag",title:f("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:f("cps.contact"),colKey:"name",width:250,align:"left",cell:(e,{row:t})=>t.name?t.name.replace(/[^a-zA-Z0-9_]/g,""):void 0,edit:{component:P,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:f("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:P,props:{clearable:!0},onEdited:e=>{e.newRowData.mdcid=e.newRowData.mdcid?e.newRowData.mdcid.toLowerCase():void 0;const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:f("cps.operate"),colKey:"operate",align:"left",width:150}]),$=async()=>{var d,c;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);let e=new Uint8Array(256);for(let n=7424;n<7680;n+=16){const i=await C(o.connectPort,n,16,(d=o.configuration)==null?void 0:d.uart);e.set(i,n-7424)}const t=[];for(let n=0;n<256;n+=16)w(e.subarray(n,n+2))!="ffff"?t.push({name:X(e.subarray(n+2,n+16),(c=o.configuration)==null?void 0:c.charset).trim(),mdcid:w(e.subarray(n,n+1))+w(e.subarray(n+1,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 v(o.connectPort),u(!0);for(let i=0;i<256;i+=16)if(a.renderData[i/16].mdcid){const p=new Uint8Array(16).fill(32);p.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(0,2))),p.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(2,4)),1),p.set(Y(a.renderData[i/16].name),2),await b(o.connectPort,i+7424,p,16,(t=o.configuration)==null?void 0:t.uart)}else await b(o.connectPort,i+7424,D("ffffffffffffffffffffffffffffffff"),16,(d=o.configuration)==null?void 0:d.uart);const e=await C(o.connectPort,8176,16,(c=o.configuration)==null?void 0:c.uart);e.set([16],16-1),await b(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=M,c=J,n=W,i=Z,p=q,B=F,K=ne,x=ae,E=O;return j(),G("div",oe,[s(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.mdc")]},null,8,["items"]),s(E,{class:"general-card"},{title:r(()=>[S("span",{onClick:t[0]||(t[0]=()=>{z.showHide+=1})},m(e.$t("menu.cps.mdc")+e.$t("global.onStart")),1)]),default:r(()=>[s(B,{style:{"margin-bottom":"16px"}},{default:r(()=>[s(p,{span:12},{default:r(()=>[s(i,null,{default:r(()=>[s(n,{type:"primary",onClick:$},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+m(e.$t("cps.onDeviceRead")),1)]),_:1}),s(n,{onClick:T},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+m(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(x,{class:"ttable",loading:h(I),size:"medium",columns:A.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:R},{drag:r(({row:l,rowIndex:_})=>[S("span",null,[s(h(te))])]),index:r(({row:l,rowIndex:_})=>[g(m((a.nowPage-1)*a.pageSize+_+1),1)]),operate:r(({row:l,rowIndex:_})=>[s(K,{theme:"default",variant:"dashed",onClick:ce=>k((a.nowPage-1)*a.pageSize+_)},{default:r(()=>[g(m(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const $e=N(ie,[["__scopeId","data-v-dfecd3b2"]]);export{$e as default};
import{v as H,m as L,ak as M,_ as N}from"./index.e1698f3e.js";/* empty css *//* empty css *//* empty css */import{d as U,r as y,c as V,bI as O,C as j,D as G,aI as s,aH as r,G as S,aN as m,aM as g,u as h,a6 as J,a$ as W,ba as Z,bJ as q,bL as F}from"./arco.7f845a67.js";import{u as Q}from"./loading.1a4e75f4.js";import{e as v,a as C,u as w,f as X,h as D,s as Y,b,g as ee}from"./serial.c6b76da8.js";import{I as P}from"./index.754948b2.js";import{M as te,T as ae}from"./index.9c55c2fc.js";import{B as ne}from"./index.95128039.js";import"./chart.3e6cb2f1.js";import"./vue.0bef8fc5.js";import"./useConfig.3a51a7af.js";import"./useGlobalIcon.e6846aca.js";import"./helper.e7853506.js";import"./dep-6deb4e3a.716901b3.js";import"./dialog.4a111457.js";import"./index.c9d9f013.js";import"./form-model.cbf372df.js";import"./useDisabled.242d5b98.js";import"./slot.62ee6927.js";const oe={class:"container"},re={name:"Radio"},ie=U({...re,setup(se){const{t:f}=H.exports.useI18n(),o=L(),{loading:I,setLoading:u}=Q(!1),a=y({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),z=y({showHide:0}),R=e=>{a.renderData=e.newData},A=V(()=>[{colKey:"drag",title:f("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:f("cps.contact"),colKey:"name",width:250,align:"left",cell:(e,{row:t})=>t.name?t.name.replace(/[^a-zA-Z0-9_]/g,""):void 0,edit:{component:P,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:f("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:P,props:{clearable:!0},onEdited:e=>{e.newRowData.mdcid=e.newRowData.mdcid?e.newRowData.mdcid.toLowerCase():void 0;const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:f("cps.operate"),colKey:"operate",align:"left",width:150}]),$=async()=>{var d,c;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);let e=new Uint8Array(256);for(let n=7424;n<7680;n+=16){const i=await C(o.connectPort,n,16,(d=o.configuration)==null?void 0:d.uart);e.set(i,n-7424)}const t=[];for(let n=0;n<256;n+=16)w(e.subarray(n,n+2))!="ffff"?t.push({name:X(e.subarray(n+2,n+16),(c=o.configuration)==null?void 0:c.charset).trim(),mdcid:w(e.subarray(n,n+1))+w(e.subarray(n+1,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 v(o.connectPort),u(!0);for(let i=0;i<256;i+=16)if(a.renderData[i/16].mdcid){const p=new Uint8Array(16).fill(32);p.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(0,2))),p.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(2,4)),1),p.set(Y(a.renderData[i/16].name),2),await b(o.connectPort,i+7424,p,16,(t=o.configuration)==null?void 0:t.uart)}else await b(o.connectPort,i+7424,D("ffffffffffffffffffffffffffffffff"),16,(d=o.configuration)==null?void 0:d.uart);const e=await C(o.connectPort,8176,16,(c=o.configuration)==null?void 0:c.uart);e.set([16],16-1),await b(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=M,c=J,n=W,i=Z,p=q,B=F,K=ne,x=ae,E=O;return j(),G("div",oe,[s(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.mdc")]},null,8,["items"]),s(E,{class:"general-card"},{title:r(()=>[S("span",{onClick:t[0]||(t[0]=()=>{z.showHide+=1})},m(e.$t("menu.cps.mdc")+e.$t("global.onStart")),1)]),default:r(()=>[s(B,{style:{"margin-bottom":"16px"}},{default:r(()=>[s(p,{span:12},{default:r(()=>[s(i,null,{default:r(()=>[s(n,{type:"primary",onClick:$},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+m(e.$t("cps.onDeviceRead")),1)]),_:1}),s(n,{onClick:T},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+m(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(x,{class:"ttable",loading:h(I),size:"medium",columns:A.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:R},{drag:r(({row:l,rowIndex:_})=>[S("span",null,[s(h(te))])]),index:r(({row:l,rowIndex:_})=>[g(m((a.nowPage-1)*a.pageSize+_+1),1)]),operate:r(({row:l,rowIndex:_})=>[s(K,{theme:"default",variant:"dashed",onClick:ce=>k((a.nowPage-1)*a.pageSize+_)},{default:r(()=>[g(m(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const $e=N(ie,[["__scopeId","data-v-dfecd3b2"]]);export{$e as default};

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

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{v as V,ak as j,_ as B}from"./index.3745f9af.js";/* empty css *//* empty css *//* empty css */import{d as C,r as E,w as O,o as U,bT as $,bI as I,C as u,D as h,aI as r,aH as i,u as T,G as H,aM as f,aN as v,aK as x,aJ as y,aE as k,bU as J,a$ as R,bJ as F,bL as G}from"./arco.7f845a67.js";import{g as Y}from"./vue.0bef8fc5.js";import{u as q}from"./loading.1a4e75f4.js";import{L as A}from"./index.5942e319.js";import{S as K}from"./index.1722d344.js";import"./chart.3e6cb2f1.js";import"./useConfig.d93d68c1.js";import"./useDisabled.f946fc31.js";import"./helper.38552a88.js";import"./slot.e92e5310.js";const z={class:"container"},P={name:"DIY"},Q=C({...P,setup(W){const M=Y(),{t:S}=V.exports.useI18n(),N=()=>{M.push({path:"/tool/flash",query:{url:"https://k5.vicicode.com/diyapi/LOSEHU"+t.flag.join("")+".bin?v="+new Date().getTime()}})},t=E({versions:[],flag:[],disMatrix:[],disName:[],showSort:[]});O(()=>[...t.flag],()=>{w()});const w=()=>{t.flag.map((a,o)=>{t.disMatrix[o].forEach((l,n)=>{t.versions.indexOf("LOSEHU"+t.flag.join("").substring(0,o)+n+t.flag.join("").substring(o+1)+".bin")==-1?t.disMatrix[o].set(n,!0):t.disMatrix[o].set(n,!1)})})},{loading:L,setLoading:b}=q(!0);return U(async()=>{b(!0);let a=await(await fetch("https://k5.vicicode.com/diyapi/function.json?v="+new Date().getTime())).text();a=JSON.parse(a);let o=[],l=[];a.map(e=>{o[e[e.length-1]-1]=e,l.push(e[e.length-1]-1)}),a=o;let n=[],p=[];a.map(e=>{let _=new Map,c=new Map;for(let s=e[0]*2+1;s<e[0]*3+1;s++)_.set(e[s],!1),S("idea.diy")!=="LOSEHU DIY"?c.set(e[s],e[s-e[0]-e[0]]):c.set(e[s],e[s-e[0]]);n.push(_),p.push(c)}),t.flag=new Array(a.length).fill("0"),t.disName=p,t.disMatrix=n,t.showSort=l;const g=await(await fetch("https://k5.vicicode.com/diyapi/version.json?v="+new Date().getTime())).text();t.versions=JSON.parse(g),w(),b(!1)}),(a,o)=>{const l=j,n=A,p=$,g=J,e=R,_=K,c=I,s=F,D=G;return u(),h("div",z,[r(l,{items:[a.$t("menu.workshop"),a.$t("idea.diy")]},null,8,["items"]),r(D,{gutter:20,align:"stretch"},{default:i(()=>[r(s,{span:24},{default:i(()=>[r(c,{class:"general-card",title:a.$t("idea.diy"),loading:T(L)},{default:i(()=>[r(_,{direction:"vertical"},{default:i(()=>[H("div",null,[f(v(a.$t("oi")),1),r(n,{theme:"primary",href:"https://github.com/losehu/uv-k5-firmware-custom",target:"_blank"},{default:i(()=>[f("https://github.com/losehu/uv-k5-firmware-custom")]),_:1})]),(u(!0),h(x,null,y(t.showSort,m=>(u(),k(g,{modelValue:t.flag[m],"onUpdate:modelValue":d=>t.flag[m]=d,type:"button"},{default:i(()=>[(u(!0),h(x,null,y(t.disMatrix[m],d=>(u(),k(p,{value:d[0],disabled:d[1]},{default:i(()=>[f(v(t.disName[m].get(d[0])),1)]),_:2},1032,["value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"]))),256)),r(e,{type:"primary",onClick:N},{default:i(()=>[f(v(a.$t("diy.generate")),1)]),_:1})]),_:1})]),_:1},8,["title","loading"])]),_:1})]),_:1})])}}});const pt=B(Q,[["__scopeId","data-v-9368fb4d"]]);export{pt as default};
import{v as V,ak as j,_ as B}from"./index.e1698f3e.js";/* empty css *//* empty css *//* empty css */import{d as C,r as E,w as O,o as U,bT as $,bI as I,C as u,D as h,aI as r,aH as i,u as T,G as H,aM as f,aN as v,aK as x,aJ as y,aE as k,bU as J,a$ as R,bJ as F,bL as G}from"./arco.7f845a67.js";import{g as Y}from"./vue.0bef8fc5.js";import{u as q}from"./loading.1a4e75f4.js";import{L as A}from"./index.c9ce06d2.js";import{S as K}from"./index.6b0b7b60.js";import"./chart.3e6cb2f1.js";import"./useConfig.3a51a7af.js";import"./useDisabled.242d5b98.js";import"./helper.e7853506.js";import"./slot.62ee6927.js";const z={class:"container"},P={name:"DIY"},Q=C({...P,setup(W){const M=Y(),{t:S}=V.exports.useI18n(),N=()=>{M.push({path:"/tool/flash",query:{url:"https://k5.vicicode.com/diyapi/LOSEHU"+t.flag.join("")+".bin?v="+new Date().getTime()}})},t=E({versions:[],flag:[],disMatrix:[],disName:[],showSort:[]});O(()=>[...t.flag],()=>{w()});const w=()=>{t.flag.map((a,o)=>{t.disMatrix[o].forEach((l,n)=>{t.versions.indexOf("LOSEHU"+t.flag.join("").substring(0,o)+n+t.flag.join("").substring(o+1)+".bin")==-1?t.disMatrix[o].set(n,!0):t.disMatrix[o].set(n,!1)})})},{loading:L,setLoading:b}=q(!0);return U(async()=>{b(!0);let a=await(await fetch("https://k5.vicicode.com/diyapi/function.json?v="+new Date().getTime())).text();a=JSON.parse(a);let o=[],l=[];a.map(e=>{o[e[e.length-1]-1]=e,l.push(e[e.length-1]-1)}),a=o;let n=[],p=[];a.map(e=>{let _=new Map,c=new Map;for(let s=e[0]*2+1;s<e[0]*3+1;s++)_.set(e[s],!1),S("idea.diy")!=="LOSEHU DIY"?c.set(e[s],e[s-e[0]-e[0]]):c.set(e[s],e[s-e[0]]);n.push(_),p.push(c)}),t.flag=new Array(a.length).fill("0"),t.disName=p,t.disMatrix=n,t.showSort=l;const g=await(await fetch("https://k5.vicicode.com/diyapi/version.json?v="+new Date().getTime())).text();t.versions=JSON.parse(g),w(),b(!1)}),(a,o)=>{const l=j,n=A,p=$,g=J,e=R,_=K,c=I,s=F,D=G;return u(),h("div",z,[r(l,{items:[a.$t("menu.workshop"),a.$t("idea.diy")]},null,8,["items"]),r(D,{gutter:20,align:"stretch"},{default:i(()=>[r(s,{span:24},{default:i(()=>[r(c,{class:"general-card",title:a.$t("idea.diy"),loading:T(L)},{default:i(()=>[r(_,{direction:"vertical"},{default:i(()=>[H("div",null,[f(v(a.$t("oi")),1),r(n,{theme:"primary",href:"https://github.com/losehu/uv-k5-firmware-custom",target:"_blank"},{default:i(()=>[f("https://github.com/losehu/uv-k5-firmware-custom")]),_:1})]),(u(!0),h(x,null,y(t.showSort,m=>(u(),k(g,{modelValue:t.flag[m],"onUpdate:modelValue":d=>t.flag[m]=d,type:"button"},{default:i(()=>[(u(!0),h(x,null,y(t.disMatrix[m],d=>(u(),k(p,{value:d[0],disabled:d[1]},{default:i(()=>[f(v(t.disName[m].get(d[0])),1)]),_:2},1032,["value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"]))),256)),r(e,{type:"primary",onClick:N},{default:i(()=>[f(v(a.$t("diy.generate")),1)]),_:1})]),_:1})]),_:1},8,["title","loading"])]),_:1})]),_:1})])}}});const pt=B(Q,[["__scopeId","data-v-9368fb4d"]]);export{pt as default};

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

Binary file not shown.

File diff suppressed because one or more lines are too long

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

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{_ as c}from"./index.3745f9af.js";import{d as r,r as i,C as p,aE as l,aH as t,aI as e,aM as a,bg as d,bh as m,bi as u}from"./arco.7f845a67.js";import{L as f}from"./index.5942e319.js";import{S as h}from"./index.1722d344.js";const b=r({__name:"index",setup(x){const s=i({isLhw711:location.hostname=="k5.lhw711.cn"});return(k,g)=>{const o=f,n=h,_=u;return p(),l(_,{class:"footer"},{default:t(()=>[e(n,null,{default:t(()=>[e(o,{href:"https://github.com/silenty4ng/k5web",target:"_blank"},{default:t(()=>[a("K5Web - V0.1.202406100220")]),_:1}),d(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[a("\u9C81ICP\u59072024058690\u53F7-1")]),_:1},512),[[m,s.isLhw711]])]),_:1})]),_:1})}}});const L=c(b,[["__scopeId","data-v-92c54ad8"]]);export{L as F};
import{_ as c}from"./index.e1698f3e.js";import{d as r,r as i,C as p,aE as l,aH as t,aI as e,aM as a,bg as d,bh as m,bi as u}from"./arco.7f845a67.js";import{L as f}from"./index.c9ce06d2.js";import{S as h}from"./index.6b0b7b60.js";const b=r({__name:"index",setup(x){const s=i({isLhw711:location.hostname=="k5.lhw711.cn"});return(k,g)=>{const o=f,n=h,_=u;return p(),l(_,{class:"footer"},{default:t(()=>[e(n,null,{default:t(()=>[e(o,{href:"https://github.com/silenty4ng/k5web",target:"_blank"},{default:t(()=>[a("K5Web - V0.1.202406100220")]),_:1}),d(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[a("\u9C81ICP\u59072024058690\u53F7-1")]),_:1},512),[[m,s.isLhw711]])]),_:1})]),_:1})}}});const L=c(b,[["__scopeId","data-v-92c54ad8"]]);export{L as F};

View File

@ -1 +1 @@
import{_}from"./index.3745f9af.js";/* empty css */import{d as F,r as f,o as h,bG as g,a$ as m,D as y,bg as i,bh 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.7f845a67.js";import"./chart.3e6cb2f1.js";import"./vue.0bef8fc5.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.e1698f3e.js";/* empty css */import{d as F,r as f,o as h,bG as g,a$ as m,D as y,bg as i,bh 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.7f845a67.js";import"./chart.3e6cb2f1.js";import"./vue.0bef8fc5.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.f6842f28.js.gz Normal file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More