From 5ef6366b7f652ae188a7e78d4d006bb08cf39c2e Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Wed, 11 Sep 2024 20:16:55 +0200 Subject: [PATCH] Add auto-update functionality --- src/lib/locales/de.json | 3 ++- src/lib/locales/en.json | 3 ++- src/lib/locales/es.json | 3 ++- src/lib/locales/nl.json | 3 ++- src/routes/+page.svelte | 2 +- src/routes/Control.svelte | 2 +- src/routes/FirmwareUpdater.svelte | 37 +++++++++++++++++++++++++++++-- 7 files changed, 45 insertions(+), 8 deletions(-) diff --git a/src/lib/locales/de.json b/src/lib/locales/de.json index 9748996..946b962 100644 --- a/src/lib/locales/de.json +++ b/src/lib/locales/de.json @@ -81,7 +81,8 @@ "swUpdateAvailable": "Eine neuere Version ist verfügbar!", "latestVersion": "Letzte Version", "releaseDate": "Veröffentlichungsdatum", - "viewRelease": "Veröffentlichung anzeigen" + "viewRelease": "Veröffentlichung anzeigen", + "autoUpdate": "Update installieren (experimentell)" } }, "colors": { diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index c00bd15..7986b1e 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -94,7 +94,8 @@ "swUpToDate": "You are up to date.", "latestVersion": "Latest Version", "releaseDate": "Release Date", - "viewRelease": "View Release" + "viewRelease": "View Release", + "autoUpdate": "Install update (experimental)" } }, "colors": { diff --git a/src/lib/locales/es.json b/src/lib/locales/es.json index 06bf3fa..5eced4c 100644 --- a/src/lib/locales/es.json +++ b/src/lib/locales/es.json @@ -80,7 +80,8 @@ "swUpdateAvailable": "¡Una nueva versión está disponible!", "latestVersion": "Ultima versión", "releaseDate": "Fecha de lanzamiento", - "viewRelease": "Ver lanzamiento" + "viewRelease": "Ver lanzamiento", + "autoUpdate": "Instalar actualización (experimental)" } }, "button": { diff --git a/src/lib/locales/nl.json b/src/lib/locales/nl.json index 2bc7d80..f126bcf 100644 --- a/src/lib/locales/nl.json +++ b/src/lib/locales/nl.json @@ -80,7 +80,8 @@ "swUpdateAvailable": "Een nieuwere versie is beschikbaar!", "latestVersion": "Laatste versie", "releaseDate": "Datum van publicatie", - "viewRelease": "Bekijk publicatie" + "viewRelease": "Bekijk publicatie", + "autoUpdate": "Update installeren (experimenteel)" } }, "colors": { diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 9e26acb..b37ab13 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -124,7 +124,7 @@ - + diff --git a/src/routes/Control.svelte b/src/routes/Control.svelte index b62c7ed..d89ee10 100644 --- a/src/routes/Control.svelte +++ b/src/routes/Control.svelte @@ -239,7 +239,7 @@ {#if $settings.otaEnabled}

{$_('section.control.firmwareUpdate')}

- + {/if} diff --git a/src/routes/FirmwareUpdater.svelte b/src/routes/FirmwareUpdater.svelte index 6c64667..4ef8e8f 100644 --- a/src/routes/FirmwareUpdater.svelte +++ b/src/routes/FirmwareUpdater.svelte @@ -1,10 +1,12 @@