fix: 修复仪表盘在检测重启的时候的问题
This commit is contained in:
1 parent
4976e81ea4
commit
9d8308ace0
13 files changed
+12
-12
No files matched your search
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{k as e,o as a,c as t,w as o,b as s,u as n,R as r,T as c}from"./index-3360c831.js";const f=e({__name:"BlankLayout",setup(u){return(p,_)=>(a(),t(r,null,{default:o(()=>[s(n(c))]),_:1}))}});export{f as default};
|
||||
import{k as e,o as a,c as t,w as o,b as s,u as n,R as r,T as c}from"./index-59964cc6.js";const f=e({__name:"BlankLayout",setup(u){return(p,_)=>(a(),t(r,null,{default:o(()=>[s(n(c))]),_:1}))}});export{f as default};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{k as Be,s as te,X as x,a6 as Le,a7 as F,a8 as X,a9 as ve,v as _e,aa as oe,ab as be,U as ee,o as d,l as h,t as C,g as S,b as o,w as n,F as M,r as j,n as v,c as f,W as he,H,ac as pe,a0 as Ve,a1 as ye,V as we,A as Ce,y as B,f as Se,e as b,ad as Ue,D as Me,B as G,a2 as ze,q as de,ae as Ne,af as Y,E as D,ag as Q,ah as I,ai as k,aj as A,u as De,ak as Z,_ as se,$ as ue}from"./index-3360c831.js";import{_ as Ie}from"./_plugin-vue_export-helper-c27b6911.js";import{W as Oe}from"./WaitingForRestart-dd7c3e40.js";var ke=Object.defineProperty,Ae=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,me=(l,e,a)=>e in l?ke(l,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[e]=a,R=(l,e)=>{for(var a in e||(e={}))qe.call(e,a)&&me(l,a,e[a]);if(re)for(var a of re(e))We.call(e,a)&&me(l,a,e[a]);return l},He=(l,e)=>Ae(l,Fe(e));const $={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};function Je(l,e){const a=x(()=>{const{width:u,height:t}=l;return He(R({},$.wrapper),{width:u,height:t})}),m=x(()=>R(R({},$.fullWidth),!e.value&&$.hide));return{wrapperStyle:a,containerStyle:m}}function Xe(){const l=te(oe.__getMonacoInstance()),e=_e(!1);let a;return ve(()=>{l.value||(a=oe.init(),a.then(u=>l.value=u).catch(u=>{(u==null?void 0:u.type)!=="cancelation"&&(e.value=!0,console.error("Monaco initialization error:",u))}))}),{monacoRef:l,unload:()=>a==null?void 0:a.cancel(),isLoadFailed:e}}function fe(l){return typeof l=="function"?l():l}function ae(l){return l===void 0}function Pe(l,e,a,m){return Ge(l,m)||Ye(l,e,a,m)}function Ge(l,e){return l.editor.getModel(Ke(l,e))}function Ye(l,e,a,m){return l.editor.createModel(e,a,m?Ke(l,m):void 0)}function Ke(l,e){return l.Uri.parse(e)}var Qe=Object.defineProperty,ce=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ge=(l,e,a)=>e in l?Qe(l,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[e]=a,$e=(l,e)=>{for(var a in e||(e={}))Ze.call(e,a)&&ge(l,a,e[a]);if(ce)for(var a of ce(e))Re.call(e,a)&&ge(l,a,e[a]);return l};const xe={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};var Ee=Be({name:"VueMonacoEditor",model:{prop:"value",event:"update:value"},props:{defaultValue:String,defaultPath:String,defaultLanguage:String,value:String,language:String,path:String,theme:{type:String,default:"vs"},line:Number,options:{type:Object,default:()=>({})},overrideServices:{type:Object,default:()=>({})},saveViewState:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},className:String},emits:["update:value","beforeMount","mount","change","validate"],setup(l,e){const a=new Map,m=te(null),{monacoRef:u,unload:t,isLoadFailed:r}=Xe(),{editorRef:s}=ea(e,l,u,m),{disposeValidator:p}=aa(e,l,u,s),V=x(()=>!!u.value&&!!s.value),{wrapperStyle:i,containerStyle:O}=Je(l,V);return Le(()=>{var c,y;(c=p.value)==null||c.call(p),s.value?((y=s.value.getModel())==null||y.dispose(),s.value.dispose()):t()}),F([()=>l.path,()=>l.value,()=>l.language,()=>l.line],([c,y,U,w],[P,L,K,E])=>{if(V.value){if(c!==P){const T=Pe(u.value,y||l.defaultValue||"",U||l.defaultLanguage||"",c||l.defaultPath||"");l.saveViewState&&a.set(P,s.value.saveViewState()),s.value.setModel(T),l.saveViewState&&s.value.restoreViewState(a.get(c)),ae(w)||s.value.revealLine(w);return}s.value.getValue()!==y&&s.value.setValue(y),U!==K&&u.value.editor.setModelLanguage(s.value.getModel(),U),!ae(w)&&w!==E&&s.value.revealLine(w)}}),F(()=>l.options,c=>s.value&&s.value.updateOptions(c),{deep:!0}),F(()=>l.theme,c=>u.value&&u.value.editor.setTheme(c)),{containerRef:m,isEditorReady:V,isLoadFailed:r,wrapperStyle:i,containerStyle:O}},render(){const{$slots:l,isEditorReady:e,isLoadFailed:a,wrapperStyle:m,containerStyle:u,className:t}=this;return X("div",{style:m},[!e&&X("div",{style:xe},a?l.failure?fe(l.failure):"load failed":l.default?fe(l.default):"loading..."),X("div",{ref:"containerRef",key:"monaco_editor_container",style:u,class:t})])}});function ea({emit:l},e,a,m){const u=te(null);ve(()=>{const r=F(a,()=>{m.value&&a.value&&(be(()=>r()),t())},{immediate:!0})});function t(){var r;if(!m.value||!a.value||u.value)return;l("beforeMount",a.value);const s=e.path||e.defaultPath,p=Pe(a.value,e.value||e.defaultValue||"",e.language||e.defaultLanguage||"",s||"");u.value=a.value.editor.create(m.value,$e({model:p,theme:e.theme,automaticLayout:!0,autoIndent:"brackets",formatOnPaste:!0,formatOnType:!0},e.options),e.overrideServices),(r=u.value)==null||r.onDidChangeModelContent(V=>{const i=u.value.getValue();i!==e.value&&(l("update:value",i),l("change",i,V))}),u.value&&!ae(e.line)&&u.value.revealLine(e.line),l("mount",u.value,a.value)}return{editorRef:u}}function aa({emit:l},e,a,m){const u=_e(null),t=F([a,m],()=>{if(a.value&&m.value){be(()=>t());const r=a.value.editoLine truncated
|
||||
import{k as Be,s as te,X as x,a6 as Le,a7 as F,a8 as X,a9 as ve,v as _e,aa as oe,ab as be,U as ee,o as d,l as h,t as C,g as S,b as o,w as n,F as M,r as j,n as v,c as f,W as he,H,ac as pe,a0 as Ve,a1 as ye,V as we,A as Ce,y as B,f as Se,e as b,ad as Ue,D as Me,B as G,a2 as ze,q as de,ae as Ne,af as Y,E as D,ag as Q,ah as I,ai as k,aj as A,u as De,ak as Z,_ as se,$ as ue}from"./index-59964cc6.js";import{_ as Ie}from"./_plugin-vue_export-helper-c27b6911.js";import{W as Oe}from"./WaitingForRestart-47f65a77.js";var ke=Object.defineProperty,Ae=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,me=(l,e,a)=>e in l?ke(l,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[e]=a,R=(l,e)=>{for(var a in e||(e={}))qe.call(e,a)&&me(l,a,e[a]);if(re)for(var a of re(e))We.call(e,a)&&me(l,a,e[a]);return l},He=(l,e)=>Ae(l,Fe(e));const $={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};function Je(l,e){const a=x(()=>{const{width:u,height:t}=l;return He(R({},$.wrapper),{width:u,height:t})}),m=x(()=>R(R({},$.fullWidth),!e.value&&$.hide));return{wrapperStyle:a,containerStyle:m}}function Xe(){const l=te(oe.__getMonacoInstance()),e=_e(!1);let a;return ve(()=>{l.value||(a=oe.init(),a.then(u=>l.value=u).catch(u=>{(u==null?void 0:u.type)!=="cancelation"&&(e.value=!0,console.error("Monaco initialization error:",u))}))}),{monacoRef:l,unload:()=>a==null?void 0:a.cancel(),isLoadFailed:e}}function fe(l){return typeof l=="function"?l():l}function ae(l){return l===void 0}function Pe(l,e,a,m){return Ge(l,m)||Ye(l,e,a,m)}function Ge(l,e){return l.editor.getModel(Ke(l,e))}function Ye(l,e,a,m){return l.editor.createModel(e,a,m?Ke(l,m):void 0)}function Ke(l,e){return l.Uri.parse(e)}var Qe=Object.defineProperty,ce=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ge=(l,e,a)=>e in l?Qe(l,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[e]=a,$e=(l,e)=>{for(var a in e||(e={}))Ze.call(e,a)&&ge(l,a,e[a]);if(ce)for(var a of ce(e))Re.call(e,a)&&ge(l,a,e[a]);return l};const xe={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};var Ee=Be({name:"VueMonacoEditor",model:{prop:"value",event:"update:value"},props:{defaultValue:String,defaultPath:String,defaultLanguage:String,value:String,language:String,path:String,theme:{type:String,default:"vs"},line:Number,options:{type:Object,default:()=>({})},overrideServices:{type:Object,default:()=>({})},saveViewState:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},className:String},emits:["update:value","beforeMount","mount","change","validate"],setup(l,e){const a=new Map,m=te(null),{monacoRef:u,unload:t,isLoadFailed:r}=Xe(),{editorRef:s}=ea(e,l,u,m),{disposeValidator:p}=aa(e,l,u,s),V=x(()=>!!u.value&&!!s.value),{wrapperStyle:i,containerStyle:O}=Je(l,V);return Le(()=>{var c,y;(c=p.value)==null||c.call(p),s.value?((y=s.value.getModel())==null||y.dispose(),s.value.dispose()):t()}),F([()=>l.path,()=>l.value,()=>l.language,()=>l.line],([c,y,U,w],[P,L,K,E])=>{if(V.value){if(c!==P){const T=Pe(u.value,y||l.defaultValue||"",U||l.defaultLanguage||"",c||l.defaultPath||"");l.saveViewState&&a.set(P,s.value.saveViewState()),s.value.setModel(T),l.saveViewState&&s.value.restoreViewState(a.get(c)),ae(w)||s.value.revealLine(w);return}s.value.getValue()!==y&&s.value.setValue(y),U!==K&&u.value.editor.setModelLanguage(s.value.getModel(),U),!ae(w)&&w!==E&&s.value.revealLine(w)}}),F(()=>l.options,c=>s.value&&s.value.updateOptions(c),{deep:!0}),F(()=>l.theme,c=>u.value&&u.value.editor.setTheme(c)),{containerRef:m,isEditorReady:V,isLoadFailed:r,wrapperStyle:i,containerStyle:O}},render(){const{$slots:l,isEditorReady:e,isLoadFailed:a,wrapperStyle:m,containerStyle:u,className:t}=this;return X("div",{style:m},[!e&&X("div",{style:xe},a?l.failure?fe(l.failure):"load failed":l.default?fe(l.default):"loading..."),X("div",{ref:"containerRef",key:"monaco_editor_container",style:u,class:t})])}});function ea({emit:l},e,a,m){const u=te(null);ve(()=>{const r=F(a,()=>{m.value&&a.value&&(be(()=>r()),t())},{immediate:!0})});function t(){var r;if(!m.value||!a.value||u.value)return;l("beforeMount",a.value);const s=e.path||e.defaultPath,p=Pe(a.value,e.value||e.defaultValue||"",e.language||e.defaultLanguage||"",s||"");u.value=a.value.editor.create(m.value,$e({model:p,theme:e.theme,automaticLayout:!0,autoIndent:"brackets",formatOnPaste:!0,formatOnType:!0},e.options),e.overrideServices),(r=u.value)==null||r.onDidChangeModelContent(V=>{const i=u.value.getValue();i!==e.value&&(l("update:value",i),l("change",i,V))}),u.value&&!ae(e.line)&&u.value.revealLine(e.line),l("mount",u.value,a.value)}return{editorRef:u}}function aa({emit:l},e,a,m){const u=_e(null),t=F([a,m],()=>{if(a.value&&m.value){be(()=>t());const r=a.value.editoLine truncated
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{o as Ce,l as be,n as he,t as ge,b as ye,w as we,y as Ee,F as ke,e as Le}from"./index-3360c831.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,l as be,n as he,t as ge,b as ye,w as we,y as Ee,F as ke,e as Le}from"./index-59964cc6.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
@@ -1 +1 @@
|
||||
import{o as i,c as _,w as e,b as t,n as a,y as m,f as p,L as x,M as l,t as u,D as h,B as r,l as y,z as S,F as w,U as c,W as T,X as C,m as M,r as L,e as j,j as B,q as D}from"./index-3360c831.js";import{_ as $}from"./_plugin-vue_export-helper-c27b6911.js";const P={class:"d-flex align-start mb-3"},F={class:"text-h1 font-weight-medium"},I=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"消息总数",-1),N={name:"TotalMessage",props:["stat"],data:()=>({stat:{message_count:0}}),mounted(){}},R=Object.assign(N,{setup(s){return(o,n)=>(i(),_(r,{elevation:"0",class:"bg-secondary overflow-hidden bubble-shape bubble-secondary-shape"},{default:e(()=>[t(h,null,{default:e(()=>[a("div",P,[t(m,{icon:"",rounded:"sm",color:"darksecondary",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-account-multiple-outline"})]),_:1})]),t(x,null,{default:e(()=>[t(l,{cols:"6"},{default:e(()=>[a("h2",F,u(s.stat.message_count),1),I]),_:1})]),_:1})]),_:1})]),_:1}))}}),z={class:"d-flex align-start mb-3"},H={class:"text-h1 font-weight-medium"},U=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"消息平台数",-1),q={name:"TotalSession",props:["stat"],data:()=>({stat:{platform_count:0}})},E=Object.assign(q,{setup(s){return(o,n)=>(i(),_(r,{elevation:"0",class:"bg-primary overflow-hidden bubble-shape bubble-primary-shape"},{default:e(()=>[t(h,null,{default:e(()=>[a("div",z,[t(m,{icon:"",rounded:"sm",color:"darkprimary",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-account-multiple-outline"})]),_:1})]),t(x,null,{default:e(()=>[t(l,{cols:"6"},{default:e(()=>[a("h2",H,u(s.stat.platform_count),1),U]),_:1})]),_:1})]),_:1})]),_:1}))}}),W={name:"OnlineTime",components:{},props:["stat"],watch:{},data:()=>({stat:{memory:"Loading",running:"Loading"}}),mounted(){}},X={class:"d-flex align-center gap-3"},A={class:"text-h4 font-weight-medium"},G=a("span",{class:"text-subtitle-2 text-medium-emphasis text-white"},"运行时间",-1),J={class:"d-flex align-center gap-3"},K={class:"text-h4 font-weight-medium"},Q=a("span",{class:"text-subtitle-2 text-disabled font-weight-medium"},"占用内存",-1);function Y(s,o,n,f,d,v){return i(),y(w,null,[t(r,{elevation:"0",class:"bg-primary overflow-hidden bubble-shape-sm bubble-primary mb-6"},{default:e(()=>[t(h,{class:"pa-5"},{default:e(()=>[a("div",X,[t(m,{color:"darkprimary",icon:"",rounded:"sm",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-clock"})]),_:1}),a("div",null,[a("h4",A,u(n.stat.running),1),G]),t(S),a("div",null,[t(m,{icon:"",rounded:"sm",variant:"plain"},{default:e(()=>[t(p,{color:"black",icon:"mdi-stop",size:"32"})]),_:1})])])]),_:1})]),_:1}),t(r,{elevation:"0",class:"bubble-shape-sm overflow-hidden bubble-warning"},{default:e(()=>[t(h,{class:"pa-5"},{default:e(()=>{var b,g;return[a("div",J,[t(m,{color:"lightwarning",icon:"",rounded:"sm",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-memory"})]),_:1}),a("div",null,[a("h4",K,u((b=n.stat.memory)==null?void 0:b.process)+" / "+u((g=n.stat.memory)==null?void 0:g.system)+" MiB",1),Q])])]}),_:1})]),_:1})],64)}const Z=$(W,[["render",Y]]),tt=a("span",{class:"text-subtitle-2 text-disabled font-weight-bold"},"总消息趋势",-1),et={class:"mt-4"},at={name:"MessageStat",components:{},props:["stat"],data:()=>({total_cnt:0,select:{state:"Today",abbr:"FL"},items:[{state:"过去 1 天",abbr:"FL"}],chartOptions1:{chart:{type:"area",height:400,fontFamily:"inherit",foreColor:"#a1aab2"},colors:["#5e35b1"],dataLabels:{enabled:!1},stroke:{curve:"smooth",width:1},tooltip:{fixed:{enabled:!1},x:{show:!0,format:"yyyy-MM-dd HH:mm"},y:{title:{formatter:()=>"消息条数 "}}},xaxis:{type:"datetime",title:{text:"时间"}},yaxis:{title:{text:"消息条数"}},grid:{show:!0}},lineChart1:{series:[{name:"消息条数",data:[]}]}}),watch:{stat:{handler:function(s,o){s=s.message_time_series,this.lineChart1.series[0].data=s.map(n=>[new Date(n[0]*1e3).getTime(),n[1]])},deep:!0}}},st=Object.assign(at,{setup(s){return(o,n)=>{const f=c("apexchart");return i(),_(r,{elevation:"0"},{default:e(()=>[t(r,{variant:"outlined"},{default:e(()=>[t(h,null,{default:e(()=>[t(x,null,{default:e(()=>[t(l,{cols:"12",sm:"7"},{default:e(()=>[tt]),_:1}),t(l,{cols:"12",sm:"5"},{default:e(()=>[t(T,{color:"primary",variant:"outlined","hide-details":"",modelValue:o.select,"onUpdate:modelValue":n[0]||(n[0]=d=>o.select=d),items:o.items,"item-title":"state","item-value":"abbr",label:"Select","persistent-hint":"","return-object":"","single-line":""},null,8,["modelValue","items"])]),_:1})]),_:1}),a("div",et,[t(f,{type:"area",height:"280",options:o.chartOptions1,series:o.lineChart1.series,ref:"rtchart"},null,8,["options","series"])])]),_:1})]),_:1})]),_:1})}}}),ot=a("div",{class:"d-flex align-center"},[a("h4",{class:"text-h4 mt-1"},"各平台消息数")],-1),nt={class:"mt-4"},lt={class:"d-inline-flex align-center justify-space-between w-100"},it={class:"text-subtitle-1 text-medium-emphasis font-weight-bold"},rt={class:"ml-auto text-subtitle-1 text-medium-emphasis font-weight-bold"},dt={class:"tLine truncated
|
||||
import{o as i,c as _,w as e,b as t,n as a,y as m,f as p,L as x,M as l,t as u,D as h,B as r,l as y,z as S,F as w,U as c,W as T,X as C,m as M,r as L,e as j,j as B,q as D}from"./index-59964cc6.js";import{_ as $}from"./_plugin-vue_export-helper-c27b6911.js";const P={class:"d-flex align-start mb-3"},F={class:"text-h1 font-weight-medium"},I=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"消息总数",-1),N={name:"TotalMessage",props:["stat"],data:()=>({stat:{message_count:0}}),mounted(){}},R=Object.assign(N,{setup(s){return(o,n)=>(i(),_(r,{elevation:"0",class:"bg-secondary overflow-hidden bubble-shape bubble-secondary-shape"},{default:e(()=>[t(h,null,{default:e(()=>[a("div",P,[t(m,{icon:"",rounded:"sm",color:"darksecondary",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-account-multiple-outline"})]),_:1})]),t(x,null,{default:e(()=>[t(l,{cols:"6"},{default:e(()=>[a("h2",F,u(s.stat.message_count),1),I]),_:1})]),_:1})]),_:1})]),_:1}))}}),z={class:"d-flex align-start mb-3"},H={class:"text-h1 font-weight-medium"},U=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"消息平台数",-1),q={name:"TotalSession",props:["stat"],data:()=>({stat:{platform_count:0}})},E=Object.assign(q,{setup(s){return(o,n)=>(i(),_(r,{elevation:"0",class:"bg-primary overflow-hidden bubble-shape bubble-primary-shape"},{default:e(()=>[t(h,null,{default:e(()=>[a("div",z,[t(m,{icon:"",rounded:"sm",color:"darkprimary",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-account-multiple-outline"})]),_:1})]),t(x,null,{default:e(()=>[t(l,{cols:"6"},{default:e(()=>[a("h2",H,u(s.stat.platform_count),1),U]),_:1})]),_:1})]),_:1})]),_:1}))}}),W={name:"OnlineTime",components:{},props:["stat"],watch:{},data:()=>({stat:{memory:"Loading",running:"Loading"}}),mounted(){}},X={class:"d-flex align-center gap-3"},A={class:"text-h4 font-weight-medium"},G=a("span",{class:"text-subtitle-2 text-medium-emphasis text-white"},"运行时间",-1),J={class:"d-flex align-center gap-3"},K={class:"text-h4 font-weight-medium"},Q=a("span",{class:"text-subtitle-2 text-disabled font-weight-medium"},"占用内存",-1);function Y(s,o,n,f,d,v){return i(),y(w,null,[t(r,{elevation:"0",class:"bg-primary overflow-hidden bubble-shape-sm bubble-primary mb-6"},{default:e(()=>[t(h,{class:"pa-5"},{default:e(()=>[a("div",X,[t(m,{color:"darkprimary",icon:"",rounded:"sm",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-clock"})]),_:1}),a("div",null,[a("h4",A,u(n.stat.running),1),G]),t(S),a("div",null,[t(m,{icon:"",rounded:"sm",variant:"plain"},{default:e(()=>[t(p,{color:"black",icon:"mdi-stop",size:"32"})]),_:1})])])]),_:1})]),_:1}),t(r,{elevation:"0",class:"bubble-shape-sm overflow-hidden bubble-warning"},{default:e(()=>[t(h,{class:"pa-5"},{default:e(()=>{var b,g;return[a("div",J,[t(m,{color:"lightwarning",icon:"",rounded:"sm",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-memory"})]),_:1}),a("div",null,[a("h4",K,u((b=n.stat.memory)==null?void 0:b.process)+" / "+u((g=n.stat.memory)==null?void 0:g.system)+" MiB",1),Q])])]}),_:1})]),_:1})],64)}const Z=$(W,[["render",Y]]),tt=a("span",{class:"text-subtitle-2 text-disabled font-weight-bold"},"总消息趋势",-1),et={class:"mt-4"},at={name:"MessageStat",components:{},props:["stat"],data:()=>({total_cnt:0,select:{state:"Today",abbr:"FL"},items:[{state:"过去 1 天",abbr:"FL"}],chartOptions1:{chart:{type:"area",height:400,fontFamily:"inherit",foreColor:"#a1aab2"},colors:["#5e35b1"],dataLabels:{enabled:!1},stroke:{curve:"smooth",width:1},tooltip:{fixed:{enabled:!1},x:{show:!0,format:"yyyy-MM-dd HH:mm"},y:{title:{formatter:()=>"消息条数 "}}},xaxis:{type:"datetime",title:{text:"时间"}},yaxis:{title:{text:"消息条数"}},grid:{show:!0}},lineChart1:{series:[{name:"消息条数",data:[]}]}}),watch:{stat:{handler:function(s,o){s=s.message_time_series,this.lineChart1.series[0].data=s.map(n=>[new Date(n[0]*1e3).getTime(),n[1]])},deep:!0}}},st=Object.assign(at,{setup(s){return(o,n)=>{const f=c("apexchart");return i(),_(r,{elevation:"0"},{default:e(()=>[t(r,{variant:"outlined"},{default:e(()=>[t(h,null,{default:e(()=>[t(x,null,{default:e(()=>[t(l,{cols:"12",sm:"7"},{default:e(()=>[tt]),_:1}),t(l,{cols:"12",sm:"5"},{default:e(()=>[t(T,{color:"primary",variant:"outlined","hide-details":"",modelValue:o.select,"onUpdate:modelValue":n[0]||(n[0]=d=>o.select=d),items:o.items,"item-title":"state","item-value":"abbr",label:"Select","persistent-hint":"","return-object":"","single-line":""},null,8,["modelValue","items"])]),_:1})]),_:1}),a("div",et,[t(f,{type:"area",height:"280",options:o.chartOptions1,series:o.lineChart1.series,ref:"rtchart"},null,8,["options","series"])])]),_:1})]),_:1})]),_:1})}}}),ot=a("div",{class:"d-flex align-center"},[a("h4",{class:"text-h4 mt-1"},"各平台消息数")],-1),nt={class:"mt-4"},lt={class:"d-inline-flex align-center justify-space-between w-100"},it={class:"text-subtitle-1 text-medium-emphasis font-weight-bold"},rt={class:"ml-auto text-subtitle-1 text-medium-emphasis font-weight-bold"},dt={class:"tLine truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{k as A,o as i,c as r,w as e,b as a,n as d,C as V,e as u,t as p,z as k,y as g,Y as z,G as R,Z as U,D as y,B as C,l as c,_ as j,$ as G,F as f,r as x,a0 as H,H as M,a1 as q,V as N,A as B,g as v,L as b,K as w,a2 as O,q as m,a3 as W,M as _,E as $,J as E,a4 as Z,f as D,a5 as J}from"./index-3360c831.js";import{W as P}from"./WaitingForRestart-dd7c3e40.js";import"./_plugin-vue_export-helper-c27b6911.js";const K={class:"d-sm-flex align-center justify-space-between"},L=A({__name:"ExtensionCard",props:{title:String,link:String},setup(n){const t=n,o=l=>{window.open(l,"_blank")};return(l,s)=>(i(),r(C,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(z,{style:{padding:"10px 14px"}},{default:e(()=>[d("div",K,[a(V,{style:{"font-size":"17px"}},{default:e(()=>[u(p(t.title),1)]),_:1}),a(k),a(g,{variant:"plain",onClick:s[0]||(s[0]=h=>o(t.link))},{default:e(()=>[u("仓库")]),_:1})])]),_:1}),a(R),a(y,null,{default:e(()=>[U(l.$slots,"default")]),_:3})]),_:3}))}}),Y={class:"d-sm-flex align-center justify-space-between"},Q=A({__name:"UiParentCard",props:{title:String},setup(n){const t=n;return(o,l)=>(i(),r(C,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(z,null,{default:e(()=>[d("div",Y,[a(V,null,{default:e(()=>[u(p(t.title),1)]),_:1}),U(o.$slots,"action")])]),_:3}),a(R),a(y,null,{default:e(()=>[U(o.$slots,"default")]),_:3})]),_:3}))}}),F={__name:"ConfigDetailCard",props:{config:Array},setup(n){return(t,o)=>(i(),c(f,null,[j(d("a",null,"该插件没有配置",512),[[G,n.config.length===0]]),(i(!0),c(f,null,x(n.config,l=>(i(),r(Q,{key:l.name,title:l.name,style:{"margin-bottom":"16px"}},{default:e(()=>[(i(!0),c(f,null,x(l.body,s=>(i(),c(f,null,[s.config_type==="item"?(i(),c(f,{key:0},[s.val_type==="bool"?(i(),r(H,{key:0,modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,label:s.name,hint:s.description,color:"primary",inset:""},null,8,["modelValue","onUpdate:modelValue","label","hint"])):s.val_type==="str"?(i(),r(M,{key:1,modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,label:s.name,hint:s.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):s.val_type==="int"?(i(),r(M,{key:2,modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,label:s.name,hint:s.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):s.val_type==="list"?(i(),c(f,{key:3},[d("span",null,p(s.name),1),a(q,{modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,chips:"",clearable:"",label:"请添加",multiple:"","prepend-icon":"mdi-tag-multiple-outline"},{selection:e(({attrs:h,item:S,select:I,selected:T})=>[a(N,B(h,{"model-value":T,closable:"",onClick:I,"onClick:close":mt=>t.remove(S)}),{default:e(()=>[d("strong",null,p(S),1)]),_:2},1040,["model-value","onClick","onClick:close"])]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):v("",!0)],64)):s.config_type==="divider"?(i(),r(R,{key:1,style:{"margin-top":"8px","margin-bottom":"8px"}})):v("",!0)],64))),256))]),_:2},1032,["title"]))),128))],64))}},X=d("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[d("h3",null,"🧩 已安装的插件")],-1),tt={style:{"min-height":"150px","max-height":"150px",overflow:"hidden"}},at={class:"d-flex align-center gap-2"},et=d("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[d("h3",null,"🧩 插件市场")],-1),lt={style:{"min-height":"150px","max-height":"150px",overflow:"hidden"}},nt={class:"d-flex align-center gap-2"},ot=d("span",{class:"text-h5"},"插件配置",-1),st=d("span",{class:"text-h5"},"安装插件",-1),it=d("h3",null,"从 GitHub 上在线下载",-1),dt=d("small",null,"请输入合法的 GitHub 仓库链接,当前仅支持 GitHub。如:https://github.com/Soulter/astrbot_plugin_aiocqhttp",-1),ut=d("h3",null,"从本机上传 .zip 压缩包",-1),rt=d("small",null,"请保证插件文件存在压缩包根目录中的第一个文件夹中(即类似于从 GitHub 仓库页上下载的 Zip 压缩包的格式)。",-1),gt=d("br",null,null,-1),pt={class:"text-h5"},ht={key:0,class:"py-12 text-center"},ct={class:"text-h4 font-weight-bold"},ft={name:"ExtensionPage",components:{ExtensionCard:L,ConfigDetailCard:F,WaitingForRestart:P},data(){return{extension_data:{data:[]},extension_url:"",status:"",dialog:!1,snack_message:"",snack_show:!1,snack_success:"success",loading_:!1,configDialog:!1,extension_config:{},upload_file:null,pluginMarketData:{},loadingDialog:{show:!1,title:"加载中...",statusCode:0,statusMessage:"",result:""}}},mounted(){this.getExtensions(),this.fetchPluginCollection()},methods:{toast(n,t){this.snack_message=n,this.snack_show=!0,this.snack_success=t},onLoadingDialogResult(n,t,o=2e3){this.loadingDialog.statusCode=n,this.loadingDialog.result=t,setTimeout(()=>{this.loadingDialog={show:!1,title:"加载中...",statusCode:0,statusMessage:"",result:""}},o)},getExtensions(){m.get("/api/plugLine truncated
|
||||
import{k as A,o as i,c as r,w as e,b as a,n as d,C as V,e as u,t as p,z as k,y as g,Y as z,G as R,Z as U,D as y,B as C,l as c,_ as j,$ as G,F as f,r as x,a0 as H,H as M,a1 as q,V as N,A as B,g as v,L as b,K as w,a2 as O,q as m,a3 as W,M as _,E as $,J as E,a4 as Z,f as D,a5 as J}from"./index-59964cc6.js";import{W as P}from"./WaitingForRestart-47f65a77.js";import"./_plugin-vue_export-helper-c27b6911.js";const K={class:"d-sm-flex align-center justify-space-between"},L=A({__name:"ExtensionCard",props:{title:String,link:String},setup(n){const t=n,o=l=>{window.open(l,"_blank")};return(l,s)=>(i(),r(C,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(z,{style:{padding:"10px 14px"}},{default:e(()=>[d("div",K,[a(V,{style:{"font-size":"17px"}},{default:e(()=>[u(p(t.title),1)]),_:1}),a(k),a(g,{variant:"plain",onClick:s[0]||(s[0]=h=>o(t.link))},{default:e(()=>[u("仓库")]),_:1})])]),_:1}),a(R),a(y,null,{default:e(()=>[U(l.$slots,"default")]),_:3})]),_:3}))}}),Y={class:"d-sm-flex align-center justify-space-between"},Q=A({__name:"UiParentCard",props:{title:String},setup(n){const t=n;return(o,l)=>(i(),r(C,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(z,null,{default:e(()=>[d("div",Y,[a(V,null,{default:e(()=>[u(p(t.title),1)]),_:1}),U(o.$slots,"action")])]),_:3}),a(R),a(y,null,{default:e(()=>[U(o.$slots,"default")]),_:3})]),_:3}))}}),F={__name:"ConfigDetailCard",props:{config:Array},setup(n){return(t,o)=>(i(),c(f,null,[j(d("a",null,"该插件没有配置",512),[[G,n.config.length===0]]),(i(!0),c(f,null,x(n.config,l=>(i(),r(Q,{key:l.name,title:l.name,style:{"margin-bottom":"16px"}},{default:e(()=>[(i(!0),c(f,null,x(l.body,s=>(i(),c(f,null,[s.config_type==="item"?(i(),c(f,{key:0},[s.val_type==="bool"?(i(),r(H,{key:0,modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,label:s.name,hint:s.description,color:"primary",inset:""},null,8,["modelValue","onUpdate:modelValue","label","hint"])):s.val_type==="str"?(i(),r(M,{key:1,modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,label:s.name,hint:s.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):s.val_type==="int"?(i(),r(M,{key:2,modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,label:s.name,hint:s.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):s.val_type==="list"?(i(),c(f,{key:3},[d("span",null,p(s.name),1),a(q,{modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,chips:"",clearable:"",label:"请添加",multiple:"","prepend-icon":"mdi-tag-multiple-outline"},{selection:e(({attrs:h,item:S,select:I,selected:T})=>[a(N,B(h,{"model-value":T,closable:"",onClick:I,"onClick:close":mt=>t.remove(S)}),{default:e(()=>[d("strong",null,p(S),1)]),_:2},1040,["model-value","onClick","onClick:close"])]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):v("",!0)],64)):s.config_type==="divider"?(i(),r(R,{key:1,style:{"margin-top":"8px","margin-bottom":"8px"}})):v("",!0)],64))),256))]),_:2},1032,["title"]))),128))],64))}},X=d("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[d("h3",null,"🧩 已安装的插件")],-1),tt={style:{"min-height":"150px","max-height":"150px",overflow:"hidden"}},at={class:"d-flex align-center gap-2"},et=d("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[d("h3",null,"🧩 插件市场")],-1),lt={style:{"min-height":"150px","max-height":"150px",overflow:"hidden"}},nt={class:"d-flex align-center gap-2"},ot=d("span",{class:"text-h5"},"插件配置",-1),st=d("span",{class:"text-h5"},"安装插件",-1),it=d("h3",null,"从 GitHub 上在线下载",-1),dt=d("small",null,"请输入合法的 GitHub 仓库链接,当前仅支持 GitHub。如:https://github.com/Soulter/astrbot_plugin_aiocqhttp",-1),ut=d("h3",null,"从本机上传 .zip 压缩包",-1),rt=d("small",null,"请保证插件文件存在压缩包根目录中的第一个文件夹中(即类似于从 GitHub 仓库页上下载的 Zip 压缩包的格式)。",-1),gt=d("br",null,null,-1),pt={class:"text-h5"},ht={key:0,class:"py-12 text-center"},ct={class:"text-h4 font-weight-bold"},ft={name:"ExtensionPage",components:{ExtensionCard:L,ConfigDetailCard:F,WaitingForRestart:P},data(){return{extension_data:{data:[]},extension_url:"",status:"",dialog:!1,snack_message:"",snack_show:!1,snack_success:"success",loading_:!1,configDialog:!1,extension_config:{},upload_file:null,pluginMarketData:{},loadingDialog:{show:!1,title:"加载中...",statusCode:0,statusMessage:"",result:""}}},mounted(){this.getExtensions(),this.fetchPluginCollection()},methods:{toast(n,t){this.snack_message=n,this.snack_show=!0,this.snack_success=t},onLoadingDialogResult(n,t,o=2e3){this.loadingDialog.statusCode=n,this.loadingDialog.result=t,setTimeout(()=>{this.loadingDialog={show:!1,title:"加载中...",statusCode:0,statusMessage:"",result:""}},o)},getExtensions(){m.get("/api/plugLine truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{_ as n}from"./_plugin-vue_export-helper-c27b6911.js";import{o as t,c as a,w as l,B as o,b as s,D as c,n as e}from"./index-3360c831.js";const r={},u=e("div",{style:{display:"flex","flex-direction":"column","justify-content":"center",padding:"24px"}},[e("h3",null,"即将支持。"),e("p",null,"AstrBot 将会支持使用消息记录微调 LLM,并强化人格功能,包括但不限于:"),e("ul",null,[e("li",null,"更像人类的回答"),e("li",null,"长期记忆"),e("li",null,"表情包理解与回复"),e("li",null,"基于兴趣的主动话题展开")])],-1);function i(d,_){return t(),a(o,null,{default:l(()=>[s(c,null,{default:l(()=>[u]),_:1})]),_:1})}const x=n(r,[["render",i]]);export{x as default};
|
||||
import{_ as n}from"./_plugin-vue_export-helper-c27b6911.js";import{o as t,c as a,w as l,B as o,b as s,D as c,n as e}from"./index-59964cc6.js";const r={},u=e("div",{style:{display:"flex","flex-direction":"column","justify-content":"center",padding:"24px"}},[e("h3",null,"即将支持。"),e("p",null,"AstrBot 将会支持使用消息记录微调 LLM,并强化人格功能,包括但不限于:"),e("ul",null,[e("li",null,"更像人类的回答"),e("li",null,"长期记忆"),e("li",null,"表情包理解与回复"),e("li",null,"基于兴趣的主动话题展开")])],-1);function i(d,_){return t(),a(o,null,{default:l(()=>[s(c,null,{default:l(()=>[u]),_:1})]),_:1})}const x=n(r,[["render",i]]);export{x as default};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{d as J,o as v,c as V,a as K,w as t,b as e,V as O,e as d,t as w,f as B,g as D,h as Q,i as X,j as Y,k as A,s as Z,l as T,r as ee,F as te,m as ae,n as o,u as i,p as le,q as x,v as h,x as L,y as p,z as k,A as P,B as U,C as M,D as F,E as I,G as se,H as z,I as b,J as $,K as q,L as ie,M as oe,N as ne,O as de,P as re,Q as ue,R as me,S as ce,T as fe}from"./index-3360c831.js";import{m as H}from"./md5-f9642456.js";const y={Sidebar_drawer:!0,Customizer_drawer:!1,mini_sidebar:!1,fontTheme:"Roboto",inputBg:!1},E=J({id:"customizer",state:()=>({Sidebar_drawer:y.Sidebar_drawer,Customizer_drawer:y.Customizer_drawer,mini_sidebar:y.mini_sidebar,fontTheme:"Poppins",inputBg:y.inputBg}),getters:{},actions:{SET_SIDEBAR_DRAWER(){this.Sidebar_drawer=!this.Sidebar_drawer},SET_MINI_SIDEBAR(a){this.mini_sidebar=a},SET_FONT(a){this.fontTheme=a}}}),pe=[{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"},{title:"模型微调",icon:"mdi-grain",to:"/fine-tune"}],W={__name:"NavItem",props:{item:Object,level:Number},setup(a){return(c,r)=>(v(),V(Y,{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":""},K({prepend:t(()=>[a.item.icon?(v(),V(B,{key:0,size:a.item.iconSize,class:"hide-menu",icon:a.item.icon},null,8,["size","icon"])):D("",!0)]),default:t(()=>[e(Q,null,{default:t(()=>[d(w(a.item.title),1)]),_:1}),a.item.subCaption?(v(),V(X,{key:0,class:"text-caption mt-n1 hide-menu"},{default:t(()=>[d(w(a.item.subCaption),1)]),_:1})):D("",!0)]),_:2},[a.item.chip?{name:"append",fn:t(()=>[e(O,{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(()=>[d(w(a.item.chip),1)]),_:1},8,["color","size","variant","prepend-icon"])]),key:"0"}:void 0]),1032,["to","href","disabled","target"]))}},ve={class:"text-center"},he={name:"VerticalSidebar",components:{NavItem:W},data:()=>({version:"-"}),mounted(){this.get_version()},methods:{get_version(){x.get("/api/stat/version").then(a=>{this.version=a.data.data.version}).catch(a=>{console.log(a)})}}},_e=A({...he,setup(a){const c=E(),r=Z(pe);return(f,u)=>(v(),V(le,{left:"",modelValue:i(c).Sidebar_drawer,"onUpdate:modelValue":u[0]||(u[0]=m=>i(c).Sidebar_drawer=m),elevation:"0","rail-width":"80","mobile-breakpoint":"960",app:"",class:"leftSidebar",rail:i(c).mini_sidebar},{default:t(()=>[e(ae,{class:"pa-4 listitem",style:{height:"auto"}},{default:t(()=>[(v(!0),T(te,null,ee(r.value,(m,g)=>(v(),V(W,{key:g,item:m,class:"leftPadding"},null,8,["item"]))),128))]),_:1}),o("div",ve,[e(O,{color:"inputBorder",size:"small"},{default:t(()=>[d(" v"+w(f.version),1)]),_:1})])]),_:1},8,["modelValue","rail"]))}}),be=o("span",{style:{"margin-left":"16px","font-size":"24px","font-weight":"1000"}},[d("Astr"),o("span",{style:{"font-weight":"normal"}},"Bot")],-1),Ve={class:"mr-4"},ge={key:0},we={key:1},Se=o("span",{class:"text-h5"},"更新项目",-1),ye=o("h3",{class:"mb-4"},"升级到最新版本",-1),xe={style:{"margin-top":"16px"}},Ce=o("h3",{class:"mb-4"},"切换到指定版本或指定提交",-1),ke=o("div",{class:"mb-4"},[o("small",null,"如 v3.3.16 (不带 SHA) 或 42e5ec5d80b93b6bfe8b566754d45ffac4c3fe0b"),o("br"),o("a",{href:"https://github.com/Soulter/AstrBot/commits/master"},[o("small",null,"查看 master 分支提交记录(点击右边的 copy 即可复制)")])],-1),ze=o("span",{class:"text-h5"},"密码修改",-1),Be=o("small",null,"如果是第一次修改密码,原密码请留空。",-1),Te=o("br",null,null,-1),Ie=A({__name:"VerticalHeader",setup(a){const c=E();h(!1);let r=h(!1),f=h(!1),u=h(""),m=h(""),g=h(""),_=h(""),C=h(!1),S=h("");const j=n=>{window.open(n,"_blank")};function G(){u.value!=""&&(u.value=H.md5(u.value)),m.value=H.md5(m.value),x.post("/api/auth/password/reset",{password:u.value,new_password:m.value}).then(n=>{if(n.data.status=="error"){g.value=n.data.message,u.value="",m.value="";return}r.value=!r.value,g.value=n.data.message,setTimeout(()=>{de().logout()},1e3)}).catch(n=>{console.log(n),g.value=n,u.value="",m.value=""})}function R(){_.value="正在检查更新...",x.get("/api/update/check").then(n=>{C.value=n.data.data.has_new_version,_.value=n.data.message}).catch(n=>{console.log(n),_.value=n})}function N(n){_.value="正在切换版本...",x.post("/api/update/do",{version:n}).then(l=>{_.value=l.data.message,l.data.status=="success"&&setTimeout(()=>{window.location.reload()},1e3)}).catch(l=>{console.log(l),_.value=l})}return R(),(n,l)=>(v(),V(ne,{elevation:"0",height:"70"},{default:t(()=>[e(p,{style:{"margin-left":"22px"},class:"hidden-md-and-down text-secondary",color:"lightsecondary",icon:"",rounded:"sm",variant:"flat",onClick:l[0]||(l[0]=L(s=>i(c).SET_MINI_SIDEBAR(!i(c).mini_sidebar),["stop"])Line truncated
|
||||
import{d as J,o as v,c as V,a as K,w as t,b as e,V as O,e as d,t as w,f as B,g as D,h as Q,i as X,j as Y,k as A,s as Z,l as T,r as ee,F as te,m as ae,n as o,u as i,p as le,q as x,v as h,x as L,y as p,z as k,A as P,B as U,C as M,D as F,E as I,G as se,H as z,I as b,J as $,K as q,L as ie,M as oe,N as ne,O as de,P as re,Q as ue,R as me,S as ce,T as fe}from"./index-59964cc6.js";import{m as H}from"./md5-7290f9de.js";const y={Sidebar_drawer:!0,Customizer_drawer:!1,mini_sidebar:!1,fontTheme:"Roboto",inputBg:!1},E=J({id:"customizer",state:()=>({Sidebar_drawer:y.Sidebar_drawer,Customizer_drawer:y.Customizer_drawer,mini_sidebar:y.mini_sidebar,fontTheme:"Poppins",inputBg:y.inputBg}),getters:{},actions:{SET_SIDEBAR_DRAWER(){this.Sidebar_drawer=!this.Sidebar_drawer},SET_MINI_SIDEBAR(a){this.mini_sidebar=a},SET_FONT(a){this.fontTheme=a}}}),pe=[{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"},{title:"模型微调",icon:"mdi-grain",to:"/fine-tune"}],W={__name:"NavItem",props:{item:Object,level:Number},setup(a){return(c,r)=>(v(),V(Y,{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":""},K({prepend:t(()=>[a.item.icon?(v(),V(B,{key:0,size:a.item.iconSize,class:"hide-menu",icon:a.item.icon},null,8,["size","icon"])):D("",!0)]),default:t(()=>[e(Q,null,{default:t(()=>[d(w(a.item.title),1)]),_:1}),a.item.subCaption?(v(),V(X,{key:0,class:"text-caption mt-n1 hide-menu"},{default:t(()=>[d(w(a.item.subCaption),1)]),_:1})):D("",!0)]),_:2},[a.item.chip?{name:"append",fn:t(()=>[e(O,{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(()=>[d(w(a.item.chip),1)]),_:1},8,["color","size","variant","prepend-icon"])]),key:"0"}:void 0]),1032,["to","href","disabled","target"]))}},ve={class:"text-center"},he={name:"VerticalSidebar",components:{NavItem:W},data:()=>({version:"-"}),mounted(){this.get_version()},methods:{get_version(){x.get("/api/stat/version").then(a=>{this.version=a.data.data.version}).catch(a=>{console.log(a)})}}},_e=A({...he,setup(a){const c=E(),r=Z(pe);return(f,u)=>(v(),V(le,{left:"",modelValue:i(c).Sidebar_drawer,"onUpdate:modelValue":u[0]||(u[0]=m=>i(c).Sidebar_drawer=m),elevation:"0","rail-width":"80","mobile-breakpoint":"960",app:"",class:"leftSidebar",rail:i(c).mini_sidebar},{default:t(()=>[e(ae,{class:"pa-4 listitem",style:{height:"auto"}},{default:t(()=>[(v(!0),T(te,null,ee(r.value,(m,g)=>(v(),V(W,{key:g,item:m,class:"leftPadding"},null,8,["item"]))),128))]),_:1}),o("div",ve,[e(O,{color:"inputBorder",size:"small"},{default:t(()=>[d(" v"+w(f.version),1)]),_:1})])]),_:1},8,["modelValue","rail"]))}}),be=o("span",{style:{"margin-left":"16px","font-size":"24px","font-weight":"1000"}},[d("Astr"),o("span",{style:{"font-weight":"normal"}},"Bot")],-1),Ve={class:"mr-4"},ge={key:0},we={key:1},Se=o("span",{class:"text-h5"},"更新项目",-1),ye=o("h3",{class:"mb-4"},"升级到最新版本",-1),xe={style:{"margin-top":"16px"}},Ce=o("h3",{class:"mb-4"},"切换到指定版本或指定提交",-1),ke=o("div",{class:"mb-4"},[o("small",null,"如 v3.3.16 (不带 SHA) 或 42e5ec5d80b93b6bfe8b566754d45ffac4c3fe0b"),o("br"),o("a",{href:"https://github.com/Soulter/AstrBot/commits/master"},[o("small",null,"查看 master 分支提交记录(点击右边的 copy 即可复制)")])],-1),ze=o("span",{class:"text-h5"},"密码修改",-1),Be=o("small",null,"如果是第一次修改密码,原密码请留空。",-1),Te=o("br",null,null,-1),Ie=A({__name:"VerticalHeader",setup(a){const c=E();h(!1);let r=h(!1),f=h(!1),u=h(""),m=h(""),g=h(""),_=h(""),C=h(!1),S=h("");const j=n=>{window.open(n,"_blank")};function G(){u.value!=""&&(u.value=H.md5(u.value)),m.value=H.md5(m.value),x.post("/api/auth/password/reset",{password:u.value,new_password:m.value}).then(n=>{if(n.data.status=="error"){g.value=n.data.message,u.value="",m.value="";return}r.value=!r.value,g.value=n.data.message,setTimeout(()=>{de().logout()},1e3)}).catch(n=>{console.log(n),g.value=n,u.value="",m.value=""})}function R(){_.value="正在检查更新...",x.get("/api/update/check").then(n=>{C.value=n.data.data.has_new_version,_.value=n.data.message}).catch(n=>{console.log(n),_.value=n})}function N(n){_.value="正在切换版本...",x.post("/api/update/do",{version:n}).then(l=>{_.value=l.data.message,l.data.status=="success"&&setTimeout(()=>{window.location.reload()},1e3)}).catch(l=>{console.log(l),_.value=l})}return R(),(n,l)=>(v(),V(ne,{elevation:"0",height:"70"},{default:t(()=>[e(p,{style:{"margin-left":"22px"},class:"hidden-md-and-down text-secondary",color:"lightsecondary",icon:"",rounded:"sm",variant:"flat",onClick:l[0]||(l[0]=L(s=>i(c).SET_MINI_SIDEBAR(!i(c).mini_sidebar),["stop"])Line truncated
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{k as Ie,al as we,am as yt,a8 as gt,v as T,an as Te,X as w,u as B,ab as X,a9 as bt,I as Ce,a7 as Be,ao as _t,ap as Ot,aq as Vt,ar as q,s as St,o as Ne,c as Et,w as oe,b as x,H as $e,e as He,y as At,l as Qe,t as jt,a3 as wt,g as Ft,n as ge,O as Pt,U as Tt,D as Ct,B as Bt}from"./index-3360c831.js";import{a as Nt}from"./md5-f9642456.js";/**
|
||||
import{k as Ie,al as we,am as yt,a8 as gt,v as T,an as Te,X as w,u as B,ab as X,a9 as bt,I as Ce,a7 as Be,ao as _t,ap as Ot,aq as Vt,ar as q,s as St,o as Ne,c as Et,w as oe,b as x,H as $e,e as He,y as At,l as Qe,t as jt,a3 as wt,g as Ft,n as ge,O as Pt,U as Tt,D as Ct,B as Bt}from"./index-59964cc6.js";import{a as Nt}from"./md5-7290f9de.js";/**
|
||||
* vee-validate v4.11.3
|
||||
* (c) 2023 Abdelrahman Awad
|
||||
* @license MIT
|
||||
@@ -0,0 +1 @@
|
||||
import{q as c,o as e,c as u,w as a,b as s,B as T,C as d,e as _,D as p,a5 as w,n as l,l as r,f,g as o,t as n,K as S}from"./index-59964cc6.js";import{_ as g}from"./_plugin-vue_export-helper-c27b6911.js";const V={name:"WaitingForRestart",data(){return{visible:!1,startTime:-1,newStartTime:-1,status:"",cnt:0}},methods:{async check(){this.newStartTime=-1,this.startTime=-1,this.visible=!0,this.status="",console.log("start wfr"),await this.getStartTime(),setTimeout(()=>{this.timeoutInternal()},1e3)},timeoutInternal(){console.log("wfr: timeoutInternal",this.newStartTime,this.startTime),this.newStartTime===-1&&this.cnt<10&&this.visible?(this.checkStartTime(),this.cnt++,setTimeout(()=>{this.timeoutInternal()},1e3)):(this.cnt==10&&(this.status="拉取状态达到最大次数,请手动检查。"),this.cnt=0,setTimeout(()=>{this.visible=!1},1e3))},async getStartTime(){c.get("/api/stat/start-time",{timeout:3e3}).then(i=>{this.startTime=i.data.data.start_time})},async checkStartTime(){let i=await c.get("/api/stat/start-time",{timeout:3e3});return this.newStartTime=i.data.data.start_time,console.log("wfr: checkStartTime",this.newStartTime,this.startTime),this.newStartTime!==this.startTime&&(console.log("wfr: restarted"),setTimeout(()=>{this.visible=!1,window.location.reload()},2e3)),this.newStartTime}}},k={style:{"margin-top":"16px"}},y={key:0,class:"py-12 text-center"},x=l("p",null,"重启成功!",-1),b={key:1},v={key:2},B={key:3};function C(i,m,I,N,t,D){return e(),u(S,{modelValue:t.visible,"onUpdate:modelValue":m[0]||(m[0]=h=>t.visible=h),persistent:"","max-width":"400"},{default:a(()=>[s(T,null,{default:a(()=>[s(d,null,{default:a(()=>[_("正在等待 AstrBot 重启...")]),_:1}),s(p,null,{default:a(()=>[s(w,{indeterminate:"",color:"primary"}),l("div",k,[t.newStartTime!=-1?(e(),r("div",y,[s(f,{class:"mb-6",color:"success",icon:"mdi-check-circle-outline",size:"128"}),x])):o("",!0),t.startTime!=-1?(e(),r("p",b,"当前实例标识:"+n(t.startTime),1)):o("",!0),t.newStartTime!=-1?(e(),r("p",v,"检查到新实例:"+n(t.newStartTime)+",即将自动刷新页面",1)):o("",!0),t.status?(e(),r("p",B,n(t.status),1)):o("",!0),l("p",null,"次数:"+n(t.cnt),1)])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const R=g(V,[["render",C]]);export{R as W};
|
||||
@@ -1 +0,0 @@
|
||||
import{q as m,o as e,c as u,w as a,b as s,B as d,C as T,e as _,D as p,a5 as f,n as l,l as r,f as w,g as n,t as o,K as S}from"./index-3360c831.js";import{_ as g}from"./_plugin-vue_export-helper-c27b6911.js";const v={name:"WaitingForRestart",data(){return{visible:!1,startTime:-1,newStartTime:-1,status:"",cnt:0,intervalId:null}},methods:{async check(){this.newStartTime=-1,this.startTime=-1,this.visible=!0,this.status="",console.log("start wfr"),await this.getStartTime(),this.intervalId=setInterval(()=>{if(this.newStartTime===-1&&this.cnt<10&&this.visible)this.checkStartTime(),this.cnt++;else{this.cnt==10&&(this.status="拉取状态达到最大次数,请手动检查。"),this.cnt=0,setTimeout(()=>{this.visible=!1},1e3),clearInterval(this.intervalId);return}},1e3)},async getStartTime(){m.get("/api/stat/start-time").then(i=>{this.startTime=i.data.data.start_time})},async checkStartTime(){let i=await m.get("/api/stat/start-time");this.newStartTime=i.data.data.start_time,console.log("wfr: checkStartTime",this.newStartTime,this.startTime),this.newStartTime!==this.startTime&&(console.log("wfr: restarted"),setTimeout(()=>{this.visible=!1,window.location.reload()},2e3))}}},V={style:{"margin-top":"16px"}},k={key:0,class:"py-12 text-center"},y=l("p",null,"重启成功!",-1),x={key:1},b={key:2},B={key:3};function C(i,c,I,N,t,D){return e(),u(S,{modelValue:t.visible,"onUpdate:modelValue":c[0]||(c[0]=h=>t.visible=h),persistent:"","max-width":"400"},{default:a(()=>[s(d,null,{default:a(()=>[s(T,null,{default:a(()=>[_("正在等待 AstrBot 重启...")]),_:1}),s(p,null,{default:a(()=>[s(f,{indeterminate:"",color:"primary"}),l("div",V,[t.newStartTime!=-1?(e(),r("div",k,[s(w,{class:"mb-6",color:"success",icon:"mdi-check-circle-outline",size:"128"}),y])):n("",!0),t.startTime!=-1?(e(),r("p",x,"当前实例标识:"+o(t.startTime),1)):n("",!0),t.newStartTime!=-1?(e(),r("p",b,"检查到新实例:"+o(t.newStartTime)+",即将自动刷新页面",1)):n("",!0),t.status?(e(),r("p",B,o(t.status),1)):n("",!0),l("p",null,"次数:"+o(t.cnt),1)])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const R=g(v,[["render",C]]);export{R as W};
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
* vue-router v4.2.4
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/const zi=typeof window<"u";function l1(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const mt=Object.assign;function _l(e,a){const i={};for(const r in a){const l=a[r];i[r]=Gn(l)?l.map(e):e(l)}return i}const Fs=()=>{},Gn=Array.isArray,c1=/\/$/,u1=e=>e.replace(c1,"");function Rl(e,a,i="/"){let r,l={},u="",f="";const m=a.indexOf("#");let x=a.indexOf("?");return m<x&&m>=0&&(x=-1),x>-1&&(r=a.slice(0,x),u=a.slice(x+1,m>-1?m:a.length),l=e(u)),m>-1&&(r=r||a.slice(0,m),f=a.slice(m,a.length)),r=g1(r??a,i),{fullPath:r+(u&&"?")+u+f,path:r,query:l,hash:f}}function d1(e,a){const i=a.query?e(a.query):"";return a.path+(i&&"?")+i+(a.hash||"")}function Lh(e,a){return!a||!e.toLowerCase().startsWith(a.toLowerCase())?e:e.slice(a.length)||"/"}function h1(e,a,i){const r=a.matched.length-1,l=i.matched.length-1;return r>-1&&r===l&&Ui(a.matched[r],i.matched[l])&&Jv(a.params,i.params)&&e(a.query)===e(i.query)&&a.hash===i.hash}function Ui(e,a){return(e.aliasOf||e)===(a.aliasOf||a)}function Jv(e,a){if(Object.keys(e).length!==Object.keys(a).length)return!1;for(const i in e)if(!f1(e[i],a[i]))return!1;return!0}function f1(e,a){return Gn(e)?_h(e,a):Gn(a)?_h(a,e):e===a}function _h(e,a){return Gn(a)?e.length===a.length&&e.every((i,r)=>i===a[r]):e.length===1&&e[0]===a}function g1(e,a){if(e.startsWith("/"))return e;if(!e)return a;const i=a.split("/"),r=e.split("/"),l=r[r.length-1];(l===".."||l===".")&&r.push("");let u=i.length-1,f,m;for(f=0;f<r.length;f++)if(m=r[f],m!==".")if(m==="..")u>1&&u--;else break;return i.slice(0,u).join("/")+"/"+r.slice(f-(f===r.length?1:0)).join("/")}var Ks;(function(e){e.pop="pop",e.push="push"})(Ks||(Ks={}));var Bs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Bs||(Bs={}));function v1(e){if(!e)if(zi){const a=document.querySelector("base");e=a&&a.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),u1(e)}const m1=/^[^#]+#/;function p1(e,a){return e.replace(m1,"#")+a}function b1(e,a){const i=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:a.behavior,left:r.left-i.left-(a.left||0),top:r.top-i.top-(a.top||0)}}const Yo=()=>({left:window.pageXOffset,top:window.pageYOffset});function x1(e){let a;if("el"in e){const i=e.el,r=typeof i=="string"&&i.startsWith("#"),l=typeof i=="string"?r?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!l)return;a=b1(l,e)}else a=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(a):window.scrollTo(a.left!=null?a.left:window.pageXOffset,a.top!=null?a.top:window.pageYOffset)}function Rh(e,a){return(history.state?history.state.position-a:-1)+e}const yc=new Map;function y1(e,a){yc.set(e,a)}function w1(e){const a=yc.get(e);return yc.delete(e),a}let S1=()=>location.protocol+"//"+location.host;function Qv(e,a){const{pathname:i,search:r,hash:l}=a,u=e.indexOf("#");if(u>-1){let m=l.includes(e.slice(u))?e.slice(u).length:1,x=l.slice(m);return x[0]!=="/"&&(x="/"+x),Lh(x,"")}return Lh(i,e)+r+l}function k1(e,a,i,r){let l=[],u=[],f=null;const m=({state:E})=>{const _=Qv(e,location),V=i.value,D=a.value;let X=0;if(E){if(i.value=_,a.value=E,f&&f===V){f=null;return}X=D?E.position-D.position:0}else r(_);l.forEach(B=>{B(i.value,V,{delta:X,type:Ks.pop,direction:X?X>0?Bs.forward:Bs.back:Bs.unknown})})};function x(){f=i.value}function w(E){l.push(E);const _=()=>{const V=l.indexOf(E);V>-1&&l.splice(V,1)};return u.push(_),_}function C(){const{history:E}=window;E.state&&E.replaceState(mt({},E.state,{scroll:Yo()}),"")}function A(){for(const E of u)E();u=[],window.removeEventListener("popstate",m),window.removeEventListener("beforeunload",C)}return window.addEventListener("popstate",m),window.addEventListener("beforeunload",C,{passive:!0}),{pauseListeners:x,listen:w,destroy:A}}function Oh(e,a,i,r=!1,l=!1){return{back:e,current:a,forward:i,replaced:r,position:window.history.length,scroll:l?Yo():null}}function C1(e){const{history:a,location:i}=window,r={value:Qv(e,i)},l={value:a.state};l.value||u(r.value,{back:null,current:r.value,forward:null,position:a.length-1,replaced:!0,scroll:null},!0);function u(x,w,C){const A=e.indexOf("#"),E=A>-1?(i.host&&document.querySelector("base")?e:e.slice(A))+x:S1()+e+x;try{a[C?"replaceState":"pushState"](w,"",E),l.value=w}catch(_){console.error(_),i[C?"replace":"assign"](E)}}function f(x,w){const C=mt({},a.state,Oh(l.value.back,x,l.value.forward,!0),w,{position:l.value.position});u(x,C,!0),r.value=x}function m(x,w){const C=mt({},l.value,a.state,{forward:x,scroll:Yo()});u(C.current,C,!0);const A=mt({},Oh(r.value,x,null),{position:C.position+1},w);u(x,A,!1),r.value=x}return{location:r,state:l,push:m,replace:f}}function A1(e){e=v1(e);const a=C1(e),i=k1(e,a.state,a.location,a.replace);function r(u,f=!0){f||i.pauseListeners(),history.go(u)}const l=mt({location:"",base:e,go:r,createHref:p1.bind(null,e)},a,i);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>a.location.value}),Object.defineProperty(l,"state",{enumerLine truncated
|
||||
*/const zi=typeof window<"u";function l1(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const mt=Object.assign;function _l(e,a){const i={};for(const r in a){const l=a[r];i[r]=Gn(l)?l.map(e):e(l)}return i}const Fs=()=>{},Gn=Array.isArray,c1=/\/$/,u1=e=>e.replace(c1,"");function Rl(e,a,i="/"){let r,l={},u="",f="";const m=a.indexOf("#");let x=a.indexOf("?");return m<x&&m>=0&&(x=-1),x>-1&&(r=a.slice(0,x),u=a.slice(x+1,m>-1?m:a.length),l=e(u)),m>-1&&(r=r||a.slice(0,m),f=a.slice(m,a.length)),r=g1(r??a,i),{fullPath:r+(u&&"?")+u+f,path:r,query:l,hash:f}}function d1(e,a){const i=a.query?e(a.query):"";return a.path+(i&&"?")+i+(a.hash||"")}function Lh(e,a){return!a||!e.toLowerCase().startsWith(a.toLowerCase())?e:e.slice(a.length)||"/"}function h1(e,a,i){const r=a.matched.length-1,l=i.matched.length-1;return r>-1&&r===l&&Ui(a.matched[r],i.matched[l])&&Jv(a.params,i.params)&&e(a.query)===e(i.query)&&a.hash===i.hash}function Ui(e,a){return(e.aliasOf||e)===(a.aliasOf||a)}function Jv(e,a){if(Object.keys(e).length!==Object.keys(a).length)return!1;for(const i in e)if(!f1(e[i],a[i]))return!1;return!0}function f1(e,a){return Gn(e)?_h(e,a):Gn(a)?_h(a,e):e===a}function _h(e,a){return Gn(a)?e.length===a.length&&e.every((i,r)=>i===a[r]):e.length===1&&e[0]===a}function g1(e,a){if(e.startsWith("/"))return e;if(!e)return a;const i=a.split("/"),r=e.split("/"),l=r[r.length-1];(l===".."||l===".")&&r.push("");let u=i.length-1,f,m;for(f=0;f<r.length;f++)if(m=r[f],m!==".")if(m==="..")u>1&&u--;else break;return i.slice(0,u).join("/")+"/"+r.slice(f-(f===r.length?1:0)).join("/")}var Ks;(function(e){e.pop="pop",e.push="push"})(Ks||(Ks={}));var Bs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Bs||(Bs={}));function v1(e){if(!e)if(zi){const a=document.querySelector("base");e=a&&a.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),u1(e)}const m1=/^[^#]+#/;function p1(e,a){return e.replace(m1,"#")+a}function b1(e,a){const i=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:a.behavior,left:r.left-i.left-(a.left||0),top:r.top-i.top-(a.top||0)}}const Yo=()=>({left:window.pageXOffset,top:window.pageYOffset});function x1(e){let a;if("el"in e){const i=e.el,r=typeof i=="string"&&i.startsWith("#"),l=typeof i=="string"?r?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!l)return;a=b1(l,e)}else a=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(a):window.scrollTo(a.left!=null?a.left:window.pageXOffset,a.top!=null?a.top:window.pageYOffset)}function Rh(e,a){return(history.state?history.state.position-a:-1)+e}const yc=new Map;function y1(e,a){yc.set(e,a)}function w1(e){const a=yc.get(e);return yc.delete(e),a}let S1=()=>location.protocol+"//"+location.host;function Qv(e,a){const{pathname:i,search:r,hash:l}=a,u=e.indexOf("#");if(u>-1){let m=l.includes(e.slice(u))?e.slice(u).length:1,x=l.slice(m);return x[0]!=="/"&&(x="/"+x),Lh(x,"")}return Lh(i,e)+r+l}function k1(e,a,i,r){let l=[],u=[],f=null;const m=({state:E})=>{const _=Qv(e,location),V=i.value,D=a.value;let X=0;if(E){if(i.value=_,a.value=E,f&&f===V){f=null;return}X=D?E.position-D.position:0}else r(_);l.forEach(B=>{B(i.value,V,{delta:X,type:Ks.pop,direction:X?X>0?Bs.forward:Bs.back:Bs.unknown})})};function x(){f=i.value}function w(E){l.push(E);const _=()=>{const V=l.indexOf(E);V>-1&&l.splice(V,1)};return u.push(_),_}function C(){const{history:E}=window;E.state&&E.replaceState(mt({},E.state,{scroll:Yo()}),"")}function A(){for(const E of u)E();u=[],window.removeEventListener("popstate",m),window.removeEventListener("beforeunload",C)}return window.addEventListener("popstate",m),window.addEventListener("beforeunload",C,{passive:!0}),{pauseListeners:x,listen:w,destroy:A}}function Oh(e,a,i,r=!1,l=!1){return{back:e,current:a,forward:i,replaced:r,position:window.history.length,scroll:l?Yo():null}}function C1(e){const{history:a,location:i}=window,r={value:Qv(e,i)},l={value:a.state};l.value||u(r.value,{back:null,current:r.value,forward:null,position:a.length-1,replaced:!0,scroll:null},!0);function u(x,w,C){const A=e.indexOf("#"),E=A>-1?(i.host&&document.querySelector("base")?e:e.slice(A))+x:S1()+e+x;try{a[C?"replaceState":"pushState"](w,"",E),l.value=w}catch(_){console.error(_),i[C?"replace":"assign"](E)}}function f(x,w){const C=mt({},a.state,Oh(l.value.back,x,l.value.forward,!0),w,{position:l.value.position});u(x,C,!0),r.value=x}function m(x,w){const C=mt({},l.value,a.state,{forward:x,scroll:Yo()});u(C.current,C,!0);const A=mt({},Oh(r.value,x,null),{position:C.position+1},w);u(x,A,!1),r.value=x}return{location:r,state:l,push:m,replace:f}}function A1(e){e=v1(e);const a=C1(e),i=k1(e,a.state,a.location,a.replace);function r(u,f=!0){f||i.pauseListeners(),history.go(u)}const l=mt({location:"",base:e,go:r,createHref:p1.bind(null,e)},a,i);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>a.location.value}),Object.defineProperty(l,"state",{enumerLine truncated
|
||||
`).forEach(function(f){l=f.indexOf(":"),i=f.substring(0,l).trim().toLowerCase(),r=f.substring(l+1).trim(),!(!i||a[i]&&pk[i])&&(i==="set-cookie"?a[i]?a[i].push(r):a[i]=[r]:a[i]=a[i]?a[i]+", "+r:r)}),a},Jh=Symbol("internals");function ys(e){return e&&String(e).trim().toLowerCase()}function Kr(e){return e===!1||e==null?e:xe.isArray(e)?e.map(Kr):String(e)}function xk(e){const a=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=i.exec(e);)a[r[1]]=r[2];return a}const yk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ml(e,a,i,r,l){if(xe.isFunction(r))return r.call(this,a,i);if(l&&(a=i),!!xe.isString(a)){if(xe.isString(r))return a.indexOf(r)!==-1;if(xe.isRegExp(r))return r.test(a)}}function wk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,i,r)=>i.toUpperCase()+r)}function Sk(e,a){const i=xe.toCamelCase(" "+a);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+i,{value:function(l,u,f){return this[r].call(this,a,l,u,f)},configurable:!0})})}class Uo{constructor(a){a&&this.set(a)}set(a,i,r){const l=this;function u(m,x,w){const C=ys(x);if(!C)throw new Error("header name must be a non-empty string");const A=xe.findKey(l,C);(!A||l[A]===void 0||w===!0||w===void 0&&l[A]!==!1)&&(l[A||x]=Kr(m))}const f=(m,x)=>xe.forEach(m,(w,C)=>u(w,C,x));if(xe.isPlainObject(a)||a instanceof this.constructor)f(a,i);else if(xe.isString(a)&&(a=a.trim())&&!yk(a))f(bk(a),i);else if(xe.isHeaders(a))for(const[m,x]of a.entries())u(x,m,r);else a!=null&&u(i,a,r);return this}get(a,i){if(a=ys(a),a){const r=xe.findKey(this,a);if(r){const l=this[r];if(!i)return l;if(i===!0)return xk(l);if(xe.isFunction(i))return i.call(this,l,r);if(xe.isRegExp(i))return i.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,i){if(a=ys(a),a){const r=xe.findKey(this,a);return!!(r&&this[r]!==void 0&&(!i||Ml(this,this[r],r,i)))}return!1}delete(a,i){const r=this;let l=!1;function u(f){if(f=ys(f),f){const m=xe.findKey(r,f);m&&(!i||Ml(r,r[m],m,i))&&(delete r[m],l=!0)}}return xe.isArray(a)?a.forEach(u):u(a),l}clear(a){const i=Object.keys(this);let r=i.length,l=!1;for(;r--;){const u=i[r];(!a||Ml(this,this[u],u,a,!0))&&(delete this[u],l=!0)}return l}normalize(a){const i=this,r={};return xe.forEach(this,(l,u)=>{const f=xe.findKey(r,u);if(f){i[f]=Kr(l),delete i[u];return}const m=a?wk(u):String(u).trim();m!==u&&delete i[u],i[m]=Kr(l),r[m]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const i=Object.create(null);return xe.forEach(this,(r,l)=>{r!=null&&r!==!1&&(i[l]=a&&xe.isArray(r)?r.join(", "):r)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,i])=>a+": "+i).join(`
|
||||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...i){const r=new this(a);return i.forEach(l=>r.set(l)),r}static accessor(a){const r=(this[Jh]=this[Jh]={accessors:{}}).accessors,l=this.prototype;function u(f){const m=ys(f);r[m]||(Sk(l,f),r[m]=!0)}return xe.isArray(a)?a.forEach(u):u(a),this}}Uo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);xe.reduceDescriptors(Uo.prototype,({value:e},a)=>{let i=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(r){this[i]=r}}});xe.freezeMethods(Uo);const Wn=Uo;function Fl(e,a){const i=this||Zu,r=a||i,l=Wn.from(r.headers);let u=r.data;return xe.forEach(e,function(m){u=m.call(i,u,l.normalize(),a?a.status:void 0)}),l.normalize(),u}function Am(e){return!!(e&&e.__CANCEL__)}function ss(e,a,i){it.call(this,e??"canceled",it.ERR_CANCELED,a,i),this.name="CanceledError"}xe.inherits(ss,it,{__CANCEL__:!0});function Pm(e,a,i){const r=i.config.validateStatus;!i.status||!r||r(i.status)?e(i):a(new it("Request failed with status code "+i.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function kk(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Ck(e,a){e=e||10;const i=new Array(e),r=new Array(e);let l=0,u=0,f;return a=a!==void 0?a:1e3,function(x){const w=Date.now(),C=r[u];f||(f=w),i[l]=x,r[l]=w;let A=u,E=0;for(;A!==l;)E+=i[A++],A=A%e;if(l=(l+1)%e,l===u&&(u=(u+1)%e),w-f<a)return;const _=C&&w-C;return _?Math.round(E*1e3/_):void 0}}function Ak(e,a){let i=0,r=1e3/a,l,u;const f=(w,C=Date.now())=>{i=C,l=null,u&&(clearTimeout(u),u=null),e.apply(null,w)};return[(...w)=>{const C=Date.now(),A=C-i;A>=r?f(w,C):(l=w,u||(u=setTimeout(()=>{u=null,f(l)},r-A)))},()=>l&&f(l)]}const oo=(e,a,i=3)=>{let r=0;const l=Ck(50,250);return Ak(u=>{const f=u.loaded,m=u.lengthComputable?u.total:void 0,x=f-r,w=l(x),C=f<=m;r=f;const A={loaded:f,total:m,progress:m?f/m:void 0,bytes:x,rate:w||void 0,estimated:w&&m&&C?(m-f)/w:void 0,event:u,lengthComputable:m!=null,[a?"download":"upload"]:!0};e(A)},i)},Qh=(e,a)=>{const i=e!=null;return[r=>a[0]({lengthComputable:i,total:e,loaded:r}),a[1]]},ef=e=>(...a)=>xe.asap(()=>e(...a)),Pk=Yn.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");let r;function l(u){let f=u;return a&&(i.setAttribute("href",f),f=i.href),i.setAttribute("href",f),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return r=l(window.location.href),function(f){const m=xe.isString(f)?l(f):f;return m.protocol===r.protocol&&m.host===r.host}}():function(){return function(){return!0}}(),Ek=Yn.hasStandardBrowserEnv?{write(e,a,i,r,l,u){const f=[e+"="+encodeURIComponent(a)];xe.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),xe.isString(r)&&f.push("path="+r),xe.isString(l)&&f.push("domain="+l),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Tk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ik(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function Em(e,a){return e&&!Tk(a)?Ik(e,a):a}const tf=e=>e instanceof Wn?{...e}:e;function mi(e,a){a=a||{};const i={};function r(w,C,A){return xe.isPlainObject(w)&&xe.isPlainObject(C)?xe.merge.call({caseless:A},w,C):xe.isPlainObject(C)?xe.merge({},C):xe.isArray(C)?C.slice():C}function l(w,C,A){if(xe.isUndefined(C)){if(!xe.isUndefined(w))return r(void 0,w,A)}else return r(w,C,A)}function u(w,C){if(!xe.isUndefined(C))return r(void 0,C)}function f(w,C){if(xe.isUndefined(C)){if(!xe.isUndefined(w))return r(void 0,w)}else return r(void 0,C)}function m(w,C,A){if(A in a)return r(w,C);if(A in e)return r(void 0,w)}const x={url:u,method:u,data:u,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:m,headers:(w,C)=>l(tf(w),tf(C),!0)};return xe.forEach(Object.keys(Object.assign({},e,a)),function(C){const A=x[C]||l,E=A(e[C],a[C],C);xe.isUndefined(E)&&A!==m||(i[C]=E)}),i}const Tm=e=>{const a=mi({},e);let{data:i,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:u,headers:f,auth:m}=a;a.headers=f=Wn.from(f),a.url=Sm(Em(a.baseURL,a.url),e.params,e.paramsSerializer),m&&f.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m.
Line truncated
|
||||
`+u.map(sf).join(`
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{as as K,at as Y,au as V}from"./index-3360c831.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-59964cc6.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
|
||||
Vendored
+1
-1
@@ -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-3360c831.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-59964cc6.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-d7da5bd1.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in new issue
Block a user