diff --git a/index.html b/index.html
index 821bc32..16d964e 100644
--- a/index.html
+++ b/index.html
@@ -2,12 +2,12 @@
-
-
- {t("settings.providers")}
-
-
- {providers.map((p) => (
-
-
- {p.label}
-
- {isConnected(p.id) ? "Connected" : "Not configured"}
-
-
-
- ))}
-
-
+ const handleTestConnection = async () => {
+ setTestState("testing")
+ try {
+ const res = await api.health.$get()
+ if (res.ok) {
+ setTestState("ok")
+ } else {
+ setTestState("failed")
+ }
+ } catch {
+ setTestState("failed")
+ }
+ }
-
- {t("settings.data")}
-
-
- {t("settings.data")}
-
-
-
+ return (
+
+
+ {t("settings.app")}
+
+
+ updateServiceWorker()}>
+ {t("settings.updateApp")}
+
+ ) : (
+ {t("settings.upToDate")}
+ )
+ }
+ />
+
+
v{__APP_VERSION__}
+
+
+ {t("settings.server")}
+
+
+
+ {testState === "testing" && }
+ {testState === "ok" && (
+
+ {t("settings.connectionOk")}
+
+ )}
+ {testState === "failed" && (
+
+ {t("settings.connectionFailed")}
+
+ )}
+
+
+ }
+ />
+
+
+
+ {t("settings.providers")}
+
+
+ {providers.map((p) => (
+
+ {isConnected(p.id) ? "Connected" : "Not configured"}
+
+ }
+ onClick={() => navigate({ to: "/settings/$provider", params: { provider: p.id } })}
+ />
+ ))}
+
+
+
+ {t("settings.data")}
+
+
+ navigate({ to: "/settings/$provider", params: { provider: "data" } })}
+ />
+
)
}
diff --git a/src/shared/i18n/locales/de.ts b/src/shared/i18n/locales/de.ts
index f231d01..6497d0f 100644
--- a/src/shared/i18n/locales/de.ts
+++ b/src/shared/i18n/locales/de.ts
@@ -33,6 +33,8 @@ export const de: Record