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:
Developer
2026-06-26 09:10:32 +00:00
parent 648320abfd
commit 56b919ea1f
2 changed files with 38 additions and 26 deletions
+6 -2
View File
@@ -13,7 +13,9 @@ export async function fetchBackupJobs(): Promise<BackupJob[]> {
export async function fetchBackupJob( export async function fetchBackupJob(
jobId: string, jobId: string,
): Promise<{ job: BackupJob; runs: BackupRun[] }> { ): 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( export async function fetchBackupRuns(
@@ -37,7 +39,9 @@ export async function fetchBackupAlerts(
): Promise<BackupAlert[]> { ): Promise<BackupAlert[]> {
return get<BackupAlert[]>("/api/backups/alerts", { return get<BackupAlert[]>("/api/backups/alerts", {
...(jobId ? { job_id: jobId } : {}), ...(jobId ? { job_id: jobId } : {}),
...(acknowledged !== undefined ? { acknowledged: String(acknowledged) } : {}), ...(acknowledged !== undefined
? { acknowledged: String(acknowledged) }
: {}),
...(severity ? { severity } : {}), ...(severity ? { severity } : {}),
}); });
} }
+9 -1
View File
@@ -36,7 +36,15 @@ import type {
PrometheusStatus, PrometheusStatus,
PrometheusTarget, PrometheusTarget,
} from "../types"; } 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) // Dashboard (Jellyfin-backed; selected via jellyfin_service_id)
export const fetchCounts = (jellyfinServiceId?: string) => export const fetchCounts = (jellyfinServiceId?: string) =>