- New WorkerInfo API type + getWorkerStatus() in server-api.ts - WorkerStatusSection component: online/stale/offline cards with instanceId, version, hostname, queues, heartbeat age - Auto-refresh every 15s - Register /servers route (SUPER_ADMIN only) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
14 lines
401 B
TypeScript
14 lines
401 B
TypeScript
import type { TablePaginationConfig } from 'antd'
|
|
|
|
/** 全局默认分页配置 */
|
|
export const defaultPagination: TablePaginationConfig = {
|
|
defaultPageSize: 20,
|
|
showSizeChanger: true,
|
|
pageSizeOptions: ['10', '20', '50', '100'],
|
|
}
|
|
|
|
/** 合并默认分页配置 */
|
|
export function pagination(custom?: TablePaginationConfig): TablePaginationConfig {
|
|
return { ...defaultPagination, ...custom }
|
|
}
|