feat: DSL 磁力聚合 — 搜索/解析/预览/投递 + cilisousuo 源 + 中英双语 + Docker 部署

This commit is contained in:
ice-a
2026-10-16 18:53:45 +08:00
commit d6999104bf
64 changed files with 16524 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import type { HealthResponse } from '~/types/api'
/** 全局健康状态:Mongo / webtorrent / 客户端在线数,用于顶栏状态灯与页面提示 */
export function useHealth() {
return useState<HealthResponse | null>('health', () => null)
}
export async function refreshHealth() {
const state = useHealth()
try {
state.value = await $fetch<HealthResponse>('/api/health')
} catch {
state.value = null
}
return state.value
}