feat: add deployment monitor page

- Add /deploy_status API endpoint for system status check
- Create Monitor.tsx component with real-time status display
- Support CUDA, FFmpeg, Whisper model status monitoring
- Auto-refresh every 30 seconds with manual refresh option
This commit is contained in:
sibuchen
2026-02-06 16:15:11 +08:00
parent 7b45db2f59
commit 8cd8c6f7b4
5 changed files with 309 additions and 9 deletions

View File

@@ -1,5 +1,29 @@
import request from '@/utils/request'
export const systemCheck=async()=>{
export const systemCheck = async () => {
return await request.get('/sys_health')
}
export interface DeployStatus {
backend: {
status: string
port: number
}
cuda: {
available: boolean
version: string | null
gpu_name: string | null
}
whisper: {
model_size: string
transcriber_type: string
}
ffmpeg: {
available: boolean
}
}
export const getDeployStatus = async (): Promise<DeployStatus> => {
return await request.get('/deploy_status')
}