release: bump version to 0.56.0
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
ci / delivery (push) Has been cancelled
release / images (push) Has been cancelled

This commit is contained in:
linkong
2026-05-13 18:21:03 +08:00
parent 39854b9983
commit f14ff6ec0f
46 changed files with 1589 additions and 684 deletions

View File

@@ -134,46 +134,49 @@ function Tasks() {
return (
<AppLayout>
<Row gutter={[16, 16]} style={{ marginBottom: 16 }}>
<Col span={6}>
<Card>
<Statistic title="今日任务" value={tasks.length} prefix={<ReloadOutlined />} />
</Card>
</Col>
<Col span={6}>
<Card>
<Statistic
title="成功率"
value={successRate.toFixed(1)}
suffix="%"
valueStyle={{ color: successRate >= 90 ? '#52c41a' : '#faad14' }}
/>
</Card>
</Col>
<Col span={6}>
<Card>
<Statistic title="成功" value={statusCounts.success} valueStyle={{ color: '#52c41a' }} />
</Card>
</Col>
<Col span={6}>
<Card>
<Statistic title="失败" value={statusCounts.failed} valueStyle={{ color: '#ff4d4f' }} />
</Card>
</Col>
</Row>
<div className="page-shell tasks-page">
<Row gutter={[16, 16]}>
<Col xs={24} md={6}>
<Card>
<Statistic title="今日任务" value={tasks.length} prefix={<ReloadOutlined />} />
</Card>
</Col>
<Col xs={24} md={6}>
<Card>
<Statistic
title="成功率"
value={successRate.toFixed(1)}
suffix="%"
valueStyle={{ color: successRate >= 90 ? '#52c41a' : '#faad14' }}
/>
</Card>
</Col>
<Col xs={24} md={6}>
<Card>
<Statistic title="成功" value={statusCounts.success} valueStyle={{ color: '#52c41a' }} />
</Card>
</Col>
<Col xs={24} md={6}>
<Card>
<Statistic title="失败" value={statusCounts.failed} valueStyle={{ color: '#ff4d4f' }} />
</Card>
</Col>
</Row>
<Card
title="任务历史"
extra={
<Button type="primary" icon={<ReloadOutlined />} onClick={fetchTasks}>
</Button>
}
>
<TableScrollRegion>
<Table columns={columns} dataSource={tasks} rowKey="id" loading={loading} pagination={{ pageSize: 10 }} scroll={{ x: 'max-content', y: 'calc(100% - 360px)' }} tableLayout="fixed" />
</TableScrollRegion>
</Card>
<Card
className="tasks-page__table-card"
title="任务历史"
extra={
<Button type="primary" icon={<ReloadOutlined />} onClick={fetchTasks}>
</Button>
}
>
<TableScrollRegion className="data-source-table-region">
<Table columns={columns} dataSource={tasks} rowKey="id" loading={loading} pagination={{ pageSize: 10 }} scroll={{ x: 'max-content', y: 480 }} tableLayout="fixed" />
</TableScrollRegion>
</Card>
</div>
</AppLayout>
)
}