wangdl 8da983b0eb feat: add Worker status section to Servers page
- 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>
2026-06-19 22:03:08 +08:00

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 }
}