mirror of
https://github.com/silenty4ng/k5web
synced 2024-11-14 14:33:23 +00:00
update
This commit is contained in:
parent
17c208205d
commit
00a81c96a9
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import{d as B_,s as La,i as Ia,t as N_,c as Ti,g as z_,w as Pa,a as Qh,o as F_,b as V_,h as Jh,n as G_,u as H_}from"./arco.d4fda7ae.js";/*! *****************************************************************************
|
||||
import{d as B_,s as La,i as Ia,t as N_,c as Ti,g as z_,w as Pa,a as Qh,o as F_,b as V_,h as Jh,n as G_,u as H_}from"./arco.d6577a9c.js";/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
BIN
assets/chart.4acde4c9.js.gz
Normal file
BIN
assets/chart.4acde4c9.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
assets/default-layout.133cfed7.css
Normal file
1
assets/default-layout.133cfed7.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.133cfed7.css.gz
Normal file
BIN
assets/default-layout.133cfed7.css.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
27
assets/default-layout.8e04b148.js
Normal file
27
assets/default-layout.8e04b148.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.8e04b148.js.gz
Normal file
BIN
assets/default-layout.8e04b148.js.gz
Normal file
Binary file not shown.
1
assets/index.2f33078e.css
Normal file
1
assets/index.2f33078e.css
Normal file
@ -0,0 +1 @@
|
||||
.banner[data-v-b6f30470]{width:100%;padding:20px 20px 0;background-color:var(--color-bg-2);border-radius:4px 4px 0 0}[data-v-b6f30470] .arco-icon-home{margin-right:6px}.container[data-v-8f743d99]{background-color:var(--color-fill-2);padding:16px 20px 0;display:flex}.left-side[data-v-8f743d99]{flex:1;overflow:auto}.right-side[data-v-8f743d99]{width:280px;margin-left:16px}.panel[data-v-8f743d99]{background-color:var(--color-bg-2);border-radius:4px;overflow:auto}[data-v-8f743d99] .panel-border{margin-bottom:0;border-bottom:1px solid rgb(var(--gray-2))}.moduler-wrap[data-v-8f743d99]{border-radius:4px;background-color:var(--color-bg-2)}.moduler-wrap[data-v-8f743d99] .text{font-size:12px;text-align:center;color:rgb(var(--gray-8))}.moduler-wrap[data-v-8f743d99] .wrapper{margin-bottom:8px;text-align:center;cursor:pointer}.moduler-wrap[data-v-8f743d99] .wrapper:last-child .text{margin-bottom:0}.moduler-wrap[data-v-8f743d99] .wrapper:hover .icon{color:rgb(var(--arcoblue-6));background-color:#e8f3ff}.moduler-wrap[data-v-8f743d99] .wrapper:hover .text{color:rgb(var(--arcoblue-6))}.moduler-wrap[data-v-8f743d99] .icon{display:inline-block;width:32px;height:32px;margin-bottom:4px;color:rgb(var(--dark-gray-1));line-height:32px;font-size:16px;text-align:center;background-color:rgb(var(--gray-1));border-radius:4px}.mobile .container[data-v-8f743d99]{display:block}.mobile .right-side[data-v-8f743d99]{width:100%;margin-left:0;margin-top:16px}
|
BIN
assets/index.2f33078e.css.gz
Normal file
BIN
assets/index.2f33078e.css.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
.arco-layout{display:flex;flex:1;flex-direction:column;margin:0;padding:0}.arco-layout-sider{position:relative;flex:none;width:auto;margin:0;padding:0;background:var(--color-menu-dark-bg);transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-children{height:100%;overflow:auto}.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar{width:0}.arco-layout-sider-has-trigger{box-sizing:border-box;padding-bottom:48px}.arco-layout-sider-trigger{z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;color:var(--color-white);background:rgba(255,255,255,.2);cursor:pointer;transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-trigger-light{color:var(--color-text-1);background:var(--color-menu-light-bg);border-top:1px solid var(--color-bg-5)}.arco-layout-sider-light{background:var(--color-menu-light-bg);box-shadow:0 2px 5px #00000014}.arco-layout-header{flex:0 0 auto;box-sizing:border-box;margin:0}.arco-layout-content{flex:1}.arco-layout-footer{flex:0 0 auto;margin:0}.arco-layout-has-sider{flex-direction:row}.arco-layout-has-sider>.arco-layout,.arco-layout-has-sider>.arco-layout-content{overflow-x:hidden}.arco-space{display:inline-flex}.arco-space-horizontal .arco-space-item{display:flex;align-items:center}.arco-space-vertical{flex-direction:column}.arco-space-align-baseline{align-items:baseline}.arco-space-align-start{align-items:flex-start}.arco-space-align-end{align-items:flex-end}.arco-space-align-center{align-items:center}.arco-space-wrap{flex-wrap:wrap}.arco-space-fill{display:flex}.footer[data-v-4da2ee18]{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center}
|
||||
.arco-layout{display:flex;flex:1;flex-direction:column;margin:0;padding:0}.arco-layout-sider{position:relative;flex:none;width:auto;margin:0;padding:0;background:var(--color-menu-dark-bg);transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-children{height:100%;overflow:auto}.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar{width:0}.arco-layout-sider-has-trigger{box-sizing:border-box;padding-bottom:48px}.arco-layout-sider-trigger{z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;color:var(--color-white);background:rgba(255,255,255,.2);cursor:pointer;transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-trigger-light{color:var(--color-text-1);background:var(--color-menu-light-bg);border-top:1px solid var(--color-bg-5)}.arco-layout-sider-light{background:var(--color-menu-light-bg);box-shadow:0 2px 5px #00000014}.arco-layout-header{flex:0 0 auto;box-sizing:border-box;margin:0}.arco-layout-content{flex:1}.arco-layout-footer{flex:0 0 auto;margin:0}.arco-layout-has-sider{flex-direction:row}.arco-layout-has-sider>.arco-layout,.arco-layout-has-sider>.arco-layout-content{overflow-x:hidden}.footer[data-v-4da2ee18]{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center}
|
BIN
assets/index.3ea786d7.css.gz
Normal file
BIN
assets/index.3ea786d7.css.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
assets/index.749fce18.css
Normal file
1
assets/index.749fce18.css
Normal file
@ -0,0 +1 @@
|
||||
.arco-space{display:inline-flex}.arco-space-horizontal .arco-space-item{display:flex;align-items:center}.arco-space-vertical{flex-direction:column}.arco-space-align-baseline{align-items:baseline}.arco-space-align-start{align-items:flex-start}.arco-space-align-end{align-items:flex-end}.arco-space-align-center{align-items:center}.arco-space-wrap{flex-wrap:wrap}.arco-space-fill{display:flex}
|
1
assets/index.74a4cf06.js
Normal file
1
assets/index.74a4cf06.js
Normal file
@ -0,0 +1 @@
|
||||
import{d as p,r as v,C as d,aE as C,aH as o,aI as e,aM as u,aN as n,u as s,bw as D,bx as y,bl as E,bC as x,bD as A,aX as g,bE as S,bd as w,be as I,G as _,D as k}from"./arco.d6577a9c.js";import{e as N,_ as l}from"./index.c754acd3.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./chart.4acde4c9.js";import"./vue.4f3ae527.js";const m=t=>(w("data-v-b6f30470"),t=t(),I(),t),T=m(()=>_("br",null,null,-1)),V=m(()=>_("br",null,null,-1)),z=p({__name:"banner",setup(t){const a=N(),c=v({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),F=async()=>{};return(q,J)=>{const f=E,r=x,b=A,B=g,h=S;return d(),C(r,{class:"banner"},{default:o(()=>[e(r,null,{default:o(()=>[e(f,{heading:5,style:{"margin-top":"0"}},{default:o(()=>[u(n(s(a).connectState?"\u6B22\u8FCE\u4F60~\uFF0C\u8FDE\u63A5\u6210\u529F\uFF01":"\u6B22\u8FCE\u4F60~\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C\u8FDE\u63A5\u201D\u6309\u94AE\u8FDE\u63A5\u624B\u53F0\u3002"),1)]),_:1})]),_:1}),e(b,{class:"panel-border"}),D(e(h,{style:{width:"360px",marginTop:"2em",marginBottom:"2em"},title:"\u624B\u53F0\u4FE1\u606F"},{default:o(()=>{var i;return[u(" \u5F53\u524D\u56FA\u4EF6\u7248\u672C\uFF1A"+n(s(a).firmwareVersion)+" ",1),T,u(" \u5339\u914D\u5199\u9891\u914D\u7F6E\uFF1A"+n((i=s(a).configuration)==null?void 0:i.name)+" ",1),V,u(" \u5B58\u50A8\u5927\u5C0F\uFF1A"+n(c.eepromSize)+" ",1),e(B,{size:"mini",type:"primary",onClick:F},{default:o(()=>[u("\u68C0\u6D4B")]),_:1})]}),_:1},512),[[y,s(a).connectState]])]),_:1})}}});const $=l(z,[["__scopeId","data-v-b6f30470"]]),G={class:"container"},H={class:"left-side"},M={class:"panel"},X={name:"Dashboard"},j=p({...X,setup(t){return(a,c)=>(d(),k("div",G,[_("div",H,[_("div",M,[e($)])])]))}});const Y=l(j,[["__scopeId","data-v-8f743d99"]]);export{Y as default};
|
BIN
assets/index.74a4cf06.js.gz
Normal file
BIN
assets/index.74a4cf06.js.gz
Normal file
Binary file not shown.
1
assets/index.757d8103.css
Normal file
1
assets/index.757d8103.css
Normal file
@ -0,0 +1 @@
|
||||
.arco-icon-hover.arco-checkbox-icon-hover:before{width:24px;height:24px}.arco-checkbox{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding-left:5px;font-size:14px;line-height:unset;cursor:pointer}.arco-checkbox>input[type=checkbox]{position:absolute;top:0;left:0;width:0;height:0;opacity:0}.arco-checkbox>input[type=checkbox]:focus-visible+.arco-checkbox-icon-hover:before{background-color:var(--color-fill-2)}.arco-checkbox:hover .arco-checkbox-icon-hover:before{background-color:var(--color-fill-2)}.arco-checkbox-label{margin-left:8px;color:var(--color-text-1)}.arco-checkbox-icon{position:relative;box-sizing:border-box;width:14px;height:14px;background-color:var(--color-bg-2);border:2px solid var(--color-fill-3);border-radius:var(--border-radius-small);user-select:none}.arco-checkbox-icon:after{position:absolute;top:50%;left:50%;display:block;width:6px;height:2px;background:var(--color-white);border-radius:.5px;transform:translate(-50%) translateY(-50%) scale(0);content:""}.arco-checkbox-icon-check{position:relative;display:block;width:8px;height:100%;margin:0 auto;color:var(--color-white);transform:scale(0);transform-origin:center 75%}.arco-checkbox:hover .arco-checkbox-icon{border-color:var(--color-fill-4);transition:border-color .1s cubic-bezier(0,0,1,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-checkbox-checked:hover .arco-checkbox-icon,.arco-checkbox-indeterminate:hover .arco-checkbox-icon{transition:transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-checkbox-checked .arco-checkbox-icon{background-color:rgb(var(--primary-6));border-color:transparent}.arco-checkbox-checked .arco-checkbox-icon-check{transform:scale(1);transition:transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-checkbox-indeterminate .arco-checkbox-icon{background-color:rgb(var(--primary-6));border-color:transparent}.arco-checkbox-indeterminate .arco-checkbox-icon svg{transform:scale(0)}.arco-checkbox-indeterminate .arco-checkbox-icon:after{transform:translate(-50%) translateY(-50%) scale(1);transition:transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-checkbox.arco-checkbox-disabled,.arco-checkbox.arco-checkbox-disabled .arco-checkbox-icon-hover{cursor:not-allowed}.arco-checkbox.arco-checkbox-disabled:hover .arco-checkbox-mask{border-color:var(--color-fill-3)}.arco-checkbox-checked:hover .arco-checkbox-icon,.arco-checkbox-indeterminate:hover .arco-checkbox-icon{border-color:transparent}.arco-checkbox-disabled .arco-checkbox-icon{background-color:var(--color-fill-2);border-color:var(--color-fill-3)}.arco-checkbox-disabled.arco-checkbox-checked .arco-checkbox-icon,.arco-checkbox-disabled.arco-checkbox-checked:hover .arco-checkbox-icon{background-color:var(--color-primary-light-3);border-color:transparent}.arco-checkbox-disabled:hover .arco-checkbox-icon-hover:before,.arco-checkbox-checked:hover .arco-checkbox-icon-hover:before,.arco-checkbox-indeterminate:hover .arco-checkbox-icon-hover:before{background-color:transparent}.arco-checkbox-disabled:hover .arco-checkbox-icon{border-color:var(--color-fill-3)}.arco-checkbox-disabled .arco-checkbox-label{color:var(--color-text-4)}.arco-checkbox-disabled .arco-checkbox-icon-check{color:var(--color-fill-3)}.arco-checkbox-group{display:inline-block}.arco-checkbox-group .arco-checkbox{margin-right:16px}.arco-checkbox-group-direction-vertical .arco-checkbox{display:flex;margin-right:0;line-height:32px}
|
BIN
assets/index.757d8103.css.gz
Normal file
BIN
assets/index.757d8103.css.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.8107320e.css.gz
Normal file
BIN
assets/index.8107320e.css.gz
Normal file
Binary file not shown.
1
assets/index.8328de64.js
Normal file
1
assets/index.8328de64.js
Normal file
@ -0,0 +1 @@
|
||||
import{d as o,D as r,C as a}from"./arco.d6577a9c.js";import{f as s,h as n}from"./vue.4f3ae527.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{_ as n}from"./index.97f223cb.js";import{d as c,bB as _,aX as r,D as d,aI as e,G as p,aH as i,C as u,aM as l}from"./arco.d4fda7ae.js";import{f as m}from"./vue.207f026c.js";import"./chart.2986432a.js";const b={class:"content"},f={class:"operation-row"},x=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return u(),d("div",b,[e(s,{class:"result",status:"404",subtitle:"not found"}),p("div",f,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" back ")]),_:1})])])}}});const V=n(x,[["__scopeId","data-v-018ad3bb"]]);export{V as default};
|
||||
import{_ as n}from"./index.c754acd3.js";import{d as c,bB as _,aX as r,D as d,aI as e,G as p,aH as i,C as u,aM as l}from"./arco.d6577a9c.js";import{f as m}from"./vue.4f3ae527.js";import"./chart.4acde4c9.js";const b={class:"content"},f={class:"operation-row"},x=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return u(),d("div",b,[e(s,{class:"result",status:"404",subtitle:"not found"}),p("div",f,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" back ")]),_:1})])])}}});const V=n(x,[["__scopeId","data-v-018ad3bb"]]);export{V as default};
|
File diff suppressed because one or more lines are too long
BIN
assets/index.8748d135.css.gz
Normal file
BIN
assets/index.8748d135.css.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
||||
import{d as r,C as i,aE as x,aH as o,aI as a,aM as s,aN as _,u as n,bw as h,bx as v,bl as b,bC as D,bD as y,bE as E,bd as B,be as C,G as u,D as g}from"./arco.d4fda7ae.js";import{e as A,_ as p}from"./index.97f223cb.js";/* empty css *//* empty css */import"./chart.2986432a.js";import"./vue.207f026c.js";const S=e=>(B("data-v-7cf03418"),e=e(),C(),e),w=S(()=>u("br",null,null,-1)),I=r({__name:"banner",setup(e){const t=A();return(l,H)=>{const F=b,c=D,m=y,f=E;return i(),x(c,{class:"banner"},{default:o(()=>[a(c,null,{default:o(()=>[a(F,{heading:5,style:{"margin-top":"0"}},{default:o(()=>[s(_(n(t).connectState?"\u6B22\u8FCE\u4F60~\uFF0C\u8FDE\u63A5\u6210\u529F\uFF01":"\u6B22\u8FCE\u4F60~\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C\u8FDE\u63A5\u201D\u6309\u94AE\u8FDE\u63A5\u624B\u53F0\u3002"),1)]),_:1})]),_:1}),a(m,{class:"panel-border"}),h(a(f,{style:{width:"360px",marginTop:"2em",marginBottom:"2em"},title:"\u624B\u53F0\u4FE1\u606F"},{default:o(()=>{var d;return[s(" \u5F53\u524D\u56FA\u4EF6\u7248\u672C\uFF1A"+_(n(t).firmwareVersion)+" ",1),w,s(" \u5339\u914D\u5199\u9891\u914D\u7F6E\uFF1A"+_((d=n(t).configuration)==null?void 0:d.name),1)]}),_:1},512),[[v,n(t).connectState]])]),_:1})}}});const $=p(I,[["__scopeId","data-v-7cf03418"]]),N={class:"container"},T={class:"left-side"},V={class:"panel"},k={name:"Dashboard"},G=r({...k,setup(e){return(t,l)=>(i(),g("div",N,[u("div",T,[u("div",V,[a($)])])]))}});const L=p(G,[["__scopeId","data-v-8f743d99"]]);export{L as default};
|
Binary file not shown.
1
assets/index.9647d663.js
Normal file
1
assets/index.9647d663.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as t}from"./index.c754acd3.js";import{C as a,aE as s,aH as _,bf as c,bd as n,be as r,G as d}from"./arco.d6577a9c.js";const p={},i=e=>(n("data-v-4da2ee18"),e=e(),r(),e),f=i(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web",-1));function l(e,u){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[f]),_:1})}const m=t(p,[["render",l],["__scopeId","data-v-4da2ee18"]]);export{m as F};
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
import{f as L,d as S,c as D,C as i,D as p,G as a,aI as e,aH as t,aK as R,aJ as E,b4 as W,aE as j,aN as r,b5 as z,r as A,u as C,aM as v,aW as G,b6 as H,b7 as J,b8 as K,b9 as Q,ba as T,aX as X,bb as O,bc as Y,bd as Z,be as ee}from"./arco.d4fda7ae.js";import{F as oe}from"./index.f1ec7b50.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.97f223cb.js";/* empty css */import{f as te,g as re}from"./vue.207f026c.js";import"./chart.2986432a.js";function le(l=!1){const o=L(l);return{loading:o,setLoading:_=>{o.value=_},toggle:()=>{o.value=!o.value}}}const x="/assets/login-banner.426fb77f.png",ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=S({__name:"banner",setup(l){const{t:o}=V.exports.useI18n(),d=D(()=>[{slogan:o("login.banner.slogan1"),subSlogan:o("login.banner.subSlogan1"),image:x},{slogan:o("login.banner.slogan2"),subSlogan:o("login.banner.subSlogan2"),image:x},{slogan:o("login.banner.slogan3"),subSlogan:o("login.banner.subSlogan3"),image:x}]);return(f,_)=>{const b=z,h=W;return i(),p("div",ce,[a("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:t(()=>[(i(!0),p(R,null,E(d.value,n=>(i(),j(b,{key:n.slogan},{default:t(()=>[(i(),p("div",{key:n.slogan,class:"carousel-item"},[a("div",de,r(n.slogan),1),a("div",_e,r(n.subSlogan),1),a("img",{class:"carousel-image",src:n.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-2ce84fe6"]]),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=S({__name:"login-form",setup(l){const o=te(),{t:d}=V.exports.useI18n(),f=L(""),{loading:_,setLoading:b}=le(),h=se(),n=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),u=A({username:n.value.username,password:n.value.password}),F=async({errors:s,values:c})=>{if(!_.value&&!s){b(!0);try{await h.login(c);const{redirect:m,...w}=o.currentRoute.value.query;o.push({name:m||"Workplace",query:{...w}}),G.success(d("login.form.login.success"));const{rememberPassword:g}=n.value,{username:$,password:y}=c;n.value.username=g?$:"",n.value.password=g?y:""}catch(m){f.value=m.message}finally{b(!1)}}},B=s=>{n.value.rememberPassword=s};return(s,c)=>{const m=ae,w=H,g=J,$=ne,y=K,N=Q,M=T,P=X,q=O,U=Y;return i(),p("div",pe,[a("div",fe,r(s.$t("login.form.title")),1),a("div",be,r(s.$t("login.form.title")),1),a("div",ve,r(f.value),1),e(U,{ref:"loginForm",model:u,class:"login-form",layout:"vertical",onSubmit:F},{default:t(()=>[e(g,{field:"username",rules:[{required:!0,message:s.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:t(()=>[e(w,{modelValue:u.username,"onUpdate:modelValue":c[0]||(c[0]=I=>u.username=I),placeholder:s.$t("login.form.userName.placeholder")},{prefix:t(()=>[e(m)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(g,{field:"password",rules:[{required:!0,message:s.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:t(()=>[e(y,{modelValue:u.password,"onUpdate:modelValue":c[1]||(c[1]=I=>u.password=I),placeholder:s.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:t(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(q,{size:16,direction:"vertical"},{default:t(()=>[a("div",he,[e(N,{checked:"rememberPassword","model-value":C(n).rememberPassword,onChange:B},{default:t(()=>[v(r(s.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(M,null,{default:t(()=>[v(r(s.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(_)},{default:t(()=>[v(r(s.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:t(()=>[v(r(s.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-0c627d4f"]]),ye=l=>(Z("data-v-7183afbd"),l=l(),ee(),l),Ie={class:"container"},xe=ye(()=>a("div",{class:"logo"},[a("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),a("div",{class:"logo-text"},"Arco Design Pro")],-1)),Se={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ce=S({__name:"index",setup(l){return(o,d)=>(i(),p("div",Ie,[xe,e(ge),a("div",Se,[a("div",ke,[e($e)]),a("div",Pe,[e(oe)])])]))}});const qe=k(Ce,[["__scopeId","data-v-7183afbd"]]);export{qe as default};
|
Binary file not shown.
1
assets/index.a2846a1f.js
Normal file
1
assets/index.a2846a1f.js
Normal file
@ -0,0 +1 @@
|
||||
import{f as L,d as x,c as D,C as i,D as p,G as a,aI as e,aH as t,aK as R,aJ as E,b4 as W,aE as j,aN as r,b5 as z,r as A,u as C,aM as v,aW as G,b6 as H,b7 as J,b8 as K,b9 as Q,ba as T,aX as X,bb as O,bc as Y,bd as Z,be as ee}from"./arco.d6577a9c.js";import{F as oe}from"./index.9647d663.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.c754acd3.js";/* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.4f3ae527.js";import"./chart.4acde4c9.js";function le(l=!1){const o=L(l);return{loading:o,setLoading:_=>{o.value=_},toggle:()=>{o.value=!o.value}}}const S="/assets/login-banner.426fb77f.png",ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(l){const{t:o}=V.exports.useI18n(),d=D(()=>[{slogan:o("login.banner.slogan1"),subSlogan:o("login.banner.subSlogan1"),image:S},{slogan:o("login.banner.slogan2"),subSlogan:o("login.banner.subSlogan2"),image:S},{slogan:o("login.banner.slogan3"),subSlogan:o("login.banner.subSlogan3"),image:S}]);return(f,_)=>{const b=z,h=W;return i(),p("div",ce,[a("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:t(()=>[(i(!0),p(R,null,E(d.value,n=>(i(),j(b,{key:n.slogan},{default:t(()=>[(i(),p("div",{key:n.slogan,class:"carousel-item"},[a("div",de,r(n.slogan),1),a("div",_e,r(n.subSlogan),1),a("img",{class:"carousel-image",src:n.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-2ce84fe6"]]),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(l){const o=te(),{t:d}=V.exports.useI18n(),f=L(""),{loading:_,setLoading:b}=le(),h=se(),n=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),u=A({username:n.value.username,password:n.value.password}),F=async({errors:s,values:c})=>{if(!_.value&&!s){b(!0);try{await h.login(c);const{redirect:m,...w}=o.currentRoute.value.query;o.push({name:m||"Workplace",query:{...w}}),G.success(d("login.form.login.success"));const{rememberPassword:g}=n.value,{username:$,password:y}=c;n.value.username=g?$:"",n.value.password=g?y:""}catch(m){f.value=m.message}finally{b(!1)}}},B=s=>{n.value.rememberPassword=s};return(s,c)=>{const m=ae,w=H,g=J,$=ne,y=K,N=Q,M=T,P=X,q=O,U=Y;return i(),p("div",pe,[a("div",fe,r(s.$t("login.form.title")),1),a("div",be,r(s.$t("login.form.title")),1),a("div",ve,r(f.value),1),e(U,{ref:"loginForm",model:u,class:"login-form",layout:"vertical",onSubmit:F},{default:t(()=>[e(g,{field:"username",rules:[{required:!0,message:s.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:t(()=>[e(w,{modelValue:u.username,"onUpdate:modelValue":c[0]||(c[0]=I=>u.username=I),placeholder:s.$t("login.form.userName.placeholder")},{prefix:t(()=>[e(m)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(g,{field:"password",rules:[{required:!0,message:s.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:t(()=>[e(y,{modelValue:u.password,"onUpdate:modelValue":c[1]||(c[1]=I=>u.password=I),placeholder:s.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:t(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(q,{size:16,direction:"vertical"},{default:t(()=>[a("div",he,[e(N,{checked:"rememberPassword","model-value":C(n).rememberPassword,onChange:B},{default:t(()=>[v(r(s.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(M,null,{default:t(()=>[v(r(s.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(_)},{default:t(()=>[v(r(s.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:t(()=>[v(r(s.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-0c627d4f"]]),ye=l=>(Z("data-v-7183afbd"),l=l(),ee(),l),Ie={class:"container"},Se=ye(()=>a("div",{class:"logo"},[a("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),a("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ce=x({__name:"index",setup(l){return(o,d)=>(i(),p("div",Ie,[Se,e(ge),a("div",xe,[a("div",ke,[e($e)]),a("div",Pe,[e(oe)])])]))}});const De=k(Ce,[["__scopeId","data-v-7183afbd"]]);export{De as default};
|
BIN
assets/index.a2846a1f.js.gz
Normal file
BIN
assets/index.a2846a1f.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
assets/index.b423884e.css
Normal file
1
assets/index.b423884e.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.b423884e.css.gz
Normal file
BIN
assets/index.b423884e.css.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.c0474d9d.css
Normal file
1
assets/index.c0474d9d.css
Normal file
@ -0,0 +1 @@
|
||||
.arco-tooltip-content{max-width:350px;padding:8px 12px;color:#fff;font-size:14px;line-height:1.5715;text-align:left;word-wrap:break-word;background-color:var(--color-tooltip-bg);border-radius:var(--border-radius-small)}.arco-tooltip-mini{padding:4px 12px;font-size:14px}.arco-tooltip-popup-arrow{background-color:var(--color-tooltip-bg)}.arco-popover-popup-content{box-sizing:border-box;padding:12px 16px;color:var(--color-text-2);font-size:14px;line-height:1.5715;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-popover-title{color:var(--color-text-1);font-weight:500;font-size:16px}.arco-popover-content{margin-top:4px;text-align:left;word-wrap:break-word}.arco-popover-popup-arrow{z-index:1;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3)}.arco-typography{color:var(--color-text-1);line-height:1.5715;white-space:normal;overflow-wrap:anywhere}h1.arco-typography,h2.arco-typography,h3.arco-typography,h4.arco-typography,h5.arco-typography,h6.arco-typography{margin-top:1em;margin-bottom:.5em;font-weight:500}h1.arco-typography{font-size:36px;line-height:1.23}h2.arco-typography{font-size:32px;line-height:1.25}h3.arco-typography{font-size:28px;line-height:1.29}h4.arco-typography{font-size:24px;line-height:1.33}h5.arco-typography{font-size:20px;line-height:1.4}h6.arco-typography{font-size:16px;line-height:1.5}div.arco-typography,p.arco-typography{margin-top:0;margin-bottom:1em}.arco-typography-primary{color:rgb(var(--primary-6))}.arco-typography-secondary{color:var(--color-text-2)}.arco-typography-success{color:rgb(var(--success-6))}.arco-typography-warning{color:rgb(var(--warning-6))}.arco-typography-danger{color:rgb(var(--danger-6))}.arco-typography-disabled{color:var(--color-text-4);cursor:not-allowed}.arco-typography mark{background-color:rgb(var(--yellow-4))}.arco-typography u{text-decoration:underline}.arco-typography del{text-decoration:line-through}.arco-typography b{font-weight:500}.arco-typography code{margin:0 2px;padding:2px 8px;color:var(--color-text-2);font-size:85%;background-color:var(--color-neutral-2);border:1px solid var(--color-neutral-3);border-radius:2px}.arco-typography blockquote{margin:0 0 1em;padding-left:8px;background-color:var(--color-bg-2);border-left:2px solid var(--color-neutral-6)}.arco-typography ol,.arco-typography ul{margin:0;padding:0}.arco-typography ul li,.arco-typography ol li{margin-left:20px}.arco-typography ul{list-style:circle}.arco-typography-spacing-close{line-height:1.3}.arco-typography-operation-copy,.arco-typography-operation-copied{margin-left:2px;padding:2px}.arco-typography-operation-copy{color:var(--color-text-2);background-color:transparent;border-radius:2px;cursor:pointer;transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-typography-operation-copy:hover{color:var(--color-text-2);background-color:var(--color-fill-2)}.arco-typography-operation-copied{color:rgb(var(--success-6))}.arco-typography-operation-edit{margin-left:2px;padding:2px;color:var(--color-text-2);background-color:transparent;border-radius:2px;cursor:pointer;transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-typography-operation-edit:hover{color:var(--color-text-2);background-color:var(--color-fill-2)}.arco-typography-operation-expand{margin:0 4px;color:rgb(var(--primary-6));cursor:pointer}.arco-typography-operation-expand:hover{color:rgb(var(--primary-5))}.arco-typography-edit-content{position:relative;left:-13px;margin-top:-5px;margin-right:-13px;margin-bottom:calc(1em - 5px)}.arco-typography-css-operation{margin-top:-1em;margin-bottom:1em;text-align:right}
|
BIN
assets/index.c0474d9d.css.gz
Normal file
BIN
assets/index.c0474d9d.css.gz
Normal file
Binary file not shown.
1
assets/index.c61a5e20.css
Normal file
1
assets/index.c61a5e20.css
Normal file
@ -0,0 +1 @@
|
||||
.arco-trigger-wrapper{display:inline-block}.arco-trigger-popup{position:absolute;z-index:1000}.arco-trigger-arrow{position:absolute;z-index:-1;display:block;box-sizing:border-box;width:8px;height:8px;background-color:var(--color-bg-5);content:""}.arco-trigger-popup[trigger-placement=top] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=tl] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=tr] .arco-trigger-arrow{border-top:none;border-left:none;border-bottom-right-radius:var(--border-radius-small)}.arco-trigger-popup[trigger-placement=bottom] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=bl] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=br] .arco-trigger-arrow{border-right:none;border-bottom:none;border-top-left-radius:var(--border-radius-small)}.arco-trigger-popup[trigger-placement=left] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=lt] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=lb] .arco-trigger-arrow{border-bottom:none;border-left:none;border-top-right-radius:var(--border-radius-small)}.arco-trigger-popup[trigger-placement=right] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=rt] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=rb] .arco-trigger-arrow{border-top:none;border-right:none;border-bottom-left-radius:var(--border-radius-small)}
|
BIN
assets/index.c61a5e20.css.gz
Normal file
BIN
assets/index.c61a5e20.css.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.c754acd3.js.gz
Normal file
BIN
assets/index.c754acd3.js.gz
Normal file
Binary file not shown.
1
assets/index.da5c768e.js
Normal file
1
assets/index.da5c768e.js
Normal file
@ -0,0 +1 @@
|
||||
import{e as D,_ as w}from"./index.c754acd3.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{a as k,b as x,f as A,g as h}from"./serial.dacf7476.js";import{d as v,r as C,b0 as g,C as T,D as M,aI as o,aH as u,aM as l,G as R,n as _,aX as H,bF as O,bG as P,bb as U,bD as L,bE as V,bC as $,bH as I}from"./arco.d6577a9c.js";import"./chart.4acde4c9.js";import"./vue.4f3ae527.js";const K={class:"container"},S=["innerHTML"],z={name:"Card"},N=v({...z,setup(j){const d=D(),n=C({status:"\u70B9\u51FB\u5907\u4EFD\u6309\u94AE\u5C06\u751F\u6210EEPROM\u5907\u4EFD\u6587\u4EF6<br/><br/>",eepromType:""}),m=async()=>{await k()},F=async()=>{let e=8192;switch(n.eepromType){case"1":e=8192;break;case"2":e=131072;break;case"3":e=262144;break;case"4":e=524288;break;default:e=8192}let c=new Uint8Array(e);for(let s=0;s<e;s+=128){const p=await x(d.connectPort,s);c.set(p,s),n.status=n.status+"\u5907\u4EFD\u8FDB\u5EA6\uFF1A"+(s/e*100).toFixed(1)+"%<br/>",_(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)})}n.status=n.status+"\u5907\u4EFD\u8FDB\u5EA6\uFF1A100%<br/>",_(()=>{const s=document==null?void 0:document.getElementById("statusArea");s&&(s.scrollTop=s==null?void 0:s.scrollHeight)}),console.log(c);const i=new Blob([c],{type:"application/octet-stream"}),a=URL.createObjectURL(i),t=document.createElement("a");t.href=a,t.download=new Date+"_backup.bin",document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(a)},b=async()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const c=new Blob([e.files[0]],{type:"application/octet-stream"}),i=new Uint8Array(await c.arrayBuffer());for(let a=0;a<e.files[0].size;a+=128)await A(d.connectPort,a,i.slice(a,a+128)),n.status=n.status+"\u6062\u590D\u8FDB\u5EA6\uFF1A"+(a/e.files[0].size*100).toFixed(1)+"%<br/>",_(()=>{const t=document==null?void 0:document.getElementById("statusArea");t&&(t.scrollTop=t==null?void 0:t.scrollHeight)});n.status=n.status+"\u6062\u590D\u8FDB\u5EA6\uFF1A100%<br/>",h(d.connectPort)},e.click()};return(e,c)=>{const i=g("Breadcrumb"),a=H,t=O,s=P,p=U,r=L,f=V,E=$,y=I;return T(),M("div",K,[o(i,{items:["\u5C0F\u5DE5\u5177","\u5907\u4EFD/\u8FD8\u539F"]}),o(y,{gutter:20,align:"stretch"},{default:u(()=>[o(E,{span:24},{default:u(()=>[o(f,{class:"general-card",title:"\u5907\u4EFD/\u8FD8\u539F"},{default:u(()=>[o(p,null,{default:u(()=>[o(a,{type:"primary",onClick:F},{default:u(()=>[l("\u5907\u4EFD")]),_:1}),o(a,{onClick:b},{default:u(()=>[l("\u6062\u590D")]),_:1}),o(s,{modelValue:n.eepromType,"onUpdate:modelValue":c[0]||(c[0]=B=>n.eepromType=B),style:{width:"320px"},placeholder:"\u9009\u62E9EEPROM\u5927\u5C0F"},{default:u(()=>[o(t,{value:"1"},{default:u(()=>[l("8KB\uFF0864Kbit\uFF09")]),_:1}),o(t,{value:"2"},{default:u(()=>[l("128KB\uFF081Mbit\uFF09")]),_:1}),o(t,{value:"3"},{default:u(()=>[l("256KB\uFF082Mbit\uFF09")]),_:1}),o(t,{value:"4"},{default:u(()=>[l("512KB\uFF084Mbit\uFF09")]),_:1})]),_:1},8,["modelValue"]),o(a,{type:"text",onClick:m},{default:u(()=>[l("\u81EA\u52A8\u68C0\u6D4B")]),_:1})]),_:1}),o(r),R("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:n.status},null,8,S)]),_:1})]),_:1})]),_:1})])}}});const oe=w(N,[["__scopeId","data-v-5a428d72"]]);export{oe as default};
|
BIN
assets/index.da5c768e.js.gz
Normal file
BIN
assets/index.da5c768e.js.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
||||
import{d as o,D as r,C as a}from"./arco.d4fda7ae.js";import{f as s,h as n}from"./vue.207f026c.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 +0,0 @@
|
||||
import{_ as t}from"./index.97f223cb.js";import{C as a,aE as s,aH as _,bf as c,bd as n,be as d,G as r}from"./arco.d4fda7ae.js";const p={},i=e=>(n("data-v-4da2ee18"),e=e(),d(),e),f=i(()=>r("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web",-1));function l(e,u){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[f]),_:1})}const b=t(p,[["render",l],["__scopeId","data-v-4da2ee18"]]);export{b as F};
|
1
assets/serial.29e407fe.css
Normal file
1
assets/serial.29e407fe.css
Normal file
@ -0,0 +1 @@
|
||||
.arco-scrollbar{position:relative}.arco-scrollbar-container{position:relative;scrollbar-width:none}.arco-scrollbar-container::-webkit-scrollbar{display:none}.arco-scrollbar-track{position:absolute;z-index:100}.arco-scrollbar-track-direction-horizontal{bottom:0;left:0;box-sizing:border-box;width:100%;height:15px}.arco-scrollbar-track-direction-vertical{top:0;right:0;box-sizing:border-box;width:15px;height:100%}.arco-scrollbar-thumb{position:absolute;display:block;box-sizing:border-box}.arco-scrollbar-thumb-bar{width:100%;height:100%;background-color:var(--color-neutral-4);border-radius:6px}.arco-scrollbar-thumb:hover .arco-scrollbar-thumb-bar,.arco-scrollbar-thumb-dragging .arco-scrollbar-thumb-bar{background-color:var(--color-neutral-6)}.arco-scrollbar-thumb-direction-horizontal .arco-scrollbar-thumb-bar{height:9px;margin:3px 0}.arco-scrollbar-thumb-direction-vertical .arco-scrollbar-thumb-bar{width:9px;margin:0 3px}.arco-scrollbar.arco-scrollbar-type-embed .arco-scrollbar-thumb{opacity:0;transition:opacity ease .2s}.arco-scrollbar.arco-scrollbar-type-embed .arco-scrollbar-thumb-dragging,.arco-scrollbar.arco-scrollbar-type-embed:hover .arco-scrollbar-thumb{opacity:.8}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-track{background-color:var(--color-neutral-1)}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-track-direction-horizontal{border-top:1px solid var(--color-neutral-3);border-bottom:1px solid var(--color-neutral-3)}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-track-direction-vertical{border-right:1px solid var(--color-neutral-3);border-left:1px solid var(--color-neutral-3)}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-thumb-direction-horizontal{margin:-1px 0}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-thumb-direction-vertical{margin:0 -1px}.arco-scrollbar.arco-scrollbar-type-track.arco-scrollbar-both .arco-scrollbar-track-direction-vertical:after{position:absolute;right:-1px;bottom:0;display:block;box-sizing:border-box;width:15px;height:15px;background-color:var(--color-neutral-1);border-right:1px solid var(--color-neutral-3);border-bottom:1px solid var(--color-neutral-3);content:""}
|
BIN
assets/serial.29e407fe.css.gz
Normal file
BIN
assets/serial.29e407fe.css.gz
Normal file
Binary file not shown.
1
assets/serial.dacf7476.js
Normal file
1
assets/serial.dacf7476.js
Normal file
@ -0,0 +1 @@
|
||||
async function k(){if(!("serial"in navigator))return alert("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u7F51\u9875\u4E32\u53E3\u529F\u80FD\uFF0C\u8BF7\u4F7F\u7528 Chrome, Edge, Opera \u6D4F\u89C8\u5668\u3002"),null;try{const e=await navigator.serial.requestPort();return await e.open({baudRate:38400}),e}catch(e){return console.error("Error connecting to the serial port:",e),null}}async function U(e){try{e&&e.readable?(await e.close(),console.log("Serial port disconnected.")):console.warn("Serial port is not open.")}catch(n){console.error("Error closing the serial port:",n)}}function y(e){let n=new Uint8Array(e);const r=new Uint8Array([22,108,20,230,46,145,13,64,33,53,213,64,19,3,233,128]);for(let o=0;o<n.length;o++)n[o]^=r[o%r.length];return n}function g(e,n=0){for(let o=0;o<e.length;o++){n^=e[o]<<8;for(let t=0;t<8;t++)n&32768?n=n<<1^4129:n<<=1;n&=65535}return n}function b(e){const n=new Uint8Array([171,205]),r=new Uint8Array([e.length&255,e.length>>8&255]),o=new Uint8Array([g(e)&255,g(e)>>8&255]),t=new Uint8Array([...e,...o]),i=y(t),f=new Uint8Array([220,186]);return new Uint8Array([...n,...r,...i,...f])}function m(e){const n=new Uint8Array([e[2],e[3]]),r=e.slice(4,e.length-4);if(r.length!==n[0]+(n[1]<<8))throw"Packet length does not match the length field.";return y(r)}async function w(e,n,r=1e3){const o=e.readable.getReader();let t=new Uint8Array,i;try{return await new Promise((f,c)=>{function s({value:a,done:p}){if(p){c("Reader has been cancelled."),console.log("Reader has been cancelled. Current Buffer:",t,A(t));return}for(t=new Uint8Array([...t,...a]);t.length>0&&t[0]!==171;)t=t.slice(1);for(;t.length>=4&&t[0]===171&&t[1]===205;){const l=t[2]+(t[3]<<8),d=l+8;if(t.length>=d){const u=t.slice(0,d);if(u[l+6]===220&&u[l+7]===186){t=t.slice(d);const h=m(u);if(h[0]!==n){console.log("Unexpected packet received:",h);continue}f(h);return}else t=t.slice(1)}else break}o.read().then(s).catch(l=>{console.error("Error reading data from the serial port:",l),c(l)})}o.read().then(s).catch(a=>{console.error("Error reading data from the serial port:",a),c(a)}),i=setTimeout(()=>{o.cancel().then(()=>{c("Timeout: Packet not received within the specified time.")}).catch(a=>{console.error("Error cancelling reader:",a),c(a)})},r)})}finally{clearTimeout(i),o.releaseLock()}}async function x(e,n){try{const r=e.writable.getWriter(),o=b(n);await r.write(o),r.releaseLock()}catch(r){return console.error("Error sending packet:",r),console.log("Error sending packet. Aborting."),Promise.reject(r)}}function A(e){return Array.from(e).map(n=>n.toString(16).padStart(2,"0")).join("")}async function _(e){const n=new Uint8Array([20,5,4,0,255,255,255,255]);await x(e,n);const r=await w(e,21),o=new TextDecoder,t=new Uint8Array(r.slice(4,4+16));return o.decode(t.slice(0,t.indexOf(0)))}async function D(e,n,r=128){const o=(n&65280)>>8,t=n&255,i=(n&4278190080)>>24,f=(n&16711680)>>16,c=new Uint8Array([43,5,8,0,f,i,128,0,255,255,255,255,t,o]);await x(e,c);const s=await w(e,28);if(s[6]!==r)throw"eeprom read reply has wrong size.";return new Uint8Array(s.slice(8))}async function E(e,n,r,o=128){const t=(n&65280)>>8,i=n&255,f=(n&4278190080)>>24,c=(n&16711680)>>16,s=new Uint8Array([56,5,28,0,c,f,130,0,255,255,255,255,i,t]),a=new Uint8Array(s.length+r.length);return a.set(s),a.set(r,s.length),await x(e,a),await w(e,30),!0}async function P(e){const n=new Uint8Array([221,5]);return await x(e,n),!0}async function T(e){return alert("TODO"),null}export{T as a,D as b,k as c,U as d,_ as e,E as f,P as g};
|
BIN
assets/serial.dacf7476.js.gz
Normal file
BIN
assets/serial.dacf7476.js.gz
Normal file
Binary file not shown.
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.d4fda7ae.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.d6577a9c.js";/*!
|
||||
* vue-router v4.2.5
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
BIN
assets/vue.4f3ae527.js.gz
Normal file
BIN
assets/vue.4f3ae527.js.gz
Normal file
Binary file not shown.
@ -5,10 +5,10 @@
|
||||
<link rel="shortcut icon" type="image/x-icon" href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>K5Web</title>
|
||||
<script type="module" crossorigin src="/assets/index.97f223cb.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/arco.d4fda7ae.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/chart.2986432a.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/vue.207f026c.js">
|
||||
<script type="module" crossorigin src="/assets/index.c754acd3.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/arco.d6577a9c.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/chart.4acde4c9.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/vue.4f3ae527.js">
|
||||
<link rel="stylesheet" href="/assets/index.5ab869ac.css">
|
||||
</head>
|
||||
<body>
|
||||
|
Loading…
Reference in New Issue
Block a user