style(services): apply formatter to frontend services runtime
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user