This commit is contained in:
Silent YANG 2024-05-27 01:46:41 +08:00
parent 58d24fa989
commit d369e95806
74 changed files with 33 additions and 33 deletions

View File

@ -1,4 +1,4 @@
import{u as au,b as Dg,c as Fg,d as Za,e as lt,v as Ya,l as Xa,_ as $t,f as Mg,g as Bg,L as Pg,h as $g,i as Ug,j as Wg,k as su,R as Hg,D as Ng,m as Kg,n as kg,o as zg,p as Gg,q as qg,r as Zg,s as Na}from"./index.ff32156d.js";import{F as Yg}from"./index.6f661862.js";import{a_ as tu,aO as Bt,c as cn,d as ct,f as ft,aI as m,bh as Xg,aU as Jg,h as Ka,bi as ka,bj as Vg,bk as Qg,i as jg,ba as n1,bl as e1,bm as Ja,C as nn,D as De,G as J,aH as S,aM as ye,aN as fe,u as vn,aE as xn,aF as ze,aK as Pt,aJ as ru,bn as Rr,bo as Or,bp as t1,Q as r1,a$ as i1,a0 as u1,bq as Va,ao as o1,E as Qa,br as a1,a2 as s1,be as ja,bf as ns,w as es,bs as f1,bt as l1,o as ts,bu as c1,b as h1,b2 as iu,bv as za,bw as _1,bx as p1,r as d1,p as g1,aZ as v1,by as m1,F as Ga,bz as w1,bA as b1}from"./arco.f43727df.js";import{f as Dr,h as Fr,i as x1,j as y1,k as S1,l as A1}from"./vue.cbdb927d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as qa,c as L1,e as E1}from"./serial.c741fbda.js";import{L as I1,F as C1,a as T1}from"./index.d1c8222e.js";import{I as R1}from"./form-model.ffdc7ae1.js";import{B as O1}from"./index.bf1946d0.js";import{D as D1}from"./index.06856dc3.js";import"./chart.3c227ebb.js";import"./index.e3ab1903.js";import"./dialog.a5e3d152.js";const rs="LoseHu 117 \u5386\u53F2\u7248\u672C",is="official",us="official",F1={name:rs,uart:is,charset:us},M1=Object.freeze(Object.defineProperty({__proto__:null,name:rs,uart:is,charset:us,default:F1},Symbol.toStringTag,{value:"Module"})),os="LoseHu 117 \u5386\u53F2\u7248\u672C\u6269\u5BB9\u7248",as="losehu",ss="losehu",fs=!0,B1={name:os,uart:as,charset:ss,K:fs},P1=Object.freeze(Object.defineProperty({__proto__:null,name:os,uart:as,charset:ss,K:fs,default:B1},Symbol.toStringTag,{value:"Module"})),ls="LoseHu 118+",cs="official",hs="official",$1={name:ls,uart:cs,charset:hs},U1=Object.freeze(Object.defineProperty({__proto__:null,name:ls,uart:cs,charset:hs,default:$1},Symbol.toStringTag,{value:"Module"})),_s="LoseHu 118+ 2Mbit \u6269\u5BB9\u7248",ps="losehu",ds="gb2312",gs=!0,vs=!0,W1={name:_s,uart:ps,charset:ds,H:gs,sat:vs},H1=Object.freeze(Object.defineProperty({__proto__:null,name:_s,uart:ps,charset:ds,H:gs,sat:vs,default:W1},Symbol.toStringTag,{value:"Module"})),ms="LoseHu 118+ \u6269\u5BB9\u7248",ws="losehu",bs="gb2312",xs=!0,N1={name:ms,uart:ws,charset:bs,K:xs},K1=Object.freeze(Object.defineProperty({__proto__:null,name:ms,uart:ws,charset:bs,K:xs,default:N1},Symbol.toStringTag,{value:"Module"})),ys="LoseHu 120+ \u6269\u5BB9\u7248",Ss="losehu",As="gb2312",Ls=!0,Es=!0,k1={name:ys,uart:Ss,charset:As,K:Ls,sat:Es},z1=Object.freeze(Object.defineProperty({__proto__:null,name:ys,uart:Ss,charset:As,K:Ls,sat:Es,default:k1},Symbol.toStringTag,{value:"Module"})),Is="LoseHu 124+ 2Mbit \u6269\u5BB9\u7248",Cs="losehu",Ts="gb2312",Rs=!0,Os=!0,Ds=!0,G1={name:Is,uart:Cs,charset:Ts,H:Rs,sat:Os,newpinyin:Ds},q1=Object.freeze(Object.defineProperty({__proto__:null,name:Is,uart:Cs,charset:Ts,H:Rs,sat:Os,newpinyin:Ds,default:G1},Symbol.toStringTag,{value:"Module"})),Fs="LoseHu Patch LTS\uFF08BD8DFN\uFF09",Ms="official",Bs="official",Ps=!0,Z1={name:Fs,uart:Ms,charset:Bs,localmdc:Ps},Y1=Object.freeze(Object.defineProperty({__proto__:null,name:Fs,uart:Ms,charset:Bs,localmdc:Ps,default:Z1},Symbol.toStringTag,{value:"Module"})),$s="LoseHu Patch LTS\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",Us="losehu",Ws="losehu",Hs=!0,Ns=!0,X1={name:$s,uart:Us,charset:Ws,K:Hs,localmdc:Ns},J1=Object.freeze(Object.defineProperty({__proto__:null,name:$s,uart:Us,charset:Ws,K:Hs,localmdc:Ns,default:X1},Symbol.toStringTag,{value:"Module"})),Ks="Official",V1={name:Ks},Q1=Object.freeze(Object.defineProperty({__proto__:null,name:Ks,default:V1},Symbol.toStringTag,{value:"Module"}));function j1(){const E=Dr(),b=au();return{logout:async T=>{await b.logout();const H=E.currentRoute.value;tu.success("\u767B\u51FA\u6210\u529F"),E.push({name:T&&typeof T=="string"?T:"login",query:{...E.currentRoute.value.query,redirect:H.name}})}}}const nv=(E,b)=>{const{target:a="_blank",...T}=b||{};window.open(E,a,Object.entries(T).reduce((H,G)=>{const[R,V]=G;return[...H,`${R}=${V}`]},[]).join(","))},ev=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),tv=[...Dg,...Fg],rv=tv.map(E=>{const{name:b,path:a,meta:T,redirect:H,children:G}=E;return{name:b,path:a,meta:T,redirect:H,children:G}}),iv=rv;var uu={exports:{}};/**
import{u as au,b as Dg,c as Fg,d as Za,e as lt,v as Ya,l as Xa,_ as $t,f as Mg,g as Bg,L as Pg,h as $g,i as Ug,j as Wg,k as su,R as Hg,D as Ng,m as Kg,n as kg,o as zg,p as Gg,q as qg,r as Zg,s as Na}from"./index.a585e6b1.js";import{F as Yg}from"./index.1605b9c2.js";import{a_ as tu,aO as Bt,c as cn,d as ct,f as ft,aI as m,bh as Xg,aU as Jg,h as Ka,bi as ka,bj as Vg,bk as Qg,i as jg,ba as n1,bl as e1,bm as Ja,C as nn,D as De,G as J,aH as S,aM as ye,aN as fe,u as vn,aE as xn,aF as ze,aK as Pt,aJ as ru,bn as Rr,bo as Or,bp as t1,Q as r1,a$ as i1,a0 as u1,bq as Va,ao as o1,E as Qa,br as a1,a2 as s1,be as ja,bf as ns,w as es,bs as f1,bt as l1,o as ts,bu as c1,b as h1,b2 as iu,bv as za,bw as _1,bx as p1,r as d1,p as g1,aZ as v1,by as m1,F as Ga,bz as w1,bA as b1}from"./arco.f43727df.js";import{f as Dr,h as Fr,i as x1,j as y1,k as S1,l as A1}from"./vue.cbdb927d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as qa,c as L1,e as E1}from"./serial.c741fbda.js";import{L as I1,F as C1,a as T1}from"./index.70c9fed2.js";import{I as R1}from"./form-model.724991ed.js";import{B as O1}from"./index.9afeca78.js";import{D as D1}from"./index.46911dcd.js";import"./chart.3c227ebb.js";import"./index.32ded5d6.js";import"./dialog.85e1bd85.js";const rs="LoseHu 117 \u5386\u53F2\u7248\u672C",is="official",us="official",F1={name:rs,uart:is,charset:us},M1=Object.freeze(Object.defineProperty({__proto__:null,name:rs,uart:is,charset:us,default:F1},Symbol.toStringTag,{value:"Module"})),os="LoseHu 117 \u5386\u53F2\u7248\u672C\u6269\u5BB9\u7248",as="losehu",ss="losehu",fs=!0,B1={name:os,uart:as,charset:ss,K:fs},P1=Object.freeze(Object.defineProperty({__proto__:null,name:os,uart:as,charset:ss,K:fs,default:B1},Symbol.toStringTag,{value:"Module"})),ls="LoseHu 118+",cs="official",hs="official",$1={name:ls,uart:cs,charset:hs},U1=Object.freeze(Object.defineProperty({__proto__:null,name:ls,uart:cs,charset:hs,default:$1},Symbol.toStringTag,{value:"Module"})),_s="LoseHu 118+ 2Mbit \u6269\u5BB9\u7248",ps="losehu",ds="gb2312",gs=!0,vs=!0,W1={name:_s,uart:ps,charset:ds,H:gs,sat:vs},H1=Object.freeze(Object.defineProperty({__proto__:null,name:_s,uart:ps,charset:ds,H:gs,sat:vs,default:W1},Symbol.toStringTag,{value:"Module"})),ms="LoseHu 118+ \u6269\u5BB9\u7248",ws="losehu",bs="gb2312",xs=!0,N1={name:ms,uart:ws,charset:bs,K:xs},K1=Object.freeze(Object.defineProperty({__proto__:null,name:ms,uart:ws,charset:bs,K:xs,default:N1},Symbol.toStringTag,{value:"Module"})),ys="LoseHu 120+ \u6269\u5BB9\u7248",Ss="losehu",As="gb2312",Ls=!0,Es=!0,k1={name:ys,uart:Ss,charset:As,K:Ls,sat:Es},z1=Object.freeze(Object.defineProperty({__proto__:null,name:ys,uart:Ss,charset:As,K:Ls,sat:Es,default:k1},Symbol.toStringTag,{value:"Module"})),Is="LoseHu 124+ 2Mbit \u6269\u5BB9\u7248",Cs="losehu",Ts="gb2312",Rs=!0,Os=!0,Ds=!0,G1={name:Is,uart:Cs,charset:Ts,H:Rs,sat:Os,newpinyin:Ds},q1=Object.freeze(Object.defineProperty({__proto__:null,name:Is,uart:Cs,charset:Ts,H:Rs,sat:Os,newpinyin:Ds,default:G1},Symbol.toStringTag,{value:"Module"})),Fs="LoseHu Patch LTS\uFF08BD8DFN\uFF09",Ms="official",Bs="official",Ps=!0,Z1={name:Fs,uart:Ms,charset:Bs,localmdc:Ps},Y1=Object.freeze(Object.defineProperty({__proto__:null,name:Fs,uart:Ms,charset:Bs,localmdc:Ps,default:Z1},Symbol.toStringTag,{value:"Module"})),$s="LoseHu Patch LTS\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",Us="losehu",Ws="losehu",Hs=!0,Ns=!0,X1={name:$s,uart:Us,charset:Ws,K:Hs,localmdc:Ns},J1=Object.freeze(Object.defineProperty({__proto__:null,name:$s,uart:Us,charset:Ws,K:Hs,localmdc:Ns,default:X1},Symbol.toStringTag,{value:"Module"})),Ks="Official",V1={name:Ks},Q1=Object.freeze(Object.defineProperty({__proto__:null,name:Ks,default:V1},Symbol.toStringTag,{value:"Module"}));function j1(){const E=Dr(),b=au();return{logout:async T=>{await b.logout();const H=E.currentRoute.value;tu.success("\u767B\u51FA\u6210\u529F"),E.push({name:T&&typeof T=="string"?T:"login",query:{...E.currentRoute.value.query,redirect:H.name}})}}}const nv=(E,b)=>{const{target:a="_blank",...T}=b||{};window.open(E,a,Object.entries(T).reduce((H,G)=>{const[R,V]=G;return[...H,`${R}=${V}`]},[]).join(","))},ev=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),tv=[...Dg,...Fg],rv=tv.map(E=>{const{name:b,path:a,meta:T,redirect:H,children:G}=E;return{name:b,path:a,meta:T,redirect:H,children:G}}),iv=rv;var uu={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{u as ee,i as le,g as tt,a as re,_ as Ve,l as rt,b as nt,c as H,d as at,e as ot}from"./index.e3ab1903.js";import{d as oe,c as N,f as W,g as Be,w as te,b as ze,i as qe,o as He,t as Ke,n as de,aI as q,bn as ut,bo as lt,bB as it}from"./arco.f43727df.js";import{u as _e,r as be,_ as we,a as ct}from"./dialog.a5e3d152.js";import{t as Q,w as st,x as ft,y as ve,z as vt,A as We,B as Ue,C as dt,E as pt,F as mt}from"./index.ff32156d.js";import{i as Ge}from"./index.bf1946d0.js";/**
import{u as ee,i as le,g as tt,a as re,_ as Ve,l as rt,b as nt,c as H,d as at,e as ot}from"./index.32ded5d6.js";import{d as oe,c as N,f as W,g as Be,w as te,b as ze,i as qe,o as He,t as Ke,n as de,aI as q,bn as ut,bo as lt,bB as it}from"./arco.f43727df.js";import{u as _e,r as be,_ as we,a as ct}from"./dialog.85e1bd85.js";import{t as Q,w as st,x as ft,y as ve,z as vt,A as We,B as Ue,C as dt,E as pt,F as mt}from"./index.a585e6b1.js";import{i as Ge}from"./index.9afeca78.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +0,0 @@
import{b as o}from"./dialog.a5e3d152.js";import{B as a}from"./index.ff32156d.js";import"./arco.f43727df.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var m=a(o);export{m as D};

Binary file not shown.

View File

@ -1 +1 @@
import{_ as t}from"./index.ff32156d.js";import{C as a,aE as s,aH as _,bg as c,be as n,bf as r,G as d}from"./arco.f43727df.js";const p={},f=e=>(n("data-v-77ebf61d"),e=e(),r(),e),i=f(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202405130020",-1));function b(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[i]),_:1})}const m=t(p,[["render",b],["__scopeId","data-v-77ebf61d"]]);export{m as F};
import{_ as t}from"./index.a585e6b1.js";import{C as a,aE as s,aH as _,bg as c,be as n,bf as r,G as d}from"./arco.f43727df.js";const p={},f=e=>(n("data-v-77ebf61d"),e=e(),r(),e),i=f(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202405130020",-1));function b(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[i]),_:1})}const m=t(p,[["render",b],["__scopeId","data-v-77ebf61d"]]);export{m as F};

View File

@ -1 +1 @@
import{d as x,c as q,b5 as R,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as E,aE as j,aN as r,b6 as z,f as A,r as G,b7 as H,b8 as J,b9 as K,ba as Q,bb as T,u as C,aM as f,a_ as W,bc as O,bd as X,a$ as Y,be as Z,bf as ee}from"./arco.f43727df.js";import{F as oe}from"./index.6f661862.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.ff32156d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.cbdb927d.js";import{u as le}from"./loading.a1d05891.js";import"./chart.3c227ebb.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(c){const{t}=V.exports.useI18n(),g=q(()=>[{slogan:t("login.banner.slogan1"),subSlogan:t("login.banner.subSlogan1"),image:S},{slogan:t("login.banner.slogan2"),subSlogan:t("login.banner.subSlogan2"),image:S},{slogan:t("login.banner.slogan3"),subSlogan:t("login.banner.subSlogan3"),image:S}]);return(b,v)=>{const p=z,h=R;return i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,E(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(c){const t=te(),{t:g}=V.exports.useI18n(),b=A(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=G({username:a.value.username,password:a.value.password}),F=async({errors:o,values:l})=>{if(!v.value&&!o){p(!0);try{await h.login(l);const{redirect:_,...w}=t.currentRoute.value.query;t.push({name:_||"Workplace",query:{...w}}),W.success(g("login.form.login.success"));const{rememberPassword:u}=a.value,{username:$,password:y}=l;a.value.username=u?$:"",a.value.password=u?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,u=O,$=ne,y=X,B=J,N=K,P=Y,M=Q,U=T;return i(),m("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(U,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(u,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(u,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(y,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(M,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":C(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(N,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=c=>(Z("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ce=x({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const je=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{je as default};
import{d as x,c as q,b5 as R,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as E,aE as j,aN as r,b6 as z,f as A,r as G,b7 as H,b8 as J,b9 as K,ba as Q,bb as T,u as C,aM as f,a_ as W,bc as O,bd as X,a$ as Y,be as Z,bf as ee}from"./arco.f43727df.js";import{F as oe}from"./index.1605b9c2.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.a585e6b1.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.cbdb927d.js";import{u as le}from"./loading.a1d05891.js";import"./chart.3c227ebb.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(c){const{t}=V.exports.useI18n(),g=q(()=>[{slogan:t("login.banner.slogan1"),subSlogan:t("login.banner.subSlogan1"),image:S},{slogan:t("login.banner.slogan2"),subSlogan:t("login.banner.subSlogan2"),image:S},{slogan:t("login.banner.slogan3"),subSlogan:t("login.banner.subSlogan3"),image:S}]);return(b,v)=>{const p=z,h=R;return i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,E(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(c){const t=te(),{t:g}=V.exports.useI18n(),b=A(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=G({username:a.value.username,password:a.value.password}),F=async({errors:o,values:l})=>{if(!v.value&&!o){p(!0);try{await h.login(l);const{redirect:_,...w}=t.currentRoute.value.query;t.push({name:_||"Workplace",query:{...w}}),W.success(g("login.form.login.success"));const{rememberPassword:u}=a.value,{username:$,password:y}=l;a.value.username=u?$:"",a.value.password=u?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,u=O,$=ne,y=X,B=J,N=K,P=Y,M=Q,U=T;return i(),m("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(U,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(u,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(u,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(y,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(M,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":C(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(N,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=c=>(Z("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ce=x({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const je=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{je as default};

BIN
assets/index.16ff8fc9.js.gz Normal file

Binary file not shown.

View File

@ -1 +1 @@
import{_ as n}from"./index.ff32156d.js";import{d as c,bG as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.f43727df.js";import{f as m}from"./vue.cbdb927d.js";import"./chart.3c227ebb.js";const f={class:"content"},x={class:"operation-row"},b=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",x,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const E=n(b,[["__scopeId","data-v-8bef407f"]]);export{E as default};
import{_ as n}from"./index.a585e6b1.js";import{d as c,bG as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.f43727df.js";import{f as m}from"./vue.cbdb927d.js";import"./chart.3c227ebb.js";const f={class:"content"},x={class:"operation-row"},b=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",x,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const E=n(b,[["__scopeId","data-v-8bef407f"]]);export{E as default};

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{w as N,a1 as Pe,a2 as sr,Q as or,P as Ee,a3 as Te,a4 as lr,a5 as ur,J as z,a6 as cr,a7 as fr,a8 as vr,a9 as dr,aa as xe,V as gr,E as hr,ab as mr,O as yr,z as Ie,ac as Le,M as R,K as Me,ad as le,ae as pr,af as _r,y as Fe,ag as br,ah as Ne,ai as Cr,aj as wr,B as Ar}from"./index.ff32156d.js";import{c as d,d as ne,o as ae,g as Or,n as Sr,aI as m,f as H,w as Re,t as $r,bB as G,bD as ue,r as Pr,h as Er,b4 as Tr}from"./arco.f43727df.js";/**
import{w as N,a1 as Pe,a2 as sr,Q as or,P as Ee,a3 as Te,a4 as lr,a5 as ur,J as z,a6 as cr,a7 as fr,a8 as vr,a9 as dr,aa as xe,V as gr,E as hr,ab as mr,O as yr,z as Ie,ac as Le,M as R,K as Me,ad as le,ae as pr,af as _r,y as Fe,ag as br,ah as Ne,ai as Cr,aj as wr,B as Ar}from"./index.a585e6b1.js";import{c as d,d as ne,o as ae,g as Or,n as Sr,aI as m,f as H,w as Re,t as $r,bB as G,bD as ue,r as Pr,h as Er,b4 as Tr}from"./arco.f43727df.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

BIN
assets/index.32ded5d6.js.gz Normal file

Binary file not shown.

Binary file not shown.

5
assets/index.46911dcd.js Normal file
View File

@ -0,0 +1,5 @@
import{b as o}from"./dialog.85e1bd85.js";import{B as a}from"./index.a585e6b1.js";import"./arco.f43727df.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var m=a(o);export{m as D};

View File

@ -1,4 +1,4 @@
import{d as R,c as t,aI as a,aU as V}from"./arco.f43727df.js";import{u,b as W,L as X}from"./index.e3ab1903.js";import{A as Z,K,B as U}from"./index.ff32156d.js";/**
import{d as R,c as t,aI as a,aU as V}from"./arco.f43727df.js";import{u,b as W,L as X}from"./index.32ded5d6.js";import{A as Z,K,B as U}from"./index.a585e6b1.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

BIN
assets/index.479d50c4.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.566f6981.js.gz Normal file

Binary file not shown.

View File

@ -1 +1 @@
import{_}from"./index.ff32156d.js";/* empty css */import{d as F,r as f,o as h,bF as g,a$ as m,D as y,bn as i,bo as c,G as o,aM as s,aI as a,aN as d,aH as v,be as A,bf as b,C as D}from"./arco.f43727df.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const l=u=>(A("data-v-9a7d1078"),u=u(),b(),u),S={class:"container"},C={style:{"background-color":"#fff",padding:"10%"}},B=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=async()=>{await fetch("https://k5.vicicode.com/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",C,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),B,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:v(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-9a7d1078"]]);export{U as default};
import{_}from"./index.a585e6b1.js";/* empty css */import{d as F,r as f,o as h,bF as g,a$ as m,D as y,bn as i,bo as c,G as o,aM as s,aI as a,aN as d,aH as v,be as A,bf as b,C as D}from"./arco.f43727df.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const l=u=>(A("data-v-9a7d1078"),u=u(),b(),u),S={class:"container"},C={style:{"background-color":"#fff",padding:"10%"}},B=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=async()=>{await fetch("https://k5.vicicode.com/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",C,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),B,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:v(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-9a7d1078"]]);export{U as default};

BIN
assets/index.5c4c8958.js.gz Normal file

Binary file not shown.

View File

@ -1 +1 @@
import{e as B,as as D,_ as L}from"./index.ff32156d.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as N,r as T,aX as H,bO as K,bH as R,C as E,D as F,aI as e,aH as r,aM as V,aN as A,u as M,a6 as O,a$ as W,ba as X,bI as j,bL as q,b7 as x,bc as z}from"./arco.f43727df.js";import{u as G}from"./loading.a1d05891.js";import{e as $,a as S,f as w,s as h,b as P,g as J}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const Q={class:"container"},Y={name:"Chi"},Z=N({...Y,setup(oo){const o=B(),{loading:I,setLoading:C}=G(!1),t=T({logo_line1:"",logo_line2:"",mdc_audio_local:!0}),v=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await $(o.connectPort),C(!0),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let a=new Uint8Array(38);a.set(await S(o.connectPort,123680,38,(i=o.configuration)==null?void 0:i.uart),0),t.logo_line1=w(a.subarray(0,19),(f=o.configuration)==null?void 0:f.charset),t.logo_line2=w(a.subarray(19,38),(c=o.configuration)==null?void 0:c.charset)}else if(((u=o.configuration)==null?void 0:u.charset)=="gb2312"){let a=new Uint8Array(36);a.set(await S(o.connectPort,8192,36,(m=o.configuration)==null?void 0:m.uart),0),t.logo_line1=w(a.subarray(0,18),(_=o.configuration)==null?void 0:_.charset),t.logo_line2=w(a.subarray(18,36),(g=o.configuration)==null?void 0:g.charset)}else{let a=new Uint8Array(32);a.set(await S(o.connectPort,3760,32,(d=o.configuration)==null?void 0:d.uart),0),t.logo_line1=w(a.subarray(0,16),(s=o.configuration)==null?void 0:s.charset),t.logo_line2=w(a.subarray(16,32),(b=o.configuration)==null?void 0:b.charset)}parseInt(await S(o.connectPort,8189,1,(y=o.configuration)==null?void 0:y.uart))==0?t.mdc_audio_local=!1:t.mdc_audio_local=!0,C(!1)},k=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y,a,p,U;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(C(!0),await $(o.connectPort),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let l=new Uint8Array(38);l.set(h(t.logo_line1,(i=o.configuration)==null?void 0:i.charset).subarray(0,19),0),l.set(h(t.logo_line2,(f=o.configuration)==null?void 0:f.charset).subarray(0,19),19),await P(o.connectPort,123678,[18,18],2,(c=o.configuration)==null?void 0:c.uart),await P(o.connectPort,123680,l,38,(u=o.configuration)==null?void 0:u.uart)}else if(((m=o.configuration)==null?void 0:m.charset)=="gb2312"){let l=new Uint8Array(36);l.set(h(t.logo_line1,(_=o.configuration)==null?void 0:_.charset).subarray(0,18),0),l.set(h(t.logo_line2,(g=o.configuration)==null?void 0:g.charset).subarray(0,18),18),await P(o.connectPort,8228,[18,18],2,(d=o.configuration)==null?void 0:d.uart),await P(o.connectPort,8192,l,36,(s=o.configuration)==null?void 0:s.uart)}else{let l=new Uint8Array(32);l.set(h(t.logo_line1,(b=o.configuration)==null?void 0:b.charset).subarray(0,16),0),l.set(h(t.logo_line2,(y=o.configuration)==null?void 0:y.charset).subarray(0,16),16),await P(o.connectPort,3760,l,32,(a=o.configuration)==null?void 0:a.uart)}(p=o.configuration)!=null&&p.localmdc&&await P(o.connectPort,8189,new Uint8Array([t.mdc_audio_local?1:0]),1,(U=o.configuration)==null?void 0:U.uart),await J(o.connectPort),C(!1)};return(n,i)=>{const f=D,c=O,u=W,m=X,_=j,g=q,d=x,s=z,b=H,y=K,a=R;return E(),F("div",Q,[e(f,{items:[n.$t("menu.dashboard"),n.$t("menu.cps.settings")]},null,8,["items"]),e(g,{gutter:20,align:"stretch"},{default:r(()=>[e(_,{span:24},{default:r(()=>[e(a,{class:"general-card",title:n.$t("menu.cps.settings")+n.$t("global.onStart")},{default:r(()=>[e(g,{style:{"margin-bottom":"16px"}},{default:r(()=>[e(_,{span:12},{default:r(()=>[e(m,null,{default:r(()=>[e(u,{type:"primary",onClick:v},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceRead")),1)]),_:1}),e(u,{onClick:k},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(y,{loading:M(I),style:{width:"100%"}},{default:r(()=>[e(s,{"label-col-style":{width:"25%"},field:"logo_line1",label:n.$t("cps.line1")},{default:r(()=>[e(d,{modelValue:t.logo_line1,"onUpdate:modelValue":i[0]||(i[0]=p=>t.logo_line1=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.line2")},{default:r(()=>[e(d,{modelValue:t.logo_line2,"onUpdate:modelValue":i[1]||(i[1]=p=>t.logo_line2=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.mdclocplay")},{default:r(()=>[e(b,{modelValue:t.mdc_audio_local,"onUpdate:modelValue":i[2]||(i[2]=p=>t.mdc_audio_local=p),type:"round"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["loading"])]),_:1},8,["title"])]),_:1})]),_:1})])}}});const _o=L(Z,[["__scopeId","data-v-739b81b7"]]);export{_o as default};
import{e as B,as as D,_ as L}from"./index.a585e6b1.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as N,r as T,aX as H,bO as K,bH as R,C as E,D as F,aI as e,aH as r,aM as V,aN as A,u as M,a6 as O,a$ as W,ba as X,bI as j,bL as q,b7 as x,bc as z}from"./arco.f43727df.js";import{u as G}from"./loading.a1d05891.js";import{e as $,a as S,f as w,s as h,b as P,g as J}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const Q={class:"container"},Y={name:"Chi"},Z=N({...Y,setup(oo){const o=B(),{loading:I,setLoading:C}=G(!1),t=T({logo_line1:"",logo_line2:"",mdc_audio_local:!0}),v=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await $(o.connectPort),C(!0),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let a=new Uint8Array(38);a.set(await S(o.connectPort,123680,38,(i=o.configuration)==null?void 0:i.uart),0),t.logo_line1=w(a.subarray(0,19),(f=o.configuration)==null?void 0:f.charset),t.logo_line2=w(a.subarray(19,38),(c=o.configuration)==null?void 0:c.charset)}else if(((u=o.configuration)==null?void 0:u.charset)=="gb2312"){let a=new Uint8Array(36);a.set(await S(o.connectPort,8192,36,(m=o.configuration)==null?void 0:m.uart),0),t.logo_line1=w(a.subarray(0,18),(_=o.configuration)==null?void 0:_.charset),t.logo_line2=w(a.subarray(18,36),(g=o.configuration)==null?void 0:g.charset)}else{let a=new Uint8Array(32);a.set(await S(o.connectPort,3760,32,(d=o.configuration)==null?void 0:d.uart),0),t.logo_line1=w(a.subarray(0,16),(s=o.configuration)==null?void 0:s.charset),t.logo_line2=w(a.subarray(16,32),(b=o.configuration)==null?void 0:b.charset)}parseInt(await S(o.connectPort,8189,1,(y=o.configuration)==null?void 0:y.uart))==0?t.mdc_audio_local=!1:t.mdc_audio_local=!0,C(!1)},k=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y,a,p,U;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(C(!0),await $(o.connectPort),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let l=new Uint8Array(38);l.set(h(t.logo_line1,(i=o.configuration)==null?void 0:i.charset).subarray(0,19),0),l.set(h(t.logo_line2,(f=o.configuration)==null?void 0:f.charset).subarray(0,19),19),await P(o.connectPort,123678,[18,18],2,(c=o.configuration)==null?void 0:c.uart),await P(o.connectPort,123680,l,38,(u=o.configuration)==null?void 0:u.uart)}else if(((m=o.configuration)==null?void 0:m.charset)=="gb2312"){let l=new Uint8Array(36);l.set(h(t.logo_line1,(_=o.configuration)==null?void 0:_.charset).subarray(0,18),0),l.set(h(t.logo_line2,(g=o.configuration)==null?void 0:g.charset).subarray(0,18),18),await P(o.connectPort,8228,[18,18],2,(d=o.configuration)==null?void 0:d.uart),await P(o.connectPort,8192,l,36,(s=o.configuration)==null?void 0:s.uart)}else{let l=new Uint8Array(32);l.set(h(t.logo_line1,(b=o.configuration)==null?void 0:b.charset).subarray(0,16),0),l.set(h(t.logo_line2,(y=o.configuration)==null?void 0:y.charset).subarray(0,16),16),await P(o.connectPort,3760,l,32,(a=o.configuration)==null?void 0:a.uart)}(p=o.configuration)!=null&&p.localmdc&&await P(o.connectPort,8189,new Uint8Array([t.mdc_audio_local?1:0]),1,(U=o.configuration)==null?void 0:U.uart),await J(o.connectPort),C(!1)};return(n,i)=>{const f=D,c=O,u=W,m=X,_=j,g=q,d=x,s=z,b=H,y=K,a=R;return E(),F("div",Q,[e(f,{items:[n.$t("menu.dashboard"),n.$t("menu.cps.settings")]},null,8,["items"]),e(g,{gutter:20,align:"stretch"},{default:r(()=>[e(_,{span:24},{default:r(()=>[e(a,{class:"general-card",title:n.$t("menu.cps.settings")+n.$t("global.onStart")},{default:r(()=>[e(g,{style:{"margin-bottom":"16px"}},{default:r(()=>[e(_,{span:12},{default:r(()=>[e(m,null,{default:r(()=>[e(u,{type:"primary",onClick:v},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceRead")),1)]),_:1}),e(u,{onClick:k},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(y,{loading:M(I),style:{width:"100%"}},{default:r(()=>[e(s,{"label-col-style":{width:"25%"},field:"logo_line1",label:n.$t("cps.line1")},{default:r(()=>[e(d,{modelValue:t.logo_line1,"onUpdate:modelValue":i[0]||(i[0]=p=>t.logo_line1=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.line2")},{default:r(()=>[e(d,{modelValue:t.logo_line2,"onUpdate:modelValue":i[1]||(i[1]=p=>t.logo_line2=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.mdclocplay")},{default:r(()=>[e(b,{modelValue:t.mdc_audio_local,"onUpdate:modelValue":i[2]||(i[2]=p=>t.mdc_audio_local=p),type:"round"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["loading"])]),_:1},8,["title"])]),_:1})]),_:1})])}}});const _o=L(Z,[["__scopeId","data-v-739b81b7"]]);export{_o as default};

BIN
assets/index.702cbd07.js.gz Normal file

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{u as re,b as qe,c as h,f as We,i as Ie,h as de,_ as Me,r as He}from"./index.e3ab1903.js";import{d as Ee,c as y,aI as C,i as Ke,f as P,t as Oe,r as Te,o as Ue,b as ze,w as ke,p as we,n as Ge}from"./arco.f43727df.js";import{G as Je,A as je,z as Ne,B as Fe,H as Xe,J as Ce,K as Ze,M as ie,F as Qe}from"./index.ff32156d.js";import{u as Ye,i as _e}from"./index.bf1946d0.js";import{u as Re,F as Be,i as Pe,V as q,_ as R,a as er,C as rr,r as b,s as $e,v as tr}from"./form-model.ffdc7ae1.js";import{a as ar,C as nr,E as lr}from"./dialog.a5e3d152.js";/**
import{u as re,b as qe,c as h,f as We,i as Ie,h as de,_ as Me,r as He}from"./index.32ded5d6.js";import{d as Ee,c as y,aI as C,i as Ke,f as P,t as Oe,r as Te,o as Ue,b as ze,w as ke,p as we,n as Ge}from"./arco.f43727df.js";import{G as Je,A as je,z as Ne,B as Fe,H as Xe,J as Ce,K as Ze,M as ie,F as Qe}from"./index.a585e6b1.js";import{u as Ye,i as _e}from"./index.9afeca78.js";import{u as Re,F as Be,i as Pe,V as q,_ as R,a as er,C as rr,r as b,s as $e,v as tr}from"./form-model.724991ed.js";import{a as ar,C as nr,E as lr}from"./dialog.85e1bd85.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

BIN
assets/index.70c9fed2.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{e as B,as as E,_ as k}from"./index.ff32156d.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as A,o as C,bH as N,C as $,D as I,aI as i,aH as c,aM as p,aN as f,G as H,n as y,a$ as P,ba as S,bF as T,bI as D,bL as M}from"./arco.f43727df.js";import{h as V}from"./vue.cbdb927d.js";import{d as b,c as q,r as _,j as x,k as h,l as L,m as R}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";const j={class:"container"},U=["innerHTML"],O={name:"Flash"},z=v({...O,setup(G){const m=B(),e=A({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),d=V();C(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),r=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(r){const n=[];for(;;){const{done:u,value:l}=await r.read();if(u)break;n.push(...l)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1)}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},g=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}m.connectPort&&await b(m.connectPort);let t=await q();await _(t,24,1e3);const o=x(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);await h(t,r),await _(t,24);const n=L(e.binaryFile);if(n.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<n.length;a+=256){const u=n.slice(a,a+256),l=R(u,a,n.length);try{await h(t,l),await _(t,26)}catch(s){return console.log("Flash command rejected. Aborting."),Promise.reject(s)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,y(()=>{const s=document==null?void 0:document.getElementById("statusArea");s&&(s.scrollTop=s==null?void 0:s.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",y(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),b(t),m.updateSettings({connectState:!1})};return(t,o)=>{const r=E,n=P,a=S,u=T,l=N,s=D,w=M;return $(),I("div",j,[i(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),i(w,{gutter:20,align:"stretch"},{default:c(()=>[i(s,{span:24},{default:c(()=>[i(l,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:c(()=>[i(a,null,{default:c(()=>[i(n,{onClick:F},{default:c(()=>[p(f(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),i(n,{type:"primary",disabled:!e.binaryFile,onClick:g},{default:c(()=>[p(f(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1}),i(u),H("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,U)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const at=k(z,[["__scopeId","data-v-20389da6"]]);export{at as default};
import{e as B,as as E,_ as k}from"./index.a585e6b1.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as A,o as C,bH as N,C as $,D as I,aI as i,aH as c,aM as p,aN as f,G as H,n as y,a$ as P,ba as S,bF as T,bI as D,bL as M}from"./arco.f43727df.js";import{h as V}from"./vue.cbdb927d.js";import{d as b,c as q,r as _,j as x,k as h,l as L,m as R}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";const j={class:"container"},U=["innerHTML"],O={name:"Flash"},z=v({...O,setup(G){const m=B(),e=A({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),d=V();C(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),r=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(r){const n=[];for(;;){const{done:u,value:l}=await r.read();if(u)break;n.push(...l)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1)}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},g=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}m.connectPort&&await b(m.connectPort);let t=await q();await _(t,24,1e3);const o=x(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);await h(t,r),await _(t,24);const n=L(e.binaryFile);if(n.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<n.length;a+=256){const u=n.slice(a,a+256),l=R(u,a,n.length);try{await h(t,l),await _(t,26)}catch(s){return console.log("Flash command rejected. Aborting."),Promise.reject(s)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,y(()=>{const s=document==null?void 0:document.getElementById("statusArea");s&&(s.scrollTop=s==null?void 0:s.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",y(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),b(t),m.updateSettings({connectState:!1})};return(t,o)=>{const r=E,n=P,a=S,u=T,l=N,s=D,w=M;return $(),I("div",j,[i(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),i(w,{gutter:20,align:"stretch"},{default:c(()=>[i(s,{span:24},{default:c(()=>[i(l,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:c(()=>[i(a,null,{default:c(()=>[i(n,{onClick:F},{default:c(()=>[p(f(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),i(n,{type:"primary",disabled:!e.binaryFile,onClick:g},{default:c(()=>[p(f(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1}),i(u),H("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,U)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const at=k(z,[["__scopeId","data-v-20389da6"]]);export{at as default};

BIN
assets/index.88b1a19d.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.88c26e8f.js.gz Normal file

Binary file not shown.

View File

@ -1 +1 @@
import{e as v,as as B,_ as E}from"./index.ff32156d.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as $,r as C,bH as A,C as F,D as S,aI as n,aH as o,G as y,aN as _,aM as b,a$ as H,ba as R,bF as D,bI as I,bL as P,n as T}from"./arco.f43727df.js";import{i as M,e as N,b as U,g as V}from"./serial.c741fbda.js";import{C as L}from"./index.827cfab4.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";import"./index.e3ab1903.js";const z={class:"container"},G=["innerHTML"],K={name:"Chi"},O=$({...K,setup(j){const i=v(),u=C({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),w=async(e=0,t)=>{var p;await N(i.connectPort);for(let a=e;a<t.length+e;a+=128)await U(i.connectPort,a,t.slice(a-e,a-e+128),128,(p=i.configuration)==null?void 0:p.uart),u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((a-e)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)});u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await V(i.connectPort)},h=async(e=1)=>{var p,a,r,m,g;if(i.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=i.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}u.status=u.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(a=i.configuration)!=null&&a.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(131072,l);return}if(e==5){const c=await M(i.connectPort,(r=i.configuration)==null?void 0:r.uart);if(c!=262144&&c!=262144){u.status=u.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}t=await fetch("/ssb.bin");const s=t.body.getReader(),l=[];for(;;){const{done:f,value:k}=await s.read();if(f)break;l.push(...k)}const d=new Uint8Array(l);await w(246312,d);return}if(e==1){if(((m=i.configuration)==null?void 0:m.charset)=="losehu"){t=await fetch("/old_font.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(8192,l);return}if(((g=i.configuration)==null?void 0:g.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(9344,l);return}}};return(e,t)=>{const p=B,a=H,r=L,m=R,g=D,c=A,s=I,l=P;return F(),S("div",z,[n(p,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),n(l,{gutter:20,align:"stretch"},{default:o(()=>[n(s,{span:24},{default:o(()=>[n(c,{class:"general-card"},{title:o(()=>[y("span",{onClick:t[0]||(t[0]=()=>{u.showHide+=1})},_(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.fontwrite")),1)]),default:o(()=>[n(a,{onClick:t[1]||(t[1]=d=>h(1))},{default:o(()=>[b(_(e.$t("tool.writefontwrite")),1)]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.pinyinwrite")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[2]||(t[2]=d=>h(4))},{default:o(()=>[b(_(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.ssbpatch")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[3]||(t[3]=d=>h(5))},{default:o(()=>[b(_(e.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),n(g),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:u.status},null,8,G)]),_:1})]),_:1})]),_:1})])}}});const nt=E(O,[["__scopeId","data-v-02011918"]]);export{nt as default};
import{e as v,as as B,_ as E}from"./index.a585e6b1.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as $,r as C,bH as A,C as F,D as S,aI as n,aH as o,G as y,aN as _,aM as b,a$ as H,ba as R,bF as D,bI as I,bL as P,n as T}from"./arco.f43727df.js";import{i as M,e as N,b as U,g as V}from"./serial.c741fbda.js";import{C as L}from"./index.479d50c4.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";import"./index.32ded5d6.js";const z={class:"container"},G=["innerHTML"],K={name:"Chi"},O=$({...K,setup(j){const i=v(),u=C({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),w=async(e=0,t)=>{var p;await N(i.connectPort);for(let a=e;a<t.length+e;a+=128)await U(i.connectPort,a,t.slice(a-e,a-e+128),128,(p=i.configuration)==null?void 0:p.uart),u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((a-e)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)});u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await V(i.connectPort)},h=async(e=1)=>{var p,a,r,m,g;if(i.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=i.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}u.status=u.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(a=i.configuration)!=null&&a.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(131072,l);return}if(e==5){const c=await M(i.connectPort,(r=i.configuration)==null?void 0:r.uart);if(c!=262144&&c!=262144){u.status=u.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}t=await fetch("/ssb.bin");const s=t.body.getReader(),l=[];for(;;){const{done:f,value:k}=await s.read();if(f)break;l.push(...k)}const d=new Uint8Array(l);await w(246312,d);return}if(e==1){if(((m=i.configuration)==null?void 0:m.charset)=="losehu"){t=await fetch("/old_font.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(8192,l);return}if(((g=i.configuration)==null?void 0:g.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(9344,l);return}}};return(e,t)=>{const p=B,a=H,r=L,m=R,g=D,c=A,s=I,l=P;return F(),S("div",z,[n(p,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),n(l,{gutter:20,align:"stretch"},{default:o(()=>[n(s,{span:24},{default:o(()=>[n(c,{class:"general-card"},{title:o(()=>[y("span",{onClick:t[0]||(t[0]=()=>{u.showHide+=1})},_(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.fontwrite")),1)]),default:o(()=>[n(a,{onClick:t[1]||(t[1]=d=>h(1))},{default:o(()=>[b(_(e.$t("tool.writefontwrite")),1)]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.pinyinwrite")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[2]||(t[2]=d=>h(4))},{default:o(()=>[b(_(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.ssbpatch")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[3]||(t[3]=d=>h(5))},{default:o(()=>[b(_(e.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),n(g),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:u.status},null,8,G)]),_:1})]),_:1})]),_:1})])}}});const nt=E(O,[["__scopeId","data-v-02011918"]]);export{nt as default};

BIN
assets/index.97659b9e.js.gz Normal file

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{u as D,b as R,c as d,L as N,f as I}from"./index.e3ab1903.js";import{f as A,o as z,bs as F,c as S,i as M,g as $,d as X,aI as E,h as G}from"./arco.f43727df.js";import{N as _,z as K,O as U,P as V,A as W,G as J,B as Z}from"./index.ff32156d.js";/**
import{u as D,b as R,c as d,L as N,f as I}from"./index.32ded5d6.js";import{f as A,o as z,bs as F,c as S,i as M,g as $,d as X,aI as E,h as G}from"./arco.f43727df.js";import{N as _,z as K,O as U,P as V,A as W,G as J,B as Z}from"./index.a585e6b1.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT

BIN
assets/index.9afeca78.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

BIN
assets/index.a585e6b1.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.b372cd7a.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.c3b8cd13.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{d as R,r as Q,bH as W,C as U,aE as X,aH as s,aI as i,aM as d,aN as c,u as w,bn as Y,bo as Z,bp as tt,bI as ot,bF as at,a$ as nt,ba as et,be as rt,bf as ct,G as u,D as it}from"./arco.f43727df.js";import{v as st,e as ut,_ as j}from"./index.ff32156d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as _t,a as n,b as e}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const pt=""+new URL("../gy.png",import.meta.url).href,S=_=>(rt("data-v-769c6935"),_=_(),ct(),_),lt=S(()=>u("br",null,null,-1)),dt=S(()=>u("br",null,null,-1)),mt=S(()=>u("div",null,[u("img",{style:{"margin-bottom":"10px"},width:"600px",src:pt})],-1)),ft=R({__name:"banner",setup(_){const{t:r}=st.exports.useI18n(),t=ut(),P=Q({eepromSize:r("workplace.clickCheck")}),F=async()=>{var p,m,f,g,h,l,y,M,$,I,x,B,C,z,D,E,N,T,V,A,H;let o=r("workplace.unk");const v=[Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256)];await _t(t.connectPort);const a=new Uint8Array(v);if(((p=t.configuration)==null?void 0:p.uart)=="official"){const b=await n(t.connectPort,0,8,(m=t.configuration)==null?void 0:m.uart);await e(t.connectPort,0,a,8,(f=t.configuration)==null?void 0:f.uart);const k=await n(t.connectPort,0,8,(g=t.configuration)==null?void 0:g.uart);a.toString()==k.toString()&&(o=r("global.8kb")),await e(t.connectPort,0,b,8,(h=t.configuration)==null?void 0:h.uart)}else{const b=await n(t.connectPort,0,8,(l=t.configuration)==null?void 0:l.uart);await e(t.connectPort,0,a,8,(y=t.configuration)==null?void 0:y.uart);const k=await n(t.connectPort,0,8,(M=t.configuration)==null?void 0:M.uart);a.toString()==k.toString()&&(o=r("global.8kb")),await e(t.connectPort,0,b,8,($=t.configuration)==null?void 0:$.uart);const G=await n(t.connectPort,131064,8,(I=t.configuration)==null?void 0:I.uart);await e(t.connectPort,131064,a,8,(x=t.configuration)==null?void 0:x.uart);const L=await n(t.connectPort,131064,8,(B=t.configuration)==null?void 0:B.uart);a.toString()==L.toString()&&(o=r("global.128kb")),await e(t.connectPort,131064,G,8,(C=t.configuration)==null?void 0:C.uart);const O=await n(t.connectPort,262136,8,(z=t.configuration)==null?void 0:z.uart);await e(t.connectPort,262136,a,8,(D=t.configuration)==null?void 0:D.uart);const q=await n(t.connectPort,262136,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==q.toString()&&(o=r("global.256kb")),await e(t.connectPort,262136,O,8,(N=t.configuration)==null?void 0:N.uart);const J=await n(t.connectPort,524280,8,(T=t.configuration)==null?void 0:T.uart);await e(t.connectPort,524280,a,8,(V=t.configuration)==null?void 0:V.uart);const K=await n(t.connectPort,524280,8,(A=t.configuration)==null?void 0:A.uart);a.toString()==K.toString()&&(o=r("global.512kb")),await e(t.connectPort,524280,J,8,(H=t.configuration)==null?void 0:H.uart)}P.eepromSize=o};return(o,v)=>{const a=tt,p=ot,m=at,f=nt,g=W,h=et;return U(),X(p,{class:"banner"},{default:s(()=>[i(p,null,{default:s(()=>[i(a,{heading:5,style:{"margin-top":"0"}},{default:s(()=>[d(c(w(t).connectState?o.$t("workplace.welcomeSuc"):o.$t("workplace.welcome")),1)]),_:1})]),_:1}),i(m,{class:"panel-border"}),i(h,null,{default:s(()=>[Y(i(g,{style:{marginTop:"2em",marginBottom:"2em"},title:o.$t("workplace.info")},{default:s(()=>{var l;return[d(c(o.$t("workplace.current"))+c(w(t).firmwareVersion)+" ",1),lt,d(" "+c(o.$t("workplace.writeconfig"))+c((l=w(t).configuration)==null?void 0:l.name)+" ",1),dt,d(" "+c(o.$t("workplace.eepromSize"))+c(P.eepromSize)+" ",1),i(f,{size:"mini",type:"primary",onClick:F},{default:s(()=>[d(c(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,w(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=j(ft,[["__scopeId","data-v-769c6935"]]),ht={class:"container"},wt={class:"left-side"},bt={class:"panel"},kt={name:"Dashboard"},St=R({...kt,setup(_){return(r,t)=>(U(),it("div",ht,[u("div",wt,[u("div",bt,[i(gt)])])]))}});const Et=j(St,[["__scopeId","data-v-8f743d99"]]);export{Et as default};
import{d as R,r as Q,bH as W,C as U,aE as X,aH as s,aI as i,aM as d,aN as c,u as w,bn as Y,bo as Z,bp as tt,bI as ot,bF as at,a$ as nt,ba as et,be as rt,bf as ct,G as u,D as it}from"./arco.f43727df.js";import{v as st,e as ut,_ as j}from"./index.a585e6b1.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as _t,a as n,b as e}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const pt=""+new URL("../gy.png",import.meta.url).href,S=_=>(rt("data-v-769c6935"),_=_(),ct(),_),lt=S(()=>u("br",null,null,-1)),dt=S(()=>u("br",null,null,-1)),mt=S(()=>u("div",null,[u("img",{style:{"margin-bottom":"10px"},width:"600px",src:pt})],-1)),ft=R({__name:"banner",setup(_){const{t:r}=st.exports.useI18n(),t=ut(),P=Q({eepromSize:r("workplace.clickCheck")}),F=async()=>{var p,m,f,g,h,l,y,M,$,I,x,B,C,z,D,E,N,T,V,A,H;let o=r("workplace.unk");const v=[Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256)];await _t(t.connectPort);const a=new Uint8Array(v);if(((p=t.configuration)==null?void 0:p.uart)=="official"){const b=await n(t.connectPort,0,8,(m=t.configuration)==null?void 0:m.uart);await e(t.connectPort,0,a,8,(f=t.configuration)==null?void 0:f.uart);const k=await n(t.connectPort,0,8,(g=t.configuration)==null?void 0:g.uart);a.toString()==k.toString()&&(o=r("global.8kb")),await e(t.connectPort,0,b,8,(h=t.configuration)==null?void 0:h.uart)}else{const b=await n(t.connectPort,0,8,(l=t.configuration)==null?void 0:l.uart);await e(t.connectPort,0,a,8,(y=t.configuration)==null?void 0:y.uart);const k=await n(t.connectPort,0,8,(M=t.configuration)==null?void 0:M.uart);a.toString()==k.toString()&&(o=r("global.8kb")),await e(t.connectPort,0,b,8,($=t.configuration)==null?void 0:$.uart);const G=await n(t.connectPort,131064,8,(I=t.configuration)==null?void 0:I.uart);await e(t.connectPort,131064,a,8,(x=t.configuration)==null?void 0:x.uart);const L=await n(t.connectPort,131064,8,(B=t.configuration)==null?void 0:B.uart);a.toString()==L.toString()&&(o=r("global.128kb")),await e(t.connectPort,131064,G,8,(C=t.configuration)==null?void 0:C.uart);const O=await n(t.connectPort,262136,8,(z=t.configuration)==null?void 0:z.uart);await e(t.connectPort,262136,a,8,(D=t.configuration)==null?void 0:D.uart);const q=await n(t.connectPort,262136,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==q.toString()&&(o=r("global.256kb")),await e(t.connectPort,262136,O,8,(N=t.configuration)==null?void 0:N.uart);const J=await n(t.connectPort,524280,8,(T=t.configuration)==null?void 0:T.uart);await e(t.connectPort,524280,a,8,(V=t.configuration)==null?void 0:V.uart);const K=await n(t.connectPort,524280,8,(A=t.configuration)==null?void 0:A.uart);a.toString()==K.toString()&&(o=r("global.512kb")),await e(t.connectPort,524280,J,8,(H=t.configuration)==null?void 0:H.uart)}P.eepromSize=o};return(o,v)=>{const a=tt,p=ot,m=at,f=nt,g=W,h=et;return U(),X(p,{class:"banner"},{default:s(()=>[i(p,null,{default:s(()=>[i(a,{heading:5,style:{"margin-top":"0"}},{default:s(()=>[d(c(w(t).connectState?o.$t("workplace.welcomeSuc"):o.$t("workplace.welcome")),1)]),_:1})]),_:1}),i(m,{class:"panel-border"}),i(h,null,{default:s(()=>[Y(i(g,{style:{marginTop:"2em",marginBottom:"2em"},title:o.$t("workplace.info")},{default:s(()=>{var l;return[d(c(o.$t("workplace.current"))+c(w(t).firmwareVersion)+" ",1),lt,d(" "+c(o.$t("workplace.writeconfig"))+c((l=w(t).configuration)==null?void 0:l.name)+" ",1),dt,d(" "+c(o.$t("workplace.eepromSize"))+c(P.eepromSize)+" ",1),i(f,{size:"mini",type:"primary",onClick:F},{default:s(()=>[d(c(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,w(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=j(ft,[["__scopeId","data-v-769c6935"]]),ht={class:"container"},wt={class:"left-side"},bt={class:"panel"},kt={name:"Dashboard"},St=R({...kt,setup(_){return(r,t)=>(U(),it("div",ht,[u("div",wt,[u("div",bt,[i(gt)])])]))}});const Et=j(St,[["__scopeId","data-v-8f743d99"]]);export{Et as default};

BIN
assets/index.d914b3f8.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{e as k,as as P,_ as R}from"./index.ff32156d.js";/* empty css *//* empty css *//* empty css */import{d as F,r as U,o as V,bH as H,bO as O,C as b,D as w,aI as f,aH as _,G as v,aK as C,aJ as M,F as T,aM as $,aN as B,a$ as A,ba as j,bI as q,bL as z,be as K,bf as G}from"./arco.f43727df.js";import{h as J}from"./vue.cbdb927d.js";import{e as Q,b as W,g as X}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";const E=y=>(K("data-v-935d49c8"),y=y(),G(),y),Y={class:"container"},Z=E(()=>v("div",{id:"canvasDiv",style:{zoom:"250%",display:"none"}},null,-1)),tt={style:{padding:"0",margin:"0","border-spacing":"0"}},et=["onMousedown","onMouseover"],ot=E(()=>v("br",null,null,-1)),nt={name:"Backup"},at=F({...nt,setup(y){const g=k(),i=U({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=J();V(async()=>{if(I.query.url){const t=await fetch(I.query.url,{responseType:"blob"});D(window.URL.createObjectURL(await t.blob()))}});const S=(t,s)=>{if(i.mousedown){const l=i.matrix;l[s][t]=i.matrix[s][t]=="#fff"?"#000":"#fff",i.matrix=l}},D=t=>{const s=document.createElement("canvas");s.width=128,s.height=64;const l=s.cloneNode(),o=document.getElementById("canvasDiv");o.innerHTML="",o==null||o.append(s,l);const p=new Image;p.src=t,p.onload=()=>{const r=s.getContext("2d");r==null||r.drawImage(p,0,0,128,64);const m=r==null?void 0:r.getImageData(0,0,s.width,s.height).data;function d(e,n){const a=(n*128+e)*4;return m[a]+m[a+1]+m[a+2]>128*3?0:1}const u=[];for(let e=0;e<64;e++){u.push([]),u[e]=[];for(let n=0;n<128;n++){const c=!d(n,e);u[e][n]=c?"#fff":"#000"}}i.matrix=u}},L=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const s=new Blob([t.files[0]],{type:"application/octet-stream"}),l=URL.createObjectURL(s),o=document.createElement("canvas");o.width=128,o.height=64;const p=o.cloneNode(),r=document.getElementById("canvasDiv");r.innerHTML="",r==null||r.append(o,p);const m=new Image;m.src=l,m.onload=()=>{const d=o.getContext("2d");d==null||d.drawImage(m,0,0,128,64);const u=d==null?void 0:d.getImageData(0,0,o.width,o.height).data;function e(c,a){const x=(a*128+c)*4;return u[x]+u[x+1]+u[x+2]>128*3?0:1}const n=[];for(let c=0;c<64;c++){n.push([]),n[c]=[];for(let a=0;a<128;a++){const h=!e(a,c);n[c][a]=h?"#fff":"#000"}}i.matrix=n}},t.click()},N=async()=>{var p,r,m,d,u;const t=new Uint8Array(1024);let s=0;for(let e=0;e<64;e+=8)for(let n=0;n<128;n++){let c=0;for(let a=0;a<8;a++)c|=(i.matrix[e+a][n]=="#000"?1:0)<<a;t[s++]=c}if(i.binaryFile=t,g.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=g.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((r=g.configuration)==null?void 0:r.charset)!="losehu"&&((m=g.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}i.loading=!0;let l=123728;((d=g.configuration)==null?void 0:d.charset)=="gb2312"&&(l=8320),await Q(g.connectPort);const o=i.binaryFile;for(let e=l;e<o.length+l;e+=128)await W(g.connectPort,e,o.slice(e-l,e-l+128),128,(u=g.configuration)==null?void 0:u.uart);await X(g.connectPort),i.loading=!1};return(t,s)=>{const l=P,o=A,p=j,r=H,m=O,d=q,u=z;return b(),w("div",Y,[f(l,{items:[t.$t("menu.list"),t.$t("menu.image")]},null,8,["items"]),f(u,{gutter:20,align:"stretch"},{default:_(()=>[f(d,{span:24},{default:_(()=>[f(m,{loading:i.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:_(()=>[f(r,{class:"general-card",title:t.$t("menu.image")+t.$t("global.onStart")},{default:_(()=>[Z,v("div",null,[v("table",tt,[(b(!0),w(C,null,M(i.matrix,(e,n)=>(b(),w("tr",null,[(b(!0),w(C,null,M(e,(c,a)=>(b(),w("td",{onMousedown:h=>{i.mousedown=!0,S(a,n)},onMouseup:s[0]||(s[0]=h=>{i.mousedown=!1}),onMouseover:h=>S(a,n),style:T("background-color: "+c+"; height: 5px; width: 3.5px;")},null,44,et))),256))]))),256))])]),ot,f(p,null,{default:_(()=>[f(o,{onClick:L},{default:_(()=>[$(B(t.$t("tool.selectImage")),1)]),_:1}),f(o,{type:"primary",disabled:i.matrix.length<64,onClick:N},{default:_(()=>[$(B(t.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=R(at,[["__scopeId","data-v-935d49c8"]]);export{pt as default};
import{e as k,as as P,_ as R}from"./index.a585e6b1.js";/* empty css *//* empty css *//* empty css */import{d as F,r as U,o as V,bH as H,bO as O,C as b,D as w,aI as f,aH as _,G as v,aK as C,aJ as M,F as T,aM as $,aN as B,a$ as A,ba as j,bI as q,bL as z,be as K,bf as G}from"./arco.f43727df.js";import{h as J}from"./vue.cbdb927d.js";import{e as Q,b as W,g as X}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";const E=y=>(K("data-v-935d49c8"),y=y(),G(),y),Y={class:"container"},Z=E(()=>v("div",{id:"canvasDiv",style:{zoom:"250%",display:"none"}},null,-1)),tt={style:{padding:"0",margin:"0","border-spacing":"0"}},et=["onMousedown","onMouseover"],ot=E(()=>v("br",null,null,-1)),nt={name:"Backup"},at=F({...nt,setup(y){const g=k(),i=U({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=J();V(async()=>{if(I.query.url){const t=await fetch(I.query.url,{responseType:"blob"});D(window.URL.createObjectURL(await t.blob()))}});const S=(t,s)=>{if(i.mousedown){const l=i.matrix;l[s][t]=i.matrix[s][t]=="#fff"?"#000":"#fff",i.matrix=l}},D=t=>{const s=document.createElement("canvas");s.width=128,s.height=64;const l=s.cloneNode(),o=document.getElementById("canvasDiv");o.innerHTML="",o==null||o.append(s,l);const p=new Image;p.src=t,p.onload=()=>{const r=s.getContext("2d");r==null||r.drawImage(p,0,0,128,64);const m=r==null?void 0:r.getImageData(0,0,s.width,s.height).data;function d(e,n){const a=(n*128+e)*4;return m[a]+m[a+1]+m[a+2]>128*3?0:1}const u=[];for(let e=0;e<64;e++){u.push([]),u[e]=[];for(let n=0;n<128;n++){const c=!d(n,e);u[e][n]=c?"#fff":"#000"}}i.matrix=u}},L=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const s=new Blob([t.files[0]],{type:"application/octet-stream"}),l=URL.createObjectURL(s),o=document.createElement("canvas");o.width=128,o.height=64;const p=o.cloneNode(),r=document.getElementById("canvasDiv");r.innerHTML="",r==null||r.append(o,p);const m=new Image;m.src=l,m.onload=()=>{const d=o.getContext("2d");d==null||d.drawImage(m,0,0,128,64);const u=d==null?void 0:d.getImageData(0,0,o.width,o.height).data;function e(c,a){const x=(a*128+c)*4;return u[x]+u[x+1]+u[x+2]>128*3?0:1}const n=[];for(let c=0;c<64;c++){n.push([]),n[c]=[];for(let a=0;a<128;a++){const h=!e(a,c);n[c][a]=h?"#fff":"#000"}}i.matrix=n}},t.click()},N=async()=>{var p,r,m,d,u;const t=new Uint8Array(1024);let s=0;for(let e=0;e<64;e+=8)for(let n=0;n<128;n++){let c=0;for(let a=0;a<8;a++)c|=(i.matrix[e+a][n]=="#000"?1:0)<<a;t[s++]=c}if(i.binaryFile=t,g.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=g.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((r=g.configuration)==null?void 0:r.charset)!="losehu"&&((m=g.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}i.loading=!0;let l=123728;((d=g.configuration)==null?void 0:d.charset)=="gb2312"&&(l=8320),await Q(g.connectPort);const o=i.binaryFile;for(let e=l;e<o.length+l;e+=128)await W(g.connectPort,e,o.slice(e-l,e-l+128),128,(u=g.configuration)==null?void 0:u.uart);await X(g.connectPort),i.loading=!1};return(t,s)=>{const l=P,o=A,p=j,r=H,m=O,d=q,u=z;return b(),w("div",Y,[f(l,{items:[t.$t("menu.list"),t.$t("menu.image")]},null,8,["items"]),f(u,{gutter:20,align:"stretch"},{default:_(()=>[f(d,{span:24},{default:_(()=>[f(m,{loading:i.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:_(()=>[f(r,{class:"general-card",title:t.$t("menu.image")+t.$t("global.onStart")},{default:_(()=>[Z,v("div",null,[v("table",tt,[(b(!0),w(C,null,M(i.matrix,(e,n)=>(b(),w("tr",null,[(b(!0),w(C,null,M(e,(c,a)=>(b(),w("td",{onMousedown:h=>{i.mousedown=!0,S(a,n)},onMouseup:s[0]||(s[0]=h=>{i.mousedown=!1}),onMouseover:h=>S(a,n),style:T("background-color: "+c+"; height: 5px; width: 3.5px;")},null,44,et))),256))]))),256))])]),ot,f(p,null,{default:_(()=>[f(o,{onClick:L},{default:_(()=>[$(B(t.$t("tool.selectImage")),1)]),_:1}),f(o,{type:"primary",disabled:i.matrix.length<64,onClick:N},{default:_(()=>[$(B(t.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=R(at,[["__scopeId","data-v-935d49c8"]]);export{pt as default};

BIN
assets/index.ee52a806.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.fc1434cd.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -23,7 +23,7 @@
}
</style>
<script src="serial.js"></script>
<script type="module" crossorigin src="./assets/index.ff32156d.js"></script>
<script type="module" crossorigin src="./assets/index.a585e6b1.js"></script>
<link rel="modulepreload" crossorigin href="./assets/arco.f43727df.js">
<link rel="modulepreload" crossorigin href="./assets/chart.3c227ebb.js">
<link rel="modulepreload" crossorigin href="./assets/vue.cbdb927d.js">

Binary file not shown.