diff --git a/public/locales/ar/common.json b/public/locales/ar/common.json index 9ef8c8fe..e4eb1d0c 100644 --- a/public/locales/ar/common.json +++ b/public/locales/ar/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/bg/common.json b/public/locales/bg/common.json index 1185514e..dc3bbd03 100644 --- a/public/locales/bg/common.json +++ b/public/locales/bg/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/ca/common.json b/public/locales/ca/common.json index d605c805..5147a31d 100644 --- a/public/locales/ca/common.json +++ b/public/locales/ca/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/cs/common.json b/public/locales/cs/common.json index 3e09060c..39d60f58 100644 --- a/public/locales/cs/common.json +++ b/public/locales/cs/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/da/common.json b/public/locales/da/common.json index 98af801d..8b1ded63 100644 --- a/public/locales/da/common.json +++ b/public/locales/da/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/de/common.json b/public/locales/de/common.json index 756ade92..9df3bfd2 100644 --- a/public/locales/de/common.json +++ b/public/locales/de/common.json @@ -669,7 +669,10 @@ "players": "Players", "bots": "Bots", "ping": "Ping", - "maxPlayers": "Max players" + "maxPlayers": "Max players", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/el/common.json b/public/locales/el/common.json index 0a745d90..49b76d49 100644 --- a/public/locales/el/common.json +++ b/public/locales/el/common.json @@ -163,7 +163,7 @@ "transcoding": "Μετακωδικοποίηση", "bitrate": "Ρυθμός bit", "no_active": "Δεν υπάρχουν ενεργές ροές", - "plex_connection_error": "Check Plex Connection" + "plex_connection_error": "Έλεγχος Σύνδεσης με Plex" }, "nzbget": { "rate": "Ρυθμός", @@ -208,8 +208,8 @@ "series": "Σειρές", "wanted": "Επιθυμούντε", "queued": "Σε σειρά", - "queue": "Queue", - "unknown": "Unknown" + "queue": "Ούρα", + "unknown": "Άγνωστο" }, "downloadstation": { "download": "Μεταφόρτωση", @@ -222,13 +222,13 @@ "missing": "Απουσιάζει", "queued": "Σε σειρά", "movies": "Ταινίες", - "queue": "Queue", - "unknown": "Unknown" + "queue": "Ουρά", + "unknown": "Άγνωστο" }, "lidarr": { "wanted": "Θέλετε", "queued": "Στη σειρά", - "artists": "Artists" + "artists": "Καλλιτέχνες" }, "readarr": { "wanted": "Θέλετε", @@ -621,7 +621,7 @@ "systemTempC": "Θερμοκρασία συστήματος", "poolUsage": "Χρήση πισίνας", "volumeUsage": "Volume Usage", - "invalid": "Invalid" + "invalid": "Μη έγκυρο" }, "pfsense": { "load": "Load Avg", @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "myPrs": "My PRs", diff --git a/public/locales/eo/common.json b/public/locales/eo/common.json index b74723ae..019d05b7 100644 --- a/public/locales/eo/common.json +++ b/public/locales/eo/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/es/common.json b/public/locales/es/common.json index 6d73f553..37d4b0e6 100644 --- a/public/locales/es/common.json +++ b/public/locales/es/common.json @@ -669,7 +669,10 @@ "players": "Jugadores", "maxPlayers": "Jugadores máximos", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Estado", + "online": "En línea", + "offline": "Sin conexión" }, "azuredevops": { "result": "Resultado", diff --git a/public/locales/eu/common.json b/public/locales/eu/common.json index fcb6026d..8ba75c93 100644 --- a/public/locales/eu/common.json +++ b/public/locales/eu/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "notStarted": "Not Started", diff --git a/public/locales/fi/common.json b/public/locales/fi/common.json index 5a1f22ae..505c7a60 100644 --- a/public/locales/fi/common.json +++ b/public/locales/fi/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json index 9bf6d6ef..8d76d83f 100644 --- a/public/locales/fr/common.json +++ b/public/locales/fr/common.json @@ -248,7 +248,13 @@ "warn": "Alerte", "total": "Total", "free": "Libre", - "used": "Utilisé" + "used": "Utilisé", + "crit": "Crit.", + "read": "Lect.", + "write": "Écrit.", + "gpu": "GPU", + "mem": "Mém.", + "swap": "Swap" }, "changedetectionio": { "totalObserved": "Total Observé", @@ -656,16 +662,6 @@ "seriesCount": "Séries", "totalFiles": "Fichiers" }, - "azurePipelines": { - "result": "Résultat", - "status": "Statut", - "buildId": "Build ID", - "succeeded": "Réussi", - "notStarted": "Non démarré", - "failed": "Échoué", - "canceled": "Annulé", - "inProgress": "En cours" - }, "gamedig": { "name": "Nom", "map": "Carte", @@ -673,6 +669,28 @@ "players": "Joueurs", "maxPlayers": "Joueurs max", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Statut", + "online": "En ligne", + "offline": "Hors ligne" + }, + "azuredevops": { + "result": "Résultat", + "status": "Statut", + "buildId": "Build ID", + "succeeded": "Réussi", + "notStarted": "Arrêté", + "failed": "Échoué", + "canceled": "Annulé", + "inProgress": "En cours", + "totalPrs": "PRs Total", + "myPrs": "Mes PRs", + "approved": "Approuvé" + }, + "urbackup": { + "ok": "Ok", + "errored": "Erreur", + "noRecent": "Obsolète", + "totalUsed": "Esp. Utilisé" } } diff --git a/public/locales/he/common.json b/public/locales/he/common.json index 962ebd7d..fb335e70 100644 --- a/public/locales/he/common.json +++ b/public/locales/he/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/hi/common.json b/public/locales/hi/common.json index 3778776d..bd2491e1 100644 --- a/public/locales/hi/common.json +++ b/public/locales/hi/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "myPrs": "My PRs", diff --git a/public/locales/hr/common.json b/public/locales/hr/common.json index 7b094f74..26772c07 100644 --- a/public/locales/hr/common.json +++ b/public/locales/hr/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/hu/common.json b/public/locales/hu/common.json index f7bb97a3..a8b2b9e8 100644 --- a/public/locales/hu/common.json +++ b/public/locales/hu/common.json @@ -669,7 +669,10 @@ "currentPlayers": "Current players", "players": "Players", "maxPlayers": "Max players", - "bots": "Bots" + "bots": "Bots", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "status": "Status", diff --git a/public/locales/id/common.json b/public/locales/id/common.json index 6f165bb1..e0a8e542 100644 --- a/public/locales/id/common.json +++ b/public/locales/id/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/it/common.json b/public/locales/it/common.json index 9b1adb2a..50211698 100644 --- a/public/locales/it/common.json +++ b/public/locales/it/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json index 46369324..089ad81b 100644 --- a/public/locales/ja/common.json +++ b/public/locales/ja/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/ko/common.json b/public/locales/ko/common.json index c814369c..31f4a6ff 100644 --- a/public/locales/ko/common.json +++ b/public/locales/ko/common.json @@ -669,7 +669,10 @@ "currentPlayers": "Current players", "players": "Players", "maxPlayers": "Max players", - "bots": "Bots" + "bots": "Bots", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/lv/common.json b/public/locales/lv/common.json index 6d31e49a..2bdd7a4c 100644 --- a/public/locales/lv/common.json +++ b/public/locales/lv/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "online": "Online", + "status": "Status", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/ms/common.json b/public/locales/ms/common.json index dad759ab..5c5ecff9 100644 --- a/public/locales/ms/common.json +++ b/public/locales/ms/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/nb-NO/common.json b/public/locales/nb-NO/common.json index b13b4c36..dea49c31 100644 --- a/public/locales/nb-NO/common.json +++ b/public/locales/nb-NO/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/nl/common.json b/public/locales/nl/common.json index 2131e246..39fe9fe5 100644 --- a/public/locales/nl/common.json +++ b/public/locales/nl/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "online": "Online", + "status": "Status", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/pl/common.json b/public/locales/pl/common.json index b9f979e3..765b48f6 100644 --- a/public/locales/pl/common.json +++ b/public/locales/pl/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "status": "Status", diff --git a/public/locales/pt-BR/common.json b/public/locales/pt-BR/common.json index f10c25e3..13735c01 100644 --- a/public/locales/pt-BR/common.json +++ b/public/locales/pt-BR/common.json @@ -669,7 +669,10 @@ "players": "Jogadores", "maxPlayers": "Jogadores Max", "bots": "Robos", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/pt/common.json b/public/locales/pt/common.json index 0840bc55..4c7f4259 100644 --- a/public/locales/pt/common.json +++ b/public/locales/pt/common.json @@ -678,7 +678,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/ro/common.json b/public/locales/ro/common.json index 2b19ded4..567bfba5 100644 --- a/public/locales/ro/common.json +++ b/public/locales/ro/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "canceled": "Canceled", diff --git a/public/locales/ru/common.json b/public/locales/ru/common.json index 01f664ac..5c65900c 100644 --- a/public/locales/ru/common.json +++ b/public/locales/ru/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/sk/common.json b/public/locales/sk/common.json index 8a793009..aba3bc6f 100644 --- a/public/locales/sk/common.json +++ b/public/locales/sk/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "succeeded": "Succeeded", diff --git a/public/locales/sl/common.json b/public/locales/sl/common.json index 429d09dd..51e78672 100644 --- a/public/locales/sl/common.json +++ b/public/locales/sl/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/sr/common.json b/public/locales/sr/common.json index 0c7462cf..78075f4c 100644 --- a/public/locales/sr/common.json +++ b/public/locales/sr/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/sv/common.json b/public/locales/sv/common.json index fe39cb36..1dd59ece 100644 --- a/public/locales/sv/common.json +++ b/public/locales/sv/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "approved": "Approved", diff --git a/public/locales/te/common.json b/public/locales/te/common.json index 1357081f..77cc7df0 100644 --- a/public/locales/te/common.json +++ b/public/locales/te/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/th/common.json b/public/locales/th/common.json index 865643d9..cf54e20c 100644 --- a/public/locales/th/common.json +++ b/public/locales/th/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/tr/common.json b/public/locales/tr/common.json index 32ccf07b..8dc340b2 100644 --- a/public/locales/tr/common.json +++ b/public/locales/tr/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/uk/common.json b/public/locales/uk/common.json index 97345e91..c94e7e5b 100644 --- a/public/locales/uk/common.json +++ b/public/locales/uk/common.json @@ -374,11 +374,11 @@ "free": "Вільний", "used": "Використовується", "crit": "Crit", - "read": "Read", - "write": "Write", + "read": "Прочитати", + "write": "Написати", "gpu": "GPU", - "mem": "Mem", - "swap": "Swap" + "mem": "Пам'ять", + "swap": "Обмін" }, "quicklaunch": { "bookmark": "Закладка", @@ -669,25 +669,28 @@ "players": "Гравці", "maxPlayers": "Максимум гравців", "bots": "Ботів", - "ping": "Пінг" + "ping": "Пінг", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { - "result": "Result", - "status": "Status", - "buildId": "Build ID", - "succeeded": "Succeeded", - "notStarted": "Not Started", - "failed": "Failed", - "canceled": "Canceled", - "inProgress": "In Progress", - "totalPrs": "Total PRs", - "myPrs": "My PRs", - "approved": "Approved" + "result": "Результат", + "status": "Статус", + "buildId": "ID збірки", + "succeeded": "Успішно", + "notStarted": "Не розпочато", + "failed": "Невдача", + "canceled": "Скасовано", + "inProgress": "В процесі", + "totalPrs": "Всього PR", + "myPrs": "Мій PR", + "approved": "Затверджено" }, "urbackup": { - "ok": "Ok", - "errored": "Errors", - "noRecent": "Out of Date", - "totalUsed": "Used Storage" + "ok": "Добре", + "errored": "Помилки", + "noRecent": "Застарілий", + "totalUsed": "Використовувана пам'ять" } } diff --git a/public/locales/vi/common.json b/public/locales/vi/common.json index a3df3c20..cf2d03f8 100644 --- a/public/locales/vi/common.json +++ b/public/locales/vi/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/yue/common.json b/public/locales/yue/common.json index 4fa9b4e5..8c602853 100644 --- a/public/locales/yue/common.json +++ b/public/locales/yue/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "Result", diff --git a/public/locales/zh-CN/common.json b/public/locales/zh-CN/common.json index 29b63d4f..2512b256 100644 --- a/public/locales/zh-CN/common.json +++ b/public/locales/zh-CN/common.json @@ -669,7 +669,10 @@ "players": "Players", "maxPlayers": "Max players", "bots": "Bots", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "canceled": "Canceled", diff --git a/public/locales/zh-Hant/common.json b/public/locales/zh-Hant/common.json index fbbd8dfe..f8969c29 100644 --- a/public/locales/zh-Hant/common.json +++ b/public/locales/zh-Hant/common.json @@ -669,7 +669,10 @@ "players": "玩家", "maxPlayers": "玩家數上限", "bots": "機器人", - "ping": "Ping" + "ping": "Ping", + "status": "Status", + "online": "Online", + "offline": "Offline" }, "azuredevops": { "result": "結果", diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index 1e241e46..83b4b07b 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -296,6 +296,8 @@ export function cleanServiceGroups(groups) { userEmail, // azuredevops repositoryId, metric, // glances + stream, // mjpeg + fit, } = cleanedService.widget; let fieldsList = fields; @@ -362,6 +364,10 @@ export function cleanServiceGroups(groups) { if (type === "glances") { if (metric) cleanedService.widget.metric = metric; } + if (type === "mjpeg") { + if (stream) cleanedService.widget.stream = stream; + if (fit) cleanedService.widget.fit = fit; + } } return cleanedService; diff --git a/src/widgets/azuredevops/component.jsx b/src/widgets/azuredevops/component.jsx index a9db4403..27c39d1c 100644 --- a/src/widgets/azuredevops/component.jsx +++ b/src/widgets/azuredevops/component.jsx @@ -56,7 +56,7 @@ export default function Component({ service }) { value={t("common.number", { value: prData.value ?.filter((item) => item.createdBy.uniqueName.toLowerCase() === userEmail.toLowerCase()) - .filter((item) => item.reviewers.some((reviewer) => reviewer.vote === 10)).length, + .filter((item) => item.reviewers.some((reviewer) => [5,10].includes(reviewer.vote))).length })} />} diff --git a/src/widgets/azuredevops/widget.js b/src/widgets/azuredevops/widget.js index 84c9fdf3..080f9cc4 100644 --- a/src/widgets/azuredevops/widget.js +++ b/src/widgets/azuredevops/widget.js @@ -10,7 +10,7 @@ const widget = { }, pipeline: { - endpoint: "build/Builds?branchName={branchName}&definitions={definitionId}&$top=1" + endpoint: "build/Builds?branchName={branchName}&definitions={definitionId}" }, }, }; diff --git a/src/widgets/components.js b/src/widgets/components.js index 851322e7..0db4878c 100644 --- a/src/widgets/components.js +++ b/src/widgets/components.js @@ -46,6 +46,7 @@ const components = { minecraft: dynamic(() => import("./minecraft/component")), miniflux: dynamic(() => import("./miniflux/component")), mikrotik: dynamic(() => import("./mikrotik/component")), + mjpeg: dynamic(() => import("./mjpeg/component")), moonraker: dynamic(() => import("./moonraker/component")), mylar: dynamic(() => import("./mylar/component")), navidrome: dynamic(() => import("./navidrome/component")), diff --git a/src/widgets/mjpeg/component.jsx b/src/widgets/mjpeg/component.jsx new file mode 100644 index 00000000..30907c31 --- /dev/null +++ b/src/widgets/mjpeg/component.jsx @@ -0,0 +1,17 @@ +import Image from "next/image"; + +export default function Component({ service }) { + const { widget } = service; + const { stream, fit = "contain" } = widget; + + return ( +
+
+ stream + stream +
+
+
+
+ ); +} diff --git a/src/widgets/mjpeg/widget.js b/src/widgets/mjpeg/widget.js new file mode 100644 index 00000000..400c33a6 --- /dev/null +++ b/src/widgets/mjpeg/widget.js @@ -0,0 +1,8 @@ +import genericProxyHandler from "utils/proxy/handlers/generic"; + +const widget = { + api: "{url}/{endpoint}", + proxyHandler: genericProxyHandler, +}; + +export default widget; diff --git a/src/widgets/octoprint/component.jsx b/src/widgets/octoprint/component.jsx index 7d3d5a1d..ce87548e 100644 --- a/src/widgets/octoprint/component.jsx +++ b/src/widgets/octoprint/component.jsx @@ -31,7 +31,7 @@ export default function Component({ service }) { const printingStateFalgs = ["Printing", "Paused", "Pausing", "Resuming"]; if (printingStateFalgs.includes(state)) { - const { completion } = jobStats.progress; + const { completion } = jobStats?.progress ?? undefined; if (!jobStats || !completion) { return ( diff --git a/src/widgets/widgets.js b/src/widgets/widgets.js index 41a31253..d28f3b38 100644 --- a/src/widgets/widgets.js +++ b/src/widgets/widgets.js @@ -40,6 +40,7 @@ import medusa from "./medusa/widget"; import minecraft from "./minecraft/widget"; import miniflux from "./miniflux/widget"; import mikrotik from "./mikrotik/widget"; +import mjpeg from "./mjpeg/widget"; import moonraker from "./moonraker/widget"; import mylar from "./mylar/widget"; import navidrome from "./navidrome/widget"; @@ -134,6 +135,7 @@ const widgets = { minecraft, miniflux, mikrotik, + mjpeg, moonraker, mylar, navidrome,