mirror of
https://github.com/silenty4ng/k5web
synced 2024-11-14 14:33:23 +00:00
update
This commit is contained in:
parent
deefbc43d0
commit
e5fdf0998e
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import{u as eu,b as Od,c as Rd,d as zf,e as et,v as Dd,l as Gf,_ as Tt,f as Fd,g as Pd,L as Md,h as Bd,i as Ud,j as Wd,k as tu,R as $d,D as Nd,m as Hd,n as Kd,o as zd,p as Gd,q as kd,r as qd}from"./index.e6020230.js";import{F as Zd}from"./index.d8c45cce.js";import{d as Be,c as on,aI as R,aZ as Yd,aO as Et,f as nt,bg as Xd,bh as Jd,h as Uf,bi as Wf,bj as Qd,bk as Vd,i as jd,b9 as nv,bl as ev,bm as kf,C as an,D as It,G as un,aH as G,aM as Ar,u as ie,aE as yn,aF as Me,aN as Lr,aK as qf,aJ as Zf,bn as tv,Q as rv,a_ as iv,bo as Yf,bp as Xf,a0 as uv,bq as Jf,ao as ov,E as Qf,br as fv,a2 as av,bd as Vf,be as jf,w as na,bs as sv,bt as lv,o as ea,bu as cv,b as hv,b1 as _v,bv as $f,bw as pv,bx as gv,p as dv,aY as vv,by as mv,F as Nf,bz as wv,bA as xv}from"./arco.02de294f.js";import{f as Er,h as ru,i as bv,j as yv,k as Sv,l as Av}from"./vue.4e4c1473.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as Hf,c as Lv,e as Ev}from"./serial.c741fbda.js";import{u as Cv,a as Iv,b as Tv,c as Ov,d as Rv,_ as Ct,e as Dv,w as Fv}from"./tnode.17829577.js";import{u as Pv}from"./useDisabled.ae969762.js";import"./chart.61cd37ef.js";/**
|
||||
import{u as eu,b as Od,c as Rd,d as zf,e as et,v as Dd,l as Gf,_ as Tt,f as Fd,g as Pd,L as Md,h as Bd,i as Ud,j as Wd,k as tu,R as $d,D as Nd,m as Hd,n as Kd,o as zd,p as Gd,q as kd,r as qd}from"./index.8ffc240e.js";import{F as Zd}from"./index.e9d1891d.js";import{d as Be,c as on,aI as R,aZ as Yd,aO as Et,f as nt,bg as Xd,bh as Jd,h as Uf,bi as Wf,bj as Qd,bk as Vd,i as jd,b9 as nv,bl as ev,bm as kf,C as an,D as It,G as un,aH as G,aM as Ar,u as ie,aE as yn,aF as Me,aN as Lr,aK as qf,aJ as Zf,bn as tv,Q as rv,a_ as iv,bo as Yf,bp as Xf,a0 as uv,bq as Jf,ao as ov,E as Qf,br as fv,a2 as av,bd as Vf,be as jf,w as na,bs as sv,bt as lv,o as ea,bu as cv,b as hv,b1 as _v,bv as $f,bw as pv,bx as gv,p as dv,aY as vv,by as mv,F as Nf,bz as wv,bA as xv}from"./arco.02de294f.js";import{f as Er,h as ru,i as bv,j as yv,k as Sv,l as Av}from"./vue.4e4c1473.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as Hf,c as Lv,e as Ev}from"./serial.c741fbda.js";import{u as Cv,a as Iv,b as Tv,c as Ov,d as Rv,_ as Ct,e as Dv,w as Fv}from"./tnode.17829577.js";import{u as Pv}from"./useDisabled.ae969762.js";import"./chart.61cd37ef.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/default-layout.511c272e.js.gz
Normal file
BIN
assets/default-layout.511c272e.js.gz
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import{e as V,s as z,_ as L}from"./index.e6020230.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as K,r as N,bP as j,bQ as G,bD as J,C as Q,D as $,aI as e,aH as o,G as D,aM as F,bo as q,bp as W,n as f,a_ as X,b9 as Y,bR as Z,b6 as tt,bS as et,bB as ut,bE as ot,bJ as at}from"./arco.02de294f.js";import{i as y,b as g,g as w,e as A,a as nt}from"./serial.c741fbda.js";import{_ as rt}from"./dialog.b592eae7.js";import{w as it}from"./tnode.17829577.js";import"./chart.61cd37ef.js";import"./vue.4e4c1473.js";import"./dep-281dbb92.a51c1523.js";import"./index.37837b88.js";import"./index.ac0c285d.js";import"./useDisabled.ae969762.js";/**
|
||||
import{e as V,s as z,_ as L}from"./index.8ffc240e.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as K,r as N,bP as j,bQ as G,bD as J,C as Q,D as $,aI as e,aH as o,G as D,aM as F,bo as q,bp as W,n as f,a_ as X,b9 as Y,bR as Z,b6 as tt,bS as et,bB as ut,bE as ot,bJ as at}from"./arco.02de294f.js";import{i as y,b as g,g as w,e as A,a as nt}from"./serial.c741fbda.js";import{_ as rt}from"./dialog.b592eae7.js";import{w as it}from"./tnode.17829577.js";import"./chart.61cd37ef.js";import"./vue.4e4c1473.js";import"./dep-281dbb92.a51c1523.js";import"./index.37837b88.js";import"./index.ac0c285d.js";import"./useDisabled.ae969762.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.077a571d.js.gz
Normal file
BIN
assets/index.077a571d.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import{e as ct,s as it,_ as st}from"./index.e6020230.js";/* empty css *//* empty css *//* empty css */import{d as N,c as w,o as ut,b as lt,f as pt,t as ft,p as dt,r as W,aI as g,bh as Q,i as mt,bD as gt,bO as bt,C as k,D as R,aH as y,aK as yt,aJ as vt,aE as Ot,G as M,u as z,aM as L,bE as _t,bJ as ht,a_ as jt,b9 as wt,bd as Pt,be as xt}from"./arco.02de294f.js";import{e as Ct,b as Et,g as Dt}from"./serial.c741fbda.js";import{u as Y,r as Z,_ as tt}from"./dep-281dbb92.a51c1523.js";import{B as St}from"./index.ac0c285d.js";import{_ as v,m as S,q as $,a as et,b as nt,w as at}from"./tnode.17829577.js";import{i as A,h as Ft}from"./index.75610eb6.js";import{d as F,i as T}from"./index.37837b88.js";import{C as Nt}from"./index.ad4d82c6.js";import"./chart.61cd37ef.js";import"./vue.4e4c1473.js";import"./useDisabled.ae969762.js";function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(a){tt(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var At={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.66 7.17l-5.3 5.3-1.42-1.41 5.3-5.3 1.42 1.41zm5.65 0l-10.6 10.6-6.37-6.36L7.76 10l4.95 4.95 9.19-9.2 1.41 1.42zM2.11 10l4.94 4.95.35-.35L8.82 16l-1.77 1.77L.69 11.4 2.1 10z"}}]},It=N({name:"CheckDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,a=w(()=>e.size),{className:i,style:f}=Y(a),c=w(()=>["t-icon","t-icon-check-double",i.value]),r=w(()=>V(V({},f.value),n.style)),s=w(()=>({class:c.value,style:r.value,onClick:l=>{var o;return(o=e.onClick)===null||o===void 0?void 0:o.call(e,{e:l})}}));return()=>Z(At,s.value)}});const kt=It;function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G(Object(n),!0).forEach(function(a){tt(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var Bt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.88 1.38l1.28.22a4 4 0 013.34 3.94V8h5.32a2 2 0 011.97 2.33l-1.66 10A2 2 0 0119.15 22H7V10.8l3.88-9.42zm1.23 2.26L9 11.2V20h10.15l1.67-10H13.5V5.54a2 2 0 00-1.39-1.9zM4 10v12H2V10h2z"}}]},$t=N({name:"ThumbUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,a=w(()=>e.size),{className:i,style:f}=Y(a),c=w(()=>["t-icon","t-icon-thumb-up",i.value]),r=w(()=>H(H({},f.value),n.style)),s=w(()=>({class:c.value,style:r.value,onClick:l=>{var o;return(o=e.onClick)===null||o===void 0?void 0:o.call(e,{e:l})}}));return()=>Z(Bt,s.value)}});const Mt=$t;/**
|
||||
import{e as ct,s as it,_ as st}from"./index.8ffc240e.js";/* empty css *//* empty css *//* empty css */import{d as N,c as w,o as ut,b as lt,f as pt,t as ft,p as dt,r as W,aI as g,bh as Q,i as mt,bD as gt,bO as bt,C as k,D as R,aH as y,aK as yt,aJ as vt,aE as Ot,G as M,u as z,aM as L,bE as _t,bJ as ht,a_ as jt,b9 as wt,bd as Pt,be as xt}from"./arco.02de294f.js";import{e as Ct,b as Et,g as Dt}from"./serial.c741fbda.js";import{u as Y,r as Z,_ as tt}from"./dep-281dbb92.a51c1523.js";import{B as St}from"./index.ac0c285d.js";import{_ as v,m as S,q as $,a as et,b as nt,w as at}from"./tnode.17829577.js";import{i as A,h as Ft}from"./index.75610eb6.js";import{d as F,i as T}from"./index.37837b88.js";import{C as Nt}from"./index.ad4d82c6.js";import"./chart.61cd37ef.js";import"./vue.4e4c1473.js";import"./useDisabled.ae969762.js";function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(a){tt(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var At={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.66 7.17l-5.3 5.3-1.42-1.41 5.3-5.3 1.42 1.41zm5.65 0l-10.6 10.6-6.37-6.36L7.76 10l4.95 4.95 9.19-9.2 1.41 1.42zM2.11 10l4.94 4.95.35-.35L8.82 16l-1.77 1.77L.69 11.4 2.1 10z"}}]},It=N({name:"CheckDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,a=w(()=>e.size),{className:i,style:f}=Y(a),c=w(()=>["t-icon","t-icon-check-double",i.value]),r=w(()=>V(V({},f.value),n.style)),s=w(()=>({class:c.value,style:r.value,onClick:l=>{var o;return(o=e.onClick)===null||o===void 0?void 0:o.call(e,{e:l})}}));return()=>Z(At,s.value)}});const kt=It;function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G(Object(n),!0).forEach(function(a){tt(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var Bt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.88 1.38l1.28.22a4 4 0 013.34 3.94V8h5.32a2 2 0 011.97 2.33l-1.66 10A2 2 0 0119.15 22H7V10.8l3.88-9.42zm1.23 2.26L9 11.2V20h10.15l1.67-10H13.5V5.54a2 2 0 00-1.39-1.9zM4 10v12H2V10h2z"}}]},$t=N({name:"ThumbUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,a=w(()=>e.size),{className:i,style:f}=Y(a),c=w(()=>["t-icon","t-icon-thumb-up",i.value]),r=w(()=>H(H({},f.value),n.style)),s=w(()=>({class:c.value,style:r.value,onClick:l=>{var o;return(o=e.onClick)===null||o===void 0?void 0:o.call(e,{e:l})}}));return()=>Z(Bt,s.value)}});const Mt=$t;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.31deaad0.js.gz
Normal file
BIN
assets/index.31deaad0.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.3a6f0d7a.js.gz
Normal file
BIN
assets/index.3a6f0d7a.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.4a3261d2.js.gz
Normal file
BIN
assets/index.4a3261d2.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
import{d as x,c as q,b4 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,b5 as z,f as A,r as G,b6 as H,b7 as J,b8 as K,b9 as Q,ba as T,u as C,aM as f,aZ as W,bb as Z,bc as O,a_ as X,bd as Y,be as ee}from"./arco.02de294f.js";import{F as oe}from"./index.d8c45cce.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.e6020230.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.4e4c1473.js";import{u as le}from"./loading.efda6eac.js";import"./chart.61cd37ef.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:y,password:$}=l;a.value.username=u?y:"",a.value.password=u?$:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,u=Z,y=ne,$=O,B=J,N=K,P=X,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($,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e(y)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(M,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":C(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(N,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const ye=k(we,[["__scopeId","data-v-12db3177"]]),$e=c=>(Y("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=$e(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),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(ye)]),s("div",Pe,[e(oe)])])]))}});const je=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{je as default};
|
||||
import{d as x,c as q,b4 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,b5 as z,f as A,r as G,b6 as H,b7 as J,b8 as K,b9 as Q,ba as T,u as C,aM as f,aZ as W,bb as Z,bc as O,a_ as X,bd as Y,be as ee}from"./arco.02de294f.js";import{F as oe}from"./index.e9d1891d.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.8ffc240e.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.4e4c1473.js";import{u as le}from"./loading.efda6eac.js";import"./chart.61cd37ef.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:y,password:$}=l;a.value.username=u?y:"",a.value.password=u?$:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,u=Z,y=ne,$=O,B=J,N=K,P=X,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($,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e(y)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(M,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":C(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(N,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const ye=k(we,[["__scopeId","data-v-12db3177"]]),$e=c=>(Y("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=$e(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),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(ye)]),s("div",Pe,[e(oe)])])]))}});const je=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{je as default};
|
BIN
assets/index.4be1060b.js.gz
Normal file
BIN
assets/index.4be1060b.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
import{e as B,s as h,_ as E}from"./index.e6020230.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as g,r as v,bD as y,C as A,D as C,aI as n,aH as u,G as w,aM as m,a_ as k,b9 as D,bB as x,bE as H,bJ as S,n as T}from"./arco.02de294f.js";import{e as R,b as U,g as L}from"./serial.c741fbda.js";import{C as P}from"./index.ad4d82c6.js";import"./chart.61cd37ef.js";import"./vue.4e4c1473.js";import"./tnode.17829577.js";import"./index.37837b88.js";const I={class:"container"},M=["innerHTML"],N={name:"Chi"},V=g({...N,setup($){const r=B(),i=v({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),F=async(s=0,t)=>{var c;await R(r.connectPort);for(let e=s;e<t.length+s;e+=128)await U(r.connectPort,e,t.slice(e-s,e-s+128),128,(c=r.configuration)==null?void 0:c.uart),i.status=i.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((e-s)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const o=document==null?void 0:document.getElementById("statusArea");o&&(o.scrollTop=o==null?void 0:o.scrollHeight)});i.status=i.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await L(r.connectPort)},b=async(s=1)=>{var c,e,o,f;if(r.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((c=r.configuration)==null?void 0:c.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}i.status=i.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(s==4){(e=r.configuration)!=null&&e.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const d=t.body.getReader(),a=[];for(;;){const{done:l,value:p}=await d.read();if(l)break;a.push(...p)}const _=new Uint8Array(a);await F(131072,_);return}if(s==1){if(((o=r.configuration)==null?void 0:o.charset)=="losehu"){t=await fetch("/old_font.bin");const d=t.body.getReader(),a=[];for(;;){const{done:l,value:p}=await d.read();if(l)break;a.push(...p)}const _=new Uint8Array(a);await F(8192,_);return}if(((f=r.configuration)==null?void 0:f.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const d=t.body.getReader(),a=[];for(;;){const{done:l,value:p}=await d.read();if(l)break;a.push(...p)}const _=new Uint8Array(a);await F(9344,_);return}}};return(s,t)=>{const c=h,e=k,o=P,f=D,d=x,a=y,_=H,l=S;return A(),C("div",I,[n(c,{items:["\u5C0F\u5DE5\u5177","\u5B57\u5E93\u5199\u5165"]}),n(l,{gutter:20,align:"stretch"},{default:u(()=>[n(_,{span:24},{default:u(()=>[n(a,{class:"general-card"},{title:u(()=>[w("span",{onClick:t[0]||(t[0]=()=>{i.showHide+=1})},"\u5B57\u5E93\u5199\u5165\uFF08\u624B\u53F0\u5E94\u5728\u5F00\u673A\u72B6\u6001\u4E0B\uFF09")]),default:u(()=>[n(f,null,{default:u(()=>[n(o,{bordered:""},{header:u(()=>[m(" LOSEHU \u56FA\u4EF6\u5B57\u5E93\u5199\u5165 ")]),default:u(()=>[n(e,{onClick:t[1]||(t[1]=p=>b(1))},{default:u(()=>[m("\u81EA\u52A8\u5199\u5165\u5B57\u5E93")]),_:1})]),_:1}),n(o,{bordered:""},{header:u(()=>[m(" LOSEHU H \u7248\u56FA\u4EF6\u62FC\u97F3\u7D22\u5F15\u8868 ")]),default:u(()=>[n(f,null,{default:u(()=>[n(e,{onClick:t[2]||(t[2]=p=>b(4))},{default:u(()=>[m("\u5199\u5165\u62FC\u97F3\u68C0\u7D22\u8868")]),_:1})]),_:1})]),_:1})]),_:1}),n(d),w("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:i.status},null,8,M)]),_:1})]),_:1})]),_:1})])}}});const tt=E(V,[["__scopeId","data-v-c90f8efa"]]);export{tt as default};
|
||||
import{e as B,s as h,_ as E}from"./index.8ffc240e.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as g,r as v,bD as y,C as A,D as C,aI as n,aH as u,G as w,aM as m,a_ as k,b9 as D,bB as x,bE as H,bJ as S,n as T}from"./arco.02de294f.js";import{e as R,b as U,g as L}from"./serial.c741fbda.js";import{C as P}from"./index.ad4d82c6.js";import"./chart.61cd37ef.js";import"./vue.4e4c1473.js";import"./tnode.17829577.js";import"./index.37837b88.js";const I={class:"container"},M=["innerHTML"],N={name:"Chi"},V=g({...N,setup($){const r=B(),i=v({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),F=async(s=0,t)=>{var c;await R(r.connectPort);for(let e=s;e<t.length+s;e+=128)await U(r.connectPort,e,t.slice(e-s,e-s+128),128,(c=r.configuration)==null?void 0:c.uart),i.status=i.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((e-s)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const o=document==null?void 0:document.getElementById("statusArea");o&&(o.scrollTop=o==null?void 0:o.scrollHeight)});i.status=i.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await L(r.connectPort)},b=async(s=1)=>{var c,e,o,f;if(r.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((c=r.configuration)==null?void 0:c.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}i.status=i.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(s==4){(e=r.configuration)!=null&&e.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const d=t.body.getReader(),a=[];for(;;){const{done:l,value:p}=await d.read();if(l)break;a.push(...p)}const _=new Uint8Array(a);await F(131072,_);return}if(s==1){if(((o=r.configuration)==null?void 0:o.charset)=="losehu"){t=await fetch("/old_font.bin");const d=t.body.getReader(),a=[];for(;;){const{done:l,value:p}=await d.read();if(l)break;a.push(...p)}const _=new Uint8Array(a);await F(8192,_);return}if(((f=r.configuration)==null?void 0:f.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const d=t.body.getReader(),a=[];for(;;){const{done:l,value:p}=await d.read();if(l)break;a.push(...p)}const _=new Uint8Array(a);await F(9344,_);return}}};return(s,t)=>{const c=h,e=k,o=P,f=D,d=x,a=y,_=H,l=S;return A(),C("div",I,[n(c,{items:["\u5C0F\u5DE5\u5177","\u5B57\u5E93\u5199\u5165"]}),n(l,{gutter:20,align:"stretch"},{default:u(()=>[n(_,{span:24},{default:u(()=>[n(a,{class:"general-card"},{title:u(()=>[w("span",{onClick:t[0]||(t[0]=()=>{i.showHide+=1})},"\u5B57\u5E93\u5199\u5165\uFF08\u624B\u53F0\u5E94\u5728\u5F00\u673A\u72B6\u6001\u4E0B\uFF09")]),default:u(()=>[n(f,null,{default:u(()=>[n(o,{bordered:""},{header:u(()=>[m(" LOSEHU \u56FA\u4EF6\u5B57\u5E93\u5199\u5165 ")]),default:u(()=>[n(e,{onClick:t[1]||(t[1]=p=>b(1))},{default:u(()=>[m("\u81EA\u52A8\u5199\u5165\u5B57\u5E93")]),_:1})]),_:1}),n(o,{bordered:""},{header:u(()=>[m(" LOSEHU H \u7248\u56FA\u4EF6\u62FC\u97F3\u7D22\u5F15\u8868 ")]),default:u(()=>[n(f,null,{default:u(()=>[n(e,{onClick:t[2]||(t[2]=p=>b(4))},{default:u(()=>[m("\u5199\u5165\u62FC\u97F3\u68C0\u7D22\u8868")]),_:1})]),_:1})]),_:1})]),_:1}),n(d),w("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:i.status},null,8,M)]),_:1})]),_:1})]),_:1})])}}});const tt=E(V,[["__scopeId","data-v-c90f8efa"]]);export{tt as default};
|
BIN
assets/index.73223489.js.gz
Normal file
BIN
assets/index.73223489.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.8ffc240e.js.gz
Normal file
BIN
assets/index.8ffc240e.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
import{_ as r}from"./index.e6020230.js";/* empty css */import{d as p,r as _,o as f,bB as h,a_ as m,D as g,bo as i,bp as c,G as a,aI as e,aN as n,aH as F,bd as y,be as v,C as A,aM as D}from"./arco.02de294f.js";import"./chart.61cd37ef.js";import"./vue.4e4c1473.js";const b=s=>(y("data-v-14f2aa44"),s=s(),v(),s),B={class:"container"},S={style:{"background-color":"#fff",padding:"10%"}},C={style:{"background-color":"#fff",padding:"10%"}},E=b(()=>a("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F ",-1)),x={name:"SatLoc"},w=p({...x,setup(s){const t=_({lat:0,lng:0,alt:0,type:0,uuid:""});f(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(o=>{o.coords&&(t.lat=o.coords.latitude,t.lng=o.coords.longitude,o.coords.altitude&&(t.alt=o.coords.altitude))})});const d=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(o,k)=>{const u=h,l=m;return A(),g("div",B,[i(a("div",S," \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE ",512),[[c,t.type!=0]]),i(a("div",C,[E,e(u),a("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF1A"+n(t.lng),1),e(u),a("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF1A"+n(t.lat),1),e(u),a("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF1A"+n(t.alt),1),e(u),e(l,{type:"primary",onClick:d},{default:F(()=>[D("\u4E0A\u4F20")]),_:1})],512),[[c,t.type==0]])])}}});const V=r(w,[["__scopeId","data-v-14f2aa44"]]);export{V as default};
|
||||
import{_ as r}from"./index.8ffc240e.js";/* empty css */import{d as p,r as _,o as f,bB as h,a_ as m,D as g,bo as i,bp as c,G as a,aI as e,aN as n,aH as F,bd as y,be as v,C as A,aM as D}from"./arco.02de294f.js";import"./chart.61cd37ef.js";import"./vue.4e4c1473.js";const b=s=>(y("data-v-14f2aa44"),s=s(),v(),s),B={class:"container"},S={style:{"background-color":"#fff",padding:"10%"}},C={style:{"background-color":"#fff",padding:"10%"}},E=b(()=>a("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F ",-1)),x={name:"SatLoc"},w=p({...x,setup(s){const t=_({lat:0,lng:0,alt:0,type:0,uuid:""});f(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(o=>{o.coords&&(t.lat=o.coords.latitude,t.lng=o.coords.longitude,o.coords.altitude&&(t.alt=o.coords.altitude))})});const d=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(o,k)=>{const u=h,l=m;return A(),g("div",B,[i(a("div",S," \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE ",512),[[c,t.type!=0]]),i(a("div",C,[E,e(u),a("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF1A"+n(t.lng),1),e(u),a("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF1A"+n(t.lat),1),e(u),a("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF1A"+n(t.alt),1),e(u),e(l,{type:"primary",onClick:d},{default:F(()=>[D("\u4E0A\u4F20")]),_:1})],512),[[c,t.type==0]])])}}});const V=r(w,[["__scopeId","data-v-14f2aa44"]]);export{V as default};
|
BIN
assets/index.915a7252.js.gz
Normal file
BIN
assets/index.915a7252.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
import{_ as n}from"./index.e6020230.js";import{d as _,bC as c,a_ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.02de294f.js";import{f as m}from"./vue.4e4c1473.js";import"./chart.61cd37ef.js";const f={class:"content"},x={class:"operation-row"},b=_({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=c,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.8ffc240e.js";import{d as _,bC as c,a_ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.02de294f.js";import{f as m}from"./vue.4e4c1473.js";import"./chart.61cd37ef.js";const f={class:"content"},x={class:"operation-row"},b=_({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=c,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.
@ -1 +1 @@
|
||||
import{d as A,r as Q,bD as W,C as R,aE as X,aH as i,aI as c,aM as d,aN as r,u as h,bo as Y,bp as Z,bn as tt,bE as ot,bB as at,a_ as nt,b9 as et,bd as rt,be as ct,G as s,D as it}from"./arco.02de294f.js";import{v as st,e as ut,_ as U}from"./index.e6020230.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.61cd37ef.js";import"./vue.4e4c1473.js";const pt=""+new URL("../gy.png",import.meta.url).href,k=u=>(rt("data-v-28070f4a"),u=u(),ct(),u),dt=k(()=>s("br",null,null,-1)),lt=k(()=>s("br",null,null,-1)),mt=k(()=>s("div",null,[s("img",{style:{"margin-bottom":"10px"},width:"600px",src:pt})],-1)),ft=A({__name:"banner",setup(u){const{t:S}=st.exports.useI18n(),t=ut(),P=Q({eepromSize:S("workplace.clickCheck")}),j=async()=>{var _,l,m,f,g,p,M,v,y,B,$,E,I,x,C,D,K,z,N,T,V;let o="\u672A\u77E5\u3001\u6545\u969C\u3001\u4E0D\u53EF\u7528";const F=[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(F);if(((_=t.configuration)==null?void 0:_.uart)=="official"){const w=await n(t.connectPort,0,8,(l=t.configuration)==null?void 0:l.uart);await e(t.connectPort,0,a,8,(m=t.configuration)==null?void 0:m.uart);const b=await n(t.connectPort,0,8,(f=t.configuration)==null?void 0:f.uart);a.toString()==b.toString()&&(o="8KB\uFF0864Kbit\uFF09"),await e(t.connectPort,0,w,8,(g=t.configuration)==null?void 0:g.uart)}else{const w=await n(t.connectPort,0,8,(p=t.configuration)==null?void 0:p.uart);await e(t.connectPort,0,a,8,(M=t.configuration)==null?void 0:M.uart);const b=await n(t.connectPort,0,8,(v=t.configuration)==null?void 0:v.uart);a.toString()==b.toString()&&(o="8KB\uFF0864Kbit\uFF09"),await e(t.connectPort,0,w,8,(y=t.configuration)==null?void 0:y.uart);const G=await n(t.connectPort,131064,8,(B=t.configuration)==null?void 0:B.uart);await e(t.connectPort,131064,a,8,($=t.configuration)==null?void 0:$.uart);const H=await n(t.connectPort,131064,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==H.toString()&&(o="128KB\uFF081Mbit\uFF09"),await e(t.connectPort,131064,G,8,(I=t.configuration)==null?void 0:I.uart);const L=await n(t.connectPort,262136,8,(x=t.configuration)==null?void 0:x.uart);await e(t.connectPort,262136,a,8,(C=t.configuration)==null?void 0:C.uart);const O=await n(t.connectPort,262136,8,(D=t.configuration)==null?void 0:D.uart);a.toString()==O.toString()&&(o="256KB\uFF082Mbit\uFF09"),await e(t.connectPort,262136,L,8,(K=t.configuration)==null?void 0:K.uart);const q=await n(t.connectPort,524280,8,(z=t.configuration)==null?void 0:z.uart);await e(t.connectPort,524280,a,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);a.toString()==J.toString()&&(o="512KB\uFF084Mbit\uFF09"),await e(t.connectPort,524280,q,8,(V=t.configuration)==null?void 0:V.uart)}P.eepromSize=o};return(o,F)=>{const a=tt,_=ot,l=at,m=nt,f=W,g=et;return R(),X(_,{class:"banner"},{default:i(()=>[c(_,null,{default:i(()=>[c(a,{heading:5,style:{"margin-top":"0"}},{default:i(()=>[d(r(h(t).connectState?o.$t("workplace.welcomeSuc"):o.$t("workplace.welcome")),1)]),_:1})]),_:1}),c(l,{class:"panel-border"}),c(g,null,{default:i(()=>[Y(c(f,{style:{marginTop:"2em",marginBottom:"2em"},title:o.$t("workplace.info")},{default:i(()=>{var p;return[d(r(o.$t("workplace.current"))+r(h(t).firmwareVersion)+" ",1),dt,d(" "+r(o.$t("workplace.writeconfig"))+r((p=h(t).configuration)==null?void 0:p.name)+" ",1),lt,d(" "+r(o.$t("workplace.eepromSize"))+r(P.eepromSize)+" ",1),c(m,{size:"mini",type:"primary",onClick:j},{default:i(()=>[d(r(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,h(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=U(ft,[["__scopeId","data-v-28070f4a"]]),ht={class:"container"},wt={class:"left-side"},bt={class:"panel"},kt={name:"Dashboard"},St=A({...kt,setup(u){return(S,t)=>(R(),it("div",ht,[s("div",wt,[s("div",bt,[c(gt)])])]))}});const Dt=U(St,[["__scopeId","data-v-8f743d99"]]);export{Dt as default};
|
||||
import{d as A,r as Q,bD as W,C as R,aE as X,aH as i,aI as c,aM as d,aN as r,u as h,bo as Y,bp as Z,bn as tt,bE as ot,bB as at,a_ as nt,b9 as et,bd as rt,be as ct,G as s,D as it}from"./arco.02de294f.js";import{v as st,e as ut,_ as U}from"./index.8ffc240e.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.61cd37ef.js";import"./vue.4e4c1473.js";const pt=""+new URL("../gy.png",import.meta.url).href,k=u=>(rt("data-v-28070f4a"),u=u(),ct(),u),dt=k(()=>s("br",null,null,-1)),lt=k(()=>s("br",null,null,-1)),mt=k(()=>s("div",null,[s("img",{style:{"margin-bottom":"10px"},width:"600px",src:pt})],-1)),ft=A({__name:"banner",setup(u){const{t:S}=st.exports.useI18n(),t=ut(),P=Q({eepromSize:S("workplace.clickCheck")}),j=async()=>{var _,l,m,f,g,p,M,v,y,B,$,E,I,x,C,D,K,z,N,T,V;let o="\u672A\u77E5\u3001\u6545\u969C\u3001\u4E0D\u53EF\u7528";const F=[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(F);if(((_=t.configuration)==null?void 0:_.uart)=="official"){const w=await n(t.connectPort,0,8,(l=t.configuration)==null?void 0:l.uart);await e(t.connectPort,0,a,8,(m=t.configuration)==null?void 0:m.uart);const b=await n(t.connectPort,0,8,(f=t.configuration)==null?void 0:f.uart);a.toString()==b.toString()&&(o="8KB\uFF0864Kbit\uFF09"),await e(t.connectPort,0,w,8,(g=t.configuration)==null?void 0:g.uart)}else{const w=await n(t.connectPort,0,8,(p=t.configuration)==null?void 0:p.uart);await e(t.connectPort,0,a,8,(M=t.configuration)==null?void 0:M.uart);const b=await n(t.connectPort,0,8,(v=t.configuration)==null?void 0:v.uart);a.toString()==b.toString()&&(o="8KB\uFF0864Kbit\uFF09"),await e(t.connectPort,0,w,8,(y=t.configuration)==null?void 0:y.uart);const G=await n(t.connectPort,131064,8,(B=t.configuration)==null?void 0:B.uart);await e(t.connectPort,131064,a,8,($=t.configuration)==null?void 0:$.uart);const H=await n(t.connectPort,131064,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==H.toString()&&(o="128KB\uFF081Mbit\uFF09"),await e(t.connectPort,131064,G,8,(I=t.configuration)==null?void 0:I.uart);const L=await n(t.connectPort,262136,8,(x=t.configuration)==null?void 0:x.uart);await e(t.connectPort,262136,a,8,(C=t.configuration)==null?void 0:C.uart);const O=await n(t.connectPort,262136,8,(D=t.configuration)==null?void 0:D.uart);a.toString()==O.toString()&&(o="256KB\uFF082Mbit\uFF09"),await e(t.connectPort,262136,L,8,(K=t.configuration)==null?void 0:K.uart);const q=await n(t.connectPort,524280,8,(z=t.configuration)==null?void 0:z.uart);await e(t.connectPort,524280,a,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);a.toString()==J.toString()&&(o="512KB\uFF084Mbit\uFF09"),await e(t.connectPort,524280,q,8,(V=t.configuration)==null?void 0:V.uart)}P.eepromSize=o};return(o,F)=>{const a=tt,_=ot,l=at,m=nt,f=W,g=et;return R(),X(_,{class:"banner"},{default:i(()=>[c(_,null,{default:i(()=>[c(a,{heading:5,style:{"margin-top":"0"}},{default:i(()=>[d(r(h(t).connectState?o.$t("workplace.welcomeSuc"):o.$t("workplace.welcome")),1)]),_:1})]),_:1}),c(l,{class:"panel-border"}),c(g,null,{default:i(()=>[Y(c(f,{style:{marginTop:"2em",marginBottom:"2em"},title:o.$t("workplace.info")},{default:i(()=>{var p;return[d(r(o.$t("workplace.current"))+r(h(t).firmwareVersion)+" ",1),dt,d(" "+r(o.$t("workplace.writeconfig"))+r((p=h(t).configuration)==null?void 0:p.name)+" ",1),lt,d(" "+r(o.$t("workplace.eepromSize"))+r(P.eepromSize)+" ",1),c(m,{size:"mini",type:"primary",onClick:j},{default:i(()=>[d(r(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,h(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=U(ft,[["__scopeId","data-v-28070f4a"]]),ht={class:"container"},wt={class:"left-side"},bt={class:"panel"},kt={name:"Dashboard"},St=A({...kt,setup(u){return(S,t)=>(R(),it("div",ht,[s("div",wt,[s("div",bt,[c(gt)])])]))}});const Dt=U(St,[["__scopeId","data-v-8f743d99"]]);export{Dt as default};
|
BIN
assets/index.b49c79fa.js.gz
Normal file
BIN
assets/index.b49c79fa.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
import{e as B,s as E,_ as g}from"./index.e6020230.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as w,r as A,bD as k,C as v,D as x,aI as s,aH as c,aM as p,aN as C,G as D,n as m,a_ as N,b9 as P,bB as S,bE as T,bJ as H}from"./arco.02de294f.js";import{d as F,c as I,r as d,j as V,k as f,l as M,m as j}from"./serial.c741fbda.js";import"./chart.61cd37ef.js";import"./vue.4e4c1473.js";const L={class:"container"},R=["innerHTML"],U={name:"Flash"},z=w({...U,setup(G){const i=B(),t=A({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),b=()=>{const a=document.createElement("input");a.type="file",a.onchange=async()=>{const u=new Blob([a.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await u.arrayBuffer());t.binaryFile=r,t.binaryName=a.files[0].name},a.click()},y=async()=>{if(!t.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}i.connectPort&&await F(i.connectPort);let a=await I();await d(a,24,1e3);const u=V(t.binaryFile),r=new Uint8Array([48,5,u.length,0,...u]);await f(a,r),await d(a,24);const o=M(t.binaryFile);if(o.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let e=0;e<o.length;e+=256){const l=o.slice(e,e+256),_=j(l,e,o.length);try{await f(a,_),await d(a,26)}catch(n){return console.log("Flash command rejected. Aborting."),Promise.reject(n)}t.status=t.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(e/o.length*100).toFixed(1)}%<br/>`,m(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.scrollHeight)})}t.status=t.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",t.status=t.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",m(()=>{const e=document==null?void 0:document.getElementById("statusArea");e&&(e.scrollTop=e==null?void 0:e.scrollHeight)}),F(a),i.updateSettings({connectState:!1})};return(a,u)=>{const r=E,o=N,e=P,l=S,_=k,n=T,h=H;return v(),x("div",L,[s(r,{items:["\u5C0F\u5DE5\u5177","\u56FA\u4EF6\u5347\u7EA7"]}),s(h,{gutter:20,align:"stretch"},{default:c(()=>[s(n,{span:24},{default:c(()=>[s(_,{class:"general-card",title:"\u56FA\u4EF6\u5347\u7EA7\uFF08\u624B\u53F0\u5E94\u5728\u5237\u673A\u6A21\u5F0F\u4E0B\uFF09"},{default:c(()=>[s(e,null,{default:c(()=>[s(o,{onClick:b},{default:c(()=>[p(C(t.binaryFile?t.binaryName:"\u9009\u62E9\u56FA\u4EF6"),1)]),_:1}),s(o,{type:"primary",disabled:!t.binaryFile,onClick:y},{default:c(()=>[p("\u66F4\u65B0")]),_:1},8,["disabled"])]),_:1}),s(l),D("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:t.status},null,8,R)]),_:1})]),_:1})]),_:1})])}}});const Z=g(z,[["__scopeId","data-v-058c0020"]]);export{Z as default};
|
||||
import{e as B,s as E,_ as g}from"./index.8ffc240e.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as w,r as A,bD as k,C as v,D as x,aI as s,aH as c,aM as p,aN as C,G as D,n as m,a_ as N,b9 as P,bB as S,bE as T,bJ as H}from"./arco.02de294f.js";import{d as F,c as I,r as d,j as V,k as f,l as M,m as j}from"./serial.c741fbda.js";import"./chart.61cd37ef.js";import"./vue.4e4c1473.js";const L={class:"container"},R=["innerHTML"],U={name:"Flash"},z=w({...U,setup(G){const i=B(),t=A({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),b=()=>{const a=document.createElement("input");a.type="file",a.onchange=async()=>{const u=new Blob([a.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await u.arrayBuffer());t.binaryFile=r,t.binaryName=a.files[0].name},a.click()},y=async()=>{if(!t.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}i.connectPort&&await F(i.connectPort);let a=await I();await d(a,24,1e3);const u=V(t.binaryFile),r=new Uint8Array([48,5,u.length,0,...u]);await f(a,r),await d(a,24);const o=M(t.binaryFile);if(o.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let e=0;e<o.length;e+=256){const l=o.slice(e,e+256),_=j(l,e,o.length);try{await f(a,_),await d(a,26)}catch(n){return console.log("Flash command rejected. Aborting."),Promise.reject(n)}t.status=t.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(e/o.length*100).toFixed(1)}%<br/>`,m(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.scrollHeight)})}t.status=t.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",t.status=t.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",m(()=>{const e=document==null?void 0:document.getElementById("statusArea");e&&(e.scrollTop=e==null?void 0:e.scrollHeight)}),F(a),i.updateSettings({connectState:!1})};return(a,u)=>{const r=E,o=N,e=P,l=S,_=k,n=T,h=H;return v(),x("div",L,[s(r,{items:["\u5C0F\u5DE5\u5177","\u56FA\u4EF6\u5347\u7EA7"]}),s(h,{gutter:20,align:"stretch"},{default:c(()=>[s(n,{span:24},{default:c(()=>[s(_,{class:"general-card",title:"\u56FA\u4EF6\u5347\u7EA7\uFF08\u624B\u53F0\u5E94\u5728\u5237\u673A\u6A21\u5F0F\u4E0B\uFF09"},{default:c(()=>[s(e,null,{default:c(()=>[s(o,{onClick:b},{default:c(()=>[p(C(t.binaryFile?t.binaryName:"\u9009\u62E9\u56FA\u4EF6"),1)]),_:1}),s(o,{type:"primary",disabled:!t.binaryFile,onClick:y},{default:c(()=>[p("\u66F4\u65B0")]),_:1},8,["disabled"])]),_:1}),s(l),D("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:t.status},null,8,R)]),_:1})]),_:1})]),_:1})])}}});const Z=g(z,[["__scopeId","data-v-058c0020"]]);export{Z as default};
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.e4eb658f.js.gz
Normal file
BIN
assets/index.e4eb658f.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
import{_ as t}from"./index.e6020230.js";import{C as a,aE as s,aH as _,bf as c,bd as n,be as r,G as d}from"./arco.02de294f.js";const p={},i=e=>(n("data-v-4b65ea7a"),e=e(),r(),e),f=i(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202404150050",-1));function b(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[f]),_:1})}const m=t(p,[["render",b],["__scopeId","data-v-4b65ea7a"]]);export{m as F};
|
||||
import{_ as t}from"./index.8ffc240e.js";import{C as a,aE as s,aH as _,bf as c,bd as n,be as r,G as d}from"./arco.02de294f.js";const p={},i=e=>(n("data-v-4b65ea7a"),e=e(),r(),e),f=i(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202404150050",-1));function b(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[f]),_:1})}const m=t(p,[["render",b],["__scopeId","data-v-4b65ea7a"]]);export{m as F};
|
Binary file not shown.
@ -23,7 +23,7 @@
|
||||
}
|
||||
</style>
|
||||
<script src="serial.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index.e6020230.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index.8ffc240e.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./assets/arco.02de294f.js">
|
||||
<link rel="modulepreload" crossorigin href="./assets/chart.61cd37ef.js">
|
||||
<link rel="modulepreload" crossorigin href="./assets/vue.4e4c1473.js">
|
||||
|
BIN
index.html.gz
BIN
index.html.gz
Binary file not shown.
Loading…
Reference in New Issue
Block a user