mirror of
https://github.com/silenty4ng/k5web
synced 2025-04-04 07:05:05 +00:00
update
This commit is contained in:
parent
1fc982ddf3
commit
2652142941
106 changed files with 42 additions and 42 deletions
assets
default-layout.04efc42f.jsdefault-layout.04efc42f.js.gzdefault-layout.7fd1c4e1.js.gzdep-71c4f289.0e464570.jsdep-71c4f289.0e464570.js.gzdep-71c4f289.7098b4db.js.gzform-model.78d03df7.jsform-model.78d03df7.js.gzform-model.d25aeef4.js.gzindex.0197b0dd.jsindex.0197b0dd.js.gzindex.01ecea44.jsindex.01ecea44.js.gzindex.020775dd.js.gzindex.08891cdd.jsindex.08891cdd.js.gzindex.0accaee2.jsindex.0accaee2.js.gzindex.0b781cd6.jsindex.0b781cd6.js.gzindex.10898eda.jsindex.10898eda.js.gzindex.2156a178.js.gzindex.2218d16d.js.gzindex.2255b343.jsindex.2255b343.js.gzindex.233b8806.jsindex.233b8806.js.gzindex.237d4c10.jsindex.237d4c10.js.gzindex.250c61a3.jsindex.2da1343c.jsindex.2da1343c.js.gzindex.391ba293.jsindex.391ba293.js.gzindex.3a7e5a77.js.gzindex.3a9c68cb.cssindex.3e73dfe5.jsindex.3e73dfe5.js.gzindex.4168f84d.js.gzindex.4e449df1.jsindex.4e449df1.js.gzindex.4e6f0b97.jsindex.4e6f0b97.js.gzindex.518a6c15.js.gzindex.56558430.js.gzindex.585e6831.js.gzindex.587187e3.js.gzindex.5cb819c1.js.gzindex.5d0e9b0c.cssindex.5f75446f.js.gzindex.653e702e.jsindex.653e702e.js.gzindex.69468bf4.jsindex.69468bf4.js.gzindex.6b049b66.js.gzindex.6bb7e820.jsindex.6bb7e820.js.gzindex.6dc0eff1.js.gzindex.6e8f3b8b.jsindex.6e8f3b8b.js.gzindex.740384b1.js.gzindex.7daa3f8c.js.gzindex.821b793c.js.gzindex.8bc86355.js.gzindex.927b1612.js.gzindex.94f21f69.jsindex.94f21f69.js.gzindex.97670443.jsindex.97670443.js.gzindex.98eb9f08.jsindex.98eb9f08.js.gzindex.9a02403b.jsindex.9a02403b.js.gzindex.9ceb62c3.js.gzindex.9d8d9bc8.js.gzindex.a94dd1fe.jsindex.a94dd1fe.js.gzindex.ab664509.js.gzindex.ac03d233.jsindex.ac03d233.js.gzindex.b1611769.jsindex.b1611769.js.gzindex.b1a28eb5.jsindex.b1a28eb5.js.gzindex.b55f3347.jsindex.ccd9e056.js.gzindex.cdc669d6.js.gzindex.d8812ca2.js.gzindex.d9e851d7.jsindex.d9e851d7.js.gzindex.de4cf933.jsindex.de4cf933.js.gzindex.dedb0746.js.gzindex.f02c8b1d.js.gzindex.f462f1d0.jsindex.f462f1d0.js.gzindex.f5233d4e.js.gzindex.ff963f0a.jsindex.ff963f0a.js.gz
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.04efc42f.js.gz
Normal file
BIN
assets/default-layout.04efc42f.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/dep-71c4f289.0e464570.js.gz
Normal file
BIN
assets/dep-71c4f289.0e464570.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{a7 as N,p as _e,a8 as me,a9 as xe,aa as be,Y as le,ab as we,U as ye,f as Fe,a5 as Se,l as te,W as re}from"./index.518a6c15.js";/**
|
||||
import{a7 as N,p as _e,a8 as me,a9 as xe,aa as be,Y as le,ab as we,U as ye,f as Fe,a5 as Se,l as te,W as re}from"./index.ff963f0a.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/form-model.78d03df7.js.gz
Normal file
BIN
assets/form-model.78d03df7.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.0197b0dd.js.gz
Normal file
BIN
assets/index.0197b0dd.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{_}from"./index.518a6c15.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.13f9ef32.js";import"./chart.5acd6cf6.js";import"./vue.eb9ee7d7.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.ff963f0a.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.13f9ef32.js";import"./chart.5acd6cf6.js";import"./vue.eb9ee7d7.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.01ecea44.js.gz
Normal file
BIN
assets/index.01ecea44.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{v as B,t as x,ad as E,O as H,_ as M}from"./index.518a6c15.js";/* empty css *//* empty css *//* empty css */import{d as N,r as b,c as O,bI as V,C as L,D as j,aI as s,aH as i,G as S,aN as u,aM as h,u as C,a6 as G,b8 as W,bi as q,bK as F,bO as J}from"./arco.13f9ef32.js";import{u as Q}from"./loading.7d726da5.js";import{e as v,a as X,u as Y,f as I,s as P,b as Z,g as ee}from"./serial.5c81571b.js";import{I as z}from"./index.587187e3.js";import{M as te,T as ae}from"./index.5f75446f.js";import"./chart.5acd6cf6.js";import"./vue.eb9ee7d7.js";import"./dep-71c4f289.7098b4db.js";import"./index.4168f84d.js";import"./form-model.d25aeef4.js";import"./slot.fc0e47e1.js";const ne={class:"container"},oe={name:"dtmfContact"},re=N({...oe,setup(ie){const{t:f}=B.exports.useI18n(),r=x(),{loading:A,setLoading:_}=Q(!1),n=b({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),R=b({showHide:0}),$=e=>{n.renderData=e.newData},K=O(()=>[{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,edit:{component:z,props:{clearable:!0},onEdited:e=>{const t=[...n.renderData];t.splice((n.nowPage-1)*n.pageSize+e.rowIndex,1,e.newRowData),n.renderData=t}}},{title:f("cps.dtmfid"),colKey:"dtmfid",align:"left",width:200,cell:(e,{row:t})=>t.dtmfid,edit:{component:z,props:{clearable:!0},onEdited:e=>{e.newRowData.dtmfid=e.newRowData.dtmfid?e.newRowData.dtmfid.toUpperCase():void 0;const t=[...n.renderData];t.splice((n.nowPage-1)*n.pageSize+e.rowIndex,1,e.newRowData),n.renderData=t}}},{title:f("cps.operate"),colKey:"operate",align:"left",width:150}]),T=async()=>{var d,c,o;if(r.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(r.connectPort),_(!0);let e=new Uint8Array(256);for(let a=7168;a<7424;a+=16){const l=await X(r.connectPort,a,16,(d=r.configuration)==null?void 0:d.uart);e.set(l,a-7168)}const t=[];for(let a=0;a<256;a+=16)Y(e.subarray(a,a+1))!="ff"?t.push({dtmfid:I(e.subarray(a+8,a+16),(c=r.configuration)==null?void 0:c.charset),name:I(e.subarray(a,a+8),(o=r.configuration)==null?void 0:o.charset)}):t.push({});n.renderData=t,_(!1)},k=async()=>{var t,d,c;if(r.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(r.connectPort),_(!0);let e=[];for(let o=0;o<16;o++){let a=n.renderData[o].dtmfid,l=n.renderData[o].name;if(a&&l){a=a.trim(),l=l.trim();let m=new Uint8Array(16),g=new Uint8Array(8),w=new Uint8Array(8),y=P(a,(t=r.configuration)==null?void 0:t.charset).slice(0,8);g.set(y);let p=P(l,(d=r.configuration)==null?void 0:d.charset).slice(0,8);w.set(p),m.set(w),m.set(g,8),e.push(m)}}if(e.length<16)for(let o=e.length;o<16;o++){let a=new Uint8Array(16);a[0]=255,a[8]=255,e[o]=a}for(let o=0;o<e.length;o++)await Z(r.connectPort,o*16+7168,e[o],16,(c=r.configuration)==null?void 0:c.uart);await ee(r.connectPort),_(!1)},U=async e=>{const t=[...n.renderData];t.splice(e,1,{scanlist:[]}),n.renderData=t};return(e,t)=>{const d=E,c=G,o=W,a=q,l=F,m=J,g=H,w=ae,y=V;return L(),j("div",ne,[s(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.dtmf")]},null,8,["items"]),s(y,{class:"general-card"},{title:i(()=>[S("span",{onClick:t[0]||(t[0]=()=>{R.showHide+=1})},u(e.$t("menu.cps.dtmf")+e.$t("global.onStart")),1)]),default:i(()=>[s(m,{style:{"margin-bottom":"16px"}},{default:i(()=>[s(l,{span:12},{default:i(()=>[s(a,null,{default:i(()=>[s(o,{type:"primary",onClick:T},{icon:i(()=>[s(c)]),default:i(()=>[h(" "+u(e.$t("cps.onDeviceRead")),1)]),_:1}),s(o,{onClick:k},{icon:i(()=>[s(c)]),default:i(()=>[h(" "+u(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(w,{class:"ttable",loading:C(A),size:"medium",columns:K.value,data:n.renderData,pagination:{defaultPageSize:n.pageSize,total:n.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:t[1]||(t[1]=p=>{n.pageSize=p.pagination.pageSize,n.nowPage=p.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:$},{drag:i(({row:p,rowIndex:D})=>[S("span",null,[s(C(te))])]),index:i(({row:p,rowIndex:D})=>[h(u((n.nowPage-1)*n.pageSize+D+1),1)]),operate:i(({row:p,rowIndex:D})=>[s(g,{theme:"default",variant:"dashed",onClick:se=>U((n.nowPage-1)*n.pageSize+D)},{default:i(()=>[h(u(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Ce=M(re,[["__scopeId","data-v-72c5810e"]]);export{Ce as default};
|
||||
import{v as B,t as x,ad as E,O as H,_ as M}from"./index.ff963f0a.js";/* empty css *//* empty css *//* empty css */import{d as N,r as b,c as O,bI as V,C as L,D as j,aI as s,aH as i,G as S,aN as u,aM as h,u as C,a6 as G,b8 as W,bi as q,bK as F,bO as J}from"./arco.13f9ef32.js";import{u as Q}from"./loading.7d726da5.js";import{e as v,a as X,u as Y,f as I,s as P,b as Z,g as ee}from"./serial.d615852e.js";import{I as z}from"./index.94f21f69.js";import{M as te,T as ae}from"./index.f462f1d0.js";import"./chart.5acd6cf6.js";import"./vue.eb9ee7d7.js";import"./dep-71c4f289.0e464570.js";import"./index.a94dd1fe.js";import"./form-model.78d03df7.js";import"./slot.42e7fa41.js";const ne={class:"container"},oe={name:"dtmfContact"},re=N({...oe,setup(ie){const{t:f}=B.exports.useI18n(),r=x(),{loading:A,setLoading:_}=Q(!1),n=b({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),R=b({showHide:0}),$=e=>{n.renderData=e.newData},K=O(()=>[{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,edit:{component:z,props:{clearable:!0},onEdited:e=>{const t=[...n.renderData];t.splice((n.nowPage-1)*n.pageSize+e.rowIndex,1,e.newRowData),n.renderData=t}}},{title:f("cps.dtmfid"),colKey:"dtmfid",align:"left",width:200,cell:(e,{row:t})=>t.dtmfid,edit:{component:z,props:{clearable:!0},onEdited:e=>{e.newRowData.dtmfid=e.newRowData.dtmfid?e.newRowData.dtmfid.toUpperCase():void 0;const t=[...n.renderData];t.splice((n.nowPage-1)*n.pageSize+e.rowIndex,1,e.newRowData),n.renderData=t}}},{title:f("cps.operate"),colKey:"operate",align:"left",width:150}]),T=async()=>{var d,c,o;if(r.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(r.connectPort),_(!0);let e=new Uint8Array(256);for(let a=7168;a<7424;a+=16){const l=await X(r.connectPort,a,16,(d=r.configuration)==null?void 0:d.uart);e.set(l,a-7168)}const t=[];for(let a=0;a<256;a+=16)Y(e.subarray(a,a+1))!="ff"?t.push({dtmfid:I(e.subarray(a+8,a+16),(c=r.configuration)==null?void 0:c.charset),name:I(e.subarray(a,a+8),(o=r.configuration)==null?void 0:o.charset)}):t.push({});n.renderData=t,_(!1)},k=async()=>{var t,d,c;if(r.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(r.connectPort),_(!0);let e=[];for(let o=0;o<16;o++){let a=n.renderData[o].dtmfid,l=n.renderData[o].name;if(a&&l){a=a.trim(),l=l.trim();let m=new Uint8Array(16),g=new Uint8Array(8),w=new Uint8Array(8),y=P(a,(t=r.configuration)==null?void 0:t.charset).slice(0,8);g.set(y);let p=P(l,(d=r.configuration)==null?void 0:d.charset).slice(0,8);w.set(p),m.set(w),m.set(g,8),e.push(m)}}if(e.length<16)for(let o=e.length;o<16;o++){let a=new Uint8Array(16);a[0]=255,a[8]=255,e[o]=a}for(let o=0;o<e.length;o++)await Z(r.connectPort,o*16+7168,e[o],16,(c=r.configuration)==null?void 0:c.uart);await ee(r.connectPort),_(!1)},U=async e=>{const t=[...n.renderData];t.splice(e,1,{scanlist:[]}),n.renderData=t};return(e,t)=>{const d=E,c=G,o=W,a=q,l=F,m=J,g=H,w=ae,y=V;return L(),j("div",ne,[s(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.dtmf")]},null,8,["items"]),s(y,{class:"general-card"},{title:i(()=>[S("span",{onClick:t[0]||(t[0]=()=>{R.showHide+=1})},u(e.$t("menu.cps.dtmf")+e.$t("global.onStart")),1)]),default:i(()=>[s(m,{style:{"margin-bottom":"16px"}},{default:i(()=>[s(l,{span:12},{default:i(()=>[s(a,null,{default:i(()=>[s(o,{type:"primary",onClick:T},{icon:i(()=>[s(c)]),default:i(()=>[h(" "+u(e.$t("cps.onDeviceRead")),1)]),_:1}),s(o,{onClick:k},{icon:i(()=>[s(c)]),default:i(()=>[h(" "+u(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(w,{class:"ttable",loading:C(A),size:"medium",columns:K.value,data:n.renderData,pagination:{defaultPageSize:n.pageSize,total:n.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:t[1]||(t[1]=p=>{n.pageSize=p.pagination.pageSize,n.nowPage=p.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:$},{drag:i(({row:p,rowIndex:D})=>[S("span",null,[s(C(te))])]),index:i(({row:p,rowIndex:D})=>[h(u((n.nowPage-1)*n.pageSize+D+1),1)]),operate:i(({row:p,rowIndex:D})=>[s(g,{theme:"default",variant:"dashed",onClick:se=>U((n.nowPage-1)*n.pageSize+D)},{default:i(()=>[h(u(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Ce=M(re,[["__scopeId","data-v-72c5810e"]]);export{Ce as default};
|
BIN
assets/index.08891cdd.js.gz
Normal file
BIN
assets/index.08891cdd.js.gz
Normal file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{i as Fe,_ as A,r as b,s as Ie,v as De}from"./form-model.d25aeef4.js";import{d as qe,Z as We,$ as xe,a0 as He,b as ee,f as F,l as je,a1 as ve,a2 as Ue,U as Ee,i as ke,k as _e,m as Ke,a3 as Y,n as Me,a4 as Ge,a5 as Je,w as Pe}from"./index.518a6c15.js";import{d as Ae,i as Xe,c as y,j as $,t as Ce,r as Re,o as Ze,b as ze,w as Ve,aI as C,p as ce,n as Qe}from"./arco.13f9ef32.js";import{u as Be,C as Ye,F as Ne,V as D,a as er}from"./index.587187e3.js";/**
|
||||
import{i as Fe,_ as A,r as b,s as Ie,v as De}from"./form-model.78d03df7.js";import{d as qe,Z as We,$ as xe,a0 as He,b as ee,f as F,l as je,a1 as ve,a2 as Ue,U as Ee,i as ke,k as _e,m as Ke,a3 as Y,n as Me,a4 as Ge,a5 as Je,w as Pe}from"./index.ff963f0a.js";import{d as Ae,i as Xe,c as y,j as $,t as Ce,r as Re,o as Ze,b as ze,w as Ve,aI as C,p as ce,n as Qe}from"./arco.13f9ef32.js";import{u as Be,C as Ye,F as Ne,V as D,a as er}from"./index.94f21f69.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.0accaee2.js.gz
Normal file
BIN
assets/index.0accaee2.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{t as A,ad as C,_ as D}from"./index.518a6c15.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as N,r as O,o as I,bW as P,bI as V,C as $,D as x,aI as s,aH as i,G as c,aM as f,aN as _,n as b,b8 as R,bi as S,bX as T,bG as H,bK as M,bO as j}from"./arco.13f9ef32.js";import{f as q}from"./vue.eb9ee7d7.js";import{d as y,c as G,r as m,j as F,k as L,l as U,m as W}from"./serial.5c81571b.js";import"./chart.5acd6cf6.js";const z={class:"container"},K={style:{display:"flex","justify-content":"space-between","align-items":"center"}},X=["innerHTML"],J={name:"Flash"},Q=N({...J,setup(Y){const d=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"}),l=q();I(async()=>{var t;if(l.query.url){const o=await fetch(l.query.url),a=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(a){const r=[];for(;;){const{done:n,value:p}=await a.read();if(n)break;r.push(...p)}const u=new Uint8Array(r);e.binaryFile=u,e.binaryName=l.query.url.substring(l.query.url.lastIndexOf("/")+1).split("?")[0]+" "}}});const h=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),a=new Uint8Array(await o.arrayBuffer());e.binaryFile=a,e.binaryName=t.files[0].name},t.click()},g=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}d.connectPort&&await y(d.connectPort);let t=await G();e.protocol=="Official"&&await m(t,24,1e3),e.protocol=="Official"&&(await F(t,[48,5,16,0,42,79,69,70,87,45,76,79,83,69,72,85,0,0,0,0]),await m(t,24));const o=L(e.binaryFile);if(o.length>61440)throw alert("\u6700\u540E\u7684\u8FB9\u754C\u68C0\u67E5\u5931\u8D25\u3002\u4E0D\u7BA1\u662F\u8C01\u4FEE\u6539\u4E86\u4EE3\u7801\uFF0C\u4ED6\u90FD\u662F\u4E2A\u767D\u75F4\u3002"),new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<o.length;a+=256){const r=o.slice(a,a+256),u=U(r,a,o.length);try{await F(t,u),e.protocol=="Official"?await m(t,26):await W(t)}catch(n){return console.log("Flash command rejected. Aborting."),Promise.reject(n)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/o.length*100).toFixed(1)}%<br/>`,b(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.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)}),y(t),d.updateSettings({connectState:!1})};return(t,o)=>{const a=C,r=R,u=S,n=P,p=T,w=H,E=V,B=M,v=j;return $(),x("div",z,[s(a,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),s(v,{gutter:20,align:"stretch"},{default:i(()=>[s(B,{span:24},{default:i(()=>[s(E,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:i(()=>[c("div",K,[c("div",null,[s(u,null,{default:i(()=>[s(r,{onClick:h},{default:i(()=>[f(_(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),s(r,{type:"primary",disabled:!e.binaryFile,onClick:g},{default:i(()=>[f(_(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1})]),c("div",null,[s(p,{type:"button",size:"mini",modelValue:e.protocol,"onUpdate:modelValue":o[0]||(o[0]=k=>e.protocol=k)},{default:i(()=>[s(n,{value:"Official"},{default:i(()=>[f("Official")]),_:1})]),_:1},8,["modelValue"])])]),s(w),c("div",{id:"statusArea",style:{height:"20em","background-color":"var(--color-bg-3)",color:"var(--color-text-3)",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,X)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const lt=D(Q,[["__scopeId","data-v-f272bde7"]]);export{lt as default};
|
||||
import{t as A,ad as C,_ as D}from"./index.ff963f0a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as N,r as O,o as I,bW as P,bI as V,C as $,D as x,aI as s,aH as i,G as c,aM as f,aN as _,n as b,b8 as R,bi as S,bX as T,bG as H,bK as M,bO as j}from"./arco.13f9ef32.js";import{f as q}from"./vue.eb9ee7d7.js";import{d as y,c as G,r as m,j as F,k as L,l as U,m as W}from"./serial.d615852e.js";import"./chart.5acd6cf6.js";const z={class:"container"},K={style:{display:"flex","justify-content":"space-between","align-items":"center"}},X=["innerHTML"],J={name:"Flash"},Q=N({...J,setup(Y){const d=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"}),l=q();I(async()=>{var t;if(l.query.url){const o=await fetch(l.query.url),a=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(a){const r=[];for(;;){const{done:n,value:p}=await a.read();if(n)break;r.push(...p)}const u=new Uint8Array(r);e.binaryFile=u,e.binaryName=l.query.url.substring(l.query.url.lastIndexOf("/")+1).split("?")[0]+" "}}});const h=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),a=new Uint8Array(await o.arrayBuffer());e.binaryFile=a,e.binaryName=t.files[0].name},t.click()},g=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}d.connectPort&&await y(d.connectPort);let t=await G();e.protocol=="Official"&&await m(t,24,1e3),e.protocol=="Official"&&(await F(t,[48,5,16,0,42,79,69,70,87,45,76,79,83,69,72,85,0,0,0,0]),await m(t,24));const o=L(e.binaryFile);if(o.length>61440)throw alert("\u6700\u540E\u7684\u8FB9\u754C\u68C0\u67E5\u5931\u8D25\u3002\u4E0D\u7BA1\u662F\u8C01\u4FEE\u6539\u4E86\u4EE3\u7801\uFF0C\u4ED6\u90FD\u662F\u4E2A\u767D\u75F4\u3002"),new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<o.length;a+=256){const r=o.slice(a,a+256),u=U(r,a,o.length);try{await F(t,u),e.protocol=="Official"?await m(t,26):await W(t)}catch(n){return console.log("Flash command rejected. Aborting."),Promise.reject(n)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/o.length*100).toFixed(1)}%<br/>`,b(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.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)}),y(t),d.updateSettings({connectState:!1})};return(t,o)=>{const a=C,r=R,u=S,n=P,p=T,w=H,E=V,B=M,v=j;return $(),x("div",z,[s(a,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),s(v,{gutter:20,align:"stretch"},{default:i(()=>[s(B,{span:24},{default:i(()=>[s(E,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:i(()=>[c("div",K,[c("div",null,[s(u,null,{default:i(()=>[s(r,{onClick:h},{default:i(()=>[f(_(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),s(r,{type:"primary",disabled:!e.binaryFile,onClick:g},{default:i(()=>[f(_(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1})]),c("div",null,[s(p,{type:"button",size:"mini",modelValue:e.protocol,"onUpdate:modelValue":o[0]||(o[0]=k=>e.protocol=k)},{default:i(()=>[s(n,{value:"Official"},{default:i(()=>[f("Official")]),_:1})]),_:1},8,["modelValue"])])]),s(w),c("div",{id:"statusArea",style:{height:"20em","background-color":"var(--color-bg-3)",color:"var(--color-text-3)",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,X)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const lt=D(Q,[["__scopeId","data-v-f272bde7"]]);export{lt as default};
|
BIN
assets/index.0b781cd6.js.gz
Normal file
BIN
assets/index.0b781cd6.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.13f9ef32.js";import{b as u,c as W,ac as X,i as Z,m as U,w as k}from"./index.518a6c15.js";/**
|
||||
import{d as R,c as t,aI as a,aU as V}from"./arco.13f9ef32.js";import{b as u,c as W,ac as X,i as Z,m as U,w as k}from"./index.ff963f0a.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.10898eda.js.gz
Normal file
BIN
assets/index.10898eda.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{e as pc,b as vc,c as mc,n as gc,f as pt,a3 as q0,m as Q0,k as _c,ac as wc,w as Tc,v as Ec,t as kc,ad as Sc,O as Fc,_ as Ac}from"./index.518a6c15.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as ui,t as Cc,c as vt,w as yc,h as en,aI as Oe,r as rn,bA as Dc,o as Oc,bI as Rc,C as tn,D as Ic,aH as Pe,G as x0,aN as tt,aM as Xr,aE as Nc,aF as Pc,u as an,a6 as bc,b8 as Lc,bi as Mc,bK as Bc,O as Uc,bv as Vc,bO as Wc,bm as Hc,bn as Gc}from"./arco.13f9ef32.js";import{f as Xc}from"./vue.eb9ee7d7.js";import{u as zc}from"./loading.7d726da5.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.5c81571b.js";import{b as Yc,I as e0}from"./index.587187e3.js";import{S as Or,C as Jc,a as Zc}from"./dep-71c4f289.7098b4db.js";import{M as qc,T as Qc}from"./index.5f75446f.js";import"./chart.5acd6cf6.js";import"./index.4168f84d.js";import"./form-model.d25aeef4.js";import"./slot.fc0e47e1.js";/**
|
||||
import{e as pc,b as vc,c as mc,n as gc,f as pt,a3 as q0,m as Q0,k as _c,ac as wc,w as Tc,v as Ec,t as kc,ad as Sc,O as Fc,_ as Ac}from"./index.ff963f0a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as ui,t as Cc,c as vt,w as yc,h as en,aI as Oe,r as rn,bA as Dc,o as Oc,bI as Rc,C as tn,D as Ic,aH as Pe,G as x0,aN as tt,aM as Xr,aE as Nc,aF as Pc,u as an,a6 as bc,b8 as Lc,bi as Mc,bK as Bc,O as Uc,bv as Vc,bO as Wc,bm as Hc,bn as Gc}from"./arco.13f9ef32.js";import{f as Xc}from"./vue.eb9ee7d7.js";import{u as zc}from"./loading.7d726da5.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.d615852e.js";import{b as Yc,I as e0}from"./index.94f21f69.js";import{S as Or,C as Jc,a as Zc}from"./dep-71c4f289.0e464570.js";import{M as qc,T as Qc}from"./index.f462f1d0.js";import"./chart.5acd6cf6.js";import"./index.a94dd1fe.js";import"./form-model.78d03df7.js";import"./slot.42e7fa41.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.2255b343.js.gz
Normal file
BIN
assets/index.2255b343.js.gz
Normal file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{P as re,Q as se,S as ie,f as g,l as A,Y as S,k as B,aK as q,b as le,i as ce,w as ue,t as Se,u as Ae,N as P,ad as De,O as Fe,_ as Ee}from"./index.518a6c15.js";/* empty css *//* empty css *//* empty css */import{d as $,c as w,o as pe,b as Ne,j as $e,t as Ie,p as Le,r as R,aI as o,aU as de,i as ze,bI as Ue,C as O,D as E,aH as i,G as j,aM as b,aN as _,u as h,aK as z,aJ as X,aE as N,b7 as W,bh as Ve,bK as Be,bO as Re,bm as Te,bn as Me}from"./arco.13f9ef32.js";import{g as Ke}from"./vue.eb9ee7d7.js";import{S as Ge,R as He,L as Je,a as qe,D as Xe,T as We,U as Qe}from"./index.9ceb62c3.js";import{i as U,I as Ye}from"./index.587187e3.js";import{C as Ze}from"./index.cdc669d6.js";import{P as et,T as tt}from"./dep-71c4f289.7098b4db.js";import{L as nt}from"./index.6dc0eff1.js";import{F as at,a as ot}from"./index.740384b1.js";import"./chart.5acd6cf6.js";import"./slot.fc0e47e1.js";import"./index.4168f84d.js";import"./index.56558430.js";import"./form-model.d25aeef4.js";import"./index.cf5032a8.js";function Q(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),a.push.apply(a,n)}return a}function Y(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Q(Object(a),!0).forEach(function(n){ie(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Q(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}var rt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.66 7.17l-5.3 5.3-1.42-1.41 5.3-5.3 1.42 1.41zm5.65 0l-10.6 10.6-6.37-6.36L7.76 10l4.95 4.95 9.19-9.2 1.41 1.42zM2.11 10l4.94 4.95.35-.35L8.82 16l-1.77 1.77L.69 11.4 2.1 10z"}}]},st=$({name:"CheckDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:a}=e,n=w(()=>t.size),{className:u,style:m}=re(n),s=w(()=>["t-icon","t-icon-check-double",u.value]),r=w(()=>Y(Y({},m.value),a.style)),c=w(()=>({class:s.value,style:r.value,onClick:v=>{var f;return(f=t.onClick)===null||f===void 0?void 0:f.call(t,{e:v})}}));return()=>se(rt,c.value)}});const it=st;function Z(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),a.push.apply(a,n)}return a}function ee(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Z(Object(a),!0).forEach(function(n){ie(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Z(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}var lt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.88 1.38l1.28.22a4 4 0 013.34 3.94V8h5.32a2 2 0 011.97 2.33l-1.66 10A2 2 0 0119.15 22H7V10.8l3.88-9.42zm1.23 2.26L9 11.2V20h10.15l1.67-10H13.5V5.54a2 2 0 00-1.39-1.9zM4 10v12H2V10h2z"}}]},ct=$({name:"ThumbUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:a}=e,n=w(()=>t.size),{className:u,style:m}=re(n),s=w(()=>["t-icon","t-icon-thumb-up",u.value]),r=w(()=>ee(ee({},m.value),a.style)),c=w(()=>({class:s.value,style:r.value,onClick:v=>{var f;return(f=t.onClick)===null||f===void 0?void 0:f.call(t,{e:v})}}));return()=>se(lt,c.value)}});const ut=ct;/**
|
||||
import{P as re,Q as se,S as ie,f as g,l as A,Y as S,k as B,aK as q,b as le,i as ce,w as ue,t as Se,u as Ae,N as P,ad as De,O as Fe,_ as Ee}from"./index.ff963f0a.js";/* empty css *//* empty css *//* empty css */import{d as $,c as w,o as pe,b as Ne,j as $e,t as Ie,p as Le,r as R,aI as o,aU as de,i as ze,bI as Ue,C as O,D as E,aH as i,G as j,aM as b,aN as _,u as h,aK as z,aJ as X,aE as N,b7 as W,bh as Ve,bK as Be,bO as Re,bm as Te,bn as Me}from"./arco.13f9ef32.js";import{g as Ke}from"./vue.eb9ee7d7.js";import{S as Ge,R as He,L as Je,a as qe,D as Xe,T as We,U as Qe}from"./index.6bb7e820.js";import{i as U,I as Ye}from"./index.94f21f69.js";import{C as Ze}from"./index.10898eda.js";import{P as et,T as tt}from"./dep-71c4f289.0e464570.js";import{L as nt}from"./index.6e8f3b8b.js";import{F as at,a as ot}from"./index.0accaee2.js";import"./chart.5acd6cf6.js";import"./slot.42e7fa41.js";import"./index.a94dd1fe.js";import"./index.9a02403b.js";import"./form-model.78d03df7.js";import"./index.250c61a3.js";function Q(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),a.push.apply(a,n)}return a}function Y(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Q(Object(a),!0).forEach(function(n){ie(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Q(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}var rt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.66 7.17l-5.3 5.3-1.42-1.41 5.3-5.3 1.42 1.41zm5.65 0l-10.6 10.6-6.37-6.36L7.76 10l4.95 4.95 9.19-9.2 1.41 1.42zM2.11 10l4.94 4.95.35-.35L8.82 16l-1.77 1.77L.69 11.4 2.1 10z"}}]},st=$({name:"CheckDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:a}=e,n=w(()=>t.size),{className:u,style:m}=re(n),s=w(()=>["t-icon","t-icon-check-double",u.value]),r=w(()=>Y(Y({},m.value),a.style)),c=w(()=>({class:s.value,style:r.value,onClick:v=>{var f;return(f=t.onClick)===null||f===void 0?void 0:f.call(t,{e:v})}}));return()=>se(rt,c.value)}});const it=st;function Z(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),a.push.apply(a,n)}return a}function ee(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Z(Object(a),!0).forEach(function(n){ie(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Z(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}var lt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.88 1.38l1.28.22a4 4 0 013.34 3.94V8h5.32a2 2 0 011.97 2.33l-1.66 10A2 2 0 0119.15 22H7V10.8l3.88-9.42zm1.23 2.26L9 11.2V20h10.15l1.67-10H13.5V5.54a2 2 0 00-1.39-1.9zM4 10v12H2V10h2z"}}]},ct=$({name:"ThumbUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:a}=e,n=w(()=>t.size),{className:u,style:m}=re(n),s=w(()=>["t-icon","t-icon-thumb-up",u.value]),r=w(()=>ee(ee({},m.value),a.style)),c=w(()=>({class:s.value,style:r.value,onClick:v=>{var f;return(f=t.onClick)===null||f===void 0?void 0:f.call(t,{e:v})}}));return()=>se(lt,c.value)}});const ut=ct;/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.233b8806.js.gz
Normal file
BIN
assets/index.233b8806.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.237d4c10.js.gz
Normal file
BIN
assets/index.237d4c10.js.gz
Normal file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{w as a,a6 as o}from"./index.518a6c15.js";import"./arco.13f9ef32.js";/**
|
||||
import{w as a,a6 as o}from"./index.ff963f0a.js";import"./arco.13f9ef32.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
File diff suppressed because one or more lines are too long
BIN
assets/index.2da1343c.js.gz
Normal file
BIN
assets/index.2da1343c.js.gz
Normal file
Binary file not shown.
1
assets/index.391ba293.js
Normal file
1
assets/index.391ba293.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{v as T,t as V,ad as U,_ as N}from"./index.ff963f0a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as M,j as R,r as P,w as I,aY as $,b3 as K,bT as H,bI as Z,C as x,D as b,aI as a,aH as r,aM as c,G as l,aN as h,aK as j,aJ as q,aE as G,c3 as J,b7 as O,bh as Y,bf as z,b8 as Q,bV as W,bm as X,bn as ee,n as te}from"./arco.13f9ef32.js";import{n as ne,e as se,o as oe}from"./serial.d615852e.js";import{g as ae}from"./vue.eb9ee7d7.js";import"./chart.5acd6cf6.js";const A=_=>(X("data-v-40973ff9"),_=_(),ee(),_),re={class:"container"},ce={style:{display:"flex","align-items":"center",margin:"10px"}},ie=A(()=>l("span",null,"\u547C\u53F7\uFF1A",-1)),le=A(()=>l("span",null,"\u8BBE\u5907\u53F7\uFF1A",-1)),ue={style:{height:"500px",border:"1px solid #eee"}},de={style:{display:"flex"}},pe={style:{width:"100px","text-align":"right","margin-right":"10px"}},me={style:{"margin-left":"10px"}},_e={name:"Chat"},ge=M({..._e,setup(_){T.exports.useI18n();const S=ae(),g=V(),f=R(null),e=P({sendInput:"",msgList:[],callsign:sessionStorage.getItem("callsign")||"",devid:parseInt(sessionStorage.getItem("devid")||"0"),connect:!1,reader:null,startChat:"\u5F00\u59CB\u804A\u5929"});I(()=>e.callsign,(n,t)=>{sessionStorage.setItem("callsign",n)}),I(()=>e.devid,(n,t)=>{sessionStorage.setItem("devid",n.toString())}),$(()=>{e.connect&&e.reader.releaseLock()});const C=n=>/^[A-Z]{1,2}\d{1,2}[A-Z]{1,3}$/.test(n),v=()=>{te(()=>{f.value&&(f.value.$el.children[0].children[0].children[0].scrollTop=f.value.$el.children[0].children[0].children[0].scrollHeight)})},k=()=>{S.push({path:"/tool/flash",query:{url:"/sms_test.bin"}})};function w(n){const u=new TextEncoder().encode(n);let s="";return u.forEach(i=>{s+=i.toString(16).padStart(2,"0").toUpperCase()}),s}function B(n){const t=new Uint8Array(n.match(/.{1,2}/g).map(s=>parseInt(s,16)));return new TextDecoder().decode(t)}const y=async()=>{if(e.sendInput.trim()!=""){if(!C(e.callsign.trim())){O.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u547C\u53F7");return}ne(g.connectPort,"START:"+e.callsign.trim()+":"+e.devid+":"+w(e.sendInput.trim())+":END"),e.msgList.push({callsign:e.callsign.trim(),devid:e.devid,content:e.sendInput.trim()}),e.sendInput="",v()}},E=async()=>{if(e.connect)e.connect=!1,e.reader.releaseLock(),e.startChat="\u5F00\u59CB\u804A\u5929";else{if(g.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await se(g.connectPort),e.reader=oe(g.connectPort),D(e.reader),e.startChat="\u65AD\u5F00\u804A\u5929",e.connect=!0}},D=async n=>{let t="";const u=new TextDecoder,s=/START:[A-Z0-9]+:[0-9]+:[A-F0-9]+:END/g;for(;;)try{const{value:i,done:F}=await n.read();if(F)break;let p=u.decode(i,{stream:!0});p=p.trim(),t+=p,console.log(t);const d=t.match(s);if(d&&d.length>0){t="";try{const m=d[d.length-1].split(":");e.msgList.push({callsign:m[1],devid:m[2],content:B(m[3])}),v()}catch{console.log("ERROR")}}}catch{console.log("\u5DF2\u65AD\u5F00"),e.connect=!1,e.reader.releaseLock(),e.startChat="\u5F00\u59CB\u804A\u5929";break}n.releaseLock()};return(n,t)=>{const u=U,s=Y,i=z,F=K,p=Q,d=W,m=H,L=Z;return x(),b("div",re,[a(u,{items:[n.$t("menu.list"),n.$t("menu.flash")]},null,8,["items"]),a(L,{class:"general-card"},{title:r(()=>[c(" \u3010\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u3011\u3010\u5F00\u53D1\u4E2D\uFF01\uFF01\uFF01\u3011\u65E0\u7EBF\u7535\u804A\u5929\uFF08\u9700\u4F7F\u7528"),a(s,{onClick:k},{default:r(()=>[c("\u8FD9\u4E2A")]),_:1}),c("\u56FA\u4EF6\uFF09 ")]),default:r(()=>[l("div",ce,[ie,a(i,{modelValue:e.callsign,"onUpdate:modelValue":t[0]||(t[0]=o=>e.callsign=o),style:{width:"200px !important"}},null,8,["modelValue"]),c(" \xA0\xA0\xA0 "),le,a(F,{min:0,max:15,modelValue:e.devid,"onUpdate:modelValue":t[1]||(t[1]=o=>e.devid=o),style:{width:"200px !important"}},null,8,["modelValue"]),c(" \xA0\xA0\xA0 "),a(p,{onClick:E,type:"primary"},{default:r(()=>[c(h(e.startChat),1)]),_:1})]),l("div",ue,[a(m,{"max-height":500,bordered:!1,ref_key:"msgList",ref:f},{empty:r(()=>[]),default:r(()=>[(x(!0),b(j,null,q(e.msgList,o=>(x(),G(d,null,{default:r(()=>[l("div",de,[l("div",pe,h(o.callsign)+"("+h(o.devid.toString().padStart(2,"0"))+")",1),c(" > "),l("div",me,h(o.content),1)])]),_:2},1024))),256))]),_:1},512)]),a(i,{disabled:!e.connect,modelValue:e.sendInput,"onUpdate:modelValue":t[2]||(t[2]=o=>e.sendInput=o),onKeyup:J(y,["enter"])},{append:r(()=>[a(s,{disabled:!e.connect,onClick:y},{default:r(()=>[c("\u53D1\u9001")]),_:1},8,["disabled"])]),_:1},8,["disabled","modelValue"])]),_:1})])}}});const Be=N(ge,[["__scopeId","data-v-40973ff9"]]);export{Be as default};
|
BIN
assets/index.391ba293.js.gz
Normal file
BIN
assets/index.391ba293.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
[data-v-3b8129ee] ::-webkit-scrollbar-thumb{border-radius:0!important}[data-v-3b8129ee] .scrollbar::-webkit-scrollbar{height:10px}[data-v-3b8129ee] .t-table__content::-webkit-scrollbar{height:15px}.container[data-v-3b8129ee]{padding:0 20px 20px;padding:0 .781vw .781vw}[data-v-3b8129ee] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-3b8129ee]{margin-left:12px;cursor:pointer}.active[data-v-3b8129ee]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-3b8129ee]{display:flex;align-items:center;width:200px;width:7.813vw}.setting .title[data-v-3b8129ee]{margin-left:12px;cursor:pointer}.ttable[data-v-3b8129ee] .t-table__affixed-header-elm-wrap{height:60px!important;height:2.344vw!important}.ttable[data-v-3b8129ee] .t-table__content{scrollbar-width:auto!important}
|
|
@ -1 +1 @@
|
|||
import{v as H,t as M,ad as N,O,_ as U}from"./index.518a6c15.js";/* empty css *//* empty css *//* empty css */import{d as L,r as y,c as V,bI as j,C as G,D as W,aI as s,aH as r,G as S,aN as f,aM as g,u as h,a6 as Z,b8 as q,bi as F,bK as J,bO as Q}from"./arco.13f9ef32.js";import{u as X}from"./loading.7d726da5.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.5c81571b.js";import{I as P}from"./index.587187e3.js";import{M as ae,T as ne}from"./index.5f75446f.js";import"./chart.5acd6cf6.js";import"./vue.eb9ee7d7.js";import"./dep-71c4f289.7098b4db.js";import"./index.4168f84d.js";import"./form-model.d25aeef4.js";import"./slot.fc0e47e1.js";const oe={class:"container"},re={name:"Radio"},ie=L({...re,setup(se){const{t:m}=H.exports.useI18n(),o=M(),{loading:I,setLoading:u}=X(!1),a=y({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),z=y({showHide:0}),R=e=>{a.renderData=e.newData},A=V(()=>[{colKey:"drag",title:m("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:m("cps.contact"),colKey:"name",width:250,align:"left",cell:(e,{row:t})=>t.name?t.name.replace(/[^a-zA-Z0-9_]/g,""):void 0,edit:{component:P,props:{clearable:!0},onEdited:e=>{const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:m("cps.mdcid"),colKey:"mdcid",align:"left",width:200,cell:(e,{row:t})=>parseInt(t.mdcid,16)<=65535?parseInt(t.mdcid,16).toString(16):void 0,edit:{component:P,props:{clearable:!0},onEdited:e=>{e.newRowData.mdcid=e.newRowData.mdcid?e.newRowData.mdcid.toLowerCase():void 0;const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:m("cps.operate"),colKey:"operate",align:"left",width:150}]),T=async()=>{var d,c;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);let e=new Uint8Array(256);for(let n=7424;n<7680;n+=16){const 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: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 i=0;i<256;i+=16)if(a.renderData[i/16].mdcid){const l=new Uint8Array(16).fill(32);l.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(0,2))),l.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(2,4)),1),l.set(ee(a.renderData[i/16].name),2),await b(o.connectPort,i+7424,l,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 te(o.connectPort),u(!1)},K=async e=>{const t=[...a.renderData];t.splice(e,1,{scanlist:[]}),a.renderData=t};return(e,t)=>{const d=N,c=Z,n=q,i=F,l=J,k=Q,x=O,B=ne,E=j;return G(),W("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})},f(e.$t("menu.cps.mdc")+e.$t("global.onStart")),1)]),default:r(()=>[s(k,{style:{"margin-bottom":"16px"}},{default:r(()=>[s(l,{span:12},{default:r(()=>[s(i,null,{default:r(()=>[s(n,{type:"primary",onClick:T},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceRead")),1)]),_:1}),s(n,{onClick:$},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(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,[s(h(ae))])]),index:r(({row:p,rowIndex:_})=>[g(f((a.nowPage-1)*a.pageSize+_+1),1)]),operate:r(({row:p,rowIndex:_})=>[s(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 Ce=U(ie,[["__scopeId","data-v-dfecd3b2"]]);export{Ce as default};
|
||||
import{v as H,t as M,ad as N,O,_ as U}from"./index.ff963f0a.js";/* empty css *//* empty css *//* empty css */import{d as L,r as y,c as V,bI as j,C as G,D as W,aI as s,aH as r,G as S,aN as f,aM as g,u as h,a6 as Z,b8 as q,bi as F,bK as J,bO as Q}from"./arco.13f9ef32.js";import{u as X}from"./loading.7d726da5.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.d615852e.js";import{I as P}from"./index.94f21f69.js";import{M as ae,T as ne}from"./index.f462f1d0.js";import"./chart.5acd6cf6.js";import"./vue.eb9ee7d7.js";import"./dep-71c4f289.0e464570.js";import"./index.a94dd1fe.js";import"./form-model.78d03df7.js";import"./slot.42e7fa41.js";const oe={class:"container"},re={name:"Radio"},ie=L({...re,setup(se){const{t:m}=H.exports.useI18n(),o=M(),{loading:I,setLoading:u}=X(!1),a=y({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),z=y({showHide:0}),R=e=>{a.renderData=e.newData},A=V(()=>[{colKey:"drag",title:m("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:m("cps.contact"),colKey:"name",width:250,align:"left",cell:(e,{row:t})=>t.name?t.name.replace(/[^a-zA-Z0-9_]/g,""):void 0,edit:{component:P,props:{clearable:!0},onEdited:e=>{const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:m("cps.mdcid"),colKey:"mdcid",align:"left",width:200,cell:(e,{row:t})=>parseInt(t.mdcid,16)<=65535?parseInt(t.mdcid,16).toString(16):void 0,edit:{component:P,props:{clearable:!0},onEdited:e=>{e.newRowData.mdcid=e.newRowData.mdcid?e.newRowData.mdcid.toLowerCase():void 0;const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:m("cps.operate"),colKey:"operate",align:"left",width:150}]),T=async()=>{var d,c;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);let e=new Uint8Array(256);for(let n=7424;n<7680;n+=16){const 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: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 i=0;i<256;i+=16)if(a.renderData[i/16].mdcid){const l=new Uint8Array(16).fill(32);l.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(0,2))),l.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(2,4)),1),l.set(ee(a.renderData[i/16].name),2),await b(o.connectPort,i+7424,l,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 te(o.connectPort),u(!1)},K=async e=>{const t=[...a.renderData];t.splice(e,1,{scanlist:[]}),a.renderData=t};return(e,t)=>{const d=N,c=Z,n=q,i=F,l=J,k=Q,x=O,B=ne,E=j;return G(),W("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})},f(e.$t("menu.cps.mdc")+e.$t("global.onStart")),1)]),default:r(()=>[s(k,{style:{"margin-bottom":"16px"}},{default:r(()=>[s(l,{span:12},{default:r(()=>[s(i,null,{default:r(()=>[s(n,{type:"primary",onClick:T},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceRead")),1)]),_:1}),s(n,{onClick:$},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(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,[s(h(ae))])]),index:r(({row:p,rowIndex:_})=>[g(f((a.nowPage-1)*a.pageSize+_+1),1)]),operate:r(({row:p,rowIndex:_})=>[s(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 Ce=U(ie,[["__scopeId","data-v-dfecd3b2"]]);export{Ce as default};
|
BIN
assets/index.3e73dfe5.js.gz
Normal file
BIN
assets/index.3e73dfe5.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.4e449df1.js.gz
Normal file
BIN
assets/index.4e449df1.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.4e6f0b97.js.gz
Normal file
BIN
assets/index.4e6f0b97.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
assets/index.5d0e9b0c.css
Normal file
1
assets/index.5d0e9b0c.css
Normal file
|
@ -0,0 +1 @@
|
|||
[data-v-40973ff9] ::-webkit-scrollbar-thumb{border-radius:0!important}[data-v-40973ff9] .scrollbar::-webkit-scrollbar{height:10px}[data-v-40973ff9] .t-table__content::-webkit-scrollbar{height:15px}.container[data-v-40973ff9]{padding:0 20px 20px;padding:0 .781vw .781vw}[data-v-40973ff9] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-40973ff9]{margin-left:12px;cursor:pointer}.active[data-v-40973ff9]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-40973ff9]{display:flex;align-items:center;width:200px;width:7.813vw}.setting .title[data-v-40973ff9]{margin-left:12px;cursor:pointer}.ttable[data-v-40973ff9] .t-table__affixed-header-elm-wrap{height:60px!important;height:2.344vw!important}.ttable[data-v-40973ff9] .t-table__content{scrollbar-width:auto!important}
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
var Hn=Object.defineProperty;var Bn=(a,e,t)=>e in a?Hn(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var E=(a,e,t)=>(Bn(a,typeof e!="symbol"?e+"":e,t),t);import{v as Gn,ad as Wn,_ as jn}from"./index.518a6c15.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as qn,r as Zn,w as Yn,o as Xn,bW as Vn,bI as Qn,C as ke,D as nt,aI as q,aH as Z,u as Jn,G as qt,aM as he,aN as Ne,aK as Zt,aJ as Yt,aE as Xt,bX as Kn,b8 as ei,bh as ti,bK as ni,bO as ii}from"./arco.13f9ef32.js";import{g as si}from"./vue.eb9ee7d7.js";import{u as ri}from"./loading.7d726da5.js";import{L as oi}from"./index.6dc0eff1.js";import{S as li}from"./index.56558430.js";import"./chart.5acd6cf6.js";import"./slot.fc0e47e1.js";function pt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let re=pt();function pn(a){re=a}const hn=/[&<>"']/,ai=new RegExp(hn.source,"g"),fn=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ci=new RegExp(fn.source,"g"),ui={"&":"&","<":"<",">":">",'"':""","'":"'"},Vt=a=>ui[a];function U(a,e){if(e){if(hn.test(a))return a.replace(ai,Vt)}else if(fn.test(a))return a.replace(ci,Vt);return a}const pi=/(^|[^\[])\^/g;function T(a,e){let t=typeof a=="string"?a:a.source;e=e||"";const n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(pi,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}function Qt(a){try{a=encodeURI(a).replace(/%25/g,"%")}catch{return null}return a}const Ae={exec:()=>null};function Jt(a,e){const t=a.replace(/\|/g,(i,r,l)=>{let c=!1,h=r;for(;--h>=0&&l[h]==="\\";)c=!c;return c?"|":" |"}),n=t.split(/ \|/);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(/\\\|/g,"|");return n}function be(a,e,t){const n=a.length;if(n===0)return"";let s=0;for(;s<n;){const i=a.charAt(n-s-1);if(i===e&&!t)s++;else if(i!==e&&t)s++;else break}return a.slice(0,n-s)}function hi(a,e){if(a.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<a.length;n++)if(a[n]==="\\")n++;else if(a[n]===e[0])t++;else if(a[n]===e[1]&&(t--,t<0))return n;return-1}function Kt(a,e,t,n){const s=e.href,i=e.title?U(e.title):null,r=a[1].replace(/\\([\[\]])/g,"$1");if(a[0].charAt(0)!=="!"){n.state.inLink=!0;const l={type:"link",raw:t,href:s,title:i,text:r,tokens:n.inlineTokens(r)};return n.state.inLink=!1,l}return{type:"image",raw:t,href:s,title:i,text:U(r)}}function fi(a,e){const t=a.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(`
|
||||
var Hn=Object.defineProperty;var Bn=(a,e,t)=>e in a?Hn(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var E=(a,e,t)=>(Bn(a,typeof e!="symbol"?e+"":e,t),t);import{v as Gn,ad as Wn,_ as jn}from"./index.ff963f0a.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as qn,r as Zn,w as Yn,o as Xn,bW as Vn,bI as Qn,C as ke,D as nt,aI as q,aH as Z,u as Jn,G as qt,aM as he,aN as Ne,aK as Zt,aJ as Yt,aE as Xt,bX as Kn,b8 as ei,bh as ti,bK as ni,bO as ii}from"./arco.13f9ef32.js";import{g as si}from"./vue.eb9ee7d7.js";import{u as ri}from"./loading.7d726da5.js";import{L as oi}from"./index.6e8f3b8b.js";import{S as li}from"./index.9a02403b.js";import"./chart.5acd6cf6.js";import"./slot.42e7fa41.js";function pt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let re=pt();function pn(a){re=a}const hn=/[&<>"']/,ai=new RegExp(hn.source,"g"),fn=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ci=new RegExp(fn.source,"g"),ui={"&":"&","<":"<",">":">",'"':""","'":"'"},Vt=a=>ui[a];function U(a,e){if(e){if(hn.test(a))return a.replace(ai,Vt)}else if(fn.test(a))return a.replace(ci,Vt);return a}const pi=/(^|[^\[])\^/g;function T(a,e){let t=typeof a=="string"?a:a.source;e=e||"";const n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(pi,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}function Qt(a){try{a=encodeURI(a).replace(/%25/g,"%")}catch{return null}return a}const Ae={exec:()=>null};function Jt(a,e){const t=a.replace(/\|/g,(i,r,l)=>{let c=!1,h=r;for(;--h>=0&&l[h]==="\\";)c=!c;return c?"|":" |"}),n=t.split(/ \|/);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(/\\\|/g,"|");return n}function be(a,e,t){const n=a.length;if(n===0)return"";let s=0;for(;s<n;){const i=a.charAt(n-s-1);if(i===e&&!t)s++;else if(i!==e&&t)s++;else break}return a.slice(0,n-s)}function hi(a,e){if(a.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<a.length;n++)if(a[n]==="\\")n++;else if(a[n]===e[0])t++;else if(a[n]===e[1]&&(t--,t<0))return n;return-1}function Kt(a,e,t,n){const s=e.href,i=e.title?U(e.title):null,r=a[1].replace(/\\([\[\]])/g,"$1");if(a[0].charAt(0)!=="!"){n.state.inLink=!0;const l={type:"link",raw:t,href:s,title:i,text:r,tokens:n.inlineTokens(r)};return n.state.inLink=!1,l}return{type:"image",raw:t,href:s,title:i,text:U(r)}}function fi(a,e){const t=a.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(`
|
||||
`).map(s=>{const i=s.match(/^\s+/);if(i===null)return s;const[r]=i;return r.length>=n.length?s.slice(n.length):s}).join(`
|
||||
`)}class Ue{constructor(e){E(this,"options");E(this,"rules");E(this,"lexer");this.options=e||re}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:be(n,`
|
||||
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],s=fi(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const s=be(n,"#");(this.options.pedantic||!s||/ $/.test(s))&&(n=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:be(t[0],`
|
BIN
assets/index.653e702e.js.gz
Normal file
BIN
assets/index.653e702e.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{v as E,t as M,ad as O,O as H,_ as N}from"./index.518a6c15.js";/* empty css *//* empty css *//* empty css */import{d as F,r as S,c as U,bI as V,C as L,D as j,aI as i,aH as s,G as h,aN as u,aM as _,u as b,a6 as G,b8 as W,bi as q,bK as J,bO as Q}from"./arco.13f9ef32.js";import{u as X}from"./loading.7d726da5.js";import{e as x,a as y,u as v,b as g,h as w,g as Y}from"./serial.5c81571b.js";import{I as Z}from"./index.587187e3.js";import{M as ee,T as te}from"./index.5f75446f.js";import"./chart.5acd6cf6.js";import"./vue.eb9ee7d7.js";import"./dep-71c4f289.7098b4db.js";import"./index.4168f84d.js";import"./form-model.d25aeef4.js";import"./slot.fc0e47e1.js";const ae={class:"container"},oe={name:"Radio"},ne=F({...oe,setup(re){const{t:D}=E.exports.useI18n(),o=M(),{loading:P,setLoading:f}=X(!1),a=S({renderData:Array.from({length:20}).map(t=>({})),pageSize:50,nowPage:1}),I=S({showHide:0}),C=t=>{a.renderData=t.newData},R=U(()=>[{colKey:"drag",title:D("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:D("cps.rx"),colKey:"rx",align:"left",width:200,cell:(t,{row:n})=>parseFloat(n.rx)?parseFloat(n.rx).toFixed(2):void 0,edit:{component:Z,props:{clearable:!0},onEdited:t=>{t.newRowData.rx=t.newRowData.rx?t.newRowData.rx:void 0;const n=[...a.renderData];n.splice((a.nowPage-1)*a.pageSize+t.rowIndex,1,t.newRowData),a.renderData=n}}},{title:D("cps.operate"),colKey:"operate",align:"left",width:150}]),z=async()=>{var t,n,p;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await x(o.connectPort),f(!0),(t=o.configuration)!=null&&t.fm30){let c=new Uint8Array(60);for(let e=131008;e<131057;e+=8){const l=await y(o.connectPort,e,8,(n=o.configuration)==null?void 0:n.uart);c.set(l,e-131008)}const r=[];for(let e=0;e<60;e+=2){const l=v(c.subarray(e,e+2));l!="ffff"?r.push({rx:parseInt(l,16)/10}):r.push({})}a.renderData=r}else{let c=new Uint8Array(40);for(let e=3648;e<3681;e+=8){const l=await y(o.connectPort,e,8,(p=o.configuration)==null?void 0:p.uart);c.set(l,e-3648)}const r=[];for(let e=0;e<40;e+=2){const l=v(c.subarray(e,e+2));l!="ffff"?r.push({rx:parseInt(l,16)/10}):r.push({})}a.renderData=r}f(!1)},$=async()=>{var t,n,p,c,r;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await x(o.connectPort),f(!0),(t=o.configuration)!=null&&t.fm30)for(let e=0;e<60;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+131008,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(n=o.configuration)==null?void 0:n.uart):await g(o.connectPort,e+131008,w("0000"),2,(p=o.configuration)==null?void 0:p.uart);else for(let e=0;e<40;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+3648,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(c=o.configuration)==null?void 0:c.uart):await g(o.connectPort,e+3648,w("0000"),2,(r=o.configuration)==null?void 0:r.uart);await Y(o.connectPort),f(!1)},k=async t=>{const n=[...a.renderData];n.splice(t,1,{scanlist:[]}),a.renderData=n};return(t,n)=>{const p=O,c=G,r=W,e=q,l=J,A=Q,K=H,T=te,B=V;return L(),j("div",ae,[i(p,{items:[t.$t("menu.dashboard"),t.$t("menu.cps.radio")]},null,8,["items"]),i(B,{class:"general-card"},{title:s(()=>[h("span",{onClick:n[0]||(n[0]=()=>{I.showHide+=1})},u(t.$t("menu.cps.radio")+t.$t("global.onStart")),1)]),default:s(()=>[i(A,{style:{"margin-bottom":"16px"}},{default:s(()=>[i(l,{span:12},{default:s(()=>[i(e,null,{default:s(()=>[i(r,{type:"primary",onClick:z},{icon:s(()=>[i(c)]),default:s(()=>[_(" "+u(t.$t("cps.onDeviceRead")),1)]),_:1}),i(r,{onClick:$},{icon:s(()=>[i(c)]),default:s(()=>[_(" "+u(t.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),i(T,{class:"ttable",loading:b(P),size:"medium",columns:R.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:n[1]||(n[1]=d=>{a.pageSize=d.pagination.pageSize,a.nowPage=d.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:C},{drag:s(({row:d,rowIndex:m})=>[h("span",null,[i(b(ee))])]),index:s(({row:d,rowIndex:m})=>[_(u((a.nowPage-1)*a.pageSize+m+1),1)]),operate:s(({row:d,rowIndex:m})=>[i(K,{theme:"default",variant:"dashed",onClick:se=>k((a.nowPage-1)*a.pageSize+m)},{default:s(()=>[_(u(t.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const xe=N(ne,[["__scopeId","data-v-be263a43"]]);export{xe as default};
|
||||
import{v as E,t as M,ad as O,O as H,_ as N}from"./index.ff963f0a.js";/* empty css *//* empty css *//* empty css */import{d as F,r as S,c as U,bI as V,C as L,D as j,aI as i,aH as s,G as h,aN as u,aM as _,u as b,a6 as G,b8 as W,bi as q,bK as J,bO as Q}from"./arco.13f9ef32.js";import{u as X}from"./loading.7d726da5.js";import{e as x,a as y,u as v,b as g,h as w,g as Y}from"./serial.d615852e.js";import{I as Z}from"./index.94f21f69.js";import{M as ee,T as te}from"./index.f462f1d0.js";import"./chart.5acd6cf6.js";import"./vue.eb9ee7d7.js";import"./dep-71c4f289.0e464570.js";import"./index.a94dd1fe.js";import"./form-model.78d03df7.js";import"./slot.42e7fa41.js";const ae={class:"container"},oe={name:"Radio"},ne=F({...oe,setup(re){const{t:D}=E.exports.useI18n(),o=M(),{loading:P,setLoading:f}=X(!1),a=S({renderData:Array.from({length:20}).map(t=>({})),pageSize:50,nowPage:1}),I=S({showHide:0}),C=t=>{a.renderData=t.newData},R=U(()=>[{colKey:"drag",title:D("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:D("cps.rx"),colKey:"rx",align:"left",width:200,cell:(t,{row:n})=>parseFloat(n.rx)?parseFloat(n.rx).toFixed(2):void 0,edit:{component:Z,props:{clearable:!0},onEdited:t=>{t.newRowData.rx=t.newRowData.rx?t.newRowData.rx:void 0;const n=[...a.renderData];n.splice((a.nowPage-1)*a.pageSize+t.rowIndex,1,t.newRowData),a.renderData=n}}},{title:D("cps.operate"),colKey:"operate",align:"left",width:150}]),z=async()=>{var t,n,p;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await x(o.connectPort),f(!0),(t=o.configuration)!=null&&t.fm30){let c=new Uint8Array(60);for(let e=131008;e<131057;e+=8){const l=await y(o.connectPort,e,8,(n=o.configuration)==null?void 0:n.uart);c.set(l,e-131008)}const r=[];for(let e=0;e<60;e+=2){const l=v(c.subarray(e,e+2));l!="ffff"?r.push({rx:parseInt(l,16)/10}):r.push({})}a.renderData=r}else{let c=new Uint8Array(40);for(let e=3648;e<3681;e+=8){const l=await y(o.connectPort,e,8,(p=o.configuration)==null?void 0:p.uart);c.set(l,e-3648)}const r=[];for(let e=0;e<40;e+=2){const l=v(c.subarray(e,e+2));l!="ffff"?r.push({rx:parseInt(l,16)/10}):r.push({})}a.renderData=r}f(!1)},$=async()=>{var t,n,p,c,r;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await x(o.connectPort),f(!0),(t=o.configuration)!=null&&t.fm30)for(let e=0;e<60;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+131008,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(n=o.configuration)==null?void 0:n.uart):await g(o.connectPort,e+131008,w("0000"),2,(p=o.configuration)==null?void 0:p.uart);else for(let e=0;e<40;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+3648,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(c=o.configuration)==null?void 0:c.uart):await g(o.connectPort,e+3648,w("0000"),2,(r=o.configuration)==null?void 0:r.uart);await Y(o.connectPort),f(!1)},k=async t=>{const n=[...a.renderData];n.splice(t,1,{scanlist:[]}),a.renderData=n};return(t,n)=>{const p=O,c=G,r=W,e=q,l=J,A=Q,K=H,T=te,B=V;return L(),j("div",ae,[i(p,{items:[t.$t("menu.dashboard"),t.$t("menu.cps.radio")]},null,8,["items"]),i(B,{class:"general-card"},{title:s(()=>[h("span",{onClick:n[0]||(n[0]=()=>{I.showHide+=1})},u(t.$t("menu.cps.radio")+t.$t("global.onStart")),1)]),default:s(()=>[i(A,{style:{"margin-bottom":"16px"}},{default:s(()=>[i(l,{span:12},{default:s(()=>[i(e,null,{default:s(()=>[i(r,{type:"primary",onClick:z},{icon:s(()=>[i(c)]),default:s(()=>[_(" "+u(t.$t("cps.onDeviceRead")),1)]),_:1}),i(r,{onClick:$},{icon:s(()=>[i(c)]),default:s(()=>[_(" "+u(t.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),i(T,{class:"ttable",loading:b(P),size:"medium",columns:R.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:n[1]||(n[1]=d=>{a.pageSize=d.pagination.pageSize,a.nowPage=d.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:C},{drag:s(({row:d,rowIndex:m})=>[h("span",null,[i(b(ee))])]),index:s(({row:d,rowIndex:m})=>[_(u((a.nowPage-1)*a.pageSize+m+1),1)]),operate:s(({row:d,rowIndex:m})=>[i(K,{theme:"default",variant:"dashed",onClick:se=>k((a.nowPage-1)*a.pageSize+m)},{default:s(()=>[_(u(t.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const xe=N(ne,[["__scopeId","data-v-be263a43"]]);export{xe as default};
|
BIN
assets/index.69468bf4.js.gz
Normal file
BIN
assets/index.69468bf4.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.6bb7e820.js.gz
Normal file
BIN
assets/index.6bb7e820.js.gz
Normal file
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.518a6c15.js";import{d as I,c as N,aI as c}from"./arco.13f9ef32.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.ff963f0a.js";import{d as I,c as N,aI as c}from"./arco.13f9ef32.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.6e8f3b8b.js.gz
Normal file
BIN
assets/index.6e8f3b8b.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{P as ae,Q as te,S as re,T as Be,U as K,b as F,l as Ee,V as Re,W as fe,n as Oe,X as $e,Y as Ae,e as _e,d as Le,Z as De,c as ze,f as O,i as Ie,w as Pe}from"./index.518a6c15.js";import{d as $,c as h,j as S,g as Se,w as B,b as xe,i as je,o as Me,t as Ve,n as ne,aI as P,a$ as He,b0 as Ke,aV as ke}from"./arco.13f9ef32.js";/**
|
||||
import{P as ae,Q as te,S as re,T as Be,U as K,b as F,l as Ee,V as Re,W as fe,n as Oe,X as $e,Y as Ae,e as _e,d as Le,Z as De,c as ze,f as O,i as Ie,w as Pe}from"./index.ff963f0a.js";import{d as $,c as h,j as S,g as Se,w as B,b as xe,i as je,o as Me,t as Ve,n as ne,aI as P,a$ as He,b0 as Ke,aV as ke}from"./arco.13f9ef32.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.94f21f69.js.gz
Normal file
BIN
assets/index.94f21f69.js.gz
Normal file
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
import{v as L,t as E,ad as D,_ as M}from"./index.518a6c15.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as N,j as P,r as T,w as x,aY as $,b3 as K,bT as U,bI as j,C as f,D as v,aI as a,aH as o,aM as r,G as i,aN as _,aK as H,aJ as Z,aE as G,c3 as J,b7 as F,bh as Y,bf as q,b8 as z,bV as O,bm as Q,bn as R,n as W}from"./arco.13f9ef32.js";import{n as X,e as ee,o as te}from"./serial.5c81571b.js";import"./chart.5acd6cf6.js";import"./vue.eb9ee7d7.js";const I=c=>(Q("data-v-3b8129ee"),c=c(),R(),c),ne={class:"container"},se={style:{display:"flex","align-items":"center",margin:"10px"}},ae=I(()=>i("span",null,"\u547C\u53F7\uFF1A",-1)),oe=I(()=>i("span",null,"\u8BBE\u5907\u53F7\uFF1A",-1)),re={style:{height:"500px",border:"1px solid #eee"}},ie={style:{display:"flex"}},le={style:{width:"100px","text-align":"right","margin-right":"10px"}},de={style:{"margin-left":"10px"}},ce={name:"Chat"},ue=N({...ce,setup(c){L.exports.useI18n();const u=E(),p=P(null),e=T({sendInput:"",msgList:[],callsign:sessionStorage.getItem("callsign")||"",devid:parseInt(sessionStorage.getItem("devid")||"0"),connect:!1,reader:null,startChat:"\u5F00\u59CB\u804A\u5929"});x(()=>e.callsign,(n,t)=>{sessionStorage.setItem("callsign",n)}),x(()=>e.devid,(n,t)=>{sessionStorage.setItem("devid",n.toString())}),$(()=>{e.connect&&e.reader.releaseLock()});const b=n=>/^[A-Z]{1,2}\d{1,2}[A-Z]{1,3}$/.test(n),y=()=>{W(()=>{p.value&&(p.value.$el.children[0].children[0].children[0].scrollTop=p.value.$el.children[0].children[0].children[0].scrollHeight)})},C=()=>{F.error("\u656C\u8BF7\u671F\u5F85")},h=async()=>{if(e.sendInput.trim()!=""){if(!b(e.callsign.trim())){F.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u547C\u53F7");return}console.log(e.callsign.trim()+":"+e.devid+":"+e.sendInput.trim()),X(u.connectPort,e.callsign.trim()+":"+e.devid+":"+e.sendInput.trim()),e.msgList.push({callsign:e.callsign.trim(),devid:e.devid,content:e.sendInput.trim()}),e.sendInput="",y()}},S=async()=>{if(e.connect)e.connect=!1,e.reader.releaseLock(),e.startChat="\u5F00\u59CB\u804A\u5929";else{if(u.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await ee(u.connectPort),e.reader=te(u.connectPort),A(e.reader),e.startChat="\u65AD\u5F00\u804A\u5929",e.connect=!0}},A=async n=>{let t="";const g=new TextDecoder;for(;;)try{const{value:l,done:m}=await n.read();if(m)break;let d=g.decode(l,{stream:!0});d=d.trim(),t+=d,console.log(t)}catch{break}n.releaseLock()};return(n,t)=>{const g=D,l=Y,m=q,d=K,k=z,w=O,B=U,V=j;return f(),v("div",ne,[a(g,{items:[n.$t("menu.list"),n.$t("menu.flash")]},null,8,["items"]),a(V,{class:"general-card"},{title:o(()=>[r(" \u3010\u5F00\u53D1\u4E2D\u3011\u65E0\u7EBF\u7535\u804A\u5929\uFF08\u9700\u4F7F\u7528"),a(l,{onClick:C},{default:o(()=>[r("\u8FD9\u4E2A")]),_:1}),r("\u56FA\u4EF6\uFF09 ")]),default:o(()=>[i("div",se,[ae,a(m,{modelValue:e.callsign,"onUpdate:modelValue":t[0]||(t[0]=s=>e.callsign=s),style:{width:"200px !important"}},null,8,["modelValue"]),r(" \xA0\xA0\xA0 "),oe,a(d,{min:0,max:15,modelValue:e.devid,"onUpdate:modelValue":t[1]||(t[1]=s=>e.devid=s),style:{width:"200px !important"}},null,8,["modelValue"]),r(" \xA0\xA0\xA0 "),a(k,{onClick:S,type:"primary"},{default:o(()=>[r(_(e.startChat),1)]),_:1})]),i("div",re,[a(B,{"max-height":500,bordered:!1,ref_key:"msgList",ref:p},{empty:o(()=>[]),default:o(()=>[(f(!0),v(H,null,Z(e.msgList,s=>(f(),G(w,null,{default:o(()=>[i("div",ie,[i("div",le,_(s.callsign)+"("+_(s.devid.toString().padStart(2,"0"))+")",1),r(" > "),i("div",de,_(s.content),1)])]),_:2},1024))),256))]),_:1},512)]),a(m,{disabled:!e.connect,modelValue:e.sendInput,"onUpdate:modelValue":t[2]||(t[2]=s=>e.sendInput=s),onKeyup:J(h,["enter"])},{append:o(()=>[a(l,{disabled:!e.connect,onClick:h},{default:o(()=>[r("\u53D1\u9001")]),_:1},8,["disabled"])]),_:1},8,["disabled","modelValue"])]),_:1})])}}});const Se=M(ue,[["__scopeId","data-v-3b8129ee"]]);export{Se as default};
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{m as ze,f as X,i as Ke,b as se,a3 as Le,k as te,a2 as Ue,g as ae,U as Xe,ar as Ye,e as He,c as Je,n as pe,l as We,w as ke,t as qe,ad as Ge,_ as Qe}from"./index.518a6c15.js";/* empty css *//* empty css *//* empty css */import{j as $,c as N,d as ne,i as Ze,r as ce,a as et,aI as y,aV as Ne,n as tt,t as he,w as be,o as Me,b as at,p as nt,bI as rt,bS as ot,C as W,D as q,aH as z,G as Q,aK as ye,aJ as _e,F as lt,aM as G,aN as ee,b8 as it,bi as ut,bK as st,bO as ct,bm as vt,bn as dt}from"./arco.13f9ef32.js";import{f as ft}from"./vue.eb9ee7d7.js";import{e as mt,b as gt,g as pt}from"./serial.5c81571b.js";import{T as ht,I as bt}from"./index.4168f84d.js";import{l as we,b as yt}from"./index.587187e3.js";import"./chart.5acd6cf6.js";/**
|
||||
import{m as ze,f as X,i as Ke,b as se,a3 as Le,k as te,a2 as Ue,g as ae,U as Xe,ar as Ye,e as He,c as Je,n as pe,l as We,w as ke,t as qe,ad as Ge,_ as Qe}from"./index.ff963f0a.js";/* empty css *//* empty css *//* empty css */import{j as $,c as N,d as ne,i as Ze,r as ce,a as et,aI as y,aV as Ne,n as tt,t as he,w as be,o as Me,b as at,p as nt,bI as rt,bS as ot,C as W,D as q,aH as z,G as Q,aK as ye,aJ as _e,F as lt,aM as G,aN as ee,b8 as it,bi as ut,bK as st,bO as ct,bm as vt,bn as dt}from"./arco.13f9ef32.js";import{f as ft}from"./vue.eb9ee7d7.js";import{e as mt,b as gt,g as pt}from"./serial.d615852e.js";import{T as ht,I as bt}from"./index.a94dd1fe.js";import{l as we,b as yt}from"./index.94f21f69.js";import"./chart.5acd6cf6.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.98eb9f08.js.gz
Normal file
BIN
assets/index.98eb9f08.js.gz
Normal file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{j as h,b as w,k as x,l as p,m,n as z,f as o,i as N,w as C}from"./index.518a6c15.js";import{d as _,c as y,aI as u,aK as F}from"./arco.13f9ef32.js";import{u as k}from"./slot.fc0e47e1.js";/**
|
||||
import{j as h,b as w,k as x,l as p,m,n as z,f as o,i as N,w as C}from"./index.ff963f0a.js";import{d as _,c as y,aI as u,aK as F}from"./arco.13f9ef32.js";import{u as k}from"./slot.42e7fa41.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.9a02403b.js.gz
Normal file
BIN
assets/index.9a02403b.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.a94dd1fe.js.gz
Normal file
BIN
assets/index.a94dd1fe.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{_ as u}from"./index.518a6c15.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.13f9ef32.js";import{L as b}from"./index.6dc0eff1.js";import{S as k}from"./index.56558430.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.ff963f0a.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.13f9ef32.js";import{L as b}from"./index.6e8f3b8b.js";import{S as k}from"./index.9a02403b.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.ac03d233.js.gz
Normal file
BIN
assets/index.ac03d233.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.b1a28eb5.js.gz
Normal file
BIN
assets/index.b1a28eb5.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{_ as n}from"./index.518a6c15.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.13f9ef32.js";import{g as m}from"./vue.eb9ee7d7.js";import"./chart.5acd6cf6.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.ff963f0a.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.13f9ef32.js";import{g as m}from"./vue.eb9ee7d7.js";import"./chart.5acd6cf6.js";const f={class:"content"},x={class:"operation-row"},b=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",x,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const E=n(b,[["__scopeId","data-v-8bef407f"]]);export{E as default};
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{t as B,ad as E,_ as S}from"./index.518a6c15.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as A,r as F,bW as R,bI as T,C as D,D as V,aI as n,aH as o,G as y,aN as p,aM as _,a$ as k,b0 as C,bX as H,b8 as I,bi as P,bG as U,bK as M,bO as N,n as G}from"./arco.13f9ef32.js";import{i as z,e as K,b as L,g as O}from"./serial.5c81571b.js";import{C as W}from"./index.cdc669d6.js";import"./chart.5acd6cf6.js";import"./vue.eb9ee7d7.js";const X={class:"container"},j=["innerHTML"],q={name:"Chi"},J=A({...q,setup(Q){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 b;await K(u.connectPort);for(let s=t;s<e.length+t;s+=128)await L(u.connectPort,s,e.slice(s-t,s-t+128),e.slice(s-t,s-t+128).length,(b=u.configuration)==null?void 0:b.uart),r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((s-t)/e.length*100).toFixed(1)+"%<br/>",G(()=>{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 O(u.connectPort)},v=async(t=1)=>{var b,s,f,m,w,h;if(u.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((b=u.configuration)==null?void 0:b.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 z(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(((m=u.configuration)==null?void 0:m.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 b=E,s=R,f=H,m=I,w=W,h=P,l=U,a=T,d=M,c=N;return D(),V("div",X,[n(b,{items:[t.$t("menu.list"),t.$t("menu.font")]},null,8,["items"]),n(c,{gutter:20,align:"stretch"},{default:o(()=>[n(d,{span:24},{default:o(()=>[n(a,{class:"general-card"},{title:o(()=>[y("span",{onClick:e[0]||(e[0]=()=>{r.showHide+=1})},p(t.$t("menu.font")+t.$t("global.onStart")),1)]),default:o(()=>[n(h,null,{default:o(()=>[n(w,{bordered:"",style:{width:"420px"}},{header:o(()=>[_(p(t.$t("tool.fontwrite"))+" ",1),y("div",null,[n(f,{type:"button",size:"mini",modelValue:r.lang,"onUpdate:modelValue":e[1]||(e[1]=i=>r.lang=i)},{default:o(()=>[n(s,{value:"Simplified_Chinese"},{default:o(()=>[_(p(t.$t("tool.Simplified_Chinese")),1)]),_:1}),n(s,{value:"Traditional_Chinese"},{default:o(()=>[_(p(t.$t("tool.Traditional_Chinese")),1)]),_:1})]),_:1},8,["modelValue"])])]),default:o(()=>[y("div",null,[k(n(m,{onClick:e[2]||(e[2]=i=>v(1))},{default:o(()=>[_(p(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Simplified_Chinese"]]),k(n(m,{onClick:e[3]||(e[3]=i=>v(6))},{default:o(()=>[_(p(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Traditional_Chinese"]])])]),_:1}),n(w,{bordered:""},{header:o(()=>[_(p(t.$t("tool.pinyinwrite")),1)]),default:o(()=>[n(h,null,{default:o(()=>[n(m,{onClick:e[4]||(e[4]=i=>v(4))},{default:o(()=>[_(p(t.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),n(w,{bordered:""},{header:o(()=>[_(p(t.$t("tool.ssbpatch")),1)]),default:o(()=>[n(h,null,{default:o(()=>[n(m,{onClick:e[5]||(e[5]=i=>v(5))},{default:o(()=>[_(p(t.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),n(l),y("div",{id:"statusArea",style:{height:"20em","background-color":"var(--color-bg-3)",color:"var(--color-text-3)",overflow:"auto",padding:"20px"},innerHTML:r.status},null,8,j)]),_:1})]),_:1})]),_:1})])}}});const ue=S(J,[["__scopeId","data-v-c809b00a"]]);export{ue as default};
|
||||
import{t as B,ad as E,_ as S}from"./index.ff963f0a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as A,r as F,bW as R,bI as T,C as D,D as V,aI as n,aH as o,G as y,aN as p,aM as _,a$ as k,b0 as C,bX as H,b8 as I,bi as P,bG as U,bK as M,bO as N,n as G}from"./arco.13f9ef32.js";import{i as z,e as K,b as L,g as O}from"./serial.d615852e.js";import{C as W}from"./index.10898eda.js";import"./chart.5acd6cf6.js";import"./vue.eb9ee7d7.js";const X={class:"container"},j=["innerHTML"],q={name:"Chi"},J=A({...q,setup(Q){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 b;await K(u.connectPort);for(let s=t;s<e.length+t;s+=128)await L(u.connectPort,s,e.slice(s-t,s-t+128),e.slice(s-t,s-t+128).length,(b=u.configuration)==null?void 0:b.uart),r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((s-t)/e.length*100).toFixed(1)+"%<br/>",G(()=>{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 O(u.connectPort)},v=async(t=1)=>{var b,s,f,m,w,h;if(u.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((b=u.configuration)==null?void 0:b.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 z(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(((m=u.configuration)==null?void 0:m.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 b=E,s=R,f=H,m=I,w=W,h=P,l=U,a=T,d=M,c=N;return D(),V("div",X,[n(b,{items:[t.$t("menu.list"),t.$t("menu.font")]},null,8,["items"]),n(c,{gutter:20,align:"stretch"},{default:o(()=>[n(d,{span:24},{default:o(()=>[n(a,{class:"general-card"},{title:o(()=>[y("span",{onClick:e[0]||(e[0]=()=>{r.showHide+=1})},p(t.$t("menu.font")+t.$t("global.onStart")),1)]),default:o(()=>[n(h,null,{default:o(()=>[n(w,{bordered:"",style:{width:"420px"}},{header:o(()=>[_(p(t.$t("tool.fontwrite"))+" ",1),y("div",null,[n(f,{type:"button",size:"mini",modelValue:r.lang,"onUpdate:modelValue":e[1]||(e[1]=i=>r.lang=i)},{default:o(()=>[n(s,{value:"Simplified_Chinese"},{default:o(()=>[_(p(t.$t("tool.Simplified_Chinese")),1)]),_:1}),n(s,{value:"Traditional_Chinese"},{default:o(()=>[_(p(t.$t("tool.Traditional_Chinese")),1)]),_:1})]),_:1},8,["modelValue"])])]),default:o(()=>[y("div",null,[k(n(m,{onClick:e[2]||(e[2]=i=>v(1))},{default:o(()=>[_(p(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Simplified_Chinese"]]),k(n(m,{onClick:e[3]||(e[3]=i=>v(6))},{default:o(()=>[_(p(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Traditional_Chinese"]])])]),_:1}),n(w,{bordered:""},{header:o(()=>[_(p(t.$t("tool.pinyinwrite")),1)]),default:o(()=>[n(h,null,{default:o(()=>[n(m,{onClick:e[4]||(e[4]=i=>v(4))},{default:o(()=>[_(p(t.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),n(w,{bordered:""},{header:o(()=>[_(p(t.$t("tool.ssbpatch")),1)]),default:o(()=>[n(h,null,{default:o(()=>[n(m,{onClick:e[5]||(e[5]=i=>v(5))},{default:o(()=>[_(p(t.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),n(l),y("div",{id:"statusArea",style:{height:"20em","background-color":"var(--color-bg-3)",color:"var(--color-text-3)",overflow:"auto",padding:"20px"},innerHTML:r.status},null,8,j)]),_:1})]),_:1})]),_:1})])}}});const ue=S(J,[["__scopeId","data-v-c809b00a"]]);export{ue as default};
|
BIN
assets/index.d9e851d7.js.gz
Normal file
BIN
assets/index.d9e851d7.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 j,aJ as D,aE as E,aN as r,be as z,j 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.13f9ef32.js";import{F as oe}from"./index.8bc86355.js";import{v as V,_ as x,u as se,I as ae,a as ne}from"./index.518a6c15.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as te,h as re}from"./vue.eb9ee7d7.js";import{u as le}from"./loading.7d726da5.js";import"./index.6dc0eff1.js";import"./index.56558430.js";import"./slot.fc0e47e1.js";import"./chart.5acd6cf6.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(j,null,D(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 j,aJ as D,aE as E,aN as r,be as z,j 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.13f9ef32.js";import{F as oe}from"./index.ac03d233.js";import{v as V,_ as x,u as se,I as ae,a as ne}from"./index.ff963f0a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as te,h as re}from"./vue.eb9ee7d7.js";import{u as le}from"./loading.7d726da5.js";import"./index.6e8f3b8b.js";import"./index.9a02403b.js";import"./slot.42e7fa41.js";import"./chart.5acd6cf6.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(j,null,D(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.de4cf933.js.gz
Normal file
BIN
assets/index.de4cf933.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.f462f1d0.js.gz
Normal file
BIN
assets/index.f462f1d0.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.ff963f0a.js.gz
Normal file
BIN
assets/index.ff963f0a.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…
Add table
Reference in a new issue