No files matched your search
@@ -1 +1 @@
|
||||
import{x as i,o as l,c as _,w as s,a as e,f as a,J as m,V as c,b as t,t as u,ae as p,B as n,af as o,j as f}from"./index-5ac7c267.js";const b={class:"text-h3"},h={class:"d-flex align-center"},g={class:"d-flex align-center"},V=i({__name:"BaseBreadcrumb",props:{title:String,breadcrumbs:Array,icon:String},setup(d){const r=d;return(x,B)=>(l(),_(c,{class:"page-breadcrumb mb-1 mt-1"},{default:s(()=>[e(a,{cols:"12",md:"12"},{default:s(()=>[e(m,{variant:"outlined",elevation:"0",class:"px-4 py-3 withbg"},{default:s(()=>[e(c,{"no-gutters":"",class:"align-center"},{default:s(()=>[e(a,{md:"5"},{default:s(()=>[t("h3",b,u(r.title),1)]),_:1}),e(a,{md:"7",sm:"12",cols:"12"},{default:s(()=>[e(p,{items:r.breadcrumbs,class:"text-h5 justify-md-end pa-1"},{divider:s(()=>[t("div",h,[e(n(o),{size:"17"})])]),prepend:s(()=>[e(f,{size:"small",icon:"mdi-home",class:"text-secondary mr-2"}),t("div",g,[e(n(o),{size:"17"})])]),_:1},8,["items"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}});export{V as _};
|
||||
import{x as i,o as l,c as _,w as s,a as e,f as a,J as m,V as c,b as t,t as u,ae as p,B as n,af as o,j as f}from"./index-b457b676.js";const b={class:"text-h3"},h={class:"d-flex align-center"},g={class:"d-flex align-center"},V=i({__name:"BaseBreadcrumb",props:{title:String,breadcrumbs:Array,icon:String},setup(d){const r=d;return(x,B)=>(l(),_(c,{class:"page-breadcrumb mb-1 mt-1"},{default:s(()=>[e(a,{cols:"12",md:"12"},{default:s(()=>[e(m,{variant:"outlined",elevation:"0",class:"px-4 py-3 withbg"},{default:s(()=>[e(c,{"no-gutters":"",class:"align-center"},{default:s(()=>[e(a,{md:"5"},{default:s(()=>[t("h3",b,u(r.title),1)]),_:1}),e(a,{md:"7",sm:"12",cols:"12"},{default:s(()=>[e(p,{items:r.breadcrumbs,class:"text-h5 justify-md-end pa-1"},{divider:s(()=>[t("div",h,[e(n(o),{size:"17"})])]),prepend:s(()=>[e(f,{size:"small",icon:"mdi-home",class:"text-secondary mr-2"}),t("div",g,[e(n(o),{size:"17"})])]),_:1},8,["items"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}});export{V as _};
|
||||
@@ -1 +1 @@
|
||||
import{x as e,o as a,c as t,w as o,a as s,B as n,Z as r,W as c}from"./index-5ac7c267.js";const f=e({__name:"BlankLayout",setup(p){return(u,_)=>(a(),t(c,null,{default:o(()=>[s(n(r))]),_:1}))}});export{f as default};
|
||||
import{x as e,o as a,c as t,w as o,a as s,B as n,Z as r,W as c}from"./index-b457b676.js";const f=e({__name:"BlankLayout",setup(p){return(u,_)=>(a(),t(c,null,{default:o(()=>[s(n(r))]),_:1}))}});export{f as default};
|
||||
@@ -1 +1 @@
|
||||
import{_ as m}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-1875d383.js";import{_}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b40a2daa.js";import{x as p,D as a,o as r,s,a as e,w as t,f as o,V as i,F as n,u as g,c as h,a0 as b,e as x,t as y}from"./index-5ac7c267.js";const P=p({__name:"ColorPage",setup(C){const c=a({title:"Colors Page"}),d=a([{title:"Utilities",disabled:!1,href:"#"},{title:"Colors",disabled:!0,href:"#"}]),u=a(["primary","lightprimary","secondary","lightsecondary","info","success","accent","warning","error","darkText","lightText","borderLight","inputBorder","containerBg"]);return(V,k)=>(r(),s(n,null,[e(m,{title:c.value.title,breadcrumbs:d.value},null,8,["title","breadcrumbs"]),e(i,null,{default:t(()=>[e(o,{cols:"12",md:"12"},{default:t(()=>[e(_,{title:"Color Palette"},{default:t(()=>[e(i,null,{default:t(()=>[(r(!0),s(n,null,g(u.value,(l,f)=>(r(),h(o,{md:"3",cols:"12",key:f},{default:t(()=>[e(b,{rounded:"md",class:"align-center justify-center d-flex",height:"100",width:"100%",color:l},{default:t(()=>[x("class: "+y(l),1)]),_:2},1032,["color"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})],64))}});export{P as default};
|
||||
import{_ as m}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-76d4bf62.js";import{_}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b380931c.js";import{x as p,D as a,o as r,s,a as e,w as t,f as o,V as i,F as n,u as g,c as h,a0 as b,e as x,t as y}from"./index-b457b676.js";const P=p({__name:"ColorPage",setup(C){const c=a({title:"Colors Page"}),d=a([{title:"Utilities",disabled:!1,href:"#"},{title:"Colors",disabled:!0,href:"#"}]),u=a(["primary","lightprimary","secondary","lightsecondary","info","success","accent","warning","error","darkText","lightText","borderLight","inputBorder","containerBg"]);return(V,k)=>(r(),s(n,null,[e(m,{title:c.value.title,breadcrumbs:d.value},null,8,["title","breadcrumbs"]),e(i,null,{default:t(()=>[e(o,{cols:"12",md:"12"},{default:t(()=>[e(_,{title:"Color Palette"},{default:t(()=>[e(i,null,{default:t(()=>[(r(!0),s(n,null,g(u.value,(l,f)=>(r(),h(o,{md:"3",cols:"12",key:f},{default:t(()=>[e(b,{rounded:"md",class:"align-center justify-center d-flex",height:"100",width:"100%",color:l},{default:t(()=>[x("class: "+y(l),1)]),_:2},1032,["color"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})],64))}});export{P as default};
|
||||
@@ -1 +1 @@
|
||||
import{o as l,s as o,u as c,c as n,w as u,Q as g,b as d,R as k,F as t,ac as h,O as p,t as m,a as V,ad as f,i as C,q as x,k as v,A as U}from"./index-5ac7c267.js";import{_ as w}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b40a2daa.js";const S={__name:"ConfigDetailCard",props:{config:Array},setup(s){return(y,B)=>(l(!0),o(t,null,c(s.config,r=>(l(),n(w,{key:r.name,title:r.name,style:{"margin-bottom":"16px"}},{default:u(()=>[g(d("a",null,"No data",512),[[k,s.config.length===0]]),(l(!0),o(t,null,c(r.body,e=>(l(),o(t,null,[e.config_type==="item"?(l(),o(t,{key:0},[e.val_type==="bool"?(l(),n(h,{key:0,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,label:e.name,hint:e.description,color:"primary",inset:""},null,8,["modelValue","onUpdate:modelValue","label","hint"])):e.val_type==="str"?(l(),n(p,{key:1,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,label:e.name,hint:e.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):e.val_type==="int"?(l(),n(p,{key:2,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,label:e.name,hint:e.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):e.val_type==="list"?(l(),o(t,{key:3},[d("span",null,m(e.name),1),V(f,{modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,chips:"",clearable:"",label:"请添加",multiple:"","prepend-icon":"mdi-tag-multiple-outline"},{selection:u(({attrs:a,item:i,select:b,selected:_})=>[V(C,x(a,{"model-value":_,closable:"",onClick:b,"onClick:close":D=>y.remove(i)}),{default:u(()=>[d("strong",null,m(i),1)]),_:2},1040,["model-value","onClick","onClick:close"])]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):v("",!0)],64)):e.config_type==="divider"?(l(),n(U,{key:1,style:{"margin-top":"8px","margin-bottom":"8px"}})):v("",!0)],64))),256))]),_:2},1032,["title"]))),128))}};export{S as _};
|
||||
import{o as l,s as o,u as c,c as n,w as u,Q as g,b as d,R as k,F as t,ac as h,O as p,t as m,a as V,ad as f,i as C,q as x,k as v,A as U}from"./index-b457b676.js";import{_ as w}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b380931c.js";const S={__name:"ConfigDetailCard",props:{config:Array},setup(s){return(y,B)=>(l(!0),o(t,null,c(s.config,r=>(l(),n(w,{key:r.name,title:r.name,style:{"margin-bottom":"16px"}},{default:u(()=>[g(d("a",null,"No data",512),[[k,s.config.length===0]]),(l(!0),o(t,null,c(r.body,e=>(l(),o(t,null,[e.config_type==="item"?(l(),o(t,{key:0},[e.val_type==="bool"?(l(),n(h,{key:0,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,label:e.name,hint:e.description,color:"primary",inset:""},null,8,["modelValue","onUpdate:modelValue","label","hint"])):e.val_type==="str"?(l(),n(p,{key:1,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,label:e.name,hint:e.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):e.val_type==="int"?(l(),n(p,{key:2,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,label:e.name,hint:e.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):e.val_type==="list"?(l(),o(t,{key:3},[d("span",null,m(e.name),1),V(f,{modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,chips:"",clearable:"",label:"请添加",multiple:"","prepend-icon":"mdi-tag-multiple-outline"},{selection:u(({attrs:a,item:i,select:b,selected:_})=>[V(C,x(a,{"model-value":_,closable:"",onClick:b,"onClick:close":D=>y.remove(i)}),{default:u(()=>[d("strong",null,m(i),1)]),_:2},1040,["model-value","onClick","onClick:close"])]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):v("",!0)],64)):e.config_type==="divider"?(l(),n(U,{key:1,style:{"margin-top":"8px","margin-bottom":"8px"}})):v("",!0)],64))),256))]),_:2},1032,["title"]))),128))}};export{S as _};
|
||||
@@ -0,0 +1 @@
|
||||
import{x as I,o,c as i,w as l,a as s,a8 as W,b as c,K as X,e as v,t as g,G as Y,A as Z,L as N,a9 as $,J as A,s as f,d as q,F as p,u as b,V as x,O as B,k as V,ac as z,ad as E,i as J,q as Q,p as D,a3 as j,N as S,ab as ee,T as O,a4 as G,Q as R,R as F}from"./index-b457b676.js";import{_ as ae}from"./ConfigDetailCard-a640ede2.js";import{_ as te}from"./_plugin-vue_export-helper-c27b6911.js";import"./UiParentCard.vue_vue_type_script_setup_true_lang-b380931c.js";const le={class:"d-sm-flex align-center justify-space-between"},oe=I({__name:"ConfigGroupCard",props:{title:String},setup(m){const e=m;return(t,_)=>(o(),i(A,{variant:"outlined",elevation:"0",class:"withbg",style:{width:"50%"}},{default:l(()=>[s(W,{style:{padding:"10px 20px"}},{default:l(()=>[c("div",le,[s(X,null,{default:l(()=>[v(g(e.title),1)]),_:1}),s(Y)])]),_:1}),s(Z),s(N,null,{default:l(()=>[$(t.$slots,"default")]),_:3})]),_:3}))}}),se={style:{display:"flex","flex-direction":"row","justify-content":"space-between","align-items":"center","margin-bottom":"12px"}},ne={style:{display:"flex","flex-direction":"row"}},de={style:{"margin-right":"10px",color:"black"}},ie={style:{color:"#222"}},me=I({__name:"ConfigGroupItem",props:{title:String,desc:String,btnRoute:String,namespace:String},setup(m){const e=m;return(t,_)=>(o(),f("div",se,[c("div",ne,[c("h3",de,g(e.title),1),c("p",ie,g(e.desc),1)]),s(q,{to:e.btnRoute,color:"primary",class:"ml-2",style:{"border-radius":"10px"}},{default:l(()=>[v("配置")]),_:1},8,["to"])]))}}),ue={props:{metadata:Object,iterable:Object,metadataKey:String}};function re(m,e,t,_,M,a){return o(),i(N,{style:{"margin-top":"8px"}},{default:l(()=>[(o(!0),f(p,null,b(t.iterable,(d,n)=>(o(),i(x,{key:n,style:{"margin-bottom":"2px"}},{default:l(()=>{var h,C,y,U,w,L,u,K;return[((h=t.metadata[t.metadataKey].items[n])==null?void 0:h.type)==="string"&&n!=="name"?(o(),i(B,{key:0,modelValue:t.iterable[n],"onUpdate:modelValue":r=>t.iterable[n]=r,label:((C=t.metadata[t.metadataKey].items[n])==null?void 0:C.description)+"("+n+")",variant:"outlined",dense:""},null,8,["modelValue","onUpdate:modelValue","label"])):V("",!0),((y=t.metadata[t.metadataKey].items[n])==null?void 0:y.type)==="int"&&n!=="name"?(o(),i(B,{key:1,modelValue:t.iterable[n],"onUpdate:modelValue":r=>t.iterable[n]=r,label:((U=t.metadata[t.metadataKey].items[n])==null?void 0:U.description)+"("+n+")",variant:"outlined",dense:""},null,8,["modelValue","onUpdate:modelValue","label"])):((w=t.metadata[t.metadataKey].items[n])==null?void 0:w.type)==="bool"?(o(),i(z,{key:2,modelValue:t.iterable[n],"onUpdate:modelValue":r=>t.iterable[n]=r,label:((L=t.metadata[t.metadataKey].items[n])==null?void 0:L.description)+"("+n+")",color:"primary",inset:""},null,8,["modelValue","onUpdate:modelValue","label"])):((u=t.metadata[t.metadataKey].items[n])==null?void 0:u.type)==="list"?(o(),i(E,{key:3,variant:"outlined",modelValue:t.iterable[n],"onUpdate:modelValue":r=>t.iterable[n]=r,chips:"",clearable:"",label:((K=t.metadata[t.metadataKey].items[n])==null?void 0:K.description)+"("+n+")",multiple:"","prepend-icon":"mdi-tag-multiple-outline"},{selection:l(({attrs:r,item:T,select:k,selected:H})=>[s(J,Q(r,{"model-value":H,closable:"",onClick:k,"onClick:close":be=>m.remove(T)}),{default:l(()=>[c("strong",null,g(T),1)]),_:2},1040,["model-value","onClick","onClick:close"])]),_:2},1032,["modelValue","onUpdate:modelValue","label"])):V("",!0)]}),_:2},1024))),128))]),_:1})}const P=te(ue,[["render",re]]);const fe=c("h2",null,"消息平台",-1),ge=c("h2",{style:{"margin-bottom":"16px","margin-top":"16px"}},"通用配置",-1),ce=c("h2",null,"LLM",-1),_e=c("h2",{style:{"margin-bottom":"16px"}},"通用配置",-1),pe={name:"ConfigPage",components:{ConfigGroupCard:oe,ConfigGroupItem:me,ConfigDetailCard:ae,AstrBotConfig:P},data(){return{config_data:{config:{platform:[],llm:[],platform_settings:{},llm_settings:{}}},metadata:{},save_message_snack:!1,save_message:"",save_message_success:"",namespace:"",tab:0,tabPlatform:0,tabLLM:0,tabs_key:["消息平台","大语言模型","其他配置"],common_configs_key:[]}},mounted(){this.getConfig()},methods:{getConfig(){O.get("/api/configs").then(m=>{this.config_data=m.data.data.config,this.metadata=m.data.data.metadata;for(let e in this.config_data)e!="platform"&&e!="llm"&&e!="platform_settings"&&e!="llm_settings"&&e!="content_safety"&&this.common_configs_key.push(e)}).catch(m=>{save_message=m,save_message_snack=!0,save_message_success="error"})},updateConfig(){O.post("/api/astrbot-configs",this.config_data).then(m=>{m.data.status==="success"?(this.save_message=m.data.message,this.save_message_snack=!0,this.save_message_success="success"):(this.save_message=m.data.message,this.save_message_snack=!0,this.save_message_success="error")}).catch(m=>{this.save_message=m,this.save_message_snack=!0,this.save_message_success="error"})}}},ye=Object.assign(pe,{setup(m){return(e,t)=>{const _=D("v-tabs-window-item"),M=D("v-tabs-window");return o(),f(p,null,[s(A,null,{default:l(()=>[s(j,{modelValue:e.tab,"onULine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{_ as b}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b40a2daa.js";import{x as h,o,c as u,w as t,a,a8 as y,b as c,K as x,e as f,t as g,G as V,A as w,L as S,a9 as $,J as B,s as _,d as v,F as d,u as p,f as G,V as T,ab as j,T as l}from"./index-5ac7c267.js";import{_ as m}from"./ConfigDetailCard-756c045d.js";const D={class:"d-sm-flex align-center justify-space-between"},C=h({__name:"ConfigGroupCard",props:{title:String},setup(e){const s=e;return(i,n)=>(o(),u(B,{variant:"outlined",elevation:"0",class:"withbg",style:{width:"50%"}},{default:t(()=>[a(y,{style:{padding:"10px 20px"}},{default:t(()=>[c("div",D,[a(x,null,{default:t(()=>[f(g(s.title),1)]),_:1}),a(V)])]),_:1}),a(w),a(S,null,{default:t(()=>[$(i.$slots,"default")]),_:3})]),_:3}))}}),I={style:{display:"flex","flex-direction":"row","justify-content":"space-between","align-items":"center","margin-bottom":"12px"}},N={style:{display:"flex","flex-direction":"row"}},R={style:{"margin-right":"10px",color:"black"}},F={style:{color:"#222"}},k=h({__name:"ConfigGroupItem",props:{title:String,desc:String,btnRoute:String,namespace:String},setup(e){const s=e;return(i,n)=>(o(),_("div",I,[c("div",N,[c("h3",R,g(s.title),1),c("p",F,g(s.desc),1)]),a(v,{to:s.btnRoute,color:"primary",class:"ml-2",style:{"border-radius":"10px"}},{default:t(()=>[f("配置")]),_:1},8,["to"])]))}}),L={style:{display:"flex","flex-direction":"row",padding:"16px",gap:"16px",width:"100%"}},P={name:"ConfigPage",components:{UiParentCard:b,ConfigGroupCard:C,ConfigGroupItem:k,ConfigDetailCard:m},data(){return{config_data:[],config_base:[],save_message_snack:!1,save_message:"",save_message_success:"",config_outline:[],namespace:""}},mounted(){this.getConfig()},methods:{switchConfig(e){l.get("/api/configs?namespace="+e).then(s=>{this.namespace=e,this.config_data=s.data.data,console.log(this.config_data)}).catch(s=>{save_message=s,save_message_snack=!0,save_message_success="error"})},getConfig(){l.get("/api/config_outline").then(e=>{this.config_outline=e.data.data,console.log(this.config_outline)}).catch(e=>{save_message=e,save_message_snack=!0,save_message_success="error"}),l.get("/api/configs").then(e=>{this.config_base=e.data.data,console.log(this.config_data)}).catch(e=>{save_message=e,save_message_snack=!0,save_message_success="error"})},updateConfig(){l.post("/api/configs",{base_config:this.config_base,config:this.config_data,namespace:this.namespace}).then(e=>{e.data.status==="success"?(this.save_message=e.data.message,this.save_message_snack=!0,this.save_message_success="success"):(this.save_message=e.data.message,this.save_message_snack=!0,this.save_message_success="error")}).catch(e=>{this.save_message=e,this.save_message_snack=!0,this.save_message_success="error"})}}},J=Object.assign(P,{setup(e){return(s,i)=>(o(),_(d,null,[a(T,null,{default:t(()=>[c("div",L,[(o(!0),_(d,null,p(s.config_outline,n=>(o(),u(C,{key:n.name,title:n.name},{default:t(()=>[(o(!0),_(d,null,p(n.body,r=>(o(),u(k,{title:r.title,desc:r.desc,namespace:r.namespace,onClick:U=>s.switchConfig(r.namespace)},null,8,["title","desc","namespace","onClick"]))),256))]),_:2},1032,["title"]))),128))]),a(G,{cols:"12",md:"12"},{default:t(()=>[a(m,{config:s.config_data},null,8,["config"]),a(m,{config:s.config_base},null,8,["config"])]),_:1})]),_:1}),a(v,{icon:"mdi-content-save",size:"x-large",style:{position:"fixed",right:"52px",bottom:"52px"},color:"darkprimary",onClick:s.updateConfig},null,8,["onClick"]),a(j,{timeout:2e3,elevation:"24",color:s.save_message_success,modelValue:s.save_message_snack,"onUpdate:modelValue":i[0]||(i[0]=n=>s.save_message_snack=n)},{default:t(()=>[f(g(s.save_message),1)]),_:1},8,["color","modelValue"])],64))}});export{J as default};
|
||||
@@ -0,0 +1 @@
|
||||
.v-tab{text-transform:none!important}
|
||||
@@ -1,4 +1,4 @@
|
||||
import{o as Ce,s as be,b as he,t as ge,a as ye,w as we,e as Ee,d as ke,F as Le}from"./index-5ac7c267.js";var pe={exports:{}};(function(Q,ne){(function(ce,oe){Q.exports=oe()})(self,()=>(()=>{var ce={4567:function(I,r,a){var l=this&&this.__decorate||function(i,o,c,v){var m,h=arguments.length,g=h<3?o:v===null?v=Object.getOwnPropertyDescriptor(o,c):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,o,c,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(g=(h<3?m(g):h>3?m(o,c,g):m(o,c))||g);return h>3&&g&&Object.defineProperty(o,c,g),g},u=this&&this.__param||function(i,o){return function(c,v){o(c,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=a(9042),d=a(6114),f=a(9924),p=a(844),_=a(5596),e=a(4725),s=a(3656);let t=r.AccessibilityManager=class extends p.Disposable{constructor(i,o){super(),this._terminal=i,this._renderService=o,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let c=0;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);if(this._topBoundaryFocusListener=c=>this._handleBoundaryFocus(c,0),this._bottomBoundaryFocusListener=c=>this._handleBoundaryFocus(c,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(c=>this._handleResize(c.rows))),this.register(this._terminal.onRender(c=>this._refreshRows(c.start,c.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(c=>this._handleChar(c))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
|
||||
import{o as Ce,s as be,b as he,t as ge,a as ye,w as we,e as Ee,d as ke,F as Le}from"./index-b457b676.js";var pe={exports:{}};(function(Q,ne){(function(ce,oe){Q.exports=oe()})(self,()=>(()=>{var ce={4567:function(I,r,a){var l=this&&this.__decorate||function(i,o,c,v){var m,h=arguments.length,g=h<3?o:v===null?v=Object.getOwnPropertyDescriptor(o,c):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,o,c,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(g=(h<3?m(g):h>3?m(o,c,g):m(o,c))||g);return h>3&&g&&Object.defineProperty(o,c,g),g},u=this&&this.__param||function(i,o){return function(c,v){o(c,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=a(9042),d=a(6114),f=a(9924),p=a(844),_=a(5596),e=a(4725),s=a(3656);let t=r.AccessibilityManager=class extends p.Disposable{constructor(i,o){super(),this._terminal=i,this._renderService=o,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let c=0;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);if(this._topBoundaryFocusListener=c=>this._handleBoundaryFocus(c,0),this._bottomBoundaryFocusListener=c=>this._handleBoundaryFocus(c,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(c=>this._handleResize(c.rows))),this.register(this._terminal.onRender(c=>this._refreshRows(c.start,c.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(c=>this._handleChar(c))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
|
||||
`))),this.register(this._terminal.onA11yTab(c=>this._handleTab(c))),this.register(this._terminal.onKey(c=>this._handleKey(c.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new _.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,s.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,p.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(i){for(let o=0;o<i;o++)this._handleChar(" ")}_handleChar(i){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===`
|
||||
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&this._liveRegion.remove()}_handleKey(i){this._clearLiveRegion(),/\p{Control}/u.test(i)||this._charsToConsume.push(i)}_refreshRows(i,o){this._liveRegionDebouncer.refresh(i,o,this._terminal.rows)}_renderRows(i,o){const c=this._terminal.buffer,v=c.lines.length.toString();for(let m=i;m<=o;m++){const h=c.translateBufferLineToString(c.ydisp+m,!0),g=(c.ydisp+m+1).toString(),b=this._rowElements[m];b&&(h.length===0?b.innerText=" ":b.textContent=h,b.setAttribute("aria-posinset",g),b.setAttribute("aria-setsize",v))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(i,o){const c=i.target,v=this._rowElements[o===0?1:this._rowElements.length-2];if(c.getAttribute("aria-posinset")===(o===0?"1":`${this._terminal.buffer.lines.length}`)||i.relatedTarget!==v)return;let m,h;if(o===0?(m=c,h=this._rowElements.pop(),this._rowContainer.removeChild(h)):(m=this._rowElements.shift(),h=c,this._rowContainer.removeChild(m)),m.removeEventListener("focus",this._topBoundaryFocusListener),h.removeEventListener("focus",this._bottomBoundaryFocusListener),o===0){const g=this._createAccessibilityTreeNode();this._rowElements.unshift(g),this._rowContainer.insertAdjacentElement("afterbegin",g)}else{const g=this._createAccessibilityTreeNode();this._rowElements.push(g),this._rowContainer.appendChild(g)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(o===0?-1:1),this._rowElements[o===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}_handleResize(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let o=this._rowContainer.children.length;o<this._terminal.rows;o++)this._rowElements[o]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[o]);for(;this._rowElements.length>i;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const i=document.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let i=0;i<this._terminal.rows;i++)this._refreshRowDimensions(this._rowElements[i])}}_refreshRowDimensions(i){i.style.height=`${this._renderService.dimensions.css.cell.height}px`}};r.AccessibilityManager=t=l([u(1,e.IRenderService)],t)},3614:(I,r)=>{function a(d){return d.replace(/\r?\n/g,"\r")}function l(d,f){return f?"\x1B[200~"+d+"\x1B[201~":d}function u(d,f,p,_){d=l(d=a(d),p.decPrivateModes.bracketedPasteMode&&_.rawOptions.ignoreBracketedPasteMode!==!0),p.triggerDataEvent(d,!0),f.value=""}function n(d,f,p){const _=p.getBoundingClientRect(),e=d.clientX-_.left-10,s=d.clientY-_.top-10;f.style.width="20px",f.style.height="20px",f.style.left=`${e}px`,f.style.top=`${s}px`,f.style.zIndex="1000",f.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=a,r.bracketTextForPaste=l,r.copyHandler=function(d,f){d.clipboardData&&d.clipboardData.setData("text/plain",f.selectionText),d.preventDefault()},r.handlePasteEvent=function(d,f,p,_){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),f,p,_)},r.paste=u,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(d,f,p,_,e){n(d,f,p),e&&_.rightClickSelect(d),f.value=_.selectionText,f.select()}},7239:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;const l=a(1505);r.ColorContrastCache=class{constructor(){this._color=new l.TwoKeyMap,this._css=new l.TwoKeyMap}setCss(u,n,d){this._css.set(u,n,d)}getCss(u,n){return this._css.get(u,n)}setColor(u,n,d){this._color.set(u,n,d)}getColor(u,n){return this._color.get(u,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(a,l,u,n){a.addEventListe
Line truncated
|
||||
|
||||
@@ -1 +1 @@
|
||||
import{y as R,p as u,o as _,c as f,w as e,a as t,L as w,b as a,d as p,j as $,$ as I,q as z,a0 as F,z as S,s as M,F as D,u as j,n as x,r as N,l as V,e as y,t as h,J as b,a1 as U,D as W,a2 as C,a3 as G,a4 as O,a5 as H,a6 as L,V as k,f as m,G as X,a7 as q,T as A}from"./index-5ac7c267.js";import{_ as B}from"./_plugin-vue_export-helper-c27b6911.js";const E={class:"d-flex align-start mb-6"},J={class:"ml-auto z-1"},Y={class:"text-h1 font-weight-medium"},K=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"消息总数",-1),Q={name:"TotalMessage",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.message_total=s.message_total},deep:!0}},data:()=>({message_total:0}),mounted(){}},Z=Object.assign(Q,{setup(s){const o=R([{title:"移除",icon:U}]);return(d,c)=>{const l=u("DotsIcon");return _(),f(b,{elevation:"0",class:"bg-secondary overflow-hidden bubble-shape bubble-secondary-shape"},{default:e(()=>[t(w,null,{default:e(()=>[a("div",E,[t(p,{icon:"",rounded:"sm",color:"darksecondary",variant:"flat"},{default:e(()=>[t($,{icon:"mdi-message"})]),_:1}),a("div",J,[t(I,{"close-on-content-click":!1},{activator:e(({props:r})=>[t(p,z({icon:"",rounded:"sm",color:"secondary",variant:"flat",size:"small"},r),{default:e(()=>[t(l,{"stroke-width":"1.5",width:"20"})]),_:2},1040)]),default:e(()=>[t(F,{rounded:"md",width:"150",class:"elevation-10"},{default:e(()=>[t(S,{density:"compact"},{default:e(()=>[(_(!0),M(D,null,j(o.value,(r,n)=>(_(),f(x,{key:n,value:n},{prepend:e(()=>[(_(),f(N(r.icon),{"stroke-width":"1.5",size:"20"}))]),default:e(()=>[t(V,{class:"ml-2"},{default:e(()=>[y(h(r.title),1)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1})])]),a("h2",Y,h(d.message_total),1),K]),_:1})]),_:1})}}}),tt={class:"d-flex align-start mb-3"},et={class:"ml-auto z-1"},at={class:"text-h1 font-weight-medium"},st=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"会话总数",-1),ot={class:"text-h1 font-weight-medium"},lt=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"会话总数",-1),nt={name:"TotalSession",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.session_total=s.session_total},deep:!0}},data:()=>({session_total:0}),mounted(){}},it=Object.assign(nt,{setup(s){const o=W("1"),d=C(()=>({chart:{type:"bar",height:90,fontFamily:"inherit",foreColor:"#a1aab2",sparkline:{enabled:!0}},dataLabels:{enabled:!1},colors:["#fff"],fill:{type:"solid",opacity:1},stroke:{curve:"smooth",width:3},yaxis:{min:0,max:100},tooltip:{theme:"dark",fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:()=>"会话总数"}},marker:{show:!1}}})),c={series:[{name:"series1",data:[45,66,41,89,25,44,9,54]}]},l=C(()=>({chart:{type:"bar",height:90,fontFamily:"inherit",foreColor:"#a1aab2",sparkline:{enabled:!0}},dataLabels:{enabled:!1},colors:["#fff"],fill:{type:"solid",opacity:1},stroke:{curve:"smooth",width:3},yaxis:{min:0,max:100},tooltip:{theme:"dark",fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:()=>"会话总数"}},marker:{show:!1}}})),r={series:[{name:"series1",data:[35,44,9,54,45,66,41,69]}]};return(n,i)=>{const g=u("apexchart");return _(),f(b,{elevation:"0",class:"bg-primary overflow-hidden bubble-shape bubble-primary-shape"},{default:e(()=>[t(w,null,{default:e(()=>[a("div",tt,[t(p,{icon:"",rounded:"sm",color:"darkprimary",variant:"flat"},{default:e(()=>[t($,{icon:"mdi-account-multiple-outline"})]),_:1}),a("div",et,[t(G,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=v=>o.value=v),class:"theme-tab",density:"compact",end:""},{default:e(()=>[t(O,{value:"1","hide-slider":"",color:"transparent"},{default:e(()=>[y("按日")]),_:1}),t(O,{value:"2","hide-slider":"",color:"transparent"},{default:e(()=>[y("按月")]),_:1})]),_:1},8,["modelValue"])])]),t(H,{modelValue:o.value,"onUpdate:modelValue":i[1]||(i[1]=v=>o.value=v),class:"z-1"},{default:e(()=>[t(L,{value:"1"},{default:e(()=>[t(k,null,{default:e(()=>[t(m,{cols:"6"},{default:e(()=>[a("h2",at,h(n.session_total),1),st]),_:1}),t(m,{cols:"6"},{default:e(()=>[t(g,{type:"line",height:"90",options:d.value,series:c.series},null,8,["options","series"])]),_:1})]),_:1})]),_:1}),t(L,{value:"2"},{default:e(()=>[t(k,null,{default:e(()=>[t(m,{cols:"6"},{default:e(()=>[a("h2",ot,h(n.session_total),1),lt]),_:1}),t(m,{cols:"6"},{default:e(()=>[t(g,{type:"line",height:"90",options:l.value,series:r.series},null,8,["options","series"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})}}}),rt={name:"OnlineTime",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.memory=s.sys_perf.memory,this.runtime_str=s.sys_start_time;let d=new Date().getTime(),c=new Date(s.sys_start_time*1e3).getTime(),l=d-c,r=Math.floor(l/(24*3600*1e3)),n=l%(24*3600*1e3),i=Math.floor(n/(3600*1e3)),g=n%(3600*1e3),v=Math.floor(g/(60*1e3)),T=g%(60*1e3),P=Math.round(T/1e3);this.runtime_str=r+"天"+i+"小时"+v+"分"+P+"秒"},deep:!0}},data:()=>({_stat:{},memory:"Loading",runtime_str:"Loading"}),mounted(){}},dt={class:"d-flex align-ceLine truncated
|
||||
import{y as R,p as u,o as _,c as f,w as e,a as t,L as w,b as a,d as p,j as $,$ as I,q as z,a0 as F,z as S,s as M,F as D,u as j,n as x,r as N,l as V,e as y,t as h,J as b,a1 as U,D as W,a2 as C,a3 as G,a4 as O,a5 as H,a6 as L,V as k,f as m,G as X,a7 as q,T as A}from"./index-b457b676.js";import{_ as B}from"./_plugin-vue_export-helper-c27b6911.js";const E={class:"d-flex align-start mb-6"},J={class:"ml-auto z-1"},Y={class:"text-h1 font-weight-medium"},K=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"消息总数",-1),Q={name:"TotalMessage",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.message_total=s.message_total},deep:!0}},data:()=>({message_total:0}),mounted(){}},Z=Object.assign(Q,{setup(s){const o=R([{title:"移除",icon:U}]);return(d,c)=>{const l=u("DotsIcon");return _(),f(b,{elevation:"0",class:"bg-secondary overflow-hidden bubble-shape bubble-secondary-shape"},{default:e(()=>[t(w,null,{default:e(()=>[a("div",E,[t(p,{icon:"",rounded:"sm",color:"darksecondary",variant:"flat"},{default:e(()=>[t($,{icon:"mdi-message"})]),_:1}),a("div",J,[t(I,{"close-on-content-click":!1},{activator:e(({props:r})=>[t(p,z({icon:"",rounded:"sm",color:"secondary",variant:"flat",size:"small"},r),{default:e(()=>[t(l,{"stroke-width":"1.5",width:"20"})]),_:2},1040)]),default:e(()=>[t(F,{rounded:"md",width:"150",class:"elevation-10"},{default:e(()=>[t(S,{density:"compact"},{default:e(()=>[(_(!0),M(D,null,j(o.value,(r,n)=>(_(),f(x,{key:n,value:n},{prepend:e(()=>[(_(),f(N(r.icon),{"stroke-width":"1.5",size:"20"}))]),default:e(()=>[t(V,{class:"ml-2"},{default:e(()=>[y(h(r.title),1)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1})])]),a("h2",Y,h(d.message_total),1),K]),_:1})]),_:1})}}}),tt={class:"d-flex align-start mb-3"},et={class:"ml-auto z-1"},at={class:"text-h1 font-weight-medium"},st=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"会话总数",-1),ot={class:"text-h1 font-weight-medium"},lt=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"会话总数",-1),nt={name:"TotalSession",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.session_total=s.session_total},deep:!0}},data:()=>({session_total:0}),mounted(){}},it=Object.assign(nt,{setup(s){const o=W("1"),d=C(()=>({chart:{type:"bar",height:90,fontFamily:"inherit",foreColor:"#a1aab2",sparkline:{enabled:!0}},dataLabels:{enabled:!1},colors:["#fff"],fill:{type:"solid",opacity:1},stroke:{curve:"smooth",width:3},yaxis:{min:0,max:100},tooltip:{theme:"dark",fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:()=>"会话总数"}},marker:{show:!1}}})),c={series:[{name:"series1",data:[45,66,41,89,25,44,9,54]}]},l=C(()=>({chart:{type:"bar",height:90,fontFamily:"inherit",foreColor:"#a1aab2",sparkline:{enabled:!0}},dataLabels:{enabled:!1},colors:["#fff"],fill:{type:"solid",opacity:1},stroke:{curve:"smooth",width:3},yaxis:{min:0,max:100},tooltip:{theme:"dark",fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:()=>"会话总数"}},marker:{show:!1}}})),r={series:[{name:"series1",data:[35,44,9,54,45,66,41,69]}]};return(n,i)=>{const g=u("apexchart");return _(),f(b,{elevation:"0",class:"bg-primary overflow-hidden bubble-shape bubble-primary-shape"},{default:e(()=>[t(w,null,{default:e(()=>[a("div",tt,[t(p,{icon:"",rounded:"sm",color:"darkprimary",variant:"flat"},{default:e(()=>[t($,{icon:"mdi-account-multiple-outline"})]),_:1}),a("div",et,[t(G,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=v=>o.value=v),class:"theme-tab",density:"compact",end:""},{default:e(()=>[t(O,{value:"1","hide-slider":"",color:"transparent"},{default:e(()=>[y("按日")]),_:1}),t(O,{value:"2","hide-slider":"",color:"transparent"},{default:e(()=>[y("按月")]),_:1})]),_:1},8,["modelValue"])])]),t(H,{modelValue:o.value,"onUpdate:modelValue":i[1]||(i[1]=v=>o.value=v),class:"z-1"},{default:e(()=>[t(L,{value:"1"},{default:e(()=>[t(k,null,{default:e(()=>[t(m,{cols:"6"},{default:e(()=>[a("h2",at,h(n.session_total),1),st]),_:1}),t(m,{cols:"6"},{default:e(()=>[t(g,{type:"line",height:"90",options:d.value,series:c.series},null,8,["options","series"])]),_:1})]),_:1})]),_:1}),t(L,{value:"2"},{default:e(()=>[t(k,null,{default:e(()=>[t(m,{cols:"6"},{default:e(()=>[a("h2",ot,h(n.session_total),1),lt]),_:1}),t(m,{cols:"6"},{default:e(()=>[t(g,{type:"line",height:"90",options:l.value,series:r.series},null,8,["options","series"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})}}}),rt={name:"OnlineTime",components:{},props:["stat"],watch:{stat:{handler:function(s,o){this.memory=s.sys_perf.memory,this.runtime_str=s.sys_start_time;let d=new Date().getTime(),c=new Date(s.sys_start_time*1e3).getTime(),l=d-c,r=Math.floor(l/(24*3600*1e3)),n=l%(24*3600*1e3),i=Math.floor(n/(3600*1e3)),g=n%(3600*1e3),v=Math.floor(g/(60*1e3)),T=g%(60*1e3),P=Math.round(T/1e3);this.runtime_str=r+"天"+i+"小时"+v+"分"+P+"秒"},deep:!0}},data:()=>({_stat:{},memory:"Loading",runtime_str:"Loading"}),mounted(){}},dt={class:"d-flex align-ceLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{_ as a}from"./_plugin-vue_export-helper-c27b6911.js";import{o,c,w as s,V as i,a as t,b as e,d as l,e as r,f as d}from"./index-5ac7c267.js";const n="/assets/img-error-bg-41f65efa.svg",_="/assets/img-error-blue-f50c8e77.svg",m="/assets/img-error-text-630dc36d.svg",g="/assets/img-error-purple-b97a483b.svg";const p={},u={class:"text-center"},f=e("div",{class:"CardMediaWrapper"},[e("img",{src:n,alt:"grid",class:"w-100"}),e("img",{src:_,alt:"grid",class:"CardMediaParts"}),e("img",{src:m,alt:"build",class:"CardMediaBuild"}),e("img",{src:g,alt:"build",class:"CardMediaBuild"})],-1),h=e("h1",{class:"text-h1"},"Something is wrong",-1),v=e("p",null,[e("small",null,[r("The page you are looking was moved, removed, "),e("br"),r("renamed, or might never exist! ")])],-1);function x(b,V){return o(),c(i,{"no-gutters":"",class:"h-100vh"},{default:s(()=>[t(d,{class:"d-flex align-center justify-center"},{default:s(()=>[e("div",u,[f,h,v,t(l,{variant:"flat",color:"primary",class:"mt-4",to:"/","prepend-icon":"mdi-home"},{default:s(()=>[r(" Home")]),_:1})])]),_:1})]),_:1})}const C=a(p,[["render",x]]);export{C as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{_ as t}from"./_plugin-vue_export-helper-c27b6911.js";import{o,c,w as s,V as i,a as r,b as e,d as l,e as a,f as d}from"./index-b457b676.js";const n="/assets/img-error-bg-ab6474a0.svg",_="/assets/img-error-blue-2675a7a9.svg",m="/assets/img-error-text-a6aebfa0.svg",g="/assets/img-error-purple-edee3fbc.svg";const p={},u={class:"text-center"},f=e("div",{class:"CardMediaWrapper"},[e("img",{src:n,alt:"grid",class:"w-100"}),e("img",{src:_,alt:"grid",class:"CardMediaParts"}),e("img",{src:m,alt:"build",class:"CardMediaBuild"}),e("img",{src:g,alt:"build",class:"CardMediaBuild"})],-1),h=e("h1",{class:"text-h1"},"Something is wrong",-1),v=e("p",null,[e("small",null,[a("The page you are looking was moved, removed, "),e("br"),a("renamed, or might never exist! ")])],-1);function x(b,V){return o(),c(i,{"no-gutters":"",class:"h-100vh"},{default:s(()=>[r(d,{class:"d-flex align-center justify-center"},{default:s(()=>[e("div",u,[f,h,v,r(l,{variant:"flat",color:"primary",class:"mt-4",to:"/","prepend-icon":"mdi-home"},{default:s(()=>[a(" Home")]),_:1})])]),_:1})]),_:1})}const C=t(p,[["render",x]]);export{C as default};
|
||||
@@ -1 +1 @@
|
||||
import{x as $,o as g,c as _,w as e,a,a8 as S,b as i,K as m,e as o,t as p,G as h,d,A as T,L as x,a9 as B,J as k,s as V,f,F as C,u as F,V as c,N as v,P as b,H as w,q as E,O as G,aa as H,ab as U,T as u,j as q}from"./index-5ac7c267.js";import{_ as y}from"./ConfigDetailCard-756c045d.js";import"./UiParentCard.vue_vue_type_script_setup_true_lang-b40a2daa.js";const N={class:"d-sm-flex align-center justify-space-between"},D=$({__name:"ExtensionCard",props:{title:String,link:String},setup(s){const t=s,n=l=>{window.open(l,"_blank")};return(l,r)=>(g(),_(k,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(S,{style:{padding:"10px 20px"}},{default:e(()=>[i("div",N,[a(m,null,{default:e(()=>[o(p(t.title),1)]),_:1}),a(h),a(d,{icon:"mdi-link",variant:"plain",onClick:r[0]||(r[0]=Q=>n(t.link))})])]),_:1}),a(T),a(x,null,{default:e(()=>[B(l.$slots,"default")]),_:3})]),_:3}))}}),j=i("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[i("h3",null,"🧩 已安装的插件")],-1),z={style:{"min-height":"180px","max-height":"180px",overflow:"hidden"}},I={class:"d-flex align-center gap-2"},P=i("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[i("h3",null,"🧩 插件市场 [待开发]")],-1),A=i("span",{class:"text-h5"},"插件配置",-1),L=i("span",{class:"text-h5"},"安装插件",-1),O=i("h3",null,"从 GitHub 上在线下载",-1),J=i("small",null,"请输入合法的 GitHub 仓库链接,当前仅支持 GitHub。如:https://github.com/Soulter/astrbot_plugin_aiocqhttp",-1),K=i("h3",null,"从本机上传 .zip 压缩包",-1),R=i("small",null,"请保证插件文件存在压缩包根目录中的第一个文件夹中(即类似于从 GitHub 仓库页上下载的 Zip 压缩包的格式)。",-1),Z=i("br",null,null,-1),M={name:"ExtensionPage",components:{ExtensionCard:D,ConfigDetailCard:y},data(){return{extension_data:{data:[]},extension_url:"",status:"",dialog:!1,snack_message:"",snack_show:!1,snack_success:"success",install_loading:!1,uninstall_loading:!1,configDialog:!1,extension_config:{},upload_file:null}},mounted(){this.getExtensions()},methods:{toast(s,t){this.snack_message=s,this.snack_show=!0,this.snack_success=t},getExtensions(){u.get("/api/extensions").then(s=>{this.extension_data.data=s.data.data,console.log(this.extension_data)})},newExtension(){if(this.extension_url===""&&this.upload_file===null){this.toast("请填写插件链接或上传插件文件","error");return}if(this.extension_url!==""&&this.upload_file!==null){this.toast("请不要同时填写插件链接和上传插件文件","error");return}if(this.install_loading=!0,this.upload_file!==null){const s=new FormData;s.append("file",this.upload_file[0]),u.post("/api/extensions/upload-install",s,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{if(this.install_loading=!1,t.data.status==="error"){this.toast(t.data.message,"error");return}this.extension_data.data=t.data.data,console.log(this.extension_data),this.upload_file="",this.toast(t.data.message,"success"),this.dialog=!1,this.getExtensions()}).catch(t=>{this.install_loading=!1,this.toast(t,"error")});return}else u.post("/api/extensions/install",{url:this.extension_url}).then(s=>{if(this.install_loading=!1,s.data.status==="error"){this.toast(s.data.message,"error");return}this.extension_data.data=s.data.data,console.log(this.extension_data),this.extension_url="",this.toast(s.data.message,"success"),this.dialog=!1,this.getExtensions()}).catch(s=>{this.install_loading=!1,this.toast(s,"error")})},uninstallExtension(s){this.uninstall_loading=!0,u.post("/api/extensions/uninstall",{name:s}).then(t=>{if(this.uninstall_loading=!1,t.data.status==="error"){this.toast(t.data.message,"error");return}this.extension_data.data=t.data.data,console.log(this.extension_data),this.toast(t.data.message,"success"),this.dialog=!1,this.getExtensions()}).catch(t=>{this.uninstall_loading=!1,this.toast(t,"error")})},updateExtension(s){this.update_loading=!0,u.post("/api/extensions/update",{name:s}).then(t=>{if(this.update_loading=!1,t.data.status==="error"){this.toast(t.data.message,"error");return}this.extension_data.data=t.data.data,console.log(this.extension_data),this.toast(t.data.message,"success"),this.dialog=!1,this.getExtensions()}).catch(t=>{this.update_loading=!1,this.toast(t,"error")})},openExtensionConfig(s){this.curr_namespace=s,this.configDialog=!0,u.get("/api/configs?namespace="+s).then(t=>{this.extension_config=t.data.data,console.log(this.extension_config)}).catch(t=>{this.toast(t,"error")})},updateConfig(){u.post("/api/configs",{config:this.extension_config,namespace:this.curr_namespace}).then(s=>{s.data.status==="success"?this.toast(s.data.message,"success"):this.toast(s.data.message,"error")}).catch(s=>{this.toast(s,"error")})}}},tt=Object.assign(M,{setup(s){return(t,n)=>(g(),V(C,null,[a(c,null,{default:e(()=>[a(f,{cols:"12",md:"12"},{default:e(()=>[j]),_:1}),(g(!0),V(C,null,F(t.extension_data.data,l=>(g(),_Line truncated
|
||||
import{x as $,o as g,c as _,w as e,a,a8 as S,b as i,K as m,e as o,t as p,G as h,d,A as T,L as x,a9 as B,J as k,s as V,f,F as C,u as F,V as c,N as v,P as b,H as w,q as E,O as G,aa as H,ab as U,T as u,j as q}from"./index-b457b676.js";import{_ as y}from"./ConfigDetailCard-a640ede2.js";import"./UiParentCard.vue_vue_type_script_setup_true_lang-b380931c.js";const N={class:"d-sm-flex align-center justify-space-between"},D=$({__name:"ExtensionCard",props:{title:String,link:String},setup(s){const t=s,n=l=>{window.open(l,"_blank")};return(l,r)=>(g(),_(k,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(S,{style:{padding:"10px 20px"}},{default:e(()=>[i("div",N,[a(m,null,{default:e(()=>[o(p(t.title),1)]),_:1}),a(h),a(d,{icon:"mdi-link",variant:"plain",onClick:r[0]||(r[0]=Q=>n(t.link))})])]),_:1}),a(T),a(x,null,{default:e(()=>[B(l.$slots,"default")]),_:3})]),_:3}))}}),j=i("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[i("h3",null,"🧩 已安装的插件")],-1),z={style:{"min-height":"180px","max-height":"180px",overflow:"hidden"}},I={class:"d-flex align-center gap-2"},P=i("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[i("h3",null,"🧩 插件市场 [待开发]")],-1),A=i("span",{class:"text-h5"},"插件配置",-1),L=i("span",{class:"text-h5"},"安装插件",-1),O=i("h3",null,"从 GitHub 上在线下载",-1),J=i("small",null,"请输入合法的 GitHub 仓库链接,当前仅支持 GitHub。如:https://github.com/Soulter/astrbot_plugin_aiocqhttp",-1),K=i("h3",null,"从本机上传 .zip 压缩包",-1),R=i("small",null,"请保证插件文件存在压缩包根目录中的第一个文件夹中(即类似于从 GitHub 仓库页上下载的 Zip 压缩包的格式)。",-1),Z=i("br",null,null,-1),M={name:"ExtensionPage",components:{ExtensionCard:D,ConfigDetailCard:y},data(){return{extension_data:{data:[]},extension_url:"",status:"",dialog:!1,snack_message:"",snack_show:!1,snack_success:"success",install_loading:!1,uninstall_loading:!1,configDialog:!1,extension_config:{},upload_file:null}},mounted(){this.getExtensions()},methods:{toast(s,t){this.snack_message=s,this.snack_show=!0,this.snack_success=t},getExtensions(){u.get("/api/extensions").then(s=>{this.extension_data.data=s.data.data,console.log(this.extension_data)})},newExtension(){if(this.extension_url===""&&this.upload_file===null){this.toast("请填写插件链接或上传插件文件","error");return}if(this.extension_url!==""&&this.upload_file!==null){this.toast("请不要同时填写插件链接和上传插件文件","error");return}if(this.install_loading=!0,this.upload_file!==null){const s=new FormData;s.append("file",this.upload_file[0]),u.post("/api/extensions/upload-install",s,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{if(this.install_loading=!1,t.data.status==="error"){this.toast(t.data.message,"error");return}this.extension_data.data=t.data.data,console.log(this.extension_data),this.upload_file="",this.toast(t.data.message,"success"),this.dialog=!1,this.getExtensions()}).catch(t=>{this.install_loading=!1,this.toast(t,"error")});return}else u.post("/api/extensions/install",{url:this.extension_url}).then(s=>{if(this.install_loading=!1,s.data.status==="error"){this.toast(s.data.message,"error");return}this.extension_data.data=s.data.data,console.log(this.extension_data),this.extension_url="",this.toast(s.data.message,"success"),this.dialog=!1,this.getExtensions()}).catch(s=>{this.install_loading=!1,this.toast(s,"error")})},uninstallExtension(s){this.uninstall_loading=!0,u.post("/api/extensions/uninstall",{name:s}).then(t=>{if(this.uninstall_loading=!1,t.data.status==="error"){this.toast(t.data.message,"error");return}this.extension_data.data=t.data.data,console.log(this.extension_data),this.toast(t.data.message,"success"),this.dialog=!1,this.getExtensions()}).catch(t=>{this.uninstall_loading=!1,this.toast(t,"error")})},updateExtension(s){this.update_loading=!0,u.post("/api/extensions/update",{name:s}).then(t=>{if(this.update_loading=!1,t.data.status==="error"){this.toast(t.data.message,"error");return}this.extension_data.data=t.data.data,console.log(this.extension_data),this.toast(t.data.message,"success"),this.dialog=!1,this.getExtensions()}).catch(t=>{this.update_loading=!1,this.toast(t,"error")})},openExtensionConfig(s){this.curr_namespace=s,this.configDialog=!0,u.get("/api/configs?namespace="+s).then(t=>{this.extension_config=t.data.data,console.log(this.extension_config)}).catch(t=>{this.toast(t,"error")})},updateConfig(){u.post("/api/extension-configs",{config:this.extension_config,namespace:this.curr_namespace}).then(s=>{s.data.status==="success"?this.toast(s.data.message,"success"):this.toast(s.data.message,"error")}).catch(s=>{this.toast(s,"error")})}}},tt=Object.assign(M,{setup(s){return(t,n)=>(g(),V(C,null,[a(c,null,{default:e(()=>[a(f,{cols:"12",md:"12"},{default:e(()=>[j]),_:1}),(g(!0),V(C,null,F(t.extension_data.dataLine truncated
|
||||
@@ -1 +1 @@
|
||||
import{o,c as r,w as t,e as v,t as k,g as ae,h as le,a as e,i as G,j as C,k as B,l as W,m as H,n as J,r as R,p as K,q as I,s as w,F as x,u as Q,v as se,x as D,y as ie,b as _,z as oe,A as X,B as n,C as ne,D as b,d as h,E,M as U,G as S,H as M,I as y,J as P,K as j,L as O,N as T,V as re,f as ue,O as z,P as q,Q as de,R as ce,S as me,T as N,U as pe,W as fe,X as ve,Y as _e,Z as he,_ as Ve}from"./index-5ac7c267.js";import{_ as be,u as L}from"./LogoDark.vue_vue_type_script_setup_true_lang-d555e5be.js";import{m as F}from"./md5-086248bf.js";const ke=[{title:"面板",icon:"mdi-view-dashboard",to:"/dashboard/default"},{title:"配置",icon:"mdi-cog",to:"/config"},{title:"插件",icon:"mdi-puzzle",to:"/extension"},{title:"控制台",icon:"mdi-console",to:"/console"}],ye={__name:"NavGroup",props:{item:Object},setup(a){const i=a;return(u,f)=>(o(),r(ae,{color:"darkText",class:"smallCap"},{default:t(()=>[v(k(i.item.header),1)]),_:1}))}},Y={__name:"NavItem",props:{item:Object,level:Number},setup(a){return(i,u)=>(o(),r(J,{to:a.item.type==="external"?"":a.item.to,href:a.item.type==="external"?a.item.to:"",rounded:"",class:"mb-1",color:"secondary",disabled:a.item.disabled,target:a.item.type==="external"?"_blank":""},le({prepend:t(()=>[a.item.icon?(o(),r(C,{key:0,color:a.item.iconColor,size:a.item.iconSize,class:"hide-menu",icon:a.item.icon},null,8,["color","size","icon"])):B("",!0)]),default:t(()=>[e(W,null,{default:t(()=>[v(k(a.item.title),1)]),_:1}),a.item.subCaption?(o(),r(H,{key:0,class:"text-caption mt-n1 hide-menu"},{default:t(()=>[v(k(a.item.subCaption),1)]),_:1})):B("",!0)]),_:2},[a.item.chip?{name:"append",fn:t(()=>[e(G,{color:a.item.chipColor,class:"sidebarchip hide-menu",size:a.item.chipIcon?"small":"default",variant:a.item.chipVariant,"prepend-icon":a.item.chipIcon},{default:t(()=>[v(k(a.item.chip),1)]),_:1},8,["color","size","variant","prepend-icon"])]),key:"0"}:void 0]),1032,["to","href","disabled","target"]))}},ge={__name:"IconSet",props:{item:Object,level:Number},setup(a){const i=a;return(u,f)=>i.level>0?(o(),r(R(i.item),{key:0,size:"5",fill:"currentColor","stroke-width":"1.5",class:"iconClass"})):(o(),r(R(i.item),{key:1,size:"20","stroke-width":"1.5",class:"iconClass"}))}},Ce={__name:"NavCollapse",props:{item:Object,level:Number},setup(a){const i=a;return(u,f)=>{const p=K("NavCollapse",!0);return o(),r(se,{"no-action":""},{activator:t(({props:d})=>[e(J,I(d,{value:a.item.title,rounded:"",class:"mb-1",color:"secondary"}),{prepend:t(()=>[e(ge,{item:a.item.icon,level:a.level},null,8,["item","level"])]),default:t(()=>[e(W,{class:"mr-auto"},{default:t(()=>[v(k(a.item.title),1)]),_:1}),a.item.subCaption?(o(),r(H,{key:0,class:"text-caption mt-n1 hide-menu"},{default:t(()=>[v(k(a.item.subCaption),1)]),_:1})):B("",!0)]),_:2},1040,["value"])]),default:t(()=>[(o(!0),w(x,null,Q(a.item.children,(d,m)=>(o(),w(x,{key:m},[d.children?(o(),r(p,{key:0,item:d,level:i.level+1},null,8,["item","level"])):(o(),r(Y,{key:1,item:d,level:i.level+1},null,8,["item","level"]))],64))),128))]),_:1})}}},we={__name:"LogoMain",setup(a){return(i,u)=>(o(),r(be))}},xe={class:"pa-5"},Se={class:"pa-4 text-center"},ze=D({__name:"VerticalSidebar",setup(a){const i=L(),u=ie(ke);return(f,p)=>{const d=K("perfect-scrollbar");return o(),r(ne,{left:"",modelValue:n(i).Sidebar_drawer,"onUpdate:modelValue":p[0]||(p[0]=m=>n(i).Sidebar_drawer=m),elevation:"0","rail-width":"105","mobile-breakpoint":"960",app:"",class:"leftSidebar",rail:n(i).mini_sidebar,"expand-on-hover":""},{default:t(()=>[_("div",xe,[e(we)]),e(d,{class:"scrollnavbar"},{default:t(()=>[e(oe,{class:"pa-4"},{default:t(()=>[(o(!0),w(x,null,Q(u.value,(m,V)=>(o(),w(x,{key:V},[m.header?(o(),r(ye,{item:m,key:m.title},null,8,["item"])):m.divider?(o(),r(X,{key:1,class:"my-3"})):m.children?(o(),r(Ce,{key:2,class:"leftPadding",item:m,level:0},null,8,["item"])):(o(),r(Y,{key:3,item:m,class:"leftPadding"},null,8,["item"]))],64))),128))]),_:1}),_("div",Se,[e(G,{color:"inputBorder",size:"small"},{default:t(()=>[v(" v1.0.0 ")]),_:1})])]),_:1})]),_:1},8,["modelValue","rail"])}}}),Ne=_("span",{class:"text-h5"},"密码修改",-1),Be=_("small",null,"如果是第一次修改密码,原密码请留空。",-1),Ie=_("br",null,null,-1),Te=_("span",{class:"text-h5"},"更新项目",-1),De={style:{"margin-top":"16px"}},Le=_("p",null,"切换到指定版本",-1),$e=D({__name:"VerticalHeader",setup(a){const i=L();b(!1);let u=b(!1),f=b(!1),p=b(""),d=b(""),m=b(""),V=b(""),$=b(!1),g=b("");const Z=c=>{window.open(c,"_blank")};function ee(){p.value!=""&&(p.value=F.md5(p.value)),d.value=F.md5(d.value),N.post("/api/change_password",{password:p.value,new_password:d.value}).then(c=>{if(c.data.status=="error"){m.value=c.data.message,p.value="",d.value="";return}u.value=!u.value,m.value=c.data.message,setTimeout(()=>{pe().logout()},1e3)}).catch(c=>{console.log(c),m.value=c,p.value="",d.value=""})}function te(){V.value="正在检查更新...",N.get("/api/check_update").then(c=>{$.value=c.data.data.has_new_version,V.value=c.data.message}).catcLine truncated
|
||||
import{o,c as r,w as t,e as v,t as k,g as ae,h as le,a as e,i as G,j as C,k as B,l as W,m as H,n as J,r as R,p as K,q as I,s as w,F as x,u as Q,v as se,x as D,y as ie,b as _,z as oe,A as X,B as n,C as ne,D as b,d as h,E,M as U,G as S,H as M,I as y,J as P,K as j,L as O,N as T,V as re,f as ue,O as z,P as q,Q as de,R as ce,S as me,T as N,U as pe,W as fe,X as ve,Y as _e,Z as he,_ as Ve}from"./index-b457b676.js";import{_ as be,u as L}from"./LogoDark.vue_vue_type_script_setup_true_lang-5e7c5390.js";import{m as F}from"./md5-3d74ecc3.js";const ke=[{title:"面板",icon:"mdi-view-dashboard",to:"/dashboard/default"},{title:"配置",icon:"mdi-cog",to:"/config"},{title:"插件",icon:"mdi-puzzle",to:"/extension"},{title:"控制台",icon:"mdi-console",to:"/console"}],ye={__name:"NavGroup",props:{item:Object},setup(a){const i=a;return(u,f)=>(o(),r(ae,{color:"darkText",class:"smallCap"},{default:t(()=>[v(k(i.item.header),1)]),_:1}))}},Y={__name:"NavItem",props:{item:Object,level:Number},setup(a){return(i,u)=>(o(),r(J,{to:a.item.type==="external"?"":a.item.to,href:a.item.type==="external"?a.item.to:"",rounded:"",class:"mb-1",color:"secondary",disabled:a.item.disabled,target:a.item.type==="external"?"_blank":""},le({prepend:t(()=>[a.item.icon?(o(),r(C,{key:0,color:a.item.iconColor,size:a.item.iconSize,class:"hide-menu",icon:a.item.icon},null,8,["color","size","icon"])):B("",!0)]),default:t(()=>[e(W,null,{default:t(()=>[v(k(a.item.title),1)]),_:1}),a.item.subCaption?(o(),r(H,{key:0,class:"text-caption mt-n1 hide-menu"},{default:t(()=>[v(k(a.item.subCaption),1)]),_:1})):B("",!0)]),_:2},[a.item.chip?{name:"append",fn:t(()=>[e(G,{color:a.item.chipColor,class:"sidebarchip hide-menu",size:a.item.chipIcon?"small":"default",variant:a.item.chipVariant,"prepend-icon":a.item.chipIcon},{default:t(()=>[v(k(a.item.chip),1)]),_:1},8,["color","size","variant","prepend-icon"])]),key:"0"}:void 0]),1032,["to","href","disabled","target"]))}},ge={__name:"IconSet",props:{item:Object,level:Number},setup(a){const i=a;return(u,f)=>i.level>0?(o(),r(R(i.item),{key:0,size:"5",fill:"currentColor","stroke-width":"1.5",class:"iconClass"})):(o(),r(R(i.item),{key:1,size:"20","stroke-width":"1.5",class:"iconClass"}))}},Ce={__name:"NavCollapse",props:{item:Object,level:Number},setup(a){const i=a;return(u,f)=>{const p=K("NavCollapse",!0);return o(),r(se,{"no-action":""},{activator:t(({props:d})=>[e(J,I(d,{value:a.item.title,rounded:"",class:"mb-1",color:"secondary"}),{prepend:t(()=>[e(ge,{item:a.item.icon,level:a.level},null,8,["item","level"])]),default:t(()=>[e(W,{class:"mr-auto"},{default:t(()=>[v(k(a.item.title),1)]),_:1}),a.item.subCaption?(o(),r(H,{key:0,class:"text-caption mt-n1 hide-menu"},{default:t(()=>[v(k(a.item.subCaption),1)]),_:1})):B("",!0)]),_:2},1040,["value"])]),default:t(()=>[(o(!0),w(x,null,Q(a.item.children,(d,m)=>(o(),w(x,{key:m},[d.children?(o(),r(p,{key:0,item:d,level:i.level+1},null,8,["item","level"])):(o(),r(Y,{key:1,item:d,level:i.level+1},null,8,["item","level"]))],64))),128))]),_:1})}}},we={__name:"LogoMain",setup(a){return(i,u)=>(o(),r(be))}},xe={class:"pa-5"},Se={class:"pa-4 text-center"},ze=D({__name:"VerticalSidebar",setup(a){const i=L(),u=ie(ke);return(f,p)=>{const d=K("perfect-scrollbar");return o(),r(ne,{left:"",modelValue:n(i).Sidebar_drawer,"onUpdate:modelValue":p[0]||(p[0]=m=>n(i).Sidebar_drawer=m),elevation:"0","rail-width":"105","mobile-breakpoint":"960",app:"",class:"leftSidebar",rail:n(i).mini_sidebar,"expand-on-hover":""},{default:t(()=>[_("div",xe,[e(we)]),e(d,{class:"scrollnavbar"},{default:t(()=>[e(oe,{class:"pa-4"},{default:t(()=>[(o(!0),w(x,null,Q(u.value,(m,V)=>(o(),w(x,{key:V},[m.header?(o(),r(ye,{item:m,key:m.title},null,8,["item"])):m.divider?(o(),r(X,{key:1,class:"my-3"})):m.children?(o(),r(Ce,{key:2,class:"leftPadding",item:m,level:0},null,8,["item"])):(o(),r(Y,{key:3,item:m,class:"leftPadding"},null,8,["item"]))],64))),128))]),_:1}),_("div",Se,[e(G,{color:"inputBorder",size:"small"},{default:t(()=>[v(" v1.0.0 ")]),_:1})])]),_:1})]),_:1},8,["modelValue","rail"])}}}),Ne=_("span",{class:"text-h5"},"密码修改",-1),Be=_("small",null,"如果是第一次修改密码,原密码请留空。",-1),Ie=_("br",null,null,-1),Te=_("span",{class:"text-h5"},"更新项目",-1),De={style:{"margin-top":"16px"}},Le=_("p",null,"切换到指定版本",-1),$e=D({__name:"VerticalHeader",setup(a){const i=L();b(!1);let u=b(!1),f=b(!1),p=b(""),d=b(""),m=b(""),V=b(""),$=b(!1),g=b("");const Z=c=>{window.open(c,"_blank")};function ee(){p.value!=""&&(p.value=F.md5(p.value)),d.value=F.md5(d.value),N.post("/api/change_password",{password:p.value,new_password:d.value}).then(c=>{if(c.data.status=="error"){m.value=c.data.message,p.value="",d.value="";return}u.value=!u.value,m.value=c.data.message,setTimeout(()=>{pe().logout()},1e3)}).catch(c=>{console.log(c),m.value=c,p.value="",d.value=""})}function te(){V.value="正在检查更新...",N.get("/api/check_update").then(c=>{$.value=c.data.data.has_new_version,V.value=c.data.message}).catcLine truncated
|
||||
@@ -1,5 +0,0 @@
|
||||
import{_ as _t}from"./LogoDark.vue_vue_type_script_setup_true_lang-d555e5be.js";import{x as ke,ag as we,r as Ot,ah as Vt,D as A,ai as Ne,a2 as P,B as I,aj as Q,ak as St,I as Be,al as Ie,am as Et,an as jt,ao as At,ap as G,y as wt,o as Re,c as tt,w as C,a as j,O as He,b as ge,aq as Ft,d as Pt,e as Ge,s as Ct,ar as Tt,t as Nt,k as Bt,U as It,f as Fe,N as Rt,V as Pe,J as Ye,L as kt}from"./index-5ac7c267.js";import{a as Mt}from"./md5-086248bf.js";/**
|
||||
* vee-validate v4.11.3
|
||||
* (c) 2023 Abdelrahman Awad
|
||||
* @license MIT
|
||||
*/function R(e){return typeof e=="function"}function nt(e){return e==null}const Z=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Me(e){return Number(e)>=0}function Ut(e){return typeof e=="object"&&e!==null}function Dt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function zt(e){if(!Ut(e)||Dt(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ye(e,t){return Object.keys(t).forEach(n=>{if(zt(t[n])){e[n]||(e[n]={}),ye(e[n],t[n]);return}e[n]=t[n]}),e}function pe(e){const t=e.split(".");if(!t.length)return"";let n=String(t[0]);for(let i=1;i<t.length;i++){if(Me(t[i])){n+=`[${t[i]}]`;continue}n+=`.${t[i]}`}return n}const xt={};function Lt(e){return xt[e]}const $t=Symbol("vee-validate-form"),qt=typeof window<"u";function Ht(e){return R(e)&&!!e.__locatorRef}function ee(e){return!!e&&R(e.parse)&&e.__type==="VVTypedSchema"}function rt(e){return!!e&&R(e.validate)}function Gt(e){return e==="checkbox"||e==="radio"}function Yt(e){return Z(e)||Array.isArray(e)}function Wt(e){return Array.isArray(e)?e.length===0:Z(e)&&Object.keys(e).length===0}function be(e){return/^\[.+\]$/i.test(e)}function Kt(e){return at(e)&&e.multiple}function at(e){return e.tagName==="SELECT"}function it(e){return Ue(e)&&e.target&&"submit"in e.target}function Ue(e){return e?!!(typeof Event<"u"&&R(Event)&&e instanceof Event||e&&e.srcElement):!1}function se(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,l;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!se(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!se(i[1],t.get(i[0])))return!1;return!0}if(We(e)&&We(t))return!(e.size!==t.size||e.name!==t.name||e.lastModified!==t.lastModified||e.type!==t.type);if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();for(l=Object.keys(e),n=l.length,i=n;i--!==0;){var o=l[i];if(!se(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function We(e){return qt?e instanceof File:!1}function Ke(e,t,n){typeof n.value=="object"&&(n.value=S(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t==="__proto__"?Object.defineProperty(e,t,n):e[t]=n.value}function S(e){if(typeof e!="object")return e;var t=0,n,i,l,o=Object.prototype.toString.call(e);if(o==="[object Object]"?l=Object.create(e.__proto__||null):o==="[object Array]"?l=Array(e.length):o==="[object Set]"?(l=new Set,e.forEach(function(c){l.add(S(c))})):o==="[object Map]"?(l=new Map,e.forEach(function(c,h){l.set(S(h),S(c))})):o==="[object Date]"?l=new Date(+e):o==="[object RegExp]"?l=new RegExp(e.source,e.flags):o==="[object DataView]"?l=new e.constructor(S(e.buffer)):o==="[object ArrayBuffer]"?l=e.slice(0):o.slice(-6)==="Array]"&&(l=new e.constructor(e)),l){for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)Ke(l,i[t],Object.getOwnPropertyDescriptor(e,i[t]));for(t=0,i=Object.getOwnPropertyNames(e);t<i.length;t++)Object.hasOwnProperty.call(l,n=i[t])&&l[n]===e[n]||Ke(l,n,Object.getOwnPropertyDescriptor(e,n))}return l||e}function De(e){return be(e)?e.replace(/\[|\]/gi,""):e}function D(e,t,n){return e?be(t)?e[De(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((l,o)=>Yt(l)&&o in l?l[o]:n,e):n}function Y(e,t,n){if(be(t)){e[De(t)]=n;return}const i=t.split(/\.|\[(\d+)\]/).filter(Boolean);let l=e;for(let o=0;o<i.length;o++){if(o===i.length-1){l[i[o]]=n;return}(!(i[o]in l)||nt(l[i[o]]))&&(l[i[o]]=Me(i[o+1])?[]:{}),l=l[i[o]]}}function Ce(e,t){if(Array.isArray(e)&&Me(t)){e.splice(Number(t),1);return}Z(e)&&delete e[t]}function Je(e,t){if(be(t)){delete e[De(t)];return}const n=t.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let o=0;o<n.length;o++){if(o===n.length-1){Ce(i,n[o]);break}if(!(n[o]in i)||nt(i[n[o]]))break;i=i[n[o]]}const l=n.map((o,c)=>D(e,n.slice(0,c).join(".")));for(let o=l.length-1;o>=0;o--)if(Wt(l[o])){if(o===0){Ce(e,n[0]);continue}Ce(l[o-1],n[o-1])}}function U(e){return Object.keys(e)}function Qe(e,t=0){let n=null,i=[];return function(...l){return n&&clearTimeout(n),n=setTimeout(()=>{const o=e(...l);i.forEach(c=>c(o)),i=[]},t),new Promise(o=>i.push(o))}}function Jt(e,t){let n;return async function(...l){const o=e(...l);n=o;const c=await o;return o!==n||(n=void 0,t(c,l)),c}}function Xe(e){return Array.isArray(e)?e:e?[e]:[]}function ue(e,t){const n={};forLine truncated
|
||||
@@ -0,0 +1,5 @@
|
||||
import{_ as Ot}from"./LogoDark.vue_vue_type_script_setup_true_lang-5e7c5390.js";import{x as ke,ag as we,r as Vt,ah as St,D as w,ai as Ne,a2 as C,B as I,aj as Q,ak as Et,I as Be,al as Ie,am as jt,an as At,ao as wt,ap as G,y as Ft,o as Re,c as nt,w as T,a as A,O as He,b as ce,aq as Pt,d as Ct,e as Ge,s as Tt,ar as Nt,t as Ye,k as Bt,U as It,f as Fe,N as Rt,V as Pe,J as We,L as kt}from"./index-b457b676.js";import{a as Mt}from"./md5-3d74ecc3.js";/**
|
||||
* vee-validate v4.11.3
|
||||
* (c) 2023 Abdelrahman Awad
|
||||
* @license MIT
|
||||
*/function R(e){return typeof e=="function"}function rt(e){return e==null}const Z=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Me(e){return Number(e)>=0}function Ut(e){return typeof e=="object"&&e!==null}function Dt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function zt(e){if(!Ut(e)||Dt(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ge(e,t){return Object.keys(t).forEach(n=>{if(zt(t[n])){e[n]||(e[n]={}),ge(e[n],t[n]);return}e[n]=t[n]}),e}function ye(e){const t=e.split(".");if(!t.length)return"";let n=String(t[0]);for(let i=1;i<t.length;i++){if(Me(t[i])){n+=`[${t[i]}]`;continue}n+=`.${t[i]}`}return n}const xt={};function Lt(e){return xt[e]}const $t=Symbol("vee-validate-form"),qt=typeof window<"u";function Ht(e){return R(e)&&!!e.__locatorRef}function ee(e){return!!e&&R(e.parse)&&e.__type==="VVTypedSchema"}function at(e){return!!e&&R(e.validate)}function Gt(e){return e==="checkbox"||e==="radio"}function Yt(e){return Z(e)||Array.isArray(e)}function Wt(e){return Array.isArray(e)?e.length===0:Z(e)&&Object.keys(e).length===0}function be(e){return/^\[.+\]$/i.test(e)}function Kt(e){return it(e)&&e.multiple}function it(e){return e.tagName==="SELECT"}function lt(e){return Ue(e)&&e.target&&"submit"in e.target}function Ue(e){return e?!!(typeof Event<"u"&&R(Event)&&e instanceof Event||e&&e.srcElement):!1}function se(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,l;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!se(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!se(i[1],t.get(i[0])))return!1;return!0}if(Ke(e)&&Ke(t))return!(e.size!==t.size||e.name!==t.name||e.lastModified!==t.lastModified||e.type!==t.type);if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();for(l=Object.keys(e),n=l.length,i=n;i--!==0;){var o=l[i];if(!se(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Ke(e){return qt?e instanceof File:!1}function Je(e,t,n){typeof n.value=="object"&&(n.value=E(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t==="__proto__"?Object.defineProperty(e,t,n):e[t]=n.value}function E(e){if(typeof e!="object")return e;var t=0,n,i,l,o=Object.prototype.toString.call(e);if(o==="[object Object]"?l=Object.create(e.__proto__||null):o==="[object Array]"?l=Array(e.length):o==="[object Set]"?(l=new Set,e.forEach(function(c){l.add(E(c))})):o==="[object Map]"?(l=new Map,e.forEach(function(c,m){l.set(E(m),E(c))})):o==="[object Date]"?l=new Date(+e):o==="[object RegExp]"?l=new RegExp(e.source,e.flags):o==="[object DataView]"?l=new e.constructor(E(e.buffer)):o==="[object ArrayBuffer]"?l=e.slice(0):o.slice(-6)==="Array]"&&(l=new e.constructor(e)),l){for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)Je(l,i[t],Object.getOwnPropertyDescriptor(e,i[t]));for(t=0,i=Object.getOwnPropertyNames(e);t<i.length;t++)Object.hasOwnProperty.call(l,n=i[t])&&l[n]===e[n]||Je(l,n,Object.getOwnPropertyDescriptor(e,n))}return l||e}function De(e){return be(e)?e.replace(/\[|\]/gi,""):e}function D(e,t,n){return e?be(t)?e[De(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((l,o)=>Yt(l)&&o in l?l[o]:n,e):n}function Y(e,t,n){if(be(t)){e[De(t)]=n;return}const i=t.split(/\.|\[(\d+)\]/).filter(Boolean);let l=e;for(let o=0;o<i.length;o++){if(o===i.length-1){l[i[o]]=n;return}(!(i[o]in l)||rt(l[i[o]]))&&(l[i[o]]=Me(i[o+1])?[]:{}),l=l[i[o]]}}function Ce(e,t){if(Array.isArray(e)&&Me(t)){e.splice(Number(t),1);return}Z(e)&&delete e[t]}function Qe(e,t){if(be(t)){delete e[De(t)];return}const n=t.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let o=0;o<n.length;o++){if(o===n.length-1){Ce(i,n[o]);break}if(!(n[o]in i)||rt(i[n[o]]))break;i=i[n[o]]}const l=n.map((o,c)=>D(e,n.slice(0,c).join(".")));for(let o=l.length-1;o>=0;o--)if(Wt(l[o])){if(o===0){Ce(e,n[0]);continue}Ce(l[o-1],n[o-1])}}function U(e){return Object.keys(e)}function Xe(e,t=0){let n=null,i=[];return function(...l){return n&&clearTimeout(n),n=setTimeout(()=>{const o=e(...l);i.forEach(c=>c(o)),i=[]},t),new Promise(o=>i.push(o))}}function Jt(e,t){let n;return async function(...l){const o=e(...l);n=o;const c=await o;return o!==n||(n=void 0,t(c,l)),c}}function Ze(e){return Array.isArray(e)?e:e?[e]:[]}function ue(e,t){const n={};forLine truncated
|
||||
@@ -1 +1 @@
|
||||
import{aw as _,x as d,D as n,o as c,s as m,a as f,w as p,Q as r,b as a,R as o,B as t,ax as h}from"./index-5ac7c267.js";const s={Sidebar_drawer:!0,Customizer_drawer:!1,mini_sidebar:!1,fontTheme:"Roboto",inputBg:!1},l=_({id:"customizer",state:()=>({Sidebar_drawer:s.Sidebar_drawer,Customizer_drawer:s.Customizer_drawer,mini_sidebar:s.mini_sidebar,fontTheme:"Poppins",inputBg:s.inputBg}),getters:{},actions:{SET_SIDEBAR_DRAWER(){this.Sidebar_drawer=!this.Sidebar_drawer},SET_MINI_SIDEBAR(e){this.mini_sidebar=e},SET_FONT(e){this.fontTheme=e}}}),u={class:"logo",style:{display:"flex","align-items":"center"}},b={style:{"font-size":"24px","font-weight":"1000"}},w={style:{"font-size":"20px","font-weight":"1000"}},S={style:{"font-size":"20px"}},z=d({__name:"LogoDark",setup(e){n("rgb(var(--v-theme-primary))"),n("rgb(var(--v-theme-secondary))");const i=l();return(g,B)=>(c(),m("div",u,[f(t(h),{to:"/",style:{"text-decoration":"none",color:"black"}},{default:p(()=>[r(a("span",b,"AstrBot 仪表盘",512),[[o,!t(i).mini_sidebar]]),r(a("span",w,"Astr",512),[[o,t(i).mini_sidebar]]),r(a("span",S,"Bot",512),[[o,t(i).mini_sidebar]])]),_:1})]))}});export{z as _,l as u};
|
||||
import{aw as _,x as d,D as n,o as c,s as m,a as f,w as p,Q as r,b as a,R as o,B as t,ax as h}from"./index-b457b676.js";const s={Sidebar_drawer:!0,Customizer_drawer:!1,mini_sidebar:!1,fontTheme:"Roboto",inputBg:!1},l=_({id:"customizer",state:()=>({Sidebar_drawer:s.Sidebar_drawer,Customizer_drawer:s.Customizer_drawer,mini_sidebar:s.mini_sidebar,fontTheme:"Poppins",inputBg:s.inputBg}),getters:{},actions:{SET_SIDEBAR_DRAWER(){this.Sidebar_drawer=!this.Sidebar_drawer},SET_MINI_SIDEBAR(e){this.mini_sidebar=e},SET_FONT(e){this.fontTheme=e}}}),u={class:"logo",style:{display:"flex","align-items":"center"}},b={style:{"font-size":"24px","font-weight":"1000"}},w={style:{"font-size":"20px","font-weight":"1000"}},S={style:{"font-size":"20px"}},z=d({__name:"LogoDark",setup(e){n("rgb(var(--v-theme-primary))"),n("rgb(var(--v-theme-secondary))");const i=l();return(g,B)=>(c(),m("div",u,[f(t(h),{to:"/",style:{"text-decoration":"none",color:"black"}},{default:p(()=>[r(a("span",b,"AstrBot 仪表盘",512),[[o,!t(i).mini_sidebar]]),r(a("span",w,"Astr",512),[[o,t(i).mini_sidebar]]),r(a("span",S,"Bot",512),[[o,t(i).mini_sidebar]])]),_:1})]))}});export{z as _,l as u};
|
||||
@@ -1 +1 @@
|
||||
import{_ as o}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-1875d383.js";import{_ as i}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b40a2daa.js";import{x as n,D as a,o as c,s as m,a as e,w as t,f as d,b as f,V as _,F as u}from"./index-5ac7c267.js";const p=["innerHTML"],v=n({__name:"MaterialIcons",setup(b){const s=a({title:"Material Icons"}),r=a('<iframe src="https://materialdesignicons.com/" frameborder="0" width="100%" height="1000"></iframe>'),l=a([{title:"Icons",disabled:!1,href:"#"},{title:"Material Icons",disabled:!0,href:"#"}]);return(h,M)=>(c(),m(u,null,[e(o,{title:s.value.title,breadcrumbs:l.value},null,8,["title","breadcrumbs"]),e(_,null,{default:t(()=>[e(d,{cols:"12",md:"12"},{default:t(()=>[e(i,{title:"Material Icons"},{default:t(()=>[f("div",{innerHTML:r.value},null,8,p)]),_:1})]),_:1})]),_:1})],64))}});export{v as default};
|
||||
import{_ as o}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-76d4bf62.js";import{_ as i}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b380931c.js";import{x as n,D as a,o as c,s as m,a as e,w as t,f as d,b as f,V as _,F as u}from"./index-b457b676.js";const p=["innerHTML"],v=n({__name:"MaterialIcons",setup(b){const s=a({title:"Material Icons"}),r=a('<iframe src="https://materialdesignicons.com/" frameborder="0" width="100%" height="1000"></iframe>'),l=a([{title:"Icons",disabled:!1,href:"#"},{title:"Material Icons",disabled:!0,href:"#"}]);return(h,M)=>(c(),m(u,null,[e(o,{title:s.value.title,breadcrumbs:l.value},null,8,["title","breadcrumbs"]),e(_,null,{default:t(()=>[e(d,{cols:"12",md:"12"},{default:t(()=>[e(i,{title:"Material Icons"},{default:t(()=>[f("div",{innerHTML:r.value},null,8,p)]),_:1})]),_:1})]),_:1})],64))}});export{v as default};
|
||||
@@ -1 +1 @@
|
||||
import{_ as B}from"./LogoDark.vue_vue_type_script_setup_true_lang-d555e5be.js";import{x as y,D as o,o as b,s as U,a as e,w as a,b as n,B as $,d as u,f as d,A as _,e as f,V as r,O as m,aq as q,av as A,F as E,c as F,N as T,J as V,L as P}from"./index-5ac7c267.js";const z="/assets/social-google-9b2fa67a.svg",N=["src"],S=n("span",{class:"ml-2"},"Sign up with Google",-1),D=n("h5",{class:"text-h5 text-center my-4 mb-8"},"Sign up with Email address",-1),G={class:"d-sm-inline-flex align-center mt-2 mb-7 mb-sm-0 font-weight-bold"},L=n("a",{href:"#",class:"ml-1 text-lightText"},"Terms and Condition",-1),O={class:"mt-5 text-right"},j=y({__name:"AuthRegister",setup(w){const c=o(!1),i=o(!1),p=o(""),v=o(""),g=o(),h=o(""),x=o(""),k=o([s=>!!s||"Password is required",s=>s&&s.length<=10||"Password must be less than 10 characters"]),C=o([s=>!!s||"E-mail is required",s=>/.+@.+\..+/.test(s)||"E-mail must be valid"]);function R(){g.value.validate()}return(s,l)=>(b(),U(E,null,[e(u,{block:"",color:"primary",variant:"outlined",class:"text-lightText googleBtn"},{default:a(()=>[n("img",{src:$(z),alt:"google"},null,8,N),S]),_:1}),e(r,null,{default:a(()=>[e(d,{class:"d-flex align-center"},{default:a(()=>[e(_,{class:"custom-devider"}),e(u,{variant:"outlined",class:"orbtn",rounded:"md",size:"small"},{default:a(()=>[f("OR")]),_:1}),e(_,{class:"custom-devider"})]),_:1})]),_:1}),D,e(A,{ref_key:"Regform",ref:g,"lazy-validation":"",action:"/dashboards/analytical",class:"mt-7 loginForm"},{default:a(()=>[e(r,null,{default:a(()=>[e(d,{cols:"12",sm:"6"},{default:a(()=>[e(m,{modelValue:h.value,"onUpdate:modelValue":l[0]||(l[0]=t=>h.value=t),density:"comfortable","hide-details":"auto",variant:"outlined",color:"primary",label:"Firstname"},null,8,["modelValue"])]),_:1}),e(d,{cols:"12",sm:"6"},{default:a(()=>[e(m,{modelValue:x.value,"onUpdate:modelValue":l[1]||(l[1]=t=>x.value=t),density:"comfortable","hide-details":"auto",variant:"outlined",color:"primary",label:"Lastname"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{modelValue:v.value,"onUpdate:modelValue":l[2]||(l[2]=t=>v.value=t),rules:C.value,label:"Email Address / Username",class:"mt-4 mb-4",required:"",density:"comfortable","hide-details":"auto",variant:"outlined",color:"primary"},null,8,["modelValue","rules"]),e(m,{modelValue:p.value,"onUpdate:modelValue":l[3]||(l[3]=t=>p.value=t),rules:k.value,label:"Password",required:"",density:"comfortable",variant:"outlined",color:"primary","hide-details":"auto","append-icon":i.value?"mdi-eye":"mdi-eye-off",type:i.value?"text":"password","onClick:append":l[4]||(l[4]=t=>i.value=!i.value),class:"pwdInput"},null,8,["modelValue","rules","append-icon","type"]),n("div",G,[e(q,{modelValue:c.value,"onUpdate:modelValue":l[5]||(l[5]=t=>c.value=t),rules:[t=>!!t||"You must agree to continue!"],label:"Agree with?",required:"",color:"primary",class:"ms-n2","hide-details":""},null,8,["modelValue","rules"]),L]),e(u,{color:"secondary",block:"",class:"mt-2",variant:"flat",size:"large",onClick:l[6]||(l[6]=t=>R())},{default:a(()=>[f("Sign Up")]),_:1})]),_:1},512),n("div",O,[e(_),e(u,{variant:"plain",to:"/auth/login",class:"mt-2 text-capitalize mr-n2"},{default:a(()=>[f("Already have an account?")]),_:1})])],64))}});const I={class:"pa-7 pa-sm-12"},J=n("h2",{class:"text-secondary text-h2 mt-8"},"Sign up",-1),Y=n("h4",{class:"text-disabled text-h4 mt-3"},"Enter credentials to continue",-1),M=y({__name:"RegisterPage",setup(w){return(c,i)=>(b(),F(r,{class:"h-100vh","no-gutters":""},{default:a(()=>[e(d,{cols:"12",class:"d-flex align-center bg-lightprimary"},{default:a(()=>[e(T,null,{default:a(()=>[n("div",I,[e(r,{justify:"center"},{default:a(()=>[e(d,{cols:"12",lg:"10",xl:"6",md:"7"},{default:a(()=>[e(V,{elevation:"0",class:"loginBox"},{default:a(()=>[e(V,{variant:"outlined"},{default:a(()=>[e(P,{class:"pa-9"},{default:a(()=>[e(r,null,{default:a(()=>[e(d,{cols:"12",class:"text-center"},{default:a(()=>[e(B),J,Y]),_:1})]),_:1}),e(j)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})]),_:1})]),_:1}))}});export{M as default};
|
||||
import{_ as B}from"./LogoDark.vue_vue_type_script_setup_true_lang-5e7c5390.js";import{x as y,D as o,o as b,s as U,a as e,w as a,b as n,B as $,d as u,f as d,A as _,e as f,V as r,O as m,aq as q,av as A,F as E,c as F,N as T,J as V,L as P}from"./index-b457b676.js";const z="/assets/social-google-a359a253.svg",N=["src"],S=n("span",{class:"ml-2"},"Sign up with Google",-1),D=n("h5",{class:"text-h5 text-center my-4 mb-8"},"Sign up with Email address",-1),G={class:"d-sm-inline-flex align-center mt-2 mb-7 mb-sm-0 font-weight-bold"},L=n("a",{href:"#",class:"ml-1 text-lightText"},"Terms and Condition",-1),O={class:"mt-5 text-right"},j=y({__name:"AuthRegister",setup(w){const c=o(!1),i=o(!1),p=o(""),v=o(""),g=o(),h=o(""),x=o(""),k=o([s=>!!s||"Password is required",s=>s&&s.length<=10||"Password must be less than 10 characters"]),C=o([s=>!!s||"E-mail is required",s=>/.+@.+\..+/.test(s)||"E-mail must be valid"]);function R(){g.value.validate()}return(s,l)=>(b(),U(E,null,[e(u,{block:"",color:"primary",variant:"outlined",class:"text-lightText googleBtn"},{default:a(()=>[n("img",{src:$(z),alt:"google"},null,8,N),S]),_:1}),e(r,null,{default:a(()=>[e(d,{class:"d-flex align-center"},{default:a(()=>[e(_,{class:"custom-devider"}),e(u,{variant:"outlined",class:"orbtn",rounded:"md",size:"small"},{default:a(()=>[f("OR")]),_:1}),e(_,{class:"custom-devider"})]),_:1})]),_:1}),D,e(A,{ref_key:"Regform",ref:g,"lazy-validation":"",action:"/dashboards/analytical",class:"mt-7 loginForm"},{default:a(()=>[e(r,null,{default:a(()=>[e(d,{cols:"12",sm:"6"},{default:a(()=>[e(m,{modelValue:h.value,"onUpdate:modelValue":l[0]||(l[0]=t=>h.value=t),density:"comfortable","hide-details":"auto",variant:"outlined",color:"primary",label:"Firstname"},null,8,["modelValue"])]),_:1}),e(d,{cols:"12",sm:"6"},{default:a(()=>[e(m,{modelValue:x.value,"onUpdate:modelValue":l[1]||(l[1]=t=>x.value=t),density:"comfortable","hide-details":"auto",variant:"outlined",color:"primary",label:"Lastname"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{modelValue:v.value,"onUpdate:modelValue":l[2]||(l[2]=t=>v.value=t),rules:C.value,label:"Email Address / Username",class:"mt-4 mb-4",required:"",density:"comfortable","hide-details":"auto",variant:"outlined",color:"primary"},null,8,["modelValue","rules"]),e(m,{modelValue:p.value,"onUpdate:modelValue":l[3]||(l[3]=t=>p.value=t),rules:k.value,label:"Password",required:"",density:"comfortable",variant:"outlined",color:"primary","hide-details":"auto","append-icon":i.value?"mdi-eye":"mdi-eye-off",type:i.value?"text":"password","onClick:append":l[4]||(l[4]=t=>i.value=!i.value),class:"pwdInput"},null,8,["modelValue","rules","append-icon","type"]),n("div",G,[e(q,{modelValue:c.value,"onUpdate:modelValue":l[5]||(l[5]=t=>c.value=t),rules:[t=>!!t||"You must agree to continue!"],label:"Agree with?",required:"",color:"primary",class:"ms-n2","hide-details":""},null,8,["modelValue","rules"]),L]),e(u,{color:"secondary",block:"",class:"mt-2",variant:"flat",size:"large",onClick:l[6]||(l[6]=t=>R())},{default:a(()=>[f("Sign Up")]),_:1})]),_:1},512),n("div",O,[e(_),e(u,{variant:"plain",to:"/auth/login",class:"mt-2 text-capitalize mr-n2"},{default:a(()=>[f("Already have an account?")]),_:1})])],64))}});const I={class:"pa-7 pa-sm-12"},J=n("h2",{class:"text-secondary text-h2 mt-8"},"Sign up",-1),Y=n("h4",{class:"text-disabled text-h4 mt-3"},"Enter credentials to continue",-1),M=y({__name:"RegisterPage",setup(w){return(c,i)=>(b(),F(r,{class:"h-100vh","no-gutters":""},{default:a(()=>[e(d,{cols:"12",class:"d-flex align-center bg-lightprimary"},{default:a(()=>[e(T,null,{default:a(()=>[n("div",I,[e(r,{justify:"center"},{default:a(()=>[e(d,{cols:"12",lg:"10",xl:"6",md:"7"},{default:a(()=>[e(V,{elevation:"0",class:"loginBox"},{default:a(()=>[e(V,{variant:"outlined"},{default:a(()=>[e(P,{class:"pa-9"},{default:a(()=>[e(r,null,{default:a(()=>[e(d,{cols:"12",class:"text-center"},{default:a(()=>[e(B),J,Y]),_:1})]),_:1}),e(j)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})]),_:1})]),_:1}))}});export{M as default};
|
||||
@@ -1 +1 @@
|
||||
import{_ as c}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-1875d383.js";import{_ as f}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b40a2daa.js";import{x as m,D as s,o as l,s as r,a as e,w as a,f as i,V as o,F as d,u as _,J as p,X as b,b as h,t as g}from"./index-5ac7c267.js";const v=m({__name:"ShadowPage",setup(w){const n=s({title:"Shadow Page"}),u=s([{title:"Utilities",disabled:!1,href:"#"},{title:"Shadow",disabled:!0,href:"#"}]);return(V,x)=>(l(),r(d,null,[e(c,{title:n.value.title,breadcrumbs:u.value},null,8,["title","breadcrumbs"]),e(o,null,{default:a(()=>[e(i,{cols:"12",md:"12"},{default:a(()=>[e(f,{title:"Basic Shadow"},{default:a(()=>[e(o,{justify:"center"},{default:a(()=>[(l(),r(d,null,_(25,t=>e(i,{key:t,cols:"auto"},{default:a(()=>[e(p,{height:"100",width:"100",class:b(["mb-5",["d-flex justify-center align-center bg-primary",`elevation-${t}`]])},{default:a(()=>[h("div",null,g(t-1),1)]),_:2},1032,["class"])]),_:2},1024)),64))]),_:1})]),_:1})]),_:1})]),_:1})],64))}});export{v as default};
|
||||
import{_ as c}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-76d4bf62.js";import{_ as f}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b380931c.js";import{x as m,D as s,o as l,s as r,a as e,w as a,f as i,V as o,F as d,u as _,J as p,X as b,b as h,t as g}from"./index-b457b676.js";const v=m({__name:"ShadowPage",setup(w){const n=s({title:"Shadow Page"}),u=s([{title:"Utilities",disabled:!1,href:"#"},{title:"Shadow",disabled:!0,href:"#"}]);return(V,x)=>(l(),r(d,null,[e(c,{title:n.value.title,breadcrumbs:u.value},null,8,["title","breadcrumbs"]),e(o,null,{default:a(()=>[e(i,{cols:"12",md:"12"},{default:a(()=>[e(f,{title:"Basic Shadow"},{default:a(()=>[e(o,{justify:"center"},{default:a(()=>[(l(),r(d,null,_(25,t=>e(i,{key:t,cols:"auto"},{default:a(()=>[e(p,{height:"100",width:"100",class:b(["mb-5",["d-flex justify-center align-center bg-primary",`elevation-${t}`]])},{default:a(()=>[h("div",null,g(t-1),1)]),_:2},1032,["class"])]),_:2},1024)),64))]),_:1})]),_:1})]),_:1})]),_:1})],64))}});export{v as default};
|
||||
@@ -1 +1 @@
|
||||
import{_ as o}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-1875d383.js";import{_ as n}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b40a2daa.js";import{x as c,D as a,o as i,s as m,a as e,w as t,f as d,b as f,V as _,F as u}from"./index-5ac7c267.js";const b=["innerHTML"],w=c({__name:"TablerIcons",setup(p){const s=a({title:"Tabler Icons"}),r=a('<iframe src="https://tablericons.com/" frameborder="0" width="100%" height="600"></iframe>'),l=a([{title:"Icons",disabled:!1,href:"#"},{title:"Tabler Icons",disabled:!0,href:"#"}]);return(h,T)=>(i(),m(u,null,[e(o,{title:s.value.title,breadcrumbs:l.value},null,8,["title","breadcrumbs"]),e(_,null,{default:t(()=>[e(d,{cols:"12",md:"12"},{default:t(()=>[e(n,{title:"Tabler Icons"},{default:t(()=>[f("div",{innerHTML:r.value},null,8,b)]),_:1})]),_:1})]),_:1})],64))}});export{w as default};
|
||||
import{_ as o}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-76d4bf62.js";import{_ as n}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b380931c.js";import{x as c,D as a,o as i,s as m,a as e,w as t,f as d,b as f,V as _,F as u}from"./index-b457b676.js";const b=["innerHTML"],w=c({__name:"TablerIcons",setup(p){const s=a({title:"Tabler Icons"}),r=a('<iframe src="https://tablericons.com/" frameborder="0" width="100%" height="600"></iframe>'),l=a([{title:"Icons",disabled:!1,href:"#"},{title:"Tabler Icons",disabled:!0,href:"#"}]);return(h,T)=>(i(),m(u,null,[e(o,{title:s.value.title,breadcrumbs:l.value},null,8,["title","breadcrumbs"]),e(_,null,{default:t(()=>[e(d,{cols:"12",md:"12"},{default:t(()=>[e(n,{title:"Tabler Icons"},{default:t(()=>[f("div",{innerHTML:r.value},null,8,b)]),_:1})]),_:1})]),_:1})],64))}});export{w as default};
|
||||
@@ -1 +1 @@
|
||||
import{_ as m}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-1875d383.js";import{_ as v}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b40a2daa.js";import{x as f,o as i,c as g,w as e,a,a8 as y,K as b,e as w,t as d,A as C,L as V,a9 as L,J as _,D as o,s as h,f as k,b as t,F as x,u as B,X as H,V as T}from"./index-5ac7c267.js";const s=f({__name:"UiChildCard",props:{title:String},setup(r){const l=r;return(n,c)=>(i(),g(_,{variant:"outlined"},{default:e(()=>[a(y,{class:"py-3"},{default:e(()=>[a(b,{class:"text-h5"},{default:e(()=>[w(d(l.title),1)]),_:1})]),_:1}),a(C),a(V,null,{default:e(()=>[L(n.$slots,"default")]),_:3})]),_:3}))}}),D={class:"d-flex flex-column gap-1"},S={class:"text-caption pa-2 bg-lightprimary"},z=t("div",{class:"text-grey"},"Class",-1),N={class:"font-weight-medium"},$=t("div",null,[t("p",{class:"text-left"},"Left aligned on all viewport sizes."),t("p",{class:"text-center"},"Center aligned on all viewport sizes."),t("p",{class:"text-right"},"Right aligned on all viewport sizes."),t("p",{class:"text-sm-left"},"Left aligned on viewports SM (small) or wider."),t("p",{class:"text-right text-md-left"},"Left aligned on viewports MD (medium) or wider."),t("p",{class:"text-right text-lg-left"},"Left aligned on viewports LG (large) or wider."),t("p",{class:"text-right text-xl-left"},"Left aligned on viewports XL (extra-large) or wider.")],-1),M=t("div",{class:"d-flex justify-space-between flex-row"},[t("a",{href:"#",class:"text-decoration-none"},"Non-underlined link"),t("div",{class:"text-decoration-line-through"},"Line-through text"),t("div",{class:"text-decoration-overline"},"Overline text"),t("div",{class:"text-decoration-underline"},"Underline text")],-1),O=t("div",null,[t("p",{class:"text-high-emphasis"},"High-emphasis has an opacity of 87% in light theme and 100% in dark."),t("p",{class:"text-medium-emphasis"},"Medium-emphasis text and hint text have opacities of 60% in light theme and 70% in dark."),t("p",{class:"text-disabled"},"Disabled text has an opacity of 38% in light theme and 50% in dark.")],-1),j=f({__name:"TypographyPage",setup(r){const l=o({title:"Typography Page"}),n=o([["Heading 1","text-h1"],["Heading 2","text-h2"],["Heading 3","text-h3"],["Heading 4","text-h4"],["Heading 5","text-h5"],["Heading 6","text-h6"],["Subtitle 1","text-subtitle-1"],["Subtitle 2","text-subtitle-2"],["Body 1","text-body-1"],["Body 2","text-body-2"],["Button","text-button"],["Caption","text-caption"],["Overline","text-overline"]]),c=o([{title:"Utilities",disabled:!1,href:"#"},{title:"Typography",disabled:!0,href:"#"}]);return(U,F)=>(i(),h(x,null,[a(m,{title:l.value.title,breadcrumbs:c.value},null,8,["title","breadcrumbs"]),a(T,null,{default:e(()=>[a(k,{cols:"12",md:"12"},{default:e(()=>[a(v,{title:"Basic Typography"},{default:e(()=>[a(s,{title:"Heading"},{default:e(()=>[t("div",D,[(i(!0),h(x,null,B(n.value,([p,u])=>(i(),g(_,{variant:"outlined",key:p,class:"my-4"},{default:e(()=>[t("div",{class:H([u,"pa-2"])},d(p),3),t("div",S,[z,t("div",N,d(u),1)])]),_:2},1024))),128))])]),_:1}),a(s,{title:"Text-alignment",class:"mt-8"},{default:e(()=>[$]),_:1}),a(s,{title:"Decoration",class:"mt-8"},{default:e(()=>[M]),_:1}),a(s,{title:"Opacity",class:"mt-8"},{default:e(()=>[O]),_:1})]),_:1})]),_:1})]),_:1})],64))}});export{j as default};
|
||||
import{_ as m}from"./BaseBreadcrumb.vue_vue_type_style_index_0_lang-76d4bf62.js";import{_ as v}from"./UiParentCard.vue_vue_type_script_setup_true_lang-b380931c.js";import{x as f,o as i,c as g,w as e,a,a8 as y,K as b,e as w,t as d,A as C,L as V,a9 as L,J as _,D as o,s as h,f as k,b as t,F as x,u as B,X as H,V as T}from"./index-b457b676.js";const s=f({__name:"UiChildCard",props:{title:String},setup(r){const l=r;return(n,c)=>(i(),g(_,{variant:"outlined"},{default:e(()=>[a(y,{class:"py-3"},{default:e(()=>[a(b,{class:"text-h5"},{default:e(()=>[w(d(l.title),1)]),_:1})]),_:1}),a(C),a(V,null,{default:e(()=>[L(n.$slots,"default")]),_:3})]),_:3}))}}),D={class:"d-flex flex-column gap-1"},S={class:"text-caption pa-2 bg-lightprimary"},z=t("div",{class:"text-grey"},"Class",-1),N={class:"font-weight-medium"},$=t("div",null,[t("p",{class:"text-left"},"Left aligned on all viewport sizes."),t("p",{class:"text-center"},"Center aligned on all viewport sizes."),t("p",{class:"text-right"},"Right aligned on all viewport sizes."),t("p",{class:"text-sm-left"},"Left aligned on viewports SM (small) or wider."),t("p",{class:"text-right text-md-left"},"Left aligned on viewports MD (medium) or wider."),t("p",{class:"text-right text-lg-left"},"Left aligned on viewports LG (large) or wider."),t("p",{class:"text-right text-xl-left"},"Left aligned on viewports XL (extra-large) or wider.")],-1),M=t("div",{class:"d-flex justify-space-between flex-row"},[t("a",{href:"#",class:"text-decoration-none"},"Non-underlined link"),t("div",{class:"text-decoration-line-through"},"Line-through text"),t("div",{class:"text-decoration-overline"},"Overline text"),t("div",{class:"text-decoration-underline"},"Underline text")],-1),O=t("div",null,[t("p",{class:"text-high-emphasis"},"High-emphasis has an opacity of 87% in light theme and 100% in dark."),t("p",{class:"text-medium-emphasis"},"Medium-emphasis text and hint text have opacities of 60% in light theme and 70% in dark."),t("p",{class:"text-disabled"},"Disabled text has an opacity of 38% in light theme and 50% in dark.")],-1),j=f({__name:"TypographyPage",setup(r){const l=o({title:"Typography Page"}),n=o([["Heading 1","text-h1"],["Heading 2","text-h2"],["Heading 3","text-h3"],["Heading 4","text-h4"],["Heading 5","text-h5"],["Heading 6","text-h6"],["Subtitle 1","text-subtitle-1"],["Subtitle 2","text-subtitle-2"],["Body 1","text-body-1"],["Body 2","text-body-2"],["Button","text-button"],["Caption","text-caption"],["Overline","text-overline"]]),c=o([{title:"Utilities",disabled:!1,href:"#"},{title:"Typography",disabled:!0,href:"#"}]);return(U,F)=>(i(),h(x,null,[a(m,{title:l.value.title,breadcrumbs:c.value},null,8,["title","breadcrumbs"]),a(T,null,{default:e(()=>[a(k,{cols:"12",md:"12"},{default:e(()=>[a(v,{title:"Basic Typography"},{default:e(()=>[a(s,{title:"Heading"},{default:e(()=>[t("div",D,[(i(!0),h(x,null,B(n.value,([p,u])=>(i(),g(_,{variant:"outlined",key:p,class:"my-4"},{default:e(()=>[t("div",{class:H([u,"pa-2"])},d(p),3),t("div",S,[z,t("div",N,d(u),1)])]),_:2},1024))),128))])]),_:1}),a(s,{title:"Text-alignment",class:"mt-8"},{default:e(()=>[$]),_:1}),a(s,{title:"Decoration",class:"mt-8"},{default:e(()=>[M]),_:1}),a(s,{title:"Opacity",class:"mt-8"},{default:e(()=>[O]),_:1})]),_:1})]),_:1})]),_:1})],64))}});export{j as default};
|
||||
@@ -1 +1 @@
|
||||
import{x as n,o,c as i,w as e,a,a8 as d,b as c,K as u,e as p,t as _,a9 as s,A as f,L as V,J as m}from"./index-5ac7c267.js";const C={class:"d-sm-flex align-center justify-space-between"},h=n({__name:"UiParentCard",props:{title:String},setup(l){const r=l;return(t,x)=>(o(),i(m,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(d,null,{default:e(()=>[c("div",C,[a(u,null,{default:e(()=>[p(_(r.title),1)]),_:1}),s(t.$slots,"action")])]),_:3}),a(f),a(V,null,{default:e(()=>[s(t.$slots,"default")]),_:3})]),_:3}))}});export{h as _};
|
||||
import{x as n,o,c as i,w as e,a,a8 as d,b as c,K as u,e as p,t as _,a9 as s,A as f,L as V,J as m}from"./index-b457b676.js";const C={class:"d-sm-flex align-center justify-space-between"},h=n({__name:"UiParentCard",props:{title:String},setup(l){const r=l;return(t,x)=>(o(),i(m,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(d,null,{default:e(()=>[c("div",C,[a(u,null,{default:e(()=>[p(_(r.title),1)]),_:1}),s(t.$slots,"action")])]),_:3}),a(f),a(V,null,{default:e(()=>[s(t.$slots,"default")]),_:3})]),_:3}))}});export{h as _};
|
||||
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
@@ -6,11 +6,11 @@
|
||||
* vue-router v4.2.4
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/const Wr=typeof window<"u";function t5(n){return n.__esModule||n[Symbol.toStringTag]==="Module"}const fe=Object.assign;function Li(n,l){const r={};for(const h in l){const c=l[h];r[h]=Kn(c)?c.map(n):n(c)}return r}const Wo=()=>{},Kn=Array.isArray,e5=/\/$/,n5=n=>n.replace(e5,"");function Di(n,l,r="/"){let h,c={},g="",v="";const k=l.indexOf("#");let x=l.indexOf("?");return k<x&&k>=0&&(x=-1),x>-1&&(h=l.slice(0,x),g=l.slice(x+1,k>-1?k:l.length),c=n(g)),k>-1&&(h=h||l.slice(0,k),v=l.slice(k,l.length)),h=s5(h??l,r),{fullPath:h+(g&&"?")+g+v,path:h,query:c,hash:v}}function l5(n,l){const r=l.query?n(l.query):"";return l.path+(r&&"?")+r+(l.hash||"")}function A1(n,l){return!l||!n.toLowerCase().startsWith(l.toLowerCase())?n:n.slice(l.length)||"/"}function r5(n,l,r){const h=l.matched.length-1,c=r.matched.length-1;return h>-1&&h===c&&eo(l.matched[h],r.matched[c])&&qu(l.params,r.params)&&n(l.query)===n(r.query)&&l.hash===r.hash}function eo(n,l){return(n.aliasOf||n)===(l.aliasOf||l)}function qu(n,l){if(Object.keys(n).length!==Object.keys(l).length)return!1;for(const r in n)if(!o5(n[r],l[r]))return!1;return!0}function o5(n,l){return Kn(n)?B1(n,l):Kn(l)?B1(l,n):n===l}function B1(n,l){return Kn(l)?n.length===l.length&&n.every((r,h)=>r===l[h]):n.length===1&&n[0]===l}function s5(n,l){if(n.startsWith("/"))return n;if(!n)return l;const r=l.split("/"),h=n.split("/"),c=h[h.length-1];(c===".."||c===".")&&h.push("");let g=r.length-1,v,k;for(v=0;v<h.length;v++)if(k=h[v],k!==".")if(k==="..")g>1&&g--;else break;return r.slice(0,g).join("/")+"/"+h.slice(v-(v===h.length?1:0)).join("/")}var rs;(function(n){n.pop="pop",n.push="push"})(rs||(rs={}));var Xo;(function(n){n.back="back",n.forward="forward",n.unknown=""})(Xo||(Xo={}));function a5(n){if(!n)if(Wr){const l=document.querySelector("base");n=l&&l.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),n5(n)}const i5=/^[^#]+#/;function h5(n,l){return n.replace(i5,"#")+l}function d5(n,l){const r=document.documentElement.getBoundingClientRect(),h=n.getBoundingClientRect();return{behavior:l.behavior,left:h.left-r.left-(l.left||0),top:h.top-r.top-(l.top||0)}}const Ga=()=>({left:window.pageXOffset,top:window.pageYOffset});function c5(n){let l;if("el"in n){const r=n.el,h=typeof r=="string"&&r.startsWith("#"),c=typeof r=="string"?h?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!c)return;l=d5(c,n)}else l=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(l):window.scrollTo(l.left!=null?l.left:window.pageXOffset,l.top!=null?l.top:window.pageYOffset)}function H1(n,l){return(history.state?history.state.position-l:-1)+n}const x0=new Map;function u5(n,l){x0.set(n,l)}function p5(n){const l=x0.get(n);return x0.delete(n),l}let g5=()=>location.protocol+"//"+location.host;function Yu(n,l){const{pathname:r,search:h,hash:c}=l,g=n.indexOf("#");if(g>-1){let k=c.includes(n.slice(g))?n.slice(g).length:1,x=c.slice(k);return x[0]!=="/"&&(x="/"+x),A1(x,"")}return A1(r,n)+h+c}function w5(n,l,r,h){let c=[],g=[],v=null;const k=({state:B})=>{const P=Yu(n,location),D=r.value,F=l.value;let X=0;if(B){if(r.value=P,l.value=B,v&&v===D){v=null;return}X=F?B.position-F.position:0}else h(P);c.forEach(R=>{R(r.value,D,{delta:X,type:rs.pop,direction:X?X>0?Xo.forward:Xo.back:Xo.unknown})})};function x(){v=r.value}function I(B){c.push(B);const P=()=>{const D=c.indexOf(B);D>-1&&c.splice(D,1)};return g.push(P),P}function S(){const{history:B}=window;B.state&&B.replaceState(fe({},B.state,{scroll:Ga()}),"")}function $(){for(const B of g)B();g=[],window.removeEventListener("popstate",k),window.removeEventListener("beforeunload",S)}return window.addEventListener("popstate",k),window.addEventListener("beforeunload",S,{passive:!0}),{pauseListeners:x,listen:I,destroy:$}}function N1(n,l,r,h=!1,c=!1){return{back:n,current:l,forward:r,replaced:h,position:window.history.length,scroll:c?Ga():null}}function v5(n){const{history:l,location:r}=window,h={value:Yu(n,r)},c={value:l.state};c.value||g(h.value,{back:null,current:h.value,forward:null,position:l.length-1,replaced:!0,scroll:null},!0);function g(x,I,S){const $=n.indexOf("#"),B=$>-1?(r.host&&document.querySelector("base")?n:n.slice($))+x:g5()+n+x;try{l[S?"replaceState":"pushState"](I,"",B),c.value=I}catch(P){console.error(P),r[S?"replace":"assign"](B)}}function v(x,I){const S=fe({},l.state,N1(c.value.back,x,c.value.forward,!0),I,{position:c.value.position});g(x,S,!0),h.value=x}function k(x,I){const S=fe({},c.value,l.state,{forward:x,scroll:Ga()});g(S.current,S,!0);const $=fe({},N1(h.value,x,null),{position:S.position+1},I);g(x,$,!1),h.value=x}return{location:h,state:c,push:k,replace:v}}function f5(n){n=a5(n);const l=v5(n),r=w5(n,l.state,l.location,l.replace);function h(g,v=!0){v||r.pauseListeners(),history.go(g)}const c=fe({location:"",base:n,go:h,createHref:h5.bind(null,n)},l,r);return Object.defineProperty(c,"location",{enumerable:!0,get:()=>l.location.value}),Object.defineProperty(c,"state",{enumerLine truncated
|
||||
*/const Wr=typeof window<"u";function t5(n){return n.__esModule||n[Symbol.toStringTag]==="Module"}const fe=Object.assign;function Li(n,l){const r={};for(const h in l){const c=l[h];r[h]=Kn(c)?c.map(n):n(c)}return r}const Wo=()=>{},Kn=Array.isArray,e5=/\/$/,n5=n=>n.replace(e5,"");function Di(n,l,r="/"){let h,c={},g="",v="";const k=l.indexOf("#");let x=l.indexOf("?");return k<x&&k>=0&&(x=-1),x>-1&&(h=l.slice(0,x),g=l.slice(x+1,k>-1?k:l.length),c=n(g)),k>-1&&(h=h||l.slice(0,k),v=l.slice(k,l.length)),h=s5(h??l,r),{fullPath:h+(g&&"?")+g+v,path:h,query:c,hash:v}}function l5(n,l){const r=l.query?n(l.query):"";return l.path+(r&&"?")+r+(l.hash||"")}function A1(n,l){return!l||!n.toLowerCase().startsWith(l.toLowerCase())?n:n.slice(l.length)||"/"}function r5(n,l,r){const h=l.matched.length-1,c=r.matched.length-1;return h>-1&&h===c&&eo(l.matched[h],r.matched[c])&&qu(l.params,r.params)&&n(l.query)===n(r.query)&&l.hash===r.hash}function eo(n,l){return(n.aliasOf||n)===(l.aliasOf||l)}function qu(n,l){if(Object.keys(n).length!==Object.keys(l).length)return!1;for(const r in n)if(!o5(n[r],l[r]))return!1;return!0}function o5(n,l){return Kn(n)?B1(n,l):Kn(l)?B1(l,n):n===l}function B1(n,l){return Kn(l)?n.length===l.length&&n.every((r,h)=>r===l[h]):n.length===1&&n[0]===l}function s5(n,l){if(n.startsWith("/"))return n;if(!n)return l;const r=l.split("/"),h=n.split("/"),c=h[h.length-1];(c===".."||c===".")&&h.push("");let g=r.length-1,v,k;for(v=0;v<h.length;v++)if(k=h[v],k!==".")if(k==="..")g>1&&g--;else break;return r.slice(0,g).join("/")+"/"+h.slice(v-(v===h.length?1:0)).join("/")}var rs;(function(n){n.pop="pop",n.push="push"})(rs||(rs={}));var Xo;(function(n){n.back="back",n.forward="forward",n.unknown=""})(Xo||(Xo={}));function a5(n){if(!n)if(Wr){const l=document.querySelector("base");n=l&&l.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),n5(n)}const i5=/^[^#]+#/;function h5(n,l){return n.replace(i5,"#")+l}function d5(n,l){const r=document.documentElement.getBoundingClientRect(),h=n.getBoundingClientRect();return{behavior:l.behavior,left:h.left-r.left-(l.left||0),top:h.top-r.top-(l.top||0)}}const Ga=()=>({left:window.pageXOffset,top:window.pageYOffset});function c5(n){let l;if("el"in n){const r=n.el,h=typeof r=="string"&&r.startsWith("#"),c=typeof r=="string"?h?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!c)return;l=d5(c,n)}else l=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(l):window.scrollTo(l.left!=null?l.left:window.pageXOffset,l.top!=null?l.top:window.pageYOffset)}function H1(n,l){return(history.state?history.state.position-l:-1)+n}const x0=new Map;function u5(n,l){x0.set(n,l)}function p5(n){const l=x0.get(n);return x0.delete(n),l}let g5=()=>location.protocol+"//"+location.host;function Yu(n,l){const{pathname:r,search:h,hash:c}=l,g=n.indexOf("#");if(g>-1){let k=c.includes(n.slice(g))?n.slice(g).length:1,x=c.slice(k);return x[0]!=="/"&&(x="/"+x),A1(x,"")}return A1(r,n)+h+c}function w5(n,l,r,h){let c=[],g=[],v=null;const k=({state:B})=>{const P=Yu(n,location),D=r.value,F=l.value;let X=0;if(B){if(r.value=P,l.value=B,v&&v===D){v=null;return}X=F?B.position-F.position:0}else h(P);c.forEach(R=>{R(r.value,D,{delta:X,type:rs.pop,direction:X?X>0?Xo.forward:Xo.back:Xo.unknown})})};function x(){v=r.value}function I(B){c.push(B);const P=()=>{const D=c.indexOf(B);D>-1&&c.splice(D,1)};return g.push(P),P}function S(){const{history:B}=window;B.state&&B.replaceState(fe({},B.state,{scroll:Ga()}),"")}function $(){for(const B of g)B();g=[],window.removeEventListener("popstate",k),window.removeEventListener("beforeunload",S)}return window.addEventListener("popstate",k),window.addEventListener("beforeunload",S,{passive:!0}),{pauseListeners:x,listen:I,destroy:$}}function N1(n,l,r,h=!1,c=!1){return{back:n,current:l,forward:r,replaced:h,position:window.history.length,scroll:c?Ga():null}}function v5(n){const{history:l,location:r}=window,h={value:Yu(n,r)},c={value:l.state};c.value||g(h.value,{back:null,current:h.value,forward:null,position:l.length-1,replaced:!0,scroll:null},!0);function g(x,I,S){const $=n.indexOf("#"),B=$>-1?(r.host&&document.querySelector("base")?n:n.slice($))+x:g5()+n+x;try{l[S?"replaceState":"pushState"](I,"",B),c.value=I}catch(P){console.error(P),r[S?"replace":"assign"](B)}}function v(x,I){const S=fe({},l.state,N1(c.value.back,x,c.value.forward,!0),I,{position:c.value.position});g(x,S,!0),h.value=x}function k(x,I){const S=fe({},c.value,l.state,{forward:x,scroll:Ga()});g(S.current,S,!0);const $=fe({},N1(h.value,x,null),{position:S.position+1},I);g(x,$,!1),h.value=x}return{location:h,state:c,push:k,replace:v}}function f5(n){n=a5(n);const l=v5(n),r=w5(n,l.state,l.location,l.replace);function h(g,v=!0){v||r.pauseListeners(),history.go(g)}const c=fe({location:"",base:n,go:h,createHref:h5.bind(null,n)},l,r);return Object.defineProperty(c,"location",{enumerable:!0,get:()=>l.location.value}),Object.defineProperty(c,"state",{enumerLine truncated
|
||||
`).forEach(function(v){c=v.indexOf(":"),r=v.substring(0,c).trim().toLowerCase(),h=v.substring(c+1).trim(),!(!r||l[r]&&lk[r])&&(r==="set-cookie"?l[r]?l[r].push(h):l[r]=[h]:l[r]=l[r]?l[r]+", "+h:h)}),l},K1=Symbol("internals");function Ao(n){return n&&String(n).trim().toLowerCase()}function oa(n){return n===!1||n==null?n:St.isArray(n)?n.map(oa):String(n)}function ok(n){const l=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let h;for(;h=r.exec(n);)l[h[1]]=h[2];return l}const sk=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Ri(n,l,r,h,c){if(St.isFunction(h))return h.call(this,l,r);if(c&&(l=r),!!St.isString(l)){if(St.isString(h))return l.indexOf(h)!==-1;if(St.isRegExp(h))return h.test(l)}}function ak(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(l,r,h)=>r.toUpperCase()+h)}function ik(n,l){const r=St.toCamelCase(" "+l);["get","set","has"].forEach(h=>{Object.defineProperty(n,h+r,{value:function(c,g,v){return this[h].call(this,l,c,g,v)},configurable:!0})})}class ti{constructor(l){l&&this.set(l)}set(l,r,h){const c=this;function g(k,x,I){const S=Ao(x);if(!S)throw new Error("header name must be a non-empty string");const $=St.findKey(c,S);(!$||c[$]===void 0||I===!0||I===void 0&&c[$]!==!1)&&(c[$||x]=oa(k))}const v=(k,x)=>St.forEach(k,(I,S)=>g(I,S,x));return St.isPlainObject(l)||l instanceof this.constructor?v(l,r):St.isString(l)&&(l=l.trim())&&!sk(l)?v(rk(l),r):l!=null&&g(r,l,h),this}get(l,r){if(l=Ao(l),l){const h=St.findKey(this,l);if(h){const c=this[h];if(!r)return c;if(r===!0)return ok(c);if(St.isFunction(r))return r.call(this,c,h);if(St.isRegExp(r))return r.exec(c);throw new TypeError("parser must be boolean|regexp|function")}}}has(l,r){if(l=Ao(l),l){const h=St.findKey(this,l);return!!(h&&this[h]!==void 0&&(!r||Ri(this,this[h],h,r)))}return!1}delete(l,r){const h=this;let c=!1;function g(v){if(v=Ao(v),v){const k=St.findKey(h,v);k&&(!r||Ri(h,h[k],k,r))&&(delete h[k],c=!0)}}return St.isArray(l)?l.forEach(g):g(l),c}clear(l){const r=Object.keys(this);let h=r.length,c=!1;for(;h--;){const g=r[h];(!l||Ri(this,this[g],g,l,!0))&&(delete this[g],c=!0)}return c}normalize(l){const r=this,h={};return St.forEach(this,(c,g)=>{const v=St.findKey(h,g);if(v){r[v]=oa(c),delete r[g];return}const k=l?ak(g):String(g).trim();k!==g&&delete r[g],r[k]=oa(c),h[k]=!0}),this}concat(...l){return this.constructor.concat(this,...l)}toJSON(l){const r=Object.create(null);return St.forEach(this,(h,c)=>{h!=null&&h!==!1&&(r[c]=l&&St.isArray(h)?h.join(", "):h)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([l,r])=>l+": "+r).join(`
|
||||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(l){return l instanceof this?l:new this(l)}static concat(l,...r){const h=new this(l);return r.forEach(c=>h.set(c)),h}static accessor(l){const h=(this[K1]=this[K1]={accessors:{}}).accessors,c=this.prototype;function g(v){const k=Ao(v);h[k]||(ik(c,v),h[k]=!0)}return St.isArray(l)?l.forEach(g):g(l),this}}ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);St.reduceDescriptors(ti.prototype,({value:n},l)=>{let r=l[0].toUpperCase()+l.slice(1);return{get:()=>n,set(h){this[r]=h}}});St.freezeMethods(ti);const ml=ti;function Ti(n,l){const r=this||Zh,h=l||r,c=ml.from(h.headers);let g=h.data;return St.forEach(n,function(k){g=k.call(r,g,c.normalize(),l?l.status:void 0)}),c.normalize(),g}function bp(n){return!!(n&&n.__CANCEL__)}function Cs(n,l,r){pe.call(this,n??"canceled",pe.ERR_CANCELED,l,r),this.name="CanceledError"}St.inherits(Cs,pe,{__CANCEL__:!0});function hk(n,l,r){const h=r.config.validateStatus;!r.status||!h||h(r.status)?n(r):l(new pe("Request failed with status code "+r.status,[pe.ERR_BAD_REQUEST,pe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const dk=nl.hasStandardBrowserEnv?{write(n,l,r,h,c,g){const v=[n+"="+encodeURIComponent(l)];St.isNumber(r)&&v.push("expires="+new Date(r).toGMTString()),St.isString(h)&&v.push("path="+h),St.isString(c)&&v.push("domain="+c),g===!0&&v.push("secure"),document.cookie=v.join("; ")},read(n){const l=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return l?decodeURIComponent(l[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ck(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function uk(n,l){return l?n.replace(/\/+$/,"")+"/"+l.replace(/^\/+/,""):n}function Mp(n,l){return n&&!ck(l)?uk(n,l):l}const pk=nl.hasStandardBrowserEnv?function(){const l=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let h;function c(g){let v=g;return l&&(r.setAttribute("href",v),v=r.href),r.setAttribute("href",v),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return h=c(window.location.href),function(v){const k=St.isString(v)?c(v):v;return k.protocol===h.protocol&&k.host===h.host}}():function(){return function(){return!0}}();function gk(n){const l=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return l&&l[1]||""}function wk(n,l){n=n||10;const r=new Array(n),h=new Array(n);let c=0,g=0,v;return l=l!==void 0?l:1e3,function(x){const I=Date.now(),S=h[g];v||(v=I),r[c]=x,h[c]=I;let $=g,B=0;for(;$!==c;)B+=r[$++],$=$%n;if(c=(c+1)%n,c===g&&(g=(g+1)%n),I-v<l)return;const P=S&&I-S;return P?Math.round(B*1e3/P):void 0}}function Q1(n,l){let r=0;const h=wk(50,250);return c=>{const g=c.loaded,v=c.lengthComputable?c.total:void 0,k=g-r,x=h(k),I=g<=v;r=g;const S={loaded:g,total:v,progress:v?g/v:void 0,bytes:k,rate:x||void 0,estimated:x&&v&&I?(v-g)/x:void 0,event:c};S[l?"download":"upload"]=!0,n(S)}}const vk=typeof XMLHttpRequest<"u",fk=vk&&function(n){return new Promise(function(r,h){let c=n.data;const g=ml.from(n.headers).normalize();let{responseType:v,withXSRFToken:k}=n,x;function I(){n.cancelToken&&n.cancelToken.unsubscribe(x),n.signal&&n.signal.removeEventListener("abort",x)}let S;if(St.isFormData(c)){if(nl.hasStandardBrowserEnv||nl.hasStandardBrowserWebWorkerEnv)g.setContentType(!1);else if((S=g.getContentType())!==!1){const[F,...X]=S?S.split(";").map(R=>R.trim()).filter(Boolean):[];g.setContentType([F||"multipart/form-data",...X].join("; "))}}let $=new XMLHttpRequest;if(n.auth){const F=n.auth.username||"",X=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";g.set("Authorization","Basic "+btoa(F+":"+X))}const B=Mp(n.baseURL,n.url);$.open(n.method.toUpperCase(),vp(B,n.params,n.paramsSerializer),!0),$.timeout=n.timeout;function P(){if(!$)return;const F=ml.from("getAllResponseHeaders"in $&&$.getAllResponseHeaders()),R={data:!v||v==="text"||v==="json"?$.responseText:$.response,status:$.status,statusText:$.statusText,headers:F,config:n,request:$};hk(function(U){r(U),I()},function(U){h(U),I()},R),$=null}if("onloadend"in $?$.onloadend=P:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.indexOf("file:")===0)||setTimeout(P)},$.onabort=function(){$&&(h(new pe("Request aborted",pe.ECONNABORTED,n,$)),$=null)},$.onerror=function(){h(new pe("Network Error",pe.ERR_NETWORK,n,$)),$=null},$.ontimeout=function(){let X=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const R=n.transitional||fp;n.timeoutErrorMessage&&(X=n.timeoutErrorMessage),h(new pe(X,R.clarifyTimeoutError?pe.ETIMEDOUT:pe.ECONNABORTED,n,$)),$=null},nl.hasStandardBrowserEnv&&(k&&St.isFunction(k)&&(k=k(n)),k||k!==!1&&pk(B))){const F=n.xsrfHeaderName&&n.xsrfCookieName&&dk
Line truncated
|
||||
`+g.map(J1).join(`
|
||||
`):" "+J1(g[0]):"as no adapter specified";throw new pe("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return h},adapters:S0};function Ei(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Cs(null,n)}function td(n){return Ei(n),n.headers=ml.from(n.headers),n.data=Ti.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),xp.getAdapter(n.adapter||Zh.adapter)(n).then(function(h){return Ei(n),h.data=Ti.call(n,n.transformResponse,h),h.headers=ml.from(h.headers),h},function(h){return bp(h)||(Ei(n),h&&h.response&&(h.response.data=Ti.call(n,n.transformResponse,h.response),h.response.headers=ml.from(h.response.headers))),Promise.reject(h)})}const ed=n=>n instanceof ml?n.toJSON():n;function lo(n,l){l=l||{};const r={};function h(I,S,$){return St.isPlainObject(I)&&St.isPlainObject(S)?St.merge.call({caseless:$},I,S):St.isPlainObject(S)?St.merge({},S):St.isArray(S)?S.slice():S}function c(I,S,$){if(St.isUndefined(S)){if(!St.isUndefined(I))return h(void 0,I,$)}else return h(I,S,$)}function g(I,S){if(!St.isUndefined(S))return h(void 0,S)}function v(I,S){if(St.isUndefined(S)){if(!St.isUndefined(I))return h(void 0,I)}else return h(void 0,S)}function k(I,S,$){if($ in l)return h(I,S);if($ in n)return h(void 0,I)}const x={url:g,method:g,data:g,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:k,headers:(I,S)=>c(ed(I),ed(S),!0)};return St.forEach(Object.keys(Object.assign({},n,l)),function(S){const $=x[S]||c,B=$(n[S],l[S],S);St.isUndefined(B)&&$!==k||(r[S]=B)}),r}const zp="1.6.2",Kh={};["object","boolean","number","function","string","symbol"].forEach((n,l)=>{Kh[n]=function(h){return typeof h===n||"a"+(l<1?"n ":" ")+n}});const nd={};Kh.transitional=function(l,r,h){function c(g,v){return"[Axios v"+zp+"] Transitional option '"+g+"'"+v+(h?". "+h:"")}return(g,v,k)=>{if(l===!1)throw new pe(c(v," has been removed"+(r?" in "+r:"")),pe.ERR_DEPRECATED);return r&&!nd[v]&&(nd[v]=!0,console.warn(c(v," has been deprecated since v"+r+" and will be removed in the near future"))),l?l(g,v,k):!0}};function kk(n,l,r){if(typeof n!="object")throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);const h=Object.keys(n);let c=h.length;for(;c-- >0;){const g=h[c],v=l[g];if(v){const k=n[g],x=k===void 0||v(k,g,n);if(x!==!0)throw new pe("option "+g+" must be "+x,pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new pe("Unknown option "+g,pe.ERR_BAD_OPTION)}}const $0={assertOptions:kk,validators:Kh},Ll=$0.validators;class va{constructor(l){this.defaults=l,this.interceptors={request:new Z1,response:new Z1}}request(l,r){typeof l=="string"?(r=r||{},r.url=l):r=l||{},r=lo(this.defaults,r);const{transitional:h,paramsSerializer:c,headers:g}=r;h!==void 0&&$0.assertOptions(h,{silentJSONParsing:Ll.transitional(Ll.boolean),forcedJSONParsing:Ll.transitional(Ll.boolean),clarifyTimeoutError:Ll.transitional(Ll.boolean)},!1),c!=null&&(St.isFunction(c)?r.paramsSerializer={serialize:c}:$0.assertOptions(c,{encode:Ll.function,serialize:Ll.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let v=g&&St.merge(g.common,g[r.method]);g&&St.forEach(["delete","get","head","post","put","patch","common"],D=>{delete g[D]}),r.headers=ml.concat(v,g);const k=[];let x=!0;this.interceptors.request.forEach(function(F){typeof F.runWhen=="function"&&F.runWhen(r)===!1||(x=x&&F.synchronous,k.unshift(F.fulfilled,F.rejected))});const I=[];this.interceptors.response.forEach(function(F){I.push(F.fulfilled,F.rejected)});let S,$=0,B;if(!x){const D=[td.bind(this),void 0];for(D.unshift.apply(D,k),D.push.apply(D,I),B=D.length,S=Promise.resolve(r);$<B;)S=S.then(D[$++],D[$++]);return S}B=k.length;let P=r;for($=0;$<B;){const D=k[$++],F=k[$++];try{P=D(P)}catch(X){F.call(this,X);break}}try{S=td.call(this,P)}catch(D){return Promise.reject(D)}for($=0,B=I.length;$<B;)S=S.then(I[$++],I[$++]);return S}getUri(l){l=lo(this.defaults,l);const r=Mp(l.baseURL,l.url);return vp(r,l.params,l.paramsSerializer)}}St.forEach(["delete","get","head","options"],function(l){va.prototype[l]=function(r,h){return this.request(lo(h||{},{method:l,url:r,data:(h||{}).data}))}});St.forEach(["post","put","patch"],function(l){function r(h){return function(g,v,k){return this.request(lo(k||{},{method:l,headers:h?{"Content-Type":"multipart/form-data"}:{},url:g,data:v}))}}va.prototype[l]=r(),va.prototype[l+"Form"]=r(!0)});const sa=va;class Qh{constructor(l){if(typeof l!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(g){r=g});const h=this;this.promise.then(c=>{if(!h._list
Line truncated
|
||||
`):" "+J1(g[0]):"as no adapter specified";throw new pe("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return h},adapters:S0};function Ei(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Cs(null,n)}function td(n){return Ei(n),n.headers=ml.from(n.headers),n.data=Ti.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),xp.getAdapter(n.adapter||Zh.adapter)(n).then(function(h){return Ei(n),h.data=Ti.call(n,n.transformResponse,h),h.headers=ml.from(h.headers),h},function(h){return bp(h)||(Ei(n),h&&h.response&&(h.response.data=Ti.call(n,n.transformResponse,h.response),h.response.headers=ml.from(h.response.headers))),Promise.reject(h)})}const ed=n=>n instanceof ml?n.toJSON():n;function lo(n,l){l=l||{};const r={};function h(I,S,$){return St.isPlainObject(I)&&St.isPlainObject(S)?St.merge.call({caseless:$},I,S):St.isPlainObject(S)?St.merge({},S):St.isArray(S)?S.slice():S}function c(I,S,$){if(St.isUndefined(S)){if(!St.isUndefined(I))return h(void 0,I,$)}else return h(I,S,$)}function g(I,S){if(!St.isUndefined(S))return h(void 0,S)}function v(I,S){if(St.isUndefined(S)){if(!St.isUndefined(I))return h(void 0,I)}else return h(void 0,S)}function k(I,S,$){if($ in l)return h(I,S);if($ in n)return h(void 0,I)}const x={url:g,method:g,data:g,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:k,headers:(I,S)=>c(ed(I),ed(S),!0)};return St.forEach(Object.keys(Object.assign({},n,l)),function(S){const $=x[S]||c,B=$(n[S],l[S],S);St.isUndefined(B)&&$!==k||(r[S]=B)}),r}const zp="1.6.2",Kh={};["object","boolean","number","function","string","symbol"].forEach((n,l)=>{Kh[n]=function(h){return typeof h===n||"a"+(l<1?"n ":" ")+n}});const nd={};Kh.transitional=function(l,r,h){function c(g,v){return"[Axios v"+zp+"] Transitional option '"+g+"'"+v+(h?". "+h:"")}return(g,v,k)=>{if(l===!1)throw new pe(c(v," has been removed"+(r?" in "+r:"")),pe.ERR_DEPRECATED);return r&&!nd[v]&&(nd[v]=!0,console.warn(c(v," has been deprecated since v"+r+" and will be removed in the near future"))),l?l(g,v,k):!0}};function kk(n,l,r){if(typeof n!="object")throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);const h=Object.keys(n);let c=h.length;for(;c-- >0;){const g=h[c],v=l[g];if(v){const k=n[g],x=k===void 0||v(k,g,n);if(x!==!0)throw new pe("option "+g+" must be "+x,pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new pe("Unknown option "+g,pe.ERR_BAD_OPTION)}}const $0={assertOptions:kk,validators:Kh},Ll=$0.validators;class va{constructor(l){this.defaults=l,this.interceptors={request:new Z1,response:new Z1}}request(l,r){typeof l=="string"?(r=r||{},r.url=l):r=l||{},r=lo(this.defaults,r);const{transitional:h,paramsSerializer:c,headers:g}=r;h!==void 0&&$0.assertOptions(h,{silentJSONParsing:Ll.transitional(Ll.boolean),forcedJSONParsing:Ll.transitional(Ll.boolean),clarifyTimeoutError:Ll.transitional(Ll.boolean)},!1),c!=null&&(St.isFunction(c)?r.paramsSerializer={serialize:c}:$0.assertOptions(c,{encode:Ll.function,serialize:Ll.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let v=g&&St.merge(g.common,g[r.method]);g&&St.forEach(["delete","get","head","post","put","patch","common"],D=>{delete g[D]}),r.headers=ml.concat(v,g);const k=[];let x=!0;this.interceptors.request.forEach(function(F){typeof F.runWhen=="function"&&F.runWhen(r)===!1||(x=x&&F.synchronous,k.unshift(F.fulfilled,F.rejected))});const I=[];this.interceptors.response.forEach(function(F){I.push(F.fulfilled,F.rejected)});let S,$=0,B;if(!x){const D=[td.bind(this),void 0];for(D.unshift.apply(D,k),D.push.apply(D,I),B=D.length,S=Promise.resolve(r);$<B;)S=S.then(D[$++],D[$++]);return S}B=k.length;let P=r;for($=0;$<B;){const D=k[$++],F=k[$++];try{P=D(P)}catch(X){F.call(this,X);break}}try{S=td.call(this,P)}catch(D){return Promise.reject(D)}for($=0,B=I.length;$<B;)S=S.then(I[$++],I[$++]);return S}getUri(l){l=lo(this.defaults,l);const r=Mp(l.baseURL,l.url);return vp(r,l.params,l.paramsSerializer)}}St.forEach(["delete","get","head","options"],function(l){va.prototype[l]=function(r,h){return this.request(lo(h||{},{method:l,url:r,data:(h||{}).data}))}});St.forEach(["post","put","patch"],function(l){function r(h){return function(g,v,k){return this.request(lo(k||{},{method:l,headers:h?{"Content-Type":"multipart/form-data"}:{},url:g,data:v}))}}va.prototype[l]=r(),va.prototype[l+"Form"]=r(!0)});const sa=va;class Qh{constructor(l){if(typeof l!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(g){r=g});const h=this;this.promise.then(c=>{if(!h._list
Line truncated
|
||||
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function bl(n){const{h:l,s:r,v:h,a:c}=n,g=k=>{const x=(k+l/60)%6;return h-h*r*Math.max(Math.min(x,4-x,1),0)},v=[g(5),g(3),g(1)].map(k=>Math.round(k*255));return{r:v[0],g:v[1],b:v[2],a:c}}function xd(n){return bl(o2(n))}function ei(n){if(!n)return{h:0,s:1,v:1,a:1};const l=n.r/255,r=n.g/255,h=n.b/255,c=Math.max(l,r,h),g=Math.min(l,r,h);let v=0;c!==g&&(c===l?v=60*(0+(r-h)/(c-g)):c===r?v=60*(2+(h-l)/(c-g)):c===h&&(v=60*(4+(l-r)/(c-g)))),v<0&&(v=v+360);const k=c===0?0:(c-g)/c,x=[v,k,c];return{h:x[0],s:x[1],v:x[2],a:n.a}}function Op(n){const{h:l,s:r,v:h,a:c}=n,g=h-h*r/2,v=g===1||g===0?0:(h-g)/Math.min(g,1-g);return{h:l,s:v,l:g,a:c}}function o2(n){const{h:l,s:r,l:h,a:c}=n,g=h+r*Math.min(h,1-h),v=g===0?0:2-2*h/g;return{h:l,s:v,v:g,a:c}}function Fp(n){let{r:l,g:r,b:h,a:c}=n;return c===void 0?`rgb(${l}, ${r}, ${h})`:`rgba(${l}, ${r}, ${h}, ${c})`}function Rp(n){return Fp(bl(n))}function Ks(n){const l=Math.round(n).toString(16);return("00".substr(0,2-l.length)+l).toUpperCase()}function Tp(n){let{r:l,g:r,b:h,a:c}=n;return`#${[Ks(l),Ks(r),Ks(h),c!==void 0?Ks(Math.round(c*255)):""].join("")}`}function Ep(n){n=t6(n);let[l,r,h,c]=Nk(n,2).map(g=>parseInt(g,16));return c=c===void 0?c:c/255,{r:l,g:r,b:h,a:c}}function Jk(n){const l=Ep(n);return ei(l)}function Vp(n){return Tp(bl(n))}function t6(n){return n.startsWith("#")&&(n=n.slice(1)),n=n.replace(/([^0-9a-f])/gi,"F"),(n.length===3||n.length===4)&&(n=n.split("").map(l=>l+l).join("")),n.length!==6&&(n=sd(sd(n,6),8,"F")),n}function e6(n,l){const r=Pp(r2(n));return r[0]=r[0]+l*10,Dp(Lp(r))}function n6(n,l){const r=Pp(r2(n));return r[0]=r[0]-l*10,Dp(Lp(r))}function D0(n){const l=Yn(n);return r2(l)[1]}function l6(n,l){const r=D0(n),h=D0(l),c=Math.max(r,h),g=Math.min(r,h);return(c+.05)/(g+.05)}function _p(n){const l=Math.abs(kd(Yn(0),Yn(n)));return Math.abs(kd(Yn(16777215),Yn(n)))>Math.min(l,50)?"#fff":"#000"}function mt(n,l){return r=>Object.keys(n).reduce((h,c)=>{const v=typeof n[c]=="object"&&n[c]!=null&&!Array.isArray(n[c])?n[c]:{type:n[c]};return r&&c in r?h[c]={...v,default:r[c]}:h[c]=v,l&&!h[c].source&&(h[c].source=l),h},{})}const Xt=mt({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component");function Fn(n){if(n._setup=n._setup??n.setup,!n.name)return n;if(n._setup){n.props=mt(n.props??{},n.name)();const l=Object.keys(n.props);n.filterProps=function(h){return Mr(h,l,["class","style"])},n.props._as=String,n.setup=function(h,c){const g=i2();if(!g.value)return n._setup(h,c);const{props:v,provideSubDefaults:k}=c6(h,h._as??n.name,g),x=n._setup(v,c);return k(),x}}return n}function Bt(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return l=>(n?Fn:Cr)(l)}function Qn(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",r=arguments.length>2?arguments[2]:void 0;return Bt()({name:r??Il(Sn(n.replace(/__/g,"-"))),props:{tag:{type:String,default:l},...Xt()},setup(h,c){let{slots:g}=c;return()=>{var v;return Ln(h.tag,{class:[n,h.class],style:h.style},(v=g.default)==null?void 0:v.call(g))}}})}function Wp(n){if(typeof n.getRootNode!="function"){for(;n.parentNode;)n=n.parentNode;return n!==document?null:document}const l=n.getRootNode();return l!==document&&l.getRootNode({composed:!0})!==document?null:l}const as="cubic-bezier(0.4, 0, 0.2, 1)",r6="cubic-bezier(0.0, 0, 0.2, 1)",o6="cubic-bezier(0.4, 0, 1, 1)";function Ye(n,l){const r=al();if(!r)throw new Error(`[Vuetify] ${n} ${l||"must be called from inside a setup function"}`);return r}function Cl(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const l=Ye(n).type;return vr((l==null?void 0:l.aliasName)||(l==null?void 0:l.name))}let Xp=0,ia=new WeakMap;function hn(){const n=Ye("getUid");if(ia.has(n))return ia.get(n);{const l=Xp++;return ia.set(n,l),l}}hn.reset=()=>{Xp=0,ia=new WeakMap};function s2(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;n;){if(l?s6(n):a2(n))return n;n=n.parentElement}return document.scrollingElement}function Ma(n,l){const r=[];if(l&&n&&!l.contains(n))return r;for(;n&&(a2(n)&&r.push(n),n!==l);)n=n.parentElement;return r}function a2(n){if(!n||n.nodeType!==Node.ELEMENT_NODE)return!1;const l=window.getComputedStyle(n);return l.overflowY==="scroll"||l.overflowY==="auto"&&n.scrollHeight>n.clientHeight}function s6(n){if(!n||n.nodeType!==Node.ELEMENT_NODE)return!1;const l=window.getComputedStyle(n);return["scroll","auto"].includes(l.overflowY)}function a6(n){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ye("injectSelf");const{provides:r}=l;if(r&&n in r)return r[n]}function i6(n){for(;n;){if(window.getComputedStyle(n).position==="fixed")return!0;n=n.offsetParent}return!1}function Dt(n){const l=Ye("useRender");l.render=n}const oo=Symbol.for("vuetify:defaults");function h6(n){return Lt(n)}function i2(){const n=de(oo);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function Te(n,l){const r=i2(),h=Lt(n),c=q(
Line truncated
|
||||
`,...r.map(h=>` ${h};
|
||||
`),`}
|
||||
@@ -1,4 +1,4 @@
|
||||
import{as as K,at as Y,au as V}from"./index-5ac7c267.js";var C={exports:{}};const $={},k=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),z=K(k);/**
|
||||
import{as as K,at as Y,au as V}from"./index-b457b676.js";var C={exports:{}};const $={},k=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),z=K(k);/**
|
||||
* [js-md5]{@link https://github.com/emn178/js-md5}
|
||||
*
|
||||
* @namespace md5
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@@ -11,7 +11,7 @@
|
||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap"
|
||||
/>
|
||||
<title>AstrBot - 仪表盘</title>
|
||||
<script type="module" crossorigin src="/assets/index-5ac7c267.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-b457b676.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-0f1523f3.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||