mirror of
https://github.com/silenty4ng/k5web
synced 2024-11-14 14:33:23 +00:00
update
This commit is contained in:
parent
d6e283c3fb
commit
08048731a9
File diff suppressed because one or more lines are too long
BIN
assets/arco.446db797.js.gz
Normal file
BIN
assets/arco.446db797.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{d as N_,s as Ia,i as Pa,t as z_,c as Ti,g as F_,w as Ra,a as Jh,o as V_,b as G_,h as jh,n as H_,u as W_}from"./arco.f43727df.js";/*! *****************************************************************************
|
import{d as N_,s as Ia,i as Pa,t as z_,c as Ti,g as F_,w as Ra,a as Jh,o as V_,b as G_,h as jh,n as H_,u as W_}from"./arco.446db797.js";/*! *****************************************************************************
|
||||||
Copyright (c) Microsoft Corporation.
|
Copyright (c) Microsoft Corporation.
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
BIN
assets/chart.27192e44.js.gz
Normal file
BIN
assets/chart.27192e44.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/default-layout.be2b1d39.js.gz
Normal file
BIN
assets/default-layout.be2b1d39.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-6deb4e3a.322cf56f.js.gz
Normal file
BIN
assets/dep-6deb4e3a.322cf56f.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/dialog.604d372a.js.gz
Normal file
BIN
assets/dialog.604d372a.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/form-model.0db7876d.js.gz
Normal file
BIN
assets/form-model.0db7876d.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{e as B,as as D,_ as L}from"./index.6225dd09.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as N,r as T,aX as H,bO as K,bH as R,C as E,D as F,aI as e,aH as r,aM as V,aN as A,u as M,a6 as O,a$ as W,ba as X,bI as j,bL as q,b7 as x,bc as z}from"./arco.f43727df.js";import{u as G}from"./loading.a1d05891.js";import{e as $,a as S,f as w,s as h,b as P,g as J}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const Q={class:"container"},Y={name:"Chi"},Z=N({...Y,setup(oo){const o=B(),{loading:I,setLoading:C}=G(!1),t=T({logo_line1:"",logo_line2:"",mdc_audio_local:!0}),v=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await $(o.connectPort),C(!0),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let a=new Uint8Array(38);a.set(await S(o.connectPort,123680,38,(i=o.configuration)==null?void 0:i.uart),0),t.logo_line1=w(a.subarray(0,19),(f=o.configuration)==null?void 0:f.charset),t.logo_line2=w(a.subarray(19,38),(c=o.configuration)==null?void 0:c.charset)}else if(((u=o.configuration)==null?void 0:u.charset)=="gb2312"){let a=new Uint8Array(36);a.set(await S(o.connectPort,8192,36,(m=o.configuration)==null?void 0:m.uart),0),t.logo_line1=w(a.subarray(0,18),(_=o.configuration)==null?void 0:_.charset),t.logo_line2=w(a.subarray(18,36),(g=o.configuration)==null?void 0:g.charset)}else{let a=new Uint8Array(32);a.set(await S(o.connectPort,3760,32,(d=o.configuration)==null?void 0:d.uart),0),t.logo_line1=w(a.subarray(0,16),(s=o.configuration)==null?void 0:s.charset),t.logo_line2=w(a.subarray(16,32),(b=o.configuration)==null?void 0:b.charset)}parseInt(await S(o.connectPort,8189,1,(y=o.configuration)==null?void 0:y.uart))==0?t.mdc_audio_local=!1:t.mdc_audio_local=!0,C(!1)},k=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y,a,p,U;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(C(!0),await $(o.connectPort),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let l=new Uint8Array(38);l.set(h(t.logo_line1,(i=o.configuration)==null?void 0:i.charset).subarray(0,19),0),l.set(h(t.logo_line2,(f=o.configuration)==null?void 0:f.charset).subarray(0,19),19),await P(o.connectPort,123678,[18,18],2,(c=o.configuration)==null?void 0:c.uart),await P(o.connectPort,123680,l,38,(u=o.configuration)==null?void 0:u.uart)}else if(((m=o.configuration)==null?void 0:m.charset)=="gb2312"){let l=new Uint8Array(36);l.set(h(t.logo_line1,(_=o.configuration)==null?void 0:_.charset).subarray(0,18),0),l.set(h(t.logo_line2,(g=o.configuration)==null?void 0:g.charset).subarray(0,18),18),await P(o.connectPort,8228,[18,18],2,(d=o.configuration)==null?void 0:d.uart),await P(o.connectPort,8192,l,36,(s=o.configuration)==null?void 0:s.uart)}else{let l=new Uint8Array(32);l.set(h(t.logo_line1,(b=o.configuration)==null?void 0:b.charset).subarray(0,16),0),l.set(h(t.logo_line2,(y=o.configuration)==null?void 0:y.charset).subarray(0,16),16),await P(o.connectPort,3760,l,32,(a=o.configuration)==null?void 0:a.uart)}(p=o.configuration)!=null&&p.localmdc&&await P(o.connectPort,8189,new Uint8Array([t.mdc_audio_local?1:0]),1,(U=o.configuration)==null?void 0:U.uart),await J(o.connectPort),C(!1)};return(n,i)=>{const f=D,c=O,u=W,m=X,_=j,g=q,d=x,s=z,b=H,y=K,a=R;return E(),F("div",Q,[e(f,{items:[n.$t("menu.dashboard"),n.$t("menu.cps.settings")]},null,8,["items"]),e(g,{gutter:20,align:"stretch"},{default:r(()=>[e(_,{span:24},{default:r(()=>[e(a,{class:"general-card",title:n.$t("menu.cps.settings")+n.$t("global.onStart")},{default:r(()=>[e(g,{style:{"margin-bottom":"16px"}},{default:r(()=>[e(_,{span:12},{default:r(()=>[e(m,null,{default:r(()=>[e(u,{type:"primary",onClick:v},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceRead")),1)]),_:1}),e(u,{onClick:k},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(y,{loading:M(I),style:{width:"100%"}},{default:r(()=>[e(s,{"label-col-style":{width:"25%"},field:"logo_line1",label:n.$t("cps.line1")},{default:r(()=>[e(d,{modelValue:t.logo_line1,"onUpdate:modelValue":i[0]||(i[0]=p=>t.logo_line1=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.line2")},{default:r(()=>[e(d,{modelValue:t.logo_line2,"onUpdate:modelValue":i[1]||(i[1]=p=>t.logo_line2=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.mdclocplay")},{default:r(()=>[e(b,{modelValue:t.mdc_audio_local,"onUpdate:modelValue":i[2]||(i[2]=p=>t.mdc_audio_local=p),type:"round"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["loading"])]),_:1},8,["title"])]),_:1})]),_:1})])}}});const _o=L(Z,[["__scopeId","data-v-739b81b7"]]);export{_o as default};
|
import{e as B,as as D,_ as L}from"./index.25cd9d44.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as N,r as T,aX as H,bO as K,bH as R,C as E,D as F,aI as e,aH as r,aM as V,aN as A,u as M,a6 as O,a$ as W,ba as X,bI as j,bL as q,b7 as x,bc as z}from"./arco.446db797.js";import{u as G}from"./loading.27865eee.js";import{e as $,a as S,f as w,s as h,b as P,g as J}from"./serial.c741fbda.js";import"./chart.27192e44.js";import"./vue.848e4abf.js";const Q={class:"container"},Y={name:"Chi"},Z=N({...Y,setup(oo){const o=B(),{loading:I,setLoading:C}=G(!1),t=T({logo_line1:"",logo_line2:"",mdc_audio_local:!0}),v=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await $(o.connectPort),C(!0),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let a=new Uint8Array(38);a.set(await S(o.connectPort,123680,38,(i=o.configuration)==null?void 0:i.uart),0),t.logo_line1=w(a.subarray(0,19),(f=o.configuration)==null?void 0:f.charset),t.logo_line2=w(a.subarray(19,38),(c=o.configuration)==null?void 0:c.charset)}else if(((u=o.configuration)==null?void 0:u.charset)=="gb2312"){let a=new Uint8Array(36);a.set(await S(o.connectPort,8192,36,(m=o.configuration)==null?void 0:m.uart),0),t.logo_line1=w(a.subarray(0,18),(_=o.configuration)==null?void 0:_.charset),t.logo_line2=w(a.subarray(18,36),(g=o.configuration)==null?void 0:g.charset)}else{let a=new Uint8Array(32);a.set(await S(o.connectPort,3760,32,(d=o.configuration)==null?void 0:d.uart),0),t.logo_line1=w(a.subarray(0,16),(s=o.configuration)==null?void 0:s.charset),t.logo_line2=w(a.subarray(16,32),(b=o.configuration)==null?void 0:b.charset)}parseInt(await S(o.connectPort,8189,1,(y=o.configuration)==null?void 0:y.uart))==0?t.mdc_audio_local=!1:t.mdc_audio_local=!0,C(!1)},k=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y,a,p,U;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(C(!0),await $(o.connectPort),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let l=new Uint8Array(38);l.set(h(t.logo_line1,(i=o.configuration)==null?void 0:i.charset).subarray(0,19),0),l.set(h(t.logo_line2,(f=o.configuration)==null?void 0:f.charset).subarray(0,19),19),await P(o.connectPort,123678,[18,18],2,(c=o.configuration)==null?void 0:c.uart),await P(o.connectPort,123680,l,38,(u=o.configuration)==null?void 0:u.uart)}else if(((m=o.configuration)==null?void 0:m.charset)=="gb2312"){let l=new Uint8Array(36);l.set(h(t.logo_line1,(_=o.configuration)==null?void 0:_.charset).subarray(0,18),0),l.set(h(t.logo_line2,(g=o.configuration)==null?void 0:g.charset).subarray(0,18),18),await P(o.connectPort,8228,[18,18],2,(d=o.configuration)==null?void 0:d.uart),await P(o.connectPort,8192,l,36,(s=o.configuration)==null?void 0:s.uart)}else{let l=new Uint8Array(32);l.set(h(t.logo_line1,(b=o.configuration)==null?void 0:b.charset).subarray(0,16),0),l.set(h(t.logo_line2,(y=o.configuration)==null?void 0:y.charset).subarray(0,16),16),await P(o.connectPort,3760,l,32,(a=o.configuration)==null?void 0:a.uart)}(p=o.configuration)!=null&&p.localmdc&&await P(o.connectPort,8189,new Uint8Array([t.mdc_audio_local?1:0]),1,(U=o.configuration)==null?void 0:U.uart),await J(o.connectPort),C(!1)};return(n,i)=>{const f=D,c=O,u=W,m=X,_=j,g=q,d=x,s=z,b=H,y=K,a=R;return E(),F("div",Q,[e(f,{items:[n.$t("menu.dashboard"),n.$t("menu.cps.settings")]},null,8,["items"]),e(g,{gutter:20,align:"stretch"},{default:r(()=>[e(_,{span:24},{default:r(()=>[e(a,{class:"general-card",title:n.$t("menu.cps.settings")+n.$t("global.onStart")},{default:r(()=>[e(g,{style:{"margin-bottom":"16px"}},{default:r(()=>[e(_,{span:12},{default:r(()=>[e(m,null,{default:r(()=>[e(u,{type:"primary",onClick:v},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceRead")),1)]),_:1}),e(u,{onClick:k},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(y,{loading:M(I),style:{width:"100%"}},{default:r(()=>[e(s,{"label-col-style":{width:"25%"},field:"logo_line1",label:n.$t("cps.line1")},{default:r(()=>[e(d,{modelValue:t.logo_line1,"onUpdate:modelValue":i[0]||(i[0]=p=>t.logo_line1=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.line2")},{default:r(()=>[e(d,{modelValue:t.logo_line2,"onUpdate:modelValue":i[1]||(i[1]=p=>t.logo_line2=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.mdclocplay")},{default:r(()=>[e(b,{modelValue:t.mdc_audio_local,"onUpdate:modelValue":i[2]||(i[2]=p=>t.mdc_audio_local=p),type:"round"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["loading"])]),_:1},8,["title"])]),_:1})]),_:1})])}}});const _o=L(Z,[["__scopeId","data-v-739b81b7"]]);export{_o as default};
|
BIN
assets/index.03c131ff.js.gz
Normal file
BIN
assets/index.03c131ff.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{e as B,as as E,_ as k}from"./index.6225dd09.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as A,o as C,bH as N,C as $,D as I,aI as i,aH as c,aM as p,aN as f,G as H,n as y,a$ as P,ba as S,bF as T,bI as D,bL as M}from"./arco.f43727df.js";import{h as V}from"./vue.cbdb927d.js";import{d as b,c as q,r as _,j as x,k as h,l as L,m as R}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";const j={class:"container"},U=["innerHTML"],O={name:"Flash"},z=v({...O,setup(G){const m=B(),e=A({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),d=V();C(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),r=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(r){const n=[];for(;;){const{done:u,value:l}=await r.read();if(u)break;n.push(...l)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1)}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},g=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}m.connectPort&&await b(m.connectPort);let t=await q();await _(t,24,1e3);const o=x(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);await h(t,r),await _(t,24);const n=L(e.binaryFile);if(n.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<n.length;a+=256){const u=n.slice(a,a+256),l=R(u,a,n.length);try{await h(t,l),await _(t,26)}catch(s){return console.log("Flash command rejected. Aborting."),Promise.reject(s)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,y(()=>{const s=document==null?void 0:document.getElementById("statusArea");s&&(s.scrollTop=s==null?void 0:s.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",y(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),b(t),m.updateSettings({connectState:!1})};return(t,o)=>{const r=E,n=P,a=S,u=T,l=N,s=D,w=M;return $(),I("div",j,[i(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),i(w,{gutter:20,align:"stretch"},{default:c(()=>[i(s,{span:24},{default:c(()=>[i(l,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:c(()=>[i(a,null,{default:c(()=>[i(n,{onClick:F},{default:c(()=>[p(f(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),i(n,{type:"primary",disabled:!e.binaryFile,onClick:g},{default:c(()=>[p(f(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1}),i(u),H("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,U)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const at=k(z,[["__scopeId","data-v-20389da6"]]);export{at as default};
|
import{e as B,as as E,_ as k}from"./index.25cd9d44.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as A,o as C,bH as N,C as $,D as I,aI as i,aH as c,aM as p,aN as f,G as H,n as y,a$ as P,ba as S,bF as T,bI as D,bL as M}from"./arco.446db797.js";import{h as V}from"./vue.848e4abf.js";import{d as b,c as q,r as _,j as x,k as h,l as L,m as R}from"./serial.c741fbda.js";import"./chart.27192e44.js";const j={class:"container"},U=["innerHTML"],O={name:"Flash"},z=v({...O,setup(G){const m=B(),e=A({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),d=V();C(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),r=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(r){const n=[];for(;;){const{done:u,value:l}=await r.read();if(u)break;n.push(...l)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1)}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},g=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}m.connectPort&&await b(m.connectPort);let t=await q();await _(t,24,1e3);const o=x(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);await h(t,r),await _(t,24);const n=L(e.binaryFile);if(n.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<n.length;a+=256){const u=n.slice(a,a+256),l=R(u,a,n.length);try{await h(t,l),await _(t,26)}catch(s){return console.log("Flash command rejected. Aborting."),Promise.reject(s)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,y(()=>{const s=document==null?void 0:document.getElementById("statusArea");s&&(s.scrollTop=s==null?void 0:s.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",y(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),b(t),m.updateSettings({connectState:!1})};return(t,o)=>{const r=E,n=P,a=S,u=T,l=N,s=D,w=M;return $(),I("div",j,[i(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),i(w,{gutter:20,align:"stretch"},{default:c(()=>[i(s,{span:24},{default:c(()=>[i(l,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:c(()=>[i(a,null,{default:c(()=>[i(n,{onClick:F},{default:c(()=>[p(f(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),i(n,{type:"primary",disabled:!e.binaryFile,onClick:g},{default:c(()=>[p(f(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1}),i(u),H("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,U)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const at=k(z,[["__scopeId","data-v-20389da6"]]);export{at as default};
|
BIN
assets/index.12ca6fdb.js.gz
Normal file
BIN
assets/index.12ca6fdb.js.gz
Normal file
Binary file not shown.
1
assets/index.1361c0f5.js
Normal file
1
assets/index.1361c0f5.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{as as c,_ as E}from"./index.25cd9d44.js";/* empty css *//* empty css */import{d as g,r as x,w as v,o as M,bS as V,bH as C,C as y,D,aI as e,aH as u,aM as t,bT as A,a$ as w,bI as U,bL as B}from"./arco.446db797.js";import{f as S}from"./vue.848e4abf.js";import{S as k}from"./index.3dd0afa0.js";import"./chart.27192e44.js";import"./useConfig.7e9a03f4.js";import"./slot.b1e6202c.js";const j={class:"container"},O={name:"Backup"},H=g({...O,setup(I){const r=S(),f=()=>{r.push({path:"/tool/flash",query:{url:"/diy/LOSEHU"+a.flag.join("")+".bin"}})},a=x({versions:[],flag:["0","0","0","0","0","0","0"],disMatrix:[{0:!1,4:!1},{0:!1,1:!1},{0:!1,1:!1},{0:!1,1:!1},{0:!1,F:!1,4:!1},{0:!1,1:!1},{0:!1,1:!1}]});return v(a.flag,()=>{a.flag.map((n,l)=>{Object.keys(a.disMatrix[l]).map(i=>{a.versions.indexOf("LOSEHU"+a.flag.join("").substring(0,l)+i+a.flag.join("").substring(l+1)+".bin")==-1?a.disMatrix[l][i]=!0:a.disMatrix[l][i]=!1})})}),M(async()=>{const n=await(await fetch("/diy/version.json")).text();a.versions=JSON.parse(n)}),(n,l)=>{const i=c,d=V,o=A,_=w,p=k,m=C,b=U,F=B;return y(),D("div",j,[e(i,{items:[n.$t("menu.workshop"),"\u81EA\u5B9A\u4E49\u841D\u535C\u56FA\u4EF6"]},null,8,["items"]),e(F,{gutter:20,align:"stretch"},{default:u(()=>[e(b,{span:24},{default:u(()=>[e(m,{class:"general-card",title:"\u81EA\u5B9A\u4E49\u841D\u535C\u56FA\u4EF6"},{default:u(()=>[e(p,{direction:"vertical"},{default:u(()=>[e(o,{modelValue:a.flag[0],"onUpdate:modelValue":l[0]||(l[0]=s=>a.flag[0]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[0][0]},{default:u(()=>[t("\u82F1\u6587\u4FE1\u9053")]),_:1},8,["disabled"]),e(d,{value:"4",disabled:a.disMatrix[0][4]},{default:u(()=>[t("\u4E2D\u6587\u4FE1\u9053")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[1],"onUpdate:modelValue":l[1]||(l[1]=s=>a.flag[1]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[1][0]},{default:u(()=>[t("\u505C\u7528\u77ED\u4FE1\u529F\u80FD")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[1][1]},{default:u(()=>[t("\u5F00\u542F\u77ED\u4FE1\u529F\u80FD")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[2],"onUpdate:modelValue":l[2]||(l[2]=s=>a.flag[2]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[2][0]},{default:u(()=>[t("\u505C\u7528\u591A\u666E\u52D2")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[2][1]},{default:u(()=>[t("\u5F00\u542F\u591A\u666E\u52D2")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[3],"onUpdate:modelValue":l[3]||(l[3]=s=>a.flag[3]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[3][0]},{default:u(()=>[t("\u505C\u7528MDC\u4FE1\u4EE4")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[3][1]},{default:u(()=>[t("\u5F00\u542FMDC\u4FE1\u4EE4")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[4],"onUpdate:modelValue":l[4]||(l[4]=s=>a.flag[4]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[4][0]},{default:u(()=>[t("\u505C\u7528\u6536\u97F3\u673A")]),_:1},8,["disabled"]),e(d,{value:"F",disabled:a.disMatrix[4].F},{default:u(()=>[t("\u9ED8\u8BA4\u6536\u97F3\u673A")]),_:1},8,["disabled"]),e(d,{value:"4",disabled:a.disMatrix[4][4]},{default:u(()=>[t("SI4732\u6536\u97F3\u673A")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[5],"onUpdate:modelValue":l[5]||(l[5]=s=>a.flag[5]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[5][0]},{default:u(()=>[t("\u505C\u7528\u8F93\u5165\u6CD5")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[4][1]},{default:u(()=>[t("\u5F00\u542F\u8F93\u5165\u6CD5")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(o,{modelValue:a.flag[6],"onUpdate:modelValue":l[6]||(l[6]=s=>a.flag[6]=s),type:"button"},{default:u(()=>[e(d,{value:"0",disabled:a.disMatrix[6][0]},{default:u(()=>[t("\u505C\u7528\u9891\u8C31\u4EEA")]),_:1},8,["disabled"]),e(d,{value:"1",disabled:a.disMatrix[6][1]},{default:u(()=>[t("\u5F00\u542F\u9891\u8C31\u4EEA")]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),e(_,{type:"primary",onClick:f},{default:u(()=>[t("\u751F\u6210")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])}}});const K=E(H,[["__scopeId","data-v-cda84e20"]]);export{K as default};
|
BIN
assets/index.1361c0f5.js.gz
Normal file
BIN
assets/index.1361c0f5.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,99 +0,0 @@
|
|||||||
import{w as N,a1 as Pe,a2 as sr,Q as or,P as Ee,a3 as Te,a4 as lr,a5 as ur,J as z,a6 as cr,a7 as fr,a8 as vr,a9 as dr,aa as xe,V as gr,E as hr,ab as mr,O as yr,z as Ie,ac as Le,M as R,K as Me,ad as le,ae as pr,af as _r,y as Fe,ag as br,ah as Ne,ai as Cr,aj as wr,B as Ar}from"./index.6225dd09.js";import{c as d,d as ne,o as ae,g as Or,n as Sr,aI as m,f as H,w as Re,t as $r,bB as G,bD as ue,r as Pr,h as Er,b4 as Tr}from"./arco.f43727df.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function J(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function De(e,r){if(!!e){if(typeof e=="string")return J(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,r)}}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function xr(e){if(Array.isArray(e))return J(e)}function Ir(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
||||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e){return xr(e)||Ir(e)||De(e)||Lr()}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function Mr(e,r){if(N(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r||"default");if(N(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Fr(e){var r=Mr(e,"string");return N(r)=="symbol"?r:r+""}function F(e,r,n){return r=Fr(r),r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Nr="__lodash_hash_undefined__";function Rr(e){return this.__data__.set(e,Nr),this}var Dr=Rr;function zr(e){return this.__data__.has(e)}var Gr=zr,Kr=Pe,qr=Dr,Br=Gr;function U(e){var r=-1,n=e==null?0:e.length;for(this.__data__=new Kr;++r<n;)this.add(e[r])}U.prototype.add=U.prototype.push=qr;U.prototype.has=Br;var Hr=U;function Ur(e,r){return e.has(r)}var Wr=Ur;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function Xr(e){var r=-1,n=Array(e.size);return e.forEach(function(a){n[++r]=a}),n}var Zr=Xr;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function jr(e,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(e[n],n,e))return!0;return!1}var Yr=jr,Jr=Hr,Qr=Yr,Vr=Wr,kr=1,en=2;function rn(e,r,n,a,t,i){var s=n&kr,o=e.length,l=r.length;if(o!=l&&!(s&&l>o))return!1;var u=i.get(e),c=i.get(r);if(u&&c)return u==r&&c==e;var f=-1,v=!0,p=n&en?new Jr:void 0;for(i.set(e,r),i.set(r,e);++f<o;){var g=e[f],h=r[f];if(a)var b=s?a(h,g,f,r,e,i):a(g,h,f,e,r,i);if(b!==void 0){if(b)continue;v=!1;break}if(p){if(!Qr(r,function(C,w){if(!Vr(p,w)&&(g===C||t(g,C,n,a,i)))return p.push(w)})){v=!1;break}}else if(!(g===h||t(g,h,n,a,i))){v=!1;break}}return i.delete(e),i.delete(r),v}var ze=rn;function nn(e){var r=-1,n=Array(e.size);return e.forEach(function(a,t){n[++r]=[t,a]}),n}var an=nn,ce=or,fe=cr,tn=fr,sn=ze,on=an,ln=Zr,un=1,cn=2,fn="[object Boolean]",vn="[object Date]",dn="[object Error]",gn="[object Map]",hn="[object Number]",mn="[object RegExp]",yn="[object Set]",pn="[object String]",_n="[object Symbol]",bn="[object ArrayBuffer]",Cn="[object DataView]",ve=ce?ce.prototype:void 0,Z=ve?ve.valueOf:void 0;function wn(e,r,n,a,t,i,s){switch(n){case Cn:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case bn:return!(e.byteLength!=r.byteLength||!i(new fe(e),new fe(r)));case fn:case vn:case hn:return tn(+e,+r);case dn:return e.name==r.name&&e.message==r.message;case mn:case pn:return e==r+"";case gn:var o=on;case yn:var l=a&un;if(o||(o=ln),e.size!=r.size&&!l)return!1;var u=s.get(e);if(u)return u==r;a|=cn,s.set(e,r);var c=sn(o(e),o(r),a,t,i,s);return s.delete(e),c;case _n:if(Z)return Z.call(e)==Z.call(r)}return!1}var An=wn,de=vr,On=1,Sn=Object.prototype,$n=Sn.hasOwnProperty;function Pn(e,r,n,a,t,i){var s=n&On,o=de(e),l=o.length,u=de(r),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var v=o[f];if(!(s?v in r:$n.call(r,v)))return!1}var p=i.get(e),g=i.get(r);if(p&&g)return p==r&&g==e;var h=!0;i.set(e,r),i.set(r,e);for(var b=s;++f<l;){v=o[f];var C=e[v],w=r[v];if(a)var O=s?a(w,C,v,r,e,i):a(C,w,v,e,r,i);if(!(O===void 0?C===w||t(C,w,n,a,i):O)){h=!1;break}b||(b=v=="constructor")}if(h&&!b){var P=e.constructor,S=r.constructor;P!=S&&"constructor"in e&&"constructor"in r&&!(typeof P=="function"&&P instanceof P&&typeof S=="function"&&S instanceof S)&&(h=!1)}return i.delete(e),i.delete(r),h}var En=Pn,j=Te,Tn=ze,xn=An,In=En,ge=lr,he=z,me=sr.exports,Ln=ur,Mn=1,ye="[object Arguments]",pe="[object Array]",K="[object Object]",Fn=Object.prototype,_e=Fn.hasOwnProperty;function Nn(e,r,n,a,t,i){var s=he(e),o=he(r),l=s?pe:ge(e),u=o?pe:ge(r);l=l==ye?K:l,u=u==ye?K:u;var c=l==K,f=u==K,v=l==u;if(v&&me(e)){if(!me(r))return!1;s=!0,c=!1}if(v&&!c)return i||(i=new j),s||Ln(e)?Tn(e,r,n,a,t,i):xn(e,r,l,n,a,t,i);if(!(n&Mn)){var p=c&&_e.call(e,"__wrapped__"),g=f&&_e.call(r,"__wrapped__");if(p||g){var h=p?e.value():e,b=g?r.value():r;return i||(i=new j),t(h,b,n,a,i)}}return v?(i||(i=new j),In(e,r,n,a,t,i)):!1}var Rn=Nn,Dn=Rn,be=Ee;function Ge(e,r,n,a,t){return e===r?!0:e==null||r==null||!be(e)&&!be(r)?e!==e&&r!==r:Dn(e,r,n,a,Ge,t)}var te=Ge,zn=te;function Gn(e,r){return zn(e,r)}var Kn=Gn;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var qn=z,Bn=xe,Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Un=/^\w*$/;function Wn(e,r){if(qn(e))return!1;var n=N(e);return n=="number"||n=="symbol"||n=="boolean"||e==null||Bn(e)?!0:Un.test(e)||!Hn.test(e)||r!=null&&e in Object(r)}var ie=Wn,Ke=Pe,Xn="Expected a function";function se(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Xn);var n=function a(){var t=arguments,i=r?r.apply(this,t):t[0],s=a.cache;if(s.has(i))return s.get(i);var o=e.apply(this,t);return a.cache=s.set(i,o)||s,o};return n.cache=new(se.Cache||Ke),n}se.Cache=Ke;var Zn=se,jn=Zn,Yn=500;function Jn(e){var r=jn(e,function(a){return n.size===Yn&&n.clear(),a}),n=r.cache;return r}var Qn=Jn,Vn=Qn,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ea=/\\(\\)?/g,ra=Vn(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(kn,function(n,a,t,i){r.push(t?i.replace(ea,"$1"):a||n)}),r}),na=ra,aa=z,ta=ie,ia=na,sa=dr;function oa(e,r){return aa(e)?e:ta(e,r)?[e]:ia(sa(e))}var qe=oa,la=xe,ua=1/0;function ca(e){if(typeof e=="string"||la(e))return e;var r=e+"";return r=="0"&&1/e==-ua?"-0":r}var W=ca,fa=qe,va=W;function da(e,r){r=fa(r,e);for(var n=0,a=r.length;e!=null&&n<a;)e=e[va(r[n++])];return n&&n==a?e:void 0}var Be=da;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var ga=Be;function ha(e,r,n){var a=e==null?void 0:ga(e,r);return a===void 0?n:a}var ma=ha;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function ya(e,r){return e!=null&&r in Object(e)}var pa=ya,_a=qe,ba=gr,Ca=z,wa=hr,Aa=mr,Oa=W;function Sa(e,r,n){r=_a(r,e);for(var a=-1,t=r.length,i=!1;++a<t;){var s=Oa(r[a]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++a!=t?i:(t=e==null?0:e.length,!!t&&Aa(t)&&wa(s,t)&&(Ca(e)||ba(e)))}var $a=Sa,Pa=pa,Ea=$a;function Ta(e,r){return e!=null&&Ea(e,r,Pa)}var xa=Ta;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function Ia(e){return function(r){return r==null?void 0:r[e]}}var La=Ia;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function Ma(e){if(Array.isArray(e))return e}function Fa(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,t,i,s,o=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,r===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(o.push(a.value),o.length!==r);l=!0);}catch(c){u=!0,t=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw t}}return o}}function Na(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
||||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ra(e,r){return Ma(e)||Fa(e,r)||De(e,r)||Na()}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function Ce(e,r){var n=Object.keys(r);n.forEach(function(a){e.style[a]=r[a]})}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Da=yr,za=Ee,Ga="[object Number]";function Ka(e){return typeof e=="number"||za(e)&&Da(e)==Ga}var qa=Ka;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function He(){if(typeof navigator>"u"||!navigator)return Number.MAX_SAFE_INTEGER;var e=navigator,r=e.userAgent,n=r.indexOf("compatible")>-1&&r.indexOf("MSIE")>-1,a=r.indexOf("Trident")>-1&&r.indexOf("rv:11.0")>-1;if(n){var t=new RegExp("MSIE (\\d+\\.\\d+);"),i=r.match(t);if(!i)return-1;var s=parseFloat(i[1]);return s<7?6:s}return a?11:Number.MAX_SAFE_INTEGER}function ii(){var e,r,n;if(typeof navigator>"u"||!navigator)return!1;var a=navigator.userAgent,t=a.match(/AppleWebKit.+Chrome\/(.+) Safari\/.+/i);if(Number(t==null||(e=t[1])===null||e===void 0?void 0:e.split(".")[0])<100)return!0;var i=a.match(/AppleWebKit.+Version\/(.+) Safari\/.+/i);if(Number(i==null||(r=i[1])===null||r===void 0?void 0:r.split(".")[0])<12)return!0;var s=He();if(s<=11)return!0;var o=a.match(/Firefox\/(.+)/i);return Number(o==null||(n=o[1])===null||n===void 0?void 0:n.split(".")[0])<100}function si(e,r){var n=qa(r);if(!e||e.length===0)return n?{length:0,characters:e}:0;for(var a=0,t=0;t<e.length;t++){var i=0;if(e.charCodeAt(t)>127?i=2:i=1,n&&a+i>r)return{length:a,characters:e.slice(0,t)};a+=i}return n?{length:a,characters:e}:a}function oi(e){return Q(e!=null?e:"").length}function li(e,r,n){return Q(n!=null?n:"").slice().length===r?n||"":Q(e!=null?e:"").slice(0,r).join("")}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function we(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function q(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?we(Object(n),!0).forEach(function(a){F(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Ba(e){var r,n,a,t={};if(!(!e||typeof window>"u")){var i=(r=window)===null||r===void 0||(n=r.getComputedStyle)===null||n===void 0?void 0:n.call(r,e),s=i.color,o=i.fontSize,l=(a=window)===null||a===void 0||(a=a.navigator)===null||a===void 0?void 0:a.userAgent,u=/Safari/.test(l)&&!/Chrome/.test(l),c=/(?=.*iPhone)[?=.*MicroMessenger]/.test(l)&&!/Chrome/.test(l);if((u||c)&&(t={transformOrigin:"0px 0px",transform:"scale(".concat(parseInt(o,10)/12,")")}),s&&He()>11){var f=s.match(/[\d.]+/g),v=f?"rgba(".concat(f[0],", ").concat(f[1],", ").concat(f[2],", 0)"):"";Ce(e,q(q({},t),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(v," 0deg, ").concat(s," 360deg)")}))}else Ce(e,q(q({},t),{},{background:""}))}}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function y(e){var r=Ie("classPrefix"),n=r.classPrefix;return d(function(){return e?"".concat(n.value,"-").concat(e):n.value})}function Ha(){var e=Ie("classPrefix"),r=e.classPrefix;return{SIZE:d(function(){return{small:"".concat(r.value,"-size-s"),medium:"".concat(r.value,"-size-m"),large:"".concat(r.value,"-size-l"),default:"",xs:"".concat(r.value,"-size-xs"),xl:"".concat(r.value,"-size-xl"),block:"".concat(r.value,"-size-full-width")}}),STATUS:d(function(){return{loading:"".concat(r.value,"-is-loading"),loadMore:"".concat(r.value,"-is-load-more"),disabled:"".concat(r.value,"-is-disabled"),focused:"".concat(r.value,"-is-focused"),success:"".concat(r.value,"-is-success"),error:"".concat(r.value,"-is-error"),warning:"".concat(r.value,"-is-warning"),selected:"".concat(r.value,"-is-selected"),active:"".concat(r.value,"-is-active"),checked:"".concat(r.value,"-is-checked"),current:"".concat(r.value,"-is-current"),hidden:"".concat(r.value,"-is-hidden"),visible:"".concat(r.value,"-is-visible"),expanded:"".concat(r.value,"-is-expanded"),indeterminate:"".concat(r.value,"-is-indeterminate")}})}}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Ua=ne({name:"TLoadingGradient",setup:function(){var r=y();return ae(function(){var n=Or().refs.circle;Sr(function(){Ba(n)})}),{classPrefix:r}},render:function(){var r=this.classPrefix,n="".concat(r,"-loading__gradient"),a=[n,"".concat(r,"-icon-loading")];return m("svg",{class:a,viewBox:"0 0 12 12",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[m("foreignObject",{x:"0",y:"0",width:"12",height:"12"},[m("div",{class:"".concat(n,"-conic"),ref:"circle"},null)])])}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var oe={exports:{}},M={exports:{}};(function(){var e,r,n,a,t,i;typeof performance<"u"&&performance!==null&&performance.now?M.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(M.exports=function(){return(e()-t)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,t=a-i):Date.now?(M.exports=function(){return Date.now()-n},n=Date.now()):(M.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(Le);var Wa=M.exports,A=typeof window>"u"?Le:window,B=["moz","webkit"],T="AnimationFrame",x=A["request"+T],D=A["cancel"+T]||A["cancelRequest"+T];for(var L=0;!x&&L<B.length;L++)x=A[B[L]+"Request"+T],D=A[B[L]+"Cancel"+T]||A[B[L]+"CancelRequest"+T];if(!x||!D){var Y=0,Ae=0,$=[],Xa=1e3/60;x=function(r){if($.length===0){var n=Wa(),a=Math.max(0,Xa-(n-Y));Y=a+n,setTimeout(function(){var t=$.slice(0);$.length=0;for(var i=function(){if(!t[s].cancelled)try{t[s].callback(Y)}catch(l){setTimeout(function(){throw l},0)}},s=0;s<t.length;s++)i()},Math.round(a))}return $.push({handle:++Ae,callback:r,cancelled:!1}),Ae},D=function(r){for(var n=0;n<$.length;n++)$[n].handle===r&&($[n].cancelled=!0)}}oe.exports=function(e){return x.call(A,e)};oe.exports.cancel=function(){D.apply(A,arguments)};oe.exports.polyfill=function(e){e||(e=A),e.requestAnimationFrame=x,e.cancelAnimationFrame=D};var Ue=typeof window>"u",Za=function(r){return(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},ja=function(){return!Ue&&document.addEventListener?function(e,r,n,a){e&&r&&n&&e.addEventListener(r,n,a)}:function(e,r,n){e&&r&&n&&e.attachEvent("on".concat(r),n)}}(),Ya=function(){return!Ue&&document.removeEventListener?function(e,r,n,a){e&&r&&e.removeEventListener(r,n,a)}:function(e,r,n){e&&r&&e.detachEvent("on".concat(r),n)}}();function ui(e,r,n,a){var t=R(n)?n:n.handleEvent,i=function s(o){t(o),Ya(e,r,s,a)};ja(e,r,i,a)}function We(e,r){if(!e||!r)return!1;if(r.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(r):" ".concat(e.className," ").indexOf(" ".concat(r," "))>-1}function V(e,r){if(!!e){for(var n=e.className,a=(r||"").split(" "),t=0,i=a.length;t<i;t++){var s=a[t];!s||(e.classList?e.classList.add(s):We(e,s)||(n+=" ".concat(s)))}e.classList||(e.className=n)}}function k(e,r){if(!(!e||!r)){for(var n=r.split(" "),a=" ".concat(e.className," "),t=0,i=n.length;t<i;t++){var s=n[t];!s||(e.classList?e.classList.remove(s):We(e,s)&&(a=a.replace(" ".concat(s," ")," ")))}e.classList||(e.className=Za(a))}}var Xe=function(r,n){var a=R(r)?r(n):r;return a?Me(a)?document.querySelector(a):a instanceof HTMLElement?a:document.body:document.body},Ja=function(){},ci=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return Me(r)?document.querySelector(r):R(r)?r():r},fi=function(r){var n=r.clientWidth,a=n===void 0?0:n,t=r.scrollWidth,i=t===void 0?0:t;return i>a},vi=function(r){if(!(r instanceof HTMLFormElement))throw new Error("target must be HTMLFormElement");var n=document.createElement("input");n.type="submit",n.hidden=!0,r.appendChild(n),n.click(),r.removeChild(n)};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Qa={attach:{type:[String,Function],default:""},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:Number,default:0},fullscreen:Boolean,indicator:{type:[Boolean,Function],default:!0},inheritColor:Boolean,loading:{type:Boolean,default:!0},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},size:{type:String,default:"medium"},text:{type:[String,Function]},zIndex:{type:Number}};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var Va=function(r,n){var a=R(r)?d(r):H(r),t=R(n)?d(n):H(n),i=H(),s=function(){i.value=Ja()||Xe(a.value,t.value)};return ae(function(){return s()}),Re([a,t],function(){return s()}),i};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var ka=function(){return{name:y("loading"),centerClass:y("loading--center"),fullscreenClass:y("loading__fullscreen"),lockClass:y("loading--lock"),overlayClass:y("loading__overlay"),relativeClass:y("loading__parent"),fullClass:y("loading--full"),inheritColorClass:y("loading--inherit-color")}},ee=ne({name:"TLoading",inheritAttrs:!1,props:Qa,setup:function(r,n){var a=n.slots,t=H(!1),i=ka(),s=i.name,o=i.centerClass,l=i.fullscreenClass,u=i.lockClass,c=i.overlayClass,f=i.relativeClass,v=i.fullClass,p=i.inheritColorClass,g=y(),h=Ha(),b=h.SIZE,C=function(){t.value=!1;var I=setTimeout(function(){t.value=!0,clearTimeout(I)},r.delay)},w=Va(function(){return r.attach}),O=d(function(){return Boolean(!r.delay||r.delay&&t.value)}),P=d(function(){var _={};return r.zIndex!==void 0&&(_.zIndex=r.zIndex),["small","medium","large"].includes(r.size)||(_["font-size"]=r.size),_}),S=d(function(){return Boolean(r.default||a.default||r.content||a.content)}),X=d(function(){return r.preventScrollThrough&&r.fullscreen}),Qe=d(function(){return Boolean(r.text||a.text)}),Ve=d(function(){return S.value&&r.loading&&O.value}),ke=d(function(){return r.fullscreen&&r.loading&&O.value}),er=d(function(){return r.attach&&r.loading&&O.value}),rr=d(function(){return r.attach&&r.loading&&O.value}),nr=d(function(){var _=[o.value,b.value[r.size],F({},p.value,r.inheritColor)],I=[s.value,l.value,o.value,c.value];return{baseClasses:_,attachClasses:_.concat([s.value,v.value,F({},c.value,r.showOverlay)]),withContentClasses:_.concat([s.value,v.value,F({},c.value,r.showOverlay)]),fullScreenClasses:I,normalClasses:_.concat([s.value])}}),ar=$r(r),tr=ar.loading;return Re([tr],function(_){var I=Ra(_,1),ir=I[0];ir?(C(),X.value&&V(document.body,u.value)):X.value&&k(document.body,u.value)}),ae(function(){r.delay&&C()}),{classPrefix:g,relativeClass:f,delayShowLoading:t,styles:P,showText:Qe,hasContent:S,classes:nr,lockFullscreen:X,showWrapLoading:Ve,showNormalLoading:er,showFullScreenLoading:ke,showAttachedLoading:rr,teleportElement:w}},render:function(){var r=this,n=this.classes,a=n.fullScreenClasses,t=n.baseClasses,i=n.withContentClasses,s=n.attachClasses,o=n.normalClasses,l=m(Ua,{size:this.size},null),u=this.loading&&le(this,"indicator",l),c=this.showText&&m("div",{class:"".concat(this.classPrefix,"-loading__text")},[le(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:m(ue,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",G({class:a,style:r.styles},r.$attrs),[m("div",{class:t},[u,c])])]}}):this.hasContent?m("div",G({class:this.relativeClass},this.$attrs),[pr(this,"default","content"),this.showWrapLoading&&m("div",{class:i,style:this.styles},[u,c])]):this.attach?!this.showAttachedLoading||!this.loading?null:m(ue,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",G({class:s,style:r.styles},r.$attrs),[u,c])]}}):this.loading?m("div",G({class:o,style:this.styles},this.$attrs),[u,c]):null}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function Oe(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function et(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Oe(Object(n),!0).forEach(function(a){F(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var E=null;function rt(e){var r=_r({fullscreen:!1,attach:"body",loading:!0,preventScrollThrough:!0},e);return r}function Se(e){var r=rt(e);if(r.fullscreen&&E)return E;var n=ne({setup:function(){var f=Pr(r);return{loadingOptions:f}},render:function(){return Er(ee,et({},this.loadingOptions))}}),a=Xe(r.fullscreen?"body":r.attach),t=Tr(n),i=t.mount(document.createElement("div")),s=y("loading__parent--relative").value,o=y("loading--lock"),l=r.preventScrollThrough&&r.fullscreen;l&&V(document.body,o.value),a?V(a,s):console.error("attach is not exist");var u={hide:function(){i.loading=!1,k(a,s),k(document.body,o.value),t.unmount()}};return u}function Ze(e){if(e===!0)return E=Se({fullscreen:!0,loading:!0,attach:"body",preventScrollThrough:!0}),E;if(e===!1){var r;(r=E)===null||r===void 0||r.hide(),E=null;return}return Se(e)}var je=Ze;je.install=function(e){e.config.globalProperties.$loading=Ze};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var nt=br,at=Ne;function tt(e,r){return e&&nt(e,r,at)}var it=tt,st=Te,ot=te,lt=1,ut=2;function ct(e,r,n,a){var t=n.length,i=t,s=!a;if(e==null)return!i;for(e=Object(e);t--;){var o=n[t];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++t<i;){o=n[t];var l=o[0],u=e[l],c=o[1];if(s&&o[2]){if(u===void 0&&!(l in e))return!1}else{var f=new st;if(a)var v=a(u,c,l,e,r,f);if(!(v===void 0?ot(c,u,lt|ut,a,f):v))return!1}}return!0}var ft=ct,vt=Fe;function dt(e){return e===e&&!vt(e)}var Ye=dt,gt=Ye,ht=Ne;function mt(e){for(var r=ht(e),n=r.length;n--;){var a=r[n],t=e[a];r[n]=[a,t,gt(t)]}return r}var yt=mt;function pt(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}var Je=pt,_t=ft,bt=yt,Ct=Je;function wt(e){var r=bt(e);return r.length==1&&r[0][2]?Ct(r[0][0],r[0][1]):function(n){return n===e||_t(n,e,r)}}var At=wt,Ot=te,St=ma,$t=xa,Pt=ie,Et=Ye,Tt=Je,xt=W,It=1,Lt=2;function Mt(e,r){return Pt(e)&&Et(r)?Tt(xt(e),r):function(n){var a=St(n,e);return a===void 0&&a===r?$t(n,e):Ot(r,a,It|Lt)}}var Ft=Mt,Nt=Be;function Rt(e){return function(r){return Nt(r,e)}}var Dt=Rt,zt=La,Gt=Dt,Kt=ie,qt=W;function Bt(e){return Kt(e)?zt(qt(e)):Gt(e)}var Ht=Bt,Ut=At,Wt=Ft,Xt=Cr,Zt=z,jt=Ht;function Yt(e){return typeof e=="function"?e:e==null?Xt:N(e)=="object"?Zt(e)?Wt(e[0],e[1]):Ut(e):jt(e)}var Jt=Yt,Qt=wr,Vt=it,kt=Jt;function ei(e,r){var n={};return r=kt(r),Vt(e,function(a,t,i){Qt(n,r(a,t,i),a)}),n}var ri=ei,re=Symbol("TdLoading"),$e=function(r,n){var a=n.modifiers,t=a.fullscreen,i=a.inheritColor,s={attach:function(){return r},fullscreen:t!=null?t:!1,inheritColor:i!=null?i:!1,loading:n.value};Fe(n.value)&&ri(n.value,function(o,l){s[l]=o}),r[re]={options:s,instance:je(s)}},ni={mounted:function(r,n){n.value&&$e(r,n)},updated:function(r,n){var a=r[re],t=n.value,i=n.oldValue;if(!Kn(t,i)){var s,o=(s=t==null?void 0:t.loading)!==null&&s!==void 0?s:t;o?$e(r,n):a==null||a.instance.hide()}},unmounted:function(r){var n;(n=r[re])===null||n===void 0||n.instance.hide()}};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var di=Ar(ee,ee.name,{name:"loading",comp:ni});export{Ja as A,ui as B,Ce as C,xa as D,Ma as E,Ir as F,De as G,Na as H,ii as I,di as L,Ra as _,si as a,Ha as b,F as c,qe as d,W as e,Q as f,oi as g,ma as h,qa as i,Be as j,He as k,li as l,Va as m,ci as n,Ya as o,ja as p,Hr as q,vi as r,Wr as s,Fr as t,y as u,Xe as v,fi as w,Zr as x,Ue as y,We as z};
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.18a8d36f.js.gz
Normal file
BIN
assets/index.18a8d36f.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.25cd9d44.js.gz
Normal file
BIN
assets/index.25cd9d44.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
5
assets/index.32c28ea2.js
Normal file
5
assets/index.32c28ea2.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import{b as o}from"./dialog.604d372a.js";import{B as a}from"./index.25cd9d44.js";import"./arco.446db797.js";/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var m=a(o);export{m as D};
|
@ -1 +1 @@
|
|||||||
import{_ as n}from"./index.6225dd09.js";import{d as c,bG as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.f43727df.js";import{f as m}from"./vue.cbdb927d.js";import"./chart.3c227ebb.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.25cd9d44.js";import{d as c,bG as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.446db797.js";import{f as m}from"./vue.848e4abf.js";import"./chart.27192e44.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};
|
1
assets/index.3a1a02a4.js
Normal file
1
assets/index.3a1a02a4.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.3a1a02a4.js.gz
Normal file
BIN
assets/index.3a1a02a4.js.gz
Normal file
Binary file not shown.
13
assets/index.3dd0afa0.js
Normal file
13
assets/index.3dd0afa0.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import{m as j,u as x,i as p,_ as z,c as l}from"./useConfig.7e9a03f4.js";import{d as w,c as m,aI as u,aK as N}from"./arco.446db797.js";import{A as C,J as _,K as y,B as F}from"./index.25cd9d44.js";import{a as A}from"./slot.b1e6202c.js";/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var T={align:{type:String,validator:function(e){return e?["start","end","center","baseline"].includes(e):!0}},breakLine:Boolean,direction:{type:String,default:"horizontal",validator:function(e){return e?["vertical","horizontal"].includes(e):!0}},separator:{type:[String,Function]},size:{type:[String,Number,Array],default:"medium"}};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),r.push.apply(r,a)}return r}function b(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(a){l(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}var O={small:"8px",medium:"16px",large:"24px"},k=j(),D=w({name:"TSpace",props:b(b({},T),{},{forceFlexGapPolyfill:Boolean}),setup:function(e){var r=x("space"),a=C(),f=A(),v=m(function(){return e.forceFlexGapPolyfill||k}),S=m(function(){var n="";_(e.size)?n=e.size.map(function(o){return p(o)?"".concat(o,"px"):y(o)&&O[o]||o}).join(" "):y(e.size)?n=O[e.size]||e.size:p(e.size)&&(n="".concat(e.size,"px"));var i={};if(v.value){var d=n.split(" "),c=z(d,2),s=c[0],h=c[1];i["--td-space-column-gap"]=s,i["--td-space-row-gap"]=h||s}else i.gap=n;return i});function P(){var n=f(),i=a("separator");return n.map(function(d,c){var s=c+1!==n.length&&i;return u(N,null,[u("div",{class:"".concat(r.value,"-item")},[d]),s&&u("div",{class:"".concat(r.value,"-item-separator")},[i])])})}return function(){var n=["".concat(r.value),l(l(l(l({},"".concat(r.value,"-align-").concat(e.align),e.align),"".concat(r.value,"-").concat(e.direction),e.direction),"".concat(r.value,"--break-line"),e.breakLine),"".concat(r.value,"--polyfill"),v.value)];return u("div",{class:n,style:S.value},[P()])}}});/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var M=F(D);export{M as S};
|
BIN
assets/index.3dd0afa0.js.gz
Normal file
BIN
assets/index.3dd0afa0.js.gz
Normal file
Binary file not shown.
1
assets/index.434892f1.js
Normal file
1
assets/index.434892f1.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{e as v,as as B,_ as E}from"./index.25cd9d44.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as $,r as C,bH as A,C as F,D as S,aI as n,aH as o,G as y,aN as _,aM as b,a$ as H,ba as R,bF as D,bI as I,bL as P,n as T}from"./arco.446db797.js";import{i as M,e as N,b as U,g as V}from"./serial.c741fbda.js";import{C as L}from"./index.8817bce8.js";import"./chart.27192e44.js";import"./vue.848e4abf.js";import"./useConfig.7e9a03f4.js";import"./index.80de110f.js";const z={class:"container"},G=["innerHTML"],K={name:"Chi"},O=$({...K,setup(j){const i=v(),u=C({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),w=async(e=0,t)=>{var p;await N(i.connectPort);for(let a=e;a<t.length+e;a+=128)await U(i.connectPort,a,t.slice(a-e,a-e+128),128,(p=i.configuration)==null?void 0:p.uart),u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((a-e)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)});u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await V(i.connectPort)},h=async(e=1)=>{var p,a,r,m,g;if(i.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=i.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}u.status=u.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(a=i.configuration)!=null&&a.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(131072,l);return}if(e==5){const c=await M(i.connectPort,(r=i.configuration)==null?void 0:r.uart);if(c!=262144&&c!=524288){u.status=u.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}t=await fetch("/ssb.bin");const s=t.body.getReader(),l=[];for(;;){const{done:f,value:k}=await s.read();if(f)break;l.push(...k)}const d=new Uint8Array(l);await w(246312,d);return}if(e==1){if(((m=i.configuration)==null?void 0:m.charset)=="losehu"){t=await fetch("/old_font.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(8192,l);return}if(((g=i.configuration)==null?void 0:g.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(9344,l);return}}};return(e,t)=>{const p=B,a=H,r=L,m=R,g=D,c=A,s=I,l=P;return F(),S("div",z,[n(p,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),n(l,{gutter:20,align:"stretch"},{default:o(()=>[n(s,{span:24},{default:o(()=>[n(c,{class:"general-card"},{title:o(()=>[y("span",{onClick:t[0]||(t[0]=()=>{u.showHide+=1})},_(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.fontwrite")),1)]),default:o(()=>[n(a,{onClick:t[1]||(t[1]=d=>h(1))},{default:o(()=>[b(_(e.$t("tool.writefontwrite")),1)]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.pinyinwrite")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[2]||(t[2]=d=>h(4))},{default:o(()=>[b(_(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.ssbpatch")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[3]||(t[3]=d=>h(5))},{default:o(()=>[b(_(e.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),n(g),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:u.status},null,8,G)]),_:1})]),_:1})]),_:1})])}}});const at=E(O,[["__scopeId","data-v-38246451"]]);export{at as default};
|
BIN
assets/index.434892f1.js.gz
Normal file
BIN
assets/index.434892f1.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.481fa3a7.js.gz
Normal file
BIN
assets/index.481fa3a7.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{d as x,c as q,b5 as R,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as E,aE as j,aN as r,b6 as z,f as A,r as G,b7 as H,b8 as J,b9 as K,ba as Q,bb as T,u as C,aM as f,a_ as W,bc as O,bd as X,a$ as Y,be as Z,bf as ee}from"./arco.f43727df.js";import{F as oe}from"./index.9bbb42bd.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.6225dd09.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.cbdb927d.js";import{u as le}from"./loading.a1d05891.js";import"./chart.3c227ebb.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(c){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 i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,E(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("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,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__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=x({__name:"login-form",setup(c){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:u}=a.value,{username:$,password:y}=l;a.value.username=u?$:"",a.value.password=u?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,u=O,$=ne,y=X,B=J,N=K,P=Y,M=Q,U=T;return i(),m("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(u,{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(u,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(y,{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($)]),_: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 $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=c=>(Z("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>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)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ce=x({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const je=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{je as default};
|
import{d as x,c as q,b5 as R,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as E,aE as j,aN as r,b6 as z,f as A,r as G,b7 as H,b8 as J,b9 as K,ba as Q,bb as T,u as C,aM as f,a_ as W,bc as O,bd as X,a$ as Y,be as Z,bf as ee}from"./arco.446db797.js";import{F as oe}from"./index.bdf256f5.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.25cd9d44.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.848e4abf.js";import{u as le}from"./loading.27865eee.js";import"./chart.27192e44.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(c){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 i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,E(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("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,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__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=x({__name:"login-form",setup(c){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:u}=a.value,{username:$,password:y}=l;a.value.username=u?$:"",a.value.password=u?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,u=O,$=ne,y=X,B=J,N=K,P=Y,M=Q,U=T;return i(),m("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(u,{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(u,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(y,{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($)]),_: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 $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=c=>(Z("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>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)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ce=x({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const je=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{je as default};
|
BIN
assets/index.4ad98d30.js.gz
Normal file
BIN
assets/index.4ad98d30.js.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.562be3e2.css
Normal file
1
assets/index.562be3e2.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.562be3e2.css.gz
Normal file
BIN
assets/index.562be3e2.css.gz
Normal file
Binary file not shown.
1
assets/index.5c67b225.css
Normal file
1
assets/index.5c67b225.css
Normal file
@ -0,0 +1 @@
|
|||||||
|
.t-space{display:inline-flex}.t-space .t-space-item{width:inherit}.t-space-align-start{align-items:flex-start}.t-space-align-end{align-items:flex-end}.t-space-align-baseline{align-items:baseline}.t-space-align-center{align-items:center}.t-space-vertical{flex-direction:column}.t-space-vertical .t-space-item-separator{width:100%}.t-space.t-space--break-line{flex-wrap:wrap}.t-space.t-space--polyfill{display:flex}.t-space.t-space--polyfill.t-space-horizontal,.t-space.t-space--polyfill.t-space--break-line{margin-left:calc(-1 * var(--td-space-column-gap, 0))}.t-space.t-space--polyfill.t-space-vertical,.t-space.t-space--polyfill.t-space--break-line{margin-top:calc(-1 * var(--td-space-row-gap, 0))}.t-space.t-space--polyfill.t-space-horizontal>*,.t-space.t-space--polyfill.t-space--break-line>*{margin-left:var(--td-space-column-gap)}.t-space.t-space--polyfill.t-space-vertical>*,.t-space.t-space--polyfill.t-space--break-line>*{margin-top:var(--td-space-row-gap)}
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.638e67fc.js.gz
Normal file
BIN
assets/index.638e67fc.js.gz
Normal file
Binary file not shown.
1
assets/index.72641144.js
Normal file
1
assets/index.72641144.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{d as o,D as r,C as a}from"./arco.446db797.js";import{f as s,h as n}from"./vue.848e4abf.js";const i=o({__name:"index",setup(c){const e=s(),t=n().params.path;return e.replace({path:t}),(u,m)=>(a(),r("div"))}});export{i as default};
|
@ -1 +1 @@
|
|||||||
import{e as P,as as N,_ as F}from"./index.6225dd09.js";/* empty css *//* empty css *//* empty css */import{d as U,r as V,o as j,bH as O,bO as A,C as h,D as b,aI as f,aH as g,G as x,aK as $,aJ as k,F as H,aM as y,aN as v,a$ as T,ba as q,bI as z,bL as K,be as G,bf as J}from"./arco.f43727df.js";import{h as Q}from"./vue.cbdb927d.js";import{e as W,b as X,g as Y}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";const E=w=>(G("data-v-ffb80c1d"),w=w(),J(),w),Z={class:"container"},tt=E(()=>x("div",{id:"canvasDiv",style:{zoom:"250%",display:"none"}},null,-1)),et={style:{padding:"0",margin:"0","border-spacing":"0"}},ot=["onMousedown","onMouseover"],nt=E(()=>x("br",null,null,-1)),at={name:"Backup"},it=U({...at,setup(w){const p=P(),s=V({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=Q();j(async()=>{if(I.query.url){const e=await fetch(I.query.url,{responseType:"blob"});M(window.URL.createObjectURL(await e.blob()))}});const D=()=>{const e=s.matrix;e.map((n,t)=>{n.map((a,l)=>{e[t][l]=a=="#fff"?"#000":"#fff"})}),s.matrix=e},S=(e,n)=>{if(s.mousedown){const t=s.matrix;t[n][e]=s.matrix[n][e]=="#fff"?"#000":"#fff",s.matrix=t}},M=e=>{const n=document.createElement("canvas");n.width=128,n.height=64;const t=n.cloneNode(),a=document.getElementById("canvasDiv");a.innerHTML="",a==null||a.append(n,t);const l=new Image;l.src=e,l.onload=()=>{const i=n.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,n.width,n.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},R=()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const n=new Blob([e.files[0]],{type:"application/octet-stream"}),t=URL.createObjectURL(n),a=document.createElement("canvas");a.width=128,a.height=64;const l=new Image;l.src=t,l.onload=()=>{const i=a.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,a.width,a.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},e.click()},B=async()=>{const e=s.matrix,n=document.createElement("canvas");n.width=128,n.height=64;const t=n.getContext("2d");t&&(t.fillStyle="#fff",t.fillRect(0,0,n.width,n.height),t.fillStyle="#000");for(let l=0;l<64;l++)for(let i=0;i<128;i++)e[l][i]=="#000"&&(t==null||t.beginPath(),t==null||t.rect(i,l,1,1),t==null||t.fill());const a=document.createElement("a");a.href=n.toDataURL("image/jpeg",1),a.download="image.jpg",a.click()},L=async()=>{var l,i,m,_,d;const e=new Uint8Array(1024);let n=0;for(let o=0;o<64;o+=8)for(let r=0;r<128;r++){let u=0;for(let c=0;c<8;c++)u|=(s.matrix[o+c][r]=="#000"?1:0)<<c;e[n++]=u}if(s.binaryFile=e,p.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((l=p.configuration)==null?void 0:l.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((i=p.configuration)==null?void 0:i.charset)!="losehu"&&((m=p.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}s.loading=!0;let t=123728;((_=p.configuration)==null?void 0:_.charset)=="gb2312"&&(t=8320),await W(p.connectPort);const a=s.binaryFile;for(let o=t;o<a.length+t;o+=128)await X(p.connectPort,o,a.slice(o-t,o-t+128),128,(d=p.configuration)==null?void 0:d.uart);await Y(p.connectPort),s.loading=!1};return(e,n)=>{const t=N,a=T,l=q,i=O,m=A,_=z,d=K;return h(),b("div",Z,[f(t,{items:[e.$t("menu.list"),e.$t("menu.image")]},null,8,["items"]),f(d,{gutter:20,align:"stretch"},{default:g(()=>[f(_,{span:24},{default:g(()=>[f(m,{loading:s.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:g(()=>[f(i,{class:"general-card",title:e.$t("menu.image")+e.$t("global.onStart")},{default:g(()=>[tt,x("div",null,[x("table",et,[(h(!0),b($,null,k(s.matrix,(o,r)=>(h(),b("tr",null,[(h(!0),b($,null,k(o,(u,c)=>(h(),b("td",{onMousedown:C=>{s.mousedown=!0,S(c,r)},onMouseup:n[0]||(n[0]=C=>{s.mousedown=!1}),onMouseover:C=>S(c,r),style:H("background-color: "+u+"; height: 5px; width: 3.5px;")},null,44,ot))),256))]))),256))])]),nt,f(l,null,{default:g(()=>[f(a,{onClick:R},{default:g(()=>[y(v(e.$t("tool.selectImage")),1)]),_:1}),f(a,{disabled:s.matrix.length<64,onClick:D},{default:g(()=>[y(v(e.$t("image.negative")),1)]),_:1},8,["disabled"]),f(a,{disabled:s.matrix.length<64,onClick:B},{default:g(()=>[y(v(e.$t("cps.save")),1)]),_:1},8,["disabled"]),f(a,{type:"primary",disabled:s.matrix.length<64,onClick:L},{default:g(()=>[y(v(e.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=F(it,[["__scopeId","data-v-ffb80c1d"]]);export{pt as default};
|
import{e as P,as as N,_ as F}from"./index.25cd9d44.js";/* empty css *//* empty css *//* empty css */import{d as U,r as V,o as j,bH as O,bO as A,C as h,D as b,aI as f,aH as g,G as x,aK as $,aJ as k,F as H,aM as y,aN as v,a$ as T,ba as q,bI as z,bL as K,be as G,bf as J}from"./arco.446db797.js";import{h as Q}from"./vue.848e4abf.js";import{e as W,b as X,g as Y}from"./serial.c741fbda.js";import"./chart.27192e44.js";const E=w=>(G("data-v-ffb80c1d"),w=w(),J(),w),Z={class:"container"},tt=E(()=>x("div",{id:"canvasDiv",style:{zoom:"250%",display:"none"}},null,-1)),et={style:{padding:"0",margin:"0","border-spacing":"0"}},ot=["onMousedown","onMouseover"],nt=E(()=>x("br",null,null,-1)),at={name:"Backup"},it=U({...at,setup(w){const p=P(),s=V({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=Q();j(async()=>{if(I.query.url){const e=await fetch(I.query.url,{responseType:"blob"});M(window.URL.createObjectURL(await e.blob()))}});const D=()=>{const e=s.matrix;e.map((n,t)=>{n.map((a,l)=>{e[t][l]=a=="#fff"?"#000":"#fff"})}),s.matrix=e},S=(e,n)=>{if(s.mousedown){const t=s.matrix;t[n][e]=s.matrix[n][e]=="#fff"?"#000":"#fff",s.matrix=t}},M=e=>{const n=document.createElement("canvas");n.width=128,n.height=64;const t=n.cloneNode(),a=document.getElementById("canvasDiv");a.innerHTML="",a==null||a.append(n,t);const l=new Image;l.src=e,l.onload=()=>{const i=n.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,n.width,n.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},R=()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const n=new Blob([e.files[0]],{type:"application/octet-stream"}),t=URL.createObjectURL(n),a=document.createElement("canvas");a.width=128,a.height=64;const l=new Image;l.src=t,l.onload=()=>{const i=a.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,a.width,a.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},e.click()},B=async()=>{const e=s.matrix,n=document.createElement("canvas");n.width=128,n.height=64;const t=n.getContext("2d");t&&(t.fillStyle="#fff",t.fillRect(0,0,n.width,n.height),t.fillStyle="#000");for(let l=0;l<64;l++)for(let i=0;i<128;i++)e[l][i]=="#000"&&(t==null||t.beginPath(),t==null||t.rect(i,l,1,1),t==null||t.fill());const a=document.createElement("a");a.href=n.toDataURL("image/jpeg",1),a.download="image.jpg",a.click()},L=async()=>{var l,i,m,_,d;const e=new Uint8Array(1024);let n=0;for(let o=0;o<64;o+=8)for(let r=0;r<128;r++){let u=0;for(let c=0;c<8;c++)u|=(s.matrix[o+c][r]=="#000"?1:0)<<c;e[n++]=u}if(s.binaryFile=e,p.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((l=p.configuration)==null?void 0:l.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((i=p.configuration)==null?void 0:i.charset)!="losehu"&&((m=p.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}s.loading=!0;let t=123728;((_=p.configuration)==null?void 0:_.charset)=="gb2312"&&(t=8320),await W(p.connectPort);const a=s.binaryFile;for(let o=t;o<a.length+t;o+=128)await X(p.connectPort,o,a.slice(o-t,o-t+128),128,(d=p.configuration)==null?void 0:d.uart);await Y(p.connectPort),s.loading=!1};return(e,n)=>{const t=N,a=T,l=q,i=O,m=A,_=z,d=K;return h(),b("div",Z,[f(t,{items:[e.$t("menu.list"),e.$t("menu.image")]},null,8,["items"]),f(d,{gutter:20,align:"stretch"},{default:g(()=>[f(_,{span:24},{default:g(()=>[f(m,{loading:s.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:g(()=>[f(i,{class:"general-card",title:e.$t("menu.image")+e.$t("global.onStart")},{default:g(()=>[tt,x("div",null,[x("table",et,[(h(!0),b($,null,k(s.matrix,(o,r)=>(h(),b("tr",null,[(h(!0),b($,null,k(o,(u,c)=>(h(),b("td",{onMousedown:C=>{s.mousedown=!0,S(c,r)},onMouseup:n[0]||(n[0]=C=>{s.mousedown=!1}),onMouseover:C=>S(c,r),style:H("background-color: "+u+"; height: 5px; width: 3.5px;")},null,44,ot))),256))]))),256))])]),nt,f(l,null,{default:g(()=>[f(a,{onClick:R},{default:g(()=>[y(v(e.$t("tool.selectImage")),1)]),_:1}),f(a,{disabled:s.matrix.length<64,onClick:D},{default:g(()=>[y(v(e.$t("image.negative")),1)]),_:1},8,["disabled"]),f(a,{disabled:s.matrix.length<64,onClick:B},{default:g(()=>[y(v(e.$t("cps.save")),1)]),_:1},8,["disabled"]),f(a,{type:"primary",disabled:s.matrix.length<64,onClick:L},{default:g(()=>[y(v(e.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=F(it,[["__scopeId","data-v-ffb80c1d"]]);export{pt as default};
|
BIN
assets/index.7288e304.js.gz
Normal file
BIN
assets/index.7288e304.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{_}from"./index.6225dd09.js";/* empty css */import{d as F,r as f,o as h,bF as g,a$ as m,D as y,bn as i,bo as c,G as o,aM as s,aI as a,aN as d,aH as v,be as A,bf as b,C as D}from"./arco.f43727df.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const l=u=>(A("data-v-9a7d1078"),u=u(),b(),u),S={class:"container"},C={style:{"background-color":"#fff",padding:"10%"}},B=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=async()=>{await fetch("https://k5.vicicode.com/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",C,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),B,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:v(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-9a7d1078"]]);export{U as default};
|
import{_}from"./index.25cd9d44.js";/* empty css */import{d as F,r as f,o as h,bF as g,a$ as m,D as y,bn as i,bo as c,G as o,aM as s,aI as a,aN as d,aH as v,be as A,bf as b,C as D}from"./arco.446db797.js";import"./chart.27192e44.js";import"./vue.848e4abf.js";const l=u=>(A("data-v-9a7d1078"),u=u(),b(),u),S={class:"container"},C={style:{"background-color":"#fff",padding:"10%"}},B=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=async()=>{await fetch("https://k5.vicicode.com/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",C,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),B,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:v(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-9a7d1078"]]);export{U as default};
|
BIN
assets/index.799a0468.js.gz
Normal file
BIN
assets/index.799a0468.js.gz
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{u as D,b as R,c as d,L as N,f as I}from"./index.18a0f852.js";import{f as A,o as z,bs as F,c as S,i as M,g as $,d as X,aI as E,h as G}from"./arco.f43727df.js";import{N as _,z as K,O as U,P as V,A as W,G as J,B as Z}from"./index.6225dd09.js";/**
|
import{u as D,b as R,c as d,d as N}from"./useConfig.7e9a03f4.js";import{f as A,o as I,bs as z,c as S,i as F,g as M,d as $,aI as E,h as X}from"./arco.446db797.js";import{L as G}from"./index.80de110f.js";import{N as _,z as K,O as U,P as V,A as W,G as J,B as Z}from"./index.25cd9d44.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
@ -14,7 +14,7 @@ import{u as D,b as R,c as d,L as N,f as I}from"./index.18a0f852.js";import{f as
|
|||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/var T=200,te="rgba(0, 0, 0, 0)",ne="rgba(0, 0, 0, 0.35)",ae=function(e,n){var a;if(n)return n;if(e!=null&&(a=e.dataset)!==null&&a!==void 0&&a.ripple){var o=e.dataset.ripple;return o}var l=getComputedStyle(e).getPropertyValue("--ripple-color");return l||ne};function re(t,e){var n=A(null),a=D(),o=ee(),l=o.keepRipple,c=function(m){var i=t.value,h=ae(i,e==null?void 0:e.value);if(!(m.button!==0||!t||!l)&&!(i.classList.contains("".concat(a.value,"-is-active"))||i.classList.contains("".concat(a.value,"-is-disabled"))||i.classList.contains("".concat(a.value,"-is-checked"))||i.classList.contains("".concat(a.value,"-is-loading")))){var b=getComputedStyle(i),v=parseInt(b.borderWidth,10),y=v>0?v:0,f=i.offsetWidth,u=i.offsetHeight;n.value.parentNode===null&&(L(n.value,{position:"absolute",left:"".concat(0-y,"px"),top:"".concat(0-y,"px"),width:"".concat(f,"px"),height:"".concat(u,"px"),borderRadius:b.borderRadius,pointerEvents:"none",overflow:"hidden"}),i.appendChild(n.value));var s=document.createElement("div");L(s,{marginTop:"0",marginLeft:"0",right:"".concat(f,"px"),width:"".concat(f+20,"px"),height:"100%",transition:"transform ".concat(T,"ms cubic-bezier(.38, 0, .24, 1), background ").concat(T*2,"ms linear"),transform:"skewX(-8deg)",pointerEvents:"none",position:"absolute",zIndex:0,backgroundColor:h,opacity:"0.9"});for(var k=new WeakMap,C=i.children.length,g=0;g<C;++g){var p=i.children[g];p.style.zIndex===""&&p!==n.value&&(p.style.zIndex="1",k.set(p,!0))}var x=i.style.position?i.style.position:getComputedStyle(i).position;(x===""||x==="static")&&(i.style.position="relative"),n.value.insertBefore(s,n.value.firstChild),setTimeout(function(){s.style.transform="translateX(".concat(f,"px)")},0);var w=function B(){s.style.backgroundColor=te,t.value&&(t.value.removeEventListener("pointerup",B,!1),t.value.removeEventListener("pointerleave",B,!1),setTimeout(function(){s.remove(),n.value.children.length===0&&n.value.remove()},T*2+100))};t.value.addEventListener("pointerup",w,!1),t.value.addEventListener("pointerleave",w,!1)}};z(function(){var r=t==null?void 0:t.value;!r||(n.value=document.createElement("div"),r.addEventListener("pointerdown",c,!1))}),F(function(){var r;t==null||(r=t.value)===null||r===void 0||r.removeEventListener("pointerdown",c,!1)})}/**
|
*/var T=200,te="rgba(0, 0, 0, 0)",ne="rgba(0, 0, 0, 0.35)",ae=function(e,n){var a;if(n)return n;if(e!=null&&(a=e.dataset)!==null&&a!==void 0&&a.ripple){var o=e.dataset.ripple;return o}var l=getComputedStyle(e).getPropertyValue("--ripple-color");return l||ne};function re(t,e){var n=A(null),a=D(),o=ee(),l=o.keepRipple,c=function(g){var i=t.value,h=ae(i,e==null?void 0:e.value);if(!(g.button!==0||!t||!l)&&!(i.classList.contains("".concat(a.value,"-is-active"))||i.classList.contains("".concat(a.value,"-is-disabled"))||i.classList.contains("".concat(a.value,"-is-checked"))||i.classList.contains("".concat(a.value,"-is-loading")))){var b=getComputedStyle(i),v=parseInt(b.borderWidth,10),y=v>0?v:0,f=i.offsetWidth,u=i.offsetHeight;n.value.parentNode===null&&(L(n.value,{position:"absolute",left:"".concat(0-y,"px"),top:"".concat(0-y,"px"),width:"".concat(f,"px"),height:"".concat(u,"px"),borderRadius:b.borderRadius,pointerEvents:"none",overflow:"hidden"}),i.appendChild(n.value));var s=document.createElement("div");L(s,{marginTop:"0",marginLeft:"0",right:"".concat(f,"px"),width:"".concat(f+20,"px"),height:"100%",transition:"transform ".concat(T,"ms cubic-bezier(.38, 0, .24, 1), background ").concat(T*2,"ms linear"),transform:"skewX(-8deg)",pointerEvents:"none",position:"absolute",zIndex:0,backgroundColor:h,opacity:"0.9"});for(var k=new WeakMap,C=i.children.length,m=0;m<C;++m){var p=i.children[m];p.style.zIndex===""&&p!==n.value&&(p.style.zIndex="1",k.set(p,!0))}var x=i.style.position?i.style.position:getComputedStyle(i).position;(x===""||x==="static")&&(i.style.position="relative"),n.value.insertBefore(s,n.value.firstChild),setTimeout(function(){s.style.transform="translateX(".concat(f,"px)")},0);var w=function B(){s.style.backgroundColor=te,t.value&&(t.value.removeEventListener("pointerup",B,!1),t.value.removeEventListener("pointerleave",B,!1),setTimeout(function(){s.remove(),n.value.children.length===0&&n.value.remove()},T*2+100))};t.value.addEventListener("pointerup",w,!1),t.value.addEventListener("pointerleave",w,!1)}};I(function(){var r=t==null?void 0:t.value;!r||(n.value=document.createElement("div"),r.addEventListener("pointerdown",c,!1))}),z(function(){var r;t==null||(r=t.value)===null||r===void 0||r.removeEventListener("pointerdown",c,!1)})}/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
@ -22,12 +22,12 @@ import{u as D,b as R,c as d,L as N,f as I}from"./index.18a0f852.js";import{f as
|
|||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/function se(t){var e=$(),n=S(function(){return e.props.disabled}),a=M("formDisabled",Object.create(null));return S(function(){var o;return O(t==null?void 0:t.beforeDisabled.value)?t.beforeDisabled.value:O(n.value)?n.value:O(t==null?void 0:t.afterDisabled.value)?t.afterDisabled.value:O((o=a.disabled)===null||o===void 0?void 0:o.value)?a.disabled.value:!1})}/**
|
*/function se(t){var e=M(),n=S(function(){return e.props.disabled}),a=F("formDisabled",Object.create(null));return S(function(){var o;return O(t==null?void 0:t.beforeDisabled.value)?t.beforeDisabled.value:O(n.value)?n.value:O(t==null?void 0:t.afterDisabled.value)?t.afterDisabled.value:O((o=a.disabled)===null||o===void 0?void 0:o.value)?a.disabled.value:!1})}/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?P(Object(n),!0).forEach(function(a){d(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var ce=X({name:"TButton",props:q,setup:function(e,n){var a=n.attrs,o=n.slots,l=W(),c=J(),r=D("button"),m=R(),i=m.STATUS,h=m.SIZE,b=A();re(b);var v=se(),y=S(function(){var u=e.theme,s=e.variant;return u||(s==="base"?"primary":"default")}),f=S(function(){return["".concat(r.value),"".concat(r.value,"--variant-").concat(e.variant),"".concat(r.value,"--theme-").concat(y.value),d(d(d(d(d(d({},h.value[e.size],e.size!=="medium"),i.value.disabled,v.value),i.value.loading,e.loading),"".concat(r.value,"--shape-").concat(e.shape),e.shape!=="rectangle"),"".concat(r.value,"--ghost"),e.ghost),h.value.block,e.block)]});return function(){var u=c("default","content"),s=e.loading?E(N,{inheritColor:!0},null):l("icon"),k=s&&!u,C=e.suffix||o.suffix?E("span",{className:"".concat(r.value,"__suffix")},[l("suffix")]):null;u=u?E("span",{class:"".concat(r.value,"__text")},[u]):"",s&&(u=[s,u]),C&&(u=[u].concat(C));var g=function(){return!e.tag&&e.href?"a":e.tag||"button"},p={class:[].concat(I(f.value),[d({},"".concat(r.value,"--icon-only"),k)]),type:e.type,disabled:v.value||e.loading,href:e.href,tabindex:v.value?void 0:"0"};return G(g(),j(j(j({ref:b},a),p),{},{onClick:e.onClick}),[u])}}});/**
|
*/function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?P(Object(n),!0).forEach(function(a){d(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var ce=$({name:"TButton",props:q,setup:function(e,n){var a=n.attrs,o=n.slots,l=W(),c=J(),r=D("button"),g=R(),i=g.STATUS,h=g.SIZE,b=A();re(b);var v=se(),y=S(function(){var u=e.theme,s=e.variant;return u||(s==="base"?"primary":"default")}),f=S(function(){return["".concat(r.value),"".concat(r.value,"--variant-").concat(e.variant),"".concat(r.value,"--theme-").concat(y.value),d(d(d(d(d(d({},h.value[e.size],e.size!=="medium"),i.value.disabled,v.value),i.value.loading,e.loading),"".concat(r.value,"--shape-").concat(e.shape),e.shape!=="rectangle"),"".concat(r.value,"--ghost"),e.ghost),h.value.block,e.block)]});return function(){var u=c("default","content"),s=e.loading?E(G,{inheritColor:!0},null):l("icon"),k=s&&!u,C=e.suffix||o.suffix?E("span",{className:"".concat(r.value,"__suffix")},[l("suffix")]):null;u=u?E("span",{class:"".concat(r.value,"__text")},[u]):"",s&&(u=[s,u]),C&&(u=[u].concat(C));var m=function(){return!e.tag&&e.href?"a":e.tag||"button"},p={class:[].concat(N(f.value),[d({},"".concat(r.value,"--icon-only"),k)]),type:e.type,disabled:v.value||e.loading,href:e.href,tabindex:v.value?void 0:"0"};return X(m(),j(j(j({ref:b},a),p),{},{onClick:e.onClick}),[u])}}});/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/var pe=Z(ce);export{pe as B,re as a,O as i,se as u};
|
*/var be=Z(ce);export{be as B,re as a,O as i,se as u};
|
BIN
assets/index.79f252de.js.gz
Normal file
BIN
assets/index.79f252de.js.gz
Normal file
Binary file not shown.
69
assets/index.80de110f.js
Normal file
69
assets/index.80de110f.js
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
import{a1 as $e,a2 as en,Q as nn,P as an,a3 as Ae,a4 as rn,a5 as tn,J as N,a6 as sn,a7 as ln,a8 as on,a9 as un,aa as Se,w as Pe,V as cn,E as fn,ab as dn,ac as Ee,M as F,K as Te,ad as se,ae as vn,af as gn,y as Le,ag as hn,ah as xe,ai as mn,aj as pn,B as yn}from"./index.25cd9d44.js";import{e as _n,c as M,u as p,b as Cn,_ as wn}from"./useConfig.7e9a03f4.js";import{d as k,o as ee,g as bn,n as On,aI as h,c as m,f as z,w as Ie,t as $n,bB as q,bD as ie,r as An,h as Sn,b4 as Pn}from"./arco.446db797.js";/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var En="__lodash_hash_undefined__";function Tn(e){return this.__data__.set(e,En),this}var Ln=Tn;function xn(e){return this.__data__.has(e)}var In=xn,Dn=$e,Mn=Ln,Fn=In;function H(e){var n=-1,a=e==null?0:e.length;for(this.__data__=new Dn;++n<a;)this.add(e[n])}H.prototype.add=H.prototype.push=Mn;H.prototype.has=Fn;var Rn=H;function Nn(e,n){return e.has(n)}var qn=Nn;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Bn(e){var n=-1,a=Array(e.size);return e.forEach(function(r){a[++n]=r}),a}var Kn=Bn;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Gn(e,n){for(var a=-1,r=e==null?0:e.length;++a<r;)if(n(e[a],a,e))return!0;return!1}var zn=Gn,Hn=Rn,Un=zn,Wn=qn,Zn=1,Xn=2;function Yn(e,n,a,r,t,s){var i=a&Zn,l=e.length,o=n.length;if(l!=o&&!(i&&o>l))return!1;var u=s.get(e),c=s.get(n);if(u&&c)return u==n&&c==e;var f=-1,d=!0,y=a&Xn?new Hn:void 0;for(s.set(e,n),s.set(n,e);++f<l;){var v=e[f],g=n[f];if(r)var C=i?r(g,v,f,n,e,s):r(v,g,f,e,n,s);if(C!==void 0){if(C)continue;d=!1;break}if(y){if(!Un(n,function(w,b){if(!Wn(y,b)&&(v===w||t(v,w,a,r,s)))return y.push(b)})){d=!1;break}}else if(!(v===g||t(v,g,a,r,s))){d=!1;break}}return s.delete(e),s.delete(n),d}var De=Yn;function Jn(e){var n=-1,a=Array(e.size);return e.forEach(function(r,t){a[++n]=[t,r]}),a}var Qn=Jn,le=nn,oe=sn,jn=ln,Vn=De,kn=Qn,ea=Kn,na=1,aa=2,ra="[object Boolean]",ta="[object Date]",sa="[object Error]",ia="[object Map]",la="[object Number]",oa="[object RegExp]",ua="[object Set]",ca="[object String]",fa="[object Symbol]",da="[object ArrayBuffer]",va="[object DataView]",ue=le?le.prototype:void 0,Z=ue?ue.valueOf:void 0;function ga(e,n,a,r,t,s,i){switch(a){case va:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case da:return!(e.byteLength!=n.byteLength||!s(new oe(e),new oe(n)));case ra:case ta:case la:return jn(+e,+n);case sa:return e.name==n.name&&e.message==n.message;case oa:case ca:return e==n+"";case ia:var l=kn;case ua:var o=r&na;if(l||(l=ea),e.size!=n.size&&!o)return!1;var u=i.get(e);if(u)return u==n;r|=aa,i.set(e,n);var c=Vn(l(e),l(n),r,t,s,i);return i.delete(e),c;case fa:if(Z)return Z.call(e)==Z.call(n)}return!1}var ha=ga,ce=on,ma=1,pa=Object.prototype,ya=pa.hasOwnProperty;function _a(e,n,a,r,t,s){var i=a&ma,l=ce(e),o=l.length,u=ce(n),c=u.length;if(o!=c&&!i)return!1;for(var f=o;f--;){var d=l[f];if(!(i?d in n:ya.call(n,d)))return!1}var y=s.get(e),v=s.get(n);if(y&&v)return y==n&&v==e;var g=!0;s.set(e,n),s.set(n,e);for(var C=i;++f<o;){d=l[f];var w=e[d],b=n[d];if(r)var $=i?r(b,w,d,n,e,s):r(w,b,d,e,n,s);if(!($===void 0?w===b||t(w,b,a,r,s):$)){g=!1;break}C||(C=d=="constructor")}if(g&&!C){var P=e.constructor,A=n.constructor;P!=A&&"constructor"in e&&"constructor"in n&&!(typeof P=="function"&&P instanceof P&&typeof A=="function"&&A instanceof A)&&(g=!1)}return s.delete(e),s.delete(n),g}var Ca=_a,X=Ae,wa=De,ba=ha,Oa=Ca,fe=rn,de=N,ve=en.exports,$a=tn,Aa=1,ge="[object Arguments]",he="[object Array]",B="[object Object]",Sa=Object.prototype,me=Sa.hasOwnProperty;function Pa(e,n,a,r,t,s){var i=de(e),l=de(n),o=i?he:fe(e),u=l?he:fe(n);o=o==ge?B:o,u=u==ge?B:u;var c=o==B,f=u==B,d=o==u;if(d&&ve(e)){if(!ve(n))return!1;i=!0,c=!1}if(d&&!c)return s||(s=new X),i||$a(e)?wa(e,n,a,r,t,s):ba(e,n,o,a,r,t,s);if(!(a&Aa)){var y=c&&me.call(e,"__wrapped__"),v=f&&me.call(n,"__wrapped__");if(y||v){var g=y?e.value():e,C=v?n.value():n;return s||(s=new X),t(g,C,a,r,s)}}return d?(s||(s=new X),Oa(e,n,a,r,t,s)):!1}var Ea=Pa,Ta=Ea,pe=an;function Me(e,n,a,r,t){return e===n?!0:e==null||n==null||!pe(e)&&!pe(n)?e!==e&&n!==n:Ta(e,n,a,r,Me,t)}var ne=Me,La=ne;function xa(e,n){return La(e,n)}var Ia=xa;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Da=N,Ma=Se,Fa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ra=/^\w*$/;function Na(e,n){if(Da(e))return!1;var a=Pe(e);return a=="number"||a=="symbol"||a=="boolean"||e==null||Ma(e)?!0:Ra.test(e)||!Fa.test(e)||n!=null&&e in Object(n)}var ae=Na,Fe=$e,qa="Expected a function";function re(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(qa);var a=function r(){var t=arguments,s=n?n.apply(this,t):t[0],i=r.cache;if(i.has(s))return i.get(s);var l=e.apply(this,t);return r.cache=i.set(s,l)||i,l};return a.cache=new(re.Cache||Fe),a}re.Cache=Fe;var Ba=re,Ka=Ba,Ga=500;function za(e){var n=Ka(e,function(r){return a.size===Ga&&a.clear(),r}),a=n.cache;return n}var Ha=za,Ua=Ha,Wa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Za=/\\(\\)?/g,Xa=Ua(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Wa,function(a,r,t,s){n.push(t?s.replace(Za,"$1"):r||a)}),n}),Ya=Xa,Ja=N,Qa=ae,ja=Ya,Va=un;function ka(e,n){return Ja(e)?e:Qa(e,n)?[e]:ja(Va(e))}var Re=ka,er=Se,nr=1/0;function ar(e){if(typeof e=="string"||er(e))return e;var n=e+"";return n=="0"&&1/e==-nr?"-0":n}var U=ar,rr=Re,tr=U;function sr(e,n){n=rr(n,e);for(var a=0,r=n.length;e!=null&&a<r;)e=e[tr(n[a++])];return a&&a==r?e:void 0}var Ne=sr;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var ir=Ne;function lr(e,n,a){var r=e==null?void 0:ir(e,n);return r===void 0?a:r}var or=lr;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function ur(e,n){return e!=null&&n in Object(e)}var cr=ur,fr=Re,dr=cn,vr=N,gr=fn,hr=dn,mr=U;function pr(e,n,a){n=fr(n,e);for(var r=-1,t=n.length,s=!1;++r<t;){var i=mr(n[r]);if(!(s=e!=null&&a(e,i)))break;e=e[i]}return s||++r!=t?s:(t=e==null?0:e.length,!!t&&hr(t)&&gr(i,t)&&(vr(e)||dr(e)))}var yr=pr,_r=cr,Cr=yr;function wr(e,n){return e!=null&&Cr(e,n,_r)}var br=wr;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function Or(e){return function(n){return n==null?void 0:n[e]}}var $r=Or;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function ye(e,n){var a=Object.keys(n);a.forEach(function(r){e.style[r]=n[r]})}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function _e(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function K(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?_e(Object(a),!0).forEach(function(r){M(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):_e(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function Ar(e){var n,a,r,t={};if(!(!e||typeof window>"u")){var s=(n=window)===null||n===void 0||(a=n.getComputedStyle)===null||a===void 0?void 0:a.call(n,e),i=s.color,l=s.fontSize,o=(r=window)===null||r===void 0||(r=r.navigator)===null||r===void 0?void 0:r.userAgent,u=/Safari/.test(o)&&!/Chrome/.test(o),c=/(?=.*iPhone)[?=.*MicroMessenger]/.test(o)&&!/Chrome/.test(o);if((u||c)&&(t={transformOrigin:"0px 0px",transform:"scale(".concat(parseInt(l,10)/12,")")}),i&&_n()>11){var f=i.match(/[\d.]+/g),d=f?"rgba(".concat(f[0],", ").concat(f[1],", ").concat(f[2],", 0)"):"";ye(e,K(K({},t),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(d," 0deg, ").concat(i," 360deg)")}))}else ye(e,K(K({},t),{},{background:""}))}}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Sr=k({name:"TLoadingGradient",setup:function(){var n=p();return ee(function(){var a=bn().refs.circle;On(function(){Ar(a)})}),{classPrefix:n}},render:function(){var n=this.classPrefix,a="".concat(n,"-loading__gradient"),r=[a,"".concat(n,"-icon-loading")];return h("svg",{class:r,viewBox:"0 0 12 12",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[h("foreignObject",{x:"0",y:"0",width:"12",height:"12"},[h("div",{class:"".concat(a,"-conic"),ref:"circle"},null)])])}});/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var te={exports:{}},D={exports:{}};(function(){var e,n,a,r,t,s;typeof performance<"u"&&performance!==null&&performance.now?D.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(D.exports=function(){return(e()-t)/1e6},n=process.hrtime,e=function(){var l;return l=n(),l[0]*1e9+l[1]},r=e(),s=process.uptime()*1e9,t=r-s):Date.now?(D.exports=function(){return Date.now()-a},a=Date.now()):(D.exports=function(){return new Date().getTime()-a},a=new Date().getTime())}).call(Ee);var Pr=D.exports,O=typeof window>"u"?Ee:window,G=["moz","webkit"],T="AnimationFrame",L=O["request"+T],R=O["cancel"+T]||O["cancelRequest"+T];for(var I=0;!L&&I<G.length;I++)L=O[G[I]+"Request"+T],R=O[G[I]+"Cancel"+T]||O[G[I]+"CancelRequest"+T];if(!L||!R){var Y=0,Ce=0,S=[],Er=1e3/60;L=function(n){if(S.length===0){var a=Pr(),r=Math.max(0,Er-(a-Y));Y=r+a,setTimeout(function(){var t=S.slice(0);S.length=0;for(var s=function(){if(!t[i].cancelled)try{t[i].callback(Y)}catch(o){setTimeout(function(){throw o},0)}},i=0;i<t.length;i++)s()},Math.round(r))}return S.push({handle:++Ce,callback:n,cancelled:!1}),Ce},R=function(n){for(var a=0;a<S.length;a++)S[a].handle===n&&(S[a].cancelled=!0)}}te.exports=function(e){return L.call(O,e)};te.exports.cancel=function(){R.apply(O,arguments)};te.exports.polyfill=function(e){e||(e=O),e.requestAnimationFrame=L,e.cancelAnimationFrame=R};var qe=typeof window>"u",Tr=function(n){return(n||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},Lr=function(){return!qe&&document.addEventListener?function(e,n,a,r){e&&n&&a&&e.addEventListener(n,a,r)}:function(e,n,a){e&&n&&a&&e.attachEvent("on".concat(n),a)}}(),xr=function(){return!qe&&document.removeEventListener?function(e,n,a,r){e&&n&&e.removeEventListener(n,a,r)}:function(e,n,a){e&&n&&e.detachEvent("on".concat(n),a)}}();function zt(e,n,a,r){var t=F(a)?a:a.handleEvent,s=function i(l){t(l),xr(e,n,i,r)};Lr(e,n,s,r)}function Be(e,n){if(!e||!n)return!1;if(n.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(n):" ".concat(e.className," ").indexOf(" ".concat(n," "))>-1}function J(e,n){if(!!e){for(var a=e.className,r=(n||"").split(" "),t=0,s=r.length;t<s;t++){var i=r[t];!i||(e.classList?e.classList.add(i):Be(e,i)||(a+=" ".concat(i)))}e.classList||(e.className=a)}}function Q(e,n){if(!(!e||!n)){for(var a=n.split(" "),r=" ".concat(e.className," "),t=0,s=a.length;t<s;t++){var i=a[t];!i||(e.classList?e.classList.remove(i):Be(e,i)&&(r=r.replace(" ".concat(i," ")," ")))}e.classList||(e.className=Tr(r))}}var Ke=function(n,a){var r=F(n)?n(a):n;return r?Te(r)?document.querySelector(r):r instanceof HTMLElement?r:document.body:document.body},Ir=function(){},Ht=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return Te(n)?document.querySelector(n):F(n)?n():n},Ut=function(n){var a=n.clientWidth,r=a===void 0?0:a,t=n.scrollWidth,s=t===void 0?0:t;return s>r},Wt=function(n){if(!(n instanceof HTMLFormElement))throw new Error("target must be HTMLFormElement");var a=document.createElement("input");a.type="submit",a.hidden=!0,n.appendChild(a),a.click(),n.removeChild(a)};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Dr={attach:{type:[String,Function],default:""},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:Number,default:0},fullscreen:Boolean,indicator:{type:[Boolean,Function],default:!0},inheritColor:Boolean,loading:{type:Boolean,default:!0},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},size:{type:String,default:"medium"},text:{type:[String,Function]},zIndex:{type:Number}};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Mr=function(n,a){var r=F(n)?m(n):z(n),t=F(a)?m(a):z(a),s=z(),i=function(){s.value=Ir()||Ke(r.value,t.value)};return ee(function(){return i()}),Ie([r,t],function(){return i()}),s};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Fr=function(){return{name:p("loading"),centerClass:p("loading--center"),fullscreenClass:p("loading__fullscreen"),lockClass:p("loading--lock"),overlayClass:p("loading__overlay"),relativeClass:p("loading__parent"),fullClass:p("loading--full"),inheritColorClass:p("loading--inherit-color")}},j=k({name:"TLoading",inheritAttrs:!1,props:Dr,setup:function(n,a){var r=a.slots,t=z(!1),s=Fr(),i=s.name,l=s.centerClass,o=s.fullscreenClass,u=s.lockClass,c=s.overlayClass,f=s.relativeClass,d=s.fullClass,y=s.inheritColorClass,v=p(),g=Cn(),C=g.SIZE,w=function(){t.value=!1;var x=setTimeout(function(){t.value=!0,clearTimeout(x)},n.delay)},b=Mr(function(){return n.attach}),$=m(function(){return Boolean(!n.delay||n.delay&&t.value)}),P=m(function(){var _={};return n.zIndex!==void 0&&(_.zIndex=n.zIndex),["small","medium","large"].includes(n.size)||(_["font-size"]=n.size),_}),A=m(function(){return Boolean(n.default||r.default||n.content||r.content)}),W=m(function(){return n.preventScrollThrough&&n.fullscreen}),We=m(function(){return Boolean(n.text||r.text)}),Ze=m(function(){return A.value&&n.loading&&$.value}),Xe=m(function(){return n.fullscreen&&n.loading&&$.value}),Ye=m(function(){return n.attach&&n.loading&&$.value}),Je=m(function(){return n.attach&&n.loading&&$.value}),Qe=m(function(){var _=[l.value,C.value[n.size],M({},y.value,n.inheritColor)],x=[i.value,o.value,l.value,c.value];return{baseClasses:_,attachClasses:_.concat([i.value,d.value,M({},c.value,n.showOverlay)]),withContentClasses:_.concat([i.value,d.value,M({},c.value,n.showOverlay)]),fullScreenClasses:x,normalClasses:_.concat([i.value])}}),je=$n(n),Ve=je.loading;return Ie([Ve],function(_){var x=wn(_,1),ke=x[0];ke?(w(),W.value&&J(document.body,u.value)):W.value&&Q(document.body,u.value)}),ee(function(){n.delay&&w()}),{classPrefix:v,relativeClass:f,delayShowLoading:t,styles:P,showText:We,hasContent:A,classes:Qe,lockFullscreen:W,showWrapLoading:Ze,showNormalLoading:Ye,showFullScreenLoading:Xe,showAttachedLoading:Je,teleportElement:b}},render:function(){var n=this,a=this.classes,r=a.fullScreenClasses,t=a.baseClasses,s=a.withContentClasses,i=a.attachClasses,l=a.normalClasses,o=h(Sr,{size:this.size},null),u=this.loading&&se(this,"indicator",o),c=this.showText&&h("div",{class:"".concat(this.classPrefix,"-loading__text")},[se(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:h(ie,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[h("div",q({class:r,style:n.styles},n.$attrs),[h("div",{class:t},[u,c])])]}}):this.hasContent?h("div",q({class:this.relativeClass},this.$attrs),[vn(this,"default","content"),this.showWrapLoading&&h("div",{class:s,style:this.styles},[u,c])]):this.attach?!this.showAttachedLoading||!this.loading?null:h(ie,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[h("div",q({class:i,style:n.styles},n.$attrs),[u,c])]}}):this.loading?h("div",q({class:l,style:this.styles},this.$attrs),[u,c]):null}});/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function we(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function Rr(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?we(Object(a),!0).forEach(function(r){M(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):we(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}var E=null;function Nr(e){var n=gn({fullscreen:!1,attach:"body",loading:!0,preventScrollThrough:!0},e);return n}function be(e){var n=Nr(e);if(n.fullscreen&&E)return E;var a=k({setup:function(){var f=An(n);return{loadingOptions:f}},render:function(){return Sn(j,Rr({},this.loadingOptions))}}),r=Ke(n.fullscreen?"body":n.attach),t=Pn(a),s=t.mount(document.createElement("div")),i=p("loading__parent--relative").value,l=p("loading--lock"),o=n.preventScrollThrough&&n.fullscreen;o&&J(document.body,l.value),r?J(r,i):console.error("attach is not exist");var u={hide:function(){s.loading=!1,Q(r,i),Q(document.body,l.value),t.unmount()}};return u}function Ge(e){if(e===!0)return E=be({fullscreen:!0,loading:!0,attach:"body",preventScrollThrough:!0}),E;if(e===!1){var n;(n=E)===null||n===void 0||n.hide(),E=null;return}return be(e)}var ze=Ge;ze.install=function(e){e.config.globalProperties.$loading=Ge};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var qr=hn,Br=xe;function Kr(e,n){return e&&qr(e,n,Br)}var Gr=Kr,zr=Ae,Hr=ne,Ur=1,Wr=2;function Zr(e,n,a,r){var t=a.length,s=t,i=!r;if(e==null)return!s;for(e=Object(e);t--;){var l=a[t];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++t<s;){l=a[t];var o=l[0],u=e[o],c=l[1];if(i&&l[2]){if(u===void 0&&!(o in e))return!1}else{var f=new zr;if(r)var d=r(u,c,o,e,n,f);if(!(d===void 0?Hr(c,u,Ur|Wr,r,f):d))return!1}}return!0}var Xr=Zr,Yr=Le;function Jr(e){return e===e&&!Yr(e)}var He=Jr,Qr=He,jr=xe;function Vr(e){for(var n=jr(e),a=n.length;a--;){var r=n[a],t=e[r];n[a]=[r,t,Qr(t)]}return n}var kr=Vr;function et(e,n){return function(a){return a==null?!1:a[e]===n&&(n!==void 0||e in Object(a))}}var Ue=et,nt=Xr,at=kr,rt=Ue;function tt(e){var n=at(e);return n.length==1&&n[0][2]?rt(n[0][0],n[0][1]):function(a){return a===e||nt(a,e,n)}}var st=tt,it=ne,lt=or,ot=br,ut=ae,ct=He,ft=Ue,dt=U,vt=1,gt=2;function ht(e,n){return ut(e)&&ct(n)?ft(dt(e),n):function(a){var r=lt(a,e);return r===void 0&&r===n?ot(a,e):it(n,r,vt|gt)}}var mt=ht,pt=Ne;function yt(e){return function(n){return pt(n,e)}}var _t=yt,Ct=$r,wt=_t,bt=ae,Ot=U;function $t(e){return bt(e)?Ct(Ot(e)):wt(e)}var At=$t,St=st,Pt=mt,Et=mn,Tt=N,Lt=At;function xt(e){return typeof e=="function"?e:e==null?Et:Pe(e)=="object"?Tt(e)?Pt(e[0],e[1]):St(e):Lt(e)}var It=xt,Dt=pn,Mt=Gr,Ft=It;function Rt(e,n){var a={};return n=Ft(n),Mt(e,function(r,t,s){Dt(a,n(r,t,s),r)}),a}var Nt=Rt,V=Symbol("TdLoading"),Oe=function(n,a){var r=a.modifiers,t=r.fullscreen,s=r.inheritColor,i={attach:function(){return n},fullscreen:t!=null?t:!1,inheritColor:s!=null?s:!1,loading:a.value};Le(a.value)&&Nt(a.value,function(l,o){i[o]=l}),n[V]={options:i,instance:ze(i)}},qt={mounted:function(n,a){a.value&&Oe(n,a)},updated:function(n,a){var r=n[V],t=a.value,s=a.oldValue;if(!Ia(t,s)){var i,l=(i=t==null?void 0:t.loading)!==null&&i!==void 0?i:t;l?Oe(n,a):r==null||r.instance.hide()}},unmounted:function(n){var a;(a=n[V])===null||a===void 0||a.instance.hide()}};/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var Zt=yn(j,j.name,{name:"loading",comp:qt});export{Zt as L,Re as _,U as a,Ne as b,Ht as c,Lr as d,Rn as e,qn as f,or as g,Ke as h,Ut as i,Kn as j,qe as k,Be as l,Ir as m,zt as n,xr as o,br as p,Wt as r,ye as s,Mr as u};
|
BIN
assets/index.80de110f.js.gz
Normal file
BIN
assets/index.80de110f.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{d as R,c as t,aI as a,aU as V}from"./arco.f43727df.js";import{u,b as W,L as X}from"./index.18a0f852.js";import{A as Z,K,B as U}from"./index.6225dd09.js";/**
|
import{d as R,c as t,aI as a,aU as V}from"./arco.446db797.js";import{u,b as W}from"./useConfig.7e9a03f4.js";import{A as X,K as Z,B as K}from"./index.25cd9d44.js";import{L as U}from"./index.80de110f.js";/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
@ -6,8 +6,8 @@ import{d as R,c as t,aI as a,aU as V}from"./arco.f43727df.js";import{u,b as W,L
|
|||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/function q(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!V(i)}var G=R({name:"TCard",props:k,setup:function(e,w){var o=w.slots,n=Z(),l=u("card"),y=W(),b=y.SIZE,p=t(function(){var r=[l.value];return e.size==="small"&&r.push("".concat(b.value[e.size])),e.bordered&&r.push("".concat(l.value,"--bordered")),e.shadow&&r.push("".concat(l.value,"--shadow")),e.hoverShadow&&r.push("".concat(l.value,"--shadow-hover")),r}),d=t(function(){var r=["".concat(l.value,"__header")];return e.headerBordered?r.concat("".concat(l.value,"__title--bordered")):["".concat(l.value,"__header")]}),F=u("card__header-wrapper"),N=u("card__avatar"),B=u("card__title"),T=u("card__subtitle"),A=u("card__description"),c=u("card__actions"),O=u("card__body"),P=u("card__cover"),j=u("card__footer"),x=u("card__footer-wrapper"),v=t(function(){return e.theme==="poster2"}),f=t(function(){return e.title||o.title}),h=t(function(){return e.header||o.header}),_=t(function(){return e.subtitle||o.subtitle}),C=t(function(){return e.avatar||o.avatar}),m=t(function(){return e.description||o.description}),S=t(function(){return e.status||o.status}),s=t(function(){return e.actions||o.actions}),E=t(function(){return e.footer||o.footer}),H=t(function(){return e.cover||o.cover}),I=t(function(){return e.loading||o.loading}),z=t(function(){return e.content||o.content||e.default||o.default}),L=t(function(){return h.value||f.value||_.value||m.value||C.value||S.value&&v.value||s.value&&!v.value}),D=t(function(){return E.value||s.value&&v.value}),J=function(){return h.value?a("div",{class:d.value},[n("header")]):a("div",{class:d.value},[a("div",{class:F.value},[C.value&&a("div",{class:N.value},[n("avatar")]),a("div",null,[f.value&&a("div",{class:B.value},[n("title")]),_.value&&a("div",{class:T.value},[n("subtitle")]),m.value&&a("p",{class:A.value},[n("description")])])]),s.value&&!v.value&&a("div",{class:c.value},[n("actions")]),S.value&&a("div",{class:c.value},[n("status")])])},M=function(){var g=K(e.cover);return a("div",{class:P.value},[g?a("img",{src:e.cover},null):n("cover")])};return function(){var r=a("div",{class:p.value},[L.value?J():null,H.value?M():null,z.value&&a("div",{class:O.value},[n("default")||n("content")]),D.value&&a("div",{class:j.value},[a("div",{class:x.value},[n("footer")]),s.value&&v.value&&a("div",{class:c.value},[n("actions")])])]);return I.value?n("loading")||a(X,e.loadingProps,q(r)?r:{default:function(){return[r]}}):r}}});/**
|
*/function q(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!V(i)}var G=R({name:"TCard",props:k,setup:function(e,w){var o=w.slots,n=X(),l=u("card"),y=W(),b=y.SIZE,p=t(function(){var r=[l.value];return e.size==="small"&&r.push("".concat(b.value[e.size])),e.bordered&&r.push("".concat(l.value,"--bordered")),e.shadow&&r.push("".concat(l.value,"--shadow")),e.hoverShadow&&r.push("".concat(l.value,"--shadow-hover")),r}),d=t(function(){var r=["".concat(l.value,"__header")];return e.headerBordered?r.concat("".concat(l.value,"__title--bordered")):["".concat(l.value,"__header")]}),F=u("card__header-wrapper"),N=u("card__avatar"),B=u("card__title"),T=u("card__subtitle"),A=u("card__description"),c=u("card__actions"),O=u("card__body"),P=u("card__cover"),j=u("card__footer"),x=u("card__footer-wrapper"),v=t(function(){return e.theme==="poster2"}),f=t(function(){return e.title||o.title}),h=t(function(){return e.header||o.header}),_=t(function(){return e.subtitle||o.subtitle}),C=t(function(){return e.avatar||o.avatar}),m=t(function(){return e.description||o.description}),S=t(function(){return e.status||o.status}),s=t(function(){return e.actions||o.actions}),E=t(function(){return e.footer||o.footer}),H=t(function(){return e.cover||o.cover}),I=t(function(){return e.loading||o.loading}),z=t(function(){return e.content||o.content||e.default||o.default}),L=t(function(){return h.value||f.value||_.value||m.value||C.value||S.value&&v.value||s.value&&!v.value}),D=t(function(){return E.value||s.value&&v.value}),J=function(){return h.value?a("div",{class:d.value},[n("header")]):a("div",{class:d.value},[a("div",{class:F.value},[C.value&&a("div",{class:N.value},[n("avatar")]),a("div",null,[f.value&&a("div",{class:B.value},[n("title")]),_.value&&a("div",{class:T.value},[n("subtitle")]),m.value&&a("p",{class:A.value},[n("description")])])]),s.value&&!v.value&&a("div",{class:c.value},[n("actions")]),S.value&&a("div",{class:c.value},[n("status")])])},M=function(){var g=Z(e.cover);return a("div",{class:P.value},[g?a("img",{src:e.cover},null):n("cover")])};return function(){var r=a("div",{class:p.value},[L.value?J():null,H.value?M():null,z.value&&a("div",{class:O.value},[n("default")||n("content")]),D.value&&a("div",{class:j.value},[a("div",{class:x.value},[n("footer")]),s.value&&v.value&&a("div",{class:c.value},[n("actions")])])]);return I.value?n("loading")||a(U,e.loadingProps,q(r)?r:{default:function(){return[r]}}):r}}});/**
|
||||||
* tdesign v1.9.4
|
* tdesign v1.9.4
|
||||||
* (c) 2024 tdesign
|
* (c) 2024 tdesign
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/var ee=U(G);export{ee as C};
|
*/var ae=K(G);export{ae as C};
|
BIN
assets/index.8817bce8.js.gz
Normal file
BIN
assets/index.8817bce8.js.gz
Normal file
Binary file not shown.
1
assets/index.8b868d99.js
Normal file
1
assets/index.8b868d99.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.8b868d99.js.gz
Normal file
BIN
assets/index.8b868d99.js.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
import{d as o,D as r,C as a}from"./arco.f43727df.js";import{f as s,h as n}from"./vue.cbdb927d.js";const i=o({__name:"index",setup(c){const e=s(),t=n().params.path;return e.replace({path:t}),(u,m)=>(a(),r("div"))}});export{i as default};
|
|
@ -1 +1 @@
|
|||||||
import{d as R,r as Q,bH as W,C as U,aE as X,aH as u,aI as s,aM as f,aN as c,u as i,bn as Y,bo as Z,bp as tt,bI as ot,bF as at,a$ as nt,ba as et,be as rt,bf as ct,G as _,D as it}from"./arco.f43727df.js";import{v as st,e as ut,_ as j}from"./index.6225dd09.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as _t,a as e,b as r}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const pt=""+new URL("../gy.png",import.meta.url).href,v=p=>(rt("data-v-7f92e336"),p=p(),ct(),p),lt=v(()=>_("br",null,null,-1)),dt=v(()=>_("br",null,null,-1)),mt=v(()=>_("div",null,[_("img",{style:{"margin-bottom":"10px"},width:"600px",src:pt})],-1)),ft=R({__name:"banner",setup(p){const{t:n}=st.exports.useI18n(),t=ut(),b=Q({eepromSize:n("workplace.clickCheck")}),F=async()=>{var l,g,w,h,k,d,m,M,$,I,x,C,z,B,D,E,N,T,V,A,H;let o=n("workplace.unk");const y=[Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256)];await _t(t.connectPort);const a=new Uint8Array(y);if(((l=t.configuration)==null?void 0:l.uart)=="official"){const S=await e(t.connectPort,0,8,(g=t.configuration)==null?void 0:g.uart);await r(t.connectPort,0,a,8,(w=t.configuration)==null?void 0:w.uart);const P=await e(t.connectPort,0,8,(h=t.configuration)==null?void 0:h.uart);a.toString()==P.toString()&&(o=n("global.8kb")),await r(t.connectPort,0,S,8,(k=t.configuration)==null?void 0:k.uart)}else{const S=await e(t.connectPort,0,8,(d=t.configuration)==null?void 0:d.uart);await r(t.connectPort,0,a,8,(m=t.configuration)==null?void 0:m.uart);const P=await e(t.connectPort,0,8,(M=t.configuration)==null?void 0:M.uart);a.toString()==P.toString()&&(o=n("global.8kb")),await r(t.connectPort,0,S,8,($=t.configuration)==null?void 0:$.uart);const G=await e(t.connectPort,131064,8,(I=t.configuration)==null?void 0:I.uart);await r(t.connectPort,131064,a,8,(x=t.configuration)==null?void 0:x.uart);const L=await e(t.connectPort,131064,8,(C=t.configuration)==null?void 0:C.uart);a.toString()==L.toString()&&(o=n("global.128kb")),await r(t.connectPort,131064,G,8,(z=t.configuration)==null?void 0:z.uart);const O=await e(t.connectPort,262136,8,(B=t.configuration)==null?void 0:B.uart);await r(t.connectPort,262136,a,8,(D=t.configuration)==null?void 0:D.uart);const q=await e(t.connectPort,262136,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==q.toString()&&(o=n("global.256kb")),await r(t.connectPort,262136,O,8,(N=t.configuration)==null?void 0:N.uart);const J=await e(t.connectPort,524280,8,(T=t.configuration)==null?void 0:T.uart);await r(t.connectPort,524280,a,8,(V=t.configuration)==null?void 0:V.uart);const K=await e(t.connectPort,524280,8,(A=t.configuration)==null?void 0:A.uart);a.toString()==K.toString()&&(o=n("global.512kb")),await r(t.connectPort,524280,J,8,(H=t.configuration)==null?void 0:H.uart)}b.eepromSize=o};return(o,y)=>{const a=tt,l=ot,g=at,w=nt,h=W,k=et;return U(),X(l,{class:"banner"},{default:u(()=>[s(l,null,{default:u(()=>[s(a,{heading:5,style:{"margin-top":"0"}},{default:u(()=>[f(c(i(t).connectState?o.$t("workplace.welcomeSuc"):o.$t("workplace.welcome")),1)]),_:1})]),_:1}),s(g,{class:"panel-border"}),s(k,null,{default:u(()=>[Y(s(h,{style:{marginTop:"2em",marginBottom:"2em"},title:o.$t("workplace.info")},{default:u(()=>{var d,m;return[f(c(o.$t("workplace.current"))+c(i(t).firmwareVersion)+" ",1),lt,f(" "+c(o.$t("workplace.writeconfig"))+c((d=i(t).configuration)==null?void 0:d.name)+" ",1),dt,f(" "+c(o.$t("workplace.eepromSize"))+c(b.eepromSize)+" "+c(b.eepromSize!=i(n)("workplace.clickCheck")&&((m=i(t).configuration)==null?void 0:m.uart)=="official"?i(n)("workplace.clickNotice"):"")+" ",1),s(w,{size:"mini",type:"primary",onClick:F},{default:u(()=>[f(c(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,i(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=j(ft,[["__scopeId","data-v-7f92e336"]]),wt={class:"container"},ht={class:"left-side"},kt={class:"panel"},bt={name:"Dashboard"},St=R({...bt,setup(p){return(n,t)=>(U(),it("div",wt,[_("div",ht,[_("div",kt,[s(gt)])])]))}});const Et=j(St,[["__scopeId","data-v-8f743d99"]]);export{Et as default};
|
import{d as R,r as Q,bH as W,C as U,aE as X,aH as u,aI as s,aM as f,aN as c,u as i,bn as Y,bo as Z,bp as tt,bI as ot,bF as at,a$ as nt,ba as et,be as rt,bf as ct,G as _,D as it}from"./arco.446db797.js";import{v as st,e as ut,_ as j}from"./index.25cd9d44.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as _t,a as e,b as r}from"./serial.c741fbda.js";import"./chart.27192e44.js";import"./vue.848e4abf.js";const pt=""+new URL("../gy.png",import.meta.url).href,v=p=>(rt("data-v-7f92e336"),p=p(),ct(),p),lt=v(()=>_("br",null,null,-1)),dt=v(()=>_("br",null,null,-1)),mt=v(()=>_("div",null,[_("img",{style:{"margin-bottom":"10px"},width:"600px",src:pt})],-1)),ft=R({__name:"banner",setup(p){const{t:n}=st.exports.useI18n(),t=ut(),b=Q({eepromSize:n("workplace.clickCheck")}),F=async()=>{var l,g,w,h,k,d,m,M,$,I,x,C,z,B,D,E,N,T,V,A,H;let o=n("workplace.unk");const y=[Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256)];await _t(t.connectPort);const a=new Uint8Array(y);if(((l=t.configuration)==null?void 0:l.uart)=="official"){const S=await e(t.connectPort,0,8,(g=t.configuration)==null?void 0:g.uart);await r(t.connectPort,0,a,8,(w=t.configuration)==null?void 0:w.uart);const P=await e(t.connectPort,0,8,(h=t.configuration)==null?void 0:h.uart);a.toString()==P.toString()&&(o=n("global.8kb")),await r(t.connectPort,0,S,8,(k=t.configuration)==null?void 0:k.uart)}else{const S=await e(t.connectPort,0,8,(d=t.configuration)==null?void 0:d.uart);await r(t.connectPort,0,a,8,(m=t.configuration)==null?void 0:m.uart);const P=await e(t.connectPort,0,8,(M=t.configuration)==null?void 0:M.uart);a.toString()==P.toString()&&(o=n("global.8kb")),await r(t.connectPort,0,S,8,($=t.configuration)==null?void 0:$.uart);const G=await e(t.connectPort,131064,8,(I=t.configuration)==null?void 0:I.uart);await r(t.connectPort,131064,a,8,(x=t.configuration)==null?void 0:x.uart);const L=await e(t.connectPort,131064,8,(C=t.configuration)==null?void 0:C.uart);a.toString()==L.toString()&&(o=n("global.128kb")),await r(t.connectPort,131064,G,8,(z=t.configuration)==null?void 0:z.uart);const O=await e(t.connectPort,262136,8,(B=t.configuration)==null?void 0:B.uart);await r(t.connectPort,262136,a,8,(D=t.configuration)==null?void 0:D.uart);const q=await e(t.connectPort,262136,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==q.toString()&&(o=n("global.256kb")),await r(t.connectPort,262136,O,8,(N=t.configuration)==null?void 0:N.uart);const J=await e(t.connectPort,524280,8,(T=t.configuration)==null?void 0:T.uart);await r(t.connectPort,524280,a,8,(V=t.configuration)==null?void 0:V.uart);const K=await e(t.connectPort,524280,8,(A=t.configuration)==null?void 0:A.uart);a.toString()==K.toString()&&(o=n("global.512kb")),await r(t.connectPort,524280,J,8,(H=t.configuration)==null?void 0:H.uart)}b.eepromSize=o};return(o,y)=>{const a=tt,l=ot,g=at,w=nt,h=W,k=et;return U(),X(l,{class:"banner"},{default:u(()=>[s(l,null,{default:u(()=>[s(a,{heading:5,style:{"margin-top":"0"}},{default:u(()=>[f(c(i(t).connectState?o.$t("workplace.welcomeSuc"):o.$t("workplace.welcome")),1)]),_:1})]),_:1}),s(g,{class:"panel-border"}),s(k,null,{default:u(()=>[Y(s(h,{style:{marginTop:"2em",marginBottom:"2em"},title:o.$t("workplace.info")},{default:u(()=>{var d,m;return[f(c(o.$t("workplace.current"))+c(i(t).firmwareVersion)+" ",1),lt,f(" "+c(o.$t("workplace.writeconfig"))+c((d=i(t).configuration)==null?void 0:d.name)+" ",1),dt,f(" "+c(o.$t("workplace.eepromSize"))+c(b.eepromSize)+" "+c(b.eepromSize!=i(n)("workplace.clickCheck")&&((m=i(t).configuration)==null?void 0:m.uart)=="official"?i(n)("workplace.clickNotice"):"")+" ",1),s(w,{size:"mini",type:"primary",onClick:F},{default:u(()=>[f(c(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,i(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=j(ft,[["__scopeId","data-v-7f92e336"]]),wt={class:"container"},ht={class:"left-side"},kt={class:"panel"},bt={name:"Dashboard"},St=R({...bt,setup(p){return(n,t)=>(U(),it("div",wt,[_("div",ht,[_("div",kt,[s(gt)])])]))}});const Et=j(St,[["__scopeId","data-v-8f743d99"]]);export{Et as default};
|
BIN
assets/index.9cdeb3ad.js.gz
Normal file
BIN
assets/index.9cdeb3ad.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
import{e as v,as as B,_ as E}from"./index.6225dd09.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as $,r as C,bH as A,C as F,D as S,aI as n,aH as o,G as y,aN as _,aM as b,a$ as H,ba as R,bF as D,bI as I,bL as P,n as T}from"./arco.f43727df.js";import{i as M,e as N,b as U,g as V}from"./serial.c741fbda.js";import{C as L}from"./index.31aa575a.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";import"./index.18a0f852.js";const z={class:"container"},G=["innerHTML"],K={name:"Chi"},O=$({...K,setup(j){const i=v(),u=C({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),w=async(e=0,t)=>{var p;await N(i.connectPort);for(let a=e;a<t.length+e;a+=128)await U(i.connectPort,a,t.slice(a-e,a-e+128),128,(p=i.configuration)==null?void 0:p.uart),u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((a-e)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)});u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await V(i.connectPort)},h=async(e=1)=>{var p,a,r,m,g;if(i.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=i.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}u.status=u.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(a=i.configuration)!=null&&a.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(131072,l);return}if(e==5){const c=await M(i.connectPort,(r=i.configuration)==null?void 0:r.uart);if(c!=262144&&c!=524288){u.status=u.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}t=await fetch("/ssb.bin");const s=t.body.getReader(),l=[];for(;;){const{done:f,value:k}=await s.read();if(f)break;l.push(...k)}const d=new Uint8Array(l);await w(246312,d);return}if(e==1){if(((m=i.configuration)==null?void 0:m.charset)=="losehu"){t=await fetch("/old_font.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(8192,l);return}if(((g=i.configuration)==null?void 0:g.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(9344,l);return}}};return(e,t)=>{const p=B,a=H,r=L,m=R,g=D,c=A,s=I,l=P;return F(),S("div",z,[n(p,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),n(l,{gutter:20,align:"stretch"},{default:o(()=>[n(s,{span:24},{default:o(()=>[n(c,{class:"general-card"},{title:o(()=>[y("span",{onClick:t[0]||(t[0]=()=>{u.showHide+=1})},_(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.fontwrite")),1)]),default:o(()=>[n(a,{onClick:t[1]||(t[1]=d=>h(1))},{default:o(()=>[b(_(e.$t("tool.writefontwrite")),1)]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.pinyinwrite")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[2]||(t[2]=d=>h(4))},{default:o(()=>[b(_(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.ssbpatch")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[3]||(t[3]=d=>h(5))},{default:o(()=>[b(_(e.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),n(g),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:u.status},null,8,G)]),_:1})]),_:1})]),_:1})])}}});const nt=E(O,[["__scopeId","data-v-38246451"]]);export{nt as default};
|
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{_ as t}from"./index.6225dd09.js";import{C as a,aE as s,aH as _,bg as c,be as n,bf as r,G as d}from"./arco.f43727df.js";const p={},f=e=>(n("data-v-77ebf61d"),e=e(),r(),e),i=f(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202405130020",-1));function b(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[i]),_:1})}const m=t(p,[["render",b],["__scopeId","data-v-77ebf61d"]]);export{m as F};
|
import{_ as t}from"./index.25cd9d44.js";import{C as a,aE as s,aH as _,bg as c,be as n,bf as r,G as d}from"./arco.446db797.js";const p={},f=e=>(n("data-v-77ebf61d"),e=e(),r(),e),i=f(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202405130020",-1));function b(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[i]),_:1})}const m=t(p,[["render",b],["__scopeId","data-v-77ebf61d"]]);export{m as F};
|
1
assets/index.c37a6cb0.css
Normal file
1
assets/index.c37a6cb0.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.c37a6cb0.css.gz
Normal file
BIN
assets/index.c37a6cb0.css.gz
Normal file
Binary file not shown.
198
assets/index.c651c0cd.js
Normal file
198
assets/index.c651c0cd.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.c651c0cd.js.gz
Normal file
BIN
assets/index.c651c0cd.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +0,0 @@
|
|||||||
import{b as o}from"./dialog.12911935.js";import{B as a}from"./index.6225dd09.js";import"./arco.f43727df.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var m=a(o);export{m as D};
|
|
File diff suppressed because one or more lines are too long
BIN
assets/index.f816e470.js.gz
Normal file
BIN
assets/index.f816e470.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{f as a}from"./arco.f43727df.js";function l(e=!1){const o=a(e);return{loading:o,setLoading:t=>{o.value=t},toggle:()=>{o.value=!o.value}}}export{l as u};
|
import{f as a}from"./arco.446db797.js";function l(e=!1){const o=a(e);return{loading:o,setLoading:t=>{o.value=t},toggle:()=>{o.value=!o.value}}}export{l as u};
|
5
assets/slot.b1e6202c.js
Normal file
5
assets/slot.b1e6202c.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import{w as h,J as u}from"./index.25cd9d44.js";import{bN as p,aK as f,g as d}from"./arco.446db797.js";/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function _(){var i=d();return function(l,r){var t,n;r||(r=i.slots);var c=((t=r)===null||t===void 0||(n=t.default)===null||n===void 0?void 0:n.call(t))||[],s=[],v=function o(e){if(!!u(e))return e.forEach(function(a){if(a.children&&u(a.children)){if(a.type!==f)return;o(a.children)}else s.push(a)}),s};return v(c).filter(function(o){var e;return(e=o.type.name)===null||e===void 0?void 0:e.endsWith(l)})}}function g(){var i=d();return function(){var l,r=i.slots,t=(r==null||(l=r.default)===null||l===void 0?void 0:l.call(r))||[];return t.filter(function(n){return h(n.type)==="symbol"&&!n.children?!1:n.type!==p}).map(function(n){return n.children&&u(n.children)&&n.type===f?n.children:n}).flat()}}export{g as a,_ as u};
|
31
assets/useConfig.7e9a03f4.js
Normal file
31
assets/useConfig.7e9a03f4.js
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
import{w as c,O as y,P as p,z as m}from"./index.25cd9d44.js";import{c as s}from"./arco.446db797.js";/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function f(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function b(e,r){if(!!e){if(typeof e=="string")return f(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(e,r)}}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function g(e){if(Array.isArray(e))return f(e)}function A(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||||||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(e){return g(e)||A(e)||b(e)||_()}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function x(e,r){if(c(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(c(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function T(e){var r=x(e,"string");return c(r)=="symbol"?r:r+""}function z(e,r,t){return r=T(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function E(e){if(Array.isArray(e))return e}function I(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a,i,n,o,u=[],l=!0,d=!1;try{if(n=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(a=n.call(t)).done)&&(u.push(a.value),u.length!==r);l=!0);}catch(h){d=!0,i=h}finally{try{if(!l&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(d)throw i}}return u}}function P(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(e,r){return E(e)||I(e,r)||b(e,r)||P()}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/var w=y,M=p,S="[object Number]";function O(e){return typeof e=="number"||M(e)&&w(e)==S}var j=O;/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function C(){if(typeof navigator>"u"||!navigator)return Number.MAX_SAFE_INTEGER;var e=navigator,r=e.userAgent,t=r.indexOf("compatible")>-1&&r.indexOf("MSIE")>-1,a=r.indexOf("Trident")>-1&&r.indexOf("rv:11.0")>-1;if(t){var i=new RegExp("MSIE (\\d+\\.\\d+);"),n=r.match(i);if(!n)return-1;var o=parseFloat(n[1]);return o<7?6:o}return a?11:Number.MAX_SAFE_INTEGER}function R(){var e,r,t;if(typeof navigator>"u"||!navigator)return!1;var a=navigator.userAgent,i=a.match(/AppleWebKit.+Chrome\/(.+) Safari\/.+/i);if(Number(i==null||(e=i[1])===null||e===void 0?void 0:e.split(".")[0])<100)return!0;var n=a.match(/AppleWebKit.+Version\/(.+) Safari\/.+/i);if(Number(n==null||(r=n[1])===null||r===void 0?void 0:r.split(".")[0])<12)return!0;var o=C();if(o<=11)return!0;var u=a.match(/Firefox\/(.+)/i);return Number(u==null||(t=u[1])===null||t===void 0?void 0:t.split(".")[0])<100}function U(e,r){var t=j(r);if(!e||e.length===0)return t?{length:0,characters:e}:0;for(var a=0,i=0;i<e.length;i++){var n=0;if(e.charCodeAt(i)>127?n=2:n=1,t&&a+n>r)return{length:a,characters:e.slice(0,i)};a+=n}return t?{length:a,characters:e}:a}function W(e){return v(e!=null?e:"").length}function $(e,r,t){return v(t!=null?t:"").slice().length===r?t||"":v(e!=null?e:"").slice(0,r).join("")}/**
|
||||||
|
* tdesign v1.9.4
|
||||||
|
* (c) 2024 tdesign
|
||||||
|
* @license MIT
|
||||||
|
*/function k(e){var r=m("classPrefix"),t=r.classPrefix;return s(function(){return e?"".concat(t.value,"-").concat(e):t.value})}function K(){var e=m("classPrefix"),r=e.classPrefix;return{SIZE:s(function(){return{small:"".concat(r.value,"-size-s"),medium:"".concat(r.value,"-size-m"),large:"".concat(r.value,"-size-l"),default:"",xs:"".concat(r.value,"-size-xs"),xl:"".concat(r.value,"-size-xl"),block:"".concat(r.value,"-size-full-width")}}),STATUS:s(function(){return{loading:"".concat(r.value,"-is-loading"),loadMore:"".concat(r.value,"-is-load-more"),disabled:"".concat(r.value,"-is-disabled"),focused:"".concat(r.value,"-is-focused"),success:"".concat(r.value,"-is-success"),error:"".concat(r.value,"-is-error"),warning:"".concat(r.value,"-is-warning"),selected:"".concat(r.value,"-is-selected"),active:"".concat(r.value,"-is-active"),checked:"".concat(r.value,"-is-checked"),current:"".concat(r.value,"-is-current"),hidden:"".concat(r.value,"-is-hidden"),visible:"".concat(r.value,"-is-visible"),expanded:"".concat(r.value,"-is-expanded"),indeterminate:"".concat(r.value,"-is-indeterminate")}})}}export{G as _,U as a,K as b,z as c,v as d,C as e,E as f,W as g,A as h,j as i,b as j,P as k,$ as l,R as m,T as t,k as u};
|
BIN
assets/useConfig.7e9a03f4.js.gz
Normal file
BIN
assets/useConfig.7e9a03f4.js.gz
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
import{s as Vn,u as Me,e as rs,i as Ee,n as lt,d as Bn,r as Xn,c as Q,h as Yn,p as Et,f as ee,w as De,j as qn,m as Qn,k as ss,l as Qe,q as Jn,v as os,x as Zn,y as zn,t as as,g as is,o as cs,z as er,a as ls}from"./arco.f43727df.js";/*!
|
import{s as Vn,u as Me,e as rs,i as Ee,n as lt,d as Bn,r as Xn,c as Q,h as Yn,p as Et,f as ee,w as De,j as qn,m as Qn,k as ss,l as Qe,q as Jn,v as os,x as Zn,y as zn,t as as,g as is,o as cs,z as er,a as ls}from"./arco.446db797.js";/*!
|
||||||
* vue-router v4.3.0
|
* vue-router v4.3.0
|
||||||
* (c) 2024 Eduardo San Martin Morote
|
* (c) 2024 Eduardo San Martin Morote
|
||||||
* @license MIT
|
* @license MIT
|
BIN
assets/vue.848e4abf.js.gz
Normal file
BIN
assets/vue.848e4abf.js.gz
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user