{Object.entries(instance.secrets_set).map(([key, isSet]) => (
-
+
- setDraftSecrets({ ...draftSecrets, [key]: e.target.value })
+ setDraftSecrets({
+ ...draftSecrets,
+ [key]: e.target.value,
+ })
}
/>
diff --git a/frontend/src/widgets/BackupsWidget.tsx b/frontend/src/widgets/BackupsWidget.tsx
index f577bc1..74f2b0d 100644
--- a/frontend/src/widgets/BackupsWidget.tsx
+++ b/frontend/src/widgets/BackupsWidget.tsx
@@ -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;
diff --git a/frontend/src/widgets/GrafanaLinkWidget.tsx b/frontend/src/widgets/GrafanaLinkWidget.tsx
index 8001534..5840fd8 100644
--- a/frontend/src/widgets/GrafanaLinkWidget.tsx
+++ b/frontend/src/widgets/GrafanaLinkWidget.tsx
@@ -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;
diff --git a/frontend/src/widgets/JellyfinWidget.tsx b/frontend/src/widgets/JellyfinWidget.tsx
index 127fed0..68aaf72 100644
--- a/frontend/src/widgets/JellyfinWidget.tsx
+++ b/frontend/src/widgets/JellyfinWidget.tsx
@@ -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;
diff --git a/frontend/src/widgets/PrometheusMetricWidget.tsx b/frontend/src/widgets/PrometheusMetricWidget.tsx
index bc4862c..dc617a2 100644
--- a/frontend/src/widgets/PrometheusMetricWidget.tsx
+++ b/frontend/src/widgets/PrometheusMetricWidget.tsx
@@ -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;
diff --git a/frontend/src/widgets/SshTaskWidget.tsx b/frontend/src/widgets/SshTaskWidget.tsx
index 6013682..c51b037 100644
--- a/frontend/src/widgets/SshTaskWidget.tsx
+++ b/frontend/src/widgets/SshTaskWidget.tsx
@@ -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;
diff --git a/frontend/src/widgets/StaticWidget.tsx b/frontend/src/widgets/StaticWidget.tsx
index 3edcc80..ba876b5 100644
--- a/frontend/src/widgets/StaticWidget.tsx
+++ b/frontend/src/widgets/StaticWidget.tsx
@@ -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;