mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 16:22:44 +00:00
update
This commit is contained in:
parent
735fd6b27c
commit
22bdc575e7
145 changed files with 1239 additions and 1226 deletions
1
CNAME
Normal file
1
CNAME
Normal file
|
@ -0,0 +1 @@
|
||||||
|
k5.vicicode.com
|
File diff suppressed because one or more lines are too long
Binary file not shown.
50
assets/arco.b087a425.js
Normal file
50
assets/arco.b087a425.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/arco.b087a425.js.gz
Normal file
BIN
assets/arco.b087a425.js.gz
Normal file
Binary file not shown.
55
assets/chart.836a9fe2.js
Normal file
55
assets/chart.836a9fe2.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/chart.836a9fe2.js.gz
Normal file
BIN
assets/chart.836a9fe2.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
assets/default-layout.26684177.css
Normal file
1
assets/default-layout.26684177.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.26684177.css.gz
Normal file
BIN
assets/default-layout.26684177.css.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.7601e029.js.gz
Normal file
BIN
assets/default-layout.7601e029.js.gz
Normal file
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.
File diff suppressed because one or more lines are too long
BIN
assets/dep-71c4f289.b1d46d4b.css.gz
Normal file
BIN
assets/dep-71c4f289.b1d46d4b.css.gz
Normal file
Binary file not shown.
324
assets/dep-71c4f289.dccc98fb.js
Normal file
324
assets/dep-71c4f289.dccc98fb.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/dep-71c4f289.dccc98fb.js.gz
Normal file
BIN
assets/dep-71c4f289.dccc98fb.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
24
assets/form-model.9a62c8df.js
Normal file
24
assets/form-model.9a62c8df.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/form-model.9a62c8df.js.gz
Normal file
BIN
assets/form-model.9a62c8df.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
assets/index.0199f038.css
Normal file
1
assets/index.0199f038.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.0199f038.css.gz
Normal file
BIN
assets/index.0199f038.css.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.0c03ba31.js.gz
Normal file
BIN
assets/index.0c03ba31.js.gz
Normal file
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.
|
@ -1 +1 @@
|
||||||
import{_ as u}from"./index.b5cfa36a.js";import{d as m,r as p,C as f,aE as d,aH as t,aI as e,aM as n,aN as h,a$ as c,b0 as _,bo as g}from"./arco.76adc92f.js";import{L as b}from"./index.5ee1e5a2.js";import{S as k}from"./index.7a40d0e4.js";const v=m({__name:"index",setup(x){const s=p({isLhw711:location.hostname=="k5.lhw711.cn",isCN:location.hostname=="k5.vicicode.cn"}),i=()=>{var a;return(a=document.getElementsByTagName("meta").builtTime)==null?void 0:a.content};return(a,C)=>{const o=b,r=k,l=g;return f(),d(l,{class:"footer"},{default:t(()=>[e(r,null,{default:t(()=>[e(o,{href:"https://github.com/silenty4ng/k5web",target:"_blank"},{default:t(()=>[n("K5Web - V0.1."+h(i()),1)]),_:1}),c(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[n("\u8700ICP\u59072024089755\u53F7-1")]),_:1},512),[[_,s.isCN]]),c(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[n("\u9C81ICP\u59072024058690\u53F7-1")]),_:1},512),[[_,s.isLhw711]])]),_:1})]),_:1})}}});const L=u(v,[["__scopeId","data-v-61069ac8"]]);export{L as F};
|
import{_ as u}from"./index.abba0c49.js";import{d as m,r as p,C as f,aE as d,aH as t,aI as e,aM as n,aN as h,a$ as c,b0 as _,bo as g}from"./arco.b087a425.js";import{L as b}from"./index.82fa7dea.js";import{S as k}from"./index.b6534759.js";const v=m({__name:"index",setup(x){const s=p({isLhw711:location.hostname=="k5.lhw711.cn",isCN:location.hostname=="k5.vicicode.cn"}),i=()=>{var a;return(a=document.getElementsByTagName("meta").builtTime)==null?void 0:a.content};return(a,C)=>{const o=b,r=k,l=g;return f(),d(l,{class:"footer"},{default:t(()=>[e(r,null,{default:t(()=>[e(o,{href:"https://github.com/silenty4ng/k5web",target:"_blank"},{default:t(()=>[n("K5Web - V0.1."+h(i()),1)]),_:1}),c(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[n("\u8700ICP\u59072024089755\u53F7-1")]),_:1},512),[[_,s.isCN]]),c(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[n("\u9C81ICP\u59072024058690\u53F7-1")]),_:1},512),[[_,s.isLhw711]])]),_:1})]),_:1})}}});const L=u(v,[["__scopeId","data-v-61069ac8"]]);export{L as F};
|
BIN
assets/index.204c07fb.js.gz
Normal file
BIN
assets/index.204c07fb.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
||||||
import{_ as n}from"./index.b5cfa36a.js";import{d as c,bH as _,b8 as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.76adc92f.js";import{g as m}from"./vue.107cc2d0.js";import"./chart.d41e8c5b.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.abba0c49.js";import{d as c,bH as _,b8 as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.b087a425.js";import{g as m}from"./vue.23fb8a9a.js";import"./chart.836a9fe2.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};
|
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.313dad1f.js.gz
Normal file
BIN
assets/index.313dad1f.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
assets/index.3d56613a.css
Normal file
1
assets/index.3d56613a.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.3d56613a.css.gz
Normal file
BIN
assets/index.3d56613a.css.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
||||||
import{_}from"./index.b5cfa36a.js";/* empty css */import{d as F,r as f,o as h,bG as g,b8 as m,D as y,a$ as i,b0 as c,G as o,aM as s,aI as a,aN as d,aH as b,bm as v,bn as A,C as D}from"./arco.76adc92f.js";import"./chart.d41e8c5b.js";import"./vue.107cc2d0.js";const l=u=>(v("data-v-da2b92fd"),u=u(),A(),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.cn/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:b(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-da2b92fd"]]);export{U as default};
|
import{_}from"./index.abba0c49.js";/* empty css */import{d as F,r as f,o as h,bG as g,b8 as m,D as y,a$ as i,b0 as c,G as o,aM as s,aI as a,aN as d,aH as b,bm as v,bn as A,C as D}from"./arco.b087a425.js";import"./chart.836a9fe2.js";import"./vue.23fb8a9a.js";const l=u=>(v("data-v-da2b92fd"),u=u(),A(),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.cn/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:b(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-da2b92fd"]]);export{U as default};
|
BIN
assets/index.3d97a841.js.gz
Normal file
BIN
assets/index.3d97a841.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
||||||
import{v as E,s as M,ac as N,N as H,_ as O}from"./index.b5cfa36a.js";/* empty css *//* empty css *//* empty css */import{d as F,r as S,c as U,bI as V,C as L,D as j,aI as i,aH as s,G as h,aN as u,aM as m,u as b,a6 as G,b8 as W,bi as q,bK as J,bO as Q}from"./arco.76adc92f.js";import{u as X}from"./loading.e4b365a7.js";import{e as x,a as y,u as v,b as g,h as w,g as Y}from"./serial.c6b76da8.js";import{I as Z}from"./index.80385120.js";import{M as ee,T as te}from"./index.4b774f0f.js";import"./chart.d41e8c5b.js";import"./vue.107cc2d0.js";import"./dep-6deb4e3a.831b15da.js";import"./form-model.35243c36.js";import"./slot.da750594.js";const ae={class:"container"},oe={name:"Radio"},ne=F({...oe,setup(re){const{t:D}=E.exports.useI18n(),o=M(),{loading:P,setLoading:f}=X(!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=U(()=>[{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:Z,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 x(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 x(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 Y(o.connectPort),f(!1)},k=async t=>{const n=[...a.renderData];n.splice(t,1,{scanlist:[]}),a.renderData=n};return(t,n)=>{const p=N,c=G,r=W,e=q,l=J,A=Q,K=H,T=te,B=V;return L(),j("div",ae,[i(p,{items:[t.$t("menu.dashboard"),t.$t("menu.cps.radio")]},null,8,["items"]),i(B,{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(()=>[m(" "+u(t.$t("cps.onDeviceRead")),1)]),_:1}),i(r,{onClick:$},{icon:s(()=>[i(c)]),default:s(()=>[m(" "+u(t.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),i(T,{class:"ttable",loading:b(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:_})=>[h("span",null,[i(b(ee))])]),index:s(({row:d,rowIndex:_})=>[m(u((a.nowPage-1)*a.pageSize+_+1),1)]),operate:s(({row:d,rowIndex:_})=>[i(K,{theme:"default",variant:"dashed",onClick:se=>k((a.nowPage-1)*a.pageSize+_)},{default:s(()=>[m(u(t.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const be=O(ne,[["__scopeId","data-v-be263a43"]]);export{be as default};
|
import{v as E,t as M,ad as O,O as H,_ as N}from"./index.abba0c49.js";/* empty css *//* empty css *//* empty css */import{d as F,r as S,c as U,bI as V,C as L,D as j,aI as i,aH as s,G as h,aN as u,aM as m,u as b,a6 as G,b8 as W,bi as q,bK as J,bO as Q}from"./arco.b087a425.js";import{u as X}from"./loading.9d534c38.js";import{e as x,a as y,u as v,b as g,h as w,g as Y}from"./serial.c6b76da8.js";import{I as Z}from"./index.eda8ee4b.js";import{M as ee,T as te}from"./index.6b753417.js";import"./chart.836a9fe2.js";import"./vue.23fb8a9a.js";import"./dep-71c4f289.dccc98fb.js";import"./form-model.9a62c8df.js";import"./slot.b022806d.js";const ae={class:"container"},oe={name:"Radio"},ne=F({...oe,setup(re){const{t:D}=E.exports.useI18n(),o=M(),{loading:P,setLoading:f}=X(!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=U(()=>[{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:Z,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 x(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 x(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 Y(o.connectPort),f(!1)},k=async t=>{const n=[...a.renderData];n.splice(t,1,{scanlist:[]}),a.renderData=n};return(t,n)=>{const p=O,c=G,r=W,e=q,l=J,A=Q,K=H,T=te,B=V;return L(),j("div",ae,[i(p,{items:[t.$t("menu.dashboard"),t.$t("menu.cps.radio")]},null,8,["items"]),i(B,{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(()=>[m(" "+u(t.$t("cps.onDeviceRead")),1)]),_:1}),i(r,{onClick:$},{icon:s(()=>[i(c)]),default:s(()=>[m(" "+u(t.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),i(T,{class:"ttable",loading:b(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:_})=>[h("span",null,[i(b(ee))])]),index:s(({row:d,rowIndex:_})=>[m(u((a.nowPage-1)*a.pageSize+_+1),1)]),operate:s(({row:d,rowIndex:_})=>[i(K,{theme:"default",variant:"dashed",onClick:se=>k((a.nowPage-1)*a.pageSize+_)},{default:s(()=>[m(u(t.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const be=N(ne,[["__scopeId","data-v-be263a43"]]);export{be as default};
|
BIN
assets/index.405dd7a8.js.gz
Normal file
BIN
assets/index.405dd7a8.js.gz
Normal file
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.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
import{v as N,s as H,ac as M,N as U,_ as L}from"./index.b5cfa36a.js";/* empty css *//* empty css *//* empty css */import{d as O,r as y,c as V,bI as j,C as G,D as W,aI as i,aH as r,G as S,aN as f,aM as g,u as h,a6 as Z,b8 as q,bi as F,bK as J,bO as Q}from"./arco.76adc92f.js";import{u as X}from"./loading.e4b365a7.js";import{e as v,a as C,u as w,f as Y,h as D,s as ee,b,g as te}from"./serial.c6b76da8.js";import{I as P}from"./index.80385120.js";import{M as ae,T as ne}from"./index.4b774f0f.js";import"./chart.d41e8c5b.js";import"./vue.107cc2d0.js";import"./dep-6deb4e3a.831b15da.js";import"./form-model.35243c36.js";import"./slot.da750594.js";const oe={class:"container"},re={name:"Radio"},se=O({...re,setup(ie){const{t:m}=N.exports.useI18n(),o=H(),{loading:I,setLoading:u}=X(!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: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-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: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: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:m("cps.operate"),colKey:"operate",align:"left",width:150}]),T=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 s=await C(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)w(e.subarray(n,n+2))!="ffff"?t.push({name:Y(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)},$=async()=>{var t,d,c,n;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(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(D(a.renderData[s/16].mdcid.padStart(4,"0").substring(0,2))),l.set(D(a.renderData[s/16].mdcid.padStart(4,"0").substring(2,4)),1),l.set(ee(a.renderData[s/16].name),2),await b(o.connectPort,s+7424,l,16,(t=o.configuration)==null?void 0:t.uart)}else await b(o.connectPort,s+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 te(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=Z,n=q,s=F,l=J,k=Q,x=U,B=ne,E=j;return G(),W("div",oe,[i(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.mdc")]},null,8,["items"]),i(E,{class:"general-card"},{title:r(()=>[S("span",{onClick:t[0]||(t[0]=()=>{z.showHide+=1})},f(e.$t("menu.cps.mdc")+e.$t("global.onStart")),1)]),default:r(()=>[i(k,{style:{"margin-bottom":"16px"}},{default:r(()=>[i(l,{span:12},{default:r(()=>[i(s,null,{default:r(()=>[i(n,{type:"primary",onClick:T},{icon:r(()=>[i(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceRead")),1)]),_:1}),i(n,{onClick:$},{icon:r(()=>[i(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),i(B,{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]=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:_})=>[S("span",null,[i(h(ae))])]),index:r(({row:p,rowIndex:_})=>[g(f((a.nowPage-1)*a.pageSize+_+1),1)]),operate:r(({row:p,rowIndex:_})=>[i(x,{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 ve=L(se,[["__scopeId","data-v-dfecd3b2"]]);export{ve as default};
|
|
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
import{d as o,D as r,C as a}from"./arco.76adc92f.js";import{g as s,f as n}from"./vue.107cc2d0.js";const i=o({__name:"index",setup(c){const e=s(),t=n().params.path;return e.replace({path:t}),(u,m)=>(a(),r("div"))}});export{i as default};
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
234
assets/index.6b753417.js
Normal file
234
assets/index.6b753417.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.6b753417.js.gz
Normal file
BIN
assets/index.6b753417.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,65 +0,0 @@
|
||||||
import{O as ne,P as te,Q as ae,S as Ne,b as B,l as Fe,T as Te,U as ce,n as he,V as Be,W as Ee,d as $e,X as Ae,c as Le,f as _,i as we,w as Oe}from"./index.b5cfa36a.js";import{d as R,c as h,f as j,g as Ce,w as E,b as _e,i as Ie,o as Pe,t as Se,n as ee,aI as C,a$ as De,b0 as Re,aV as ze}from"./arco.76adc92f.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function He(e,n){if(e==null)return{};var a={},t=Object.keys(e),l,d;for(d=0;d<t.length;d++)l=t[d],!(n.indexOf(l)>=0)&&(a[l]=e[l]);return a}function Ke(e,n){if(e==null)return{};var a=He(e,n),t,l;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);for(l=0;l<d.length;l++)t=d[l],!(n.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(a[t]=e[t]))}return a}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function ke(e){return e===void 0}var We=ke;function se(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,t)}return a}function ve(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?se(Object(a),!0).forEach(function(t){ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):se(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var Ue={tag:"svg",attrs:{fill:"none",viewBox:"0 0 26 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4 1.59l6.17 6.17 7.07 7.07L23.41 21 22 22.41l-2.97-2.96A12.5 12.5 0 011.08 12.3L1 12l.1-.3c.77-2.4 2.24-4.5 4.18-6.02L2.59 3 4 1.59zM6.7 7.1A10.53 10.53 0 003.1 12a10.5 10.5 0 0014.45 5.97l-1.8-1.8a5 5 0 01-6.93-6.93L6.7 7.11zm3.6 3.6a3 3 0 004 4l-4-4zM13 5c-.58 0-1.14.05-1.7.14l-.98.16L10 3.32l.99-.16A12.5 12.5 0 0124.9 11.7l.1.31-.1.3c-.41 1.3-1.03 2.5-1.82 3.58l-.59.8-1.61-1.18.59-.8c.6-.82 1.08-1.73 1.42-2.7A10.5 10.5 0 0013 5zm.51 1.93l.96.29a5 5 0 013.31 3.31l.3.96-1.92.58-.3-.95a3 3 0 00-1.98-1.99l-.95-.3.58-1.9z"}}]},Ge=R({name:"BrowseOffIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:a}=n,t=h(()=>e.size),{className:l,style:d}=ne(t),s=h(()=>["t-icon","t-icon-browse-off",l.value]),v=h(()=>ve(ve({},d.value),a.style)),m=h(()=>({class:s.value,style:v.value,onClick:p=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:p})}}));return()=>te(Ue,m.value)}});const Xe=Ge;function fe(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,t)}return a}function de(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?fe(Object(a),!0).forEach(function(t){ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):fe(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var Je={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"g",attrs:{clipPath:"url(#clip0_8726_7319)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.1 12a10.5 10.5 0 0019.8 0 10.5 10.5 0 00-19.8 0zm-2.01-.3a12.5 12.5 0 0123.82 0l.1.3-.1.3a12.5 12.5 0 01-23.82 0l-.1-.3.1-.3zM12 9a3 3 0 100 6 3 3 0 000-6zm-5 3a5 5 0 1110 0 5 5 0 01-10 0z"}}]}]},Ze=R({name:"BrowseIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:a}=n,t=h(()=>e.size),{className:l,style:d}=ne(t),s=h(()=>["t-icon","t-icon-browse",l.value]),v=h(()=>de(de({},d.value),a.style)),m=h(()=>({class:s.value,style:v.value,onClick:p=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:p})}}));return()=>te(Je,m.value)}});const Qe=Ze;function me(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,t)}return a}function pe(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?me(Object(a),!0).forEach(function(t){ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):me(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var qe={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 23a11 11 0 100-22 11 11 0 000 22zM8.82 7.4L12 10.6l3.18-3.19 1.42 1.42L13.4 12l3.19 3.18-1.42 1.42L12 13.4 8.82 16.6 7.4 15.18 10.6 12 7.4 8.82 8.82 7.4z"}}]},Ye=R({name:"CloseCircleFilledIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:a}=n,t=h(()=>e.size),{className:l,style:d}=ne(t),s=h(()=>["t-icon","t-icon-close-circle-filled",l.value]),v=h(()=>pe(pe({},d.value),a.style)),m=h(()=>({class:s.value,style:v.value,onClick:p=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:p})}}));return()=>te(qe,m.value)}});const en=Ye;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function nn(e,n,a,t){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"value",d=Ce(),s=d.emit,v=d.vnode,m=j(),p=v.props||{},f=Object.prototype.hasOwnProperty.call(p,"modelValue")||Object.prototype.hasOwnProperty.call(p,"model-value"),r=Object.prototype.hasOwnProperty.call(p,l)||Object.prototype.hasOwnProperty.call(p,Ne(l));return f?[n,function(i){s("update:modelValue",i);for(var c=arguments.length,w=new Array(c>1?c-1:0),b=1;b<c;b++)w[b-1]=arguments[b];t==null||t.apply(void 0,[i].concat(w))}]:r?[e,function(i){s("update:".concat(l),i);for(var c=arguments.length,w=new Array(c>1?c-1:0),b=1;b<c;b++)w[b-1]=arguments[b];t==null||t.apply(void 0,[i].concat(w))}]:(m.value=a,[m,function(i){m.value=i;for(var c=arguments.length,w=new Array(c>1?c-1:0),b=1;b<c;b++)w[b-1]=arguments[b];t==null||t.apply(void 0,[i].concat(w))}])}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var W=new Set,tn={warn:function(n,a){console.warn("TDesign ".concat(n," Warn: ").concat(a))},warnOnce:function(n,a){var t="TDesign ".concat(n," Warn: ").concat(a);W.has(t)||(W.add(t),console.warn(t))},error:function(n,a){console.error("TDesign ".concat(n," Error: ").concat(a))},errorOnce:function(n,a){var t="TDesign ".concat(n," Error: ").concat(a);W.has(t)||(W.add(t),console.error(t))},info:function(n,a){console.info("TDesign ".concat(n," Info: ").concat(a))}};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function an(e,n){if(!(typeof window>"u")){var a=window&&window.ResizeObserver;if(!!a){var t=null,l=function(){!t||!e.value||(t.unobserve(e.value),t.disconnect(),t=null)},d=function(v){t=new ResizeObserver(n),t.observe(v)};e&&E(e,function(s){l(),s&&d(s)},{immediate:!0,flush:"post"}),_e(function(){l()})}}}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var rn={align:{type:String,default:"left",validator:function(n){return n?["left","center","right"].includes(n):!0}},allowInputOverMax:Boolean,autoWidth:Boolean,autocomplete:{type:String,default:void 0},autofocus:Boolean,borderless:Boolean,clearable:Boolean,disabled:Boolean,format:{type:Function},inputClass:{type:[String,Object,Array]},label:{type:[String,Function]},maxcharacter:{type:Number},maxlength:{type:[String,Number]},name:{type:String,default:""},placeholder:{type:String,default:void 0},prefixIcon:{type:Function},readonly:Boolean,showClearIconOnEmpty:Boolean,showLimitNumber:Boolean,size:{type:String,default:"medium",validator:function(n){return n?["small","medium","large"].includes(n):!0}},status:{type:String,default:void 0,validator:function(n){return n?["default","success","warning","error"].includes(n):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tips:{type:[String,Function]},type:{type:String,default:"text",validator:function(n){return n?["text","number","url","tel","password","search","submit","hidden"].includes(n):!0}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onCompositionend:Function,onCompositionstart:Function,onEnter:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onValidate:Function,onWheel:Function};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function xe(e){var n=Ce(),a=h(function(){return n.props.disabled}),t=Ie("formDisabled",Object.create(null)),l=t.disabled;return h(function(){return a.value||(l==null?void 0:l.value)||(e==null?void 0:e.value)||!1})}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var wn=function(){var n=B();return h(function(){var a="".concat(n.value,"-form"),t="".concat(n.value,"-input"),l="".concat(n.value,"-is");return{form:a,label:"".concat(a,"__label"),labelTop:"".concat(a,"__label--top"),inline:"".concat(a,"-inline"),formItem:"".concat(a,"__item"),formItemWithHelp:"".concat(a,"__item-with-help"),formItemWithExtra:"".concat(a,"__item-with-extra"),controls:"".concat(a,"__controls"),controlsContent:"".concat(a,"__controls-content"),status:"".concat(a,"__status"),extra:"".concat(t,"__extra"),help:"".concat(t,"__help"),success:"".concat(l,"-success"),successBorder:"".concat(a,"--success-border"),error:"".concat(l,"-error"),warning:"".concat(l,"-warning")}})},ln=function(e){return e.TO_BE_VALIDATED="not",e.SUCCESS="success",e.FAIL="fail",e}(ln||{}),On=Symbol("FormProvide"),on=Symbol("FormItemProvide");/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function un(e){var n=function(v){var m=e.value,p=m.allowInputOverMax,f=m.maxlength,r=m.maxcharacter;if(!(f||r)||p||!v)return v;if(f)return Be(v,f);if(r){var i=ce(v,r);if(Ee(i))return i.characters}},a=h(function(){var s=e.value,v=s.maxlength,m=s.maxcharacter,p=s.value;if(Fe(p))return String(p);if(v&&m&&tn.warn("Input","Pick one of maxlength and maxcharacter please."),v){var f=p!=null&&p.length?Te(p):0;return"".concat(f,"/").concat(v)}return m?"".concat(ce(p||""),"/").concat(m):""}),t=h(function(){if(a.value){var s=a.value.split("/"),v=he(s,2),m=v[0],p=v[1];return Number(m)>Number(p)?"error":""}return""}),l=h(function(){var s=e.value.status;return s||t.value}),d=function(){var v,m;(v=(m=e.value).onValidate)===null||v===void 0||v.call(m,{error:t.value?"exceed-maximum":void 0})};return E(t,d),Pe(function(){t.value&&d()}),{tStatus:l,limitNumber:a,getValueByLimitNumber:n}}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function U(e,n){return n==="number"?e||e===0?Number(e):void 0:e}function cn(e,n){var a=Se(e),t=a.value,l=a.modelValue,d=j(),s=j(!1),v=j(),m=j(null),p=j(),f=xe(),r=nn(t,l,e.defaultValue,e.onChange),i=he(r,2),c=i[0],w=i[1],b=j(!1),N=j(!1),S=j(e.type),I=j(null),P=h(function(){return{value:[void 0,null].includes(c.value)?void 0:String(c.value),status:e.status,maxlength:Number(e.maxlength),maxcharacter:e.maxcharacter,allowInputOverMax:e.allowInputOverMax,onValidate:e.onValidate}}),$=un(P),F=$.limitNumber,A=$.getValueByLimitNumber,L=$.tStatus,z=h(function(){return(c.value&&!f.value&&e.clearable&&!e.readonly||e.showClearIconOnEmpty)&&b.value}),D=function(){var u;N.value=!0,(u=I.value)===null||u===void 0||u.focus()},G=function(){var u;N.value=!1,(u=I.value)===null||u===void 0||u.blur()},X=function(u){var o;b.value&&N.value||(d.value=c.value,!e.disabled&&(N.value=!0,(o=e.onFocus)===null||o===void 0||o.call(e,c.value,{e:u})))},J=function(u){var o,y=u.e,V=e.type==="number"?void 0:"";w(V,{e:y,trigger:"clear"}),(o=e.onClear)===null||o===void 0||o.call(e,{e:y})},H=function(u){p.value=u.target},K=function(){var u=S.value==="password"?"text":"password";S.value=u},O=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=I.value;if(!!o){var y=String(u);!o.value||o.value!==y&&(o.value=y)}},k=function(u){var o,y=u.target,V=y.value;e.type!=="number"&&typeof c.value=="string"&&V.length>((o=c.value)===null||o===void 0?void 0:o.length)&&(V=A(V)),w(U(V,e.type),{e:u,trigger:"input"}),ee(function(){O(c.value)})},Z=function(u){var o=u.inputType&&u.inputType==="insertCompositionText",y=u.currentTarget.value;if(o||s.value){v.value=y;return}k(u)},M=function(){var u,o=p.value;if(!o||!o.tagName||!((u=m.value)!==null&&u!==void 0&&u.$el)||!["path","svg"].includes(o.tagName))return!1;for(;o;){var y;if(((y=m.value)===null||y===void 0?void 0:y.$el)===o)return!0;o=o.parentNode}return!1},T=Ie(on,void 0),Q=function(u){if(M())D();else{var o;e.format&&(d.value=typeof c.value=="number"||e.type==="number"?c.value:e.format(c.value)),N.value=!1,(o=e.onBlur)===null||o===void 0||o.call(e,c.value,{e:u}),T==null||T.handleBlur()}},q=function(u){var o;s.value=!1,v.value="",k(u),(o=e.onCompositionend)===null||o===void 0||o.call(e,String(c.value),{e:u})},Y=function(u){var o;s.value=!0;var y=u.currentTarget.value;v.value=y,(o=e.onCompositionstart)===null||o===void 0||o.call(e,String(c.value),{e:u})},x=function(u){var o,y;(o=I.value)===null||o===void 0||o.focus(),(y=e.onClick)===null||y===void 0||y.call(e,{e:u})};return E(function(){return e.autofocus},function(g){g===!0&&ee(function(){var u;(u=I.value)===null||u===void 0||u.focus()})},{immediate:!0}),E(c,function(g,u){var o=e.type==="number";u===void 0&&e.format&&typeof g!="number"&&!o?d.value=e.format(g):d.value=g;var y=typeof g=="number"?g:A(g);y!==g&&!o&&w(y,{trigger:"initial"})},{immediate:!0}),E(function(){return e.type},function(g){S.value=g},{immediate:!0}),n({inputRef:I,focus:D,blur:G}),{isHover:b,focused:N,renderType:S,showClear:z,inputRef:I,clearIconRef:m,inputValue:d,isComposition:s,compositionValue:v,limitNumber:F,tStatus:L,emitFocus:X,formatAndEmitBlur:Q,onHandleCompositionend:q,onHandleCompositionstart:Y,onRootClick:x,emitPassword:K,handleInput:Z,emitClear:J,onClearIconMousedown:H,innerValue:c}}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function sn(e,n){var a=function(r){if(!e.disabled){var i=r.code,c=U(r.currentTarget.value,e.type);if(/enter/i.test(i)||/enter/i.test(r.key)){var w;(w=e.onEnter)===null||w===void 0||w.call(e,c,{e:r})}else{var b;(b=e.onKeydown)===null||b===void 0||b.call(e,c,{e:r})}}},t=function(r){var i;if(!e.disabled){var c=U(r.currentTarget.value,e.type);(i=e.onKeyup)===null||i===void 0||i.call(e,c,{e:r})}},l=function(r){var i;if(!e.disabled){var c=U(r.currentTarget.value,e.type);(i=e.onKeypress)===null||i===void 0||i.call(e,c,{e:r})}},d=function(r){var i;if(!e.disabled){var c=r.clipboardData||window.clipboardData;(i=e.onPaste)===null||i===void 0||i.call(e,{e:r,pasteValue:c==null?void 0:c.getData("text/plain")})}},s=function(r){return n.value=r},v=function(r){var i;return(i=e.onWheel)===null||i===void 0?void 0:i.call(e,{e:r})},m=function(r){var i;s(!0),(i=e.onMouseenter)===null||i===void 0||i.call(e,{e:r})},p=function(r){var i;s(!1),(i=e.onMouseleave)===null||i===void 0||i.call(e,{e:r})};return{isHover:n,handleKeydown:a,handleKeyUp:t,handleKeypress:l,onHandlePaste:d,onHandleMousewheel:v,onInputMouseenter:m,onInputMouseleave:p}}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var vn=100;function fn(e,n,a){var t=Se(e),l=t.autoWidth,d=t.placeholder,s=j(null),v=j(null),m=function(){if(!(!s.value||!n.value)){var r=s.value.getBoundingClientRect(),i=r.width;n.value.style.width="".concat(i||0,"px")}};an(n,function(){l.value&&(v.value=setTimeout(function(){m(),clearTimeout(v.value)},vn))}),_e(function(){clearTimeout(v.value)});var p=function(){E([a,d],function(){!l.value||ee(function(){m()})},{immediate:!0})};return Pe(function(){l.value&&p()}),{inputPreRef:s}}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var dn=["isHover","tStatus","inputRef","renderType","showClear","focused","inputValue","isComposition","compositionValue","innerValue","limitNumber"];function ge(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,t)}return a}function ye(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?ge(Object(a),!0).forEach(function(t){_(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ge(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function be(e){var n={};return Object.keys(e).forEach(function(a){We(e[a])||(n[a]=e[a])}),n}var mn=R({name:"TInput",props:ye(ye({},rn),{},{showInput:{type:Boolean,default:!0},keepWrapperWidth:{type:Boolean,default:!1}}),setup:function(n,a){var t=a.expose,l=$e("input"),d=l.globalConfig,s=Ae({BrowseIcon:Qe,BrowseOffIcon:Xe,CloseCircleFilledIcon:en}),v=s.BrowseIcon,m=s.BrowseOffIcon,p=s.CloseCircleFilledIcon,f=xe(),r=B("input"),i=B("input__wrap"),c=B("input__tips"),w=Le(),b=w.STATUS,N=w.SIZE,S=B(),I=we(),P=cn(n,t),$=P.isHover,F=P.tStatus,A=P.inputRef,L=P.renderType,z=P.showClear,D=P.focused,G=P.inputValue,X=P.isComposition,J=P.compositionValue,H=P.innerValue,K=P.limitNumber,O=Ke(P,dn),k=fn(n,A,H),Z=k.inputPreRef,M=sn(n,$),T=h(function(){var x;return(x=n.placeholder)!==null&&x!==void 0?x:d.value.placeholder}),Q=h(function(){var x;return be({autofocus:n.autofocus,disabled:f.value,readonly:n.readonly,placeholder:T.value,maxlength:!n.allowInputOverMax&&n.maxlength||void 0,name:n.name||void 0,type:L.value,autocomplete:(x=n.autocomplete)!==null&&x!==void 0?x:d.value.autocomplete||void 0,unselectable:n.readonly?"on":void 0})}),q=h(function(){return[i.value,_({},"".concat(r.value,"--auto-width"),n.autoWidth&&!n.keepWrapperWidth)]}),Y=be({onFocus:O.emitFocus,onBlur:O.formatAndEmitBlur,onKeydown:M.handleKeydown,onKeyup:M.handleKeyUp,onKeypress:M.handleKeypress,onPaste:M.onHandlePaste,onCompositionend:O.onHandleCompositionend,onCompositionstart:O.onHandleCompositionstart});return function(){var x,g,u=I("prefixIcon"),o=I("suffixIcon"),y=I("passwordIcon"),V=I("label",{silent:!0}),re=I("suffix"),le=K.value&&n.showLimitNumber?C("div",{class:["".concat(S.value,"-input__limit-number"),_({},"".concat(S.value,"-is-disabled"),f.value)]},[K.value]):null,oe=V?C("div",{class:"".concat(r.value,"__prefix")},[V]):null,ue=re||le?C("div",{class:"".concat(r.value,"__suffix")},[re,le]):null;n.type==="password"&&(L.value==="password"?o=C(m,{class:"".concat(r.value,"__suffix-clear"),onClick:O.emitPassword},null):L.value==="text"&&(o=C(v,{class:"".concat(r.value,"__suffix-clear"),onClick:O.emitPassword},null))),z.value&&(n.type==="password"?y=C(p,{ref:O.clearIconRef,class:"".concat(r.value,"__suffix-clear"),onClick:O.emitClear,onMousedown:O.onClearIconMousedown},null):o=C(p,{ref:O.clearIconRef,class:"".concat(r.value,"__suffix-clear"),onClick:O.emitClear,onMousedown:O.onClearIconMousedown},null));var je=[r.value,n.inputClass,_(_(_(_(_(_(_(_(_({},N.value[n.size],n.size!=="medium"),b.value.disabled,f.value),b.value.focused,f.value?!1:D.value),"".concat(S.value,"-is-").concat(F.value),F.value&&F.value!=="default"),"".concat(S.value,"-align-").concat(n.align),n.align!=="left"),"".concat(S.value,"-is-readonly"),n.readonly),"".concat(r.value,"--prefix"),u||oe),"".concat(r.value,"--suffix"),o||ue),"".concat(r.value,"--focused"),D.value)],ie=I("tips"),Me=[c.value,"".concat(S.value,"-tips"),"".concat(S.value,"-is-").concat(F.value||"default")];return De(C("div",{class:q.value},[C("div",{class:je,onClick:O.onRootClick,onMouseenter:M.onInputMouseenter,onMouseleave:M.onInputMouseleave,onWheel:M.onHandleMousewheel},[u?C("span",{class:["".concat(r.value,"__prefix"),"".concat(r.value,"__prefix-icon")]},[u]):null,oe,C("input",ze({class:["".concat(r.value,"__inner"),_({},"".concat(r.value,"--soft-hidden"),!n.showInput)]},Q.value,Y,{ref:A,value:X.value?(x=J.value)!==null&&x!==void 0?x:"":(g=G.value)!==null&&g!==void 0?g:"",onInput:function(Ve){return O.handleInput(Ve)}}),null),n.autoWidth&&C("span",{ref:Z,class:"".concat(S.value,"-input__input-pre")},[H.value||T.value]),ue,y?C("span",{class:["".concat(r.value,"__suffix"),"".concat(r.value,"__suffix-icon"),"".concat(r.value,"__clear")]},[y]):null,o?C("span",{class:["".concat(r.value,"__suffix"),"".concat(r.value,"__suffix-icon"),_({},"".concat(r.value,"__clear"),z.value)]},[o]):null]),ie&&C("div",{class:Me},[ie])]),[[Re,n.type!=="hidden"]])}}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var pn={separate:Boolean};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var gn=R({name:"TInputGroup",props:pn,setup:function(n){var a=B("input-group"),t=we(),l=h(function(){return[a.value,_({},"".concat(a.value,"--separate"),n.separate)]});return function(){return C("div",{class:l.value},[t("default")])}}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Cn=Oe(mn);Oe(gn);export{Qe as B,en as C,On as F,Cn as I,ln as V,Ke as _,on as a,nn as b,an as c,xe as d,un as e,We as i,tn as l,wn as u};
|
|
Binary file not shown.
|
@ -1,13 +1,13 @@
|
||||||
import{b as h,c as C,d as w,e as x,f as i,g as P,h as k,i as j,w as _}from"./index.b5cfa36a.js";import{d as I,c as N,aI as c}from"./arco.76adc92f.js";/**
|
import{b as h,c as C,d as w,e as x,f as i,g as P,h as k,i as j,w as _}from"./index.abba0c49.js";import{d as I,c as N,aI as c}from"./arco.b087a425.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.9
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/var T={content:{type:[String,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},download:{type:[String,Boolean]},hover:{type:String,default:"underline",validator:function(e){return e?["color","underline"].includes(e):!0}},href:{type:String,default:""},prefixIcon:{type:Function},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},suffixIcon:{type:Function},target:{type:String,default:""},theme:{type:String,default:"default",validator:function(e){return e?["default","primary","danger","warning","success"].includes(e):!0}},underline:Boolean,onClick:Function};/**
|
*/var T={content:{type:[String,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},download:{type:[String,Boolean]},hover:{type:String,default:"underline",validator:function(e){return e?["color","underline"].includes(e):!0}},href:{type:String,default:""},prefixIcon:{type:Function},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},suffixIcon:{type:Function},target:{type:String,default:""},theme:{type:String,default:"default",validator:function(e){return e?["default","primary","danger","warning","success"].includes(e):!0}},underline:Boolean,onClick:Function};/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.9
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/function m(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);e&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),t.push.apply(t,a)}return t}function D(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?m(Object(t),!0).forEach(function(a){i(n,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach(function(a){Object.defineProperty(n,a,Object.getOwnPropertyDescriptor(t,a))})}return n}var E=I({name:"TLink",props:D({},T),emits:["click"],setup:function(e,t){var a=t.emit,l=k(),s=j(),r=h("link"),d=C(),g=d.STATUS,p=d.SIZE,y=w("classPrefix"),b=y.classPrefix,o=x(),O=N(function(){return["".concat(r.value),"".concat(r.value,"--theme-").concat(e.theme),i(i(i(i({},p.value[e.size],e.size!=="medium"),g.value.disabled,o.value),"".concat(b.value,"-is-underline"),e.underline),"".concat(r.value,"--hover-").concat(e.hover),!o.value)]}),S=function(u){o.value||a("click",u)};return function(){var f=l("default","content"),u=s("prefixIcon"),v=s("suffixIcon");return c("a",{class:P(O.value),href:o.value||!e.href?void 0:e.href,target:e.target?e.target:void 0,download:e.download?e.download:void 0,onClick:S},[u?c("span",{class:"".concat(r.value,"__prefix-icon")},[u]):null,f,v?c("span",{class:"".concat(r.value,"__suffix-icon")},[v]):null])}}});/**
|
*/function m(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);e&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),t.push.apply(t,a)}return t}function D(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?m(Object(t),!0).forEach(function(a){i(n,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach(function(a){Object.defineProperty(n,a,Object.getOwnPropertyDescriptor(t,a))})}return n}var E=I({name:"TLink",props:D({},T),emits:["click"],setup:function(e,t){var a=t.emit,l=k(),s=j(),r=h("link"),d=C(),g=d.STATUS,p=d.SIZE,y=w("classPrefix"),b=y.classPrefix,o=x(),O=N(function(){return["".concat(r.value),"".concat(r.value,"--theme-").concat(e.theme),i(i(i(i({},p.value[e.size],e.size!=="medium"),g.value.disabled,o.value),"".concat(b.value,"-is-underline"),e.underline),"".concat(r.value,"--hover-").concat(e.hover),!o.value)]}),S=function(u){o.value||a("click",u)};return function(){var f=l("default","content"),u=s("prefixIcon"),v=s("suffixIcon");return c("a",{class:P(O.value),href:o.value||!e.href?void 0:e.href,target:e.target?e.target:void 0,download:e.download?e.download:void 0,onClick:S},[u?c("span",{class:"".concat(r.value,"__prefix-icon")},[u]):null,f,v?c("span",{class:"".concat(r.value,"__suffix-icon")},[v]):null])}}});/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.9
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/var L=_(E);export{L};
|
*/var L=_(E);export{L};
|
BIN
assets/index.82fa7dea.js.gz
Normal file
BIN
assets/index.82fa7dea.js.gz
Normal file
Binary file not shown.
25
assets/index.8300d0d3.js
Normal file
25
assets/index.8300d0d3.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.8300d0d3.js.gz
Normal file
BIN
assets/index.8300d0d3.js.gz
Normal file
Binary file not shown.
1
assets/index.8815dd10.css
Normal file
1
assets/index.8815dd10.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.8815dd10.css.gz
Normal file
BIN
assets/index.8815dd10.css.gz
Normal file
Binary file not shown.
8
assets/index.90c00057.js
Normal file
8
assets/index.90c00057.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.90c00057.js.gz
Normal file
BIN
assets/index.90c00057.js.gz
Normal file
Binary file not shown.
1
assets/index.91ce09f3.js
Normal file
1
assets/index.91ce09f3.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
import{v as H,t as M,ad as N,O,_ as U}from"./index.abba0c49.js";/* empty css *//* empty css *//* empty css */import{d as L,r as y,c as V,bI as j,C as G,D as W,aI as i,aH as r,G as S,aN as f,aM as g,u as h,a6 as Z,b8 as q,bi as F,bK as J,bO as Q}from"./arco.b087a425.js";import{u as X}from"./loading.9d534c38.js";import{e as v,a as C,u as w,f as Y,h as D,s as ee,b,g as te}from"./serial.c6b76da8.js";import{I as P}from"./index.eda8ee4b.js";import{M as ae,T as ne}from"./index.6b753417.js";import"./chart.836a9fe2.js";import"./vue.23fb8a9a.js";import"./dep-71c4f289.dccc98fb.js";import"./form-model.9a62c8df.js";import"./slot.b022806d.js";const oe={class:"container"},re={name:"Radio"},se=L({...re,setup(ie){const{t:m}=H.exports.useI18n(),o=M(),{loading:I,setLoading:u}=X(!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: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-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: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: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:m("cps.operate"),colKey:"operate",align:"left",width:150}]),T=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 s=await C(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)w(e.subarray(n,n+2))!="ffff"?t.push({name:Y(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)},$=async()=>{var t,d,c,n;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(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(D(a.renderData[s/16].mdcid.padStart(4,"0").substring(0,2))),l.set(D(a.renderData[s/16].mdcid.padStart(4,"0").substring(2,4)),1),l.set(ee(a.renderData[s/16].name),2),await b(o.connectPort,s+7424,l,16,(t=o.configuration)==null?void 0:t.uart)}else await b(o.connectPort,s+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 te(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=Z,n=q,s=F,l=J,k=Q,x=O,B=ne,E=j;return G(),W("div",oe,[i(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.mdc")]},null,8,["items"]),i(E,{class:"general-card"},{title:r(()=>[S("span",{onClick:t[0]||(t[0]=()=>{z.showHide+=1})},f(e.$t("menu.cps.mdc")+e.$t("global.onStart")),1)]),default:r(()=>[i(k,{style:{"margin-bottom":"16px"}},{default:r(()=>[i(l,{span:12},{default:r(()=>[i(s,null,{default:r(()=>[i(n,{type:"primary",onClick:T},{icon:r(()=>[i(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceRead")),1)]),_:1}),i(n,{onClick:$},{icon:r(()=>[i(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),i(B,{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]=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:_})=>[S("span",null,[i(h(ae))])]),index:r(({row:p,rowIndex:_})=>[g(f((a.nowPage-1)*a.pageSize+_+1),1)]),operate:r(({row:p,rowIndex:_})=>[i(x,{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 ve=U(se,[["__scopeId","data-v-dfecd3b2"]]);export{ve as default};
|
BIN
assets/index.91ce09f3.js.gz
Normal file
BIN
assets/index.91ce09f3.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
||||||
import{s as A,ac as N,_ as O}from"./index.b5cfa36a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as V,r as C,o as I,bW as P,bI as $,C as R,D as S,aI as s,aH as c,G as p,aM as m,aN as y,n as b,b8 as T,bi as x,bX as D,bG as H,bK as M,bO as j}from"./arco.76adc92f.js";import{f as q}from"./vue.107cc2d0.js";import{d as h,c as U,r as f,j as G,k as g,l as L,m as z,n as W}from"./serial.c6b76da8.js";import"./chart.d41e8c5b.js";const K={class:"container"},X={style:{display:"flex","justify-content":"space-between","align-items":"center"}},J=["innerHTML"],Q={name:"Flash"},Y=V({...Q,setup(Z){const _=A(),e=C({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:"",protocol:"Official"}),d=q();I(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:l,value:u}=await r.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"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},w=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}_.connectPort&&await h(_.connectPort);let t=await U();e.protocol=="Official"&&await f(t,24,1e3);const o=G(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);e.protocol=="Official"&&(await g(t,r),await f(t,24));const n=L(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 W(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),_.updateSettings({connectState:!1})};return(t,o)=>{const r=N,n=T,a=x,l=P,u=D,i=H,B=$,v=M,k=j;return R(),S("div",K,[s(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),s(k,{gutter:20,align:"stretch"},{default:c(()=>[s(v,{span:24},{default:c(()=>[s(B,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:c(()=>[p("div",X,[p("div",null,[s(a,null,{default:c(()=>[s(n,{onClick:F},{default:c(()=>[m(y(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),s(n,{type:"primary",disabled:!e.binaryFile,onClick:w},{default:c(()=>[m(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:c(()=>[s(l,{value:"Official"},{default:c(()=>[m("Official")]),_: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,J)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const ut=O(Y,[["__scopeId","data-v-165ad539"]]);export{ut as default};
|
import{t as A,ad as N,_ as O}from"./index.abba0c49.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as V,r as C,o as I,bW as P,bI as $,C as R,D as S,aI as s,aH as l,G as p,aM as m,aN as y,n as b,b8 as T,bi as x,bX as D,bG as H,bK as M,bO as j}from"./arco.b087a425.js";import{f as q}from"./vue.23fb8a9a.js";import{d as h,c as U,r as f,j as G,k as g,l as L,m as z,n as W}from"./serial.c6b76da8.js";import"./chart.836a9fe2.js";const K={class:"container"},X={style:{display:"flex","justify-content":"space-between","align-items":"center"}},J=["innerHTML"],Q={name:"Flash"},Y=V({...Q,setup(Z){const _=A(),e=C({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:"",protocol:"Official"}),d=q();I(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:c,value:u}=await r.read();if(c)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"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},w=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}_.connectPort&&await h(_.connectPort);let t=await U();e.protocol=="Official"&&await f(t,24,1e3);const o=G(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);e.protocol=="Official"&&(await g(t,r),await f(t,24));const n=L(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 c=n.slice(a,a+256),u=z(c,a,n.length);try{await g(t,u),e.protocol=="Official"?await f(t,26):await W(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),_.updateSettings({connectState:!1})};return(t,o)=>{const r=N,n=T,a=x,c=P,u=D,i=H,B=$,v=M,k=j;return R(),S("div",K,[s(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),s(k,{gutter:20,align:"stretch"},{default:l(()=>[s(v,{span:24},{default:l(()=>[s(B,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:l(()=>[p("div",X,[p("div",null,[s(a,null,{default:l(()=>[s(n,{onClick:F},{default:l(()=>[m(y(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),s(n,{type:"primary",disabled:!e.binaryFile,onClick:w},{default:l(()=>[m(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:l(()=>[s(c,{value:"Official"},{default:l(()=>[m("Official")]),_: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,J)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const ut=O(Y,[["__scopeId","data-v-165ad539"]]);export{ut as default};
|
BIN
assets/index.9a5142cb.js.gz
Normal file
BIN
assets/index.9a5142cb.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.a2f4c3a3.js.gz
Normal file
BIN
assets/index.a2f4c3a3.js.gz
Normal file
Binary file not shown.
Binary file not shown.
5
assets/index.a603a429.js
Normal file
5
assets/index.a603a429.js
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import{w as a,a6 as o}from"./index.abba0c49.js";import"./arco.b087a425.js";/**
|
||||||
|
* tdesign v1.9.9
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var t=a(o);export{t as D};
|
File diff suppressed because one or more lines are too long
BIN
assets/index.abba0c49.js.gz
Normal file
BIN
assets/index.abba0c49.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.aebe639a.js.gz
Normal file
BIN
assets/index.aebe639a.js.gz
Normal file
Binary file not shown.
1
assets/index.b160106e.css
Normal file
1
assets/index.b160106e.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.b160106e.css.gz
Normal file
BIN
assets/index.b160106e.css.gz
Normal file
Binary file not shown.
1
assets/index.b54589a9.css
Normal file
1
assets/index.b54589a9.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.b54589a9.css.gz
Normal file
BIN
assets/index.b54589a9.css.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,13 +1,13 @@
|
||||||
import{j as h,b as w,k as x,l as p,m,n as z,f as o,i as N,w as C}from"./index.b5cfa36a.js";import{d as _,c as y,aI as u,aK as F}from"./arco.76adc92f.js";import{u as k}from"./slot.da750594.js";/**
|
import{j as h,b as w,k as x,l as p,m,n as z,f as o,i as N,w as C}from"./index.abba0c49.js";import{d as _,c as y,aI as u,aK as F}from"./arco.b087a425.js";import{u as k}from"./slot.b022806d.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.9
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/var T={align:{type:String,validator:function(e){return e?["start","end","center","baseline"].includes(e):!0}},breakLine:Boolean,direction:{type:String,default:"horizontal",validator:function(e){return e?["vertical","horizontal"].includes(e):!0}},separator:{type:[String,Function]},size:{type:[String,Number,Array],default:"medium"}};/**
|
*/var T={align:{type:String,validator:function(e){return e?["start","end","center","baseline"].includes(e):!0}},breakLine:Boolean,direction:{type:String,default:"horizontal",validator:function(e){return e?["vertical","horizontal"].includes(e):!0}},separator:{type:[String,Function]},size:{type:[String,Number,Array],default:"medium"}};/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.9
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),r.push.apply(r,a)}return r}function b(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(a){o(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}var O={small:"8px",medium:"16px",large:"24px"},A=h(),D=_({name:"TSpace",props:b(b({},T),{},{forceFlexGapPolyfill:Boolean}),setup:function(e){var r=w("space"),a=N(),f=k(),v=y(function(){return e.forceFlexGapPolyfill||A}),S=y(function(){var n="";x(e.size)?n=e.size.map(function(l){return p(l)?"".concat(l,"px"):m(l)&&O[l]||l}).join(" "):m(e.size)?n=O[e.size]||e.size:p(e.size)&&(n="".concat(e.size,"px"));var i={};if(v.value){var d=n.split(" "),c=z(d,2),s=c[0],j=c[1];i["--td-space-column-gap"]=s,i["--td-space-row-gap"]=j||s}else i.gap=n;return i});function P(){var n=f(),i=a("separator");return n.map(function(d,c){var s=c+1!==n.length&&i;return u(F,null,[u("div",{class:"".concat(r.value,"-item")},[d]),s&&u("div",{class:"".concat(r.value,"-item-separator")},[i])])})}return function(){var n=["".concat(r.value),o(o(o(o({},"".concat(r.value,"-align-").concat(e.align),e.align),"".concat(r.value,"-").concat(e.direction),e.direction),"".concat(r.value,"--break-line"),e.breakLine),"".concat(r.value,"--polyfill"),v.value)];return u("div",{class:n,style:S.value},[P()])}}});/**
|
*/function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),r.push.apply(r,a)}return r}function b(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(a){o(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}var O={small:"8px",medium:"16px",large:"24px"},A=h(),D=_({name:"TSpace",props:b(b({},T),{},{forceFlexGapPolyfill:Boolean}),setup:function(e){var r=w("space"),a=N(),f=k(),v=y(function(){return e.forceFlexGapPolyfill||A}),S=y(function(){var n="";x(e.size)?n=e.size.map(function(l){return p(l)?"".concat(l,"px"):m(l)&&O[l]||l}).join(" "):m(e.size)?n=O[e.size]||e.size:p(e.size)&&(n="".concat(e.size,"px"));var i={};if(v.value){var d=n.split(" "),c=z(d,2),s=c[0],j=c[1];i["--td-space-column-gap"]=s,i["--td-space-row-gap"]=j||s}else i.gap=n;return i});function P(){var n=f(),i=a("separator");return n.map(function(d,c){var s=c+1!==n.length&&i;return u(F,null,[u("div",{class:"".concat(r.value,"-item")},[d]),s&&u("div",{class:"".concat(r.value,"-item-separator")},[i])])})}return function(){var n=["".concat(r.value),o(o(o(o({},"".concat(r.value,"-align-").concat(e.align),e.align),"".concat(r.value,"-").concat(e.direction),e.direction),"".concat(r.value,"--break-line"),e.breakLine),"".concat(r.value,"--polyfill"),v.value)];return u("div",{class:n,style:S.value},[P()])}}});/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.9
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/var G=C(D);export{G as S};
|
*/var G=C(D);export{G as S};
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue