mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 16:22:44 +00:00
update
This commit is contained in:
parent
bacfc09c2a
commit
c6cedf9fe2
72 changed files with 1 additions and 1546 deletions
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
import{c as v,b as f}from"./useConfig.6cf5b795.js";import{f as b,i as d}from"./index.2a65a066.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function h(e){if(Array.isArray(e))return e}function m(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,i,n,o,u=[],l=!0,c=!1;try{if(n=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=n.call(r)).done)&&(u.push(a.value),u.length!==t);l=!0);}catch(s){c=!0,i=s}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function g(){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 N(e,t){return h(e)||m(e,t)||v(e,t)||g()}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var p=b,y=d,_="[object Number]";function A(e){return typeof e=="number"||y(e)&&p(e)==_}var E=A;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function M(){if(typeof navigator>"u"||!navigator)return Number.MAX_SAFE_INTEGER;var e=navigator,t=e.userAgent,r=t.indexOf("compatible")>-1&&t.indexOf("MSIE")>-1,a=t.indexOf("Trident")>-1&&t.indexOf("rv:11.0")>-1;if(r){var i=new RegExp("MSIE (\\d+\\.\\d+);"),n=t.match(i);if(!n)return-1;var o=parseFloat(n[1]);return o<7?6:o}return a?11:Number.MAX_SAFE_INTEGER}function T(){var e,t,r;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||(t=n[1])===null||t===void 0?void 0:t.split(".")[0])<12)return!0;var o=M();if(o<=11)return!0;var u=a.match(/Firefox\/(.+)/i);return Number(u==null||(r=u[1])===null||r===void 0?void 0:r.split(".")[0])<100}function F(e,t){var r=E(t);if(!e||e.length===0)return r?{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,r&&a+n>t)return{length:a,characters:e.slice(0,i)};a+=n}return r?{length:a,characters:e}:a}function O(e){return f(e!=null?e:"").length}function j(e,t,r){return f(r!=null?r:"").slice().length===t?r||"":f(e!=null?e:"").slice(0,t).join("")}export{N as _,F as a,M as b,h as c,g as d,T as e,O as g,E as i,j as l};
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
import{k as $,ak as E,_ as B}from"./index.2a65a066.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as F,r as C,bH as A,C as S,D,aI as n,aH as o,G as y,aN as p,aM as _,bn as H,bo as R,a$ as I,ba as P,bF as T,bI as M,bK as N,n as U}from"./arco.949c921a.js";import{i as V,e as z,b as K,g as L}from"./serial.c741fbda.js";import{C as G}from"./index.14fb6edc.js";import"./chart.b6f2f6d9.js";import"./vue.d12e9c08.js";import"./useConfig.6cf5b795.js";import"./index.911ac6d9.js";import"./helper.71009a45.js";const O={class:"container"},j=["innerHTML"],q={name:"Chi"},J=F({...q,setup(Q){const u=$(),d=C({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),m=async(e=0,t)=>{var w;await z(u.connectPort);for(let r=e;r<t.length+e;r+=128)await K(u.connectPort,r,t.slice(r-e,r-e+128),128,(w=u.configuration)==null?void 0:w.uart),d.status=d.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((r-e)/t.length*100).toFixed(1)+"%<br/>",U(()=>{const s=document==null?void 0:document.getElementById("statusArea");s&&(s.scrollTop=s==null?void 0:s.scrollHeight)});d.status=d.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await L(u.connectPort)},h=async(e=1)=>{var w,r,s,b,g,k;if(u.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((w=u.configuration)==null?void 0:w.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}d.status=d.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(r=u.configuration)!=null&&r.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const c=t.body.getReader(),a=[];for(;;){const{done:l,value:f}=await c.read();if(l)break;a.push(...f)}const i=new Uint8Array(a);await m(131072,i);return}if(e==5){const c=await V(u.connectPort,(s=u.configuration)==null?void 0:s.uart);if(c!=262144&&c!=524288){d.status=d.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}t=await fetch("/ssb.bin");const a=t.body.getReader(),i=[];for(;;){const{done:f,value:v}=await a.read();if(f)break;i.push(...v)}const l=new Uint8Array(i);await m(246312,l);return}if(e==1){if(((b=u.configuration)==null?void 0:b.charset)=="losehu"){t=await fetch("/old_font.bin");const c=t.body.getReader(),a=[];for(;;){const{done:l,value:f}=await c.read();if(l)break;a.push(...f)}const i=new Uint8Array(a);await m(8192,i);return}if(((g=u.configuration)==null?void 0:g.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const c=t.body.getReader(),a=[];for(;;){const{done:l,value:f}=await c.read();if(l)break;a.push(...f)}const i=new Uint8Array(a);await m(9344,i);return}}if(e==6)if(((k=u.configuration)==null?void 0:k.charset)=="gb2312"){t=await fetch("/new_font_k_f.bin");const c=t.body.getReader(),a=[];for(;;){const{done:l,value:f}=await c.read();if(l)break;a.push(...f)}const i=new Uint8Array(a);await m(9344,i);return}else alert("\u4E0D\u652F\u6301\u7684\u7248\u672C")};return(e,t)=>{const w=E,r=I,s=G,b=P,g=T,k=A,c=M,a=N;return S(),D("div",O,[n(w,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),n(a,{gutter:20,align:"stretch"},{default:o(()=>[n(c,{span:24},{default:o(()=>[n(k,{class:"general-card"},{title:o(()=>[y("span",{onClick:t[0]||(t[0]=()=>{d.showHide+=1})},p(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:o(()=>[n(b,null,{default:o(()=>[n(s,{bordered:""},{header:o(()=>[_(p(e.$t("tool.fontwrite")),1)]),default:o(()=>[n(r,{onClick:t[1]||(t[1]=i=>h(1))},{default:o(()=>[_(p(e.$t("tool.writefontwrite")),1)]),_:1})]),_:1}),H(n(s,{bordered:""},{header:o(()=>[_(p(e.$t("tool.fontwrite"))+"\uFF08\u7E41\u9AD4\uFF09 ",1)]),default:o(()=>[n(r,{onClick:t[2]||(t[2]=i=>h(6))},{default:o(()=>[_(p(e.$t("tool.writefontwrite")),1)]),_:1})]),_:1},512),[[R,d.showHide>=5]]),n(s,{bordered:""},{header:o(()=>[_(p(e.$t("tool.pinyinwrite")),1)]),default:o(()=>[n(b,null,{default:o(()=>[n(r,{onClick:t[3]||(t[3]=i=>h(4))},{default:o(()=>[_(p(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),n(s,{bordered:""},{header:o(()=>[_(p(e.$t("tool.ssbpatch")),1)]),default:o(()=>[n(b,null,{default:o(()=>[n(r,{onClick:t[4]||(t[4]=i=>h(5))},{default:o(()=>[_(p(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:d.status},null,8,j)]),_:1})]),_:1})]),_:1})])}}});const ut=B(J,[["__scopeId","data-v-78572d20"]]);export{ut as default};
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1,13 +0,0 @@
|
||||||
import{d as R,c as t,aI as a,aU as V}from"./arco.949c921a.js";import{u,a as W}from"./useConfig.6cf5b795.js";import{c as X,N as Z,w as U}from"./index.2a65a066.js";import{L as k}from"./index.911ac6d9.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var q={actions:{type:[String,Function]},avatar:{type:[String,Function]},bordered:{type:Boolean,default:!0},content:{type:[String,Function]},cover:{type:[String,Function]},default:{type:[String,Function]},description:{type:[String,Function]},footer:{type:[String,Function]},header:{type:[String,Function]},headerBordered:Boolean,hoverShadow:Boolean,loading:{type:[Boolean,Function],default:!1},loadingProps:{type:Object},shadow:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["medium","small"].includes(e):!0}},status:{type:String,default:""},subtitle:{type:[String,Function]},theme:{type:String,default:"normal",validator:function(e){return e?["normal","poster1","poster2"].includes(e):!0}},title:{type:[String,Function]}};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function G(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!V(i)}var K=R({name:"TCard",props:q,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"),O=u("card__description"),c=u("card__actions"),P=u("card__body"),j=u("card__cover"),x=u("card__footer"),A=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:O.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:j.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:P.value},[n("default")||n("content")]),D.value&&a("div",{class:x.value},[a("div",{class:A.value},[n("footer")]),s.value&&v.value&&a("div",{class:c.value},[n("actions")])])]);return I.value?n("loading")||a(k,e.loadingProps,G(r)?r:{default:function(){return[r]}}):r}}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var ae=U(K);export{ae as C};
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
import{v as L,ak as B,_ as E}from"./index.2a65a066.js";/* empty css *//* empty css */import{d as V,r as j,w as F,o as O,bT as U,bH as $,C as u,D as h,aI as r,aH as i,u as H,G as I,aM as f,aK as x,aJ as b,aE as y,aN as k,bU as T,a$ as R,bI as J,bK as A}from"./arco.949c921a.js";import{f as G}from"./vue.d12e9c08.js";import{u as K}from"./loading.68e8c78e.js";import{L as Y}from"./index.eb7b11d0.js";import{S as q}from"./index.cd6bf855.js";import"./chart.b6f2f6d9.js";import"./useConfig.6cf5b795.js";import"./useDisabled.bde84ef9.js";import"./helper.71009a45.js";import"./slot.fc3b26fa.js";const z={class:"container"},P={name:"DIY"},Q=V({...P,setup(W){const M=G(),{t:S}=L.exports.useI18n(),N=()=>{M.push({path:"/tool/flash",query:{url:"https://k5.vicicode.com/diyapi/LOSEHU"+t.flag.join("")+".bin?v="+new Date().getTime()}})},t=j({versions:[],flag:[],disMatrix:[],disName:[],showSort:[]});F(()=>[...t.flag],()=>{v()});const v=()=>{t.flag.map((a,o)=>{t.disMatrix[o].forEach((l,n)=>{t.versions.indexOf("LOSEHU"+t.flag.join("").substring(0,o)+n+t.flag.join("").substring(o+1)+".bin")==-1?t.disMatrix[o].set(n,!0):t.disMatrix[o].set(n,!1)})})},{loading:C,setLoading:w}=K(!0);return O(async()=>{w(!0);let a=await(await fetch("https://k5.vicicode.com/diyapi/function.json?v="+new Date().getTime())).text();a=JSON.parse(a);let o=[],l=[];a.map(e=>{o[e[e.length-1]-1]=e,l.push(e[e.length-1]-1)}),a=o;let n=[],p=[];a.map(e=>{let _=new Map,c=new Map;for(let s=e[0]*2+1;s<e[0]*3+1;s++)_.set(e[s],!1),S("idea.diy")!=="LOSEHU DIY"?c.set(e[s],e[s-e[0]-e[0]]):c.set(e[s],e[s-e[0]]);n.push(_),p.push(c)}),t.flag=new Array(a.length).fill("0"),t.disName=p,t.disMatrix=n,t.showSort=l;const g=await(await fetch("https://k5.vicicode.com/diyapi/version.json?v="+new Date().getTime())).text();t.versions=JSON.parse(g),v(),w(!1)}),(a,o)=>{const l=B,n=Y,p=U,g=T,e=R,_=q,c=$,s=J,D=A;return u(),h("div",z,[r(l,{items:[a.$t("menu.workshop"),a.$t("idea.diy")]},null,8,["items"]),r(D,{gutter:20,align:"stretch"},{default:i(()=>[r(s,{span:24},{default:i(()=>[r(c,{class:"general-card",title:a.$t("idea.diy"),loading:H(C)},{default:i(()=>[r(_,{direction:"vertical"},{default:i(()=>[I("div",null,[f("\u64CD\u4F5C\u8BF4\u660E\uFF1A"),r(n,{theme:"primary",href:"https://github.com/losehu/uv-k5-firmware-custom",target:"_blank"},{default:i(()=>[f("https://github.com/losehu/uv-k5-firmware-custom")]),_:1})]),(u(!0),h(x,null,b(t.showSort,m=>(u(),y(g,{modelValue:t.flag[m],"onUpdate:modelValue":d=>t.flag[m]=d,type:"button"},{default:i(()=>[(u(!0),h(x,null,b(t.disMatrix[m],d=>(u(),y(p,{value:d[0],disabled:d[1]},{default:i(()=>[f(k(t.disName[m].get(d[0])),1)]),_:2},1032,["value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"]))),256)),r(e,{type:"primary",onClick:N},{default:i(()=>[f(k(a.$t("diy.generate")),1)]),_:1})]),_:1})]),_:1},8,["title","loading"])]),_:1})]),_:1})])}}});const ut=E(Q,[["__scopeId","data-v-f761c86a"]]);export{ut as default};
|
|
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
.container[data-v-78572d20]{padding:0 20px 20px}.container[data-v-78572d20] .arco-list-content{overflow-x:hidden}.container[data-v-78572d20] .arco-card-meta-title{font-size:14px}[data-v-78572d20] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-78572d20] .arco-list-item{width:33%}[data-v-78572d20] .block-title{margin:0 0 12px;font-size:14px}[data-v-78572d20] .list-wrap .list-row{align-items:stretch}[data-v-78572d20] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-78572d20] .list-wrap :deep(.arco-space){width:100%}[data-v-78572d20] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
|
|
@ -1 +0,0 @@
|
||||||
import{_ as n}from"./index.2a65a066.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.949c921a.js";import{f as m}from"./vue.d12e9c08.js";import"./chart.b6f2f6d9.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 +0,0 @@
|
||||||
import{v as E,k as H,ak as M,_ as N}from"./index.2a65a066.js";/* empty css *//* empty css *//* empty css */import{d as F,r as S,c as O,bH as U,C as V,D as L,aI as i,aH as s,G as h,aN as u,aM as _,u as x,a6 as j,a$ as G,ba as W,bI as q,bK as J}from"./arco.949c921a.js";import{u as Q}from"./loading.68e8c78e.js";import{e as b,a as y,u as v,b as g,h as w,g as X}from"./serial.c741fbda.js";import{I as Y}from"./form-model.612c795e.js";import{M as Z,T as ee}from"./index.13743b80.js";import{B as te}from"./index.c2b2794b.js";import"./chart.b6f2f6d9.js";import"./vue.d12e9c08.js";import"./useConfig.6cf5b795.js";import"./dialog.1ba30eca.js";import"./index.911ac6d9.js";import"./helper.71009a45.js";import"./useDisabled.bde84ef9.js";import"./dep-6deb4e3a.3d639f24.js";import"./slot.fc3b26fa.js";const ae={class:"container"},oe={name:"Radio"},ne=F({...oe,setup(re){const{t:D}=E.exports.useI18n(),o=H(),{loading:P,setLoading:m}=Q(!1),a=S({renderData:Array.from({length:20}).map(t=>({})),pageSize:50,nowPage:1}),I=S({showHide:0}),C=t=>{a.renderData=t.newData},R=O(()=>[{colKey:"drag",title:D("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:D("cps.rx"),colKey:"rx",align:"left",width:200,cell:(t,{row:n})=>parseFloat(n.rx)?parseFloat(n.rx).toFixed(2):void 0,edit:{component:Y,props:{clearable:!0},onEdited:t=>{t.newRowData.rx=t.newRowData.rx?t.newRowData.rx:void 0;const n=[...a.renderData];n.splice((a.nowPage-1)*a.pageSize+t.rowIndex,1,t.newRowData),a.renderData=n}}},{title:D("cps.operate"),colKey:"operate",align:"left",width:150}]),z=async()=>{var t,n,l;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await b(o.connectPort),m(!0),(t=o.configuration)!=null&&t.fm30){let c=new Uint8Array(60);for(let e=131008;e<131057;e+=8){const p=await y(o.connectPort,e,8,(n=o.configuration)==null?void 0:n.uart);c.set(p,e-131008)}const r=[];for(let e=0;e<60;e+=2){const p=v(c.subarray(e,e+2));p!="ffff"?r.push({rx:parseInt(p,16)/10}):r.push({})}a.renderData=r}else{let c=new Uint8Array(40);for(let e=3648;e<3681;e+=8){const p=await y(o.connectPort,e,8,(l=o.configuration)==null?void 0:l.uart);c.set(p,e-3648)}const r=[];for(let e=0;e<40;e+=2){const p=v(c.subarray(e,e+2));p!="ffff"?r.push({rx:parseInt(p,16)/10}):r.push({})}a.renderData=r}m(!1)},$=async()=>{var t,n,l,c,r;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await b(o.connectPort),m(!0),(t=o.configuration)!=null&&t.fm30)for(let e=0;e<60;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+131008,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(n=o.configuration)==null?void 0:n.uart):await g(o.connectPort,e+131008,w("0000"),2,(l=o.configuration)==null?void 0:l.uart);else for(let e=0;e<40;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+3648,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(c=o.configuration)==null?void 0:c.uart):await g(o.connectPort,e+3648,w("0000"),2,(r=o.configuration)==null?void 0:r.uart);await X(o.connectPort),m(!1)},k=async t=>{const n=[...a.renderData];n.splice(t,1,{scanlist:[]}),a.renderData=n};return(t,n)=>{const l=M,c=j,r=G,e=W,p=q,A=J,B=te,K=ee,T=U;return V(),L("div",ae,[i(l,{items:[t.$t("menu.dashboard"),t.$t("menu.cps.radio")]},null,8,["items"]),i(T,{class:"general-card"},{title:s(()=>[h("span",{onClick:n[0]||(n[0]=()=>{I.showHide+=1})},u(t.$t("menu.cps.radio")+t.$t("global.onStart")),1)]),default:s(()=>[i(A,{style:{"margin-bottom":"16px"}},{default:s(()=>[i(p,{span:12},{default:s(()=>[i(e,null,{default:s(()=>[i(r,{type:"primary",onClick:z},{icon:s(()=>[i(c)]),default:s(()=>[_(" "+u(t.$t("cps.onDeviceRead")),1)]),_:1}),i(r,{onClick:$},{icon:s(()=>[i(c)]),default:s(()=>[_(" "+u(t.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),i(K,{class:"ttable",loading:x(P),size:"medium",columns:R.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:n[1]||(n[1]=d=>{a.pageSize=d.pagination.pageSize,a.nowPage=d.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:C},{drag:s(({row:d,rowIndex:f})=>[h("span",null,[i(x(Z))])]),index:s(({row:d,rowIndex:f})=>[_(u((a.nowPage-1)*a.pageSize+f+1),1)]),operate:s(({row:d,rowIndex:f})=>[i(B,{theme:"default",variant:"dashed",onClick:se=>k((a.nowPage-1)*a.pageSize+f)},{default:s(()=>[_(u(t.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Ie=N(ne,[["__scopeId","data-v-be263a43"]]);export{Ie as default};
|
|
Binary file not shown.
|
@ -1,5 +0,0 @@
|
||||||
import{b as o}from"./dialog.1ba30eca.js";import{w as a}from"./index.2a65a066.js";import"./arco.949c921a.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
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
import{v as H,k as M,ak as N,_ as U}from"./index.2a65a066.js";/* empty css *//* empty css *//* empty css */import{d as V,r as y,c as L,bH as O,C as j,D as G,aI as s,aH as r,G as S,aN as f,aM as g,u as h,a6 as W,a$ as Z,ba as q,bI as F,bK as J}from"./arco.949c921a.js";import{u as Q}from"./loading.68e8c78e.js";import{e as v,a as P,u as w,f as X,h as D,s as Y,b,g as ee}from"./serial.c741fbda.js";import{I as C}from"./form-model.612c795e.js";import{M as te,T as ae}from"./index.13743b80.js";import{B as ne}from"./index.c2b2794b.js";import"./chart.b6f2f6d9.js";import"./vue.d12e9c08.js";import"./useConfig.6cf5b795.js";import"./dialog.1ba30eca.js";import"./index.911ac6d9.js";import"./helper.71009a45.js";import"./useDisabled.bde84ef9.js";import"./dep-6deb4e3a.3d639f24.js";import"./slot.fc3b26fa.js";const oe={class:"container"},re={name:"Radio"},ie=V({...re,setup(se){const{t:m}=H.exports.useI18n(),o=M(),{loading:I,setLoading:u}=Q(!1),a=y({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),z=y({showHide:0}),R=e=>{a.renderData=e.newData},A=L(()=>[{colKey:"drag",title:m("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:m("cps.contact"),colKey:"name",width:250,align:"left",cell:(e,{row:t})=>t.name?t.name.replace(/[^a-zA-Z0-9_]/g,""):void 0,edit:{component:C,props:{clearable:!0},onEdited:e=>{const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:m("cps.mdcid"),colKey:"mdcid",align:"left",width:200,cell:(e,{row:t})=>parseInt(t.mdcid,16)<=65535?parseInt(t.mdcid,16).toString(16):void 0,edit:{component:C,props:{clearable:!0},onEdited:e=>{e.newRowData.mdcid=e.newRowData.mdcid?e.newRowData.mdcid:void 0;const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:m("cps.operate"),colKey:"operate",align:"left",width:150}]),$=async()=>{var d,c;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);let e=new Uint8Array(256);for(let n=7424;n<7680;n+=16){const i=await P(o.connectPort,n,16,(d=o.configuration)==null?void 0:d.uart);e.set(i,n-7424)}const t=[];for(let n=0;n<256;n+=16)w(e.subarray(n,n+2))!="ffff"?t.push({name:X(e.subarray(n+2,n+16),(c=o.configuration)==null?void 0:c.charset).trim(),mdcid:w(e.subarray(n,n+1))+w(e.subarray(n+1,n+2))}):t.push({});a.renderData=t,u(!1)},k=async()=>{var t,d,c,n;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);for(let i=0;i<256;i+=16)if(a.renderData[i/16].mdcid){const p=new Uint8Array(16).fill(32);p.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(0,2))),p.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(2,4)),1),p.set(Y(a.renderData[i/16].name),2),await b(o.connectPort,i+7424,p,16,(t=o.configuration)==null?void 0:t.uart)}else await b(o.connectPort,i+7424,D("ffffffffffffffffffffffffffffffff"),16,(d=o.configuration)==null?void 0:d.uart);const e=await P(o.connectPort,8176,16,(c=o.configuration)==null?void 0:c.uart);e.set([16],16-1),await b(o.connectPort,8176,e,16,(n=o.configuration)==null?void 0:n.uart),await ee(o.connectPort),u(!1)},T=async e=>{const t=[...a.renderData];t.splice(e,1,{scanlist:[]}),a.renderData=t};return(e,t)=>{const d=N,c=W,n=Z,i=q,p=F,K=J,B=ne,x=ae,E=O;return j(),G("div",oe,[s(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.mdc")]},null,8,["items"]),s(E,{class:"general-card"},{title:r(()=>[S("span",{onClick:t[0]||(t[0]=()=>{z.showHide+=1})},f(e.$t("menu.cps.mdc")+e.$t("global.onStart")),1)]),default:r(()=>[s(K,{style:{"margin-bottom":"16px"}},{default:r(()=>[s(p,{span:12},{default:r(()=>[s(i,null,{default:r(()=>[s(n,{type:"primary",onClick:$},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceRead")),1)]),_:1}),s(n,{onClick:k},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(x,{class:"ttable",loading:h(I),size:"medium",columns:A.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:t[1]||(t[1]=l=>{a.pageSize=l.pagination.pageSize,a.nowPage=l.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:R},{drag:r(({row:l,rowIndex:_})=>[S("span",null,[s(h(te))])]),index:r(({row:l,rowIndex:_})=>[g(f((a.nowPage-1)*a.pageSize+_+1),1)]),operate:r(({row:l,rowIndex:_})=>[s(B,{theme:"default",variant:"dashed",onClick:ce=>T((a.nowPage-1)*a.pageSize+_)},{default:r(()=>[g(f(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Re=U(ie,[["__scopeId","data-v-9ba38d74"]]);export{Re as default};
|
|
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
import{d as x,c as q,b5 as R,C as i,D as u,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.949c921a.js";import{F as oe}from"./index.9f10dd14.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.2a65a066.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.d12e9c08.js";import{u as le}from"./loading.68e8c78e.js";import"./index.eb7b11d0.js";import"./useConfig.6cf5b795.js";import"./useDisabled.bde84ef9.js";import"./chart.b6f2f6d9.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"},me=["src"],ue=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(),u("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),u(D,null,E(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),u("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,me)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(ue,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=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:m}=a.value,{username:$,password:y}=l;a.value.username=m?$:"",a.value.password=m?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,m=O,$=ne,y=X,B=J,N=K,P=Y,M=Q,U=T;return i(),u("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(U,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(m,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(m,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(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(),u("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const Ge=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{Ge as default};
|
|
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
import{_}from"./index.2a65a066.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.949c921a.js";import"./chart.b6f2f6d9.js";import"./vue.d12e9c08.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};
|
|
Binary file not shown.
|
@ -1,69 +0,0 @@
|
||||||
import{a1 as $e,a2 as en,Q as nn,i as an,a3 as Ae,a4 as rn,a5 as tn,M as N,a6 as sn,a7 as ln,a8 as on,a9 as un,aa as Se,e as Pe,V as cn,H as fn,ab as dn,ac as Ee,O as M,N as Te,ad as se,ae as vn,af as gn,F as Le,ag as hn,ah as xe,ai as mn,aj as pn,w as yn}from"./index.2a65a066.js";import{_ as F,u as p,a as _n}from"./useConfig.6cf5b795.js";import{d as k,o as ee,g as Cn,n as wn,aI as h,c as m,f as z,w as Ie,t as bn,bB as q,bD as ie,r as On,h as $n,b4 as An}from"./arco.949c921a.js";import{b as Sn,_ as Pn}from"./helper.71009a45.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,Fn=Ln,Mn=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=Fn;H.prototype.has=Mn;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 Fe(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,Fe,t)}var ne=Fe,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,Fa=Se,Ma=/\.|\[(?:[^[\]]*|(["'])(?:(?!\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||Fa(e)?!0:Ra.test(e)||!Ma.test(e)||n!=null&&e in Object(n)}var ae=Na,Me=$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||Me),a}re.Cache=Me;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){F(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&&Sn()>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=Cn().refs.circle;wn(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 Ht(e,n,a,r){var t=M(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=M(n)?n(a):n;return r?Te(r)?document.querySelector(r):r instanceof HTMLElement?r:document.body:document.body},Ir=function(){},Ut=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return Te(n)?document.querySelector(n):M(n)?n():n},Wt=function(n){var a=n.clientWidth,r=a===void 0?0:a,t=n.scrollWidth,s=t===void 0?0:t;return s>r},Zt=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 Fr=function(n,a){var r=M(n)?m(n):z(n),t=M(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 Mr=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=Mr(),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=_n(),C=g.SIZE,w=function(){t.value=!1;var x=setTimeout(function(){t.value=!0,clearTimeout(x)},n.delay)},b=Fr(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],F({},y.value,n.inheritColor)],x=[i.value,o.value,l.value,c.value];return{baseClasses:_,attachClasses:_.concat([i.value,d.value,F({},c.value,n.showOverlay)]),withContentClasses:_.concat([i.value,d.value,F({},c.value,n.showOverlay)]),fullScreenClasses:x,normalClasses:_.concat([i.value])}}),je=bn(n),Ve=je.loading;return Ie([Ve],function(_){var x=Pn(_,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){F(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=On(n);return{loadingOptions:f}},render:function(){return $n(j,Rr({},this.loadingOptions))}}),r=Ke(n.fullscreen?"body":n.attach),t=An(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,Ft=Gr,Mt=It;function Rt(e,n){var a={};return n=Mt(n),Ft(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 Xt=yn(j,j.name,{name:"loading",comp:qt});export{Xt as L,Re as _,U as a,Ne as b,Ir as c,Ke as d,Ht as e,xr as f,or as g,br as h,qe as i,Rn as j,qn as k,Ut as l,Wt as m,Kn as n,Lr as o,Be as p,Zt as r,ye as s,Fr as u};
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
import{_}from"./index.2a65a066.js";import{C as a,aE as c,aH as e,aI as n,aM as s,bg as r}from"./arco.949c921a.js";import{L as d}from"./index.eb7b11d0.js";const i={};function f(p,l){const t=d,o=r;return a(),c(o,{class:"footer"},{default:e(()=>[n(t,{href:"https://github.com/silenty4ng/k5web",target:"_blank"},{default:e(()=>[s("K5Web - V0.1.202406100220")]),_:1})]),_:1})}const b=_(i,[["render",f],["__scopeId","data-v-c84d14b1"]]);export{b as F};
|
|
|
@ -1 +0,0 @@
|
||||||
import{k as L,ak as N,_ as F}from"./index.2a65a066.js";/* empty css *//* empty css *//* empty css */import{d as U,r as V,o as j,bH as A,bP as H,C as h,D as b,aI as f,aH as g,G as x,aK as k,aJ as $,F as K,aM as y,aN as v,a$ as O,ba as T,bI as q,bK as z,be as G,bf as J}from"./arco.949c921a.js";import{h as Q}from"./vue.d12e9c08.js";import{e as W,b as X,g as Y}from"./serial.c741fbda.js";import"./chart.b6f2f6d9.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=L(),s=V({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=Q();j(async()=>{if(I.query.url){const e=await fetch(I.query.url,{responseType:"blob"});M(window.URL.createObjectURL(await e.blob()))}});const D=()=>{const e=s.matrix;e.map((n,t)=>{n.map((a,l)=>{e[t][l]=a=="#fff"?"#000":"#fff"})}),s.matrix=e},S=(e,n)=>{if(s.mousedown){const t=s.matrix;t[n][e]=s.matrix[n][e]=="#fff"?"#000":"#fff",s.matrix=t}},M=e=>{const n=document.createElement("canvas");n.width=128,n.height=64;const t=n.cloneNode(),a=document.getElementById("canvasDiv");a.innerHTML="",a==null||a.append(n,t);const l=new Image;l.src=e,l.onload=()=>{const i=n.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,n.width,n.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},P=()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const n=new Blob([e.files[0]],{type:"application/octet-stream"}),t=URL.createObjectURL(n),a=document.createElement("canvas");a.width=128,a.height=64;const l=new Image;l.src=t,l.onload=()=>{const i=a.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,a.width,a.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},e.click()},R=async()=>{const e=s.matrix,n=document.createElement("canvas");n.width=128,n.height=64;const t=n.getContext("2d");t&&(t.fillStyle="#fff",t.fillRect(0,0,n.width,n.height),t.fillStyle="#000");for(let l=0;l<64;l++)for(let i=0;i<128;i++)e[l][i]=="#000"&&(t==null||t.beginPath(),t==null||t.rect(i,l,1,1),t==null||t.fill());const a=document.createElement("a");a.href=n.toDataURL("image/jpeg",1),a.download="image.jpg",a.click()},B=async()=>{var l,i,m,_,d;const e=new Uint8Array(1024);let n=0;for(let o=0;o<64;o+=8)for(let r=0;r<128;r++){let u=0;for(let c=0;c<8;c++)u|=(s.matrix[o+c][r]=="#000"?1:0)<<c;e[n++]=u}if(s.binaryFile=e,p.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((l=p.configuration)==null?void 0:l.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((i=p.configuration)==null?void 0:i.charset)!="losehu"&&((m=p.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}s.loading=!0;let t=123728;((_=p.configuration)==null?void 0:_.charset)=="gb2312"&&(t=8320),await W(p.connectPort);const a=s.binaryFile;for(let o=t;o<a.length+t;o+=128)await X(p.connectPort,o,a.slice(o-t,o-t+128),128,(d=p.configuration)==null?void 0:d.uart);await Y(p.connectPort),s.loading=!1};return(e,n)=>{const t=N,a=O,l=T,i=A,m=H,_=q,d=z;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(k,null,$(s.matrix,(o,r)=>(h(),b("tr",null,[(h(!0),b(k,null,$(o,(u,c)=>(h(),b("td",{onMousedown:C=>{s.mousedown=!0,S(c,r)},onMouseup:n[0]||(n[0]=C=>{s.mousedown=!1}),onMouseover:C=>S(c,r),style:K("background-color: "+u+"; height: 5px; width: 3.5px;")},null,44,ot))),256))]))),256))])]),nt,f(l,null,{default:g(()=>[f(a,{onClick:P},{default:g(()=>[y(v(e.$t("tool.selectImage")),1)]),_:1}),f(a,{disabled:s.matrix.length<64,onClick:D},{default:g(()=>[y(v(e.$t("image.negative")),1)]),_:1},8,["disabled"]),f(a,{disabled:s.matrix.length<64,onClick:R},{default:g(()=>[y(v(e.$t("cps.save")),1)]),_:1},8,["disabled"]),f(a,{type:"primary",disabled:s.matrix.length<64,onClick:B},{default:g(()=>[y(v(e.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=F(it,[["__scopeId","data-v-ffb80c1d"]]);export{pt as default};
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1,25 +0,0 @@
|
||||||
import{u as A,a as B,_ as d,b as N}from"./useConfig.6cf5b795.js";import{f as R,o as I,bs as z,d as D,c as _,aI as k,h as F}from"./arco.949c921a.js";import{L as M}from"./index.911ac6d9.js";import{P as w,d as X,c as $,b as K,w as U}from"./index.2a65a066.js";import{u as V}from"./useDisabled.bde84ef9.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var W={block:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},ghost:Boolean,href:{type:String,default:""},icon:{type:Function},loading:Boolean,shape:{type:String,default:"rectangle",validator:function(e){return e?["rectangle","square","round","circle"].includes(e):!0}},size:{type:String,default:"medium",validator:function(e){return e?["extra-small","small","medium","large"].includes(e):!0}},suffix:{type:Function},tag:{type:String,validator:function(e){return e?["button","a","div"].includes(e):!0}},theme:{type:String,validator:function(e){return e?["default","primary","danger","warning","success"].includes(e):!0}},type:{type:String,default:"button",validator:function(e){return e?["submit","reset","button"].includes(e):!0}},variant:{type:String,default:"base",validator:function(e){return e?["base","outline","dashed","text"].includes(e):!0}},onClick:Function};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var J=w.expand,Z=w.ripple,q=w.fade;function H(){var t=X("animation"),e=t.globalConfig,n=function(s){var u,c,r=e.value;return r&&!((u=r.exclude)!==null&&u!==void 0&&u.includes(s))&&((c=r.include)===null||c===void 0?void 0:c.includes(s))};return{keepExpand:n(J),keepRipple:n(Z),keepFade:n(q)}}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function j(t,e){var n=Object.keys(e);n.forEach(function(a){t.style[a]=e[a]})}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var O=200,G="rgba(0, 0, 0, 0)",Q="rgba(0, 0, 0, 0.35)",Y=function(e,n){var a;if(n)return n;if(e!=null&&(a=e.dataset)!==null&&a!==void 0&&a.ripple){var s=e.dataset.ripple;return s}var u=getComputedStyle(e).getPropertyValue("--ripple-color");return u||Q};function ee(t,e){var n=R(null),a=A(),s=H(),u=s.keepRipple,c=function(b){var i=t.value,h=Y(i,e==null?void 0:e.value);if(!(b.button!==0||!t||!u)&&!(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 m=getComputedStyle(i),v=parseInt(m.borderWidth,10),y=v>0?v:0,f=i.offsetWidth,o=i.offsetHeight;n.value.parentNode===null&&(j(n.value,{position:"absolute",left:"".concat(0-y,"px"),top:"".concat(0-y,"px"),width:"".concat(f,"px"),height:"".concat(o,"px"),borderRadius:m.borderRadius,pointerEvents:"none",overflow:"hidden"}),i.appendChild(n.value));var l=document.createElement("div");j(l,{marginTop:"0",marginLeft:"0",right:"".concat(f,"px"),width:"".concat(f+20,"px"),height:"100%",transition:"transform ".concat(O,"ms cubic-bezier(.38, 0, .24, 1), background ").concat(O*2,"ms linear"),transform:"skewX(-8deg)",pointerEvents:"none",position:"absolute",zIndex:0,backgroundColor:h,opacity:"0.9"});for(var x=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",x.set(p,!0))}var S=i.style.position?i.style.position:getComputedStyle(i).position;(S===""||S==="static")&&(i.style.position="relative"),n.value.insertBefore(l,n.value.firstChild),setTimeout(function(){l.style.transform="translateX(".concat(f,"px)")},0);var T=function P(){l.style.backgroundColor=G,t.value&&(t.value.removeEventListener("pointerup",P,!1),t.value.removeEventListener("pointerleave",P,!1),setTimeout(function(){l.remove(),n.value.children.length===0&&n.value.remove()},O*2+100))};t.value.addEventListener("pointerup",T,!1),t.value.addEventListener("pointerleave",T,!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
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?L(Object(n),!0).forEach(function(a){d(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var te=D({name:"TButton",props:W,setup:function(e,n){var a=n.attrs,s=n.slots,u=$(),c=K(),r=A("button"),b=B(),i=b.STATUS,h=b.SIZE,m=R();ee(m);var v=V(),y=_(function(){var o=e.theme,l=e.variant;return o||(l==="base"?"primary":"default")}),f=_(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 o=c("default","content"),l=e.loading?k(M,{inheritColor:!0},null):u("icon"),x=l&&!o,C=e.suffix||s.suffix?k("span",{className:"".concat(r.value,"__suffix")},[u("suffix")]):null;o=o?k("span",{class:"".concat(r.value,"__text")},[o]):"",l&&(o=[l,o]),C&&(o=[o].concat(C));var g=function(){return!e.tag&&e.href?"a":e.tag||"button"},p={class:[].concat(N(f.value),[d({},"".concat(r.value,"--icon-only"),x)]),type:e.type,disabled:v.value||e.loading,href:e.href,tabindex:v.value?void 0:"0"};return F(g(),E(E(E({ref:m},a),p),{},{onClick:e.onClick}),[o])}}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var ue=U(te);export{ue as B,ee as u};
|
|
Binary file not shown.
|
@ -1,13 +0,0 @@
|
||||||
import{e as j,i as v,_ as w}from"./helper.71009a45.js";import{u as x,_ as l}from"./useConfig.6cf5b795.js";import{d as z,c as m,aI as u,aK as N}from"./arco.949c921a.js";import{c as _,M as C,N as y,w as F}from"./index.2a65a066.js";import{a as T}from"./slot.fc3b26fa.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var k={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"},A=j(),D=z({name:"TSpace",props:b(b({},k),{},{forceFlexGapPolyfill:Boolean}),setup:function(e){var r=x("space"),a=_(),f=T(),p=m(function(){return e.forceFlexGapPolyfill||A}),S=m(function(){var n="";C(e.size)?n=e.size.map(function(o){return v(o)?"".concat(o,"px"):y(o)&&O[o]||o}).join(" "):y(e.size)?n=O[e.size]||e.size:v(e.size)&&(n="".concat(e.size,"px"));var i={};if(p.value){var d=n.split(" "),c=w(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"),p.value)];return u("div",{class:n,style:S.value},[P()])}}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var J=F(D);export{J as S};
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1,13 +0,0 @@
|
||||||
import{u as C,a as h,_ as i,b as w}from"./useConfig.6cf5b795.js";import{d as x,c as P,aI as c}from"./arco.949c921a.js";import{b as k,c as j,d as _,w as I}from"./index.2a65a066.js";import{u as N}from"./useDisabled.bde84ef9.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var T={content:{type:[String,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},download:{type:[String,Boolean]},hover:{type:String,default:"underline",validator:function(e){return e?["color","underline"].includes(e):!0}},href:{type:String,default:""},prefixIcon:{type:Function},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},suffixIcon:{type:Function},target:{type:String,default:""},theme:{type:String,default:"default",validator:function(e){return e?["default","primary","danger","warning","success"].includes(e):!0}},underline:Boolean,onClick:Function};/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?m(Object(n),!0).forEach(function(r){i(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var E=x({name:"TLink",props:D({},T),emits:["click"],setup:function(e,n){var r=n.emit,l=k(),s=j(),a=C("link"),d=h(),p=d.STATUS,g=d.SIZE,y=_("classPrefix"),b=y.classPrefix,o=N(),O=P(function(){return["".concat(a.value),"".concat(a.value,"--theme-").concat(e.theme),i(i(i(i({},g.value[e.size],e.size!=="medium"),p.value.disabled,o.value),"".concat(b.value,"-is-underline"),e.underline),"".concat(a.value,"--hover-").concat(e.hover),!o.value)]}),S=function(u){o.value||r("click",u)};return function(){var f=l("default","content"),u=s("prefixIcon"),v=s("suffixIcon");return c("a",{class:w(O.value),href:o.value||!e.href?void 0:e.href,target:e.target?e.target:void 0,download:e.download?e.download:void 0,onClick:S},[u?c("span",{class:"".concat(a.value,"__prefix-icon")},[u]):null,f,v?c("span",{class:"".concat(a.value,"__suffix-icon")},[v]):null])}}});/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var B=I(E);export{B as L};
|
|
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
import{k as B,ak as k,_ as E}from"./index.2a65a066.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 b,a$ as P,ba as S,bF as T,bI as D,bK as M}from"./arco.949c921a.js";import{h as V}from"./vue.d12e9c08.js";import{d as y,c as q,r as _,j as x,k as h,l as R,m as j}from"./serial.c741fbda.js";import"./chart.b6f2f6d9.js";const L={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).split("?")[0]+" "}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},g=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}m.connectPort&&await y(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=R(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=j(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/>`,b(()=>{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",b(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),y(t),m.updateSettings({connectState:!1})};return(t,o)=>{const r=k,n=P,a=S,u=T,l=N,s=D,w=M;return $(),I("div",L,[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=E(z,[["__scopeId","data-v-5cb91e08"]]);export{at as default};
|
|
Binary file not shown.
|
@ -1,5 +0,0 @@
|
||||||
import{e as h,M as u}from"./index.2a65a066.js";import{bM as p,aK as f,g as d}from"./arco.949c921a.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};
|
|
|
@ -1,18 +0,0 @@
|
||||||
import{e as n,d as o}from"./index.2a65a066.js";import{c as i}from"./arco.949c921a.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function c(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,a=new Array(e);t<e;t++)a[t]=r[t];return a}function u(r,e){if(!!r){if(typeof r=="string")return c(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(r,e)}}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function s(r){if(Array.isArray(r))return c(r)}function l(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function f(){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 y(r){return s(r)||l(r)||u(r)||f()}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function d(r,e){if(n(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e||"default");if(n(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function v(r){var e=d(r,"string");return n(e)=="symbol"?e:e+""}function p(r,e,t){return e=v(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function g(r){var e=o("classPrefix"),t=e.classPrefix;return i(function(){return r?"".concat(t.value,"-").concat(r):t.value})}function x(){var r=o("classPrefix"),e=r.classPrefix;return{SIZE:i(function(){return{small:"".concat(e.value,"-size-s"),medium:"".concat(e.value,"-size-m"),large:"".concat(e.value,"-size-l"),default:"",xs:"".concat(e.value,"-size-xs"),xl:"".concat(e.value,"-size-xl"),block:"".concat(e.value,"-size-full-width")}}),STATUS:i(function(){return{loading:"".concat(e.value,"-is-loading"),loadMore:"".concat(e.value,"-is-load-more"),disabled:"".concat(e.value,"-is-disabled"),focused:"".concat(e.value,"-is-focused"),success:"".concat(e.value,"-is-success"),error:"".concat(e.value,"-is-error"),warning:"".concat(e.value,"-is-warning"),selected:"".concat(e.value,"-is-selected"),active:"".concat(e.value,"-is-active"),checked:"".concat(e.value,"-is-checked"),current:"".concat(e.value,"-is-current"),hidden:"".concat(e.value,"-is-hidden"),visible:"".concat(e.value,"-is-visible"),expanded:"".concat(e.value,"-is-expanded"),indeterminate:"".concat(e.value,"-is-indeterminate")}})}}export{p as _,x as a,y as b,u as c,l as d,v as t,g as u};
|
|
Binary file not shown.
|
@ -1,9 +0,0 @@
|
||||||
import{c as s,i as o,g as n}from"./arco.949c921a.js";import{f as d,i as b}from"./index.2a65a066.js";/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/var f=d,t=b,v="[object Boolean]";function c(e){return e===!0||e===!1||t(e)&&f(e)==v}var a=c;/**
|
|
||||||
* tdesign v1.9.4
|
|
||||||
* (c) 2024 tdesign
|
|
||||||
* @license MIT
|
|
||||||
*/function p(e){var u=n(),i=s(function(){return u.props.disabled}),l=o("formDisabled",Object.create(null));return s(function(){var r;return a(e==null?void 0:e.beforeDisabled.value)?e.beforeDisabled.value:a(i.value)?i.value:a(e==null?void 0:e.afterDisabled.value)?e.afterDisabled.value:a((r=l.disabled)===null||r===void 0?void 0:r.value)?l.disabled.value:!1})}export{a as i,p as u};
|
|
|
@ -22,7 +22,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script src="serial.js"></script>
|
<script src="serial.js"></script>
|
||||||
<script type="module" crossorigin src="./assets/index.2a65a066.js"></script>
|
<script type="module" crossorigin src="./assets/index.d4000d74.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="./assets/arco.949c921a.js">
|
<link rel="modulepreload" crossorigin href="./assets/arco.949c921a.js">
|
||||||
<link rel="modulepreload" crossorigin href="./assets/chart.b6f2f6d9.js">
|
<link rel="modulepreload" crossorigin href="./assets/chart.b6f2f6d9.js">
|
||||||
<link rel="modulepreload" crossorigin href="./assets/vue.d12e9c08.js">
|
<link rel="modulepreload" crossorigin href="./assets/vue.d12e9c08.js">
|
||||||
|
|
BIN
index.html.gz
BIN
index.html.gz
Binary file not shown.
Loading…
Reference in a new issue