mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
fix: 修复仪表盘在检测重启的时候的问题
This commit is contained in:
@@ -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};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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};
|
||||
File diff suppressed because one or more lines are too long
@@ -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
|
||||
1
dashboard/dist/assets/WaitingForRestart-47f65a77.js
vendored
Normal file
1
dashboard/dist/assets/WaitingForRestart-47f65a77.js
vendored
Normal file
@@ -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};
|
||||
File diff suppressed because one or more lines are too long
@@ -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
|
||||
2
dashboard/dist/index.html
vendored
2
dashboard/dist/index.html
vendored
@@ -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