fix(panel): 构建记录改由服务端分页列表提供,任何浏览器与管理员都能看到并取消进行中的构建,列表刷新失败保留原行并提示

This commit is contained in:
Lemon-miaow committed 2026-09-25 12:28:22 +08:00
1 parent 9d03386c83
commit 06d5e652c6
16 files changed
+711 -253

No files matched your search

+34
View File
@@ -4755,6 +4755,40 @@ paths:
$ref: '#/components/responses/ServiceUnavailable'
/api/v1/images/build:
get:
tags: [images]
operationId: listBuilds
summary: List builds (admin), newest first.
description: >-
One page of the build history across every admin. Rows are read as stored
(the reconcile loop advances them; GET /images/build/{id} reconciles one on
demand) and leave out the Dockerfile, which GET /images/build/{id} returns.
x-felis-face: [external]
x-felis-tier: admin
security: [{ accessJWT: [] }]
parameters:
- { name: query, in: query, required: false, schema: { type: string }, description: 'Build id or status (exact), or part of the image ref; case-insensitive' }
- { name: limit, in: query, required: false, schema: { type: integer, default: 20, maximum: 100 } }
- { name: offset, in: query, required: false, schema: { type: integer, default: 0 } }
responses:
'200':
description: A page of builds plus how many match the query.
content:
application/json:
schema:
type: object
required: [builds, total]
properties:
builds:
type: array
items: { $ref: '#/components/schemas/Build' }
total: { type: integer }
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'503':
$ref: '#/components/responses/ServiceUnavailable'
post:
tags: [images]
operationId: buildImage