mirror of
https://github.com/silenty4ng/k5web
synced 2024-11-14 14:33:23 +00:00
update
This commit is contained in:
parent
00a81c96a9
commit
a5e3122b8b
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.46ec32ed.js.gz
Normal file
BIN
assets/default-layout.46ec32ed.js.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.90436784.css.gz
Normal file
BIN
assets/default-layout.90436784.css.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.09383935.css.gz
Normal file
BIN
assets/index.09383935.css.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.0a8c5549.css.gz
Normal file
BIN
assets/index.0a8c5549.css.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
assets/index.6e191290.js
Normal file
1
assets/index.6e191290.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{_ as n}from"./index.f5d338a6.js";import{d as c,bB as _,aX as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.d6577a9c.js";import{f as m}from"./vue.4f3ae527.js";import"./chart.4acde4c9.js";const f={class:"content"},x={class:"operation-row"},b=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",x,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const E=n(b,[["__scopeId","data-v-8bef407f"]]);export{E as default};
|
@ -1 +1 @@
|
|||||||
.arco-layout{display:flex;flex:1;flex-direction:column;margin:0;padding:0}.arco-layout-sider{position:relative;flex:none;width:auto;margin:0;padding:0;background:var(--color-menu-dark-bg);transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-children{height:100%;overflow:auto}.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar{width:0}.arco-layout-sider-has-trigger{box-sizing:border-box;padding-bottom:48px}.arco-layout-sider-trigger{z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;color:var(--color-white);background:rgba(255,255,255,.2);cursor:pointer;transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-trigger-light{color:var(--color-text-1);background:var(--color-menu-light-bg);border-top:1px solid var(--color-bg-5)}.arco-layout-sider-light{background:var(--color-menu-light-bg);box-shadow:0 2px 5px #00000014}.arco-layout-header{flex:0 0 auto;box-sizing:border-box;margin:0}.arco-layout-content{flex:1}.arco-layout-footer{flex:0 0 auto;margin:0}.arco-layout-has-sider{flex-direction:row}.arco-layout-has-sider>.arco-layout,.arco-layout-has-sider>.arco-layout-content{overflow-x:hidden}.footer[data-v-4da2ee18]{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center}
|
.arco-layout{display:flex;flex:1;flex-direction:column;margin:0;padding:0}.arco-layout-sider{position:relative;flex:none;width:auto;margin:0;padding:0;background:var(--color-menu-dark-bg);transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-children{height:100%;overflow:auto}.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar{width:0}.arco-layout-sider-has-trigger{box-sizing:border-box;padding-bottom:48px}.arco-layout-sider-trigger{z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;color:var(--color-white);background:rgba(255,255,255,.2);cursor:pointer;transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-trigger-light{color:var(--color-text-1);background:var(--color-menu-light-bg);border-top:1px solid var(--color-bg-5)}.arco-layout-sider-light{background:var(--color-menu-light-bg);box-shadow:0 2px 5px #00000014}.arco-layout-header{flex:0 0 auto;box-sizing:border-box;margin:0}.arco-layout-content{flex:1}.arco-layout-footer{flex:0 0 auto;margin:0}.arco-layout-has-sider{flex-direction:row}.arco-layout-has-sider>.arco-layout,.arco-layout-has-sider>.arco-layout-content{overflow-x:hidden}.footer[data-v-e46767dc]{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center}
|
BIN
assets/index.713d2932.css.gz
Normal file
BIN
assets/index.713d2932.css.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.76990f6d.js
Normal file
1
assets/index.76990f6d.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{_ as t}from"./index.f5d338a6.js";import{C as a,aE as c,aH as s,bf as _,bd as n,be as r,G as d}from"./arco.d6577a9c.js";const p={},i=e=>(n("data-v-e46767dc"),e=e(),r(),e),f=i(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web",-1));function l(e,u){const o=_;return a(),c(o,{class:"footer"},{default:s(()=>[f]),_:1})}const m=t(p,[["render",l],["__scopeId","data-v-e46767dc"]]);export{m as F};
|
@ -1 +1 @@
|
|||||||
.arco-result{box-sizing:border-box;width:100%;padding:32px 32px 24px}.arco-result-icon{margin-bottom:16px;font-size:20px;text-align:center}.arco-result-icon-tip{display:flex;width:45px;height:45px;align-items:center;justify-content:center;border-radius:50%;margin:0 auto}.arco-result-icon-custom .arco-result-icon-tip{font-size:45px;color:inherit;width:unset;height:unset}.arco-result-icon-success .arco-result-icon-tip{color:rgb(var(--success-6));background-color:var(--color-success-light-1)}.arco-result-icon-error .arco-result-icon-tip{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1)}.arco-result-icon-info .arco-result-icon-tip{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1)}.arco-result-icon-warning .arco-result-icon-tip{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1)}.arco-result-icon-404,.arco-result-icon-403,.arco-result-icon-500{padding-top:24px}.arco-result-icon-404 .arco-result-icon-tip,.arco-result-icon-403 .arco-result-icon-tip,.arco-result-icon-500 .arco-result-icon-tip{width:92px;height:92px;line-height:92px}.arco-result-title{color:var(--color-text-1);font-weight:500;font-size:14px;line-height:1.5715;text-align:center}.arco-result-subtitle{color:var(--color-text-2);font-size:14px;line-height:1.5715;text-align:center}.arco-result-extra{margin-top:20px;text-align:center}.arco-result-content{margin-top:20px}.content[data-v-018ad3bb]{position:absolute;top:50%;left:50%;margin-left:-95px;margin-top:-121px;text-align:center}
|
.arco-result{box-sizing:border-box;width:100%;padding:32px 32px 24px}.arco-result-icon{margin-bottom:16px;font-size:20px;text-align:center}.arco-result-icon-tip{display:flex;width:45px;height:45px;align-items:center;justify-content:center;border-radius:50%;margin:0 auto}.arco-result-icon-custom .arco-result-icon-tip{font-size:45px;color:inherit;width:unset;height:unset}.arco-result-icon-success .arco-result-icon-tip{color:rgb(var(--success-6));background-color:var(--color-success-light-1)}.arco-result-icon-error .arco-result-icon-tip{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1)}.arco-result-icon-info .arco-result-icon-tip{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1)}.arco-result-icon-warning .arco-result-icon-tip{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1)}.arco-result-icon-404,.arco-result-icon-403,.arco-result-icon-500{padding-top:24px}.arco-result-icon-404 .arco-result-icon-tip,.arco-result-icon-403 .arco-result-icon-tip,.arco-result-icon-500 .arco-result-icon-tip{width:92px;height:92px;line-height:92px}.arco-result-title{color:var(--color-text-1);font-weight:500;font-size:14px;line-height:1.5715;text-align:center}.arco-result-subtitle{color:var(--color-text-2);font-size:14px;line-height:1.5715;text-align:center}.arco-result-extra{margin-top:20px;text-align:center}.arco-result-content{margin-top:20px}.content[data-v-8bef407f]{position:absolute;top:50%;left:50%;margin-left:-95px;margin-top:-121px;text-align:center}
|
BIN
assets/index.7e947d57.css.gz
Normal file
BIN
assets/index.7e947d57.css.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
import{_ as n}from"./index.c754acd3.js";import{d as c,bB as _,aX as r,D as d,aI as e,G as p,aH as i,C as u,aM as l}from"./arco.d6577a9c.js";import{f as m}from"./vue.4f3ae527.js";import"./chart.4acde4c9.js";const b={class:"content"},f={class:"operation-row"},x=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return u(),d("div",b,[e(s,{class:"result",status:"404",subtitle:"not found"}),p("div",f,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" back ")]),_:1})])])}}});const V=n(x,[["__scopeId","data-v-018ad3bb"]]);export{V as default};
|
|
File diff suppressed because one or more lines are too long
BIN
assets/index.8f6bf80a.css.gz
Normal file
BIN
assets/index.8f6bf80a.css.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
import{_ as t}from"./index.c754acd3.js";import{C as a,aE as s,aH as _,bf as c,bd as n,be as r,G as d}from"./arco.d6577a9c.js";const p={},i=e=>(n("data-v-4da2ee18"),e=e(),r(),e),f=i(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web",-1));function l(e,u){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[f]),_:1})}const m=t(p,[["render",l],["__scopeId","data-v-4da2ee18"]]);export{m as F};
|
|
Binary file not shown.
Binary file not shown.
1
assets/index.bf03fe67.js
Normal file
1
assets/index.bf03fe67.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{e as D,_ as A}from"./index.f5d338a6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{a as w,b as k,f as x,g as h}from"./serial.dacf7476.js";import{d as v,r as C,b0 as g,C as T,D as M,aI as o,aH as s,aM as l,G as R,n as _,aX as H,bF as O,bG as P,bb as S,bD as U,bE as L,bC as V,bH as $}from"./arco.d6577a9c.js";import"./chart.4acde4c9.js";import"./vue.4f3ae527.js";const I={class:"container"},K=["innerHTML"],z={name:"Card"},N=v({...z,setup(j){const i=D(),n=C({status:"\u70B9\u51FB\u5907\u4EFD\u6309\u94AE\u5C06\u751F\u6210EEPROM\u5907\u4EFD\u6587\u4EF6<br/><br/>",eepromType:""}),F=async()=>{if(i.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await w()},m=async()=>{if(i.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}let e=8192;switch(n.eepromType){case"1":e=8192;break;case"2":e=131072;break;case"3":e=262144;break;case"4":e=524288;break;default:e=8192}let c=new Uint8Array(e);for(let u=0;u<e;u+=128){const p=await k(i.connectPort,u);c.set(p,u),n.status=n.status+"\u5907\u4EFD\u8FDB\u5EA6\uFF1A"+(u/e*100).toFixed(1)+"%<br/>",_(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)})}n.status=n.status+"\u5907\u4EFD\u8FDB\u5EA6\uFF1A100%<br/>",_(()=>{const u=document==null?void 0:document.getElementById("statusArea");u&&(u.scrollTop=u==null?void 0:u.scrollHeight)}),console.log(c);const d=new Blob([c],{type:"application/octet-stream"}),a=URL.createObjectURL(d),t=document.createElement("a");t.href=a,t.download=new Date+"_backup.bin",document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(a)},b=async()=>{if(i.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}const e=document.createElement("input");e.type="file",e.onchange=async()=>{const c=new Blob([e.files[0]],{type:"application/octet-stream"}),d=new Uint8Array(await c.arrayBuffer());for(let a=0;a<e.files[0].size;a+=128)await x(i.connectPort,a,d.slice(a,a+128)),n.status=n.status+"\u6062\u590D\u8FDB\u5EA6\uFF1A"+(a/e.files[0].size*100).toFixed(1)+"%<br/>",_(()=>{const t=document==null?void 0:document.getElementById("statusArea");t&&(t.scrollTop=t==null?void 0:t.scrollHeight)});n.status=n.status+"\u6062\u590D\u8FDB\u5EA6\uFF1A100%<br/>",h(i.connectPort)},e.click()};return(e,c)=>{const d=g("Breadcrumb"),a=H,t=O,u=P,p=S,r=U,f=L,E=V,B=$;return T(),M("div",I,[o(d,{items:["\u5C0F\u5DE5\u5177","\u5907\u4EFD/\u8FD8\u539F"]}),o(B,{gutter:20,align:"stretch"},{default:s(()=>[o(E,{span:24},{default:s(()=>[o(f,{class:"general-card",title:"\u5907\u4EFD/\u8FD8\u539F"},{default:s(()=>[o(p,null,{default:s(()=>[o(a,{type:"primary",onClick:m},{default:s(()=>[l("\u5907\u4EFD")]),_:1}),o(a,{onClick:b},{default:s(()=>[l("\u6062\u590D")]),_:1}),o(u,{modelValue:n.eepromType,"onUpdate:modelValue":c[0]||(c[0]=y=>n.eepromType=y),style:{width:"320px"},placeholder:"\u9009\u62E9EEPROM\u5927\u5C0F"},{default:s(()=>[o(t,{value:"1"},{default:s(()=>[l("8KB\uFF0864Kbit\uFF09")]),_:1}),o(t,{value:"2"},{default:s(()=>[l("128KB\uFF081Mbit\uFF09")]),_:1}),o(t,{value:"3"},{default:s(()=>[l("256KB\uFF082Mbit\uFF09")]),_:1}),o(t,{value:"4"},{default:s(()=>[l("512KB\uFF084Mbit\uFF09")]),_:1})]),_:1},8,["modelValue"]),o(a,{type:"text",onClick:F},{default:s(()=>[l("\u81EA\u52A8\u68C0\u6D4B")]),_:1})]),_:1}),o(r),R("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:n.status},null,8,K)]),_:1})]),_:1})]),_:1})])}}});const oe=A(N,[["__scopeId","data-v-21b4cf79"]]);export{oe as default};
|
BIN
assets/index.bf03fe67.js.gz
Normal file
BIN
assets/index.bf03fe67.js.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
import{e as D,_ as w}from"./index.c754acd3.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{a as k,b as x,f as A,g as h}from"./serial.dacf7476.js";import{d as v,r as C,b0 as g,C as T,D as M,aI as o,aH as u,aM as l,G as R,n as _,aX as H,bF as O,bG as P,bb as U,bD as L,bE as V,bC as $,bH as I}from"./arco.d6577a9c.js";import"./chart.4acde4c9.js";import"./vue.4f3ae527.js";const K={class:"container"},S=["innerHTML"],z={name:"Card"},N=v({...z,setup(j){const d=D(),n=C({status:"\u70B9\u51FB\u5907\u4EFD\u6309\u94AE\u5C06\u751F\u6210EEPROM\u5907\u4EFD\u6587\u4EF6<br/><br/>",eepromType:""}),m=async()=>{await k()},F=async()=>{let e=8192;switch(n.eepromType){case"1":e=8192;break;case"2":e=131072;break;case"3":e=262144;break;case"4":e=524288;break;default:e=8192}let c=new Uint8Array(e);for(let s=0;s<e;s+=128){const p=await x(d.connectPort,s);c.set(p,s),n.status=n.status+"\u5907\u4EFD\u8FDB\u5EA6\uFF1A"+(s/e*100).toFixed(1)+"%<br/>",_(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)})}n.status=n.status+"\u5907\u4EFD\u8FDB\u5EA6\uFF1A100%<br/>",_(()=>{const s=document==null?void 0:document.getElementById("statusArea");s&&(s.scrollTop=s==null?void 0:s.scrollHeight)}),console.log(c);const i=new Blob([c],{type:"application/octet-stream"}),a=URL.createObjectURL(i),t=document.createElement("a");t.href=a,t.download=new Date+"_backup.bin",document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(a)},b=async()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const c=new Blob([e.files[0]],{type:"application/octet-stream"}),i=new Uint8Array(await c.arrayBuffer());for(let a=0;a<e.files[0].size;a+=128)await A(d.connectPort,a,i.slice(a,a+128)),n.status=n.status+"\u6062\u590D\u8FDB\u5EA6\uFF1A"+(a/e.files[0].size*100).toFixed(1)+"%<br/>",_(()=>{const t=document==null?void 0:document.getElementById("statusArea");t&&(t.scrollTop=t==null?void 0:t.scrollHeight)});n.status=n.status+"\u6062\u590D\u8FDB\u5EA6\uFF1A100%<br/>",h(d.connectPort)},e.click()};return(e,c)=>{const i=g("Breadcrumb"),a=H,t=O,s=P,p=U,r=L,f=V,E=$,y=I;return T(),M("div",K,[o(i,{items:["\u5C0F\u5DE5\u5177","\u5907\u4EFD/\u8FD8\u539F"]}),o(y,{gutter:20,align:"stretch"},{default:u(()=>[o(E,{span:24},{default:u(()=>[o(f,{class:"general-card",title:"\u5907\u4EFD/\u8FD8\u539F"},{default:u(()=>[o(p,null,{default:u(()=>[o(a,{type:"primary",onClick:F},{default:u(()=>[l("\u5907\u4EFD")]),_:1}),o(a,{onClick:b},{default:u(()=>[l("\u6062\u590D")]),_:1}),o(s,{modelValue:n.eepromType,"onUpdate:modelValue":c[0]||(c[0]=B=>n.eepromType=B),style:{width:"320px"},placeholder:"\u9009\u62E9EEPROM\u5927\u5C0F"},{default:u(()=>[o(t,{value:"1"},{default:u(()=>[l("8KB\uFF0864Kbit\uFF09")]),_:1}),o(t,{value:"2"},{default:u(()=>[l("128KB\uFF081Mbit\uFF09")]),_:1}),o(t,{value:"3"},{default:u(()=>[l("256KB\uFF082Mbit\uFF09")]),_:1}),o(t,{value:"4"},{default:u(()=>[l("512KB\uFF084Mbit\uFF09")]),_:1})]),_:1},8,["modelValue"]),o(a,{type:"text",onClick:m},{default:u(()=>[l("\u81EA\u52A8\u68C0\u6D4B")]),_:1})]),_:1}),o(r),R("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:n.status},null,8,S)]),_:1})]),_:1})]),_:1})])}}});const oe=w(N,[["__scopeId","data-v-5a428d72"]]);export{oe as default};
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{f as L,d as x,c as D,C as i,D as p,G as a,aI as e,aH as t,aK as R,aJ as E,b4 as W,aE as j,aN as r,b5 as z,r as A,u as C,aM as v,aW as G,b6 as H,b7 as J,b8 as K,b9 as Q,ba as T,aX as X,bb as O,bc as Y,bd as Z,be as ee}from"./arco.d6577a9c.js";import{F as oe}from"./index.9647d663.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.c754acd3.js";/* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.4f3ae527.js";import"./chart.4acde4c9.js";function le(l=!1){const o=L(l);return{loading:o,setLoading:_=>{o.value=_},toggle:()=>{o.value=!o.value}}}const S="/assets/login-banner.426fb77f.png",ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(l){const{t:o}=V.exports.useI18n(),d=D(()=>[{slogan:o("login.banner.slogan1"),subSlogan:o("login.banner.subSlogan1"),image:S},{slogan:o("login.banner.slogan2"),subSlogan:o("login.banner.subSlogan2"),image:S},{slogan:o("login.banner.slogan3"),subSlogan:o("login.banner.subSlogan3"),image:S}]);return(f,_)=>{const b=z,h=W;return i(),p("div",ce,[a("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:t(()=>[(i(!0),p(R,null,E(d.value,n=>(i(),j(b,{key:n.slogan},{default:t(()=>[(i(),p("div",{key:n.slogan,class:"carousel-item"},[a("div",de,r(n.slogan),1),a("div",_e,r(n.subSlogan),1),a("img",{class:"carousel-image",src:n.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-2ce84fe6"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(l){const o=te(),{t:d}=V.exports.useI18n(),f=L(""),{loading:_,setLoading:b}=le(),h=se(),n=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),u=A({username:n.value.username,password:n.value.password}),F=async({errors:s,values:c})=>{if(!_.value&&!s){b(!0);try{await h.login(c);const{redirect:m,...w}=o.currentRoute.value.query;o.push({name:m||"Workplace",query:{...w}}),G.success(d("login.form.login.success"));const{rememberPassword:g}=n.value,{username:$,password:y}=c;n.value.username=g?$:"",n.value.password=g?y:""}catch(m){f.value=m.message}finally{b(!1)}}},B=s=>{n.value.rememberPassword=s};return(s,c)=>{const m=ae,w=H,g=J,$=ne,y=K,N=Q,M=T,P=X,q=O,U=Y;return i(),p("div",pe,[a("div",fe,r(s.$t("login.form.title")),1),a("div",be,r(s.$t("login.form.title")),1),a("div",ve,r(f.value),1),e(U,{ref:"loginForm",model:u,class:"login-form",layout:"vertical",onSubmit:F},{default:t(()=>[e(g,{field:"username",rules:[{required:!0,message:s.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:t(()=>[e(w,{modelValue:u.username,"onUpdate:modelValue":c[0]||(c[0]=I=>u.username=I),placeholder:s.$t("login.form.userName.placeholder")},{prefix:t(()=>[e(m)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(g,{field:"password",rules:[{required:!0,message:s.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:t(()=>[e(y,{modelValue:u.password,"onUpdate:modelValue":c[1]||(c[1]=I=>u.password=I),placeholder:s.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:t(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(q,{size:16,direction:"vertical"},{default:t(()=>[a("div",he,[e(N,{checked:"rememberPassword","model-value":C(n).rememberPassword,onChange:B},{default:t(()=>[v(r(s.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(M,null,{default:t(()=>[v(r(s.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(_)},{default:t(()=>[v(r(s.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:t(()=>[v(r(s.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-0c627d4f"]]),ye=l=>(Z("data-v-7183afbd"),l=l(),ee(),l),Ie={class:"container"},Se=ye(()=>a("div",{class:"logo"},[a("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),a("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ce=x({__name:"index",setup(l){return(o,d)=>(i(),p("div",Ie,[Se,e(ge),a("div",xe,[a("div",ke,[e($e)]),a("div",Pe,[e(oe)])])]))}});const De=k(Ce,[["__scopeId","data-v-7183afbd"]]);export{De as default};
|
import{f as L,d as x,c as D,C as i,D as p,G as a,aI as e,aH as t,aK as R,aJ as E,b4 as W,aE as j,aN as r,b5 as z,r as A,u as C,aM as v,aW as G,b6 as H,b7 as J,b8 as K,b9 as Q,ba as T,aX as X,bb as O,bc as Y,bd as Z,be as ee}from"./arco.d6577a9c.js";import{F as oe}from"./index.76990f6d.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.f5d338a6.js";/* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.4f3ae527.js";import"./chart.4acde4c9.js";function le(l=!1){const o=L(l);return{loading:o,setLoading:_=>{o.value=_},toggle:()=>{o.value=!o.value}}}const S="/assets/login-banner.426fb77f.png",ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(l){const{t:o}=V.exports.useI18n(),d=D(()=>[{slogan:o("login.banner.slogan1"),subSlogan:o("login.banner.subSlogan1"),image:S},{slogan:o("login.banner.slogan2"),subSlogan:o("login.banner.subSlogan2"),image:S},{slogan:o("login.banner.slogan3"),subSlogan:o("login.banner.subSlogan3"),image:S}]);return(f,_)=>{const b=z,h=W;return i(),p("div",ce,[a("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:t(()=>[(i(!0),p(R,null,E(d.value,n=>(i(),j(b,{key:n.slogan},{default:t(()=>[(i(),p("div",{key:n.slogan,class:"carousel-item"},[a("div",de,r(n.slogan),1),a("div",_e,r(n.subSlogan),1),a("img",{class:"carousel-image",src:n.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-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(l){const o=te(),{t:d}=V.exports.useI18n(),f=L(""),{loading:_,setLoading:b}=le(),h=se(),n=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),u=A({username:n.value.username,password:n.value.password}),F=async({errors:s,values:c})=>{if(!_.value&&!s){b(!0);try{await h.login(c);const{redirect:m,...w}=o.currentRoute.value.query;o.push({name:m||"Workplace",query:{...w}}),G.success(d("login.form.login.success"));const{rememberPassword:g}=n.value,{username:$,password:y}=c;n.value.username=g?$:"",n.value.password=g?y:""}catch(m){f.value=m.message}finally{b(!1)}}},B=s=>{n.value.rememberPassword=s};return(s,c)=>{const m=ae,w=H,g=J,$=ne,y=K,N=Q,M=T,P=X,q=O,U=Y;return i(),p("div",pe,[a("div",fe,r(s.$t("login.form.title")),1),a("div",be,r(s.$t("login.form.title")),1),a("div",ve,r(f.value),1),e(U,{ref:"loginForm",model:u,class:"login-form",layout:"vertical",onSubmit:F},{default:t(()=>[e(g,{field:"username",rules:[{required:!0,message:s.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:t(()=>[e(w,{modelValue:u.username,"onUpdate:modelValue":c[0]||(c[0]=I=>u.username=I),placeholder:s.$t("login.form.userName.placeholder")},{prefix:t(()=>[e(m)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(g,{field:"password",rules:[{required:!0,message:s.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:t(()=>[e(y,{modelValue:u.password,"onUpdate:modelValue":c[1]||(c[1]=I=>u.password=I),placeholder:s.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:t(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(q,{size:16,direction:"vertical"},{default:t(()=>[a("div",he,[e(N,{checked:"rememberPassword","model-value":C(n).rememberPassword,onChange:B},{default:t(()=>[v(r(s.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(M,null,{default:t(()=>[v(r(s.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(_)},{default:t(()=>[v(r(s.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:t(()=>[v(r(s.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=l=>(Z("data-v-24cebde1"),l=l(),ee(),l),Ie={class:"container"},Se=ye(()=>a("div",{class:"logo"},[a("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),a("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ce=x({__name:"index",setup(l){return(o,d)=>(i(),p("div",Ie,[Se,e(ge),a("div",xe,[a("div",ke,[e($e)]),a("div",Pe,[e(oe)])])]))}});const De=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{De as default};
|
BIN
assets/index.fc7e5a7e.js.gz
Normal file
BIN
assets/index.fc7e5a7e.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
import{d as p,r as v,C as d,aE as C,aH as o,aI as e,aM as u,aN as n,u as s,bw as D,bx as y,bl as E,bC as x,bD as A,aX as g,bE as S,bd as w,be as I,G as _,D as k}from"./arco.d6577a9c.js";import{e as N,_ as l}from"./index.c754acd3.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./chart.4acde4c9.js";import"./vue.4f3ae527.js";const m=t=>(w("data-v-b6f30470"),t=t(),I(),t),T=m(()=>_("br",null,null,-1)),V=m(()=>_("br",null,null,-1)),z=p({__name:"banner",setup(t){const a=N(),c=v({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),F=async()=>{};return(q,J)=>{const f=E,r=x,b=A,B=g,h=S;return d(),C(r,{class:"banner"},{default:o(()=>[e(r,null,{default:o(()=>[e(f,{heading:5,style:{"margin-top":"0"}},{default:o(()=>[u(n(s(a).connectState?"\u6B22\u8FCE\u4F60~\uFF0C\u8FDE\u63A5\u6210\u529F\uFF01":"\u6B22\u8FCE\u4F60~\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C\u8FDE\u63A5\u201D\u6309\u94AE\u8FDE\u63A5\u624B\u53F0\u3002"),1)]),_:1})]),_:1}),e(b,{class:"panel-border"}),D(e(h,{style:{width:"360px",marginTop:"2em",marginBottom:"2em"},title:"\u624B\u53F0\u4FE1\u606F"},{default:o(()=>{var i;return[u(" \u5F53\u524D\u56FA\u4EF6\u7248\u672C\uFF1A"+n(s(a).firmwareVersion)+" ",1),T,u(" \u5339\u914D\u5199\u9891\u914D\u7F6E\uFF1A"+n((i=s(a).configuration)==null?void 0:i.name)+" ",1),V,u(" \u5B58\u50A8\u5927\u5C0F\uFF1A"+n(c.eepromSize)+" ",1),e(B,{size:"mini",type:"primary",onClick:F},{default:o(()=>[u("\u68C0\u6D4B")]),_:1})]}),_:1},512),[[y,s(a).connectState]])]),_:1})}}});const $=l(z,[["__scopeId","data-v-b6f30470"]]),G={class:"container"},H={class:"left-side"},M={class:"panel"},X={name:"Dashboard"},j=p({...X,setup(t){return(a,c)=>(d(),k("div",G,[_("div",H,[_("div",M,[e($)])])]))}});const Y=l(j,[["__scopeId","data-v-8f743d99"]]);export{Y as default};
|
import{d as p,r as v,C as d,aE as C,aH as o,aI as e,aM as u,aN as n,u as s,bw as D,bx as y,bl as E,bC as x,bD as A,aX as g,bE as S,bd as w,be as I,G as _,D as k}from"./arco.d6577a9c.js";import{e as N,_ as l}from"./index.f5d338a6.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./chart.4acde4c9.js";import"./vue.4f3ae527.js";const m=t=>(w("data-v-b6f30470"),t=t(),I(),t),T=m(()=>_("br",null,null,-1)),V=m(()=>_("br",null,null,-1)),z=p({__name:"banner",setup(t){const a=N(),c=v({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),F=async()=>{};return(q,J)=>{const f=E,r=x,b=A,B=g,h=S;return d(),C(r,{class:"banner"},{default:o(()=>[e(r,null,{default:o(()=>[e(f,{heading:5,style:{"margin-top":"0"}},{default:o(()=>[u(n(s(a).connectState?"\u6B22\u8FCE\u4F60~\uFF0C\u8FDE\u63A5\u6210\u529F\uFF01":"\u6B22\u8FCE\u4F60~\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C\u8FDE\u63A5\u201D\u6309\u94AE\u8FDE\u63A5\u624B\u53F0\u3002"),1)]),_:1})]),_:1}),e(b,{class:"panel-border"}),D(e(h,{style:{width:"360px",marginTop:"2em",marginBottom:"2em"},title:"\u624B\u53F0\u4FE1\u606F"},{default:o(()=>{var i;return[u(" \u5F53\u524D\u56FA\u4EF6\u7248\u672C\uFF1A"+n(s(a).firmwareVersion)+" ",1),T,u(" \u5339\u914D\u5199\u9891\u914D\u7F6E\uFF1A"+n((i=s(a).configuration)==null?void 0:i.name)+" ",1),V,u(" \u5B58\u50A8\u5927\u5C0F\uFF1A"+n(c.eepromSize)+" ",1),e(B,{size:"mini",type:"primary",onClick:F},{default:o(()=>[u("\u68C0\u6D4B")]),_:1})]}),_:1},512),[[y,s(a).connectState]])]),_:1})}}});const $=l(z,[["__scopeId","data-v-b6f30470"]]),G={class:"container"},H={class:"left-side"},M={class:"panel"},X={name:"Dashboard"},j=p({...X,setup(t){return(a,c)=>(d(),k("div",G,[_("div",H,[_("div",M,[e($)])])]))}});const Y=l(j,[["__scopeId","data-v-8f743d99"]]);export{Y as default};
|
BIN
assets/index.feb7110e.js.gz
Normal file
BIN
assets/index.feb7110e.js.gz
Normal file
Binary file not shown.
@ -5,11 +5,11 @@
|
|||||||
<link rel="shortcut icon" type="image/x-icon" href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico">
|
<link rel="shortcut icon" type="image/x-icon" href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>K5Web</title>
|
<title>K5Web</title>
|
||||||
<script type="module" crossorigin src="/assets/index.c754acd3.js"></script>
|
<script type="module" crossorigin src="/assets/index.f5d338a6.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="/assets/arco.d6577a9c.js">
|
<link rel="modulepreload" crossorigin href="/assets/arco.d6577a9c.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/chart.4acde4c9.js">
|
<link rel="modulepreload" crossorigin href="/assets/chart.4acde4c9.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/vue.4f3ae527.js">
|
<link rel="modulepreload" crossorigin href="/assets/vue.4f3ae527.js">
|
||||||
<link rel="stylesheet" href="/assets/index.5ab869ac.css">
|
<link rel="stylesheet" href="/assets/index.09383935.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user