From 6d1db787093e8f6fd2abd45c80246cdac6ccd803 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Fri, 14 Apr 2023 10:32:12 -0700
Subject: [PATCH 001/101] Accept http 401 / 403 for ping
---
src/components/services/ping.jsx | 14 ++++++--------
src/pages/api/ping.js | 2 +-
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/src/components/services/ping.jsx b/src/components/services/ping.jsx
index e3056232..7358b172 100644
--- a/src/components/services/ping.jsx
+++ b/src/components/services/ping.jsx
@@ -25,7 +25,7 @@ export default function Ping({ service }) {
const statusText = `${service.ping}: HTTP status ${data.status}`;
- if (data && data.status !== 200) {
+ if (data.status > 403) {
return (
{data.status}
@@ -33,12 +33,10 @@ export default function Ping({ service }) {
);
}
- if (data && data.status === 200) {
- return (
-
-
{t("common.ms", { value: data.latency, style: "unit", unit: "millisecond", unitDisplay: "narrow", maximumFractionDigits: 0 })}
-
- );
- }
+ return (
+
+
{t("common.ms", { value: data.latency, style: "unit", unit: "millisecond", unitDisplay: "narrow", maximumFractionDigits: 0 })}
+
+ );
}
diff --git a/src/pages/api/ping.js b/src/pages/api/ping.js
index 66eab281..1fdb1f80 100644
--- a/src/pages/api/ping.js
+++ b/src/pages/api/ping.js
@@ -21,7 +21,7 @@ export default async function handler(req, res) {
});
let endTime = performance.now();
- if (status >= 400) {
+ if (status > 403) {
// try one more time as a GET in case HEAD is rejected for whatever reason
startTime = performance.now();
[status] = await httpProxy(pingURL);
From a47e48133067882ad057bfe741be870e5e5f5487 Mon Sep 17 00:00:00 2001
From: gallegonovato
Date: Thu, 13 Apr 2023 19:14:03 +0000
Subject: [PATCH 002/101] Translated using Weblate (Spanish)
Currently translated at 100.0% (406 of 406 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/es/
---
public/locales/es/common.json | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/public/locales/es/common.json b/public/locales/es/common.json
index 85f4f650..870e4a6e 100644
--- a/public/locales/es/common.json
+++ b/public/locales/es/common.json
@@ -564,8 +564,8 @@
"booksDuration": "Duración"
},
"homeassistant": {
- "people_home": "People Home",
- "lights_on": "Lights On",
- "switches_on": "Switches On"
+ "people_home": "Inicio de personas",
+ "lights_on": "Luces encendidas",
+ "switches_on": "Encendido"
}
}
From d5812d8c8147c05890597e25347e4a2374c7efae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20Manuel=20Benn=C3=A0ssar=20Carretero?=
Date: Mon, 17 Apr 2023 09:56:47 +0000
Subject: [PATCH 003/101] Translated using Weblate (Spanish)
Currently translated at 100.0% (406 of 406 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/es/
---
public/locales/es/common.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/locales/es/common.json b/public/locales/es/common.json
index 870e4a6e..d573e61d 100644
--- a/public/locales/es/common.json
+++ b/public/locales/es/common.json
@@ -18,7 +18,7 @@
"load": "Carga",
"cpu": "CPU",
"mem": "MEM",
- "temp": "TEMPORAL",
+ "temp": "TEMP",
"max": "Máx.",
"uptime": "ARRIBA",
"months": "Meses",
From af61aa23c16ec56b716f2fa067d7164106bc4756 Mon Sep 17 00:00:00 2001
From: Henrique Miraldo
Date: Sat, 15 Apr 2023 18:05:15 +0000
Subject: [PATCH 004/101] Translated using Weblate (Portuguese)
Currently translated at 100.0% (406 of 406 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/pt/
---
public/locales/pt/common.json | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/public/locales/pt/common.json b/public/locales/pt/common.json
index d3c66402..cd98f0ac 100644
--- a/public/locales/pt/common.json
+++ b/public/locales/pt/common.json
@@ -21,7 +21,7 @@
"max": "Máximo",
"temp": "TEMP",
"uptime": "CIMA",
- "months": "mo",
+ "months": "mês",
"days": "d",
"hours": "h",
"minutes": "m"
@@ -573,8 +573,8 @@
"booksDuration": "Duração"
},
"homeassistant": {
- "people_home": "People Home",
- "lights_on": "Lights On",
- "switches_on": "Switches On"
+ "people_home": "Pessoas em Casa",
+ "lights_on": "Luzes Acesas",
+ "switches_on": "Interruptores Ligados"
}
}
From 58f35f094032b9647f68b4aca4d393d6ea0b184f Mon Sep 17 00:00:00 2001
From: Mateusz Sarna
Date: Sat, 15 Apr 2023 02:46:22 +0000
Subject: [PATCH 005/101] Translated using Weblate (Polish)
Currently translated at 71.9% (292 of 406 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/pl/
---
public/locales/pl/common.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/public/locales/pl/common.json b/public/locales/pl/common.json
index da01b0bd..1c5778c8 100644
--- a/public/locales/pl/common.json
+++ b/public/locales/pl/common.json
@@ -15,10 +15,10 @@
"free": "Wolne",
"cpu": "CPU",
"mem": "PAM",
- "temp": "TYMCZASOWE",
+ "temp": "TEMP.",
"max": "Max",
"uptime": "UP",
- "months": "misiąc",
+ "months": "miesiąc",
"days": "dni",
"hours": "h",
"minutes": "minuty"
From 188ca3186f01eff5cf4995c0985913b59e037f2d Mon Sep 17 00:00:00 2001
From: Milo Ivir
Date: Sun, 16 Apr 2023 14:36:06 +0000
Subject: [PATCH 006/101] Translated using Weblate (Croatian)
Currently translated at 100.0% (406 of 406 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/hr/
---
public/locales/hr/common.json | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/public/locales/hr/common.json b/public/locales/hr/common.json
index f70816bf..74cf338b 100644
--- a/public/locales/hr/common.json
+++ b/public/locales/hr/common.json
@@ -564,8 +564,8 @@
"booksDuration": "Trajanje"
},
"homeassistant": {
- "people_home": "People Home",
- "lights_on": "Lights On",
- "switches_on": "Switches On"
+ "people_home": "Ljudi doma",
+ "lights_on": "Upaljena svjetla",
+ "switches_on": "Prekidači uključeni"
}
}
From db9ccaae2e936f4e2b575aed1829c2cfe06901fb Mon Sep 17 00:00:00 2001
From: Henrique Miraldo
Date: Sat, 15 Apr 2023 17:56:42 +0000
Subject: [PATCH 007/101] Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (406 of 406 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/pt_BR/
---
public/locales/pt-BR/common.json | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/public/locales/pt-BR/common.json b/public/locales/pt-BR/common.json
index 246c357d..4cc4e852 100644
--- a/public/locales/pt-BR/common.json
+++ b/public/locales/pt-BR/common.json
@@ -54,8 +54,8 @@
"mem": "MEM",
"max": "Máximo",
"temp": "TEMP",
- "uptime": "CIMA",
- "months": "mo",
+ "uptime": "LIGADO",
+ "months": "mês",
"days": "d",
"hours": "h",
"minutes": "m"
@@ -235,7 +235,7 @@
"mem": "MEM",
"wait": "Por favor aguarde",
"temp": "TEMP",
- "uptime": "CIMA",
+ "uptime": "LIGADO",
"days": "d",
"hours": "h"
},
@@ -316,9 +316,9 @@
"up_to_date": "Atualizado",
"child_bridges": "Pontes Filhas",
"child_bridges_status": "{{ok}}/{{total}}",
- "up": "Cima",
+ "up": "Ligado",
"pending": "Pendente",
- "down": "Baixo"
+ "down": "Desligado"
},
"autobrr": {
"approvedPushes": "Aprovado",
@@ -564,8 +564,8 @@
"booksDuration": "Duração"
},
"homeassistant": {
- "people_home": "People Home",
- "lights_on": "Lights On",
- "switches_on": "Switches On"
+ "people_home": "Pessoas em Casa",
+ "lights_on": "Luzes Ligadas",
+ "switches_on": "Interruptores Ligados"
}
}
From 932c4797299dc595f3afce1ab91df232a1fd3860 Mon Sep 17 00:00:00 2001
From: SekoiaTree
Date: Sun, 16 Apr 2023 12:28:10 +0000
Subject: [PATCH 008/101] Translated using Weblate (Esperanto)
Currently translated at 36.2% (147 of 406 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/eo/
---
public/locales/eo/common.json | 70 +++++++++++++++++------------------
1 file changed, 35 insertions(+), 35 deletions(-)
diff --git a/public/locales/eo/common.json b/public/locales/eo/common.json
index e9047f54..7f7ede0f 100644
--- a/public/locales/eo/common.json
+++ b/public/locales/eo/common.json
@@ -1,18 +1,18 @@
{
"widget": {
- "missing_type": "Missing Widget Type: {{type}}",
- "api_error": "API Error",
+ "missing_type": "Manka Tipo de Fenestraĵo: {{type}}",
+ "api_error": "Eraro de API",
"information": "Informo",
"status": "Stato",
"url": "URL",
- "raw_error": "Raw Error",
- "response_data": "Response Data"
+ "raw_error": "Kruda Eraro",
+ "response_data": "Respondoj de Demandoj"
},
"weather": {
"current": "Aktuala loko",
- "allow": "Click to allow",
- "updating": "Updating",
- "wait": "Please wait"
+ "allow": "Klaku por permesi",
+ "updating": "Ĝisdatiganta",
+ "wait": "Bonvolu atendi"
},
"search": {
"placeholder": "Serĉi…"
@@ -26,58 +26,58 @@
"mem": "MEM",
"temp": "TEMP",
"months": "mo",
- "max": "Max",
+ "max": "Maks",
"uptime": "UP",
- "days": "d",
+ "days": "t",
"hours": "h",
"minutes": "m"
},
"unifi": {
"users": "Uzantoj",
- "uptime": "System Uptime",
+ "uptime": "Uptempo de la Sistemo",
"days": "Tagoj",
"wan": "WAN",
"lan": "LAN",
"wlan": "WLAN",
"devices": "Aparatoj",
- "lan_devices": "LAN Devices",
- "wlan_devices": "WLAN Devices",
- "lan_users": "LAN Users",
- "wlan_users": "WLAN Users",
+ "lan_devices": "LAN-Aparatoj",
+ "wlan_devices": "WLAN-Aparatoj",
+ "lan_users": "LAN-Uzantoj",
+ "wlan_users": "WLAN-Uzantoj",
"up": "UP",
"down": "DOWN",
- "wait": "Please wait",
- "empty_data": "Subsystem status unknown"
+ "wait": "Bonvolu atendi",
+ "empty_data": "Subsistemostatuso nekonata"
},
"docker": {
"rx": "RX",
"tx": "TX",
- "mem": "Memoro",
- "cpu": "Ĉefprocesoro",
- "offline": "Offline",
+ "mem": "MEM",
+ "cpu": "CPO",
+ "offline": "Malkonekta",
"error": "Eraro",
"unknown": "Nekonata",
- "running": "Running",
- "starting": "Starting",
- "unhealthy": "Unhealthy",
- "not_found": "Not Found",
- "exited": "Exited",
- "partial": "Partial",
- "healthy": "Healthy"
+ "running": "Rulata",
+ "starting": "Lanĉante",
+ "unhealthy": "Malsana",
+ "not_found": "Ne trovita",
+ "exited": "Eliris",
+ "partial": "Parta",
+ "healthy": "Sana"
},
"ping": {
"error": "Eraro",
- "ping": "Ping"
+ "ping": "Sondaĵo"
},
"emby": {
"playing": "Ludante",
- "transcoding": "Transcoding",
- "bitrate": "Bitrate",
+ "transcoding": "Transkodigo",
+ "bitrate": "Bitrapido",
"no_active": "No Active Streams",
- "movies": "Movies",
- "series": "Series",
- "episodes": "Episodes",
- "songs": "Songs"
+ "movies": "Filmoj",
+ "series": "Serioj",
+ "episodes": "Epizodoj",
+ "songs": "Kantoj"
},
"changedetectionio": {
"totalObserved": "Total Observed",
@@ -382,8 +382,8 @@
"total": "Totalo"
},
"flood": {
- "download": "Download",
- "upload": "Upload",
+ "download": "Elŝuti",
+ "upload": "Alŝuti",
"leech": "Leech",
"seed": "Seed"
},
From 9f91cd27f3a5e0de35e830b397837e2f6bcc1d51 Mon Sep 17 00:00:00 2001
From: Dan
Date: Sun, 16 Apr 2023 21:06:34 +0000
Subject: [PATCH 009/101] Translated using Weblate (Ukrainian)
Currently translated at 100.0% (406 of 406 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/uk/
---
public/locales/uk/common.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/locales/uk/common.json b/public/locales/uk/common.json
index 038f53f5..8ef6f030 100644
--- a/public/locales/uk/common.json
+++ b/public/locales/uk/common.json
@@ -564,7 +564,7 @@
"booksDuration": "Тривалість"
},
"homeassistant": {
- "people_home": "People Home",
+ "people_home": "Люди вдома",
"lights_on": "Світло ввімкнено",
"switches_on": "Вмикається"
}
From f2fc78b63f298ad9b19aac5c6aeea675256b7bfd Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Tue, 18 Apr 2023 11:37:58 -0700
Subject: [PATCH 010/101] Glances include cpu tempts labeled `Tctl`
---
src/components/widgets/glances/glances.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/widgets/glances/glances.jsx b/src/components/widgets/glances/glances.jsx
index a6f4dfa8..fc0d21ed 100644
--- a/src/components/widgets/glances/glances.jsx
+++ b/src/components/widgets/glances/glances.jsx
@@ -6,7 +6,7 @@ import { useTranslation } from "next-i18next";
import UsageBar from "../resources/usage-bar";
-const cpuSensorLabels = ["cpu_thermal", "Core"];
+const cpuSensorLabels = ["cpu_thermal", "Core", "Tctl"];
function convertToFahrenheit(t) {
return t * 9/5 + 32
From 56ad8cb927fe830d10802ca3a2073d254df830cb Mon Sep 17 00:00:00 2001
From: Andrej Kralj
Date: Wed, 19 Apr 2023 06:45:24 +0200
Subject: [PATCH 011/101] Added translation using Weblate (Slovenian)
---
public/locales/sl/common.json | 1 +
1 file changed, 1 insertion(+)
create mode 100644 public/locales/sl/common.json
diff --git a/public/locales/sl/common.json b/public/locales/sl/common.json
new file mode 100644
index 00000000..0967ef42
--- /dev/null
+++ b/public/locales/sl/common.json
@@ -0,0 +1 @@
+{}
From 4794c8e2ed7cd0b4d7fb285bb8efe997f24dcad2 Mon Sep 17 00:00:00 2001
From: Anonymous
Date: Wed, 19 Apr 2023 04:45:30 +0000
Subject: [PATCH 012/101] Translated using Weblate (Slovenian)
Currently translated at 100.0% (0 of 0 strings)
Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/sl/
---
public/locales/sl/common.json | 572 +++++++++++++++++++++++++++++++++-
1 file changed, 571 insertions(+), 1 deletion(-)
diff --git a/public/locales/sl/common.json b/public/locales/sl/common.json
index 0967ef42..27a44a8c 100644
--- a/public/locales/sl/common.json
+++ b/public/locales/sl/common.json
@@ -1 +1,571 @@
-{}
+{
+ "common": {
+ "bibyterate": "{{value, rate(bits: false; binary: true)}}",
+ "bibitrate": "{{value, rate(bits: true; binary: true)}}"
+ },
+ "jellyseerr": {
+ "available": "Available",
+ "pending": "Pending",
+ "approved": "Approved"
+ },
+ "overseerr": {
+ "pending": "Pending",
+ "processing": "Processing",
+ "approved": "Approved",
+ "available": "Available"
+ },
+ "pihole": {
+ "queries": "Queries",
+ "blocked": "Blocked",
+ "gravity": "Gravity"
+ },
+ "adguard": {
+ "filtered": "Filtered",
+ "latency": "Latency",
+ "queries": "Queries",
+ "blocked": "Blocked"
+ },
+ "opnsense": {
+ "wanUpload": "WAN Upload",
+ "wanDownload": "WAN Download",
+ "cpu": "CPU Load",
+ "memory": "Active Memory"
+ },
+ "octoprint": {
+ "temp_bed": "Bed temp",
+ "job_completion": "Completion",
+ "printer_state": "Status",
+ "temp_tool": "Tool temp"
+ },
+ "cloudflared": {
+ "origin_ip": "Origin IP",
+ "status": "Status"
+ },
+ "proxmoxbackupserver": {
+ "datastore_usage": "Datastore",
+ "failed_tasks_24h": "Failed Tasks 24h",
+ "cpu_usage": "CPU",
+ "memory_usage": "Memory"
+ },
+ "mylar": {
+ "wanted": "Wanted",
+ "series": "Series",
+ "issues": "Issues"
+ },
+ "photoprism": {
+ "albums": "Albums",
+ "photos": "Photos",
+ "videos": "Videos",
+ "people": "People"
+ },
+ "grafana": {
+ "alertstriggered": "Alerts Triggered",
+ "dashboards": "Dashboards",
+ "datasources": "Data Sources",
+ "totalalerts": "Total Alerts"
+ },
+ "nextcloud": {
+ "cpuload": "Cpu Load",
+ "memoryusage": "Memory Usage",
+ "freespace": "Free Space",
+ "activeusers": "Active Users"
+ },
+ "kopia": {
+ "status": "Status",
+ "size": "Size",
+ "lastrun": "Last Run",
+ "nextrun": "Next Run",
+ "failed": "Failed"
+ },
+ "pterodactyl": {
+ "nodes": "Nodes",
+ "servers": "Servers"
+ },
+ "widget": {
+ "missing_type": "Missing Widget Type: {{type}}",
+ "api_error": "API Error",
+ "information": "Information",
+ "raw_error": "Raw Error",
+ "response_data": "Response Data",
+ "status": "Status",
+ "url": "URL"
+ },
+ "weather": {
+ "current": "Current Location",
+ "allow": "Click to allow",
+ "updating": "Updating",
+ "wait": "Please wait"
+ },
+ "search": {
+ "placeholder": "Search…"
+ },
+ "resources": {
+ "cpu": "CPU",
+ "mem": "MEM",
+ "total": "Total",
+ "free": "Free",
+ "used": "Used",
+ "load": "Load",
+ "temp": "TEMP",
+ "max": "Max",
+ "uptime": "UP",
+ "months": "mo",
+ "days": "d",
+ "hours": "h",
+ "minutes": "m"
+ },
+ "unifi": {
+ "devices": "Devices",
+ "lan_devices": "LAN Devices",
+ "wlan_devices": "WLAN Devices",
+ "lan_users": "LAN Users",
+ "wlan_users": "WLAN Users",
+ "up": "UP",
+ "down": "DOWN",
+ "wait": "Please wait",
+ "users": "Users",
+ "uptime": "System Uptime",
+ "days": "Days",
+ "wan": "WAN",
+ "lan": "LAN",
+ "wlan": "WLAN",
+ "empty_data": "Subsystem status unknown"
+ },
+ "docker": {
+ "rx": "RX",
+ "tx": "TX",
+ "mem": "MEM",
+ "cpu": "CPU",
+ "running": "Running",
+ "offline": "Offline",
+ "error": "Error",
+ "unknown": "Unknown",
+ "healthy": "Healthy",
+ "starting": "Starting",
+ "unhealthy": "Unhealthy",
+ "not_found": "Not Found",
+ "exited": "Exited",
+ "partial": "Partial"
+ },
+ "ping": {
+ "error": "Error",
+ "ping": "Ping"
+ },
+ "emby": {
+ "playing": "Playing",
+ "transcoding": "Transcoding",
+ "bitrate": "Bitrate",
+ "no_active": "No Active Streams",
+ "movies": "Movies",
+ "series": "Series",
+ "episodes": "Episodes",
+ "songs": "Songs"
+ },
+ "tautulli": {
+ "transcoding": "Transcoding",
+ "bitrate": "Bitrate",
+ "playing": "Playing",
+ "no_active": "No Active Streams"
+ },
+ "flood": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "changedetectionio": {
+ "totalObserved": "Total Observed",
+ "diffsDetected": "Diffs Detected"
+ },
+ "omada": {
+ "connectedAp": "Connected APs",
+ "activeUser": "Active devices",
+ "alerts": "Alerts",
+ "connectedGateway": "Connected gateways",
+ "connectedSwitches": "Connected switches"
+ },
+ "nzbget": {
+ "rate": "Rate",
+ "remaining": "Remaining",
+ "downloaded": "Downloaded"
+ },
+ "plex": {
+ "streams": "Active Streams",
+ "movies": "Movies",
+ "tv": "TV Shows"
+ },
+ "sabnzbd": {
+ "rate": "Rate",
+ "queue": "Queue",
+ "timeleft": "Time Left"
+ },
+ "rutorrent": {
+ "active": "Active",
+ "upload": "Upload",
+ "download": "Download"
+ },
+ "transmission": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "qbittorrent": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "deluge": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "sonarr": {
+ "wanted": "Wanted",
+ "queued": "Queued",
+ "series": "Series"
+ },
+ "radarr": {
+ "wanted": "Wanted",
+ "missing": "Missing",
+ "queued": "Queued",
+ "movies": "Movies"
+ },
+ "lidarr": {
+ "wanted": "Wanted",
+ "queued": "Queued",
+ "albums": "Albums"
+ },
+ "readarr": {
+ "wanted": "Wanted",
+ "queued": "Queued",
+ "books": "Books"
+ },
+ "bazarr": {
+ "missingEpisodes": "Missing Episodes",
+ "missingMovies": "Missing Movies"
+ },
+ "ombi": {
+ "pending": "Pending",
+ "approved": "Approved",
+ "available": "Available"
+ },
+ "speedtest": {
+ "upload": "Upload",
+ "download": "Download",
+ "ping": "Ping"
+ },
+ "portainer": {
+ "running": "Running",
+ "stopped": "Stopped",
+ "total": "Total"
+ },
+ "tdarr": {
+ "queue": "Queue",
+ "processed": "Processed",
+ "errored": "Errored",
+ "saved": "Saved"
+ },
+ "npm": {
+ "disabled": "Disabled",
+ "total": "Total",
+ "enabled": "Enabled"
+ },
+ "coinmarketcap": {
+ "configure": "Configure one or more crypto currencies to track",
+ "1hour": "1 Hour",
+ "1day": "1 Day",
+ "7days": "7 Days",
+ "30days": "30 Days"
+ },
+ "traefik": {
+ "routers": "Routers",
+ "services": "Services",
+ "middleware": "Middleware"
+ },
+ "gotify": {
+ "apps": "Applications",
+ "clients": "Clients",
+ "messages": "Messages"
+ },
+ "navidrome": {
+ "nothing_streaming": "No Active Streams",
+ "please_wait": "Please Wait"
+ },
+ "prowlarr": {
+ "enableIndexers": "Indexers",
+ "numberOfGrabs": "Grabs",
+ "numberOfQueries": "Queries",
+ "numberOfFailGrabs": "Fail Grabs",
+ "numberOfFailQueries": "Fail Queries"
+ },
+ "jackett": {
+ "configured": "Configured",
+ "errored": "Errored"
+ },
+ "strelaysrv": {
+ "numActiveSessions": "Sessions",
+ "numConnections": "Connections",
+ "dataRelayed": "Relayed",
+ "transferRate": "Rate"
+ },
+ "mastodon": {
+ "user_count": "Users",
+ "status_count": "Posts",
+ "domain_count": "Domains"
+ },
+ "medusa": {
+ "wanted": "Wanted",
+ "queued": "Queued",
+ "series": "Series"
+ },
+ "minecraft": {
+ "players": "Players",
+ "version": "Version",
+ "status": "Status",
+ "up": "Online",
+ "down": "Offline"
+ },
+ "miniflux": {
+ "read": "Read",
+ "unread": "Unread"
+ },
+ "proxmox": {
+ "lxc": "LXC",
+ "vms": "VMs",
+ "mem": "MEM",
+ "cpu": "CPU"
+ },
+ "glances": {
+ "cpu": "CPU",
+ "mem": "MEM",
+ "wait": "Please wait",
+ "temp": "TEMP",
+ "uptime": "UP",
+ "days": "d",
+ "hours": "h"
+ },
+ "authentik": {
+ "users": "Users",
+ "loginsLast24H": "Logins (24h)",
+ "failedLoginsLast24H": "Failed Logins (24h)"
+ },
+ "quicklaunch": {
+ "bookmark": "Bookmark",
+ "service": "Service",
+ "search": "Search",
+ "custom": "Custom",
+ "url": "URL",
+ "visit": "Visit"
+ },
+ "wmo": {
+ "3-night": "Cloudy",
+ "45-day": "Foggy",
+ "0-day": "Sunny",
+ "0-night": "Clear",
+ "1-day": "Mainly Sunny",
+ "1-night": "Mainly Clear",
+ "45-night": "Foggy",
+ "2-day": "Partly Cloudy",
+ "2-night": "Partly Cloudy",
+ "3-day": "Cloudy",
+ "48-day": "Foggy",
+ "48-night": "Foggy",
+ "51-day": "Light Drizzle",
+ "51-night": "Light Drizzle",
+ "53-day": "Drizzle",
+ "53-night": "Drizzle",
+ "55-day": "Heavy Drizzle",
+ "55-night": "Heavy Drizzle",
+ "56-day": "Light Freezing Drizzle",
+ "56-night": "Light Freezing Drizzle",
+ "57-day": "Freezing Drizzle",
+ "63-night": "Rain",
+ "65-day": "Heavy Rain",
+ "65-night": "Heavy Rain",
+ "66-day": "Freezing Rain",
+ "66-night": "Freezing Rain",
+ "57-night": "Freezing Drizzle",
+ "61-day": "Light Rain",
+ "61-night": "Light Rain",
+ "67-day": "Freezing Rain",
+ "63-day": "Rain",
+ "67-night": "Freezing Rain",
+ "71-day": "Light Snow",
+ "71-night": "Light Snow",
+ "73-day": "Snow",
+ "73-night": "Snow",
+ "75-day": "Heavy Snow",
+ "75-night": "Heavy Snow",
+ "77-day": "Snow Grains",
+ "77-night": "Snow Grains",
+ "80-day": "Light Showers",
+ "85-night": "Snow Showers",
+ "86-day": "Snow Showers",
+ "80-night": "Light Showers",
+ "81-day": "Showers",
+ "81-night": "Showers",
+ "82-day": "Heavy Showers",
+ "82-night": "Heavy Showers",
+ "85-day": "Snow Showers",
+ "86-night": "Snow Showers",
+ "95-day": "Thunderstorm",
+ "95-night": "Thunderstorm",
+ "96-day": "Thunderstorm With Hail",
+ "96-night": "Thunderstorm With Hail",
+ "99-day": "Thunderstorm With Hail",
+ "99-night": "Thunderstorm With Hail"
+ },
+ "homebridge": {
+ "child_bridges": "Child Bridges",
+ "child_bridges_status": "{{ok}}/{{total}}",
+ "up": "Up",
+ "available_update": "System",
+ "updates": "Updates",
+ "update_available": "Update Available",
+ "up_to_date": "Up to Date",
+ "pending": "Pending",
+ "down": "Down"
+ },
+ "healthchecks": {
+ "new": "New",
+ "up": "Online",
+ "grace": "In Grace Period",
+ "down": "Offline",
+ "paused": "Paused",
+ "status": "Status",
+ "last_ping": "Last Ping",
+ "never": "No pings yet"
+ },
+ "watchtower": {
+ "containers_scanned": "Scanned",
+ "containers_updated": "Updated",
+ "containers_failed": "Failed"
+ },
+ "autobrr": {
+ "approvedPushes": "Approved",
+ "rejectedPushes": "Rejected",
+ "filters": "Filters",
+ "indexers": "Indexers"
+ },
+ "tubearchivist": {
+ "downloads": "Queue",
+ "videos": "Videos",
+ "channels": "Channels",
+ "playlists": "Playlists"
+ },
+ "truenas": {
+ "load": "System Load",
+ "uptime": "Uptime",
+ "alerts": "Alerts",
+ "time": "{{value, number(style: unit; unitDisplay: long;)}}"
+ },
+ "pyload": {
+ "speed": "Speed",
+ "active": "Active",
+ "queue": "Queue",
+ "total": "Total"
+ },
+ "gluetun": {
+ "public_ip": "Public IP",
+ "region": "Region",
+ "country": "Country"
+ },
+ "hdhomerun": {
+ "channels": "Channels",
+ "hd": "HD"
+ },
+ "scrutiny": {
+ "passed": "Passed",
+ "failed": "Failed",
+ "unknown": "Unknown"
+ },
+ "paperlessngx": {
+ "inbox": "Inbox",
+ "total": "Total"
+ },
+ "nextdns": {
+ "wait": "Please Wait",
+ "no_devices": "No Device Data Received"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
+ },
+ "xteve": {
+ "streams_all": "All Streams",
+ "streams_active": "Active Streams",
+ "streams_xepg": "XEPG Channels"
+ },
+ "moonraker": {
+ "printer_state": "Printer State",
+ "print_status": "Print Status",
+ "print_progress": "Progress",
+ "layers": "Layers"
+ },
+ "immich": {
+ "users": "Users",
+ "photos": "Photos",
+ "videos": "Videos",
+ "storage": "Storage"
+ },
+ "uptimekuma": {
+ "up": "Sites Up",
+ "down": "Sites Down",
+ "uptime": "Uptime",
+ "incident": "Incident",
+ "m": "m"
+ },
+ "komga": {
+ "libraries": "Libraries",
+ "series": "Series",
+ "books": "Books"
+ },
+ "diskstation": {
+ "days": "Days",
+ "uptime": "Uptime",
+ "volumeAvailable": "Available"
+ },
+ "fileflows": {
+ "queue": "Queue",
+ "processing": "Processing",
+ "processed": "Processed",
+ "time": "Time"
+ },
+ "prometheus": {
+ "targets_up": "Targets Up",
+ "targets_down": "Targets Down",
+ "targets_total": "Total Targets"
+ },
+ "unmanic": {
+ "active_workers": "Active Workers",
+ "total_workers": "Total Workers",
+ "records_total": "Queue Length"
+ },
+ "ghostfolio": {
+ "gross_percent_today": "Today",
+ "gross_percent_1y": "One year",
+ "gross_percent_max": "All time"
+ },
+ "audiobookshelf": {
+ "podcasts": "Podcasts",
+ "books": "Books",
+ "podcastsDuration": "Duration",
+ "booksDuration": "Duration"
+ },
+ "homeassistant": {
+ "people_home": "People Home",
+ "lights_on": "Lights On",
+ "switches_on": "Switches On"
+ }
+}
From 55bc247c9e388cc3e0d7ae5e260741ecc3af6dc3 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Tue, 18 Apr 2023 22:51:46 -0700
Subject: [PATCH 013/101] Support blur, saturation & brightness filters for
background images
---
src/pages/index.jsx | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index fc294c6c..55109be9 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -318,15 +318,26 @@ function Home({ initialSettings }) {
export default function Wrapper({ initialSettings, fallback }) {
const wrappedStyle = {};
+ let backgroundBlur = false;
+ let backgroundSaturate = false;
+ let backgroundBrightness = false;
if (initialSettings && initialSettings.background) {
- const opacity = initialSettings.backgroundOpacity ?? 1;
+ let opacity = initialSettings.backgroundOpacity ?? 1;
+ let backgroundImage = initialSettings.background;
+ if (typeof initialSettings.background === 'object') {
+ backgroundImage = initialSettings.background.image;
+ backgroundBlur = initialSettings.background.blur !== undefined;
+ backgroundSaturate = initialSettings.background.saturate !== undefined;
+ backgroundBrightness = initialSettings.background.brightness !== undefined;
+ if (initialSettings.background.opacity !== undefined) opacity = initialSettings.background.opacity / 100;
+ }
const opacityValue = 1 - opacity;
wrappedStyle.backgroundImage = `
linear-gradient(
rgb(var(--bg-color) / ${opacityValue}),
rgb(var(--bg-color) / ${opacityValue})
),
- url(${initialSettings.background})`;
+ url(${backgroundImage})`;
wrappedStyle.backgroundPosition = "center";
wrappedStyle.backgroundSize = "cover";
}
@@ -345,7 +356,15 @@ export default function Wrapper({ initialSettings, fallback }) {
className="fixed overflow-auto w-full h-full bg-theme-50 dark:bg-theme-800 transition-all"
style={wrappedStyle}
>
-
+
+
+
);
From 1aa559537a4c920d5400e1778cf5a25b17162e09 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Wed, 19 Apr 2023 07:02:33 -0700
Subject: [PATCH 014/101] Update proxy.js
---
src/widgets/homebridge/proxy.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/widgets/homebridge/proxy.js b/src/widgets/homebridge/proxy.js
index 018aa78f..b0a75a03 100644
--- a/src/widgets/homebridge/proxy.js
+++ b/src/widgets/homebridge/proxy.js
@@ -52,7 +52,7 @@ async function apiCall(widget, endpoint, service) {
if (status === 401 || status === 403) {
logger.debug("Homebridge API rejected the request, attempting to obtain new session token");
- const { accessToken } = login(widget, service);
+ const { accessToken } = await login(widget, service);
headers.Authorization = `Bearer ${accessToken}`;
// retry the request, now with the new session token
From e8713a95c009f6953e421cebe95db29a6f358a8e Mon Sep 17 00:00:00 2001
From: Heng-Yi Wu <2316687+henry40408@users.noreply.github.com>
Date: Wed, 19 Apr 2023 23:26:58 +0800
Subject: [PATCH 015/101] Add FreshRSS widget (#1377)
* feat: add FreshRSS widget
* refactor: revert credentialed.js
* refactor: custom proxy handler for FreshRSS
* refactor: cache the token as long as possible
During installation, the salt is generated and remains constant unless
the user re-installs the FreshRSS instance.
---
public/locales/en/common.json | 4 ++
src/widgets/components.js | 1 +
src/widgets/freshrss/component.jsx | 33 ++++++++++
src/widgets/freshrss/proxy.js | 97 ++++++++++++++++++++++++++++++
src/widgets/freshrss/widget.js | 13 ++++
src/widgets/widgets.js | 2 +
6 files changed, 150 insertions(+)
create mode 100644 src/widgets/freshrss/component.jsx
create mode 100644 src/widgets/freshrss/proxy.js
create mode 100644 src/widgets/freshrss/widget.js
diff --git a/public/locales/en/common.json b/public/locales/en/common.json
index c46e6c38..adcda8ff 100755
--- a/public/locales/en/common.json
+++ b/public/locales/en/common.json
@@ -98,6 +98,10 @@
"leech": "Leech",
"seed": "Seed"
},
+ "freshrss": {
+ "subscriptions": "Subscriptions",
+ "unread": "Unread"
+ },
"changedetectionio": {
"totalObserved": "Total Observed",
"diffsDetected": "Diffs Detected"
diff --git a/src/widgets/components.js b/src/widgets/components.js
index ec7be376..6ca5722e 100644
--- a/src/widgets/components.js
+++ b/src/widgets/components.js
@@ -17,6 +17,7 @@ const components = {
emby: dynamic(() => import("./emby/component")),
fileflows: dynamic(() => import("./fileflows/component")),
flood: dynamic(() => import("./flood/component")),
+ freshrss: dynamic(() => import("./freshrss/component")),
ghostfolio: dynamic(() => import("./ghostfolio/component")),
gluetun: dynamic(() => import("./gluetun/component")),
gotify: dynamic(() => import("./gotify/component")),
diff --git a/src/widgets/freshrss/component.jsx b/src/widgets/freshrss/component.jsx
new file mode 100644
index 00000000..9381beb1
--- /dev/null
+++ b/src/widgets/freshrss/component.jsx
@@ -0,0 +1,33 @@
+import { useTranslation } from "next-i18next";
+
+import Container from "components/services/widget/container";
+import Block from "components/services/widget/block";
+import useWidgetAPI from "utils/proxy/use-widget-api";
+
+export default function Component({ service }) {
+ const { t } = useTranslation();
+
+ const { widget } = service;
+
+ const { data: freshrssData, error: freshrssError } = useWidgetAPI(widget, "info");
+
+ if (freshrssError) {
+ return