Compare commits

..

No commits in common. "2c0633c3ab4800a43a05c8386680355f6d889266" and "5c3ba2f3d1d22602de4676437c041fc6af83e219" have entirely different histories.

162 changed files with 116 additions and 121 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

46
assets/arco.c29bba08.js Normal file

File diff suppressed because one or more lines are too long

BIN
assets/arco.c29bba08.js.gz Normal file

Binary file not shown.

View file

@ -1,4 +1,4 @@
import{d as N_,s as Ia,i as Pa,t as z_,c as Ti,g as F_,w as Ra,a as Jh,o as V_,b as G_,h as jh,n as H_,u as W_}from"./arco.76adc92f.js";/*! *****************************************************************************
import{d as N_,s as Ia,i as Pa,t as z_,c as Ti,g as F_,w as Ra,a as Jh,o as V_,b as G_,h as jh,n as H_,u as W_}from"./arco.c29bba08.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any

BIN
assets/chart.34708d29.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

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{a6 as N,o as _e,a7 as me,a8 as xe,a9 as be,W as le,aa as we,a1 as ye,f as Fe,a4 as Se,l as te,U as re}from"./index.413febc1.js";/**
import{a6 as N,o as _e,a7 as me,a8 as xe,a9 as be,W as le,aa as we,a1 as ye,f as Fe,a4 as Se,l as te,U as re}from"./index.00fa277a.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.00fa277a.js.gz Normal file

Binary file not shown.

View file

@ -1 +0,0 @@
.arco-icon-hover.arco-collapse-item-icon-hover:before{width:16px;height:16px}.arco-icon-hover.arco-collapse-item-icon-hover:hover:before{background-color:var(--color-fill-2)}.arco-collapse{overflow:hidden;line-height:1.5715;border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium)}.arco-collapse-item{box-sizing:border-box;border-bottom:1px solid var(--color-border-2)}.arco-collapse-item-active>.arco-collapse-item-header{background-color:var(--color-bg-2);border-color:var(--color-neutral-3);transition:border-color 0s ease 0s}.arco-collapse-item-active>.arco-collapse-item-header .arco-collapse-item-header-title{font-weight:500}.arco-collapse-item-active>.arco-collapse-item-header .arco-collapse-item-expand-icon{transform:rotate(90deg)}.arco-collapse-item-active>.arco-collapse-item-header .arco-collapse-item-icon-right .arco-collapse-item-expand-icon{transform:rotate(-90deg)}.arco-collapse-item-header{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;padding-top:8px;padding-bottom:8px;overflow:hidden;color:var(--color-text-1);font-size:14px;line-height:24px;background-color:var(--color-bg-2);border-bottom:1px solid transparent;cursor:pointer;transition:border-color 0s ease .19s}.arco-collapse-item-header-left{padding-right:13px;padding-left:34px}.arco-collapse-item-header-right{padding-right:34px;padding-left:13px}.arco-collapse-item-header-right+.arco-collapse-item-content{padding-left:13px}.arco-collapse-item-header-disabled{color:var(--color-text-4);background-color:var(--color-bg-2);cursor:not-allowed}.arco-collapse-item-header-disabled .arco-collapse-item-header-icon{color:var(--color-text-4)}.arco-collapse-item-header-title{display:inline}.arco-collapse-item-header-extra{float:right}.arco-collapse-item .arco-collapse-item-icon-hover{position:absolute;top:50%;left:13px;text-align:center;transform:translateY(-50%)}.arco-collapse-item .arco-collapse-item-icon-right{right:13px;left:unset}.arco-collapse-item .arco-collapse-item-icon-right>.arco-collapse-item-header-icon-down{transform:rotate(-90deg)}.arco-collapse-item .arco-collapse-item-expand-icon{position:relative;display:block;color:var(--color-neutral-7);font-size:14px;vertical-align:middle;transition:transform .2s cubic-bezier(.34,.69,.1,1)}.arco-collapse-item-content{position:relative;padding-right:13px;padding-left:34px;overflow:hidden;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-1)}.arco-collapse-item-content-expanded{display:block;height:auto}.arco-collapse-item-content-box{padding:8px 0}.arco-collapse-item.arco-collapse-item-disabled>.arco-collapse-item-content{color:var(--color-text-4)}.arco-collapse-item-no-icon>.arco-collapse-item-header{padding-right:13px;padding-left:13px}.arco-collapse-item:last-of-type{border-bottom:none}.arco-collapse.arco-collapse-borderless{border:none}.arco-collapse:after{display:table;clear:both;content:""}.collapse-slider-enter-from,.collapse-slider-leave-to{height:0}.collapse-slider-enter-active,.collapse-slider-leave-active{transition:height .2s cubic-bezier(.34,.69,.1,1)}[data-v-6ba30df9] .arco-collapse-item-content-expend,[data-v-6ba30df9] .arco-collapse-item-content-box{background-color:var(--color-bg-2)}.banner[data-v-6ba30df9]{width:100%;padding:20px 20px 0;padding:.781vw .781vw 0;background-color:var(--color-bg-2);border-radius:4px 4px 0 0}[data-v-6ba30df9] .arco-icon-home{margin-right:6px}body[arco-theme=dark] .tencent[data-v-6ba30df9]{filter:invert(1) hue-rotate(180deg)}.container[data-v-8f743d99]{background-color:var(--color-fill-2);padding:16px 20px;padding:.625vw .781vw;padding-bottom:0;display:flex}.left-side[data-v-8f743d99]{flex:1;overflow:auto}.right-side[data-v-8f743d99]{width:280px;width:10.938vw;margin-left:16px;margin-left:.625vw}.panel[data-v-8f743d99]{background-color:var(--color-bg-2);border-radius:4px;overflow:auto}[data-v-8f743d99] .panel-border{margin-bottom:0;border-bottom:1px solid rgb(var(--gray-2))}.moduler-wrap[data-v-8f743d99]{border-radius:4px;background-color:var(--color-bg-2)}.moduler-wrap[data-v-8f743d99] .text{font-size:12px;text-align:center;color:rgb(var(--gray-8))}.moduler-wrap[data-v-8f743d99] .wrapper{margin-bottom:8px;text-align:center;cursor:pointer}.moduler-wrap[data-v-8f743d99] .wrapper:last-child .text{margin-bottom:0}.moduler-wrap[data-v-8f743d99] .wrapper:hover .icon{color:rgb(var(--arcoblue-6));background-color:#e8f3ff}.moduler-wrap[data-v-8f743d99] .wrapper:hover .text{color:rgb(var(--arcoblue-6))}.moduler-wrap[data-v-8f743d99] .icon{display:inline-block;width:32px;width:1.25vw;height:32px;height:1.25vw;margin-bottom:4px;color:rgb(var(--dark-gray-1));line-height:32px;line-height:1.25vw;font-size:16px;font-size:.625vw;text-align:center;background-color:rgb(var(--gray-1));border-radius:4px}.mobile .container[data-v-8f743d99]{display:block}.mobile .right-side[data-v-8f743d99]{width:100%;margin-left:0;margin-top:16px;margin-top:.625vw}

Binary file not shown.

View file

@ -1 +1 @@
import{v as E,s as M,ac as N,N as H,_ as O}from"./index.413febc1.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.d49b744e.js";import{M as ee,T as te}from"./index.918bac12.js";import"./chart.d41e8c5b.js";import"./vue.107cc2d0.js";import"./dep-6deb4e3a.3da13c94.js";import"./form-model.553a3655.js";import"./slot.c1690aae.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 K,s as M,ac as N,N as H,_ as F}from"./index.00fa277a.js";/* empty css *//* empty css *//* empty css */import{d as L,r as S,c as O,bI as U,C as V,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 J,bi as W,bJ as q,bL as Q}from"./arco.c29bba08.js";import{u as X}from"./loading.d503f2cd.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.956025ef.js";import{M as ee,T as te}from"./index.de261cab.js";import"./chart.34708d29.js";import"./vue.437ba699.js";import"./dep-6deb4e3a.0e14865f.js";import"./form-model.7b007587.js";import"./slot.359e9304.js";const ae={class:"container"},oe={name:"Radio"},ne=L({...oe,setup(re){const{t:D}=K.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=O(()=>[{colKey:"drag",title:D("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:D("cps.rx"),colKey:"rx",align:"left",width:200,cell:(t,{row:n})=>parseFloat(n.rx)?parseFloat(n.rx).toFixed(2):void 0,edit:{component: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=J,e=W,l=q,A=Q,T=H,B=te,E=U;return V(),j("div",ae,[i(p,{items:[t.$t("menu.dashboard"),t.$t("menu.cps.radio")]},null,8,["items"]),i(E,{class:"general-card"},{title:s(()=>[h("span",{onClick:n[0]||(n[0]=()=>{I.showHide+=1})},u(t.$t("menu.cps.radio")+t.$t("global.onStart")),1)]),default:s(()=>[i(A,{style:{"margin-bottom":"16px"}},{default:s(()=>[i(l,{span:12},{default:s(()=>[i(e,null,{default:s(()=>[i(r,{type:"primary",onClick:z},{icon:s(()=>[i(c)]),default:s(()=>[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(B,{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(T,{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=F(ne,[["__scopeId","data-v-be263a43"]]);export{be as default};

BIN
assets/index.0a595a7f.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View file

@ -1 +0,0 @@
import{v as D,ac as E,_ as V}from"./index.413febc1.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as $,r as B,w as H,o as R,bW as T,bI as I,C as p,D as v,aI as l,aH as i,u as A,G as y,aM as c,aN as h,aK as k,aJ as x,aE as S,bX as J,b8 as F,bh as G,bK as K,bO as Y}from"./arco.76adc92f.js";import{g as q}from"./vue.107cc2d0.js";import{u as W}from"./loading.e4b365a7.js";import{L as X}from"./index.f132f61a.js";import{S as z}from"./index.43e2a6eb.js";import"./chart.d41e8c5b.js";import"./slot.c1690aae.js";const P={class:"container"},Q={name:"DIY"},Z=$({...Q,setup(tt){const L=q(),{t:M}=D.exports.useI18n(),N=()=>{L.push({path:"/tool/flash",query:{url:"https://k6.vicicode.cn/diyapi/LOSEHU"+t.flag.join("")+".bin?v="+new Date().getTime()}})},O=()=>{fetch("https://k6.vicicode.cn/diyapi/LOSEHU"+t.flag.join("")+".bin?v="+new Date().getTime()).then(e=>e.blob()).then(e=>{const o=URL.createObjectURL(e),n=document.createElement("a");n.href=o,n.download="LOSEHU-CUSTOM-"+t.flag.join("")+".bin",document.body.appendChild(n),n.click(),document.body.removeChild(n)})},t=B({versions:[],flag:[],disMatrix:[],disName:[],showSort:[]});H(()=>[...t.flag],()=>{w()});const w=()=>{t.flag.map((e,o)=>{t.disMatrix[o].forEach((n,r)=>{t.versions.indexOf("LOSEHU"+t.flag.join("").substring(0,o)+r+t.flag.join("").substring(o+1)+".bin")==-1?t.disMatrix[o].set(r,!0):t.disMatrix[o].set(r,!1)})})},{loading:C,setLoading:b}=W(!0);return R(async()=>{b(!0);let e=await(await fetch("https://k6.vicicode.cn/diyapi/function.json?v="+new Date().getTime())).text();e=JSON.parse(e);let o=[],n=[];e.map(a=>{o[a[a.length-1]-1]=a,n.push(a[a.length-1]-1)}),e=o;let r=[],_=[];e.map(a=>{let m=new Map,d=new Map;for(let s=a[0]*2+1;s<a[0]*3+1;s++)m.set(a[s],!1),M("idea.diy")!=="LOSEHU DIY"?d.set(a[s],a[s-a[0]-a[0]]):d.set(a[s],a[s-a[0]]);r.push(m),_.push(d)}),t.flag=new Array(e.length).fill("0"),t.disName=_,t.disMatrix=r,t.showSort=n;const g=await(await fetch("https://k6.vicicode.cn/diyapi/version.json?v="+new Date().getTime())).text();t.versions=JSON.parse(g),w(),b(!1)}),(e,o)=>{const n=E,r=X,_=T,g=J,a=F,m=G,d=z,s=I,U=K,j=Y;return p(),v("div",P,[l(n,{items:[e.$t("menu.workshop"),e.$t("idea.diy")]},null,8,["items"]),l(j,{gutter:20,align:"stretch"},{default:i(()=>[l(U,{span:24},{default:i(()=>[l(s,{class:"general-card",title:e.$t("idea.diy"),loading:A(C)},{default:i(()=>[l(d,{direction:"vertical"},{default:i(()=>[y("div",null,[c(h(e.$t("oi")),1),l(r,{theme:"primary",href:"https://github.com/losehu/uv-k5-firmware-custom",target:"_blank"},{default:i(()=>[c("https://github.com/losehu/uv-k5-firmware-custom")]),_:1})]),(p(!0),v(k,null,x(t.showSort,f=>(p(),S(g,{modelValue:t.flag[f],"onUpdate:modelValue":u=>t.flag[f]=u,type:"button"},{default:i(()=>[(p(!0),v(k,null,x(t.disMatrix[f],u=>(p(),S(_,{value:u[0],disabled:u[1]},{default:i(()=>[c(h(t.disName[f].get(u[0])),1)]),_:2},1032,["value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"]))),256)),y("div",null,[l(a,{type:"primary",onClick:N},{default:i(()=>[c(h(e.$t("diy.generate")),1)]),_:1}),c("\xA0\xA0 "),l(m,{onClick:O},{default:i(()=>[c(h(e.$t("global.download")),1)]),_:1})])]),_:1})]),_:1},8,["title","loading"])]),_:1})]),_:1})])}}});const _t=V(Z,[["__scopeId","data-v-09e34cfd"]]);export{_t as default};

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

View file

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

Binary file not shown.

View file

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

View file

@ -0,0 +1 @@
[data-v-dfecd3b2] ::-webkit-scrollbar-thumb{border-radius:0!important}[data-v-dfecd3b2] .scrollbar::-webkit-scrollbar{height:10px}[data-v-dfecd3b2] .t-table__content::-webkit-scrollbar{height:15px}.container[data-v-dfecd3b2]{padding:0 20px 20px}[data-v-dfecd3b2] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-dfecd3b2]{margin-left:12px;cursor:pointer}.active[data-v-dfecd3b2]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-dfecd3b2]{display:flex;align-items:center;width:200px}.setting .title[data-v-dfecd3b2]{margin-left:12px;cursor:pointer}.ttable[data-v-dfecd3b2] .t-table__affixed-header-elm-wrap{height:60px!important}.ttable[data-v-dfecd3b2] .t-table__content{scrollbar-width:auto!important}

View file

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

View file

@ -1,4 +1,4 @@
import{d as R,c as t,aI as a,aU as V}from"./arco.76adc92f.js";import{b as u,c as W,ab as X,i as Z,m as U,w as k}from"./index.413febc1.js";/**
import{d as R,c as t,aI as a,aU as V}from"./arco.c29bba08.js";import{b as u,c as W,ab as X,i as Z,m as U,w as k}from"./index.00fa277a.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

BIN
assets/index.261a13f3.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,4 +1,4 @@
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.413febc1.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.00fa277a.js";import{d as I,c as N,aI as c}from"./arco.c29bba08.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

BIN
assets/index.2958c05f.js.gz Normal file

Binary file not shown.

Binary file not shown.

View file

@ -1 +0,0 @@
[data-v-be263a43] ::-webkit-scrollbar-thumb{border-radius:0!important}[data-v-be263a43] .scrollbar::-webkit-scrollbar{height:10px}[data-v-be263a43] .t-table__content::-webkit-scrollbar{height:15px}.container[data-v-be263a43]{padding:0 20px 20px;padding:0 .781vw .781vw}[data-v-be263a43] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-be263a43]{margin-left:12px;cursor:pointer}.active[data-v-be263a43]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-be263a43]{display:flex;align-items:center;width:200px;width:7.813vw}.setting .title[data-v-be263a43]{margin-left:12px;cursor:pointer}.ttable[data-v-be263a43] .t-table__affixed-header-elm-wrap{height:60px!important;height:2.344vw!important}.ttable[data-v-be263a43] .t-table__content{scrollbar-width:auto!important}

View file

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

View file

@ -1 +0,0 @@
[data-v-dfecd3b2] ::-webkit-scrollbar-thumb{border-radius:0!important}[data-v-dfecd3b2] .scrollbar::-webkit-scrollbar{height:10px}[data-v-dfecd3b2] .t-table__content::-webkit-scrollbar{height:15px}.container[data-v-dfecd3b2]{padding:0 20px 20px;padding:0 .781vw .781vw}[data-v-dfecd3b2] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-dfecd3b2]{margin-left:12px;cursor:pointer}.active[data-v-dfecd3b2]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-dfecd3b2]{display:flex;align-items:center;width:200px;width:7.813vw}.setting .title[data-v-dfecd3b2]{margin-left:12px;cursor:pointer}.ttable[data-v-dfecd3b2] .t-table__affixed-header-elm-wrap{height:60px!important;height:2.344vw!important}.ttable[data-v-dfecd3b2] .t-table__content{scrollbar-width:auto!important}

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

View file

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

View file

@ -1 +1 @@
import{s as L,ac as N,_ as F}from"./index.413febc1.js";/* empty css *//* empty css *//* empty css */import{d as U,r as V,o as j,bI as O,bS as A,C as h,D as b,aI as f,aH as g,G as x,aK as $,aJ as k,F as K,aM as y,aN as v,b8 as T,bi as q,bK as z,bO as H,bm as G,bn as J}from"./arco.76adc92f.js";import{f as Q}from"./vue.107cc2d0.js";import{e as W,b as X,g as Y}from"./serial.c6b76da8.js";import"./chart.d41e8c5b.js";const E=w=>(G("data-v-94536801"),w=w(),J(),w),Z={class:"container"},tt=E(()=>x("div",{id:"canvasDiv",style:{zoom:"250%",display:"none"}},null,-1)),et={style:{padding:"0",margin:"0","border-spacing":"0"}},ot=["onMousedown","onMouseover"],nt=E(()=>x("br",null,null,-1)),at={name:"Backup"},it=U({...at,setup(w){const p=L(),s=V({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=Q();j(async()=>{if(I.query.url){const e=await fetch(I.query.url,{responseType:"blob"});M(window.URL.createObjectURL(await e.blob()))}});const D=()=>{const e=s.matrix;e.map((n,t)=>{n.map((a,l)=>{e[t][l]=a=="#fff"?"#000":"#fff"})}),s.matrix=e},S=(e,n)=>{if(s.mousedown){const t=s.matrix;t[n][e]=s.matrix[n][e]=="#fff"?"#000":"#fff",s.matrix=t}},M=e=>{const n=document.createElement("canvas");n.width=128,n.height=64;const t=n.cloneNode(),a=document.getElementById("canvasDiv");a.innerHTML="",a==null||a.append(n,t);const l=new Image;l.src=e,l.onload=()=>{const i=n.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,n.width,n.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},R=()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const n=new Blob([e.files[0]],{type:"application/octet-stream"}),t=URL.createObjectURL(n),a=document.createElement("canvas");a.width=128,a.height=64;const l=new Image;l.src=t,l.onload=()=>{const i=a.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,a.width,a.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},e.click()},B=async()=>{const e=s.matrix,n=document.createElement("canvas");n.width=128,n.height=64;const t=n.getContext("2d");t&&(t.fillStyle="#fff",t.fillRect(0,0,n.width,n.height),t.fillStyle="#000");for(let l=0;l<64;l++)for(let i=0;i<128;i++)e[l][i]=="#000"&&(t==null||t.beginPath(),t==null||t.rect(i,l,1,1),t==null||t.fill());const a=document.createElement("a");a.href=n.toDataURL("image/jpeg",1),a.download="image.jpg",a.click()},P=async()=>{var l,i,m,_,d;const e=new Uint8Array(1024);let n=0;for(let o=0;o<64;o+=8)for(let r=0;r<128;r++){let u=0;for(let c=0;c<8;c++)u|=(s.matrix[o+c][r]=="#000"?1:0)<<c;e[n++]=u}if(s.binaryFile=e,p.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((l=p.configuration)==null?void 0:l.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((i=p.configuration)==null?void 0:i.charset)!="losehu"&&((m=p.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}s.loading=!0;let t=123728;((_=p.configuration)==null?void 0:_.charset)=="gb2312"&&(t=8320),await W(p.connectPort);const a=s.binaryFile;for(let o=t;o<a.length+t;o+=128)await X(p.connectPort,o,a.slice(o-t,o-t+128),a.slice(o-t,o-t+128).length,(d=p.configuration)==null?void 0:d.uart);await Y(p.connectPort),s.loading=!1};return(e,n)=>{const t=N,a=T,l=q,i=O,m=A,_=z,d=H;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:K("background-color: "+u+"; height: 5px; width: 3.5px;")},null,44,ot))),256))]))),256))])]),nt,f(l,null,{default:g(()=>[f(a,{onClick:R},{default:g(()=>[y(v(e.$t("tool.selectImage")),1)]),_:1}),f(a,{disabled:s.matrix.length<64,onClick:D},{default:g(()=>[y(v(e.$t("image.negative")),1)]),_:1},8,["disabled"]),f(a,{disabled:s.matrix.length<64,onClick:B},{default:g(()=>[y(v(e.$t("cps.save")),1)]),_:1},8,["disabled"]),f(a,{type:"primary",disabled:s.matrix.length<64,onClick:P},{default:g(()=>[y(v(e.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=F(it,[["__scopeId","data-v-94536801"]]);export{pt as default};
import{s as L,ac as N,_ as F}from"./index.00fa277a.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,b8 as q,bi as z,bJ as H,bL as J,bm as K,bn as G}from"./arco.c29bba08.js";import{f as Q}from"./vue.437ba699.js";import{e as W,b as X,g as Y}from"./serial.c6b76da8.js";import"./chart.34708d29.js";const E=w=>(K("data-v-94536801"),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),a.slice(o-t,o-t+128).length,(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-94536801"]]);export{pt as default};

BIN
assets/index.3b56a1cc.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.

Binary file not shown.

1
assets/index.41b83355.js Normal file
View file

@ -0,0 +1 @@
import{v as V,ac as j,_ as B}from"./index.00fa277a.js";/* empty css *//* empty css *//* empty css */import{d as C,r as E,w as O,o as U,bT as I,bI as T,C as u,D as h,aI as r,aH as i,u as $,G as H,aM as f,aN as v,aK as x,aJ as y,aE as M,bU as J,b8 as R,bJ as F,bL as G}from"./arco.c29bba08.js";import{g as Y}from"./vue.437ba699.js";import{u as q}from"./loading.d503f2cd.js";import{L as A}from"./index.2958c05f.js";import{S as K}from"./index.f248ecd4.js";import"./chart.34708d29.js";import"./slot.359e9304.js";const z={class:"container"},P={name:"DIY"},Q=C({...P,setup(W){const S=Y(),{t:k}=V.exports.useI18n(),N=()=>{S.push({path:"/tool/flash",query:{url:"https://k6.vicicode.cn/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://k6.vicicode.cn/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),k("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://k6.vicicode.cn/diyapi/version.json?v="+new Date().getTime())).text();t.versions=JSON.parse(g),w(),b(!1)}),(a,o)=>{const l=j,n=A,p=I,g=J,e=R,_=K,c=T,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:$(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(),M(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(),M(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 ct=B(Q,[["__scopeId","data-v-b488fdf4"]]);export{ct as default};

BIN
assets/index.41b83355.js.gz Normal file

Binary file not shown.

View file

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

Binary file not shown.

View file

@ -1 +1 @@
import{_ as n}from"./index.413febc1.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.00fa277a.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.c29bba08.js";import{g as m}from"./vue.437ba699.js";import"./chart.34708d29.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

BIN
assets/index.4a57f3d1.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View file

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

File diff suppressed because one or more lines are too long

BIN
assets/index.551858ae.js.gz Normal file

Binary file not shown.

View file

@ -1 +1 @@
import{_}from"./index.413febc1.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 v,bm as A,bn as b,C as D}from"./arco.76adc92f.js";import"./chart.d41e8c5b.js";import"./vue.107cc2d0.js";const l=u=>(A("data-v-6a0d3981"),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://k6.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:v(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-6a0d3981"]]);export{U as default};
import{_}from"./index.00fa277a.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 v,bm as A,bn as b,C as D}from"./arco.c29bba08.js";import"./chart.34708d29.js";import"./vue.437ba699.js";const l=u=>(A("data-v-6a0d3981"),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://k6.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:v(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-6a0d3981"]]);export{U as default};

BIN
assets/index.561cda5e.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

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

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.626a7443.js.gz Normal file

Binary file not shown.

View file

@ -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};

View file

@ -1,4 +1,4 @@
import{w as a,a5 as o}from"./index.413febc1.js";import"./arco.76adc92f.js";/**
import{w as a,a5 as o}from"./index.00fa277a.js";import"./arco.c29bba08.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

Binary file not shown.

View file

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

View file

@ -0,0 +1 @@
[data-v-be263a43] ::-webkit-scrollbar-thumb{border-radius:0!important}[data-v-be263a43] .scrollbar::-webkit-scrollbar{height:10px}[data-v-be263a43] .t-table__content::-webkit-scrollbar{height:15px}.container[data-v-be263a43]{padding:0 20px 20px}[data-v-be263a43] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-be263a43]{margin-left:12px;cursor:pointer}.active[data-v-be263a43]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-be263a43]{display:flex;align-items:center;width:200px}.setting .title[data-v-be263a43]{margin-left:12px;cursor:pointer}.ttable[data-v-be263a43] .t-table__affixed-header-elm-wrap{height:60px!important}.ttable[data-v-be263a43] .t-table__content{scrollbar-width:auto!important}

View file

@ -1 +1 @@
import{v as N,s as H,ac as M,N as U,_ as L}from"./index.413febc1.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.d49b744e.js";import{M as ae,T as ne}from"./index.918bac12.js";import"./chart.d41e8c5b.js";import"./vue.107cc2d0.js";import"./dep-6deb4e3a.3da13c94.js";import"./form-model.553a3655.js";import"./slot.c1690aae.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};
import{v as N,s as H,ac as L,N as M,_ as U}from"./index.00fa277a.js";/* empty css *//* empty css *//* empty css */import{d as V,r as y,c as O,bI as j,C as G,D as J,aI as i,aH as r,G as S,aN as f,aM as g,u as h,a6 as W,b8 as Z,bi as q,bJ as F,bL as Q}from"./arco.c29bba08.js";import{u as X}from"./loading.d503f2cd.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.956025ef.js";import{M as ae,T as ne}from"./index.de261cab.js";import"./chart.34708d29.js";import"./vue.437ba699.js";import"./dep-6deb4e3a.0e14865f.js";import"./form-model.7b007587.js";import"./slot.359e9304.js";const oe={class:"container"},re={name:"Radio"},se=V({...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=O(()=>[{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=L,c=W,n=Z,s=q,l=F,K=Q,x=M,B=ne,E=j;return G(),J("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.7ae721e1.js.gz Normal file

Binary file not shown.

View file

@ -1 +1 @@
.arco-result{box-sizing:border-box;width:100%;padding:32px 32px 24px}.arco-result-icon{margin-bottom:16px;font-size:20px;text-align:center}.arco-result-icon-tip{display:flex;width:45px;height:45px;align-items:center;justify-content:center;border-radius:50%;margin:0 auto}.arco-result-icon-custom .arco-result-icon-tip{font-size:45px;color:inherit;width:unset;height:unset}.arco-result-icon-success .arco-result-icon-tip{color:rgb(var(--success-6));background-color:var(--color-success-light-1)}.arco-result-icon-error .arco-result-icon-tip{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1)}.arco-result-icon-info .arco-result-icon-tip{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1)}.arco-result-icon-warning .arco-result-icon-tip{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1)}.arco-result-icon-404,.arco-result-icon-403,.arco-result-icon-500{padding-top:24px}.arco-result-icon-404 .arco-result-icon-tip,.arco-result-icon-403 .arco-result-icon-tip,.arco-result-icon-500 .arco-result-icon-tip{width:92px;height:92px;line-height:92px}.arco-result-title{color:var(--color-text-1);font-weight:500;font-size:14px;line-height:1.5715;text-align:center}.arco-result-subtitle{color:var(--color-text-2);font-size:14px;line-height:1.5715;text-align:center}.arco-result-extra{margin-top:20px;text-align:center}.arco-result-content{margin-top:20px}.content[data-v-8bef407f]{position:absolute;top:50%;left:50%;margin-left:-95px;margin-left:-3.711vw;margin-top:-121px;margin-top:-4.727vw;text-align:center}
.arco-result{box-sizing:border-box;width:100%;padding:32px 32px 24px}.arco-result-icon{margin-bottom:16px;font-size:20px;text-align:center}.arco-result-icon-tip{display:flex;width:45px;height:45px;align-items:center;justify-content:center;border-radius:50%;margin:0 auto}.arco-result-icon-custom .arco-result-icon-tip{font-size:45px;color:inherit;width:unset;height:unset}.arco-result-icon-success .arco-result-icon-tip{color:rgb(var(--success-6));background-color:var(--color-success-light-1)}.arco-result-icon-error .arco-result-icon-tip{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1)}.arco-result-icon-info .arco-result-icon-tip{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1)}.arco-result-icon-warning .arco-result-icon-tip{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1)}.arco-result-icon-404,.arco-result-icon-403,.arco-result-icon-500{padding-top:24px}.arco-result-icon-404 .arco-result-icon-tip,.arco-result-icon-403 .arco-result-icon-tip,.arco-result-icon-500 .arco-result-icon-tip{width:92px;height:92px;line-height:92px}.arco-result-title{color:var(--color-text-1);font-weight:500;font-size:14px;line-height:1.5715;text-align:center}.arco-result-subtitle{color:var(--color-text-2);font-size:14px;line-height:1.5715;text-align:center}.arco-result-extra{margin-top:20px;text-align:center}.arco-result-content{margin-top:20px}.content[data-v-8bef407f]{position:absolute;top:50%;left:50%;margin-left:-95px;margin-top:-121px;text-align:center}

Binary file not shown.

File diff suppressed because one or more lines are too long

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

Binary file not shown.

1
assets/index.82108b79.js Normal file

File diff suppressed because one or more lines are too long

BIN
assets/index.82108b79.js.gz Normal file

Binary file not shown.

1
assets/index.886ea3b9.js Normal file

File diff suppressed because one or more lines are too long

BIN
assets/index.886ea3b9.js.gz Normal file

Binary file not shown.

View file

@ -1,4 +1,4 @@
import{e as pc,b as vc,c as mc,n as gc,f as pt,a2 as q0,m as Q0,k as _c,ab as wc,w as Tc,v as Ec,s as kc,ac as Sc,N as Fc,_ as Ac}from"./index.413febc1.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as ui,t as Cc,c as vt,w as yc,h as en,aI as Oe,r as rn,bA as Dc,o as Oc,bI as Rc,C as tn,D as Ic,aH as Pe,G as x0,aN as tt,aM as Xr,aE as Nc,aF as Pc,u as an,a6 as bc,b8 as Lc,bi as Mc,bK as Bc,O as Uc,bv as Vc,bO as Wc,bm as Hc,bn as Gc}from"./arco.76adc92f.js";import{f as Xc}from"./vue.107cc2d0.js";import{u as zc}from"./loading.e4b365a7.js";import{e as nn,a as Za,u as sn,f as Kc,h as qa,s as $c,b as Qa,g as jc}from"./serial.c6b76da8.js";import{b as Yc,I as e0}from"./index.d49b744e.js";import{S as Or,C as Jc,a as Zc}from"./dep-6deb4e3a.3da13c94.js";import{M as qc,T as Qc}from"./index.918bac12.js";import"./chart.d41e8c5b.js";import"./form-model.553a3655.js";import"./slot.c1690aae.js";/**
import{e as pc,b as vc,c as mc,n as gc,f as pt,a2 as q0,m as Q0,k as _c,ab as wc,w as Tc,v as Ec,s as kc,ac as Sc,N as Fc,_ as Ac}from"./index.00fa277a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as ui,t as Cc,c as vt,w as yc,h as en,aI as Oe,r as rn,bA as Dc,o as Oc,bI as Rc,C as tn,D as Ic,aH as Pe,G as x0,aN as tt,aM as Xr,aE as Nc,aF as Pc,u as an,a6 as bc,b8 as Lc,bi as Mc,bJ as Bc,O as Uc,bv as Vc,bL as Wc,bm as Hc,bn as Gc}from"./arco.c29bba08.js";import{f as Xc}from"./vue.437ba699.js";import{u as zc}from"./loading.d503f2cd.js";import{e as nn,a as Za,u as sn,f as Kc,h as qa,s as $c,b as Qa,g as jc}from"./serial.c6b76da8.js";import{b as Yc,I as e0}from"./index.956025ef.js";import{S as Or,C as Jc,a as Zc}from"./dep-6deb4e3a.0e14865f.js";import{M as qc,T as Qc}from"./index.de261cab.js";import"./chart.34708d29.js";import"./form-model.7b007587.js";import"./slot.359e9304.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

BIN
assets/index.89412b9b.js.gz Normal file

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1 @@
[data-v-d023f8fd] ::-webkit-scrollbar-thumb{border-radius:0!important}[data-v-d023f8fd] .scrollbar::-webkit-scrollbar{height:10px}[data-v-d023f8fd] .t-table__content::-webkit-scrollbar{height:15px}.container[data-v-d023f8fd]{padding:0 20px 20px}[data-v-d023f8fd] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-d023f8fd]{margin-left:12px;cursor:pointer}.active[data-v-d023f8fd]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-d023f8fd]{display:flex;align-items:center;width:200px}.setting .title[data-v-d023f8fd]{margin-left:12px;cursor:pointer}.ttable[data-v-d023f8fd] .t-table__affixed-header-elm-wrap{height:60px!important}.ttable[data-v-d023f8fd] .t-table__content{scrollbar-width:auto!important}

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