style(services): apply formatter to frontend services runtime

This commit is contained in:
Developer
2026-06-22 19:13:59 +00:00
parent 1da67f38c7
commit 739ad38e29
13 changed files with 177 additions and 61 deletions
+5 -1
View File
@@ -12,7 +12,11 @@ interface Props {
description?: string;
}
export function BackupsWidget({ widget, refreshIntervalMs, description }: Props) {
export function BackupsWidget({
widget,
refreshIntervalMs,
description,
}: Props) {
const { data, isLoading } = useWidgetData(widget.id, refreshIntervalMs);
const summary = data?.data as BackupDashboardSummary | undefined;
+5 -1
View File
@@ -12,7 +12,11 @@ interface Props {
description?: string;
}
export function GrafanaLinkWidget({ widget, refreshIntervalMs, description }: Props) {
export function GrafanaLinkWidget({
widget,
refreshIntervalMs,
description,
}: Props) {
const { data, isLoading } = useWidgetData(widget.id, refreshIntervalMs);
const url = data?.data?.url as string | undefined;
+5 -1
View File
@@ -11,7 +11,11 @@ interface Props {
description?: string;
}
export function JellyfinWidget({ widget, refreshIntervalMs, description }: Props) {
export function JellyfinWidget({
widget,
refreshIntervalMs,
description,
}: Props) {
const { data, isLoading } = useWidgetData(widget.id, refreshIntervalMs);
const sessions = data?.data?.sessions as NowPlayingSession[] | undefined;
@@ -36,7 +36,11 @@ function formatPrometheusValue(result: PromQLResult | undefined): string {
return JSON.stringify(result, null, 2);
}
export function PrometheusMetricWidget({ widget, refreshIntervalMs, description }: Props) {
export function PrometheusMetricWidget({
widget,
refreshIntervalMs,
description,
}: Props) {
const { data, isLoading } = useWidgetData(widget.id, refreshIntervalMs);
const result = data?.data?.result as PromQLResult | undefined;
+5 -1
View File
@@ -16,7 +16,11 @@ type SshTaskResult = {
stderr: string;
};
export function SshTaskWidget({ widget, refreshIntervalMs, description }: Props) {
export function SshTaskWidget({
widget,
refreshIntervalMs,
description,
}: Props) {
const { data, isLoading } = useWidgetData(widget.id, refreshIntervalMs);
const result = data?.data as SshTaskResult | undefined;
+5 -1
View File
@@ -8,7 +8,11 @@ interface Props {
description?: string;
}
export function StaticWidget({ widget, refreshIntervalMs, description }: Props) {
export function StaticWidget({
widget,
refreshIntervalMs,
description,
}: Props) {
const { data } = useWidgetData(widget.id, refreshIntervalMs);
const text = data?.data?.text as string | undefined;