style(frontend/api): apply formatter to backups.ts and client.ts
Convert indentation to tabs and reflow long import lines. No behavior change. Co-authored-by: el Gentleman <gentleman@pi.local>
This commit is contained in:
@@ -13,7 +13,9 @@ export async function fetchBackupJobs(): Promise<BackupJob[]> {
|
||||
export async function fetchBackupJob(
|
||||
jobId: string,
|
||||
): Promise<{ job: BackupJob; runs: BackupRun[] }> {
|
||||
return get<{ job: BackupJob; runs: BackupRun[] }>(`/api/backups/jobs/${jobId}`);
|
||||
return get<{ job: BackupJob; runs: BackupRun[] }>(
|
||||
`/api/backups/jobs/${jobId}`,
|
||||
);
|
||||
}
|
||||
|
||||
export async function fetchBackupRuns(
|
||||
@@ -37,7 +39,9 @@ export async function fetchBackupAlerts(
|
||||
): Promise<BackupAlert[]> {
|
||||
return get<BackupAlert[]>("/api/backups/alerts", {
|
||||
...(jobId ? { job_id: jobId } : {}),
|
||||
...(acknowledged !== undefined ? { acknowledged: String(acknowledged) } : {}),
|
||||
...(acknowledged !== undefined
|
||||
? { acknowledged: String(acknowledged) }
|
||||
: {}),
|
||||
...(severity ? { severity } : {}),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -36,7 +36,15 @@ import type {
|
||||
PrometheusStatus,
|
||||
PrometheusTarget,
|
||||
} from "../types";
|
||||
import { buildHeaders, buildUrl, del, get, post, postForm, readErrorDetail } from "./shared";
|
||||
import {
|
||||
buildHeaders,
|
||||
buildUrl,
|
||||
del,
|
||||
get,
|
||||
post,
|
||||
postForm,
|
||||
readErrorDetail,
|
||||
} from "./shared";
|
||||
|
||||
// Dashboard (Jellyfin-backed; selected via jellyfin_service_id)
|
||||
export const fetchCounts = (jellyfinServiceId?: string) =>
|
||||
|
||||
Reference in New Issue
Block a user