mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 00:03:35 +00:00
update
This commit is contained in:
parent
c6e9b488b5
commit
5c3ba2f3d1
108 changed files with 47 additions and 47 deletions
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.9282559d.js.gz
Normal file
BIN
assets/default-layout.9282559d.js.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -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.c98a7b8a.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
|
BIN
assets/form-model.7b007587.js.gz
Normal file
BIN
assets/form-model.7b007587.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/index.00fa277a.js.gz
Normal file
BIN
assets/index.00fa277a.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{v as K,s as M,ac as N,N as H,_ as F}from"./index.c98a7b8a.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.75f952a8.js";import{M as ee,T as te}from"./index.9e93443d.js";import"./chart.34708d29.js";import"./vue.437ba699.js";import"./dep-6deb4e3a.14007380.js";import"./form-model.db8d573c.js";import"./slot.0d495437.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};
|
||||
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
BIN
assets/index.0a595a7f.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
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.c98a7b8a.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
BIN
assets/index.261a13f3.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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.c98a7b8a.js";import{d as I,c as N,aI as c}from"./arco.c29bba08.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
BIN
assets/index.2958c05f.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.33420260.css.gz
Normal file
BIN
assets/index.33420260.css.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{s as L,ac as N,_ as F}from"./index.c98a7b8a.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};
|
||||
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
BIN
assets/index.3b56a1cc.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{v as V,ac as j,_ as B}from"./index.c98a7b8a.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.0cdb7fbc.js";import{S as K}from"./index.b8fd624b.js";import"./chart.34708d29.js";import"./slot.0d495437.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://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),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://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=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-92510c28"]]);export{ct as default};
|
||||
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
BIN
assets/index.41b83355.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{_ as n}from"./index.c98a7b8a.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};
|
||||
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
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
BIN
assets/index.52e8e010.css.gz
Normal file
BIN
assets/index.52e8e010.css.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.551858ae.js.gz
Normal file
BIN
assets/index.551858ae.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{_}from"./index.c98a7b8a.js";/* empty css */import{d as F,r as f,o as h,bG as g,b8 as m,D as y,a$ as i,b0 as c,G as o,aM as s,aI as a,aN as d,aH as b,bm as v,bn as A,C as D}from"./arco.c29bba08.js";import"./chart.34708d29.js";import"./vue.437ba699.js";const l=u=>(v("data-v-da2b92fd"),u=u(),A(),u),S={class:"container"},C={style:{"background-color":"#fff",padding:"10%"}},B=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=async()=>{await fetch("https://k5.vicicode.cn/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",C,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),B,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:b(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-da2b92fd"]]);export{U as default};
|
||||
import{_}from"./index.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
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
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
BIN
assets/index.626a7443.js.gz
Normal file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{w as a,a5 as o}from"./index.c98a7b8a.js";import"./arco.c29bba08.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.
1
assets/index.726ea6bc.css
Normal file
1
assets/index.726ea6bc.css
Normal 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}
|
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{v as N,s as H,ac as L,N as M,_ as U}from"./index.c98a7b8a.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.75f952a8.js";import{M as ae,T as ne}from"./index.9e93443d.js";import"./chart.34708d29.js";import"./vue.437ba699.js";import"./dep-6deb4e3a.14007380.js";import"./form-model.db8d573c.js";import"./slot.0d495437.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};
|
||||
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
BIN
assets/index.7ae721e1.js.gz
Normal file
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
[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}
|
File diff suppressed because one or more lines are too long
BIN
assets/index.7ee7514e.js.gz
Normal file
BIN
assets/index.7ee7514e.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.82108b79.js.gz
Normal file
BIN
assets/index.82108b79.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.886ea3b9.js.gz
Normal file
BIN
assets/index.886ea3b9.js.gz
Normal file
Binary file not shown.
|
@ -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.c98a7b8a.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.75f952a8.js";import{S as Or,C as Jc,a as Zc}from"./dep-6deb4e3a.14007380.js";import{M as qc,T as Qc}from"./index.9e93443d.js";import"./chart.34708d29.js";import"./form-model.db8d573c.js";import"./slot.0d495437.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
BIN
assets/index.89412b9b.js.gz
Normal file
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
.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
assets/index.8fa80527.css
Normal file
1
assets/index.8fa80527.css
Normal 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}
|
|
@ -1 +0,0 @@
|
|||
.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{O as ne,P as te,Q as ae,S as Ne,b as B,l as Fe,T as Te,U as ce,n as he,V as Be,W as Ee,d as $e,X as Ae,c as Le,f as _,i as we,w as Oe}from"./index.c98a7b8a.js";import{d as R,c as h,f as j,g as Ce,w as E,b as _e,i as Ie,o as Pe,t as Se,n as ee,aI as C,a$ as De,b0 as Re,aV as ze}from"./arco.c29bba08.js";/**
|
||||
import{O as ne,P as te,Q as ae,S as Ne,b as B,l as Fe,T as Te,U as ce,n as he,V as Be,W as Ee,d as $e,X as Ae,c as Le,f as _,i as we,w as Oe}from"./index.00fa277a.js";import{d as R,c as h,f as j,g as Ce,w as E,b as _e,i as Ie,o as Pe,t as Se,n as ee,aI as C,a$ as De,b0 as Re,aV as ze}from"./arco.c29bba08.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.956025ef.js.gz
Normal file
BIN
assets/index.956025ef.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{s as A,ac as N,_ as V}from"./index.c98a7b8a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as C,r as O,o as I,bT as P,bI as T,C as $,D as R,aI as s,aH as c,G as p,aM as m,aN as y,n as b,b8 as S,bi as x,bU as D,bG as H,bJ as M,bL as U}from"./arco.c29bba08.js";import{f as j}from"./vue.437ba699.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.34708d29.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 _=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();I(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),r=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(r){const n=[];for(;;){const{done:l,value:u}=await r.read();if(l)break;n.push(...u)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1).split("?")[0]+" "}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},w=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}_.connectPort&&await h(_.connectPort);let t=await 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 l=n.slice(a,a+256),u=z(l,a,n.length);try{await g(t,u),e.protocol=="Official"?await f(t,26):await J(t)}catch(i){return console.log("Flash command rejected. Aborting."),Promise.reject(i)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,b(()=>{const i=document==null?void 0:document.getElementById("statusArea");i&&(i.scrollTop=i==null?void 0:i.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",b(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),h(t),_.updateSettings({connectState:!1})};return(t,o)=>{const r=N,n=S,a=x,l=P,u=D,i=H,B=T,v=M,k=U;return $(),R("div",W,[s(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),s(k,{gutter:20,align:"stretch"},{default:c(()=>[s(v,{span:24},{default:c(()=>[s(B,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:c(()=>[p("div",K,[p("div",null,[s(a,null,{default:c(()=>[s(n,{onClick:F},{default:c(()=>[m(y(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),s(n,{type:"primary",disabled:!e.binaryFile,onClick:w},{default:c(()=>[m(y(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1})]),p("div",null,[s(u,{type:"button",size:"mini",modelValue:e.protocol,"onUpdate:modelValue":o[0]||(o[0]=E=>e.protocol=E)},{default:c(()=>[s(l,{value:"Official"},{default:c(()=>[m("Official")]),_:1})]),_:1},8,["modelValue"])])]),s(i),p("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,Q)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const ut=V(Y,[["__scopeId","data-v-165ad539"]]);export{ut as default};
|
||||
import{s as A,ac as N,_ as V}from"./index.00fa277a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as C,r as O,o as I,bT as P,bI as T,C as $,D as R,aI as s,aH as c,G as p,aM as m,aN as y,n as b,b8 as S,bi as x,bU as D,bG as H,bJ as M,bL as U}from"./arco.c29bba08.js";import{f as j}from"./vue.437ba699.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.34708d29.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 _=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();I(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),r=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(r){const n=[];for(;;){const{done:l,value:u}=await r.read();if(l)break;n.push(...u)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1).split("?")[0]+" "}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},w=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}_.connectPort&&await h(_.connectPort);let t=await 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 l=n.slice(a,a+256),u=z(l,a,n.length);try{await g(t,u),e.protocol=="Official"?await f(t,26):await J(t)}catch(i){return console.log("Flash command rejected. Aborting."),Promise.reject(i)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,b(()=>{const i=document==null?void 0:document.getElementById("statusArea");i&&(i.scrollTop=i==null?void 0:i.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",b(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),h(t),_.updateSettings({connectState:!1})};return(t,o)=>{const r=N,n=S,a=x,l=P,u=D,i=H,B=T,v=M,k=U;return $(),R("div",W,[s(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),s(k,{gutter:20,align:"stretch"},{default:c(()=>[s(v,{span:24},{default:c(()=>[s(B,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:c(()=>[p("div",K,[p("div",null,[s(a,null,{default:c(()=>[s(n,{onClick:F},{default:c(()=>[m(y(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),s(n,{type:"primary",disabled:!e.binaryFile,onClick:w},{default:c(()=>[m(y(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1})]),p("div",null,[s(u,{type:"button",size:"mini",modelValue:e.protocol,"onUpdate:modelValue":o[0]||(o[0]=E=>e.protocol=E)},{default:c(()=>[s(l,{value:"Official"},{default:c(()=>[m("Official")]),_:1})]),_:1},8,["modelValue"])])]),s(i),p("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,Q)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const ut=V(Y,[["__scopeId","data-v-165ad539"]]);export{ut as default};
|
BIN
assets/index.967c92e9.js.gz
Normal file
BIN
assets/index.967c92e9.js.gz
Normal file
Binary file not shown.
1
assets/index.9867821a.css
Normal file
1
assets/index.9867821a.css
Normal file
|
@ -0,0 +1 @@
|
|||
.container[data-v-b488fdf4]{padding:0 20px 20px}.container[data-v-b488fdf4] .arco-list-content{overflow-x:hidden}.container[data-v-b488fdf4] .arco-card-meta-title{font-size:14px}[data-v-b488fdf4] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-b488fdf4] .arco-list-item{width:33%}[data-v-b488fdf4] .block-title{margin:0 0 12px;font-size:14px}[data-v-b488fdf4] .list-wrap .list-row{align-items:stretch}[data-v-b488fdf4] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-b488fdf4] .list-wrap :deep(.arco-space){width:100%}[data-v-b488fdf4] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
|
@ -1 +1 @@
|
|||
import{_ as u}from"./index.c98a7b8a.js";import{d as m,r as p,C as f,aE as d,aH as t,aI as e,aM as n,aN as h,a$ as c,b0 as _,bo as g}from"./arco.c29bba08.js";import{L as b}from"./index.0cdb7fbc.js";import{S as k}from"./index.b8fd624b.js";const v=m({__name:"index",setup(x){const s=p({isLhw711:location.hostname=="k5.lhw711.cn",isCN:location.hostname=="k5.vicicode.cn"}),i=()=>{var a;return(a=document.getElementsByTagName("meta").builtTime)==null?void 0:a.content};return(a,C)=>{const o=b,r=k,l=g;return f(),d(l,{class:"footer"},{default:t(()=>[e(r,null,{default:t(()=>[e(o,{href:"https://github.com/silenty4ng/k5web",target:"_blank"},{default:t(()=>[n("K5Web - V0.1."+h(i()),1)]),_:1}),c(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[n("\u8700ICP\u59072024089755\u53F7-1")]),_:1},512),[[_,s.isCN]]),c(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[n("\u9C81ICP\u59072024058690\u53F7-1")]),_:1},512),[[_,s.isLhw711]])]),_:1})]),_:1})}}});const L=u(v,[["__scopeId","data-v-61069ac8"]]);export{L as F};
|
||||
import{_ as u}from"./index.00fa277a.js";import{d as m,r as p,C as f,aE as d,aH as t,aI as e,aM as n,aN as h,a$ as c,b0 as _,bo as g}from"./arco.c29bba08.js";import{L as b}from"./index.2958c05f.js";import{S as k}from"./index.f248ecd4.js";const v=m({__name:"index",setup(x){const s=p({isLhw711:location.hostname=="k5.lhw711.cn",isCN:location.hostname=="k5.vicicode.cn"}),i=()=>{var a;return(a=document.getElementsByTagName("meta").builtTime)==null?void 0:a.content};return(a,C)=>{const o=b,r=k,l=g;return f(),d(l,{class:"footer"},{default:t(()=>[e(r,null,{default:t(()=>[e(o,{href:"https://github.com/silenty4ng/k5web",target:"_blank"},{default:t(()=>[n("K5Web - V0.1."+h(i()),1)]),_:1}),c(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[n("\u8700ICP\u59072024089755\u53F7-1")]),_:1},512),[[_,s.isCN]]),c(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[n("\u9C81ICP\u59072024058690\u53F7-1")]),_:1},512),[[_,s.isLhw711]])]),_:1})]),_:1})}}});const L=u(v,[["__scopeId","data-v-61069ac8"]]);export{L as F};
|
BIN
assets/index.98aafa65.js.gz
Normal file
BIN
assets/index.98aafa65.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
.container[data-v-da2b92fd]{background-color:#f2f3f5;width:100vw;height:100vh;padding-top:10%;padding-left:10%;padding-right:10%}
|
||||
.container[data-v-6a0d3981]{background-color:#f2f3f5;width:100vw;height:100vh;padding-top:10%;padding-left:10%;padding-right:10%}
|
|
@ -1 +0,0 @@
|
|||
.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}
|
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.b8f3ff5b.js.gz
Normal file
BIN
assets/index.b8f3ff5b.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{i as Ce,_ as A,r as b,s as Fe,v as De}from"./form-model.db8d573c.js";import{d as qe,X as We,Y as xe,Z as He,b as Q,f as j,l as Ie,$ as se,a0 as Ke,a1 as we,i as Le,k as Oe,m as Ue,a2 as z,n as Me,a3 as Ge,a4 as Xe,w as ke}from"./index.c98a7b8a.js";import{d as Pe,i as Je,c as p,f as V,t as Ee,r as Ae,o as Ye,b as Ze,w as je,aI as M,p as _e,n as ze}from"./arco.c29bba08.js";import{u as Re,C as Qe,F as Ne,V as B,a as er}from"./index.75f952a8.js";/**
|
||||
import{i as Ce,_ as A,r as b,s as Fe,v as De}from"./form-model.7b007587.js";import{d as qe,X as We,Y as xe,Z as He,b as Q,f as j,l as Ie,$ as se,a0 as Ke,a1 as we,i as Le,k as Oe,m as Ue,a2 as z,n as Me,a3 as Ge,a4 as Xe,w as ke}from"./index.00fa277a.js";import{d as Pe,i as Je,c as p,f as V,t as Ee,r as Ae,o as Ye,b as Ze,w as je,aI as M,p as _e,n as ze}from"./arco.c29bba08.js";import{u as Re,C as Qe,F as Ne,V as B,a as er}from"./index.956025ef.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.bfcd8b5b.js.gz
Normal file
BIN
assets/index.bfcd8b5b.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{s as B,ac as E,_ as S}from"./index.c98a7b8a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as A,r as F,bT as R,bI as T,C as D,D as U,aI as o,aH as n,G as y,aN as p,aM as _,a$ as k,b0 as C,bU as V,b8 as H,bi as I,bG as P,bJ as M,bL as N,n as z}from"./arco.c29bba08.js";import{i as G,e as L,b as J,g as K}from"./serial.c6b76da8.js";import{C as O}from"./index.4fcc8799.js";import"./chart.34708d29.js";import"./vue.437ba699.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 f=document==null?void 0:document.getElementById("statusArea");f&&(f.scrollTop=f==null?void 0:f.scrollHeight)});r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await K(u.connectPort)},v=async(t=1)=>{var m,s,f,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,(f=u.configuration)==null?void 0:f.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,f=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(()=>[y("span",{onClick:e[0]||(e[0]=()=>{r.showHide+=1})},p(t.$t("menu.font")+t.$t("global.onStart")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(w,{bordered:"",style:{width:"420px"}},{header:n(()=>[_(p(t.$t("tool.fontwrite"))+" ",1),y("div",null,[o(f,{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(()=>[_(p(t.$t("tool.Simplified_Chinese")),1)]),_:1}),o(s,{value:"Traditional_Chinese"},{default:n(()=>[_(p(t.$t("tool.Traditional_Chinese")),1)]),_:1})]),_:1},8,["modelValue"])])]),default:n(()=>[y("div",null,[k(o(b,{onClick:e[2]||(e[2]=i=>v(1))},{default:n(()=>[_(p(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Simplified_Chinese"]]),k(o(b,{onClick:e[3]||(e[3]=i=>v(6))},{default:n(()=>[_(p(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Traditional_Chinese"]])])]),_:1}),o(w,{bordered:""},{header:n(()=>[_(p(t.$t("tool.pinyinwrite")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:e[4]||(e[4]=i=>v(4))},{default:n(()=>[_(p(t.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),o(w,{bordered:""},{header:n(()=>[_(p(t.$t("tool.ssbpatch")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:e[5]||(e[5]=i=>v(5))},{default:n(()=>[_(p(t.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),o(l),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:r.status},null,8,q)]),_:1})]),_:1})]),_:1})])}}});const ue=S(W,[["__scopeId","data-v-14271e40"]]);export{ue as default};
|
||||
import{s as B,ac as E,_ as S}from"./index.00fa277a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as A,r as F,bT as R,bI as T,C as D,D as U,aI as o,aH as n,G as y,aN as p,aM as _,a$ as k,b0 as C,bU as V,b8 as H,bi as I,bG as P,bJ as M,bL as N,n as z}from"./arco.c29bba08.js";import{i as G,e as L,b as J,g as K}from"./serial.c6b76da8.js";import{C as O}from"./index.261a13f3.js";import"./chart.34708d29.js";import"./vue.437ba699.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 f=document==null?void 0:document.getElementById("statusArea");f&&(f.scrollTop=f==null?void 0:f.scrollHeight)});r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await K(u.connectPort)},v=async(t=1)=>{var m,s,f,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,(f=u.configuration)==null?void 0:f.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,f=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(()=>[y("span",{onClick:e[0]||(e[0]=()=>{r.showHide+=1})},p(t.$t("menu.font")+t.$t("global.onStart")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(w,{bordered:"",style:{width:"420px"}},{header:n(()=>[_(p(t.$t("tool.fontwrite"))+" ",1),y("div",null,[o(f,{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(()=>[_(p(t.$t("tool.Simplified_Chinese")),1)]),_:1}),o(s,{value:"Traditional_Chinese"},{default:n(()=>[_(p(t.$t("tool.Traditional_Chinese")),1)]),_:1})]),_:1},8,["modelValue"])])]),default:n(()=>[y("div",null,[k(o(b,{onClick:e[2]||(e[2]=i=>v(1))},{default:n(()=>[_(p(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Simplified_Chinese"]]),k(o(b,{onClick:e[3]||(e[3]=i=>v(6))},{default:n(()=>[_(p(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Traditional_Chinese"]])])]),_:1}),o(w,{bordered:""},{header:n(()=>[_(p(t.$t("tool.pinyinwrite")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:e[4]||(e[4]=i=>v(4))},{default:n(()=>[_(p(t.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),o(w,{bordered:""},{header:n(()=>[_(p(t.$t("tool.ssbpatch")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:e[5]||(e[5]=i=>v(5))},{default:n(()=>[_(p(t.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),o(l),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:r.status},null,8,q)]),_:1})]),_:1})]),_:1})])}}});const ue=S(W,[["__scopeId","data-v-14271e40"]]);export{ue as default};
|
BIN
assets/index.cfb3ae06.js.gz
Normal file
BIN
assets/index.cfb3ae06.js.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.d7eac6b0.css
Normal file
1
assets/index.d7eac6b0.css
Normal file
|
@ -0,0 +1 @@
|
|||
.container[data-v-0300cd83]{padding:0 20px 20px}.container[data-v-0300cd83] .arco-list-content{overflow-x:hidden}.container[data-v-0300cd83] .arco-card-meta-title{font-size:14px}[data-v-0300cd83] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-0300cd83] .arco-list-item{width:33%}[data-v-0300cd83] .block-title{margin:0 0 12px;font-size:14px}[data-v-0300cd83] .list-wrap .list-row{align-items:stretch}[data-v-0300cd83] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-0300cd83] .list-wrap :deep(.arco-space){width:100%}[data-v-0300cd83] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.de261cab.js.gz
Normal file
BIN
assets/index.de261cab.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{d as k,c as q,bd as R,C as c,D as u,G as s,aI as e,aH as n,aK as D,aJ as j,aE as E,aN as r,be as z,f as A,r as G,bf as H,bg as J,bh as K,bi as Q,bj as T,u as C,aM as f,b7 as W,bk as O,bl as X,b8 as Y,bm as Z,bn as ee}from"./arco.c29bba08.js";import{F as oe}from"./index.bf398b60.js";import{v as V,_ as x,u as se,I as ae,a as ne}from"./index.c98a7b8a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as te,h as re}from"./vue.437ba699.js";import{u as le}from"./loading.d503f2cd.js";import"./index.0cdb7fbc.js";import"./index.b8fd624b.js";import"./slot.0d495437.js";import"./chart.34708d29.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ie={class:"banner"},ce={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},me=["src"],ue=k({__name:"banner",setup(i){const{t}=V.exports.useI18n(),g=q(()=>[{slogan:t("login.banner.slogan1"),subSlogan:t("login.banner.subSlogan1"),image:S},{slogan:t("login.banner.slogan2"),subSlogan:t("login.banner.subSlogan2"),image:S},{slogan:t("login.banner.slogan3"),subSlogan:t("login.banner.subSlogan3"),image:S}]);return(b,v)=>{const p=z,h=R;return c(),u("div",ie,[s("div",ce,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(c(!0),u(D,null,j(g.value,a=>(c(),E(p,{key:a.slogan},{default:n(()=>[(c(),u("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,me)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=x(ue,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=k({__name:"login-form",setup(i){const t=te(),{t:g}=V.exports.useI18n(),b=A(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=G({username:a.value.username,password:a.value.password}),F=async({errors:o,values:l})=>{if(!v.value&&!o){p(!0);try{await h.login(l);const{redirect:_,...w}=t.currentRoute.value.query;t.push({name:_||"Workplace",query:{...w}}),W.success(g("login.form.login.success"));const{rememberPassword:m}=a.value,{username:y,password:$}=l;a.value.username=m?y:"",a.value.password=m?$:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,m=O,y=ne,$=X,B=J,N=K,P=Y,M=Q,U=T;return c(),u("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(U,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(m,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(m,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e($,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e(y)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(M,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":C(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(N,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const ye=x(we,[["__scopeId","data-v-12db3177"]]),$e=i=>(Z("data-v-24cebde1"),i=i(),ee(),i),Ie={class:"container"},Se=$e(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),ke={class:"content"},xe={class:"content-inner"},Pe={class:"footer"},Ce=k({__name:"index",setup(i){return(t,g)=>(c(),u("div",Ie,[Se,e(ge),s("div",ke,[s("div",xe,[e(ye)]),s("div",Pe,[e(oe)])])]))}});const Ge=x(Ce,[["__scopeId","data-v-24cebde1"]]);export{Ge as default};
|
||||
import{d as k,c as q,bd as R,C as c,D as u,G as s,aI as e,aH as n,aK as D,aJ as j,aE as E,aN as r,be as z,f as A,r as G,bf as H,bg as J,bh as K,bi as Q,bj as T,u as C,aM as f,b7 as W,bk as O,bl as X,b8 as Y,bm as Z,bn as ee}from"./arco.c29bba08.js";import{F as oe}from"./index.98aafa65.js";import{v as V,_ as x,u as se,I as ae,a as ne}from"./index.00fa277a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as te,h as re}from"./vue.437ba699.js";import{u as le}from"./loading.d503f2cd.js";import"./index.2958c05f.js";import"./index.f248ecd4.js";import"./slot.359e9304.js";import"./chart.34708d29.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ie={class:"banner"},ce={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},me=["src"],ue=k({__name:"banner",setup(i){const{t}=V.exports.useI18n(),g=q(()=>[{slogan:t("login.banner.slogan1"),subSlogan:t("login.banner.subSlogan1"),image:S},{slogan:t("login.banner.slogan2"),subSlogan:t("login.banner.subSlogan2"),image:S},{slogan:t("login.banner.slogan3"),subSlogan:t("login.banner.subSlogan3"),image:S}]);return(b,v)=>{const p=z,h=R;return c(),u("div",ie,[s("div",ce,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(c(!0),u(D,null,j(g.value,a=>(c(),E(p,{key:a.slogan},{default:n(()=>[(c(),u("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,me)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=x(ue,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=k({__name:"login-form",setup(i){const t=te(),{t:g}=V.exports.useI18n(),b=A(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=G({username:a.value.username,password:a.value.password}),F=async({errors:o,values:l})=>{if(!v.value&&!o){p(!0);try{await h.login(l);const{redirect:_,...w}=t.currentRoute.value.query;t.push({name:_||"Workplace",query:{...w}}),W.success(g("login.form.login.success"));const{rememberPassword:m}=a.value,{username:y,password:$}=l;a.value.username=m?y:"",a.value.password=m?$:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,m=O,y=ne,$=X,B=J,N=K,P=Y,M=Q,U=T;return c(),u("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(U,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(m,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(m,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e($,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e(y)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(M,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":C(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(N,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const ye=x(we,[["__scopeId","data-v-12db3177"]]),$e=i=>(Z("data-v-24cebde1"),i=i(),ee(),i),Ie={class:"container"},Se=$e(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),ke={class:"content"},xe={class:"content-inner"},Pe={class:"footer"},Ce=k({__name:"index",setup(i){return(t,g)=>(c(),u("div",Ie,[Se,e(ge),s("div",ke,[s("div",xe,[e(ye)]),s("div",Pe,[e(oe)])])]))}});const Ge=x(Ce,[["__scopeId","data-v-24cebde1"]]);export{Ge as default};
|
BIN
assets/index.e4faec64.js.gz
Normal file
BIN
assets/index.e4faec64.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