mirror of
https://github.com/silenty4ng/k5web
synced 2024-11-14 14:33:23 +00:00
update
This commit is contained in:
parent
e5fdf0998e
commit
3c78edc32f
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import{d as N_,s as Ia,i as Pa,t as z_,c as Ti,g as F_,w as Ra,a as Jh,o as V_,b as G_,h as jh,n as H_,u as W_}from"./arco.02de294f.js";/*! *****************************************************************************
|
||||
import{d as N_,s as Ia,i as Pa,t as z_,c as Ti,g as F_,w as Ra,a as Jh,o as V_,b as G_,h as jh,n as H_,u as W_}from"./arco.76776ef0.js";/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
BIN
assets/chart.ce50b7a1.js.gz
Normal file
BIN
assets/chart.ce50b7a1.js.gz
Normal file
Binary file not shown.
39
assets/default-layout.40644aff.js
Normal file
39
assets/default-layout.40644aff.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.40644aff.js.gz
Normal file
BIN
assets/default-layout.40644aff.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.
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.eb887f12.css.gz
Normal file
BIN
assets/default-layout.eb887f12.css.gz
Normal file
Binary file not shown.
17
assets/dep-281dbb92.526b06bd.js
Normal file
17
assets/dep-281dbb92.526b06bd.js
Normal file
@ -0,0 +1,17 @@
|
||||
import{h as P,c as l,d as h}from"./arco.76776ef0.js";import{d as S,a4 as w,a5 as A,a6 as E,a7 as L,a8 as $,M as j,E as x,a9 as F,aa as D,ab as z,ac as I,ad as N}from"./index.aa4cef55.js";import{v as O,w as M,x as R}from"./index.ee7dcbab.js";function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?u(Object(t),!0).forEach(function(r){p(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function K(e){var n=["fillOpacity","fillRule","clipRule"];return n.includes(e)?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():e}function m(e,n){var t=Object.keys(e.attrs).reduce((r,a)=>(r[K(a)]=e.attrs[a],r),{});return P(e.tag,f(f({},t),n),(e.children||[]).map(r=>m(r,{})))}var T="t",G="zh-CN",U={classPrefix:T,locale:G};const k=U;function Z(){var{classPrefix:e}=k;return{SIZE:{default:"",xs:"".concat(e,"-size-xs"),small:"".concat(e,"-size-s"),medium:"".concat(e,"-size-m"),large:"".concat(e,"-size-l"),xl:"".concat(e,"-size-xl"),block:"".concat(e,"-size-full-width")},STATUS:{loading:"".concat(e,"-is-loading"),disabled:"".concat(e,"-is-disabled"),focused:"".concat(e,"-is-focused"),success:"".concat(e,"-is-success"),error:"".concat(e,"-is-error"),warning:"".concat(e,"-is-warning"),selected:"".concat(e,"-is-selected"),active:"".concat(e,"-is-active"),checked:"".concat(e,"-is-checked"),current:"".concat(e,"-is-current"),hidden:"".concat(e,"-is-hidden"),visible:"".concat(e,"-is-visible"),expanded:"".concat(e,"-is-expanded"),indeterminate:"".concat(e,"-is-indeterminate")}}}function B(e){var n=Z().SIZE,t=l(()=>e.value in n?n[e.value]:""),r=l(()=>e.value===void 0||e.value in n?{}:{fontSize:e.value});return{style:r,className:t}}function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?v(Object(t),!0).forEach(function(r){p(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var X={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.05 5.64L12 10.59l4.95-4.95 1.41 1.41L13.41 12l4.95 4.95-1.41 1.41L12 13.41l-4.95 4.95-1.41-1.41L10.59 12 5.64 7.05l1.41-1.41z"}}]},Y=h({name:"CloseIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:t}=n,r=l(()=>e.size),{className:a,style:s}=B(r),c=l(()=>["t-icon","t-icon-close",a.value]),i=l(()=>b(b({},s.value),t.style)),C=l(()=>({class:c.value,style:i.value,onClick:y=>{var o;return(o=e.onClick)===null||o===void 0?void 0:o.call(e,{e:y})}}));return()=>m(X,C.value)}});const Ke=Y;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Te(e){var n=S("icon"),t=n.globalConfig,r={};return Object.keys(e).forEach(function(a){var s;r[a]=((s=t.value)===null||s===void 0?void 0:s[a])||e[a]}),r}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function q(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}var H=q;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var d=w,J=$,Q=j,g=d?d.isConcatSpreadable:void 0;function V(e){return Q(e)||J(e)||!!(g&&e&&e[g])}var W=V,ee=L,ne=W;function _(e,n,t,r,a){var s=-1,c=e.length;for(t||(t=ne),a||(a=[]);++s<c;){var i=e[s];n>0&&t(i)?n>1?_(i,n-1,t,r,a):ee(a,i):r||(a[a.length]=i)}return a}var te=_,re=te;function ae(e){var n=e==null?0:e.length;return n?re(e,1):[]}var se=ae,ie=se,le=A,ce=E;function oe(e){return ce(le(e,void 0,ie),e+"")}var ue=oe;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var fe=R,ve=I;function be(e,n){return n.length<2?e:fe(e,ve(n,0,-1))}var de=be,ge=O,Oe=H,pe=de,me=M;function _e(e,n){return n=ge(n,e),e=pe(e,n),e==null||delete e[me(Oe(n))]}var Ce=_e,ye=N;function Pe(e){return ye(e)?void 0:e}var he=Pe,Se=x,we=z,Ae=Ce,Ee=O,Le=F,$e=he,je=ue,xe=D,Fe=1,De=2,ze=4,Ie=je(function(e,n){var t={};if(e==null)return t;var r=!1;n=Se(n,function(s){return s=Ee(s,e),r||(r=s.length>1),s}),Le(e,xe(e),t),r&&(t=we(t,Fe|De|ze,$e));for(var a=n.length;a--;)Ae(t,n[a]);return t}),Ge=Ie;export{Ke as C,p as _,te as a,Te as b,ue as c,H as l,Ge as o,m as r,B as u};
|
BIN
assets/dep-281dbb92.526b06bd.js.gz
Normal file
BIN
assets/dep-281dbb92.526b06bd.js.gz
Normal file
Binary file not shown.
@ -1,17 +0,0 @@
|
||||
import{h as P,c as l,d as h}from"./arco.02de294f.js";import{d as S,J as w,K as A,L,M as E,q as $,k as j,N as x,O as F,P as D}from"./tnode.17829577.js";import{B as z,C as N,x as g,y as I,r as K,z as M}from"./index.37837b88.js";function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?u(Object(t),!0).forEach(function(r){p(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function R(e){var n=["fillOpacity","fillRule","clipRule"];return n.includes(e)?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():e}function m(e,n){var t=Object.keys(e.attrs).reduce((r,a)=>(r[R(a)]=e.attrs[a],r),{});return P(e.tag,f(f({},t),n),(e.children||[]).map(r=>m(r,{})))}var T="t",k="zh-CN",G={classPrefix:T,locale:k};const U=G;function Z(){var{classPrefix:e}=U;return{SIZE:{default:"",xs:"".concat(e,"-size-xs"),small:"".concat(e,"-size-s"),medium:"".concat(e,"-size-m"),large:"".concat(e,"-size-l"),xl:"".concat(e,"-size-xl"),block:"".concat(e,"-size-full-width")},STATUS:{loading:"".concat(e,"-is-loading"),disabled:"".concat(e,"-is-disabled"),focused:"".concat(e,"-is-focused"),success:"".concat(e,"-is-success"),error:"".concat(e,"-is-error"),warning:"".concat(e,"-is-warning"),selected:"".concat(e,"-is-selected"),active:"".concat(e,"-is-active"),checked:"".concat(e,"-is-checked"),current:"".concat(e,"-is-current"),hidden:"".concat(e,"-is-hidden"),visible:"".concat(e,"-is-visible"),expanded:"".concat(e,"-is-expanded"),indeterminate:"".concat(e,"-is-indeterminate")}}}function B(e){var n=Z().SIZE,t=l(()=>e.value in n?n[e.value]:""),r=l(()=>e.value===void 0||e.value in n?{}:{fontSize:e.value});return{style:r,className:t}}function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?v(Object(t),!0).forEach(function(r){p(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var q={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.05 5.64L12 10.59l4.95-4.95 1.41 1.41L13.41 12l4.95 4.95-1.41 1.41L12 13.41l-4.95 4.95-1.41-1.41L10.59 12 5.64 7.05l1.41-1.41z"}}]},J=h({name:"CloseIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:t}=n,r=l(()=>e.size),{className:a,style:s}=B(r),c=l(()=>["t-icon","t-icon-close",a.value]),i=l(()=>b(b({},s.value),t.style)),C=l(()=>({class:c.value,style:i.value,onClick:y=>{var o;return(o=e.onClick)===null||o===void 0?void 0:o.call(e,{e:y})}}));return()=>m(q,C.value)}});const Re=J;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Te(e){var n=S("icon"),t=n.globalConfig,r={};return Object.keys(e).forEach(function(a){var s;r[a]=((s=t.value)===null||s===void 0?void 0:s[a])||e[a]}),r}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function X(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}var Y=X;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var d=w,H=E,Q=$,O=d?d.isConcatSpreadable:void 0;function V(e){return Q(e)||H(e)||!!(O&&e&&e[O])}var W=V,ee=z,ne=W;function _(e,n,t,r,a){var s=-1,c=e.length;for(t||(t=ne),a||(a=[]);++s<c;){var i=e[s];n>0&&t(i)?n>1?_(i,n-1,t,r,a):ee(a,i):r||(a[a.length]=i)}return a}var te=_,re=te;function ae(e){var n=e==null?0:e.length;return n?re(e,1):[]}var se=ae,ie=se,le=A,ce=L;function oe(e){return ce(le(e,void 0,ie),e+"")}var ue=oe;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var fe=M,ve=F;function be(e,n){return n.length<2?e:fe(e,ve(n,0,-1))}var de=be,Oe=g,ge=Y,pe=de,me=I;function _e(e,n){return n=Oe(n,e),e=pe(e,n),e==null||delete e[me(ge(n))]}var Ce=_e,ye=D;function Pe(e){return ye(e)?void 0:e}var he=Pe,Se=j,we=K,Ae=Ce,Le=g,Ee=x,$e=he,je=ue,xe=N,Fe=1,De=2,ze=4,Ne=je(function(e,n){var t={};if(e==null)return t;var r=!1;n=Se(n,function(s){return s=Le(s,e),r||(r=s.length>1),s}),Ee(e,xe(e),t),r&&(t=we(t,Fe|De|ze,$e));for(var a=n.length;a--;)Ae(t,n[a]);return t}),ke=Ne;export{Re as C,p as _,te as a,Te as b,ue as c,Y as l,ke as o,m as r,B as u};
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/dialog.4b4e1953.js.gz
Normal file
BIN
assets/dialog.4b4e1953.js.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.0b4e4c7d.js.gz
Normal file
BIN
assets/index.0b4e4c7d.js.gz
Normal file
Binary file not shown.
1
assets/index.0c7ce07e.js
Normal file
1
assets/index.0c7ce07e.js
Normal file
@ -0,0 +1 @@
|
||||
import{d as U,r as Q,bD as W,C as j,aE as X,aH as s,aI as i,aM as d,aN as c,u as w,bo as Y,bp as Z,bn as tt,bE as ot,bB as at,a$ as nt,ba as et,be as rt,bf as ct,G as u,D as it}from"./arco.76776ef0.js";import{v as st,h as ut,_ as G}from"./index.aa4cef55.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.ce50b7a1.js";import"./vue.5cc47a17.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=U({__name:"banner",setup(_){const{t:r}=st.exports.useI18n(),t=ut(),P=Q({eepromSize:r("workplace.clickCheck")}),H=async()=>{var p,m,f,g,h,l,y,M,$,I,x,B,C,z,D,E,N,T,V,A,R;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 L=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 O=await n(t.connectPort,131064,8,(B=t.configuration)==null?void 0:B.uart);a.toString()==O.toString()&&(o=r("global.128kb")),await e(t.connectPort,131064,L,8,(C=t.configuration)==null?void 0:C.uart);const q=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 F=await n(t.connectPort,262136,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==F.toString()&&(o=r("global.256kb")),await e(t.connectPort,262136,q,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,(R=t.configuration)==null?void 0:R.uart)}P.eepromSize=o};return(o,v)=>{const a=tt,p=ot,m=at,f=nt,g=W,h=et;return j(),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:H},{default:s(()=>[d(c(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,w(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=G(ft,[["__scopeId","data-v-769c6935"]]),ht={class:"container"},wt={class:"left-side"},bt={class:"panel"},kt={name:"Dashboard"},St=U({...kt,setup(_){return(r,t)=>(j(),it("div",ht,[u("div",wt,[u("div",bt,[i(gt)])])]))}});const Et=G(St,[["__scopeId","data-v-8f743d99"]]);export{Et as default};
|
BIN
assets/index.0c7ce07e.js.gz
Normal file
BIN
assets/index.0c7ce07e.js.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
||||
.container[data-v-058c0020]{padding:0 20px 20px}.container[data-v-058c0020] .arco-list-content{overflow-x:hidden}.container[data-v-058c0020] .arco-card-meta-title{font-size:14px}[data-v-058c0020] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-058c0020] .arco-list-item{width:33%}[data-v-058c0020] .block-title{margin:0 0 12px;font-size:14px}[data-v-058c0020] .list-wrap .list-row{align-items:stretch}[data-v-058c0020] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-058c0020] .list-wrap :deep(.arco-space){width:100%}[data-v-058c0020] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
File diff suppressed because one or more lines are too long
BIN
assets/index.23e71fba.js.gz
Normal file
BIN
assets/index.23e71fba.js.gz
Normal file
Binary file not shown.
1
assets/index.25be6bb7.js
Normal file
1
assets/index.25be6bb7.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as n}from"./index.aa4cef55.js";import{d as c,bC as _,a$ as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.76776ef0.js";import{f as m}from"./vue.5cc47a17.js";import"./chart.ce50b7a1.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 @@
|
||||
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};
|
||||
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.76776ef0.js";import{F as oe}from"./index.e54ecb37.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.aa4cef55.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.5cc47a17.js";import{u as le}from"./loading.25eefc63.js";import"./chart.ce50b7a1.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.30635821.js.gz
Normal file
BIN
assets/index.30635821.js.gz
Normal file
Binary file not shown.
@ -1,33 +0,0 @@
|
||||
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
|
||||
*/var Rt={align:{type:String,default:"top",validator:function(t){return t?["start","end","center","stretch","baseline","top","middle","bottom"].includes(t):!0}},gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:"start",validator:function(t){return t?["start","end","center","space-around","space-between"].includes(t):!0}},tag:{type:String,default:"div"}};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var K=function(t){var n="xs";return t<768?n="xs":t>=768&&t<992?n="sm":t>=992&&t<1200?n="md":t>=1200&&t<1400?n="lg":t>=1400&&t<1880?n="xl":n="xxl",n};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function zt(e,t){ut(function(){window.addEventListener(e,t)}),lt(function(){window.removeEventListener(e,t)})}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function J(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 B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J(Object(n),!0).forEach(function(a){v(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function rt(){var e=pt(K(T?0:window.innerWidth)),t=function(){e.value=K(T?0:window.innerWidth)};return zt("resize",t),e}function Lt(e,t){var n=t.justify,a=t.align;return[e,v(v({},"".concat(e,"--").concat(n),n),"".concat(e,"--align-").concat(a),a)]}function Tt(e,t){var n={},a=function(r){return Object.assign(n,{marginLeft:"".concat(r/-2,"px"),marginRight:"".concat(r/-2,"px")})},i=function(r){return Object.assign(n,{rowGap:"".concat(r,"px")})},f={isNumber:function(r){F(r)&&a(r)},isArray:function(r){$(r)&&r.length&&(f.isNumber(r[0]),F(r[1])&&i(r[1]),S(r[0])&&!A(r[0][t])&&a(r[0][t]),S(r[1])&&!A(r[1][t])&&i(r[1][t]))},isObject:function(r){S(r)&&r[t]&&($(r)&&r.length?(a(r[t][0]),i(r[t][1])):a(r[t]))}};return Object.keys(f).forEach(function(c){f[c](e)}),n}function Ut(e){return F(e)?"".concat(e," ").concat(e," 0"):/^\d+(\.\d+)?(px|r?em|%)$/.test(e)?"0 0 ".concat(e):e}function Vt(e,t){var n={},a=function(c){return Object.assign(n,{paddingLeft:"".concat(c/2,"px"),paddingRight:"".concat(c/2,"px")})},i={isNumber:function(c){F(c)&&a(c)},isArray:function(c){$(c)&&c.length&&(F(c[0])&&a(c[0]),S(c[0])&&c[0][t]&&a(c[0][t]))},isObject:function(c){S(c)&&c[t]&&a(c[t])}};return Object.keys(i).forEach(function(f){i[f](e)}),n}function Gt(e,t){var n=t.span,a=t.order,i=t.offset,f=t.push,c=t.pull,r=["xs","sm","md","lg","xl","xxl"],s=r.reduce(function(l,o){var d=t[o],u={};return F(d)?u.span=d:S(d)&&(u=d||{}),B(B({},l),{},v(v(v(v(v({},"".concat(e,"-").concat(o,"-").concat(u.span),!A(u.span)),"".concat(e,"-").concat(o,"-order-").concat(u.order),parseInt(u.order,10)>=0),"".concat(e,"-").concat(o,"-offset-").concat(u.offset),parseInt(u.offset,10)>=0),"".concat(e,"-").concat(o,"-push-").concat(u.push),parseInt(u.push,10)>=0),"".concat(e,"-").concat(o,"-pull-").concat(u.pull),parseInt(u.pull,10)>=0))},{});return B(v(v(v(v(v(v({},"".concat(e),!0),"".concat(e,"-").concat(n),!A(n)),"".concat(e,"-order-").concat(a),a),"".concat(e,"-offset-").concat(i),i),"".concat(e,"-push-").concat(f),f),"".concat(e,"-pull-").concat(c),c),s)}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function q(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 Ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(a){v(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Kt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Q(e)}var Jt=N({name:"TRow",props:Ht({},Rt),setup:function(t){var n=ft(t),a=n.gutter,i=et();dt("rowContext",W({gutter:a}));var f=rt(),c=nt("row"),r=w(function(){return Lt(c.value,t)}),s=w(function(){return Tt(t.gutter,f.value)});return function(){var l,o=t.tag;return g(o,{class:r.value,style:s.value},Kt(l=i("default"))?l:{default:function(){return[l]}})}}});/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var qt={flex:{type:[String,Number]},lg:{type:[Number,Object]},md:{type:[Number,Object]},offset:{type:Number,default:0},order:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},sm:{type:[Number,Object]},span:{type:Number},tag:{type:String,default:"div"},xl:{type:[Number,Object]},xs:{type:[Number,Object]},xxl:{type:[Number,Object]}};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function X(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 Xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X(Object(n),!0).forEach(function(a){v(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Wt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Q(e)}var Qt=N({name:"TCol",inject:["rowContext"],props:Xt({},qt),setup:function(t){var n=nt("col"),a=et(),i=mt("rowContext",Object.create(null)),f=rt(),c=w(function(){return Gt(n.value,t)}),r=w(function(){var s={},l=t.flex;if(l&&(s.flex=Ut(l)),i){var o=i.gutter;Object.assign(s,Vt(o,f.value))}return s});return function(){var s,l=t.tag;return g(l,{class:c.value,style:r.value},Wt(s=a("default"))?s:{default:function(){return[s]}})}}});/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Yt=at(Jt),Zt=at(Qt);const ot=e=>(Pt("data-v-c78c7c23"),e=e(),xt(),e),te={class:"container"},ee=["title","src"],ne=ot(()=>M("div",{id:"canvasDiv",style:{zoom:"250%"}},null,-1)),ae=ot(()=>M("br",null,null,-1)),re={name:"Backup"},oe=N({...re,setup(e){const t=ct(),n=W({binaryFile:void 0,loading:!1}),a=r=>{alert("\u56FE\u7247\u5DE5\u574A\u5373\u5C06\u63A8\u51FA")},i=r=>{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 d=new Image;d.src=r.url,d.onload=()=>{const u=s.getContext("2d");u==null||u.drawImage(d,0,0,128,64);const j=u==null?void 0:u.getImageData(0,0,s.width,s.height).data;function b(O,_){const p=(_*128+O)*4;return j[p]+j[p+1]+j[p+2]>128*3?0:1}const x=l.getContext("2d"),P=x.getImageData(0,0,l.width,l.height);for(let O=0;O<64;O++)for(let _=0;_<128;_++){const p=(O*128+_)*4,D=!b(_,O);P.data[p]=D*255,P.data[p+1]=D*255,P.data[p+2]=D*255,P.data[p+3]=255}x.putImageData(P,0,0);const E=new Uint8Array(1024);let C=0;for(let O=0;O<64;O+=8)for(let _=0;_<128;_++){let m=0;for(let p=0;p<8;p++)m|=b(_,O+p)<<p;E[C++]=m}n.binaryFile=E}},f=()=>{const r=document.createElement("input");r.type="file",r.onchange=async()=>{const s=new Blob([r.files[0]],{type:"application/octet-stream"}),l=URL.createObjectURL(s),o=document.createElement("canvas");o.width=128,o.height=64;const d=o.cloneNode(),u=document.getElementById("canvasDiv");u.innerHTML="",u==null||u.append(o,d);const j=new Image;j.src=l,j.onload=()=>{const b=o.getContext("2d");b==null||b.drawImage(j,0,0,128,64);const x=b==null?void 0:b.getImageData(0,0,o.width,o.height).data;function P(m,p){const h=(p*128+m)*4;return x[h]+x[h+1]+x[h+2]>128*3?0:1}const E=d.getContext("2d"),C=E.getImageData(0,0,d.width,d.height);for(let m=0;m<64;m++)for(let p=0;p<128;p++){const h=(m*128+p)*4,I=!P(p,m);C.data[h]=I*255,C.data[h+1]=I*255,C.data[h+2]=I*255,C.data[h+3]=255}E.putImageData(C,0,0);const O=new Uint8Array(1024);let _=0;for(let m=0;m<64;m+=8)for(let p=0;p<128;p++){let D=0;for(let h=0;h<8;h++)D|=P(p,m+h)<<h;O[_++]=D}n.binaryFile=O}},r.click()},c=async()=>{var l,o,d,u,j;if(t.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((l=t.configuration)==null?void 0:l.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(((o=t.configuration)==null?void 0:o.charset)!="losehu"&&((d=t.configuration)==null?void 0:d.charset)!="gb2312"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}n.loading=!0;let r=123728;((u=t.configuration)==null?void 0:u.charset)=="gb2312"&&(r=8320),await Ct(t.connectPort);const s=n.binaryFile;for(let b=r;b<s.length+r;b+=128)await Et(t.connectPort,b,s.slice(b-r,b-r+128),128,(j=t.configuration)==null?void 0:j.uart);await Dt(t.connectPort),n.loading=!1};return(r,s)=>{const l=it,o=St,d=Zt,u=Yt,j=Nt,b=_t,x=ht,P=Ft,E=jt,C=wt,O=gt,_=bt;return k(),R("div",te,[g(l,{items:["\u5C0F\u5DE5\u5177","\u5F00\u673A\u56FE\u7247"]}),g(x,{gutter:20,align:"stretch"},{default:y(()=>[g(b,{span:24},{default:y(()=>[g(_,{loading:n.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:y(()=>[g(O,{class:"general-card",title:"\u5F00\u673A\u56FE\u7247\uFF08\u624B\u53F0\u5E94\u5728\u5F00\u673A\u72B6\u6001\u4E0B\uFF09"},{default:y(()=>[g(x,{gutter:20},{default:y(()=>[(k(!0),R(yt,null,vt([{name:"\u7F57\u72EE\u864E",url:"/img1.png"},{name:"\u79BB\u7EBF\u5C0F\u6050\u9F99",url:"/img2.png"},{name:"\u4E0D\u5FD8\u521D\u5FC3\u7262\u8BB0\u4F7F\u547D",url:"/img3.png"},{name:"\u4E3A\u4EBA\u6C11\u670D\u52A1",url:"/img4.png"},{name:"\u4E25\u7981\u6536\u542C\u654C\u53F0\u5E7F\u64AD",url:"/img5.png"},{name:"\u7231\u56E0\u65AF\u5766",url:"/img6.png"}],m=>(k(),Ot(b,{span:4},{default:y(()=>[g(j,{style:{width:"100%"}},{cover:y(()=>[M("img",{title:m.name,src:m.url},null,8,ee)]),footer:y(()=>[g(u,{align:"middle",justify:"center",style:{gap:"24px"}},{default:y(()=>[g(d,{flex:"auto",style:{display:"inline-flex","justify-content":"center"}},{default:y(()=>[g(o,{variant:"text",shape:"square",onClick:p=>a(m)},{default:y(()=>[g(z(Mt))]),_:2},1032,["onClick"])]),_:2},1024),g(d,{flex:"auto",style:{display:"inline-flex","justify-content":"center"}},{default:y(()=>[g(o,{variant:"text",shape:"square",onClick:p=>i(m)},{default:y(()=>[g(z(kt))]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:1}),g(P,{style:{margin:"10px"},total:6,showPageNumber:"",showPageSize:!1}),ne,ae,g(C,null,{default:y(()=>[g(E,{onClick:f},{default:y(()=>[L("\u9009\u62E9\u56FE\u7247")]),_:1}),g(E,{type:"primary",disabled:!n.binaryFile,onClick:c},{default:y(()=>[L("\u5199\u5165")]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const he=st(oe,[["__scopeId","data-v-c78c7c23"]]);export{he as default};
|
Binary file not shown.
@ -1,90 +0,0 @@
|
||||
import{Q as qe,R as Ir,S as He,J as ze,l as We,T as ie,U as Pr,V as X,W as Lr,m as oe,q as E,X as le,i as Y,N as Z,Y as Xe,Z as xr,F as Mr,$ as Fr,a0 as Dr,a1 as Rr,a2 as jr,a3 as Ye,a4 as Nr,a5 as Br,a6 as Gr,a7 as Kr,s as Ze,h as Je,M as Ur,G as qr,a8 as Hr,C as zr,f as Wr,e as re,_ as R,b as $,a9 as Qe,j,o as ke,c as Xr,H as he,t as Yr,aa as Zr,ab as Jr,r as Qr,ac as kr,w as Vr}from"./tnode.17829577.js";import{d as ue,o as ce,g as en,n as rn,aI as m,c as _,f as H,w as Ve,t as nn,bH as G,bL as pe,r as an,h as tn,b3 as sn}from"./arco.02de294f.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function on(e,r){for(var n=-1,a=r.length,s=e.length;++n<a;)e[s+n]=r[n];return e}var er=on;function ln(e,r){for(var n=-1,a=e==null?0:e.length,s=0,t=[];++n<a;){var i=e[n];r(i,n,e)&&(t[s++]=i)}return t}var un=ln;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var cn=Fr,fn=Dr,vn=Rr;function dn(e){return vn(e)?cn(e):fn(e)}var B=dn,gn=er,yn=E;function hn(e,r,n){var a=r(e);return yn(e)?a:gn(a,n(e))}var rr=hn;function pn(){return[]}var nr=pn,bn=un,mn=nr,_n=Object.prototype,$n=_n.propertyIsEnumerable,be=Object.getOwnPropertySymbols,An=be?function(e){return e==null?[]:(e=Object(e),bn(be(e),function(r){return $n.call(e,r)}))}:mn,fe=An,Cn=rr,wn=fe,Tn=B;function Sn(e){return Cn(e,Tn,wn)}var ar=Sn;function On(e,r){for(var n=-1,a=e==null?0:e.length;++n<a&&r(e[n],n,e)!==!1;);return e}var En=On,In=Z,Pn=B;function Ln(e,r){return e&&In(r,Pn(r),e)}var xn=Ln,Mn=Z,Fn=le;function Dn(e,r){return e&&Mn(r,Fn(r),e)}var Rn=Dn,jn=Z,Nn=fe;function Bn(e,r){return jn(e,Nn(e),r)}var Gn=Bn,Kn=er,Un=jr,qn=fe,Hn=nr,zn=Object.getOwnPropertySymbols,Wn=zn?function(e){for(var r=[];e;)Kn(r,qn(e)),e=Un(e);return r}:Hn,tr=Wn,Xn=Z,Yn=tr;function Zn(e,r){return Xn(e,Yn(e),r)}var Jn=Zn,Qn=rr,kn=tr,Vn=le;function ea(e){return Qn(e,Vn,kn)}var ra=ea,na=Object.prototype,aa=na.hasOwnProperty;function ta(e){var r=e.length,n=new e.constructor(r);return r&&typeof e[0]=="string"&&aa.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var sa=ta,ia=Xe;function oa(e,r){var n=r?ia(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var la=oa,ua=/\w*$/;function ca(e){var r=new e.constructor(e.source,ua.exec(e));return r.lastIndex=e.lastIndex,r}var fa=ca,me=ze,_e=me?me.prototype:void 0,$e=_e?_e.valueOf:void 0;function va(e){return $e?Object($e.call(e)):{}}var da=va,ga=Xe,ya=la,ha=fa,pa=da,ba=xr,ma="[object Boolean]",_a="[object Date]",$a="[object Map]",Aa="[object Number]",Ca="[object RegExp]",wa="[object Set]",Ta="[object String]",Sa="[object Symbol]",Oa="[object ArrayBuffer]",Ea="[object DataView]",Ia="[object Float32Array]",Pa="[object Float64Array]",La="[object Int8Array]",xa="[object Int16Array]",Ma="[object Int32Array]",Fa="[object Uint8Array]",Da="[object Uint8ClampedArray]",Ra="[object Uint16Array]",ja="[object Uint32Array]";function Na(e,r,n){var a=e.constructor;switch(r){case Oa:return ga(e);case ma:case _a:return new a(+e);case Ea:return ya(e,n);case Ia:case Pa:case La:case xa:case Ma:case Fa:case Da:case Ra:case ja:return ba(e,n);case $a:return new a;case Aa:case Ta:return new a(e);case Ca:return ha(e);case wa:return new a;case Sa:return pa(e)}}var Ba=Na,Ga=X,Ka=Y,Ua="[object Map]";function qa(e){return Ka(e)&&Ga(e)==Ua}var Ha=qa,za=Ha,Wa=We,Ae=qe.exports,Ce=Ae&&Ae.isMap,Xa=Ce?Wa(Ce):za,Ya=Xa,Za=X,Ja=Y,Qa="[object Set]";function ka(e){return Ja(e)&&Za(e)==Qa}var Va=ka,et=Va,rt=We,we=qe.exports,Te=we&&we.isSet,nt=Te?rt(Te):et,at=nt,tt=ie,st=En,it=Mr,ot=xn,lt=Rn,ut=Ir.exports,ct=Pr,ft=Gn,vt=Jn,dt=ar,gt=ra,yt=X,ht=sa,pt=Ba,bt=Lr,mt=E,_t=He.exports,$t=Ya,At=oe,Ct=at,wt=B,Tt=le,St=1,Ot=2,Et=4,sr="[object Arguments]",It="[object Array]",Pt="[object Boolean]",Lt="[object Date]",xt="[object Error]",ir="[object Function]",Mt="[object GeneratorFunction]",Ft="[object Map]",Dt="[object Number]",or="[object Object]",Rt="[object RegExp]",jt="[object Set]",Nt="[object String]",Bt="[object Symbol]",Gt="[object WeakMap]",Kt="[object ArrayBuffer]",Ut="[object DataView]",qt="[object Float32Array]",Ht="[object Float64Array]",zt="[object Int8Array]",Wt="[object Int16Array]",Xt="[object Int32Array]",Yt="[object Uint8Array]",Zt="[object Uint8ClampedArray]",Jt="[object Uint16Array]",Qt="[object Uint32Array]",d={};d[sr]=d[It]=d[Kt]=d[Ut]=d[Pt]=d[Lt]=d[qt]=d[Ht]=d[zt]=d[Wt]=d[Xt]=d[Ft]=d[Dt]=d[or]=d[Rt]=d[jt]=d[Nt]=d[Bt]=d[Yt]=d[Zt]=d[Jt]=d[Qt]=!0;d[xt]=d[ir]=d[Gt]=!1;function z(e,r,n,a,s,t){var i,o=r&St,l=r&Ot,u=r&Et;if(n&&(i=s?n(e,a,s,t):n(e)),i!==void 0)return i;if(!At(e))return e;var f=mt(e);if(f){if(i=ht(e),!o)return ct(e,i)}else{var c=yt(e),v=c==ir||c==Mt;if(_t(e))return ut(e,o);if(c==or||c==sr||v&&!s){if(i=l||v?{}:bt(e),!o)return l?vt(e,lt(i,e)):ft(e,ot(i,e))}else{if(!d[c])return s?e:{};i=pt(e,c,o)}}t||(t=new tt);var b=t.get(e);if(b)return b;t.set(e,i),Ct(e)?e.forEach(function(g){i.add(z(g,r,n,g,e,t))}):$t(e)&&e.forEach(function(g,y){i.set(y,z(g,r,n,y,e,t))});var h=u?l?gt:dt:l?Tt:wt,p=f?void 0:h(e);return st(p||e,function(g,y){p&&(y=g,g=e[y]),it(i,y,z(g,r,n,y,e,t))}),i}var Al=z;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var kt="__lodash_hash_undefined__";function Vt(e){return this.__data__.set(e,kt),this}var es=Vt;function rs(e){return this.__data__.has(e)}var ns=rs,as=Ye,ts=es,ss=ns;function W(e){var r=-1,n=e==null?0:e.length;for(this.__data__=new as;++r<n;)this.add(e[r])}W.prototype.add=W.prototype.push=ts;W.prototype.has=ss;var is=W;function os(e,r){return e.has(r)}var ls=os;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function us(e){var r=-1,n=Array(e.size);return e.forEach(function(a){n[++r]=a}),n}var cs=us;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function fs(e,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(e[n],n,e))return!0;return!1}var vs=fs,ds=is,gs=vs,ys=ls,hs=1,ps=2;function bs(e,r,n,a,s,t){var i=n&hs,o=e.length,l=r.length;if(o!=l&&!(i&&l>o))return!1;var u=t.get(e),f=t.get(r);if(u&&f)return u==r&&f==e;var c=-1,v=!0,b=n&ps?new ds:void 0;for(t.set(e,r),t.set(r,e);++c<o;){var h=e[c],p=r[c];if(a)var g=i?a(p,h,c,r,e,t):a(h,p,c,e,r,t);if(g!==void 0){if(g)continue;v=!1;break}if(b){if(!gs(r,function(y,C){if(!ys(b,C)&&(h===y||s(h,y,n,a,t)))return b.push(C)})){v=!1;break}}else if(!(h===p||s(h,p,n,a,t))){v=!1;break}}return t.delete(e),t.delete(r),v}var lr=bs;function ms(e){var r=-1,n=Array(e.size);return e.forEach(function(a,s){n[++r]=[s,a]}),n}var _s=ms,Se=ze,Oe=Br,$s=Gr,As=lr,Cs=_s,ws=cs,Ts=1,Ss=2,Os="[object Boolean]",Es="[object Date]",Is="[object Error]",Ps="[object Map]",Ls="[object Number]",xs="[object RegExp]",Ms="[object Set]",Fs="[object String]",Ds="[object Symbol]",Rs="[object ArrayBuffer]",js="[object DataView]",Ee=Se?Se.prototype:void 0,k=Ee?Ee.valueOf:void 0;function Ns(e,r,n,a,s,t,i){switch(n){case js:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case Rs:return!(e.byteLength!=r.byteLength||!t(new Oe(e),new Oe(r)));case Os:case Es:case Ls:return $s(+e,+r);case Is:return e.name==r.name&&e.message==r.message;case xs:case Fs:return e==r+"";case Ps:var o=Cs;case Ms:var l=a&Ts;if(o||(o=ws),e.size!=r.size&&!l)return!1;var u=i.get(e);if(u)return u==r;a|=Ss,i.set(e,r);var f=As(o(e),o(r),a,s,t,i);return i.delete(e),f;case Ds:if(k)return k.call(e)==k.call(r)}return!1}var Bs=Ns,Ie=ar,Gs=1,Ks=Object.prototype,Us=Ks.hasOwnProperty;function qs(e,r,n,a,s,t){var i=n&Gs,o=Ie(e),l=o.length,u=Ie(r),f=u.length;if(l!=f&&!i)return!1;for(var c=l;c--;){var v=o[c];if(!(i?v in r:Us.call(r,v)))return!1}var b=t.get(e),h=t.get(r);if(b&&h)return b==r&&h==e;var p=!0;t.set(e,r),t.set(r,e);for(var g=i;++c<l;){v=o[c];var y=e[v],C=r[v];if(a)var T=i?a(C,y,v,r,e,t):a(y,C,v,e,r,t);if(!(T===void 0?y===C||s(y,C,n,a,t):T)){p=!1;break}g||(g=v=="constructor")}if(p&&!g){var I=e.constructor,S=r.constructor;I!=S&&"constructor"in e&&"constructor"in r&&!(typeof I=="function"&&I instanceof I&&typeof S=="function"&&S instanceof S)&&(p=!1)}return t.delete(e),t.delete(r),p}var Hs=qs,V=ie,zs=lr,Ws=Bs,Xs=Hs,Pe=X,Le=E,xe=He.exports,Ys=Nr,Zs=1,Me="[object Arguments]",Fe="[object Array]",K="[object Object]",Js=Object.prototype,De=Js.hasOwnProperty;function Qs(e,r,n,a,s,t){var i=Le(e),o=Le(r),l=i?Fe:Pe(e),u=o?Fe:Pe(r);l=l==Me?K:l,u=u==Me?K:u;var f=l==K,c=u==K,v=l==u;if(v&&xe(e)){if(!xe(r))return!1;i=!0,f=!1}if(v&&!f)return t||(t=new V),i||Ys(e)?zs(e,r,n,a,s,t):Ws(e,r,l,n,a,s,t);if(!(n&Zs)){var b=f&&De.call(e,"__wrapped__"),h=c&&De.call(r,"__wrapped__");if(b||h){var p=b?e.value():e,g=h?r.value():r;return t||(t=new V),s(p,g,n,a,t)}}return v?(t||(t=new V),Xs(e,r,n,a,s,t)):!1}var ks=Qs,Vs=ks,Re=Y;function ur(e,r,n,a,s){return e===r?!0:e==null||r==null||!Re(e)&&!Re(r)?e!==e&&r!==r:Vs(e,r,n,a,ur,s)}var ve=ur,ei=ve;function ri(e,r){return ei(e,r)}var ni=ri;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var ai=E,ti=Ze,si=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ii=/^\w*$/;function oi(e,r){if(ai(e))return!1;var n=Je(e);return n=="number"||n=="symbol"||n=="boolean"||e==null||ti(e)?!0:ii.test(e)||!si.test(e)||r!=null&&e in Object(r)}var de=oi,cr=Ye,li="Expected a function";function ge(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(li);var n=function a(){var s=arguments,t=r?r.apply(this,s):s[0],i=a.cache;if(i.has(t))return i.get(t);var o=e.apply(this,s);return a.cache=i.set(t,o)||i,o};return n.cache=new(ge.Cache||cr),n}ge.Cache=cr;var ui=ge,ci=ui,fi=500;function vi(e){var r=ci(e,function(a){return n.size===fi&&n.clear(),a}),n=r.cache;return r}var di=vi,gi=di,yi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hi=/\\(\\)?/g,pi=gi(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(yi,function(n,a,s,t){r.push(s?t.replace(hi,"$1"):a||n)}),r}),bi=pi,mi=E,_i=de,$i=bi,Ai=Kr;function Ci(e,r){return mi(e)?e:_i(e,r)?[e]:$i(Ai(e))}var fr=Ci,wi=Ze,Ti=1/0;function Si(e){if(typeof e=="string"||wi(e))return e;var r=e+"";return r=="0"&&1/e==-Ti?"-0":r}var J=Si,Oi=fr,Ei=J;function Ii(e,r){r=Oi(r,e);for(var n=0,a=r.length;e!=null&&n<a;)e=e[Ei(r[n++])];return n&&n==a?e:void 0}var vr=Ii;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Pi=vr;function Li(e,r,n){var a=e==null?void 0:Pi(e,r);return a===void 0?n:a}var xi=Li;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Mi(e,r){return e!=null&&r in Object(e)}var Fi=Mi,Di=fr,Ri=Ur,ji=E,Ni=qr,Bi=Hr,Gi=J;function Ki(e,r,n){r=Di(r,e);for(var a=-1,s=r.length,t=!1;++a<s;){var i=Gi(r[a]);if(!(t=e!=null&&n(e,i)))break;e=e[i]}return t||++a!=s?t:(s=e==null?0:e.length,!!s&&Bi(s)&&Ni(i,s)&&(ji(e)||Ri(e)))}var Ui=Ki,qi=Fi,Hi=Ui;function zi(e,r){return e!=null&&Hi(e,r,qi)}var Wi=zi;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Xi(e){return function(r){return r==null?void 0:r[e]}}var Yi=Xi;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Zi(e){if(Array.isArray(e))return e}function Ji(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,s,t,i,o=[],l=!0,u=!1;try{if(t=(n=n.call(e)).next,r===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=t.call(n)).done)&&(o.push(a.value),o.length!==r);l=!0);}catch(f){u=!0,s=f}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw s}}return o}}function Qi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ki(e,r){return Zi(e)||Ji(e,r)||zr(e,r)||Qi()}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function je(e,r){var n=Object.keys(r);n.forEach(function(a){e.style[a]=r[a]})}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Vi=Wr,eo=Y,ro="[object Number]";function no(e){return typeof e=="number"||eo(e)&&Vi(e)==ro}var ao=no;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function to(){if(typeof navigator>"u"||!navigator)return Number.MAX_SAFE_INTEGER;var e=navigator,r=e.userAgent,n=r.indexOf("compatible")>-1&&r.indexOf("MSIE")>-1,a=r.indexOf("Trident")>-1&&r.indexOf("rv:11.0")>-1;if(n){var s=new RegExp("MSIE (\\d+\\.\\d+);"),t=r.match(s);if(!t)return-1;var i=parseFloat(t[1]);return i<7?6:i}return a?11:Number.MAX_SAFE_INTEGER}function Cl(e,r){var n=ao(r);if(!e||e.length===0)return n?{length:0,characters:e}:0;for(var a=0,s=0;s<e.length;s++){var t=0;if(e.charCodeAt(s)>127?t=2:t=1,n&&a+t>r)return{length:a,characters:e.slice(0,s)};a+=t}return n?{length:a,characters:e}:a}function wl(e){return re(e!=null?e:"").length}function Tl(e,r,n){return re(n!=null?n:"").slice().length===r?n||"":re(e!=null?e:"").slice(0,r).join("")}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Ne(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,a)}return n}function U(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Ne(Object(n),!0).forEach(function(a){R(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function so(e){var r,n,a,s={};if(!(!e||typeof window>"u")){var t=(r=window)===null||r===void 0||(n=r.getComputedStyle)===null||n===void 0?void 0:n.call(r,e),i=t.color,o=t.fontSize,l=(a=window)===null||a===void 0||(a=a.navigator)===null||a===void 0?void 0:a.userAgent,u=/Safari/.test(l)&&!/Chrome/.test(l),f=/(?=.*iPhone)[?=.*MicroMessenger]/.test(l)&&!/Chrome/.test(l);if((u||f)&&(s={transformOrigin:"0px 0px",transform:"scale(".concat(parseInt(o,10)/12,")")}),i&&to()>11){var c=i.match(/[\d.]+/g),v=c?"rgba(".concat(c[0],", ").concat(c[1],", ").concat(c[2],", 0)"):"";je(e,U(U({},s),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(v," 0deg, ").concat(i," 360deg)")}))}else je(e,U(U({},s),{},{background:""}))}}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var io=ue({name:"TLoadingGradient",setup:function(){var r=$();return ce(function(){var n=en().refs.circle;rn(function(){so(n)})}),{classPrefix:r}},render:function(){var r=this.classPrefix,n="".concat(r,"-loading__gradient"),a=[n,"".concat(r,"-icon-loading")];return m("svg",{class:a,viewBox:"0 0 12 12",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[m("foreignObject",{x:"0",y:"0",width:"12",height:"12"},[m("div",{class:"".concat(n,"-conic"),ref:"circle"},null)])])}});/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var ye={exports:{}},D={exports:{}};(function(){var e,r,n,a,s,t;typeof performance<"u"&&performance!==null&&performance.now?D.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(D.exports=function(){return(e()-s)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),t=process.uptime()*1e9,s=a-t):Date.now?(D.exports=function(){return Date.now()-n},n=Date.now()):(D.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(Qe);var oo=D.exports,w=typeof window>"u"?Qe:window,q=["moz","webkit"],L="AnimationFrame",x=w["request"+L],N=w["cancel"+L]||w["cancelRequest"+L];for(var F=0;!x&&F<q.length;F++)x=w[q[F]+"Request"+L],N=w[q[F]+"Cancel"+L]||w[q[F]+"CancelRequest"+L];if(!x||!N){var ee=0,Be=0,O=[],lo=1e3/60;x=function(r){if(O.length===0){var n=oo(),a=Math.max(0,lo-(n-ee));ee=a+n,setTimeout(function(){var s=O.slice(0);O.length=0;for(var t=function(){if(!s[i].cancelled)try{s[i].callback(ee)}catch(l){setTimeout(function(){throw l},0)}},i=0;i<s.length;i++)t()},Math.round(a))}return O.push({handle:++Be,callback:r,cancelled:!1}),Be},N=function(r){for(var n=0;n<O.length;n++)O[n].handle===r&&(O[n].cancelled=!0)}}ye.exports=function(e){return x.call(w,e)};ye.exports.cancel=function(){N.apply(w,arguments)};ye.exports.polyfill=function(e){e||(e=w),e.requestAnimationFrame=x,e.cancelAnimationFrame=N};var dr=typeof window>"u",uo=function(r){return(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},co=function(){return!dr&&document.addEventListener?function(e,r,n,a){e&&r&&n&&e.addEventListener(r,n,a)}:function(e,r,n){e&&r&&n&&e.attachEvent("on".concat(r),n)}}(),fo=function(){return!dr&&document.removeEventListener?function(e,r,n,a){e&&r&&e.removeEventListener(r,n,a)}:function(e,r,n){e&&r&&e.detachEvent("on".concat(r),n)}}();function Sl(e,r,n,a){var s=j(n)?n:n.handleEvent,t=function i(o){s(o),fo(e,r,i,a)};co(e,r,t,a)}function gr(e,r){if(!e||!r)return!1;if(r.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(r):" ".concat(e.className," ").indexOf(" ".concat(r," "))>-1}function ne(e,r){if(!!e){for(var n=e.className,a=(r||"").split(" "),s=0,t=a.length;s<t;s++){var i=a[s];!i||(e.classList?e.classList.add(i):gr(e,i)||(n+=" ".concat(i)))}e.classList||(e.className=n)}}function ae(e,r){if(!(!e||!r)){for(var n=r.split(" "),a=" ".concat(e.className," "),s=0,t=n.length;s<t;s++){var i=n[s];!i||(e.classList?e.classList.remove(i):gr(e,i)&&(a=a.replace(" ".concat(i," ")," ")))}e.classList||(e.className=uo(a))}}var yr=function(r,n){var a=j(r)?r(n):r;return a?ke(a)?document.querySelector(a):a instanceof HTMLElement?a:document.body:document.body},vo=function(){},Ol=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return ke(r)?document.querySelector(r):j(r)?r():r},El=function(r){var n=r.clientWidth,a=n===void 0?0:n,s=r.scrollWidth,t=s===void 0?0:s;return t>a};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var go={attach:{type:[String,Function],default:""},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:Number,default:0},fullscreen:Boolean,indicator:{type:[Boolean,Function],default:!0},inheritColor:Boolean,loading:{type:Boolean,default:!0},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},size:{type:String,default:"medium"},text:{type:[String,Function]},zIndex:{type:Number}};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var yo=function(r,n){var a=j(r)?_(r):H(r),s=j(n)?_(n):H(n),t=H(),i=function(){t.value=vo()||yr(a.value,s.value)};return ce(function(){return i()}),Ve([a,s],function(){return i()}),t};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var ho=function(){return{name:$("loading"),centerClass:$("loading--center"),fullscreenClass:$("loading__fullscreen"),lockClass:$("loading--lock"),overlayClass:$("loading__overlay"),relativeClass:$("loading__parent"),fullClass:$("loading--full"),inheritColorClass:$("loading--inherit-color")}},te=ue({name:"TLoading",inheritAttrs:!1,props:go,setup:function(r,n){var a=n.slots,s=H(!1),t=ho(),i=t.name,o=t.centerClass,l=t.fullscreenClass,u=t.lockClass,f=t.overlayClass,c=t.relativeClass,v=t.fullClass,b=t.inheritColorClass,h=$(),p=Xr(),g=p.SIZE,y=function(){s.value=!1;var M=setTimeout(function(){s.value=!0,clearTimeout(M)},r.delay)},C=yo(function(){return r.attach}),T=_(function(){return Boolean(!r.delay||r.delay&&s.value)}),I=_(function(){var A={};return r.zIndex!==void 0&&(A.zIndex=r.zIndex),["small","medium","large"].includes(r.size)||(A["font-size"]=r.size),A}),S=_(function(){return Boolean(r.default||a.default||r.content||a.content)}),Q=_(function(){return r.preventScrollThrough&&r.fullscreen}),_r=_(function(){return Boolean(r.text||a.text)}),$r=_(function(){return S.value&&r.loading&&T.value}),Ar=_(function(){return r.fullscreen&&r.loading&&T.value}),Cr=_(function(){return r.attach&&r.loading&&T.value}),wr=_(function(){return r.attach&&r.loading&&T.value}),Tr=_(function(){var A=[o.value,g.value[r.size],R({},b.value,r.inheritColor)],M=[i.value,l.value,o.value,f.value];return{baseClasses:A,attachClasses:A.concat([i.value,v.value,R({},f.value,r.showOverlay)]),withContentClasses:A.concat([i.value,v.value,R({},f.value,r.showOverlay)]),fullScreenClasses:M,normalClasses:A.concat([i.value])}}),Sr=nn(r),Or=Sr.loading;return Ve([Or],function(A){var M=ki(A,1),Er=M[0];Er?(y(),Q.value&&ne(document.body,u.value)):Q.value&&ae(document.body,u.value)}),ce(function(){r.delay&&y()}),{classPrefix:h,relativeClass:c,delayShowLoading:s,styles:I,showText:_r,hasContent:S,classes:Tr,lockFullscreen:Q,showWrapLoading:$r,showNormalLoading:Cr,showFullScreenLoading:Ar,showAttachedLoading:wr,teleportElement:C}},render:function(){var r=this,n=this.classes,a=n.fullScreenClasses,s=n.baseClasses,t=n.withContentClasses,i=n.attachClasses,o=n.normalClasses,l=m(io,{size:this.size},null),u=this.loading&&he(this,"indicator",l),f=this.showText&&m("div",{class:"".concat(this.classPrefix,"-loading__text")},[he(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:m(pe,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",G({class:a,style:r.styles},r.$attrs),[m("div",{class:s},[u,f])])]}}):this.hasContent?m("div",G({class:this.relativeClass},this.$attrs),[Yr(this,"default","content"),this.showWrapLoading&&m("div",{class:t,style:this.styles},[u,f])]):this.attach?!this.showAttachedLoading||!this.loading?null:m(pe,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",G({class:i,style:r.styles},r.$attrs),[u,f])]}}):this.loading?m("div",G({class:o,style:this.styles},this.$attrs),[u,f]):null}});/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Ge(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,a)}return n}function po(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Ge(Object(n),!0).forEach(function(a){R(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var P=null;function bo(e){var r=Zr({fullscreen:!1,attach:"body",loading:!0,preventScrollThrough:!0},e);return r}function Ke(e){var r=bo(e);if(r.fullscreen&&P)return P;var n=ue({setup:function(){var c=an(r);return{loadingOptions:c}},render:function(){return tn(te,po({},this.loadingOptions))}}),a=yr(r.fullscreen?"body":r.attach),s=sn(n),t=s.mount(document.createElement("div")),i=$("loading__parent--relative").value,o=$("loading--lock"),l=r.preventScrollThrough&&r.fullscreen;l&&ne(document.body,o.value),a?ne(a,i):console.error("attach is not exist");var u={hide:function(){t.loading=!1,ae(a,i),ae(document.body,o.value),s.unmount()}};return u}function hr(e){if(e===!0)return P=Ke({fullscreen:!0,loading:!0,attach:"body",preventScrollThrough:!0}),P;if(e===!1){var r;(r=P)===null||r===void 0||r.hide(),P=null;return}return Ke(e)}var pr=hr;pr.install=function(e){e.config.globalProperties.$loading=hr};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var mo=Jr,_o=B;function $o(e,r){return e&&mo(e,r,_o)}var Ao=$o,Co=ie,wo=ve,To=1,So=2;function Oo(e,r,n,a){var s=n.length,t=s,i=!a;if(e==null)return!t;for(e=Object(e);s--;){var o=n[s];if(i&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++s<t;){o=n[s];var l=o[0],u=e[l],f=o[1];if(i&&o[2]){if(u===void 0&&!(l in e))return!1}else{var c=new Co;if(a)var v=a(u,f,l,e,r,c);if(!(v===void 0?wo(f,u,To|So,a,c):v))return!1}}return!0}var Eo=Oo,Io=oe;function Po(e){return e===e&&!Io(e)}var br=Po,Lo=br,xo=B;function Mo(e){for(var r=xo(e),n=r.length;n--;){var a=r[n],s=e[a];r[n]=[a,s,Lo(s)]}return r}var Fo=Mo;function Do(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}var mr=Do,Ro=Eo,jo=Fo,No=mr;function Bo(e){var r=jo(e);return r.length==1&&r[0][2]?No(r[0][0],r[0][1]):function(n){return n===e||Ro(n,e,r)}}var Go=Bo,Ko=ve,Uo=xi,qo=Wi,Ho=de,zo=br,Wo=mr,Xo=J,Yo=1,Zo=2;function Jo(e,r){return Ho(e)&&zo(r)?Wo(Xo(e),r):function(n){var a=Uo(n,e);return a===void 0&&a===r?qo(n,e):Ko(r,a,Yo|Zo)}}var Qo=Jo,ko=vr;function Vo(e){return function(r){return ko(r,e)}}var el=Vo,rl=Yi,nl=el,al=de,tl=J;function sl(e){return al(e)?rl(tl(e)):nl(e)}var il=sl,ol=Go,ll=Qo,ul=Qr,cl=E,fl=il;function vl(e){return typeof e=="function"?e:e==null?ul:Je(e)=="object"?cl(e)?ll(e[0],e[1]):ol(e):fl(e)}var dl=vl,gl=kr,yl=Ao,hl=dl;function pl(e,r){var n={};return r=hl(r),yl(e,function(a,s,t){gl(n,r(a,s,t),a)}),n}var bl=pl,se=Symbol("TdLoading"),Ue=function(r,n){var a=n.modifiers,s=a.fullscreen,t=a.inheritColor,i={attach:function(){return r},fullscreen:s!=null?s:!1,inheritColor:t!=null?t:!1,loading:n.value};oe(n.value)&&bl(n.value,function(o,l){i[l]=o}),r[se]={options:i,instance:pr(i)}},ml={mounted:function(r,n){n.value&&Ue(r,n)},updated:function(r,n){var a=r[se],s=n.value,t=n.oldValue;if(!ni(s,t)){var i,o=(i=s==null?void 0:s.loading)!==null&&i!==void 0?i:s;o?Ue(r,n):a==null||a.instance.hide()}},unmounted:function(r){var n;(n=r[se])===null||n===void 0||n.instance.hide()}};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Il=Vr(te,te.name,{name:"loading",comp:ml});export{Wi as A,er as B,ra as C,yo as D,Il as L,ki as _,co as a,is as b,ls as c,ao as d,Cl as e,yr as f,Ol as g,El as h,dr as i,to as j,cs as k,xi as l,un as m,gr as n,fo as o,Zi as p,Qi as q,Al as r,vo as s,Sl as t,je as u,wl as v,Tl as w,fr as x,J as y,vr as z};
|
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import{I as w,d as B,b as A,a as N,u as I,c as z,_ as d,e as D,w as F}from"./tnode.17829577.js";import{f as R,o as M,bs as X,d as $,c as P,aI as k,h as K}from"./arco.02de294f.js";import{L as U}from"./index.37837b88.js";import{u as V}from"./useDisabled.ae969762.js";/**
|
||||
import{u as A,a as B,_ as d,b as N}from"./useConfig.93c19403.js";import{f as R,o as I,bs as z,d as D,c as P,aI as k,h as F}from"./arco.76776ef0.js";import{L as M}from"./index.ee7dcbab.js";import{a3 as w,d as X,c as $,b as K,w as U}from"./index.aa4cef55.js";import{u as V}from"./useDisabled.103ae1d5.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
@ -6,7 +6,7 @@ import{I as w,d as B,b as A,a as N,u as I,c as z,_ as d,e as D,w as F}from"./tno
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var J=w.expand,Z=w.ripple,q=w.fade;function H(){var t=B("animation"),e=t.globalConfig,n=function(s){var u,c,r=e.value;return r&&!((u=r.exclude)!==null&&u!==void 0&&u.includes(s))&&((c=r.include)===null||c===void 0?void 0:c.includes(s))};return{keepExpand:n(J),keepRipple:n(Z),keepFade:n(q)}}/**
|
||||
*/var J=w.expand,Z=w.ripple,q=w.fade;function H(){var t=X("animation"),e=t.globalConfig,n=function(s){var u,c,r=e.value;return r&&!((u=r.exclude)!==null&&u!==void 0&&u.includes(s))&&((c=r.include)===null||c===void 0?void 0:c.includes(s))};return{keepExpand:n(J),keepRipple:n(Z),keepFade:n(q)}}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
@ -14,12 +14,12 @@ import{I as w,d as B,b as A,a as N,u as I,c as z,_ as d,e as D,w as F}from"./tno
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var O=200,G="rgba(0, 0, 0, 0)",Q="rgba(0, 0, 0, 0.35)",Y=function(e,n){var a;if(n)return n;if(e!=null&&(a=e.dataset)!==null&&a!==void 0&&a.ripple){var s=e.dataset.ripple;return s}var u=getComputedStyle(e).getPropertyValue("--ripple-color");return u||Q};function ee(t,e){var n=R(null),a=A(),s=H(),u=s.keepRipple,c=function(b){var i=t.value,h=Y(i,e==null?void 0:e.value);if(!(b.button!==0||!t||!u)&&!(i.classList.contains("".concat(a.value,"-is-active"))||i.classList.contains("".concat(a.value,"-is-disabled"))||i.classList.contains("".concat(a.value,"-is-checked"))||i.classList.contains("".concat(a.value,"-is-loading")))){var m=getComputedStyle(i),v=parseInt(m.borderWidth,10),y=v>0?v:0,f=i.offsetWidth,o=i.offsetHeight;n.value.parentNode===null&&(j(n.value,{position:"absolute",left:"".concat(0-y,"px"),top:"".concat(0-y,"px"),width:"".concat(f,"px"),height:"".concat(o,"px"),borderRadius:m.borderRadius,pointerEvents:"none",overflow:"hidden"}),i.appendChild(n.value));var l=document.createElement("div");j(l,{marginTop:"0",marginLeft:"0",right:"".concat(f,"px"),width:"".concat(f+20,"px"),height:"100%",transition:"transform ".concat(O,"ms cubic-bezier(.38, 0, .24, 1), background ").concat(O*2,"ms linear"),transform:"skewX(-8deg)",pointerEvents:"none",position:"absolute",zIndex:0,backgroundColor:h,opacity:"0.9"});for(var x=new WeakMap,C=i.children.length,g=0;g<C;++g){var p=i.children[g];p.style.zIndex===""&&p!==n.value&&(p.style.zIndex="1",x.set(p,!0))}var S=i.style.position?i.style.position:getComputedStyle(i).position;(S===""||S==="static")&&(i.style.position="relative"),n.value.insertBefore(l,n.value.firstChild),setTimeout(function(){l.style.transform="translateX(".concat(f,"px)")},0);var T=function _(){l.style.backgroundColor=G,t.value&&(t.value.removeEventListener("pointerup",_,!1),t.value.removeEventListener("pointerleave",_,!1),setTimeout(function(){l.remove(),n.value.children.length===0&&n.value.remove()},O*2+100))};t.value.addEventListener("pointerup",T,!1),t.value.addEventListener("pointerleave",T,!1)}};M(function(){var r=t==null?void 0:t.value;!r||(n.value=document.createElement("div"),r.addEventListener("pointerdown",c,!1))}),X(function(){var r;t==null||(r=t.value)===null||r===void 0||r.removeEventListener("pointerdown",c,!1)})}/**
|
||||
*/var O=200,G="rgba(0, 0, 0, 0)",Q="rgba(0, 0, 0, 0.35)",Y=function(e,n){var a;if(n)return n;if(e!=null&&(a=e.dataset)!==null&&a!==void 0&&a.ripple){var s=e.dataset.ripple;return s}var u=getComputedStyle(e).getPropertyValue("--ripple-color");return u||Q};function ee(t,e){var n=R(null),a=A(),s=H(),u=s.keepRipple,c=function(b){var i=t.value,h=Y(i,e==null?void 0:e.value);if(!(b.button!==0||!t||!u)&&!(i.classList.contains("".concat(a.value,"-is-active"))||i.classList.contains("".concat(a.value,"-is-disabled"))||i.classList.contains("".concat(a.value,"-is-checked"))||i.classList.contains("".concat(a.value,"-is-loading")))){var m=getComputedStyle(i),v=parseInt(m.borderWidth,10),y=v>0?v:0,f=i.offsetWidth,o=i.offsetHeight;n.value.parentNode===null&&(j(n.value,{position:"absolute",left:"".concat(0-y,"px"),top:"".concat(0-y,"px"),width:"".concat(f,"px"),height:"".concat(o,"px"),borderRadius:m.borderRadius,pointerEvents:"none",overflow:"hidden"}),i.appendChild(n.value));var l=document.createElement("div");j(l,{marginTop:"0",marginLeft:"0",right:"".concat(f,"px"),width:"".concat(f+20,"px"),height:"100%",transition:"transform ".concat(O,"ms cubic-bezier(.38, 0, .24, 1), background ").concat(O*2,"ms linear"),transform:"skewX(-8deg)",pointerEvents:"none",position:"absolute",zIndex:0,backgroundColor:h,opacity:"0.9"});for(var x=new WeakMap,C=i.children.length,g=0;g<C;++g){var p=i.children[g];p.style.zIndex===""&&p!==n.value&&(p.style.zIndex="1",x.set(p,!0))}var S=i.style.position?i.style.position:getComputedStyle(i).position;(S===""||S==="static")&&(i.style.position="relative"),n.value.insertBefore(l,n.value.firstChild),setTimeout(function(){l.style.transform="translateX(".concat(f,"px)")},0);var T=function _(){l.style.backgroundColor=G,t.value&&(t.value.removeEventListener("pointerup",_,!1),t.value.removeEventListener("pointerleave",_,!1),setTimeout(function(){l.remove(),n.value.children.length===0&&n.value.remove()},O*2+100))};t.value.addEventListener("pointerup",T,!1),t.value.addEventListener("pointerleave",T,!1)}};I(function(){var r=t==null?void 0:t.value;!r||(n.value=document.createElement("div"),r.addEventListener("pointerdown",c,!1))}),z(function(){var r;t==null||(r=t.value)===null||r===void 0||r.removeEventListener("pointerdown",c,!1)})}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?L(Object(n),!0).forEach(function(a){d(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var te=$({name:"TButton",props:W,setup:function(e,n){var a=n.attrs,s=n.slots,u=N(),c=I(),r=A("button"),b=z(),i=b.STATUS,h=b.SIZE,m=R();ee(m);var v=V(),y=P(function(){var o=e.theme,l=e.variant;return o||(l==="base"?"primary":"default")}),f=P(function(){return["".concat(r.value),"".concat(r.value,"--variant-").concat(e.variant),"".concat(r.value,"--theme-").concat(y.value),d(d(d(d(d(d({},h.value[e.size],e.size!=="medium"),i.value.disabled,v.value),i.value.loading,e.loading),"".concat(r.value,"--shape-").concat(e.shape),e.shape!=="rectangle"),"".concat(r.value,"--ghost"),e.ghost),h.value.block,e.block)]});return function(){var o=c("default","content"),l=e.loading?k(U,{inheritColor:!0},null):u("icon"),x=l&&!o,C=e.suffix||s.suffix?k("span",{className:"".concat(r.value,"__suffix")},[u("suffix")]):null;o=o?k("span",{class:"".concat(r.value,"__text")},[o]):"",l&&(o=[l,o]),C&&(o=[o].concat(C));var g=function(){return!e.tag&&e.href?"a":e.tag||"button"},p={class:[].concat(D(f.value),[d({},"".concat(r.value,"--icon-only"),x)]),type:e.type,disabled:v.value||e.loading,href:e.href,tabindex:v.value?void 0:"0"};return K(g(),E(E(E({ref:m},a),p),{},{onClick:e.onClick}),[o])}}});/**
|
||||
*/function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,a)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?L(Object(n),!0).forEach(function(a){d(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var te=D({name:"TButton",props:W,setup:function(e,n){var a=n.attrs,s=n.slots,u=$(),c=K(),r=A("button"),b=B(),i=b.STATUS,h=b.SIZE,m=R();ee(m);var v=V(),y=P(function(){var o=e.theme,l=e.variant;return o||(l==="base"?"primary":"default")}),f=P(function(){return["".concat(r.value),"".concat(r.value,"--variant-").concat(e.variant),"".concat(r.value,"--theme-").concat(y.value),d(d(d(d(d(d({},h.value[e.size],e.size!=="medium"),i.value.disabled,v.value),i.value.loading,e.loading),"".concat(r.value,"--shape-").concat(e.shape),e.shape!=="rectangle"),"".concat(r.value,"--ghost"),e.ghost),h.value.block,e.block)]});return function(){var o=c("default","content"),l=e.loading?k(M,{inheritColor:!0},null):u("icon"),x=l&&!o,C=e.suffix||s.suffix?k("span",{className:"".concat(r.value,"__suffix")},[u("suffix")]):null;o=o?k("span",{class:"".concat(r.value,"__text")},[o]):"",l&&(o=[l,o]),C&&(o=[o].concat(C));var g=function(){return!e.tag&&e.href?"a":e.tag||"button"},p={class:[].concat(N(f.value),[d({},"".concat(r.value,"--icon-only"),x)]),type:e.type,disabled:v.value||e.loading,href:e.href,tabindex:v.value?void 0:"0"};return F(g(),E(E(E({ref:m},a),p),{},{onClick:e.onClick}),[o])}}});/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var oe=F(te);export{oe as B,ee as u};
|
||||
*/var ue=U(te);export{ue as B,ee as u};
|
BIN
assets/index.3a9d9ed5.js.gz
Normal file
BIN
assets/index.3a9d9ed5.js.gz
Normal file
Binary file not shown.
1
assets/index.468ea515.css
Normal file
1
assets/index.468ea515.css
Normal file
@ -0,0 +1 @@
|
||||
.container[data-v-ac553c64]{padding:0 20px 20px}.container[data-v-ac553c64] .arco-list-content{overflow-x:hidden}.container[data-v-ac553c64] .arco-card-meta-title{font-size:14px}[data-v-ac553c64] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-ac553c64] .arco-list-item{width:33%}[data-v-ac553c64] .block-title{margin:0 0 12px;font-size:14px}[data-v-ac553c64] .list-wrap .list-row{align-items:stretch}[data-v-ac553c64] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-ac553c64] .list-wrap :deep(.arco-space){width:100%}[data-v-ac553c64] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1 +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-4b65ea7a]{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-77ebf61d]{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center}
|
BIN
assets/index.4a902d50.css.gz
Normal file
BIN
assets/index.4a902d50.css.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.4f12a843.js
Normal file
1
assets/index.4f12a843.js
Normal file
@ -0,0 +1 @@
|
||||
import{d as o,D as r,C as a}from"./arco.76776ef0.js";import{f as s,h as n}from"./vue.5cc47a17.js";const i=o({__name:"index",setup(c){const e=s(),t=n().params.path;return e.replace({path:t}),(u,m)=>(a(),r("div"))}});export{i as default};
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.584d7589.css.gz
Normal file
BIN
assets/index.584d7589.css.gz
Normal file
Binary file not shown.
@ -1,13 +1,13 @@
|
||||
import{d as R,c as t,aI as a,bh as V}from"./arco.02de294f.js";import{a as W,b as u,c as X,o as Z,w as k}from"./tnode.17829577.js";import{L as q}from"./index.37837b88.js";/**
|
||||
import{d as R,c as t,aI as a,aU as V}from"./arco.76776ef0.js";import{u,a as W}from"./useConfig.93c19403.js";import{c as X,J as Z,w as U}from"./index.aa4cef55.js";import{L as k}from"./index.ee7dcbab.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var G={actions:{type:[String,Function]},avatar:{type:[String,Function]},bordered:{type:Boolean,default:!0},content:{type:[String,Function]},cover:{type:[String,Function]},default:{type:[String,Function]},description:{type:[String,Function]},footer:{type:[String,Function]},header:{type:[String,Function]},headerBordered:Boolean,hoverShadow:Boolean,loading:{type:[Boolean,Function],default:!1},loadingProps:{type:Object},shadow:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["medium","small"].includes(e):!0}},status:{type:String,default:""},subtitle:{type:[String,Function]},theme:{type:String,default:"normal",validator:function(e){return e?["normal","poster1","poster2"].includes(e):!0}},title:{type:[String,Function]}};/**
|
||||
*/var q={actions:{type:[String,Function]},avatar:{type:[String,Function]},bordered:{type:Boolean,default:!0},content:{type:[String,Function]},cover:{type:[String,Function]},default:{type:[String,Function]},description:{type:[String,Function]},footer:{type:[String,Function]},header:{type:[String,Function]},headerBordered:Boolean,hoverShadow:Boolean,loading:{type:[Boolean,Function],default:!1},loadingProps:{type:Object},shadow:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["medium","small"].includes(e):!0}},status:{type:String,default:""},subtitle:{type:[String,Function]},theme:{type:String,default:"normal",validator:function(e){return e?["normal","poster1","poster2"].includes(e):!0}},title:{type:[String,Function]}};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function K(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!V(i)}var Q=R({name:"TCard",props:G,setup:function(e,w){var o=w.slots,n=W(),l=u("card"),b=X(),y=b.SIZE,p=t(function(){var r=[l.value];return e.size==="small"&&r.push("".concat(y.value[e.size])),e.bordered&&r.push("".concat(l.value,"--bordered")),e.shadow&&r.push("".concat(l.value,"--shadow")),e.hoverShadow&&r.push("".concat(l.value,"--shadow-hover")),r}),d=t(function(){var r=["".concat(l.value,"__header")];return e.headerBordered?r.concat("".concat(l.value,"__title--bordered")):["".concat(l.value,"__header")]}),F=u("card__header-wrapper"),N=u("card__avatar"),B=u("card__title"),T=u("card__subtitle"),O=u("card__description"),c=u("card__actions"),P=u("card__body"),j=u("card__cover"),x=u("card__footer"),A=u("card__footer-wrapper"),v=t(function(){return e.theme==="poster2"}),f=t(function(){return e.title||o.title}),h=t(function(){return e.header||o.header}),_=t(function(){return e.subtitle||o.subtitle}),C=t(function(){return e.avatar||o.avatar}),m=t(function(){return e.description||o.description}),S=t(function(){return e.status||o.status}),s=t(function(){return e.actions||o.actions}),E=t(function(){return e.footer||o.footer}),H=t(function(){return e.cover||o.cover}),I=t(function(){return e.loading||o.loading}),z=t(function(){return e.content||o.content||e.default||o.default}),L=t(function(){return h.value||f.value||_.value||m.value||C.value||S.value&&v.value||s.value&&!v.value}),D=t(function(){return E.value||s.value&&v.value}),J=function(){return h.value?a("div",{class:d.value},[n("header")]):a("div",{class:d.value},[a("div",{class:F.value},[C.value&&a("div",{class:N.value},[n("avatar")]),a("div",null,[f.value&&a("div",{class:B.value},[n("title")]),_.value&&a("div",{class:T.value},[n("subtitle")]),m.value&&a("p",{class:O.value},[n("description")])])]),s.value&&!v.value&&a("div",{class:c.value},[n("actions")]),S.value&&a("div",{class:c.value},[n("status")])])},M=function(){var g=Z(e.cover);return a("div",{class:j.value},[g?a("img",{src:e.cover},null):n("cover")])};return function(){var r=a("div",{class:p.value},[L.value?J():null,H.value?M():null,z.value&&a("div",{class:P.value},[n("default")||n("content")]),D.value&&a("div",{class:x.value},[a("div",{class:A.value},[n("footer")]),s.value&&v.value&&a("div",{class:c.value},[n("actions")])])]);return I.value?n("loading")||a(q,e.loadingProps,K(r)?r:{default:function(){return[r]}}):r}}});/**
|
||||
*/function G(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!V(i)}var K=R({name:"TCard",props:q,setup:function(e,w){var o=w.slots,n=X(),l=u("card"),y=W(),b=y.SIZE,p=t(function(){var r=[l.value];return e.size==="small"&&r.push("".concat(b.value[e.size])),e.bordered&&r.push("".concat(l.value,"--bordered")),e.shadow&&r.push("".concat(l.value,"--shadow")),e.hoverShadow&&r.push("".concat(l.value,"--shadow-hover")),r}),d=t(function(){var r=["".concat(l.value,"__header")];return e.headerBordered?r.concat("".concat(l.value,"__title--bordered")):["".concat(l.value,"__header")]}),F=u("card__header-wrapper"),N=u("card__avatar"),B=u("card__title"),T=u("card__subtitle"),O=u("card__description"),c=u("card__actions"),P=u("card__body"),j=u("card__cover"),x=u("card__footer"),A=u("card__footer-wrapper"),v=t(function(){return e.theme==="poster2"}),f=t(function(){return e.title||o.title}),h=t(function(){return e.header||o.header}),_=t(function(){return e.subtitle||o.subtitle}),C=t(function(){return e.avatar||o.avatar}),m=t(function(){return e.description||o.description}),S=t(function(){return e.status||o.status}),s=t(function(){return e.actions||o.actions}),E=t(function(){return e.footer||o.footer}),H=t(function(){return e.cover||o.cover}),I=t(function(){return e.loading||o.loading}),z=t(function(){return e.content||o.content||e.default||o.default}),J=t(function(){return h.value||f.value||_.value||m.value||C.value||S.value&&v.value||s.value&&!v.value}),L=t(function(){return E.value||s.value&&v.value}),D=function(){return h.value?a("div",{class:d.value},[n("header")]):a("div",{class:d.value},[a("div",{class:F.value},[C.value&&a("div",{class:N.value},[n("avatar")]),a("div",null,[f.value&&a("div",{class:B.value},[n("title")]),_.value&&a("div",{class:T.value},[n("subtitle")]),m.value&&a("p",{class:O.value},[n("description")])])]),s.value&&!v.value&&a("div",{class:c.value},[n("actions")]),S.value&&a("div",{class:c.value},[n("status")])])},M=function(){var g=Z(e.cover);return a("div",{class:j.value},[g?a("img",{src:e.cover},null):n("cover")])};return function(){var r=a("div",{class:p.value},[J.value?D():null,H.value?M():null,z.value&&a("div",{class:P.value},[n("default")||n("content")]),L.value&&a("div",{class:x.value},[a("div",{class:A.value},[n("footer")]),s.value&&v.value&&a("div",{class:c.value},[n("actions")])])]);return I.value?n("loading")||a(k,e.loadingProps,G(r)?r:{default:function(){return[r]}}):r}}});/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var ee=k(Q);export{ee as C};
|
||||
*/var ae=U(K);export{ae as C};
|
BIN
assets/index.5e61a6e4.js.gz
Normal file
BIN
assets/index.5e61a6e4.js.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
||||
.container[data-v-c90f8efa]{padding:0 20px 20px}.container[data-v-c90f8efa] .arco-list-content{overflow-x:hidden}.container[data-v-c90f8efa] .arco-card-meta-title{font-size:14px}[data-v-c90f8efa] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-c90f8efa] .arco-list-item{width:33%}[data-v-c90f8efa] .block-title{margin:0 0 12px;font-size:14px}[data-v-c90f8efa] .list-wrap .list-row{align-items:stretch}[data-v-c90f8efa] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-c90f8efa] .list-wrap :deep(.arco-space){width:100%}[data-v-c90f8efa] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
1
assets/index.680d9633.css
Normal file
1
assets/index.680d9633.css
Normal file
@ -0,0 +1 @@
|
||||
.container[data-v-739b81b7]{padding:0 20px 20px}.container[data-v-739b81b7] .arco-list-content{overflow-x:hidden}.container[data-v-739b81b7] .arco-card-meta-title{font-size:14px}[data-v-739b81b7] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-739b81b7] .arco-list-item{width:33%}[data-v-739b81b7] .block-title{margin:0 0 12px;font-size:14px}[data-v-739b81b7] .list-wrap .list-row{align-items:stretch}[data-v-739b81b7] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-739b81b7] .list-wrap :deep(.arco-space){width:100%}[data-v-739b81b7] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
1
assets/index.6840e9d6.css
Normal file
1
assets/index.6840e9d6.css
Normal file
@ -0,0 +1 @@
|
||||
.container[data-v-5675c10a]{padding:0 20px 20px}.container[data-v-5675c10a] .arco-list-content{overflow-x:hidden}.container[data-v-5675c10a] .arco-card-meta-title{font-size:14px}[data-v-5675c10a] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-5675c10a] .arco-list-item{width:33%}[data-v-5675c10a] .block-title{margin:0 0 12px;font-size:14px}[data-v-5675c10a] .list-wrap .list-row{align-items:stretch}[data-v-5675c10a] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-5675c10a] .list-wrap :deep(.arco-space){width:100%}[data-v-5675c10a] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
1
assets/index.6f9cb6f8.js
Normal file
1
assets/index.6f9cb6f8.js
Normal file
@ -0,0 +1 @@
|
||||
import{h as y,Y as B,_ as v}from"./index.aa4cef55.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as k,r as C,bD as $,C as E,D as A,aI as r,aH as n,G as h,aN as m,aM as w,a$ as F,ba as S,bB as D,bE as H,bJ as T,n as I}from"./arco.76776ef0.js";import{e as N,b as R,g as P}from"./serial.c741fbda.js";import{C as V}from"./index.5e61a6e4.js";import"./chart.ce50b7a1.js";import"./vue.5cc47a17.js";import"./useConfig.93c19403.js";import"./index.ee7dcbab.js";const M={class:"container"},U=["innerHTML"],x={name:"Chi"},L=k({...x,setup(z){const i=y(),u=C({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),b=async(e=0,t)=>{var c;await N(i.connectPort);for(let o=e;o<t.length+e;o+=128)await R(i.connectPort,o,t.slice(o-e,o-e+128),128,(c=i.configuration)==null?void 0:c.uart),u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((o-e)/t.length*100).toFixed(1)+"%<br/>",I(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)});u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await P(i.connectPort)},g=async(e=1)=>{var c,o,a,f;if(i.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((c=i.configuration)==null?void 0:c.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}u.status=u.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(o=i.configuration)!=null&&o.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const l=t.body.getReader(),s=[];for(;;){const{done:p,value:_}=await l.read();if(p)break;s.push(..._)}const d=new Uint8Array(s);await b(131072,d);return}if(e==1){if(((a=i.configuration)==null?void 0:a.charset)=="losehu"){t=await fetch("/old_font.bin");const l=t.body.getReader(),s=[];for(;;){const{done:p,value:_}=await l.read();if(p)break;s.push(..._)}const d=new Uint8Array(s);await b(8192,d);return}if(((f=i.configuration)==null?void 0:f.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const l=t.body.getReader(),s=[];for(;;){const{done:p,value:_}=await l.read();if(p)break;s.push(..._)}const d=new Uint8Array(s);await b(9344,d);return}}};return(e,t)=>{const c=B,o=F,a=V,f=S,l=D,s=$,d=H,p=T;return E(),A("div",M,[r(c,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),r(p,{gutter:20,align:"stretch"},{default:n(()=>[r(d,{span:24},{default:n(()=>[r(s,{class:"general-card"},{title:n(()=>[h("span",{onClick:t[0]||(t[0]=()=>{u.showHide+=1})},m(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:n(()=>[r(f,null,{default:n(()=>[r(a,{bordered:""},{header:n(()=>[w(m(e.$t("tool.fontwrite")),1)]),default:n(()=>[r(o,{onClick:t[1]||(t[1]=_=>g(1))},{default:n(()=>[w(m(e.$t("tool.writefontwrite")),1)]),_:1})]),_:1}),r(a,{bordered:""},{header:n(()=>[w(m(e.$t("tool.pinyinwrite")),1)]),default:n(()=>[r(f,null,{default:n(()=>[r(o,{onClick:t[2]||(t[2]=_=>g(4))},{default:n(()=>[w(m(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1})]),_:1}),r(l),h("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:u.status},null,8,U)]),_:1})]),_:1})]),_:1})])}}});const et=v(L,[["__scopeId","data-v-ac553c64"]]);export{et as default};
|
BIN
assets/index.6f9cb6f8.js.gz
Normal file
BIN
assets/index.6f9cb6f8.js.gz
Normal file
Binary file not shown.
1
assets/index.71beb668.js
Normal file
1
assets/index.71beb668.js
Normal file
@ -0,0 +1 @@
|
||||
import{h as B,Y as w,_ as E}from"./index.aa4cef55.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as k,r as v,bD as A,C,D as $,aI as s,aH as r,aM as m,aN as p,G as N,n as f,a$ as D,ba as P,bB as S,bE as T,bJ as H}from"./arco.76776ef0.js";import{d as b,c as I,r as _,j as V,k as h,l as M,m as j}from"./serial.c741fbda.js";import"./chart.ce50b7a1.js";import"./vue.5cc47a17.js";const x={class:"container"},L=["innerHTML"],R={name:"Flash"},U=k({...R,setup(z){const l=B(),e=v({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:""}),y=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const c=new Blob([t.files[0]],{type:"application/octet-stream"}),i=new Uint8Array(await c.arrayBuffer());e.binaryFile=i,e.binaryName=t.files[0].name},t.click()},F=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}l.connectPort&&await b(l.connectPort);let t=await I();await _(t,24,1e3);const c=V(e.binaryFile),i=new Uint8Array([48,5,c.length,0,...c]);await h(t,i),await _(t,24);const o=M(e.binaryFile);if(o.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<o.length;a+=256){const u=o.slice(a,a+256),d=j(u,a,o.length);try{await h(t,d),await _(t,26)}catch(n){return console.log("Flash command rejected. Aborting."),Promise.reject(n)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/o.length*100).toFixed(1)}%<br/>`,f(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",f(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),b(t),l.updateSettings({connectState:!1})};return(t,c)=>{const i=w,o=D,a=P,u=S,d=A,n=T,g=H;return C(),$("div",x,[s(i,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),s(g,{gutter:20,align:"stretch"},{default:r(()=>[s(n,{span:24},{default:r(()=>[s(d,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:r(()=>[s(a,null,{default:r(()=>[s(o,{onClick:y},{default:r(()=>[m(p(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),s(o,{type:"primary",disabled:!e.binaryFile,onClick:F},{default:r(()=>[m(p(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1}),s(u),N("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,L)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const Z=E(U,[["__scopeId","data-v-5675c10a"]]);export{Z as default};
|
BIN
assets/index.71beb668.js.gz
Normal file
BIN
assets/index.71beb668.js.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
||||
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};
|
Binary file not shown.
1
assets/index.73c2d803.js
Normal file
1
assets/index.73c2d803.js
Normal file
@ -0,0 +1 @@
|
||||
import{_}from"./index.aa4cef55.js";/* empty css */import{d as F,r as f,o as h,bB as g,a$ as m,D as y,bo as i,bp 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.76776ef0.js";import"./chart.ce50b7a1.js";import"./vue.5cc47a17.js";const l=u=>(A("data-v-9a7d1078"),u=u(),b(),u),S={class:"container"},B={style:{"background-color":"#fff",padding:"10%"}},C=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",B,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),C,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.73c2d803.js.gz
Normal file
BIN
assets/index.73c2d803.js.gz
Normal file
Binary file not shown.
Binary file not shown.
8
assets/index.7cf1f98e.js
Normal file
8
assets/index.7cf1f98e.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.7cf1f98e.js.gz
Normal file
BIN
assets/index.7cf1f98e.js.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.8fdd052a.js
Normal file
1
assets/index.8fdd052a.js
Normal file
@ -0,0 +1 @@
|
||||
import{h as k,Y as B,_ as N}from"./index.aa4cef55.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as T,r as E,aX as K,bO as L,bD as R,C as F,D as H,aI as e,aH as r,aM as V,aN as A,u as J,a6 as M,a$ as O,ba as W,bE as X,bJ as Y,b7 as j,bc as q}from"./arco.76776ef0.js";import{u as x}from"./loading.25eefc63.js";import{e as $,a as S,f as w,s as h,b as P,g as z}from"./serial.c741fbda.js";import"./chart.ce50b7a1.js";import"./vue.5cc47a17.js";const G={class:"container"},Q={name:"Chi"},Z=T({...Q,setup(oo){const o=k(),{loading:I,setLoading:C}=x(!1),t=E({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)},D=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 z(o.connectPort),C(!1)};return(n,i)=>{const f=B,c=M,u=O,m=W,_=X,g=Y,d=j,s=q,b=K,y=L,a=R;return F(),H("div",G,[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:D},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(y,{loading:J(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=N(Z,[["__scopeId","data-v-739b81b7"]]);export{_o as default};
|
BIN
assets/index.8fdd052a.js.gz
Normal file
BIN
assets/index.8fdd052a.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
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};
|
Binary file not shown.
5
assets/index.922be163.js
Normal file
5
assets/index.922be163.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.922be163.js.gz
Normal file
BIN
assets/index.922be163.js.gz
Normal file
Binary file not shown.
33
assets/index.9dd3f9b0.js
Normal file
33
assets/index.9dd3f9b0.js
Normal file
@ -0,0 +1,33 @@
|
||||
import{G as E,M as B,c as Y,w as Q,h as it,Y as st,_ as lt}from"./index.aa4cef55.js";/* empty css *//* empty css *//* empty css */import{d as I,c as w,o as ut,b as pt,f as ft,t as dt,p as mt,r as Z,aI as g,aU as tt,i as gt,bD as bt,bO as yt,C as A,D as R,aH as y,aK as vt,aJ as Ot,aE as _t,G as M,u as z,aM as L,aN as T,bE as ht,bJ as jt,a$ as wt,ba as Pt,be as Ct,bf as St}from"./arco.76776ef0.js";import{e as xt,b as Dt,g as Et}from"./serial.c741fbda.js";import{u as et,r as nt,_ as at}from"./dep-281dbb92.526b06bd.js";import{B as Nt}from"./index.3a9d9ed5.js";import{_ as v,u as ot}from"./useConfig.93c19403.js";import{i as $,h as It}from"./index.23e71fba.js";import{d as N,i as V}from"./index.ee7dcbab.js";import{C as $t}from"./index.5e61a6e4.js";import"./chart.ce50b7a1.js";import"./vue.5cc47a17.js";import"./useDisabled.103ae1d5.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 G(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){at(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 kt={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"}}]},At=I({name:"CheckDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,a=w(()=>e.size),{className:i,style:f}=et(a),c=w(()=>["t-icon","t-icon-check-double",i.value]),o=w(()=>G(G({},f.value),n.style)),s=w(()=>({class:c.value,style:o.value,onClick:u=>{var r;return(r=e.onClick)===null||r===void 0?void 0:r.call(e,{e:u})}}));return()=>nt(kt,s.value)}});const Ft=At;function K(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?K(Object(n),!0).forEach(function(a){at(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(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"}}]},Mt=I({name:"ThumbUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,a=w(()=>e.size),{className:i,style:f}=et(a),c=w(()=>["t-icon","t-icon-thumb-up",i.value]),o=w(()=>H(H({},f.value),n.style)),s=w(()=>({class:c.value,style:o.value,onClick:u=>{var r;return(r=e.onClick)===null||r===void 0?void 0:r.call(e,{e:u})}}));return()=>nt(Bt,s.value)}});const Rt=Mt;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var zt={align:{type:String,default:"top",validator:function(t){return t?["start","end","center","stretch","baseline","top","middle","bottom"].includes(t):!0}},gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:"start",validator:function(t){return t?["start","end","center","space-around","space-between"].includes(t):!0}},tag:{type:String,default:"div"}};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var J=function(t){var n="xs";return t<768?n="xs":t>=768&&t<992?n="sm":t>=992&&t<1200?n="md":t>=1200&&t<1400?n="lg":t>=1400&&t<1880?n="xl":n="xxl",n};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Lt(e,t){ut(function(){window.addEventListener(e,t)}),pt(function(){window.removeEventListener(e,t)})}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function X(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 F(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X(Object(n),!0).forEach(function(a){v(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function rt(){var e=ft(J(V?0:window.innerWidth)),t=function(){e.value=J(V?0:window.innerWidth)};return Lt("resize",t),e}function Tt(e,t){var n=t.justify,a=t.align;return[e,v(v({},"".concat(e,"--").concat(n),n),"".concat(e,"--align-").concat(a),a)]}function Vt(e,t){var n={},a=function(o){return Object.assign(n,{marginLeft:"".concat(o/-2,"px"),marginRight:"".concat(o/-2,"px")})},i=function(o){return Object.assign(n,{rowGap:"".concat(o,"px")})},f={isNumber:function(o){N(o)&&a(o)},isArray:function(o){B(o)&&o.length&&(f.isNumber(o[0]),N(o[1])&&i(o[1]),E(o[0])&&!$(o[0][t])&&a(o[0][t]),E(o[1])&&!$(o[1][t])&&i(o[1][t]))},isObject:function(o){E(o)&&o[t]&&(B(o)&&o.length?(a(o[t][0]),i(o[t][1])):a(o[t]))}};return Object.keys(f).forEach(function(c){f[c](e)}),n}function Ut(e){return N(e)?"".concat(e," ").concat(e," 0"):/^\d+(\.\d+)?(px|r?em|%)$/.test(e)?"0 0 ".concat(e):e}function Gt(e,t){var n={},a=function(c){return Object.assign(n,{paddingLeft:"".concat(c/2,"px"),paddingRight:"".concat(c/2,"px")})},i={isNumber:function(c){N(c)&&a(c)},isArray:function(c){B(c)&&c.length&&(N(c[0])&&a(c[0]),E(c[0])&&c[0][t]&&a(c[0][t]))},isObject:function(c){E(c)&&c[t]&&a(c[t])}};return Object.keys(i).forEach(function(f){i[f](e)}),n}function Kt(e,t){var n=t.span,a=t.order,i=t.offset,f=t.push,c=t.pull,o=["xs","sm","md","lg","xl","xxl"],s=o.reduce(function(u,r){var d=t[r],l={};return N(d)?l.span=d:E(d)&&(l=d||{}),F(F({},u),{},v(v(v(v(v({},"".concat(e,"-").concat(r,"-").concat(l.span),!$(l.span)),"".concat(e,"-").concat(r,"-order-").concat(l.order),parseInt(l.order,10)>=0),"".concat(e,"-").concat(r,"-offset-").concat(l.offset),parseInt(l.offset,10)>=0),"".concat(e,"-").concat(r,"-push-").concat(l.push),parseInt(l.push,10)>=0),"".concat(e,"-").concat(r,"-pull-").concat(l.pull),parseInt(l.pull,10)>=0))},{});return F(v(v(v(v(v(v({},"".concat(e),!0),"".concat(e,"-").concat(n),!$(n)),"".concat(e,"-order-").concat(a),a),"".concat(e,"-offset-").concat(i),i),"".concat(e,"-push-").concat(f),f),"".concat(e,"-pull-").concat(c),c),s)}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function q(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 Ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(a){v(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Jt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!tt(e)}var Xt=I({name:"TRow",props:Ht({},zt),setup:function(t){var n=dt(t),a=n.gutter,i=Y();mt("rowContext",Z({gutter:a}));var f=rt(),c=ot("row"),o=w(function(){return Tt(c.value,t)}),s=w(function(){return Vt(t.gutter,f.value)});return function(){var u,r=t.tag;return g(r,{class:o.value,style:s.value},Jt(u=i("default"))?u:{default:function(){return[u]}})}}});/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var qt={flex:{type:[String,Number]},lg:{type:[Number,Object]},md:{type:[Number,Object]},offset:{type:Number,default:0},order:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},sm:{type:[Number,Object]},span:{type:Number},tag:{type:String,default:"div"},xl:{type:[Number,Object]},xs:{type:[Number,Object]},xxl:{type:[Number,Object]}};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function W(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 Wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W(Object(n),!0).forEach(function(a){v(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Yt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!tt(e)}var Qt=I({name:"TCol",inject:["rowContext"],props:Wt({},qt),setup:function(t){var n=ot("col"),a=Y(),i=gt("rowContext",Object.create(null)),f=rt(),c=w(function(){return Kt(n.value,t)}),o=w(function(){var s={},u=t.flex;if(u&&(s.flex=Ut(u)),i){var r=i.gutter;Object.assign(s,Gt(r,f.value))}return s});return function(){var s,u=t.tag;return g(u,{class:c.value,style:o.value},Yt(s=a("default"))?s:{default:function(){return[s]}})}}});/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Zt=Q(Xt),te=Q(Qt);const ct=e=>(Ct("data-v-90e5a732"),e=e(),St(),e),ee={class:"container"},ne=["title","src"],ae=ct(()=>M("div",{id:"canvasDiv",style:{zoom:"250%"}},null,-1)),oe=ct(()=>M("br",null,null,-1)),re={name:"Backup"},ce=I({...re,setup(e){const t=it(),n=Z({binaryFile:void 0,loading:!1}),a=o=>{alert("\u56FE\u7247\u5DE5\u574A\u5373\u5C06\u63A8\u51FA")},i=o=>{const s=document.createElement("canvas");s.width=128,s.height=64;const u=s.cloneNode(),r=document.getElementById("canvasDiv");r.innerHTML="",r==null||r.append(s,u);const d=new Image;d.src=o.url,d.onload=()=>{const l=s.getContext("2d");l==null||l.drawImage(d,0,0,128,64);const j=l==null?void 0:l.getImageData(0,0,s.width,s.height).data;function b(O,_){const p=(_*128+O)*4;return j[p]+j[p+1]+j[p+2]>128*3?0:1}const C=u.getContext("2d"),P=C.getImageData(0,0,u.width,u.height);for(let O=0;O<64;O++)for(let _=0;_<128;_++){const p=(O*128+_)*4,D=!b(_,O);P.data[p]=D*255,P.data[p+1]=D*255,P.data[p+2]=D*255,P.data[p+3]=255}C.putImageData(P,0,0);const x=new Uint8Array(1024);let S=0;for(let O=0;O<64;O+=8)for(let _=0;_<128;_++){let m=0;for(let p=0;p<8;p++)m|=b(_,O+p)<<p;x[S++]=m}n.binaryFile=x}},f=()=>{const o=document.createElement("input");o.type="file",o.onchange=async()=>{const s=new Blob([o.files[0]],{type:"application/octet-stream"}),u=URL.createObjectURL(s),r=document.createElement("canvas");r.width=128,r.height=64;const d=r.cloneNode(),l=document.getElementById("canvasDiv");l.innerHTML="",l==null||l.append(r,d);const j=new Image;j.src=u,j.onload=()=>{const b=r.getContext("2d");b==null||b.drawImage(j,0,0,128,64);const C=b==null?void 0:b.getImageData(0,0,r.width,r.height).data;function P(m,p){const h=(p*128+m)*4;return C[h]+C[h+1]+C[h+2]>128*3?0:1}const x=d.getContext("2d"),S=x.getImageData(0,0,d.width,d.height);for(let m=0;m<64;m++)for(let p=0;p<128;p++){const h=(m*128+p)*4,k=!P(p,m);S.data[h]=k*255,S.data[h+1]=k*255,S.data[h+2]=k*255,S.data[h+3]=255}x.putImageData(S,0,0);const O=new Uint8Array(1024);let _=0;for(let m=0;m<64;m+=8)for(let p=0;p<128;p++){let D=0;for(let h=0;h<8;h++)D|=P(p,m+h)<<h;O[_++]=D}n.binaryFile=O}},o.click()},c=async()=>{var u,r,d,l,j;if(t.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((u=t.configuration)==null?void 0:u.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((r=t.configuration)==null?void 0:r.charset)!="losehu"&&((d=t.configuration)==null?void 0:d.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}n.loading=!0;let o=123728;((l=t.configuration)==null?void 0:l.charset)=="gb2312"&&(o=8320),await xt(t.connectPort);const s=n.binaryFile;for(let b=o;b<s.length+o;b+=128)await Dt(t.connectPort,b,s.slice(b-o,b-o+128),128,(j=t.configuration)==null?void 0:j.uart);await Et(t.connectPort),n.loading=!1};return(o,s)=>{const u=st,r=Nt,d=te,l=Zt,j=$t,b=ht,C=jt,P=It,x=wt,S=Pt,O=bt,_=yt;return A(),R("div",ee,[g(u,{items:[o.$t("menu.list"),o.$t("menu.image")]},null,8,["items"]),g(C,{gutter:20,align:"stretch"},{default:y(()=>[g(b,{span:24},{default:y(()=>[g(_,{loading:n.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:y(()=>[g(O,{class:"general-card",title:o.$t("menu.image")+o.$t("global.onStart")},{default:y(()=>[g(C,{gutter:20},{default:y(()=>[(A(!0),R(vt,null,Ot([{name:"\u7F57\u72EE\u864E",url:"/img1.png"},{name:"\u79BB\u7EBF\u5C0F\u6050\u9F99",url:"/img2.png"},{name:"\u4E0D\u5FD8\u521D\u5FC3\u7262\u8BB0\u4F7F\u547D",url:"/img3.png"},{name:"\u4E3A\u4EBA\u6C11\u670D\u52A1",url:"/img4.png"},{name:"\u4E25\u7981\u6536\u542C\u654C\u53F0\u5E7F\u64AD",url:"/img5.png"},{name:"\u7231\u56E0\u65AF\u5766",url:"/img6.png"}],m=>(A(),_t(b,{span:4},{default:y(()=>[g(j,{style:{width:"100%"}},{cover:y(()=>[M("img",{title:m.name,src:m.url},null,8,ne)]),footer:y(()=>[g(l,{align:"middle",justify:"center",style:{gap:"24px"}},{default:y(()=>[g(d,{flex:"auto",style:{display:"inline-flex","justify-content":"center"}},{default:y(()=>[g(r,{variant:"text",shape:"square",onClick:p=>a(m)},{default:y(()=>[g(z(Rt))]),_:2},1032,["onClick"])]),_:2},1024),g(d,{flex:"auto",style:{display:"inline-flex","justify-content":"center"}},{default:y(()=>[g(r,{variant:"text",shape:"square",onClick:p=>i(m)},{default:y(()=>[g(z(Ft))]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:1}),g(P,{style:{margin:"10px"},total:6,showPageNumber:"",showPageSize:!1}),ae,oe,g(S,null,{default:y(()=>[g(x,{onClick:f},{default:y(()=>[L(T(o.$t("tool.selectImage")),1)]),_:1}),g(x,{type:"primary",disabled:!n.binaryFile,onClick:c},{default:y(()=>[L(T(o.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const je=lt(ce,[["__scopeId","data-v-90e5a732"]]);export{je as default};
|
BIN
assets/index.9dd3f9b0.js.gz
Normal file
BIN
assets/index.9dd3f9b0.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.aa4cef55.js.gz
Normal file
BIN
assets/index.aa4cef55.js.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
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 @@
|
||||
.container[data-v-14f2aa44]{background-color:#f2f3f5;width:100vw;height:100vh;padding-top:10%;padding-left:10%;padding-right:10%}
|
||||
.container[data-v-9a7d1078]{background-color:#f2f3f5;width:100vw;height:100vh;padding-top:10%;padding-left:10%;padding-right:10%}
|
@ -1 +0,0 @@
|
||||
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};
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.b9b8bd6f.css.gz
Normal file
BIN
assets/index.b9b8bd6f.css.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
||||
import{d as o,D as r,C as a}from"./arco.02de294f.js";import{f as s,h as n}from"./vue.4e4c1473.js";const i=o({__name:"index",setup(c){const e=s(),t=n().params.path;return e.replace({path:t}),(u,m)=>(a(),r("div"))}});export{i as default};
|
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1 +0,0 @@
|
||||
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.
1
assets/index.e2a959bb.css
Normal file
1
assets/index.e2a959bb.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.e2a959bb.css.gz
Normal file
BIN
assets/index.e2a959bb.css.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
assets/index.e54ecb37.js
Normal file
1
assets/index.e54ecb37.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as t}from"./index.aa4cef55.js";import{C as a,aE as s,aH as _,bg as c,be as n,bf as r,G as d}from"./arco.76776ef0.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};
|
File diff suppressed because one or more lines are too long
BIN
assets/index.e6e6afaf.css.gz
Normal file
BIN
assets/index.e6e6afaf.css.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
||||
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};
|
82
assets/index.ee7dcbab.js
Normal file
82
assets/index.ee7dcbab.js
Normal file
@ -0,0 +1,82 @@
|
||||
import{ae as $e,af as rn,a4 as an,A as Se,ag as Ee,ah as tn,ai as sn,M as D,aj as ln,ak as on,al as un,am as cn,O as Te,y as Pe,a8 as fn,a1 as vn,an as dn,z as gn,ao as Le,C as N,J as xe,a2 as ie,P as hn,ap as yn,G as Ie,aq as pn,ar as Me,N as mn,as as _n,w as Cn}from"./index.aa4cef55.js";import{d as wn,b as J,_ as R,u as p,a as bn}from"./useConfig.93c19403.js";import{d as ee,o as ne,g as An,n as On,aI as h,c as y,f as z,w as Re,t as $n,bH as G,bL as le,r as Sn,h as En,b4 as Tn}from"./arco.76776ef0.js";/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Pn="__lodash_hash_undefined__";function Ln(e){return this.__data__.set(e,Pn),this}var xn=Ln;function In(e){return this.__data__.has(e)}var Mn=In,Rn=$e,Nn=xn,Fn=Mn;function H(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new Rn;++n<r;)this.add(e[n])}H.prototype.add=H.prototype.push=Nn;H.prototype.has=Fn;var Dn=H;function Gn(e,n){return e.has(n)}var qn=Gn;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Kn(e){var n=-1,r=Array(e.size);return e.forEach(function(a){r[++n]=a}),r}var Bn=Kn;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function zn(e,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(e[r],r,e))return!0;return!1}var Hn=zn,Un=Dn,Wn=Hn,Xn=qn,Zn=1,Yn=2;function Jn(e,n,r,a,t,s){var i=r&Zn,l=e.length,o=n.length;if(l!=o&&!(i&&o>l))return!1;var u=s.get(e),c=s.get(n);if(u&&c)return u==n&&c==e;var f=-1,v=!0,m=r&Yn?new Un:void 0;for(s.set(e,n),s.set(n,e);++f<l;){var d=e[f],g=n[f];if(a)var C=i?a(g,d,f,n,e,s):a(d,g,f,e,n,s);if(C!==void 0){if(C)continue;v=!1;break}if(m){if(!Wn(n,function(w,b){if(!Xn(m,b)&&(d===w||t(d,w,r,a,s)))return m.push(b)})){v=!1;break}}else if(!(d===g||t(d,g,r,a,s))){v=!1;break}}return s.delete(e),s.delete(n),v}var Ne=Jn;function jn(e){var n=-1,r=Array(e.size);return e.forEach(function(a,t){r[++n]=[t,a]}),r}var Qn=jn,oe=an,ue=ln,kn=on,Vn=Ne,er=Qn,nr=Bn,rr=1,ar=2,tr="[object Boolean]",sr="[object Date]",ir="[object Error]",lr="[object Map]",or="[object Number]",ur="[object RegExp]",cr="[object Set]",fr="[object String]",vr="[object Symbol]",dr="[object ArrayBuffer]",gr="[object DataView]",ce=oe?oe.prototype:void 0,X=ce?ce.valueOf:void 0;function hr(e,n,r,a,t,s,i){switch(r){case gr:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case dr:return!(e.byteLength!=n.byteLength||!s(new ue(e),new ue(n)));case tr:case sr:case or:return kn(+e,+n);case ir:return e.name==n.name&&e.message==n.message;case ur:case fr:return e==n+"";case lr:var l=er;case cr:var o=a&rr;if(l||(l=nr),e.size!=n.size&&!o)return!1;var u=i.get(e);if(u)return u==n;a|=ar,i.set(e,n);var c=Vn(l(e),l(n),a,t,s,i);return i.delete(e),c;case vr:if(X)return X.call(e)==X.call(n)}return!1}var yr=hr,fe=un,pr=1,mr=Object.prototype,_r=mr.hasOwnProperty;function Cr(e,n,r,a,t,s){var i=r&pr,l=fe(e),o=l.length,u=fe(n),c=u.length;if(o!=c&&!i)return!1;for(var f=o;f--;){var v=l[f];if(!(i?v in n:_r.call(n,v)))return!1}var m=s.get(e),d=s.get(n);if(m&&d)return m==n&&d==e;var g=!0;s.set(e,n),s.set(n,e);for(var C=i;++f<o;){v=l[f];var w=e[v],b=n[v];if(a)var O=i?a(b,w,v,n,e,s):a(w,b,v,e,n,s);if(!(O===void 0?w===b||t(w,b,r,a,s):O)){g=!1;break}C||(C=v=="constructor")}if(g&&!C){var E=e.constructor,$=n.constructor;E!=$&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof $=="function"&&$ instanceof $)&&(g=!1)}return s.delete(e),s.delete(n),g}var wr=Cr,Z=Ee,br=Ne,Ar=yr,Or=wr,ve=tn,de=D,ge=rn.exports,$r=sn,Sr=1,he="[object Arguments]",ye="[object Array]",q="[object Object]",Er=Object.prototype,pe=Er.hasOwnProperty;function Tr(e,n,r,a,t,s){var i=de(e),l=de(n),o=i?ye:ve(e),u=l?ye:ve(n);o=o==he?q:o,u=u==he?q:u;var c=o==q,f=u==q,v=o==u;if(v&&ge(e)){if(!ge(n))return!1;i=!0,c=!1}if(v&&!c)return s||(s=new Z),i||$r(e)?br(e,n,r,a,t,s):Ar(e,n,o,r,a,t,s);if(!(r&Sr)){var m=c&&pe.call(e,"__wrapped__"),d=f&&pe.call(n,"__wrapped__");if(m||d){var g=m?e.value():e,C=d?n.value():n;return s||(s=new Z),t(g,C,r,a,s)}}return v?(s||(s=new Z),Or(e,n,r,a,t,s)):!1}var Pr=Tr,Lr=Pr,me=Se;function Fe(e,n,r,a,t){return e===n?!0:e==null||n==null||!me(e)&&!me(n)?e!==e&&n!==n:Lr(e,n,r,a,Fe,t)}var re=Fe,xr=re;function Ir(e,n){return xr(e,n)}var Mr=Ir;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Rr=D,Nr=Te,Fr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dr=/^\w*$/;function Gr(e,n){if(Rr(e))return!1;var r=Pe(e);return r=="number"||r=="symbol"||r=="boolean"||e==null||Nr(e)?!0:Dr.test(e)||!Fr.test(e)||n!=null&&e in Object(n)}var ae=Gr,De=$e,qr="Expected a function";function te(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(qr);var r=function a(){var t=arguments,s=n?n.apply(this,t):t[0],i=a.cache;if(i.has(s))return i.get(s);var l=e.apply(this,t);return a.cache=i.set(s,l)||i,l};return r.cache=new(te.Cache||De),r}te.Cache=De;var Kr=te,Br=Kr,zr=500;function Hr(e){var n=Br(e,function(a){return r.size===zr&&r.clear(),a}),r=n.cache;return n}var Ur=Hr,Wr=Ur,Xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zr=/\\(\\)?/g,Yr=Wr(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Xr,function(r,a,t,s){n.push(t?s.replace(Zr,"$1"):a||r)}),n}),Jr=Yr,jr=D,Qr=ae,kr=Jr,Vr=cn;function ea(e,n){return jr(e)?e:Qr(e,n)?[e]:kr(Vr(e))}var Ge=ea,na=Te,ra=1/0;function aa(e){if(typeof e=="string"||na(e))return e;var n=e+"";return n=="0"&&1/e==-ra?"-0":n}var U=aa,ta=Ge,sa=U;function ia(e,n){n=ta(n,e);for(var r=0,a=n.length;e!=null&&r<a;)e=e[sa(n[r++])];return r&&r==a?e:void 0}var qe=ia;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var la=qe;function oa(e,n,r){var a=e==null?void 0:la(e,n);return a===void 0?r:a}var ua=oa;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function ca(e,n){return e!=null&&n in Object(e)}var fa=ca,va=Ge,da=fn,ga=D,ha=vn,ya=dn,pa=U;function ma(e,n,r){n=va(n,e);for(var a=-1,t=n.length,s=!1;++a<t;){var i=pa(n[a]);if(!(s=e!=null&&r(e,i)))break;e=e[i]}return s||++a!=t?s:(t=e==null?0:e.length,!!t&&ya(t)&&ha(i,t)&&(ga(e)||da(e)))}var _a=ma,Ca=fa,wa=_a;function ba(e,n){return e!=null&&wa(e,n,Ca)}var Aa=ba;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Oa(e){return function(n){return n==null?void 0:n[e]}}var $a=Oa;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Sa(e){if(Array.isArray(e))return e}function Ea(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,t,s,i,l=[],o=!0,u=!1;try{if(s=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;o=!1}else for(;!(o=(a=s.call(r)).done)&&(l.push(a.value),l.length!==n);o=!0);}catch(c){u=!0,t=c}finally{try{if(!o&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw t}}return l}}function Ta(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pa(e,n){return Sa(e)||Ea(e,n)||wn(e,n)||Ta()}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function _e(e,n){var r=Object.keys(n);r.forEach(function(a){e.style[a]=n[a]})}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var La=gn,xa=Se,Ia="[object Number]";function Ma(e){return typeof e=="number"||xa(e)&&La(e)==Ia}var Ra=Ma;/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Na(){if(typeof navigator>"u"||!navigator)return Number.MAX_SAFE_INTEGER;var e=navigator,n=e.userAgent,r=n.indexOf("compatible")>-1&&n.indexOf("MSIE")>-1,a=n.indexOf("Trident")>-1&&n.indexOf("rv:11.0")>-1;if(r){var t=new RegExp("MSIE (\\d+\\.\\d+);"),s=n.match(t);if(!s)return-1;var i=parseFloat(s[1]);return i<7?6:i}return a?11:Number.MAX_SAFE_INTEGER}function Vt(e,n){var r=Ra(n);if(!e||e.length===0)return r?{length:0,characters:e}:0;for(var a=0,t=0;t<e.length;t++){var s=0;if(e.charCodeAt(t)>127?s=2:s=1,r&&a+s>n)return{length:a,characters:e.slice(0,t)};a+=s}return r?{length:a,characters:e}:a}function es(e){return J(e!=null?e:"").length}function ns(e,n,r){return J(r!=null?r:"").slice().length===n?r||"":J(e!=null?e:"").slice(0,n).join("")}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function Ce(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function K(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Ce(Object(r),!0).forEach(function(a){R(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Fa(e){var n,r,a,t={};if(!(!e||typeof window>"u")){var s=(n=window)===null||n===void 0||(r=n.getComputedStyle)===null||r===void 0?void 0:r.call(n,e),i=s.color,l=s.fontSize,o=(a=window)===null||a===void 0||(a=a.navigator)===null||a===void 0?void 0:a.userAgent,u=/Safari/.test(o)&&!/Chrome/.test(o),c=/(?=.*iPhone)[?=.*MicroMessenger]/.test(o)&&!/Chrome/.test(o);if((u||c)&&(t={transformOrigin:"0px 0px",transform:"scale(".concat(parseInt(l,10)/12,")")}),i&&Na()>11){var f=i.match(/[\d.]+/g),v=f?"rgba(".concat(f[0],", ").concat(f[1],", ").concat(f[2],", 0)"):"";_e(e,K(K({},t),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(v," 0deg, ").concat(i," 360deg)")}))}else _e(e,K(K({},t),{},{background:""}))}}/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Da=ee({name:"TLoadingGradient",setup:function(){var n=p();return ne(function(){var r=An().refs.circle;On(function(){Fa(r)})}),{classPrefix:n}},render:function(){var n=this.classPrefix,r="".concat(n,"-loading__gradient"),a=[r,"".concat(n,"-icon-loading")];return h("svg",{class:a,viewBox:"0 0 12 12",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[h("foreignObject",{x:"0",y:"0",width:"12",height:"12"},[h("div",{class:"".concat(r,"-conic"),ref:"circle"},null)])])}});/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var se={exports:{}},M={exports:{}};(function(){var e,n,r,a,t,s;typeof performance<"u"&&performance!==null&&performance.now?M.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(M.exports=function(){return(e()-t)/1e6},n=process.hrtime,e=function(){var l;return l=n(),l[0]*1e9+l[1]},a=e(),s=process.uptime()*1e9,t=a-s):Date.now?(M.exports=function(){return Date.now()-r},r=Date.now()):(M.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(Le);var Ga=M.exports,A=typeof window>"u"?Le:window,B=["moz","webkit"],P="AnimationFrame",L=A["request"+P],F=A["cancel"+P]||A["cancelRequest"+P];for(var I=0;!L&&I<B.length;I++)L=A[B[I]+"Request"+P],F=A[B[I]+"Cancel"+P]||A[B[I]+"CancelRequest"+P];if(!L||!F){var Y=0,we=0,S=[],qa=1e3/60;L=function(n){if(S.length===0){var r=Ga(),a=Math.max(0,qa-(r-Y));Y=a+r,setTimeout(function(){var t=S.slice(0);S.length=0;for(var s=function(){if(!t[i].cancelled)try{t[i].callback(Y)}catch(o){setTimeout(function(){throw o},0)}},i=0;i<t.length;i++)s()},Math.round(a))}return S.push({handle:++we,callback:n,cancelled:!1}),we},F=function(n){for(var r=0;r<S.length;r++)S[r].handle===n&&(S[r].cancelled=!0)}}se.exports=function(e){return L.call(A,e)};se.exports.cancel=function(){F.apply(A,arguments)};se.exports.polyfill=function(e){e||(e=A),e.requestAnimationFrame=L,e.cancelAnimationFrame=F};var Ke=typeof window>"u",Ka=function(n){return(n||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},Ba=function(){return!Ke&&document.addEventListener?function(e,n,r,a){e&&n&&r&&e.addEventListener(n,r,a)}:function(e,n,r){e&&n&&r&&e.attachEvent("on".concat(n),r)}}(),za=function(){return!Ke&&document.removeEventListener?function(e,n,r,a){e&&n&&e.removeEventListener(n,r,a)}:function(e,n,r){e&&n&&e.detachEvent("on".concat(n),r)}}();function rs(e,n,r,a){var t=N(r)?r:r.handleEvent,s=function i(l){t(l),za(e,n,i,a)};Ba(e,n,s,a)}function Be(e,n){if(!e||!n)return!1;if(n.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(n):" ".concat(e.className," ").indexOf(" ".concat(n," "))>-1}function j(e,n){if(!!e){for(var r=e.className,a=(n||"").split(" "),t=0,s=a.length;t<s;t++){var i=a[t];!i||(e.classList?e.classList.add(i):Be(e,i)||(r+=" ".concat(i)))}e.classList||(e.className=r)}}function Q(e,n){if(!(!e||!n)){for(var r=n.split(" "),a=" ".concat(e.className," "),t=0,s=r.length;t<s;t++){var i=r[t];!i||(e.classList?e.classList.remove(i):Be(e,i)&&(a=a.replace(" ".concat(i," ")," ")))}e.classList||(e.className=Ka(a))}}var ze=function(n,r){var a=N(n)?n(r):n;return a?xe(a)?document.querySelector(a):a instanceof HTMLElement?a:document.body:document.body},Ha=function(){},as=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return xe(n)?document.querySelector(n):N(n)?n():n},ts=function(n){var r=n.clientWidth,a=r===void 0?0:r,t=n.scrollWidth,s=t===void 0?0:t;return s>a};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Ua={attach:{type:[String,Function],default:""},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:Number,default:0},fullscreen:Boolean,indicator:{type:[Boolean,Function],default:!0},inheritColor:Boolean,loading:{type:Boolean,default:!0},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},size:{type:String,default:"medium"},text:{type:[String,Function]},zIndex:{type:Number}};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Wa=function(n,r){var a=N(n)?y(n):z(n),t=N(r)?y(r):z(r),s=z(),i=function(){s.value=Ha()||ze(a.value,t.value)};return ne(function(){return i()}),Re([a,t],function(){return i()}),s};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Xa=function(){return{name:p("loading"),centerClass:p("loading--center"),fullscreenClass:p("loading__fullscreen"),lockClass:p("loading--lock"),overlayClass:p("loading__overlay"),relativeClass:p("loading__parent"),fullClass:p("loading--full"),inheritColorClass:p("loading--inherit-color")}},k=ee({name:"TLoading",inheritAttrs:!1,props:Ua,setup:function(n,r){var a=r.slots,t=z(!1),s=Xa(),i=s.name,l=s.centerClass,o=s.fullscreenClass,u=s.lockClass,c=s.overlayClass,f=s.relativeClass,v=s.fullClass,m=s.inheritColorClass,d=p(),g=bn(),C=g.SIZE,w=function(){t.value=!1;var x=setTimeout(function(){t.value=!0,clearTimeout(x)},n.delay)},b=Wa(function(){return n.attach}),O=y(function(){return Boolean(!n.delay||n.delay&&t.value)}),E=y(function(){var _={};return n.zIndex!==void 0&&(_.zIndex=n.zIndex),["small","medium","large"].includes(n.size)||(_["font-size"]=n.size),_}),$=y(function(){return Boolean(n.default||a.default||n.content||a.content)}),W=y(function(){return n.preventScrollThrough&&n.fullscreen}),Ze=y(function(){return Boolean(n.text||a.text)}),Ye=y(function(){return $.value&&n.loading&&O.value}),Je=y(function(){return n.fullscreen&&n.loading&&O.value}),je=y(function(){return n.attach&&n.loading&&O.value}),Qe=y(function(){return n.attach&&n.loading&&O.value}),ke=y(function(){var _=[l.value,C.value[n.size],R({},m.value,n.inheritColor)],x=[i.value,o.value,l.value,c.value];return{baseClasses:_,attachClasses:_.concat([i.value,v.value,R({},c.value,n.showOverlay)]),withContentClasses:_.concat([i.value,v.value,R({},c.value,n.showOverlay)]),fullScreenClasses:x,normalClasses:_.concat([i.value])}}),Ve=$n(n),en=Ve.loading;return Re([en],function(_){var x=Pa(_,1),nn=x[0];nn?(w(),W.value&&j(document.body,u.value)):W.value&&Q(document.body,u.value)}),ne(function(){n.delay&&w()}),{classPrefix:d,relativeClass:f,delayShowLoading:t,styles:E,showText:Ze,hasContent:$,classes:ke,lockFullscreen:W,showWrapLoading:Ye,showNormalLoading:je,showFullScreenLoading:Je,showAttachedLoading:Qe,teleportElement:b}},render:function(){var n=this,r=this.classes,a=r.fullScreenClasses,t=r.baseClasses,s=r.withContentClasses,i=r.attachClasses,l=r.normalClasses,o=h(Da,{size:this.size},null),u=this.loading&&ie(this,"indicator",o),c=this.showText&&h("div",{class:"".concat(this.classPrefix,"-loading__text")},[ie(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:h(le,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[h("div",G({class:a,style:n.styles},n.$attrs),[h("div",{class:t},[u,c])])]}}):this.hasContent?h("div",G({class:this.relativeClass},this.$attrs),[hn(this,"default","content"),this.showWrapLoading&&h("div",{class:s,style:this.styles},[u,c])]):this.attach?!this.showAttachedLoading||!this.loading?null:h(le,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[h("div",G({class:i,style:n.styles},n.$attrs),[u,c])]}}):this.loading?h("div",G({class:l,style:this.styles},this.$attrs),[u,c]):null}});/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/function be(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Za(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?be(Object(r),!0).forEach(function(a){R(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var T=null;function Ya(e){var n=yn({fullscreen:!1,attach:"body",loading:!0,preventScrollThrough:!0},e);return n}function Ae(e){var n=Ya(e);if(n.fullscreen&&T)return T;var r=ee({setup:function(){var f=Sn(n);return{loadingOptions:f}},render:function(){return En(k,Za({},this.loadingOptions))}}),a=ze(n.fullscreen?"body":n.attach),t=Tn(r),s=t.mount(document.createElement("div")),i=p("loading__parent--relative").value,l=p("loading--lock"),o=n.preventScrollThrough&&n.fullscreen;o&&j(document.body,l.value),a?j(a,i):console.error("attach is not exist");var u={hide:function(){s.loading=!1,Q(a,i),Q(document.body,l.value),t.unmount()}};return u}function He(e){if(e===!0)return T=Ae({fullscreen:!0,loading:!0,attach:"body",preventScrollThrough:!0}),T;if(e===!1){var n;(n=T)===null||n===void 0||n.hide(),T=null;return}return Ae(e)}var Ue=He;Ue.install=function(e){e.config.globalProperties.$loading=He};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Ja=pn,ja=Me;function Qa(e,n){return e&&Ja(e,n,ja)}var ka=Qa,Va=Ee,et=re,nt=1,rt=2;function at(e,n,r,a){var t=r.length,s=t,i=!a;if(e==null)return!s;for(e=Object(e);t--;){var l=r[t];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++t<s;){l=r[t];var o=l[0],u=e[o],c=l[1];if(i&&l[2]){if(u===void 0&&!(o in e))return!1}else{var f=new Va;if(a)var v=a(u,c,o,e,n,f);if(!(v===void 0?et(c,u,nt|rt,a,f):v))return!1}}return!0}var tt=at,st=Ie;function it(e){return e===e&&!st(e)}var We=it,lt=We,ot=Me;function ut(e){for(var n=ot(e),r=n.length;r--;){var a=n[r],t=e[a];n[r]=[a,t,lt(t)]}return n}var ct=ut;function ft(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}var Xe=ft,vt=tt,dt=ct,gt=Xe;function ht(e){var n=dt(e);return n.length==1&&n[0][2]?gt(n[0][0],n[0][1]):function(r){return r===e||vt(r,e,n)}}var yt=ht,pt=re,mt=ua,_t=Aa,Ct=ae,wt=We,bt=Xe,At=U,Ot=1,$t=2;function St(e,n){return Ct(e)&&wt(n)?bt(At(e),n):function(r){var a=mt(r,e);return a===void 0&&a===n?_t(r,e):pt(n,a,Ot|$t)}}var Et=St,Tt=qe;function Pt(e){return function(n){return Tt(n,e)}}var Lt=Pt,xt=$a,It=Lt,Mt=ae,Rt=U;function Nt(e){return Mt(e)?xt(Rt(e)):It(e)}var Ft=Nt,Dt=yt,Gt=Et,qt=mn,Kt=D,Bt=Ft;function zt(e){return typeof e=="function"?e:e==null?qt:Pe(e)=="object"?Kt(e)?Gt(e[0],e[1]):Dt(e):Bt(e)}var Ht=zt,Ut=_n,Wt=ka,Xt=Ht;function Zt(e,n){var r={};return n=Xt(n),Wt(e,function(a,t,s){Ut(r,n(a,t,s),a)}),r}var Yt=Zt,V=Symbol("TdLoading"),Oe=function(n,r){var a=r.modifiers,t=a.fullscreen,s=a.inheritColor,i={attach:function(){return n},fullscreen:t!=null?t:!1,inheritColor:s!=null?s:!1,loading:r.value};Ie(r.value)&&Yt(r.value,function(l,o){i[o]=l}),n[V]={options:i,instance:Ue(i)}},Jt={mounted:function(n,r){r.value&&Oe(n,r)},updated:function(n,r){var a=n[V],t=r.value,s=r.oldValue;if(!Mr(t,s)){var i,l=(i=t==null?void 0:t.loading)!==null&&i!==void 0?i:t;l?Oe(n,r):a==null||a.instance.hide()}},unmounted:function(n){var r;(r=n[V])===null||r===void 0||r.instance.hide()}};/**
|
||||
* tdesign v1.9.4
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var ss=Cn(k,k.name,{name:"loading",comp:Jt});export{ss as L,Pa as _,Ba as a,Dn as b,qn as c,Ra as d,Vt as e,ze as f,as as g,ts as h,Ke as i,Na as j,Bn as k,ua as l,Be as m,Sa as n,za as o,Ta as p,Ha as q,rs as r,_e as s,es as t,ns as u,Ge as v,U as w,qe as x,Aa as y,Wa as z};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user