From d861264ecf68b6708b450893445b2b3030143a5a Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Sun, 11 Sep 2022 11:13:54 +0300 Subject: [PATCH 01/39] fix error case cause failure to load anything --- src/pages/api/services/index.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/pages/api/services/index.js b/src/pages/api/services/index.js index a8dd08b79..0393e3d8a 100644 --- a/src/pages/api/services/index.js +++ b/src/pages/api/services/index.js @@ -1,8 +1,20 @@ import { servicesFromConfig, servicesFromDocker, cleanServiceGroups } from "utils/service-helpers"; export default async function handler(req, res) { - const discoveredServices = cleanServiceGroups(await servicesFromDocker()); - const configuredServices = cleanServiceGroups(await servicesFromConfig()); + let discoveredServices; + let configuredServices; + + try { + discoveredServices = cleanServiceGroups(await servicesFromDocker()); + } catch { + discoveredServices = []; + } + + try { + configuredServices = cleanServiceGroups(await servicesFromConfig()); + } catch { + configuredServices = []; + } const mergedGroupsNames = [ ...new Set([discoveredServices.map((group) => group.name), configuredServices.map((group) => group.name)].flat()), From 102cdbd53a1e2a787609a10c53719ac896516e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Fern=C3=A1ndez=20S=C3=A1nchez?= Date: Sat, 10 Sep 2022 13:43:30 +0000 Subject: [PATCH 02/39] Translated using Weblate (Spanish) Currently translated at 100.0% (64 of 64 strings) Translation: Homepage/Homepage Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/es/ --- public/locales/es/common.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/locales/es/common.json b/public/locales/es/common.json index 15487f543..bfab159c1 100644 --- a/public/locales/es/common.json +++ b/public/locales/es/common.json @@ -13,8 +13,8 @@ "used": "Usado" }, "docker": { - "rx": "RX", - "tx": "TX", + "rx": "Recibido", + "tx": "Transmitido", "mem": "Memoria", "cpu": "Procesador", "offline": "Desconectado" @@ -85,9 +85,9 @@ "total": "Total" }, "weather": { - "current": "Current Location", - "allow": "Click to allow", - "updating": "Updating", - "wait": "Please wait" + "current": "Ubicación Actual", + "allow": "Haga clic para permitir", + "updating": "Actualizando", + "wait": "Espere, por favor" } } From 079fdb30116aad841d6766326c8ea97b482397e6 Mon Sep 17 00:00:00 2001 From: "J. Lavoie" Date: Fri, 9 Sep 2022 22:56:52 +0000 Subject: [PATCH 03/39] Translated using Weblate (French) Currently translated at 28.1% (18 of 64 strings) Translation: Homepage/Homepage Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/fr/ --- public/locales/fr/common.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json index 01ed86427..151b191a5 100644 --- a/public/locales/fr/common.json +++ b/public/locales/fr/common.json @@ -5,7 +5,7 @@ "status": "Statut" }, "search": { - "placeholder": "Chercher…" + "placeholder": "Recherche…" }, "resources": { "total": "Totale", @@ -36,7 +36,7 @@ }, "rutorrent": { "active": "Active", - "upload": "Télécharger", + "upload": "Téléverser", "download": "Télécharger" }, "sonarr": { @@ -65,8 +65,8 @@ "gravity": "La gravité" }, "speedtest": { - "upload": "Télécharger", - "download": "Télécharger", + "upload": "Téléversement", + "download": "Téléchargement", "ping": "Ping-ping" }, "portainer": { @@ -96,9 +96,9 @@ "ms": "{{value, number}}" }, "weather": { - "current": "Current Location", - "allow": "Click to allow", - "updating": "Updating", - "wait": "Please wait" + "current": "Localisation actuelle", + "allow": "Cliquez pour autoriser", + "updating": "Mise à jour", + "wait": "Veuillez patienter" } } From 26914bfb090113828a1cee3780d9567f3b45920e Mon Sep 17 00:00:00 2001 From: deffcolony Date: Fri, 9 Sep 2022 15:49:16 +0000 Subject: [PATCH 04/39] Translated using Weblate (Dutch) Currently translated at 95.3% (61 of 64 strings) Translation: Homepage/Homepage Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/nl/ --- public/locales/nl/common.json | 70 +++++++++++++++++------------------ 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/public/locales/nl/common.json b/public/locales/nl/common.json index 4d50a090c..fb108df16 100644 --- a/public/locales/nl/common.json +++ b/public/locales/nl/common.json @@ -5,9 +5,9 @@ "status": "Status" }, "resources": { - "total": "Total", - "free": "Free", - "used": "Used" + "total": "Totaal", + "free": "Vrij", + "used": "Gebruikt" }, "docker": { "rx": "RX", @@ -18,8 +18,8 @@ }, "nzbget": { "rate": "Rate", - "remaining": "Remaining", - "downloaded": "Downloaded" + "remaining": "Overgebleven", + "downloaded": "Gedownload" }, "speedtest": { "upload": "Upload", @@ -27,57 +27,57 @@ "ping": "Ping" }, "portainer": { - "running": "Running", - "stopped": "Stopped", - "total": "Total" + "running": "Draaiend", + "stopped": "Gestopt", + "total": "Totaal" }, "weather": { - "updating": "Updating", - "wait": "Please wait", - "current": "Current Location", - "allow": "Click to allow" + "updating": "Updaten", + "wait": "Even geduld", + "current": "Huidige Locatie", + "allow": "Klik om toe te staan" }, "search": { - "placeholder": "Search…" + "placeholder": "Zoeken…" }, "emby": { - "playing": "Playing", - "transcoding": "Transcoding", - "bitrate": "Bitrate" + "playing": "Afspelen", + "transcoding": "Transcodering", + "bitrate": "Bitsnelheid" }, "tautulli": { - "playing": "Playing", - "transcoding": "Transcoding", - "bitrate": "Bitrate" + "playing": "Afspelen", + "transcoding": "Transcodering", + "bitrate": "Bitsnelheid" }, "rutorrent": { - "active": "Active", + "active": "Actief", "upload": "Upload", "download": "Download" }, "sonarr": { - "wanted": "Wanted", - "queued": "Queued", + "wanted": "Gezocht", + "queued": "In de wachtrij", "series": "Series" }, "radarr": { - "movies": "Movies", - "wanted": "Wanted", - "queued": "Queued" + "movies": "Films", + "wanted": "Gezocht", + "queued": "In de wachtrij" }, "ombi": { - "pending": "Pending", - "approved": "Approved", - "available": "Available" + "pending": "In afwachting", + "approved": "Goedgekeurd", + "available": "Beschikbaar" }, "jellyseerr": { - "pending": "Pending", - "approved": "Approved", - "available": "Available" + "pending": "In afwachting", + "approved": "Goedgekeurd", + "available": "Beschikbaar" }, "pihole": { "queries": "Queries", - "blocked": "Blocked", + "blocked": "Geblokkeerd", "gravity": "Gravity" }, "traefik": { @@ -86,8 +86,8 @@ "middleware": "Middleware" }, "npm": { - "enabled": "Enabled", - "disabled": "Disabled", - "total": "Total" + "enabled": "Ingeschakeld", + "disabled": "Uitgeschakeld", + "total": "Totaal" } } From a1e9912b369114c9f9953a90f22212da152ed976 Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Sun, 11 Sep 2022 11:33:36 +0300 Subject: [PATCH 05/39] update readme --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1dea40bfb..aa52d645b 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,16 @@ ## Features * Fast! The entire site is statically generated at build time, so you can expect instant load times. + * Images built for AMD64 (x86_64), ARM64, ARMv7 and ARMv6 ([schklom](https://github.com/benphelps/homepage/pull/3) and [modem7](https://github.com/benphelps/homepage/pull/62)) + - Supports all Raspberry Pi's & Apple Silicon * Full i18n support with automatic language detection. - - Human translations for English, Norwegian Bokmål ([comradekingu](https://github.com/benphelps/homepage/commits?author=comradekingu)) and Spanish ([AmadeusGraves](https://github.com/benphelps/homepage/commits?author=AmadeusGraves)). - - Machine translations for Portuguese, French, German, Russian and Chinese (simplified). + - Human translations for English, Norwegian Bokmål ([comradekingu](https://github.com/benphelps/homepage/commits?author=comradekingu)), Spanish ([AmadeusGraves](https://github.com/benphelps/homepage/commits?author=AmadeusGraves)), French (J. Lavoie), Dutch ([deffcolony](https://github.com/benphelps/homepage/commits?author=deffcolony)) and Chinese ([nicedc](https://github.com/nicedc)). + - Machine translations for Portuguese, German and Russian. - Want to help translate? [Join the Weblate project](https://hosted.weblate.org/engage/homepage/). - * Complete Docker support, including AMD64, ARM64, ARMv7 and ARMv6 support ([schklom](https://github.com/benphelps/homepage/pull/3) and [modem7](https://github.com/benphelps/homepage/pull/62)) * Service & Web Bookmarks * Docker Integration - - Status light + CPU, Memory & Network Reporting *(click on the status light)* + - Container status (Running / Stopped) & statistics (CPU, Memory, Network) + - Automatic service discovery (via labels) * Service Integration - Currently supports Sonarr, Radarr, Ombi, Emby, Jellyfin, Tautulli (Plex), Jellyseerr ([ilusi0n](https://github.com/benphelps/homepage/pull/34)), NZBGet, ruTorrent - Portainer, Traefik, Speedtest Tracker, PiHole, Nginx Proxy Manager ([aidenpwnz](https://github.com/benphelps/homepage/pull/45)) From b8b8dad9fbd5cb01553ca7b4159cb560a5b6710f Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Sun, 11 Sep 2022 11:35:00 +0300 Subject: [PATCH 06/39] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aa52d645b..979c35969 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ * Fast! The entire site is statically generated at build time, so you can expect instant load times. * Images built for AMD64 (x86_64), ARM64, ARMv7 and ARMv6 ([schklom](https://github.com/benphelps/homepage/pull/3) and [modem7](https://github.com/benphelps/homepage/pull/62)) - - Supports all Raspberry Pi's & Apple Silicon + - Supports all Raspberry Pi's, most SBCs & Apple Silicon * Full i18n support with automatic language detection. - Human translations for English, Norwegian Bokmål ([comradekingu](https://github.com/benphelps/homepage/commits?author=comradekingu)), Spanish ([AmadeusGraves](https://github.com/benphelps/homepage/commits?author=AmadeusGraves)), French (J. Lavoie), Dutch ([deffcolony](https://github.com/benphelps/homepage/commits?author=deffcolony)) and Chinese ([nicedc](https://github.com/nicedc)). - Machine translations for Portuguese, German and Russian. From ed65c895167ff3c92f73a54c32e93e3b5dab7577 Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Sun, 11 Sep 2022 13:46:01 +0300 Subject: [PATCH 07/39] blur backdrops for better background image support --- src/components/bookmarks/item.jsx | 2 +- src/components/services/item.jsx | 2 +- src/components/widgets/resources/usage-bar.jsx | 2 +- src/components/widgets/search/search.jsx | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/bookmarks/item.jsx b/src/components/bookmarks/item.jsx index 5f4e53897..2ff958543 100644 --- a/src/components/bookmarks/item.jsx +++ b/src/components/bookmarks/item.jsx @@ -6,7 +6,7 @@ export default function Item({ bookmark }) {