mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 08:15:18 +00:00
update
This commit is contained in:
parent
0e754cb3ad
commit
f407c71381
133 changed files with 59 additions and 58 deletions
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.bdf21bb5.js.gz
Normal file
BIN
assets/default-layout.bdf21bb5.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.df643d0f.css.gz
Normal file
BIN
assets/default-layout.df643d0f.css.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/dep-6deb4e3a.543803ef.js.gz
Normal file
BIN
assets/dep-6deb4e3a.543803ef.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/dialog.daf0319a.js.gz
Normal file
BIN
assets/dialog.daf0319a.js.gz
Normal file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{Z as N,f as _e,$ as me,a0 as xe,G as le,K as be}from"./index.733e4619.js";import{_ as we,a as Fe}from"./index.a5774793.js";import{_ as Se}from"./useConfig.0c1b7e18.js";import{i as ye}from"./useDisabled.a0794d42.js";import{i as te,b as re}from"./helper.61f7445b.js";/**
|
||||
import{Z as N,f as _e,$ as me,a0 as xe,G as le,K as be}from"./index.12bdcbda.js";import{_ as we,a as Fe}from"./index.211f6b2b.js";import{_ as Se}from"./useConfig.8e3dba5c.js";import{i as ye}from"./useDisabled.5453a5a8.js";import{i as te,b as re}from"./helper.b36c554d.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/form-model.6510a5a3.js.gz
Normal file
BIN
assets/form-model.6510a5a3.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{c as v,b as f}from"./useConfig.0c1b7e18.js";import{g as b,h as d}from"./index.733e4619.js";/**
|
||||
import{c as v,b as f}from"./useConfig.8e3dba5c.js";import{g as b,h as d}from"./index.12bdcbda.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/helper.b36c554d.js.gz
Normal file
BIN
assets/helper.b36c554d.js.gz
Normal file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{u as A,a as B,_ as d,b as N}from"./useConfig.0c1b7e18.js";import{f as R,o as I,bt as z,d as D,c as P,aI as k,h as F}from"./arco.7f845a67.js";import{L as M}from"./index.a5774793.js";import{M as w,d as X,c as $,b as K,w as U}from"./index.733e4619.js";import{u as V}from"./useDisabled.a0794d42.js";/**
|
||||
import{u as A,a as B,_ as d,b as N}from"./useConfig.8e3dba5c.js";import{f as R,o as I,bt as z,d as D,c as P,aI as k,h as F}from"./arco.7f845a67.js";import{L as M}from"./index.211f6b2b.js";import{M as w,d as X,c as $,b as K,w as U}from"./index.12bdcbda.js";import{u as V}from"./useDisabled.5453a5a8.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.014c7ae3.js.gz
Normal file
BIN
assets/index.014c7ae3.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{v as K,m as M,ak as H,_ as N}from"./index.733e4619.js";/* empty css *//* empty css *//* empty css */import{d as F,r as S,c as L,bI as O,C as U,D as V,aI as s,aH as i,G as h,aN as u,aM as _,u as x,a6 as j,a$ as G,ba as J,bJ as W,bL as q}from"./arco.7f845a67.js";import{u as Q}from"./loading.1a4e75f4.js";import{e as b,a as y,u as v,b as g,h as w,g as X}from"./serial.c6b76da8.js";import{I as Y}from"./index.9966f5f9.js";import{M as Z,T as ee}from"./index.366c4390.js";import{B as te}from"./index.83b1be16.js";import"./chart.95d38b48.js";import"./vue.0bef8fc5.js";import"./useConfig.0c1b7e18.js";import"./useGlobalIcon.8906c529.js";import"./helper.61f7445b.js";import"./dep-6deb4e3a.d3a2766a.js";import"./dialog.1c63eae9.js";import"./index.a5774793.js";import"./form-model.a7c529bf.js";import"./useDisabled.a0794d42.js";import"./slot.d517d0ae.js";const ae={class:"container"},oe={name:"Radio"},ne=F({...oe,setup(re){const{t:D}=K.exports.useI18n(),o=M(),{loading:P,setLoading:m}=Q(!1),a=S({renderData:Array.from({length:20}).map(t=>({})),pageSize:50,nowPage:1}),I=S({showHide:0}),C=t=>{a.renderData=t.newData},R=L(()=>[{colKey:"drag",title:D("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:D("cps.rx"),colKey:"rx",align:"left",width:200,cell:(t,{row:n})=>parseFloat(n.rx)?parseFloat(n.rx).toFixed(2):void 0,edit:{component:Y,props:{clearable:!0},onEdited:t=>{t.newRowData.rx=t.newRowData.rx?t.newRowData.rx:void 0;const n=[...a.renderData];n.splice((a.nowPage-1)*a.pageSize+t.rowIndex,1,t.newRowData),a.renderData=n}}},{title:D("cps.operate"),colKey:"operate",align:"left",width:150}]),z=async()=>{var t,n,l;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await b(o.connectPort),m(!0),(t=o.configuration)!=null&&t.fm30){let c=new Uint8Array(60);for(let e=131008;e<131057;e+=8){const p=await y(o.connectPort,e,8,(n=o.configuration)==null?void 0:n.uart);c.set(p,e-131008)}const r=[];for(let e=0;e<60;e+=2){const p=v(c.subarray(e,e+2));p!="ffff"?r.push({rx:parseInt(p,16)/10}):r.push({})}a.renderData=r}else{let c=new Uint8Array(40);for(let e=3648;e<3681;e+=8){const p=await y(o.connectPort,e,8,(l=o.configuration)==null?void 0:l.uart);c.set(p,e-3648)}const r=[];for(let e=0;e<40;e+=2){const p=v(c.subarray(e,e+2));p!="ffff"?r.push({rx:parseInt(p,16)/10}):r.push({})}a.renderData=r}m(!1)},$=async()=>{var t,n,l,c,r;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await b(o.connectPort),m(!0),(t=o.configuration)!=null&&t.fm30)for(let e=0;e<60;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+131008,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(n=o.configuration)==null?void 0:n.uart):await g(o.connectPort,e+131008,w("0000"),2,(l=o.configuration)==null?void 0:l.uart);else for(let e=0;e<40;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+3648,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(c=o.configuration)==null?void 0:c.uart):await g(o.connectPort,e+3648,w("0000"),2,(r=o.configuration)==null?void 0:r.uart);await X(o.connectPort),m(!1)},k=async t=>{const n=[...a.renderData];n.splice(t,1,{scanlist:[]}),a.renderData=n};return(t,n)=>{const l=H,c=j,r=G,e=J,p=W,A=q,B=te,T=ee,E=O;return U(),V("div",ae,[s(l,{items:[t.$t("menu.dashboard"),t.$t("menu.cps.radio")]},null,8,["items"]),s(E,{class:"general-card"},{title:i(()=>[h("span",{onClick:n[0]||(n[0]=()=>{I.showHide+=1})},u(t.$t("menu.cps.radio")+t.$t("global.onStart")),1)]),default:i(()=>[s(A,{style:{"margin-bottom":"16px"}},{default:i(()=>[s(p,{span:12},{default:i(()=>[s(e,null,{default:i(()=>[s(r,{type:"primary",onClick:z},{icon:i(()=>[s(c)]),default:i(()=>[_(" "+u(t.$t("cps.onDeviceRead")),1)]),_:1}),s(r,{onClick:$},{icon:i(()=>[s(c)]),default:i(()=>[_(" "+u(t.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(T,{class:"ttable",loading:x(P),size:"medium",columns:R.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:n[1]||(n[1]=d=>{a.pageSize=d.pagination.pageSize,a.nowPage=d.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:C},{drag:i(({row:d,rowIndex:f})=>[h("span",null,[s(x(Z))])]),index:i(({row:d,rowIndex:f})=>[_(u((a.nowPage-1)*a.pageSize+f+1),1)]),operate:i(({row:d,rowIndex:f})=>[s(B,{theme:"default",variant:"dashed",onClick:ie=>k((a.nowPage-1)*a.pageSize+f)},{default:i(()=>[_(u(t.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Re=N(ne,[["__scopeId","data-v-be263a43"]]);export{Re as default};
|
||||
import{v as K,m as M,ak as H,_ as N}from"./index.12bdcbda.js";/* empty css *//* empty css *//* empty css */import{d as F,r as S,c as L,bI as O,C as U,D as V,aI as s,aH as i,G as h,aN as u,aM as _,u as x,a6 as j,a$ as G,ba as J,bJ as W,bL as q}from"./arco.7f845a67.js";import{u as Q}from"./loading.1a4e75f4.js";import{e as b,a as y,u as v,b as g,h as w,g as X}from"./serial.c6b76da8.js";import{I as Y}from"./index.d1cb55ec.js";import{M as Z,T as ee}from"./index.2f5e16a9.js";import{B as te}from"./index.014c7ae3.js";import"./chart.95d38b48.js";import"./vue.0bef8fc5.js";import"./useConfig.8e3dba5c.js";import"./useGlobalIcon.1badd75e.js";import"./helper.b36c554d.js";import"./dep-6deb4e3a.543803ef.js";import"./dialog.daf0319a.js";import"./index.211f6b2b.js";import"./form-model.6510a5a3.js";import"./useDisabled.5453a5a8.js";import"./slot.5ae8b203.js";const ae={class:"container"},oe={name:"Radio"},ne=F({...oe,setup(re){const{t:D}=K.exports.useI18n(),o=M(),{loading:P,setLoading:m}=Q(!1),a=S({renderData:Array.from({length:20}).map(t=>({})),pageSize:50,nowPage:1}),I=S({showHide:0}),C=t=>{a.renderData=t.newData},R=L(()=>[{colKey:"drag",title:D("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:D("cps.rx"),colKey:"rx",align:"left",width:200,cell:(t,{row:n})=>parseFloat(n.rx)?parseFloat(n.rx).toFixed(2):void 0,edit:{component:Y,props:{clearable:!0},onEdited:t=>{t.newRowData.rx=t.newRowData.rx?t.newRowData.rx:void 0;const n=[...a.renderData];n.splice((a.nowPage-1)*a.pageSize+t.rowIndex,1,t.newRowData),a.renderData=n}}},{title:D("cps.operate"),colKey:"operate",align:"left",width:150}]),z=async()=>{var t,n,l;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await b(o.connectPort),m(!0),(t=o.configuration)!=null&&t.fm30){let c=new Uint8Array(60);for(let e=131008;e<131057;e+=8){const p=await y(o.connectPort,e,8,(n=o.configuration)==null?void 0:n.uart);c.set(p,e-131008)}const r=[];for(let e=0;e<60;e+=2){const p=v(c.subarray(e,e+2));p!="ffff"?r.push({rx:parseInt(p,16)/10}):r.push({})}a.renderData=r}else{let c=new Uint8Array(40);for(let e=3648;e<3681;e+=8){const p=await y(o.connectPort,e,8,(l=o.configuration)==null?void 0:l.uart);c.set(p,e-3648)}const r=[];for(let e=0;e<40;e+=2){const p=v(c.subarray(e,e+2));p!="ffff"?r.push({rx:parseInt(p,16)/10}):r.push({})}a.renderData=r}m(!1)},$=async()=>{var t,n,l,c,r;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await b(o.connectPort),m(!0),(t=o.configuration)!=null&&t.fm30)for(let e=0;e<60;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+131008,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(n=o.configuration)==null?void 0:n.uart):await g(o.connectPort,e+131008,w("0000"),2,(l=o.configuration)==null?void 0:l.uart);else for(let e=0;e<40;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+3648,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(c=o.configuration)==null?void 0:c.uart):await g(o.connectPort,e+3648,w("0000"),2,(r=o.configuration)==null?void 0:r.uart);await X(o.connectPort),m(!1)},k=async t=>{const n=[...a.renderData];n.splice(t,1,{scanlist:[]}),a.renderData=n};return(t,n)=>{const l=H,c=j,r=G,e=J,p=W,A=q,B=te,T=ee,E=O;return U(),V("div",ae,[s(l,{items:[t.$t("menu.dashboard"),t.$t("menu.cps.radio")]},null,8,["items"]),s(E,{class:"general-card"},{title:i(()=>[h("span",{onClick:n[0]||(n[0]=()=>{I.showHide+=1})},u(t.$t("menu.cps.radio")+t.$t("global.onStart")),1)]),default:i(()=>[s(A,{style:{"margin-bottom":"16px"}},{default:i(()=>[s(p,{span:12},{default:i(()=>[s(e,null,{default:i(()=>[s(r,{type:"primary",onClick:z},{icon:i(()=>[s(c)]),default:i(()=>[_(" "+u(t.$t("cps.onDeviceRead")),1)]),_:1}),s(r,{onClick:$},{icon:i(()=>[s(c)]),default:i(()=>[_(" "+u(t.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(T,{class:"ttable",loading:x(P),size:"medium",columns:R.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:n[1]||(n[1]=d=>{a.pageSize=d.pagination.pageSize,a.nowPage=d.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:C},{drag:i(({row:d,rowIndex:f})=>[h("span",null,[s(x(Z))])]),index:i(({row:d,rowIndex:f})=>[_(u((a.nowPage-1)*a.pageSize+f+1),1)]),operate:i(({row:d,rowIndex:f})=>[s(B,{theme:"default",variant:"dashed",onClick:ie=>k((a.nowPage-1)*a.pageSize+f)},{default:i(()=>[_(u(t.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Re=N(ne,[["__scopeId","data-v-be263a43"]]);export{Re as default};
|
BIN
assets/index.101d96cb.js.gz
Normal file
BIN
assets/index.101d96cb.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.12bdcbda.js.gz
Normal file
BIN
assets/index.12bdcbda.js.gz
Normal file
Binary file not shown.
|
@ -1,5 +0,0 @@
|
|||
import{_ as o}from"./dialog.1c63eae9.js";import{w as a}from"./index.733e4619.js";import"./arco.7f845a67.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var m=a(o);export{m as D};
|
File diff suppressed because one or more lines are too long
BIN
assets/index.15d24add.css.gz
Normal file
BIN
assets/index.15d24add.css.gz
Normal file
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
import{v as V,ak as j,_ as B}from"./index.733e4619.js";/* empty css *//* empty css *//* empty css */import{d as C,r as E,w as O,o as U,bT as $,bI as I,C as u,D as h,aI as r,aH as i,u as T,G as H,aM as f,aN as v,aK as x,aJ as y,aE as k,bU as J,a$ as R,bJ as F,bL as G}from"./arco.7f845a67.js";import{g as Y}from"./vue.0bef8fc5.js";import{u as q}from"./loading.1a4e75f4.js";import{L as A}from"./index.f38151e9.js";import{S as K}from"./index.24b981bd.js";import"./chart.95d38b48.js";import"./useConfig.0c1b7e18.js";import"./useDisabled.a0794d42.js";import"./helper.61f7445b.js";import"./slot.d517d0ae.js";const z={class:"container"},P={name:"DIY"},Q=C({...P,setup(W){const M=Y(),{t:S}=V.exports.useI18n(),N=()=>{M.push({path:"/tool/flash",query:{url:"https://k5.vicicode.com/diyapi/LOSEHU"+t.flag.join("")+".bin?v="+new Date().getTime()}})},t=E({versions:[],flag:[],disMatrix:[],disName:[],showSort:[]});O(()=>[...t.flag],()=>{w()});const w=()=>{t.flag.map((a,o)=>{t.disMatrix[o].forEach((l,n)=>{t.versions.indexOf("LOSEHU"+t.flag.join("").substring(0,o)+n+t.flag.join("").substring(o+1)+".bin")==-1?t.disMatrix[o].set(n,!0):t.disMatrix[o].set(n,!1)})})},{loading:L,setLoading:b}=q(!0);return U(async()=>{b(!0);let a=await(await fetch("https://k5.vicicode.com/diyapi/function.json?v="+new Date().getTime())).text();a=JSON.parse(a);let o=[],l=[];a.map(e=>{o[e[e.length-1]-1]=e,l.push(e[e.length-1]-1)}),a=o;let n=[],p=[];a.map(e=>{let _=new Map,c=new Map;for(let s=e[0]*2+1;s<e[0]*3+1;s++)_.set(e[s],!1),S("idea.diy")!=="LOSEHU DIY"?c.set(e[s],e[s-e[0]-e[0]]):c.set(e[s],e[s-e[0]]);n.push(_),p.push(c)}),t.flag=new Array(a.length).fill("0"),t.disName=p,t.disMatrix=n,t.showSort=l;const g=await(await fetch("https://k5.vicicode.com/diyapi/version.json?v="+new Date().getTime())).text();t.versions=JSON.parse(g),w(),b(!1)}),(a,o)=>{const l=j,n=A,p=$,g=J,e=R,_=K,c=I,s=F,D=G;return u(),h("div",z,[r(l,{items:[a.$t("menu.workshop"),a.$t("idea.diy")]},null,8,["items"]),r(D,{gutter:20,align:"stretch"},{default:i(()=>[r(s,{span:24},{default:i(()=>[r(c,{class:"general-card",title:a.$t("idea.diy"),loading:T(L)},{default:i(()=>[r(_,{direction:"vertical"},{default:i(()=>[H("div",null,[f(v(a.$t("oi")),1),r(n,{theme:"primary",href:"https://github.com/losehu/uv-k5-firmware-custom",target:"_blank"},{default:i(()=>[f("https://github.com/losehu/uv-k5-firmware-custom")]),_:1})]),(u(!0),h(x,null,y(t.showSort,m=>(u(),k(g,{modelValue:t.flag[m],"onUpdate:modelValue":d=>t.flag[m]=d,type:"button"},{default:i(()=>[(u(!0),h(x,null,y(t.disMatrix[m],d=>(u(),k(p,{value:d[0],disabled:d[1]},{default:i(()=>[f(v(t.disName[m].get(d[0])),1)]),_:2},1032,["value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"]))),256)),r(e,{type:"primary",onClick:N},{default:i(()=>[f(v(a.$t("diy.generate")),1)]),_:1})]),_:1})]),_:1},8,["title","loading"])]),_:1})]),_:1})])}}});const pt=B(Q,[["__scopeId","data-v-9368fb4d"]]);export{pt as default};
|
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{a1 as $e,a2 as en,N as nn,h as an,a3 as Ae,a4 as rn,a5 as tn,i as N,a6 as sn,a7 as ln,a8 as on,a9 as un,aa as Se,f as Pe,S as cn,a0 as fn,ab as dn,ac as Ee,J as M,e as Te,ad as se,ae as vn,af as gn,G as Le,ag as hn,ah as xe,ai as mn,aj as pn,w as yn}from"./index.733e4619.js";import{_ as F,u as p,a as _n}from"./useConfig.0c1b7e18.js";import{d as k,o as ee,g as Cn,n as wn,aI as h,c as m,f as z,w as Ie,t as bn,bC as q,bE as ie,r as On,h as $n,b4 as An}from"./arco.7f845a67.js";import{c as Sn,_ as Pn}from"./helper.61f7445b.js";/**
|
||||
import{a1 as $e,a2 as en,N as nn,h as an,a3 as Ae,a4 as rn,a5 as tn,i as N,a6 as sn,a7 as ln,a8 as on,a9 as un,aa as Se,f as Pe,S as cn,a0 as fn,ab as dn,ac as Ee,J as M,e as Te,ad as se,ae as vn,af as gn,G as Le,ag as hn,ah as xe,ai as mn,aj as pn,w as yn}from"./index.12bdcbda.js";import{_ as F,u as p,a as _n}from"./useConfig.8e3dba5c.js";import{d as k,o as ee,g as Cn,n as wn,aI as h,c as m,f as z,w as Ie,t as bn,bC as q,bE as ie,r as On,h as $n,b4 as An}from"./arco.7f845a67.js";import{c as Sn,_ as Pn}from"./helper.b36c554d.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.211f6b2b.js.gz
Normal file
BIN
assets/index.211f6b2b.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.269d1a74.css.gz
Normal file
BIN
assets/index.269d1a74.css.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
BIN
assets/index.2f5e16a9.js.gz
Normal file
BIN
assets/index.2f5e16a9.js.gz
Normal file
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
.container[data-v-6a3d506b]{padding:0 20px 20px}.container[data-v-6a3d506b] .arco-list-content{overflow-x:hidden}.container[data-v-6a3d506b] .arco-card-meta-title{font-size:14px}[data-v-6a3d506b] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-6a3d506b] .arco-list-item{width:33%}[data-v-6a3d506b] .block-title{margin:0 0 12px;font-size:14px}[data-v-6a3d506b] .list-wrap .list-row{align-items:stretch}[data-v-6a3d506b] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-6a3d506b] .list-wrap :deep(.arco-space){width:100%}[data-v-6a3d506b] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
Binary file not shown.
1
assets/index.372e26be.js
Normal file
1
assets/index.372e26be.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{v as V,ak as j,_ as B}from"./index.12bdcbda.js";/* empty css *//* empty css *//* empty css */import{d as C,r as E,w as O,o as U,bT as $,bI as I,C as u,D as h,aI as r,aH as i,u as T,G as H,aM as f,aN as v,aK as x,aJ as y,aE as k,bU as J,a$ as R,bJ as F,bL as G}from"./arco.7f845a67.js";import{g as Y}from"./vue.0bef8fc5.js";import{u as q}from"./loading.1a4e75f4.js";import{L as A}from"./index.c7241da7.js";import{S as K}from"./index.bb7e4ef6.js";import"./chart.95d38b48.js";import"./useConfig.8e3dba5c.js";import"./useDisabled.5453a5a8.js";import"./helper.b36c554d.js";import"./slot.5ae8b203.js";const z={class:"container"},P={name:"DIY"},Q=C({...P,setup(W){const M=Y(),{t:S}=V.exports.useI18n(),N=()=>{M.push({path:"/tool/flash",query:{url:"https://k5.vicicode.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://k5.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),S("idea.diy")!=="LOSEHU DIY"?c.set(e[s],e[s-e[0]-e[0]]):c.set(e[s],e[s-e[0]]);n.push(_),p.push(c)}),t.flag=new Array(a.length).fill("0"),t.disName=p,t.disMatrix=n,t.showSort=l;const g=await(await fetch("https://k5.vicicode.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=$,g=J,e=R,_=K,c=I,s=F,D=G;return u(),h("div",z,[r(l,{items:[a.$t("menu.workshop"),a.$t("idea.diy")]},null,8,["items"]),r(D,{gutter:20,align:"stretch"},{default:i(()=>[r(s,{span:24},{default:i(()=>[r(c,{class:"general-card",title:a.$t("idea.diy"),loading:T(L)},{default:i(()=>[r(_,{direction:"vertical"},{default:i(()=>[H("div",null,[f(v(a.$t("oi")),1),r(n,{theme:"primary",href:"https://github.com/losehu/uv-k5-firmware-custom",target:"_blank"},{default:i(()=>[f("https://github.com/losehu/uv-k5-firmware-custom")]),_:1})]),(u(!0),h(x,null,y(t.showSort,m=>(u(),k(g,{modelValue:t.flag[m],"onUpdate:modelValue":d=>t.flag[m]=d,type:"button"},{default:i(()=>[(u(!0),h(x,null,y(t.disMatrix[m],d=>(u(),k(p,{value:d[0],disabled:d[1]},{default:i(()=>[f(v(t.disName[m].get(d[0])),1)]),_:2},1032,["value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"]))),256)),r(e,{type:"primary",onClick:N},{default:i(()=>[f(v(a.$t("diy.generate")),1)]),_:1})]),_:1})]),_:1},8,["title","loading"])]),_:1})]),_:1})])}}});const pt=B(Q,[["__scopeId","data-v-92510c28"]]);export{pt as default};
|
BIN
assets/index.372e26be.js.gz
Normal file
BIN
assets/index.372e26be.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.4b2b7028.js.gz
Normal file
BIN
assets/index.4b2b7028.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
.container[data-v-9368fb4d]{padding:0 20px 20px}.container[data-v-9368fb4d] .arco-list-content{overflow-x:hidden}.container[data-v-9368fb4d] .arco-card-meta-title{font-size:14px}[data-v-9368fb4d] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-9368fb4d] .arco-list-item{width:33%}[data-v-9368fb4d] .block-title{margin:0 0 12px;font-size:14px}[data-v-9368fb4d] .list-wrap .list-row{align-items:stretch}[data-v-9368fb4d] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-9368fb4d] .list-wrap :deep(.arco-space){width:100%}[data-v-9368fb4d] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
1
assets/index.5d8d9eee.js
Normal file
1
assets/index.5d8d9eee.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_}from"./index.12bdcbda.js";/* empty css */import{d as F,r as f,o as h,bG as g,a$ as m,D as y,bg as i,bh as c,G as o,aM as s,aI as a,aN as d,aH as b,be as v,bf as A,C as D}from"./arco.7f845a67.js";import"./chart.95d38b48.js";import"./vue.0bef8fc5.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.5d8d9eee.js.gz
Normal file
BIN
assets/index.5d8d9eee.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1 +1 @@
|
|||
.container[data-v-9a7d1078]{background-color:#f2f3f5;width:100vw;height:100vh;padding-top:10%;padding-left:10%;padding-right:10%}
|
||||
.container[data-v-da2b92fd]{background-color:#f2f3f5;width:100vw;height:100vh;padding-top:10%;padding-left:10%;padding-right:10%}
|
1
assets/index.64c80731.js
Normal file
1
assets/index.64c80731.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.64c80731.js.gz
Normal file
BIN
assets/index.64c80731.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{_ as n}from"./index.733e4619.js";import{d as c,bH as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.7f845a67.js";import{g as m}from"./vue.0bef8fc5.js";import"./chart.95d38b48.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.12bdcbda.js";import{d as c,bH as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.7f845a67.js";import{g as m}from"./vue.0bef8fc5.js";import"./chart.95d38b48.js";const f={class:"content"},x={class:"operation-row"},b=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",x,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const E=n(b,[["__scopeId","data-v-8bef407f"]]);export{E as default};
|
Binary file not shown.
1
assets/index.7c1fba42.css
Normal file
1
assets/index.7c1fba42.css
Normal file
|
@ -0,0 +1 @@
|
|||
[data-v-7fa0c45f] ::-webkit-scrollbar-thumb{border-radius:0!important}[data-v-7fa0c45f] .scrollbar::-webkit-scrollbar{height:10px}[data-v-7fa0c45f] .t-table__content::-webkit-scrollbar{height:15px}.container[data-v-7fa0c45f]{padding:0 20px 20px}[data-v-7fa0c45f] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-7fa0c45f]{margin-left:12px;cursor:pointer}.active[data-v-7fa0c45f]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-7fa0c45f]{display:flex;align-items:center;width:200px}.setting .title[data-v-7fa0c45f]{margin-left:12px;cursor:pointer}.ttable[data-v-7fa0c45f] .t-table__affixed-header-elm-wrap{height:60px!important}.ttable[data-v-7fa0c45f] .t-table__content{scrollbar-width:auto!important}
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.8bf99b65.js.gz
Normal file
BIN
assets/index.8bf99b65.js.gz
Normal file
Binary file not shown.
1
assets/index.8d3f1b3f.css
Normal file
1
assets/index.8d3f1b3f.css
Normal file
|
@ -0,0 +1 @@
|
|||
.container[data-v-a2d7e8f1]{padding:0 20px 20px}.container[data-v-a2d7e8f1] .arco-list-content{overflow-x:hidden}.container[data-v-a2d7e8f1] .arco-card-meta-title{font-size:14px}[data-v-a2d7e8f1] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-a2d7e8f1] .arco-list-item{width:33%}[data-v-a2d7e8f1] .block-title{margin:0 0 12px;font-size:14px}[data-v-a2d7e8f1] .list-wrap .list-row{align-items:stretch}[data-v-a2d7e8f1] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-a2d7e8f1] .list-wrap :deep(.arco-space){width:100%}[data-v-a2d7e8f1] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
|
@ -1 +1 @@
|
|||
import{m as A,ak as N,_ as V}from"./index.733e4619.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as C,r as O,o as $,bT as I,bI as P,C as T,D as R,aI as s,aH as l,G as p,aM as _,aN as y,n as b,a$ as S,ba as x,bU as D,bG as H,bJ as M,bL as U}from"./arco.7f845a67.js";import{f as j}from"./vue.0bef8fc5.js";import{d as h,c as q,r as f,j as L,k as g,l as G,m as z,n as J}from"./serial.c6b76da8.js";import"./chart.95d38b48.js";const W={class:"container"},K={style:{display:"flex","justify-content":"space-between","align-items":"center"}},Q=["innerHTML"],X={name:"Flash"},Y=C({...X,setup(Z){const m=A(),e=O({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:"",protocol:"Official"}),d=j();$(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}m.connectPort&&await h(m.connectPort);let t=await q();e.protocol=="Official"&&await f(t,24,1e3);const o=L(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);e.protocol=="Official"&&(await g(t,r),await f(t,24));const n=G(e.binaryFile);if(n.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<n.length;a+=256){const 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 J(t)}catch(i){return console.log("Flash command rejected. Aborting."),Promise.reject(i)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,b(()=>{const i=document==null?void 0:document.getElementById("statusArea");i&&(i.scrollTop=i==null?void 0:i.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",b(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),h(t),m.updateSettings({connectState:!1})};return(t,o)=>{const r=N,n=S,a=x,c=I,u=D,i=H,B=P,v=M,k=U;return T(),R("div",W,[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",K,[p("div",null,[s(a,null,{default:l(()=>[s(n,{onClick:F},{default:l(()=>[_(y(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),s(n,{type:"primary",disabled:!e.binaryFile,onClick:w},{default:l(()=>[_(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(()=>[_("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,Q)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const ut=V(Y,[["__scopeId","data-v-165ad539"]]);export{ut as default};
|
||||
import{m as A,ak as N,_ as V}from"./index.12bdcbda.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as C,r as O,o as $,bT as I,bI as P,C as T,D as R,aI as s,aH as l,G as p,aM as _,aN as y,n as b,a$ as S,ba as x,bU as D,bG as H,bJ as M,bL as U}from"./arco.7f845a67.js";import{f as j}from"./vue.0bef8fc5.js";import{d as h,c as q,r as f,j as L,k as g,l as G,m as z,n as J}from"./serial.c6b76da8.js";import"./chart.95d38b48.js";const W={class:"container"},K={style:{display:"flex","justify-content":"space-between","align-items":"center"}},Q=["innerHTML"],X={name:"Flash"},Y=C({...X,setup(Z){const m=A(),e=O({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:"",protocol:"Official"}),d=j();$(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}m.connectPort&&await h(m.connectPort);let t=await q();e.protocol=="Official"&&await f(t,24,1e3);const o=L(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);e.protocol=="Official"&&(await g(t,r),await f(t,24));const n=G(e.binaryFile);if(n.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<n.length;a+=256){const 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 J(t)}catch(i){return console.log("Flash command rejected. Aborting."),Promise.reject(i)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,b(()=>{const i=document==null?void 0:document.getElementById("statusArea");i&&(i.scrollTop=i==null?void 0:i.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",b(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),h(t),m.updateSettings({connectState:!1})};return(t,o)=>{const r=N,n=S,a=x,c=I,u=D,i=H,B=P,v=M,k=U;return T(),R("div",W,[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",K,[p("div",null,[s(a,null,{default:l(()=>[s(n,{onClick:F},{default:l(()=>[_(y(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),s(n,{type:"primary",disabled:!e.binaryFile,onClick:w},{default:l(()=>[_(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(()=>[_("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,Q)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const ut=V(Y,[["__scopeId","data-v-165ad539"]]);export{ut as default};
|
BIN
assets/index.8ed1edb8.js.gz
Normal file
BIN
assets/index.8ed1edb8.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{v as H,m as L,ak as M,_ as N}from"./index.733e4619.js";/* empty css *//* empty css *//* empty css */import{d as U,r as y,c as V,bI as O,C as j,D as G,aI as s,aH as r,G as S,aN as m,aM as g,u as h,a6 as J,a$ as W,ba as Z,bJ as q,bL as F}from"./arco.7f845a67.js";import{u as Q}from"./loading.1a4e75f4.js";import{e as v,a as C,u as w,f as X,h as D,s as Y,b,g as ee}from"./serial.c6b76da8.js";import{I as P}from"./index.9966f5f9.js";import{M as te,T as ae}from"./index.366c4390.js";import{B as ne}from"./index.83b1be16.js";import"./chart.95d38b48.js";import"./vue.0bef8fc5.js";import"./useConfig.0c1b7e18.js";import"./useGlobalIcon.8906c529.js";import"./helper.61f7445b.js";import"./dep-6deb4e3a.d3a2766a.js";import"./dialog.1c63eae9.js";import"./index.a5774793.js";import"./form-model.a7c529bf.js";import"./useDisabled.a0794d42.js";import"./slot.d517d0ae.js";const oe={class:"container"},re={name:"Radio"},ie=U({...re,setup(se){const{t:f}=H.exports.useI18n(),o=L(),{loading:I,setLoading:u}=Q(!1),a=y({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),z=y({showHide:0}),R=e=>{a.renderData=e.newData},A=V(()=>[{colKey:"drag",title:f("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:f("cps.contact"),colKey:"name",width:250,align:"left",cell:(e,{row:t})=>t.name?t.name.replace(/[^a-zA-Z0-9_]/g,""):void 0,edit:{component:P,props:{clearable:!0},onEdited:e=>{const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:f("cps.mdcid"),colKey:"mdcid",align:"left",width:200,cell:(e,{row:t})=>parseInt(t.mdcid,16)<=65535?parseInt(t.mdcid,16).toString(16):void 0,edit:{component:P,props:{clearable:!0},onEdited:e=>{e.newRowData.mdcid=e.newRowData.mdcid?e.newRowData.mdcid.toLowerCase():void 0;const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:f("cps.operate"),colKey:"operate",align:"left",width:150}]),$=async()=>{var d,c;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);let e=new Uint8Array(256);for(let n=7424;n<7680;n+=16){const i=await C(o.connectPort,n,16,(d=o.configuration)==null?void 0:d.uart);e.set(i,n-7424)}const t=[];for(let n=0;n<256;n+=16)w(e.subarray(n,n+2))!="ffff"?t.push({name:X(e.subarray(n+2,n+16),(c=o.configuration)==null?void 0:c.charset).trim(),mdcid:w(e.subarray(n,n+1))+w(e.subarray(n+1,n+2))}):t.push({});a.renderData=t,u(!1)},T=async()=>{var t,d,c,n;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);for(let i=0;i<256;i+=16)if(a.renderData[i/16].mdcid){const p=new Uint8Array(16).fill(32);p.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(0,2))),p.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(2,4)),1),p.set(Y(a.renderData[i/16].name),2),await b(o.connectPort,i+7424,p,16,(t=o.configuration)==null?void 0:t.uart)}else await b(o.connectPort,i+7424,D("ffffffffffffffffffffffffffffffff"),16,(d=o.configuration)==null?void 0:d.uart);const e=await C(o.connectPort,8176,16,(c=o.configuration)==null?void 0:c.uart);e.set([16],16-1),await b(o.connectPort,8176,e,16,(n=o.configuration)==null?void 0:n.uart),await ee(o.connectPort),u(!1)},k=async e=>{const t=[...a.renderData];t.splice(e,1,{scanlist:[]}),a.renderData=t};return(e,t)=>{const d=M,c=J,n=W,i=Z,p=q,B=F,K=ne,x=ae,E=O;return j(),G("div",oe,[s(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.mdc")]},null,8,["items"]),s(E,{class:"general-card"},{title:r(()=>[S("span",{onClick:t[0]||(t[0]=()=>{z.showHide+=1})},m(e.$t("menu.cps.mdc")+e.$t("global.onStart")),1)]),default:r(()=>[s(B,{style:{"margin-bottom":"16px"}},{default:r(()=>[s(p,{span:12},{default:r(()=>[s(i,null,{default:r(()=>[s(n,{type:"primary",onClick:$},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+m(e.$t("cps.onDeviceRead")),1)]),_:1}),s(n,{onClick:T},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+m(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(x,{class:"ttable",loading:h(I),size:"medium",columns:A.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:t[1]||(t[1]=l=>{a.pageSize=l.pagination.pageSize,a.nowPage=l.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:R},{drag:r(({row:l,rowIndex:_})=>[S("span",null,[s(h(te))])]),index:r(({row:l,rowIndex:_})=>[g(m((a.nowPage-1)*a.pageSize+_+1),1)]),operate:r(({row:l,rowIndex:_})=>[s(K,{theme:"default",variant:"dashed",onClick:ce=>k((a.nowPage-1)*a.pageSize+_)},{default:r(()=>[g(m(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const $e=N(ie,[["__scopeId","data-v-dfecd3b2"]]);export{$e as default};
|
||||
import{v as H,m as L,ak as M,_ as N}from"./index.12bdcbda.js";/* empty css *//* empty css *//* empty css */import{d as U,r as y,c as V,bI as O,C as j,D as G,aI as s,aH as r,G as S,aN as m,aM as g,u as h,a6 as J,a$ as W,ba as Z,bJ as q,bL as F}from"./arco.7f845a67.js";import{u as Q}from"./loading.1a4e75f4.js";import{e as v,a as C,u as w,f as X,h as D,s as Y,b,g as ee}from"./serial.c6b76da8.js";import{I as P}from"./index.d1cb55ec.js";import{M as te,T as ae}from"./index.2f5e16a9.js";import{B as ne}from"./index.014c7ae3.js";import"./chart.95d38b48.js";import"./vue.0bef8fc5.js";import"./useConfig.8e3dba5c.js";import"./useGlobalIcon.1badd75e.js";import"./helper.b36c554d.js";import"./dep-6deb4e3a.543803ef.js";import"./dialog.daf0319a.js";import"./index.211f6b2b.js";import"./form-model.6510a5a3.js";import"./useDisabled.5453a5a8.js";import"./slot.5ae8b203.js";const oe={class:"container"},re={name:"Radio"},ie=U({...re,setup(se){const{t:f}=H.exports.useI18n(),o=L(),{loading:I,setLoading:u}=Q(!1),a=y({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),z=y({showHide:0}),R=e=>{a.renderData=e.newData},A=V(()=>[{colKey:"drag",title:f("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:f("cps.contact"),colKey:"name",width:250,align:"left",cell:(e,{row:t})=>t.name?t.name.replace(/[^a-zA-Z0-9_]/g,""):void 0,edit:{component:P,props:{clearable:!0},onEdited:e=>{const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:f("cps.mdcid"),colKey:"mdcid",align:"left",width:200,cell:(e,{row:t})=>parseInt(t.mdcid,16)<=65535?parseInt(t.mdcid,16).toString(16):void 0,edit:{component:P,props:{clearable:!0},onEdited:e=>{e.newRowData.mdcid=e.newRowData.mdcid?e.newRowData.mdcid.toLowerCase():void 0;const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:f("cps.operate"),colKey:"operate",align:"left",width:150}]),$=async()=>{var d,c;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);let e=new Uint8Array(256);for(let n=7424;n<7680;n+=16){const i=await C(o.connectPort,n,16,(d=o.configuration)==null?void 0:d.uart);e.set(i,n-7424)}const t=[];for(let n=0;n<256;n+=16)w(e.subarray(n,n+2))!="ffff"?t.push({name:X(e.subarray(n+2,n+16),(c=o.configuration)==null?void 0:c.charset).trim(),mdcid:w(e.subarray(n,n+1))+w(e.subarray(n+1,n+2))}):t.push({});a.renderData=t,u(!1)},T=async()=>{var t,d,c,n;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);for(let i=0;i<256;i+=16)if(a.renderData[i/16].mdcid){const p=new Uint8Array(16).fill(32);p.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(0,2))),p.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(2,4)),1),p.set(Y(a.renderData[i/16].name),2),await b(o.connectPort,i+7424,p,16,(t=o.configuration)==null?void 0:t.uart)}else await b(o.connectPort,i+7424,D("ffffffffffffffffffffffffffffffff"),16,(d=o.configuration)==null?void 0:d.uart);const e=await C(o.connectPort,8176,16,(c=o.configuration)==null?void 0:c.uart);e.set([16],16-1),await b(o.connectPort,8176,e,16,(n=o.configuration)==null?void 0:n.uart),await ee(o.connectPort),u(!1)},k=async e=>{const t=[...a.renderData];t.splice(e,1,{scanlist:[]}),a.renderData=t};return(e,t)=>{const d=M,c=J,n=W,i=Z,p=q,B=F,K=ne,x=ae,E=O;return j(),G("div",oe,[s(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.mdc")]},null,8,["items"]),s(E,{class:"general-card"},{title:r(()=>[S("span",{onClick:t[0]||(t[0]=()=>{z.showHide+=1})},m(e.$t("menu.cps.mdc")+e.$t("global.onStart")),1)]),default:r(()=>[s(B,{style:{"margin-bottom":"16px"}},{default:r(()=>[s(p,{span:12},{default:r(()=>[s(i,null,{default:r(()=>[s(n,{type:"primary",onClick:$},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+m(e.$t("cps.onDeviceRead")),1)]),_:1}),s(n,{onClick:T},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+m(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(x,{class:"ttable",loading:h(I),size:"medium",columns:A.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:t[1]||(t[1]=l=>{a.pageSize=l.pagination.pageSize,a.nowPage=l.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:R},{drag:r(({row:l,rowIndex:_})=>[S("span",null,[s(h(te))])]),index:r(({row:l,rowIndex:_})=>[g(m((a.nowPage-1)*a.pageSize+_+1),1)]),operate:r(({row:l,rowIndex:_})=>[s(K,{theme:"default",variant:"dashed",onClick:ce=>k((a.nowPage-1)*a.pageSize+_)},{default:r(()=>[g(m(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const $e=N(ie,[["__scopeId","data-v-dfecd3b2"]]);export{$e as default};
|
BIN
assets/index.91635aec.js.gz
Normal file
BIN
assets/index.91635aec.js.gz
Normal file
Binary file not shown.
1
assets/index.937a57f5.css
Normal file
1
assets/index.937a57f5.css
Normal file
|
@ -0,0 +1 @@
|
|||
.container[data-v-ac0fde76]{padding:0 20px 20px}.container[data-v-ac0fde76] .arco-list-content{overflow-x:hidden}.container[data-v-ac0fde76] .arco-card-meta-title{font-size:14px}[data-v-ac0fde76] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-ac0fde76] .arco-list-item{width:33%}[data-v-ac0fde76] .block-title{margin:0 0 12px;font-size:14px}[data-v-ac0fde76] .list-wrap .list-row{align-items:stretch}[data-v-ac0fde76] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-ac0fde76] .list-wrap :deep(.arco-space){width:100%}[data-v-ac0fde76] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
|
@ -1,4 +1,4 @@
|
|||
import{i as Ce,_ as A,r as b,s as Fe,v as De}from"./form-model.a7c529bf.js";import{i as Ie,_ as Me}from"./helper.61f7445b.js";import{u as Z,_ as j}from"./useConfig.0c1b7e18.js";import{d as Le,i as qe,c as p,f as V,t as we,r as ke,o as We,b as He,w as je,aI as M,p as Oe,n as xe}from"./arco.7f845a67.js";import{c as Pe,d as Ke,H as Ue,i as Ee,e as Ge,J as Y,K as Je,w as Ae}from"./index.733e4619.js";import{i as _e}from"./useDisabled.a0794d42.js";import{g as se,r as Xe}from"./index.a5774793.js";import{u as Re,F as Ne,V as B,a as ze,C as Qe}from"./index.9966f5f9.js";import{a as Ye}from"./useGlobalIcon.8906c529.js";import{C as Ze,E as er}from"./dialog.1c63eae9.js";/**
|
||||
import{i as Ce,_ as A,r as b,s as Fe,v as De}from"./form-model.6510a5a3.js";import{i as Ie,_ as Me}from"./helper.b36c554d.js";import{u as Z,_ as j}from"./useConfig.8e3dba5c.js";import{d as Le,i as qe,c as p,f as V,t as we,r as ke,o as We,b as He,w as je,aI as M,p as Oe,n as xe}from"./arco.7f845a67.js";import{c as Pe,d as Ke,H as Ue,i as Ee,e as Ge,J as Y,K as Je,w as Ae}from"./index.12bdcbda.js";import{i as _e}from"./useDisabled.5453a5a8.js";import{g as se,r as Xe}from"./index.211f6b2b.js";import{u as Re,F as Ne,V as B,a as ze,C as Qe}from"./index.d1cb55ec.js";import{a as Ye}from"./useGlobalIcon.1badd75e.js";import{C as Ze,E as er}from"./dialog.daf0319a.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.9556e35d.js.gz
Normal file
BIN
assets/index.9556e35d.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
[data-v-810132e9] ::-webkit-scrollbar-thumb{border-radius:0!important}[data-v-810132e9] .scrollbar::-webkit-scrollbar{height:10px}[data-v-810132e9] .t-table__content::-webkit-scrollbar{height:15px}.container[data-v-810132e9]{padding:0 20px 20px}[data-v-810132e9] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-810132e9]{margin-left:12px;cursor:pointer}.active[data-v-810132e9]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-810132e9]{display:flex;align-items:center;width:200px}.setting .title[data-v-810132e9]{margin-left:12px;cursor:pointer}.ttable[data-v-810132e9] .t-table__affixed-header-elm-wrap{height:60px!important}.ttable[data-v-810132e9] .t-table__content{scrollbar-width:auto!important}
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.a8fc3d70.js.gz
Normal file
BIN
assets/index.a8fc3d70.js.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.accd2fbc.css
Normal file
1
assets/index.accd2fbc.css
Normal file
|
@ -0,0 +1 @@
|
|||
.container[data-v-92510c28]{padding:0 20px 20px}.container[data-v-92510c28] .arco-list-content{overflow-x:hidden}.container[data-v-92510c28] .arco-card-meta-title{font-size:14px}[data-v-92510c28] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-92510c28] .arco-list-item{width:33%}[data-v-92510c28] .block-title{margin:0 0 12px;font-size:14px}[data-v-92510c28] .list-wrap .list-row{align-items:stretch}[data-v-92510c28] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-92510c28] .list-wrap :deep(.arco-space){width:100%}[data-v-92510c28] .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.b11d866c.js.gz
Normal file
BIN
assets/index.b11d866c.js.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.bb2f2ac9.js
Normal file
1
assets/index.bb2f2ac9.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.bb2f2ac9.js.gz
Normal file
BIN
assets/index.bb2f2ac9.js.gz
Normal file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{g as j,i as v,_ as w}from"./helper.61f7445b.js";import{u as x,_ as l}from"./useConfig.0c1b7e18.js";import{d as z,c as m,aI as u,aK as N}from"./arco.7f845a67.js";import{c as _,i as C,e as y,w as F}from"./index.733e4619.js";import{u as T}from"./slot.d517d0ae.js";/**
|
||||
import{g as j,i as v,_ as w}from"./helper.b36c554d.js";import{u as x,_ as l}from"./useConfig.8e3dba5c.js";import{d as z,c as m,aI as u,aK as N}from"./arco.7f845a67.js";import{c as _,i as C,e as y,w as F}from"./index.12bdcbda.js";import{u as T}from"./slot.5ae8b203.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.bb7e4ef6.js.gz
Normal file
BIN
assets/index.bb7e4ef6.js.gz
Normal file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{d as R,c as t,aI as a,aU as V}from"./arco.7f845a67.js";import{u,a as W}from"./useConfig.0c1b7e18.js";import{c as X,e as Z,w as U}from"./index.733e4619.js";import{L as k}from"./index.a5774793.js";/**
|
||||
import{d as R,c as t,aI as a,aU as V}from"./arco.7f845a67.js";import{u,a as W}from"./useConfig.8e3dba5c.js";import{c as X,e as Z,w as U}from"./index.12bdcbda.js";import{L as k}from"./index.211f6b2b.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.c07a5fc8.js.gz
Normal file
BIN
assets/index.c07a5fc8.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{m as B,ak as E,_ as S}from"./index.733e4619.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as A,r as F,bT as R,bI as T,C as D,D as U,aI as o,aH as n,G as k,aN as f,aM as _,bg as y,bh as C,bU as V,a$ as H,ba as I,bG as P,bJ as M,bL as N,n as z}from"./arco.7f845a67.js";import{i as G,e as L,b as J,g as K}from"./serial.c6b76da8.js";import{C as O}from"./index.6c7f14b0.js";import"./chart.95d38b48.js";import"./vue.0bef8fc5.js";import"./useConfig.0c1b7e18.js";import"./index.a5774793.js";import"./helper.61f7445b.js";const j={class:"container"},q=["innerHTML"],Q={name:"Chi"},W=A({...Q,setup(X){const u=B(),r=F({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0,lang:"Simplified_Chinese"}),g=async(t=0,e)=>{var m;await L(u.connectPort);for(let s=t;s<e.length+t;s+=128)await J(u.connectPort,s,e.slice(s-t,s-t+128),e.slice(s-t,s-t+128).length,(m=u.configuration)==null?void 0:m.uart),r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((s-t)/e.length*100).toFixed(1)+"%<br/>",z(()=>{const p=document==null?void 0:document.getElementById("statusArea");p&&(p.scrollTop=p==null?void 0:p.scrollHeight)});r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await K(u.connectPort)},v=async(t=1)=>{var m,s,p,b,w,h;if(u.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((m=u.configuration)==null?void 0:m.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}r.status=r.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let e;if(t==4){(s=u.configuration)!=null&&s.newpinyin?e=await fetch("/pinyin_plus.bin"):e=await fetch("/pinyin.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(131072,d);return}if(t==5){const l=await G(u.connectPort,(p=u.configuration)==null?void 0:p.uart);if(l!=262144&&l!=524288){r.status=r.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}e=await fetch("/ssb.bin");const a=e.body.getReader(),d=[];for(;;){const{done:i,value:$}=await a.read();if(i)break;d.push(...$)}const c=new Uint8Array(d);await g(246312,c);return}if(t==1){if(((b=u.configuration)==null?void 0:b.charset)=="losehu"){e=await fetch("/old_font.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(8192,d);return}if(((w=u.configuration)==null?void 0:w.charset)=="gb2312"){e=await fetch("/new_font_k.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(9344,d);return}}if(t==6)if(((h=u.configuration)==null?void 0:h.charset)=="gb2312"){e=await fetch("/new_font_k_f.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(9344,d);return}else alert("\u4E0D\u652F\u6301\u7684\u7248\u672C")};return(t,e)=>{const m=E,s=R,p=V,b=H,w=O,h=I,l=P,a=T,d=M,c=N;return D(),U("div",j,[o(m,{items:[t.$t("menu.list"),t.$t("menu.font")]},null,8,["items"]),o(c,{gutter:20,align:"stretch"},{default:n(()=>[o(d,{span:24},{default:n(()=>[o(a,{class:"general-card"},{title:n(()=>[k("span",{onClick:e[0]||(e[0]=()=>{r.showHide+=1})},f(t.$t("menu.font")+t.$t("global.onStart")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(w,{bordered:"",style:{width:"420px"}},{header:n(()=>[_(f(t.$t("tool.fontwrite"))+" ",1),k("div",null,[o(p,{type:"button",size:"mini",modelValue:r.lang,"onUpdate:modelValue":e[1]||(e[1]=i=>r.lang=i)},{default:n(()=>[o(s,{value:"Simplified_Chinese"},{default:n(()=>[_(f(t.$t("tool.Simplified_Chinese")),1)]),_:1}),o(s,{value:"Traditional_Chinese"},{default:n(()=>[_(f(t.$t("tool.Traditional_Chinese")),1)]),_:1})]),_:1},8,["modelValue"])])]),default:n(()=>[k("div",null,[y(o(b,{onClick:e[2]||(e[2]=i=>v(1))},{default:n(()=>[_(f(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Simplified_Chinese"]]),y(o(b,{onClick:e[3]||(e[3]=i=>v(6))},{default:n(()=>[_(f(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Traditional_Chinese"]])])]),_:1}),o(w,{bordered:""},{header:n(()=>[_(f(t.$t("tool.pinyinwrite")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:e[4]||(e[4]=i=>v(4))},{default:n(()=>[_(f(t.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),o(w,{bordered:""},{header:n(()=>[_(f(t.$t("tool.ssbpatch")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:e[5]||(e[5]=i=>v(5))},{default:n(()=>[_(f(t.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),o(l),k("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:r.status},null,8,q)]),_:1})]),_:1})]),_:1})])}}});const ce=S(W,[["__scopeId","data-v-14271e40"]]);export{ce as default};
|
||||
import{m as B,ak as E,_ as S}from"./index.12bdcbda.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as A,r as F,bT as R,bI as T,C as D,D as U,aI as o,aH as n,G as k,aN as f,aM as _,bg as y,bh as C,bU as V,a$ as H,ba as I,bG as P,bJ as M,bL as N,n as z}from"./arco.7f845a67.js";import{i as G,e as L,b as J,g as K}from"./serial.c6b76da8.js";import{C as O}from"./index.c07a5fc8.js";import"./chart.95d38b48.js";import"./vue.0bef8fc5.js";import"./useConfig.8e3dba5c.js";import"./index.211f6b2b.js";import"./helper.b36c554d.js";const j={class:"container"},q=["innerHTML"],Q={name:"Chi"},W=A({...Q,setup(X){const u=B(),r=F({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0,lang:"Simplified_Chinese"}),g=async(t=0,e)=>{var m;await L(u.connectPort);for(let s=t;s<e.length+t;s+=128)await J(u.connectPort,s,e.slice(s-t,s-t+128),e.slice(s-t,s-t+128).length,(m=u.configuration)==null?void 0:m.uart),r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((s-t)/e.length*100).toFixed(1)+"%<br/>",z(()=>{const p=document==null?void 0:document.getElementById("statusArea");p&&(p.scrollTop=p==null?void 0:p.scrollHeight)});r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await K(u.connectPort)},v=async(t=1)=>{var m,s,p,b,w,h;if(u.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((m=u.configuration)==null?void 0:m.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}r.status=r.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let e;if(t==4){(s=u.configuration)!=null&&s.newpinyin?e=await fetch("/pinyin_plus.bin"):e=await fetch("/pinyin.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(131072,d);return}if(t==5){const l=await G(u.connectPort,(p=u.configuration)==null?void 0:p.uart);if(l!=262144&&l!=524288){r.status=r.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}e=await fetch("/ssb.bin");const a=e.body.getReader(),d=[];for(;;){const{done:i,value:$}=await a.read();if(i)break;d.push(...$)}const c=new Uint8Array(d);await g(246312,c);return}if(t==1){if(((b=u.configuration)==null?void 0:b.charset)=="losehu"){e=await fetch("/old_font.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(8192,d);return}if(((w=u.configuration)==null?void 0:w.charset)=="gb2312"){e=await fetch("/new_font_k.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(9344,d);return}}if(t==6)if(((h=u.configuration)==null?void 0:h.charset)=="gb2312"){e=await fetch("/new_font_k_f.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(9344,d);return}else alert("\u4E0D\u652F\u6301\u7684\u7248\u672C")};return(t,e)=>{const m=E,s=R,p=V,b=H,w=O,h=I,l=P,a=T,d=M,c=N;return D(),U("div",j,[o(m,{items:[t.$t("menu.list"),t.$t("menu.font")]},null,8,["items"]),o(c,{gutter:20,align:"stretch"},{default:n(()=>[o(d,{span:24},{default:n(()=>[o(a,{class:"general-card"},{title:n(()=>[k("span",{onClick:e[0]||(e[0]=()=>{r.showHide+=1})},f(t.$t("menu.font")+t.$t("global.onStart")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(w,{bordered:"",style:{width:"420px"}},{header:n(()=>[_(f(t.$t("tool.fontwrite"))+" ",1),k("div",null,[o(p,{type:"button",size:"mini",modelValue:r.lang,"onUpdate:modelValue":e[1]||(e[1]=i=>r.lang=i)},{default:n(()=>[o(s,{value:"Simplified_Chinese"},{default:n(()=>[_(f(t.$t("tool.Simplified_Chinese")),1)]),_:1}),o(s,{value:"Traditional_Chinese"},{default:n(()=>[_(f(t.$t("tool.Traditional_Chinese")),1)]),_:1})]),_:1},8,["modelValue"])])]),default:n(()=>[k("div",null,[y(o(b,{onClick:e[2]||(e[2]=i=>v(1))},{default:n(()=>[_(f(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Simplified_Chinese"]]),y(o(b,{onClick:e[3]||(e[3]=i=>v(6))},{default:n(()=>[_(f(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Traditional_Chinese"]])])]),_:1}),o(w,{bordered:""},{header:n(()=>[_(f(t.$t("tool.pinyinwrite")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:e[4]||(e[4]=i=>v(4))},{default:n(()=>[_(f(t.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),o(w,{bordered:""},{header:n(()=>[_(f(t.$t("tool.ssbpatch")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:e[5]||(e[5]=i=>v(5))},{default:n(()=>[_(f(t.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),o(l),k("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:r.status},null,8,q)]),_:1})]),_:1})]),_:1})])}}});const ce=S(W,[["__scopeId","data-v-14271e40"]]);export{ce as default};
|
BIN
assets/index.c3d5fd9c.js.gz
Normal file
BIN
assets/index.c3d5fd9c.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{u as C,a as h,_ as i,b as w}from"./useConfig.0c1b7e18.js";import{d as x,c as P,aI as c}from"./arco.7f845a67.js";import{b as k,c as j,d as _,w as I}from"./index.733e4619.js";import{u as N}from"./useDisabled.a0794d42.js";/**
|
||||
import{u as C,a as h,_ as i,b as w}from"./useConfig.8e3dba5c.js";import{d as x,c as P,aI as c}from"./arco.7f845a67.js";import{b as k,c as j,d as _,w as I}from"./index.12bdcbda.js";import{u as N}from"./useDisabled.5453a5a8.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.c7241da7.js.gz
Normal file
BIN
assets/index.c7241da7.js.gz
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue