serverside filter+paginate client resources table

This commit is contained in:
Fred KISSIE
2026-02-06 02:42:15 +01:00
parent 609ffccd67
commit 6c85171091
8 changed files with 183 additions and 118 deletions

View File

@@ -69,38 +69,6 @@ const listResourcesSchema = z.object({
.catch(undefined)
});
// (resource fields + a single joined target)
type JoinedRow = {
resourceId: number;
niceId: string;
name: string;
ssl: boolean;
fullDomain: string | null;
passwordId: number | null;
sso: boolean;
pincodeId: number | null;
whitelist: boolean;
http: boolean;
protocol: string;
proxyPort: number | null;
enabled: boolean;
domainId: string | null;
headerAuthId: number | null;
// total_targets: number;
// healthy_targets: number;
// unhealthy_targets: number;
// unknown_targets: number;
// targetId: number | null;
// targetIp: string | null;
// targetPort: number | null;
// targetEnabled: boolean | null;
// hcHealth: string | null;
// hcEnabled: boolean | null;
};
// grouped by resource with targets[])
export type ResourceWithTargets = {
resourceId: number;