forked from btclock/webui
Add Nostr relay connection status
This commit is contained in:
parent
ee4d6d88c7
commit
f08e977b61
6 changed files with 338 additions and 325 deletions
|
@ -64,7 +64,8 @@
|
|||
"uptime": "Betriebszeit",
|
||||
"wifiSignalStrength": "WiFi-Signalstärke",
|
||||
"wsDataConnection": "BTClock-Datenquelle verbindung",
|
||||
"lightSensor": "Lichtsensor"
|
||||
"lightSensor": "Lichtsensor",
|
||||
"nostrConnection": "Nostr Relay-Verbindung"
|
||||
},
|
||||
"firmwareUpdater": {
|
||||
"fileUploadSuccess": "Datei erfolgreich hochgeladen, Gerät neu gestartet. WebUI in {countdown} Sekunden neu geladen",
|
||||
|
|
|
@ -68,7 +68,8 @@
|
|||
"uptime": "Uptime",
|
||||
"wifiSignalStrength": "WiFi Signal strength",
|
||||
"wsDataConnection": "BTClock data-source connection",
|
||||
"lightSensor": "Light sensor"
|
||||
"lightSensor": "Light sensor",
|
||||
"nostrConnection": "Nostr Relay connection"
|
||||
},
|
||||
"firmwareUpdater": {
|
||||
"fileUploadFailed": "File upload failed. Make sure you have selected the correct file and try again.",
|
||||
|
|
|
@ -63,7 +63,8 @@
|
|||
"title": "Estado",
|
||||
"wifiSignalStrength": "Fuerza de la señal WiFi",
|
||||
"wsDataConnection": "Conexión de fuente de datos BTClock",
|
||||
"lightSensor": "Sensor de luz"
|
||||
"lightSensor": "Sensor de luz",
|
||||
"nostrConnection": "Conexión de relé Nostr"
|
||||
},
|
||||
"firmwareUpdater": {
|
||||
"fileUploadSuccess": "Archivo cargado exitosamente, reiniciando el dispositivo. Recargando WebUI en {countdown} segundos",
|
||||
|
|
|
@ -63,7 +63,8 @@
|
|||
"uptime": "Uptime",
|
||||
"wifiSignalStrength": "WiFi signaalsterkte",
|
||||
"wsDataConnection": "BTClock-gegevensbron verbinding",
|
||||
"lightSensor": "Licht sensor"
|
||||
"lightSensor": "Licht sensor",
|
||||
"nostrConnection": "Nostr Relay-verbinding"
|
||||
},
|
||||
"firmwareUpdater": {
|
||||
"fileUploadSuccess": "Bestand geüpload, apparaat herstart. WebUI opnieuw geladen over {countdown} seconden",
|
||||
|
|
|
@ -124,6 +124,8 @@
|
|||
});
|
||||
|
||||
function compareVersions(version1: string, version2: string): number {
|
||||
if (!version2) return 0;
|
||||
|
||||
const parts1 = version1.split('.').map((part) => parseInt(part, 10));
|
||||
const parts2 = version2.split('.').map((part) => parseInt(part, 10));
|
||||
|
||||
|
|
|
@ -166,11 +166,18 @@
|
|||
<br />
|
||||
<p>
|
||||
{#if $settings.useNostr}
|
||||
<span>Nostr connection status not available yet.</span>
|
||||
{$_('section.status.nostrConnection')}:
|
||||
<span>
|
||||
{#if $status.connectionStatus && $status.connectionStatus.nostr}
|
||||
✅
|
||||
{:else}
|
||||
❌
|
||||
{/if}
|
||||
</span>
|
||||
{:else if !$settings.ownDataSource}
|
||||
{$_('section.status.wsPriceConnection')}:
|
||||
<span>
|
||||
{#if $status.connectionStatus && $status.connectionStatus.price}
|
||||
{#if $status.connectionStatus && $status.connectionStatus.nostr}
|
||||
✅
|
||||
{:else}
|
||||
❌
|
||||
|
|
Loading…
Reference in a new issue