feat: 添加爬虫状态监控功能

新增爬虫统计信息展示组件,包括后端数据查询接口和前端展示界面。同时简化日期显示格式并添加刷新提示功能。
This commit is contained in:
dmy
2026-01-14 09:26:04 +08:00
parent 571eea0f66
commit bcd7af4e69
7 changed files with 325 additions and 76 deletions

View File

@@ -44,6 +44,26 @@ export namespace main {
this.updatedAt = source["updatedAt"];
}
}
export class CrawlInfoStat {
source: string;
count: number;
latestUpdate: string;
latestPublishDate: string;
error: string;
static createFrom(source: any = {}) {
return new CrawlInfoStat(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.source = source["source"];
this.count = source["count"];
this.latestUpdate = source["latestUpdate"];
this.latestPublishDate = source["latestPublishDate"];
this.error = source["error"];
}
}
export class DatabaseConfig {
Type: string;
Host: string;