mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Compare commits
37 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aab5b0247a | ||
|
|
d7e4b0bd17 | ||
|
|
3bacdadb80 | ||
|
|
1d75ee44ed | ||
|
|
230cc343af | ||
|
|
b318ee165c | ||
|
|
f677646365 | ||
|
|
8db7d820d7 | ||
|
|
adb0632566 | ||
|
|
4d5c8db333 | ||
|
|
01d6a3d5f8 | ||
|
|
fbeadbc32f | ||
|
|
1289be888f | ||
|
|
aa7e3a955c | ||
|
|
2823f3b921 | ||
|
|
ddb2a74540 | ||
|
|
37d8d7a2f8 | ||
|
|
578b715a1f | ||
|
|
f14a811ce9 | ||
|
|
06dd6d2213 | ||
|
|
72471c47f4 | ||
|
|
aec5f7173c | ||
|
|
f7b68789ac | ||
|
|
0672da621e | ||
|
|
a7f9b78533 | ||
|
|
0075429e08 | ||
|
|
43f7ccd166 | ||
|
|
8c64e0f288 | ||
|
|
c91a387833 | ||
|
|
93d5dd88ba | ||
|
|
05427253b9 | ||
|
|
e2bc541089 | ||
|
|
9a959bab16 | ||
|
|
45ca4a15f7 | ||
|
|
ddd2ff53ff | ||
|
|
5c3266b48f | ||
|
|
0da6db9d9f |
@@ -9,15 +9,15 @@
|
|||||||
- Images built for AMD64 (x86_64), ARM64, ARMv7 and ARMv6
|
- Images built for AMD64 (x86_64), ARM64, ARMv7 and ARMv6
|
||||||
- Supports all Raspberry Pi's, most SBCs & Apple Silicon
|
- Supports all Raspberry Pi's, most SBCs & Apple Silicon
|
||||||
- Full i18n support with automatic language detection
|
- Full i18n support with automatic language detection
|
||||||
- Translations for Chinese, Dutch, French, German, Norwegian Bokmål, Portuguese, Russian and Spanish
|
- Translations for Chinese, Dutch, French, German, Norwegian Bokmål, Polish, Portuguese, Russian and Spanish
|
||||||
- Want to help translate? [Join the Weblate project](https://hosted.weblate.org/engage/homepage/)
|
- Want to help translate? [Join the Weblate project](https://hosted.weblate.org/engage/homepage/)
|
||||||
- Service & Web Bookmarks
|
- Service & Web Bookmarks
|
||||||
- Docker Integration
|
- Docker Integration
|
||||||
- Container status (Running / Stopped) & statistics (CPU, Memory, Network)
|
- Container status (Running / Stopped) & statistics (CPU, Memory, Network)
|
||||||
- Automatic service discovery (via labels)
|
- Automatic service discovery (via labels)
|
||||||
- Service Integration
|
- Service Integration
|
||||||
- Sonarr, Radarr, Readarr, Prowlarr, Emby, Jellyfin, Tautulli (Plex)
|
- Sonarr, Radarr, Readarr, Prowlarr, Bazarr, Lidarr, Emby, Jellyfin, Tautulli (Plex)
|
||||||
- Ombi, Overseerr, Jellyseerr, NZBGet, SABnzbd, ruTorrent, Transmission
|
- Ombi, Overseerr, Jellyseerr, Jackett, NZBGet, SABnzbd, ruTorrent, Transmission
|
||||||
- Portainer, Traefik, Speedtest Tracker, PiHole, Nginx Proxy Manager, Gotify
|
- Portainer, Traefik, Speedtest Tracker, PiHole, Nginx Proxy Manager, Gotify
|
||||||
- Information Providers
|
- Information Providers
|
||||||
- Coin Market Cap
|
- Coin Market Cap
|
||||||
@@ -132,6 +132,7 @@ Huge thanks to the all the contributors who have helped make this project what i
|
|||||||
- [modem7](https://github.com/benphelps/homepage/commits?author=modem7) - Impvoed Docker Image
|
- [modem7](https://github.com/benphelps/homepage/commits?author=modem7) - Impvoed Docker Image
|
||||||
- [nicedc](https://github.com/benphelps/homepage/commits?author=nicedc) - Chinese Translation
|
- [nicedc](https://github.com/benphelps/homepage/commits?author=nicedc) - Chinese Translation
|
||||||
- [Nonoss117](https://github.com/benphelps/homepage/commits?author=Nonoss117) - French Translation
|
- [Nonoss117](https://github.com/benphelps/homepage/commits?author=Nonoss117) - French Translation
|
||||||
|
- [psychodracon](https://github.com/benphelps/homepage/commits?author=psychodracon) - Polish Translation
|
||||||
- [quod](https://github.com/benphelps/homepage/commits?author=quod) - Fixed Typos
|
- [quod](https://github.com/benphelps/homepage/commits?author=quod) - Fixed Typos
|
||||||
- [schklom](https://github.com/benphelps/homepage/commits?author=schklom) - ARM64, ARMv7 and ARMv6
|
- [schklom](https://github.com/benphelps/homepage/commits?author=schklom) - ARM64, ARMv7 and ARMv6
|
||||||
- [xicopitz](https://github.com/benphelps/homepage/commits?author=xicopitz) - Gotify & Prowlarr Integration
|
- [xicopitz](https://github.com/benphelps/homepage/commits?author=xicopitz) - Gotify & Prowlarr Integration
|
||||||
|
|||||||
@@ -134,16 +134,22 @@
|
|||||||
"numberOfFailQueries": "Consultes fallides"
|
"numberOfFailQueries": "Consultes fallides"
|
||||||
},
|
},
|
||||||
"jackett": {
|
"jackett": {
|
||||||
"configured": "Configured",
|
"configured": "Configurat",
|
||||||
"errored": "Errored"
|
"errored": "Amb errors"
|
||||||
},
|
},
|
||||||
"bazarr": {
|
"bazarr": {
|
||||||
"missingEpisodes": "Missing Episodes",
|
"missingEpisodes": "Episodis que falten",
|
||||||
"missingMovies": "Missing Movies"
|
"missingMovies": "Pel·lícules que falten"
|
||||||
},
|
},
|
||||||
"lidarr": {
|
"lidarr": {
|
||||||
"wanted": "Wanted",
|
"wanted": "Volgut",
|
||||||
"queued": "Queued",
|
"queued": "En cua",
|
||||||
"albums": "Albums"
|
"albums": "Àlbums"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,5 +145,11 @@
|
|||||||
"wanted": "Wanted",
|
"wanted": "Wanted",
|
||||||
"queued": "Queued",
|
"queued": "Queued",
|
||||||
"albums": "Albums"
|
"albums": "Albums"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,12 +108,18 @@
|
|||||||
"pending": "Pending",
|
"pending": "Pending",
|
||||||
"approved": "Approved",
|
"approved": "Approved",
|
||||||
"available": "Available"
|
"available": "Available"
|
||||||
},
|
},
|
||||||
"pihole": {
|
"pihole": {
|
||||||
"queries": "Queries",
|
"queries": "Queries",
|
||||||
"blocked": "Blocked",
|
"blocked": "Blocked",
|
||||||
"gravity": "Gravity"
|
"gravity": "Gravity"
|
||||||
},
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
|
},
|
||||||
"speedtest": {
|
"speedtest": {
|
||||||
"upload": "Upload",
|
"upload": "Upload",
|
||||||
"download": "Download",
|
"download": "Download",
|
||||||
|
|||||||
@@ -21,16 +21,16 @@
|
|||||||
"offline": "Desconectado"
|
"offline": "Desconectado"
|
||||||
},
|
},
|
||||||
"emby": {
|
"emby": {
|
||||||
"playing": "En ejecución",
|
"playing": "Reproduciendo",
|
||||||
"transcoding": "Transcodificando",
|
"transcoding": "Transcodificando",
|
||||||
"bitrate": "Tasa de Bits",
|
"bitrate": "Tasa de bits",
|
||||||
"no_active": "No hay streams activos"
|
"no_active": "Sin transmisiones activas"
|
||||||
},
|
},
|
||||||
"tautulli": {
|
"tautulli": {
|
||||||
"playing": "En ejecución",
|
"playing": "Reproduciendo",
|
||||||
"transcoding": "Transcodificación",
|
"transcoding": "Transcodificando",
|
||||||
"bitrate": "Tasa de bits",
|
"bitrate": "Tasa de bits",
|
||||||
"no_active": "No hay streams activos"
|
"no_active": "Sin transmisiones activas"
|
||||||
},
|
},
|
||||||
"rutorrent": {
|
"rutorrent": {
|
||||||
"active": "Activo",
|
"active": "Activo",
|
||||||
@@ -39,17 +39,17 @@
|
|||||||
},
|
},
|
||||||
"sonarr": {
|
"sonarr": {
|
||||||
"wanted": "Más deseado",
|
"wanted": "Más deseado",
|
||||||
"queued": "Puesto en cola",
|
"queued": "En cola",
|
||||||
"series": "Series"
|
"series": "Series"
|
||||||
},
|
},
|
||||||
"radarr": {
|
"radarr": {
|
||||||
"wanted": "Más deseado",
|
"wanted": "Más deseado",
|
||||||
"queued": "Puesto en cola",
|
"queued": "En cola",
|
||||||
"movies": "Películas"
|
"movies": "Películas"
|
||||||
},
|
},
|
||||||
"readarr": {
|
"readarr": {
|
||||||
"wanted": "Más deseado",
|
"wanted": "Más deseado",
|
||||||
"queued": "Puesto en cola",
|
"queued": "En cola",
|
||||||
"books": "Libros"
|
"books": "Libros"
|
||||||
},
|
},
|
||||||
"ombi": {
|
"ombi": {
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
"gravity": "Gravedad"
|
"gravity": "Gravedad"
|
||||||
},
|
},
|
||||||
"speedtest": {
|
"speedtest": {
|
||||||
"upload": "Subir",
|
"upload": "Subida",
|
||||||
"download": "Descarga",
|
"download": "Descarga",
|
||||||
"ping": "Ping"
|
"ping": "Ping"
|
||||||
},
|
},
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
"total": "Total"
|
"total": "Total"
|
||||||
},
|
},
|
||||||
"weather": {
|
"weather": {
|
||||||
"current": "Ubicación Actual",
|
"current": "Ubicación actual",
|
||||||
"allow": "Haga clic para permitir",
|
"allow": "Haga clic para permitir",
|
||||||
"updating": "Actualizando",
|
"updating": "Actualizando",
|
||||||
"wait": "Espere, por favor"
|
"wait": "Espere, por favor"
|
||||||
@@ -99,21 +99,21 @@
|
|||||||
"available": "Disponible"
|
"available": "Disponible"
|
||||||
},
|
},
|
||||||
"sabnzbd": {
|
"sabnzbd": {
|
||||||
"rate": "Tasa de descarga",
|
"rate": "Tasa",
|
||||||
"queue": "Puesto en cola",
|
"queue": "En cola",
|
||||||
"timeleft": "Tiempo Restante"
|
"timeleft": "Tiempo restante"
|
||||||
},
|
},
|
||||||
"nzbget": {
|
"nzbget": {
|
||||||
"rate": "Tasa de descarga",
|
"rate": "Tasa",
|
||||||
"remaining": "Restante",
|
"remaining": "Restante",
|
||||||
"downloaded": "Descargado"
|
"downloaded": "Descargado"
|
||||||
},
|
},
|
||||||
"coinmarketcap": {
|
"coinmarketcap": {
|
||||||
"configure": "Configurar una o varias criptomonedas para su seguimiento",
|
"configure": "Configurar una o más criptomonedas para rastrear",
|
||||||
"1hour": "1 Hora",
|
"1hour": "1 Hora",
|
||||||
"1day": "1 Día",
|
"1day": "1 Día",
|
||||||
"7days": "7 Dias",
|
"7days": "7 Días",
|
||||||
"30days": "30 Dias"
|
"30days": "30 Días"
|
||||||
},
|
},
|
||||||
"gotify": {
|
"gotify": {
|
||||||
"apps": "Aplicaciones",
|
"apps": "Aplicaciones",
|
||||||
@@ -124,26 +124,32 @@
|
|||||||
"enableIndexers": "Indexadores",
|
"enableIndexers": "Indexadores",
|
||||||
"numberOfGrabs": "Capturas",
|
"numberOfGrabs": "Capturas",
|
||||||
"numberOfQueries": "Consultas",
|
"numberOfQueries": "Consultas",
|
||||||
"numberOfFailGrabs": "Capturas Fallidas",
|
"numberOfFailGrabs": "Capturas fallidas",
|
||||||
"numberOfFailQueries": "Consultas Fallidas"
|
"numberOfFailQueries": "Consultas fallidas"
|
||||||
},
|
},
|
||||||
"transmission": {
|
"transmission": {
|
||||||
"download": "Descarga",
|
"download": "Descarga",
|
||||||
"upload": "Subida",
|
"upload": "Subida",
|
||||||
"leech": "Egoístas (Leech)",
|
"leech": "Compañeros",
|
||||||
"seed": "Semillas"
|
"seed": "Semillas"
|
||||||
},
|
},
|
||||||
"jackett": {
|
"jackett": {
|
||||||
"configured": "Configured",
|
"configured": "Configurado",
|
||||||
"errored": "Errored"
|
"errored": "Con errores"
|
||||||
},
|
},
|
||||||
"bazarr": {
|
"bazarr": {
|
||||||
"missingEpisodes": "Missing Episodes",
|
"missingEpisodes": "Episodios perdidos",
|
||||||
"missingMovies": "Missing Movies"
|
"missingMovies": "Películas perdidas"
|
||||||
},
|
},
|
||||||
"lidarr": {
|
"lidarr": {
|
||||||
"queued": "Queued",
|
"queued": "En cola",
|
||||||
"wanted": "Wanted",
|
"wanted": "Más deseado",
|
||||||
"albums": "Albums"
|
"albums": "Álbumes"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,7 +106,7 @@
|
|||||||
},
|
},
|
||||||
"overseerr": {
|
"overseerr": {
|
||||||
"pending": "En attente",
|
"pending": "En attente",
|
||||||
"approved": "Validé",
|
"approved": "Demande",
|
||||||
"available": "Disponible"
|
"available": "Disponible"
|
||||||
},
|
},
|
||||||
"sabnzbd": {
|
"sabnzbd": {
|
||||||
@@ -149,12 +149,18 @@
|
|||||||
"errored": "En erreur"
|
"errored": "En erreur"
|
||||||
},
|
},
|
||||||
"bazarr": {
|
"bazarr": {
|
||||||
"missingEpisodes": "Missing Episodes",
|
"missingEpisodes": "Épisodes manquants",
|
||||||
"missingMovies": "Missing Movies"
|
"missingMovies": "Films manquants"
|
||||||
},
|
},
|
||||||
"lidarr": {
|
"lidarr": {
|
||||||
"wanted": "Wanted",
|
"wanted": "Demandé",
|
||||||
"queued": "Queued",
|
"queued": "En queue",
|
||||||
"albums": "Albums"
|
"albums": "Albums"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,5 +145,11 @@
|
|||||||
"wanted": "Wanted",
|
"wanted": "Wanted",
|
||||||
"queued": "Queued",
|
"queued": "Queued",
|
||||||
"albums": "Albums"
|
"albums": "Albums"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,5 +145,11 @@
|
|||||||
"wanted": "Wanted",
|
"wanted": "Wanted",
|
||||||
"queued": "Queued",
|
"queued": "Queued",
|
||||||
"albums": "Albums"
|
"albums": "Albums"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,5 +145,11 @@
|
|||||||
"wanted": "Wanted",
|
"wanted": "Wanted",
|
||||||
"queued": "Queued",
|
"queued": "Queued",
|
||||||
"albums": "Albums"
|
"albums": "Albums"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
155
public/locales/pl/common.json
Normal file
155
public/locales/pl/common.json
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
{
|
||||||
|
"weather": {
|
||||||
|
"allow": "Kliknij, aby zezwolić",
|
||||||
|
"updating": "Aktualizacja",
|
||||||
|
"wait": "Proszę czekać",
|
||||||
|
"current": "Aktualna lokalizacja"
|
||||||
|
},
|
||||||
|
"search": {
|
||||||
|
"placeholder": "Szukaj…"
|
||||||
|
},
|
||||||
|
"resources": {
|
||||||
|
"used": "Użyte",
|
||||||
|
"load": "Obciążenie",
|
||||||
|
"total": "Całkowite",
|
||||||
|
"free": "Wolne"
|
||||||
|
},
|
||||||
|
"emby": {
|
||||||
|
"no_active": "Brak aktywnych strumieni",
|
||||||
|
"playing": "Odtwarzanie",
|
||||||
|
"transcoding": "Transkodowanie",
|
||||||
|
"bitrate": "Bitrate"
|
||||||
|
},
|
||||||
|
"tautulli": {
|
||||||
|
"playing": "Odtwarzanie",
|
||||||
|
"transcoding": "Transkodowanie",
|
||||||
|
"bitrate": "Bitrate",
|
||||||
|
"no_active": "Brak aktywnych strumieni"
|
||||||
|
},
|
||||||
|
"speedtest": {
|
||||||
|
"download": "Pobieranie",
|
||||||
|
"ping": "Ping",
|
||||||
|
"upload": "Wysyłanie"
|
||||||
|
},
|
||||||
|
"portainer": {
|
||||||
|
"running": "Działające",
|
||||||
|
"stopped": "Zatrzymane",
|
||||||
|
"total": "Ogólnie"
|
||||||
|
},
|
||||||
|
"coinmarketcap": {
|
||||||
|
"1day": "1 dzień",
|
||||||
|
"7days": "7 dni",
|
||||||
|
"30days": "30 dni",
|
||||||
|
"1hour": "1 godzina",
|
||||||
|
"configure": "Wybierz jedną lub więcej kryptowalut do śledzenia"
|
||||||
|
},
|
||||||
|
"gotify": {
|
||||||
|
"apps": "Aplikacje",
|
||||||
|
"clients": "Klienci",
|
||||||
|
"messages": "Wiadomości"
|
||||||
|
},
|
||||||
|
"widget": {
|
||||||
|
"missing_type": "Brakujący typ widżetu: {{type}}",
|
||||||
|
"api_error": "Błąd API",
|
||||||
|
"status": "Stan"
|
||||||
|
},
|
||||||
|
"docker": {
|
||||||
|
"rx": "RX",
|
||||||
|
"tx": "TX",
|
||||||
|
"mem": "MEM",
|
||||||
|
"cpu": "CPU",
|
||||||
|
"offline": "Offline"
|
||||||
|
},
|
||||||
|
"nzbget": {
|
||||||
|
"rate": "Szybkość",
|
||||||
|
"remaining": "Pozostało",
|
||||||
|
"downloaded": "Pobrano"
|
||||||
|
},
|
||||||
|
"sabnzbd": {
|
||||||
|
"rate": "Szybkość",
|
||||||
|
"queue": "Kolejka",
|
||||||
|
"timeleft": "Pozostało"
|
||||||
|
},
|
||||||
|
"rutorrent": {
|
||||||
|
"active": "Aktywny",
|
||||||
|
"upload": "Wysyłanie",
|
||||||
|
"download": "Pobieranie"
|
||||||
|
},
|
||||||
|
"transmission": {
|
||||||
|
"download": "Pobieranie",
|
||||||
|
"upload": "Wysyłanie",
|
||||||
|
"leech": "Leech",
|
||||||
|
"seed": "Seed"
|
||||||
|
},
|
||||||
|
"sonarr": {
|
||||||
|
"wanted": "Poszukiwane",
|
||||||
|
"queued": "W kolejce",
|
||||||
|
"series": "Seriale"
|
||||||
|
},
|
||||||
|
"radarr": {
|
||||||
|
"wanted": "Poszukiwane",
|
||||||
|
"queued": "W kolejce",
|
||||||
|
"movies": "Filmy"
|
||||||
|
},
|
||||||
|
"lidarr": {
|
||||||
|
"wanted": "Poszukiwane",
|
||||||
|
"queued": "W kolejce",
|
||||||
|
"albums": "Albumy"
|
||||||
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Poszukiwane",
|
||||||
|
"queued": "W kolejce",
|
||||||
|
"books": "Książki"
|
||||||
|
},
|
||||||
|
"bazarr": {
|
||||||
|
"missingEpisodes": "Brakujące odcinki",
|
||||||
|
"missingMovies": "Brakujące filmy"
|
||||||
|
},
|
||||||
|
"ombi": {
|
||||||
|
"pending": "Oczekiwane",
|
||||||
|
"approved": "Zaakceptowane",
|
||||||
|
"available": "Dostępne"
|
||||||
|
},
|
||||||
|
"jellyseerr": {
|
||||||
|
"pending": "Oczekiwane",
|
||||||
|
"approved": "Zaakceptowane",
|
||||||
|
"available": "Dostępne"
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"pending": "Oczekiwane",
|
||||||
|
"approved": "Zaakceptowane",
|
||||||
|
"available": "Dostępne"
|
||||||
|
},
|
||||||
|
"pihole": {
|
||||||
|
"queries": "Zapytania",
|
||||||
|
"blocked": "Zablokowane",
|
||||||
|
"gravity": "Gravity"
|
||||||
|
},
|
||||||
|
"traefik": {
|
||||||
|
"routers": "Routery",
|
||||||
|
"services": "Serwisy",
|
||||||
|
"middleware": "Pośrednicy"
|
||||||
|
},
|
||||||
|
"npm": {
|
||||||
|
"enabled": "Włączone",
|
||||||
|
"disabled": "Wyłączone",
|
||||||
|
"total": "Ogólnie"
|
||||||
|
},
|
||||||
|
"prowlarr": {
|
||||||
|
"enableIndexers": "Indeksery",
|
||||||
|
"numberOfGrabs": "Pochwycenia",
|
||||||
|
"numberOfQueries": "Zapytania",
|
||||||
|
"numberOfFailGrabs": "Nieudane pochwycenia",
|
||||||
|
"numberOfFailQueries": "Nieudane zapytania"
|
||||||
|
},
|
||||||
|
"jackett": {
|
||||||
|
"configured": "Skonfigurowane",
|
||||||
|
"errored": "Błędne"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -156,5 +156,11 @@
|
|||||||
"queued": "Queued",
|
"queued": "Queued",
|
||||||
"wanted": "Wanted",
|
"wanted": "Wanted",
|
||||||
"albums": "Albums"
|
"albums": "Albums"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,5 +145,11 @@
|
|||||||
"wanted": "Wanted",
|
"wanted": "Wanted",
|
||||||
"queued": "Queued",
|
"queued": "Queued",
|
||||||
"albums": "Albums"
|
"albums": "Albums"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
155
public/locales/sv/common.json
Normal file
155
public/locales/sv/common.json
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
{
|
||||||
|
"widget": {
|
||||||
|
"missing_type": "Saknar Widget-typ: {{type}}",
|
||||||
|
"api_error": "API-fel",
|
||||||
|
"status": "Status"
|
||||||
|
},
|
||||||
|
"weather": {
|
||||||
|
"current": "Nuvarande plats",
|
||||||
|
"allow": "Klicka för att tillåta",
|
||||||
|
"updating": "Uppdaterar",
|
||||||
|
"wait": "Vänligen vänta"
|
||||||
|
},
|
||||||
|
"resources": {
|
||||||
|
"load": "Laddar",
|
||||||
|
"total": "Total",
|
||||||
|
"free": "Ledigt",
|
||||||
|
"used": "Använt"
|
||||||
|
},
|
||||||
|
"docker": {
|
||||||
|
"rx": "RX",
|
||||||
|
"tx": "TX",
|
||||||
|
"mem": "MEM",
|
||||||
|
"cpu": "CPU",
|
||||||
|
"offline": "Offline"
|
||||||
|
},
|
||||||
|
"search": {
|
||||||
|
"placeholder": "Sök…"
|
||||||
|
},
|
||||||
|
"emby": {
|
||||||
|
"playing": "Spelar",
|
||||||
|
"transcoding": "Omkodning",
|
||||||
|
"bitrate": "Bitrate",
|
||||||
|
"no_active": "Inga aktiva strömmar"
|
||||||
|
},
|
||||||
|
"tautulli": {
|
||||||
|
"playing": "Spelar",
|
||||||
|
"transcoding": "Omkodning",
|
||||||
|
"bitrate": "Bitrate",
|
||||||
|
"no_active": "Inga aktiva strömmar"
|
||||||
|
},
|
||||||
|
"nzbget": {
|
||||||
|
"rate": "Hastighet",
|
||||||
|
"remaining": "Återstående",
|
||||||
|
"downloaded": "Nedladdat"
|
||||||
|
},
|
||||||
|
"sabnzbd": {
|
||||||
|
"rate": "Hastighet",
|
||||||
|
"queue": "Kö",
|
||||||
|
"timeleft": "Tid kvar"
|
||||||
|
},
|
||||||
|
"rutorrent": {
|
||||||
|
"active": "Aktiva",
|
||||||
|
"upload": "Uppladdning",
|
||||||
|
"download": "Nedladdning"
|
||||||
|
},
|
||||||
|
"transmission": {
|
||||||
|
"download": "Nedladdning",
|
||||||
|
"upload": "Uppladdning",
|
||||||
|
"leech": "Leech",
|
||||||
|
"seed": "Seed"
|
||||||
|
},
|
||||||
|
"sonarr": {
|
||||||
|
"wanted": "Eftersöker",
|
||||||
|
"queued": "I kö",
|
||||||
|
"series": "Serier"
|
||||||
|
},
|
||||||
|
"radarr": {
|
||||||
|
"wanted": "Eftersöker",
|
||||||
|
"queued": "I kö",
|
||||||
|
"movies": "Filmer"
|
||||||
|
},
|
||||||
|
"lidarr": {
|
||||||
|
"wanted": "Eftersöker",
|
||||||
|
"queued": "I kö",
|
||||||
|
"albums": "Album"
|
||||||
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Eftersökt",
|
||||||
|
"queued": "I kö",
|
||||||
|
"books": "Böcker"
|
||||||
|
},
|
||||||
|
"bazarr": {
|
||||||
|
"missingEpisodes": "Saknade program",
|
||||||
|
"missingMovies": "Saknade filmer"
|
||||||
|
},
|
||||||
|
"ombi": {
|
||||||
|
"pending": "Avvaktar",
|
||||||
|
"approved": "Godkända",
|
||||||
|
"available": "Tillgänglig"
|
||||||
|
},
|
||||||
|
"jellyseerr": {
|
||||||
|
"pending": "Avvaktar",
|
||||||
|
"approved": "Godkända",
|
||||||
|
"available": "Tillgänglig"
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"pending": "Avvaktar",
|
||||||
|
"approved": "Godkända",
|
||||||
|
"available": "Tillgänglig"
|
||||||
|
},
|
||||||
|
"pihole": {
|
||||||
|
"blocked": "Blockerad",
|
||||||
|
"queries": "Förfrågningar",
|
||||||
|
"gravity": "Gravity"
|
||||||
|
},
|
||||||
|
"speedtest": {
|
||||||
|
"upload": "Uppladdning",
|
||||||
|
"download": "Nedladdning",
|
||||||
|
"ping": "Svarstid"
|
||||||
|
},
|
||||||
|
"portainer": {
|
||||||
|
"running": "Körs",
|
||||||
|
"stopped": "Stoppade",
|
||||||
|
"total": "Totalt"
|
||||||
|
},
|
||||||
|
"traefik": {
|
||||||
|
"routers": "Routers",
|
||||||
|
"services": "Tjänster",
|
||||||
|
"middleware": "Middleware"
|
||||||
|
},
|
||||||
|
"npm": {
|
||||||
|
"enabled": "Aktiverad",
|
||||||
|
"disabled": "Inaktiverad",
|
||||||
|
"total": "Totalt"
|
||||||
|
},
|
||||||
|
"coinmarketcap": {
|
||||||
|
"configure": "Konfigurera en eller flera kryptovalutor att följa",
|
||||||
|
"1hour": "1 timme",
|
||||||
|
"1day": "1 dag",
|
||||||
|
"7days": "7 dagar",
|
||||||
|
"30days": "30 dagar"
|
||||||
|
},
|
||||||
|
"gotify": {
|
||||||
|
"apps": "Program",
|
||||||
|
"clients": "Klienter",
|
||||||
|
"messages": "Meddelande"
|
||||||
|
},
|
||||||
|
"prowlarr": {
|
||||||
|
"enableIndexers": "Indexerare",
|
||||||
|
"numberOfGrabs": "Hämtningar",
|
||||||
|
"numberOfQueries": "Queries",
|
||||||
|
"numberOfFailGrabs": "Misslyckade hämtningar",
|
||||||
|
"numberOfFailQueries": "Fail Queries"
|
||||||
|
},
|
||||||
|
"jackett": {
|
||||||
|
"configured": "Konfigurerade",
|
||||||
|
"errored": "Felaktiga"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -145,5 +145,11 @@
|
|||||||
"wanted": "Wanted",
|
"wanted": "Wanted",
|
||||||
"queued": "Queued",
|
"queued": "Queued",
|
||||||
"albums": "Albums"
|
"albums": "Albums"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,5 +145,11 @@
|
|||||||
"wanted": "Wanted",
|
"wanted": "Wanted",
|
||||||
"queued": "Queued",
|
"queued": "Queued",
|
||||||
"albums": "Albums"
|
"albums": "Albums"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,5 +145,11 @@
|
|||||||
"wanted": "Wanted",
|
"wanted": "Wanted",
|
||||||
"queued": "Queued",
|
"queued": "Queued",
|
||||||
"albums": "Albums"
|
"albums": "Albums"
|
||||||
|
},
|
||||||
|
"adguard": {
|
||||||
|
"queries": "Queries",
|
||||||
|
"blocked": "Blocked",
|
||||||
|
"filtered": "Filtered",
|
||||||
|
"latency": "Latency"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ export default function ColorToggle() {
|
|||||||
{colors.map((color) => (
|
{colors.map((color) => (
|
||||||
<button type="button" onClick={() => setColor(color)} key={color}>
|
<button type="button" onClick={() => setColor(color)} key={color}>
|
||||||
<div
|
<div
|
||||||
|
title={color}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
active === color ? "border-2" : "border-0",
|
active === color ? "border-2" : "border-0",
|
||||||
`rounded-md w-5 h-5 border-black/50 dark:border-white/50 theme-${color} bg-theme-400`
|
`rounded-md w-5 h-5 border-black/50 dark:border-white/50 theme-${color} bg-theme-400`
|
||||||
|
|||||||
@@ -1,15 +1,18 @@
|
|||||||
|
import classNames from "classnames";
|
||||||
|
|
||||||
import List from "components/services/list";
|
import List from "components/services/list";
|
||||||
|
|
||||||
export default function ServicesGroup({ services }) {
|
export default function ServicesGroup({ services, layout }) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={services.name}
|
key={services.name}
|
||||||
className="basis-full md:basis-1/2 lg:basis-1/3 xl:basis-1/4 flex-1 p-1"
|
className={classNames(
|
||||||
|
layout?.style === "row" ? "basis-full" : "basis-full md:basis-1/2 lg:basis-1/3 xl:basis-1/4",
|
||||||
|
"flex-1 p-1"
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
<h2 className="text-theme-800 dark:text-theme-300 text-xl font-medium">
|
<h2 className="text-theme-800 dark:text-theme-300 text-xl font-medium">{services.name}</h2>
|
||||||
{services.name}
|
<List services={services.services} layout={layout} />
|
||||||
</h2>
|
|
||||||
<List services={services.services} />
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,27 @@
|
|||||||
|
import classNames from "classnames";
|
||||||
|
|
||||||
import Item from "components/services/item";
|
import Item from "components/services/item";
|
||||||
|
|
||||||
export default function List({ services }) {
|
const columnMap = [
|
||||||
|
"grid-cols-1 md:grid-cols-1 lg:grid-cols-1",
|
||||||
|
"grid-cols-1 md:grid-cols-1 lg:grid-cols-1",
|
||||||
|
"grid-cols-1 md:grid-cols-2 lg:grid-cols-2",
|
||||||
|
"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
|
||||||
|
"grid-cols-1 md:grid-cols-2 lg:grid-cols-4",
|
||||||
|
"grid-cols-1 md:grid-cols-2 lg:grid-cols-5",
|
||||||
|
"grid-cols-1 md:grid-cols-2 lg:grid-cols-6",
|
||||||
|
"grid-cols-1 md:grid-cols-2 lg:grid-cols-7",
|
||||||
|
"grid-cols-1 md:grid-cols-2 lg:grid-cols-8",
|
||||||
|
];
|
||||||
|
|
||||||
|
export default function List({ services, layout }) {
|
||||||
return (
|
return (
|
||||||
<ul className="mt-3 flex flex-col">
|
<ul
|
||||||
|
className={classNames(
|
||||||
|
layout?.style === "row" ? `grid ${columnMap[layout?.columns]} gap-x-2` : "flex flex-col",
|
||||||
|
"mt-3"
|
||||||
|
)}
|
||||||
|
>
|
||||||
{services.map((service) => (
|
{services.map((service) => (
|
||||||
<Item key={service.name} service={service} />
|
<Item key={service.name} service={service} />
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import CoinMarketCap from "./widgets/service/coinmarketcap";
|
|||||||
import Gotify from "./widgets/service/gotify";
|
import Gotify from "./widgets/service/gotify";
|
||||||
import Prowlarr from "./widgets/service/prowlarr";
|
import Prowlarr from "./widgets/service/prowlarr";
|
||||||
import Jackett from "./widgets/service/jackett";
|
import Jackett from "./widgets/service/jackett";
|
||||||
|
import AdGuard from "./widgets/service/adguard";
|
||||||
|
|
||||||
const widgetMappings = {
|
const widgetMappings = {
|
||||||
docker: Docker,
|
docker: Docker,
|
||||||
@@ -52,6 +53,7 @@ const widgetMappings = {
|
|||||||
gotify: Gotify,
|
gotify: Gotify,
|
||||||
prowlarr: Prowlarr,
|
prowlarr: Prowlarr,
|
||||||
jackett: Jackett,
|
jackett: Jackett,
|
||||||
|
adguard: AdGuard,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Widget({ service }) {
|
export default function Widget({ service }) {
|
||||||
|
|||||||
45
src/components/services/widgets/service/adguard.jsx
Normal file
45
src/components/services/widgets/service/adguard.jsx
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
import useSWR from "swr";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
|
import Widget from "../widget";
|
||||||
|
import Block from "../block";
|
||||||
|
|
||||||
|
import { formatApiUrl } from "utils/api-helpers";
|
||||||
|
|
||||||
|
export default function AdGuard({ service }) {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
const config = service.widget;
|
||||||
|
|
||||||
|
const { data: adguardData, error: adguardError } = useSWR(formatApiUrl(config, "stats"));
|
||||||
|
|
||||||
|
if (adguardError) {
|
||||||
|
return <Widget error={t("widget.api_error")} />;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!adguardData) {
|
||||||
|
return (
|
||||||
|
<Widget>
|
||||||
|
<Block label={t("adguard.queries")} />
|
||||||
|
<Block label={t("adguard.blocked")} />
|
||||||
|
<Block label={t("adguard.filtered")} />
|
||||||
|
<Block label={t("adguard.latency")} />
|
||||||
|
</Widget>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const filtered =
|
||||||
|
adguardData.num_replaced_safebrowsing + adguardData.num_replaced_safesearch + adguardData.num_replaced_parental;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Widget>
|
||||||
|
<Block label={t("adguard.queries")} value={t("common.number", { value: adguardData.num_dns_queries })} />
|
||||||
|
<Block label={t("adguard.blocked")} value={t("common.number", { value: adguardData.num_blocked_filtering })} />
|
||||||
|
<Block label={t("adguard.filtered")} value={t("common.number", { value: filtered })} />
|
||||||
|
<Block
|
||||||
|
label={t("adguard.latency")}
|
||||||
|
value={t("common.ms", { value: adguardData.avg_processing_time * 1000, style: "unit", unit: "millisecond" })}
|
||||||
|
/>
|
||||||
|
</Widget>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import useSWR from "swr";
|
import useSWR from "swr";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { BsVolumeMuteFill, BsFillPlayFill, BsPauseFill } from "react-icons/bs";
|
import { BsVolumeMuteFill, BsFillPlayFill, BsPauseFill, BsCpu, BsFillCpuFill } from "react-icons/bs";
|
||||||
|
import { MdOutlineSmartDisplay } from "react-icons/md";
|
||||||
|
|
||||||
import Widget from "../widget";
|
import Widget from "../widget";
|
||||||
|
|
||||||
@@ -27,24 +28,35 @@ function ticksToString(ticks) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function SingleSessionEntry({ playCommand, session }) {
|
function SingleSessionEntry({ playCommand, session }) {
|
||||||
console.log(session);
|
|
||||||
const {
|
const {
|
||||||
NowPlayingItem: { Name, SeriesName, RunTimeTicks },
|
NowPlayingItem: { Name, SeriesName, RunTimeTicks },
|
||||||
PlayState: { PositionTicks, IsPaused, IsMuted },
|
PlayState: { PositionTicks, IsPaused, IsMuted },
|
||||||
} = session;
|
} = session;
|
||||||
|
|
||||||
|
const { IsVideoDirect, VideoDecoderIsHardware, VideoEncoderIsHardware } = session?.TranscodingInfo || {
|
||||||
|
IsVideoDirect: true,
|
||||||
|
VideoDecoderIsHardware: true,
|
||||||
|
VideoEncoderIsHardware: true,
|
||||||
|
};
|
||||||
|
|
||||||
const percent = (PositionTicks / RunTimeTicks) * 100;
|
const percent = (PositionTicks / RunTimeTicks) * 100;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex">
|
<div className="text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex">
|
||||||
<div className="text-xs z-10 self-center ml-2">
|
<div className="grow text-xs z-10 self-center ml-2 relative w-full h-4 mr-2">
|
||||||
<span>
|
<div className="absolute w-full whitespace-nowrap text-ellipsis overflow-hidden">
|
||||||
{Name}
|
{Name}
|
||||||
{SeriesName && ` - ${SeriesName}`}
|
{SeriesName && ` - ${SeriesName}`}
|
||||||
</span>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="self-center text-xs flex justify-end mr-1.5 pl-1">
|
||||||
|
{IsVideoDirect && <MdOutlineSmartDisplay className="opacity-50" />}
|
||||||
|
{!IsVideoDirect && (!VideoDecoderIsHardware || !VideoEncoderIsHardware) && <BsCpu className="opacity-50" />}
|
||||||
|
{!IsVideoDirect && VideoDecoderIsHardware && VideoEncoderIsHardware && (
|
||||||
|
<BsFillCpuFill className="opacity-50" />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="grow" />
|
|
||||||
<div className="self-center text-xs flex justify-end mr-1">{IsMuted && <BsVolumeMuteFill />}</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex">
|
<div className="text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex">
|
||||||
@@ -73,7 +85,12 @@ function SingleSessionEntry({ playCommand, session }) {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="grow " />
|
<div className="grow " />
|
||||||
<div className="self-center text-xs flex justify-end mr-2">{ticksToString(PositionTicks)}</div>
|
<div className="self-center text-xs flex justify-end mr-1 z-10">{IsMuted && <BsVolumeMuteFill />}</div>
|
||||||
|
<div className="self-center text-xs flex justify-end mr-2 z-10">
|
||||||
|
{ticksToString(PositionTicks)}
|
||||||
|
<span className="mx-0.5 text-[8px]">/</span>
|
||||||
|
{ticksToString(RunTimeTicks)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
@@ -84,6 +101,9 @@ function SessionEntry({ playCommand, session }) {
|
|||||||
NowPlayingItem: { Name, SeriesName, RunTimeTicks },
|
NowPlayingItem: { Name, SeriesName, RunTimeTicks },
|
||||||
PlayState: { PositionTicks, IsPaused, IsMuted },
|
PlayState: { PositionTicks, IsPaused, IsMuted },
|
||||||
} = session;
|
} = session;
|
||||||
|
|
||||||
|
const { IsVideoDirect, VideoDecoderIsHardware, VideoEncoderIsHardware } = session?.TranscodingInfo || {};
|
||||||
|
|
||||||
const percent = (PositionTicks / RunTimeTicks) * 100;
|
const percent = (PositionTicks / RunTimeTicks) * 100;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -111,14 +131,20 @@ function SessionEntry({ playCommand, session }) {
|
|||||||
className="inline-block w-4 h-4 cursor-pointer -mt-[1px] mr-1 opacity-80"
|
className="inline-block w-4 h-4 cursor-pointer -mt-[1px] mr-1 opacity-80"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<span>
|
</div>
|
||||||
|
<div className="grow text-xs z-10 self-center relative w-full h-4">
|
||||||
|
<div className="absolute w-full whitespace-nowrap text-ellipsis overflow-hidden">
|
||||||
{Name}
|
{Name}
|
||||||
{SeriesName && ` - ${SeriesName}`}
|
{SeriesName && ` - ${SeriesName}`}
|
||||||
</span>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="self-center text-xs flex justify-end mr-1 z-10">{IsMuted && <BsVolumeMuteFill />}</div>
|
||||||
|
<div className="self-center text-xs flex justify-end mr-1 z-10">{ticksToString(PositionTicks)}</div>
|
||||||
|
<div className="self-center items-center text-xs flex justify-end mr-1.5 pl-1 z-10">
|
||||||
|
{IsVideoDirect && <MdOutlineSmartDisplay className="opacity-50" />}
|
||||||
|
{!IsVideoDirect && (!VideoDecoderIsHardware || !VideoEncoderIsHardware) && <BsCpu className="opacity-50" />}
|
||||||
|
{!IsVideoDirect && VideoDecoderIsHardware && VideoEncoderIsHardware && <BsFillCpuFill className="opacity-50" />}
|
||||||
</div>
|
</div>
|
||||||
<div className="grow " />
|
|
||||||
<div className="self-center text-xs flex justify-end mr-1">{IsMuted && <BsVolumeMuteFill />}</div>
|
|
||||||
<div className="self-center text-xs flex justify-end mr-2">{ticksToString(PositionTicks)}</div>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
/* eslint-disable camelcase */
|
/* eslint-disable camelcase */
|
||||||
import useSWR from "swr";
|
import useSWR from "swr";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { BsFillPlayFill, BsPauseFill } from "react-icons/bs";
|
import { BsFillPlayFill, BsPauseFill, BsCpu, BsFillCpuFill } from "react-icons/bs";
|
||||||
|
import { MdOutlineSmartDisplay } from "react-icons/md";
|
||||||
|
|
||||||
import Widget from "../widget";
|
import Widget from "../widget";
|
||||||
|
|
||||||
@@ -27,16 +28,19 @@ function millisecondsToString(milliseconds) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function SingleSessionEntry({ session }) {
|
function SingleSessionEntry({ session }) {
|
||||||
const { full_title, duration, view_offset, progress_percent, state, year, grandparent_year } = session;
|
const { full_title, duration, view_offset, progress_percent, state, video_decision, audio_decision } = session;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex">
|
<div className="text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex">
|
||||||
<div className="text-xs z-10 self-center ml-2">
|
<div className="text-xs z-10 self-center ml-2 relative w-full h-4 grow mr-2">
|
||||||
<span>{full_title}</span>
|
<div className="absolute w-full whitespace-nowrap text-ellipsis overflow-hidden">{full_title}</div>
|
||||||
|
</div>
|
||||||
|
<div className="self-center text-xs flex justify-end mr-1.5 pl-1">
|
||||||
|
{video_decision === "copy" && audio_decision === "copy" && <MdOutlineSmartDisplay className="opacity-50" />}
|
||||||
|
{video_decision !== "copy" && audio_decision !== "copy" && <BsFillCpuFill className="opacity-50" />}
|
||||||
|
{video_decision === "copy" && audio_decision !== "copy" && <BsCpu className="opacity-50" />}
|
||||||
</div>
|
</div>
|
||||||
<div className="grow" />
|
|
||||||
<div className="self-center text-xs flex justify-end mr-2">{year || grandparent_year}</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex">
|
<div className="text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex">
|
||||||
@@ -55,8 +59,10 @@ function SingleSessionEntry({ session }) {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="grow " />
|
<div className="grow " />
|
||||||
<div className="self-center text-xs flex justify-end mr-2">
|
<div className="self-center text-xs flex justify-end mr-2 z-10">
|
||||||
{millisecondsToString(view_offset)} / {millisecondsToString(duration)}
|
{millisecondsToString(view_offset)}
|
||||||
|
<span className="mx-0.5 text-[8px]">/</span>
|
||||||
|
{millisecondsToString(duration)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
@@ -64,7 +70,7 @@ function SingleSessionEntry({ session }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function SessionEntry({ session }) {
|
function SessionEntry({ session }) {
|
||||||
const { full_title, view_offset, progress_percent, state } = session;
|
const { full_title, view_offset, progress_percent, state, video_decision, audio_decision } = session;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex">
|
<div className="text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex">
|
||||||
@@ -81,10 +87,16 @@ function SessionEntry({ session }) {
|
|||||||
{state !== "paused" && (
|
{state !== "paused" && (
|
||||||
<BsFillPlayFill className="inline-block w-4 h-4 cursor-pointer -mt-[1px] mr-1 opacity-80" />
|
<BsFillPlayFill className="inline-block w-4 h-4 cursor-pointer -mt-[1px] mr-1 opacity-80" />
|
||||||
)}
|
)}
|
||||||
<span>{full_title}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="grow " />
|
<div className="text-xs z-10 self-center ml-2 relative w-full h-4 grow mr-2">
|
||||||
<div className="self-center text-xs flex justify-end mr-2">{millisecondsToString(view_offset)}</div>
|
<div className="absolute w-full whitespace-nowrap text-ellipsis overflow-hidden">{full_title}</div>
|
||||||
|
</div>
|
||||||
|
<div className="self-center text-xs flex justify-end mr-1.5 pl-1 z-10">
|
||||||
|
{video_decision === "copy" && audio_decision === "copy" && <MdOutlineSmartDisplay className="opacity-50" />}
|
||||||
|
{video_decision !== "copy" && audio_decision !== "copy" && <BsFillCpuFill className="opacity-50" />}
|
||||||
|
{video_decision === "copy" && audio_decision !== "copy" && <BsCpu className="opacity-50" />}
|
||||||
|
</div>
|
||||||
|
<div className="self-center text-xs flex justify-end mr-2 z-10">{millisecondsToString(view_offset)}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ import WeatherApi from "components/widgets/weather/weather";
|
|||||||
import OpenWeatherMap from "components/widgets/openweathermap/weather";
|
import OpenWeatherMap from "components/widgets/openweathermap/weather";
|
||||||
import Resources from "components/widgets/resources/resources";
|
import Resources from "components/widgets/resources/resources";
|
||||||
import Search from "components/widgets/search/search";
|
import Search from "components/widgets/search/search";
|
||||||
|
import Greeting from "components/widgets/greeting/greeting";
|
||||||
|
import DateTime from "components/widgets/datetime/datetime";
|
||||||
|
|
||||||
const widgetMappings = {
|
const widgetMappings = {
|
||||||
weather: WeatherApi, // This key will be deprecated in the future
|
weather: WeatherApi, // This key will be deprecated in the future
|
||||||
@@ -9,13 +11,15 @@ const widgetMappings = {
|
|||||||
openweathermap: OpenWeatherMap,
|
openweathermap: OpenWeatherMap,
|
||||||
resources: Resources,
|
resources: Resources,
|
||||||
search: Search,
|
search: Search,
|
||||||
|
greeting: Greeting,
|
||||||
|
datetime: DateTime,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Widget({ widget }) {
|
export default function Widget({ widget }) {
|
||||||
const ServiceWidget = widgetMappings[widget.type];
|
const InfoWidget = widgetMappings[widget.type];
|
||||||
|
|
||||||
if (ServiceWidget) {
|
if (InfoWidget) {
|
||||||
return <ServiceWidget options={widget.options} />;
|
return <InfoWidget options={widget.options} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
36
src/components/widgets/datetime/datetime.jsx
Normal file
36
src/components/widgets/datetime/datetime.jsx
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
import { useState, useEffect } from "react";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
|
const textSizes = {
|
||||||
|
"4xl": "text-4xl",
|
||||||
|
"3xl": "text-3xl",
|
||||||
|
"2xl": "text-2xl",
|
||||||
|
xl: "text-xl",
|
||||||
|
lg: "text-lg",
|
||||||
|
md: "text-md",
|
||||||
|
sm: "text-sm",
|
||||||
|
xs: "text-xs",
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function DateTime({ options }) {
|
||||||
|
const { text_size: textSize, format } = options;
|
||||||
|
const { i18n } = useTranslation();
|
||||||
|
const [date, setDate] = useState(new Date());
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const interval = setInterval(() => {
|
||||||
|
setDate(new Date());
|
||||||
|
}, 1000);
|
||||||
|
return () => clearInterval(interval);
|
||||||
|
}, [setDate]);
|
||||||
|
|
||||||
|
const dateFormat = new Intl.DateTimeFormat(i18n.language, { ...format });
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="flex flex-row items-center grow justify-end">
|
||||||
|
<span className={`text-theme-800 dark:text-theme-200 ${textSizes[textSize || "lg"]}`}>
|
||||||
|
{dateFormat.format(date)}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
22
src/components/widgets/greeting/greeting.jsx
Normal file
22
src/components/widgets/greeting/greeting.jsx
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
const textSizes = {
|
||||||
|
"4xl": "text-4xl",
|
||||||
|
"3xl": "text-3xl",
|
||||||
|
"2xl": "text-2xl",
|
||||||
|
xl: "text-xl",
|
||||||
|
lg: "text-lg",
|
||||||
|
md: "text-md",
|
||||||
|
sm: "text-sm",
|
||||||
|
xs: "text-xs",
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function Greeting({ options }) {
|
||||||
|
if (options.text) {
|
||||||
|
return (
|
||||||
|
<div className="flex flex-row items-center justify-start">
|
||||||
|
<span className={`text-theme-800 dark:text-theme-200 ${textSizes[options.text_size || "xl"]}`}>
|
||||||
|
{options.text}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,6 +6,8 @@ import "styles/weather-icons.css";
|
|||||||
import "styles/theme.css";
|
import "styles/theme.css";
|
||||||
|
|
||||||
import "utils/i18n";
|
import "utils/i18n";
|
||||||
|
import { ColorProvider } from "utils/color-context";
|
||||||
|
import { ThemeProvider } from "utils/theme-context";
|
||||||
|
|
||||||
function MyApp({ Component, pageProps }) {
|
function MyApp({ Component, pageProps }) {
|
||||||
return (
|
return (
|
||||||
@@ -14,7 +16,11 @@ function MyApp({ Component, pageProps }) {
|
|||||||
fetcher: (resource, init) => fetch(resource, init).then((res) => res.json()),
|
fetcher: (resource, init) => fetch(resource, init).then((res) => res.json()),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Component {...pageProps} />
|
<ColorProvider>
|
||||||
|
<ThemeProvider>
|
||||||
|
<Component {...pageProps} />
|
||||||
|
</ThemeProvider>
|
||||||
|
</ColorProvider>
|
||||||
</SWRConfig>
|
</SWRConfig>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ const serviceProxyHandlers = {
|
|||||||
traefik: genericProxyHandler,
|
traefik: genericProxyHandler,
|
||||||
sabnzbd: genericProxyHandler,
|
sabnzbd: genericProxyHandler,
|
||||||
jackett: genericProxyHandler,
|
jackett: genericProxyHandler,
|
||||||
|
adguard: genericProxyHandler,
|
||||||
// uses X-API-Key (or similar) header auth
|
// uses X-API-Key (or similar) header auth
|
||||||
gotify: credentialedProxyHandler,
|
gotify: credentialedProxyHandler,
|
||||||
portainer: credentialedProxyHandler,
|
portainer: credentialedProxyHandler,
|
||||||
|
|||||||
@@ -3,15 +3,15 @@ import useSWR from "swr";
|
|||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import dynamic from "next/dynamic";
|
import dynamic from "next/dynamic";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { useEffect } from "react";
|
import { useEffect, useContext } from "react";
|
||||||
|
|
||||||
import ServicesGroup from "components/services/group";
|
import ServicesGroup from "components/services/group";
|
||||||
import BookmarksGroup from "components/bookmarks/group";
|
import BookmarksGroup from "components/bookmarks/group";
|
||||||
import Widget from "components/widget";
|
import Widget from "components/widget";
|
||||||
import Revalidate from "components/revalidate";
|
import Revalidate from "components/revalidate";
|
||||||
import { getSettings } from "utils/config";
|
import { getSettings } from "utils/config";
|
||||||
import { ColorProvider } from "utils/color-context";
|
import { ColorContext } from "utils/color-context";
|
||||||
import { ThemeProvider } from "utils/theme-context";
|
import { ThemeContext } from "utils/theme-context";
|
||||||
|
|
||||||
const ThemeToggle = dynamic(() => import("components/theme-toggle"), {
|
const ThemeToggle = dynamic(() => import("components/theme-toggle"), {
|
||||||
ssr: false,
|
ssr: false,
|
||||||
@@ -21,7 +21,7 @@ const ColorToggle = dynamic(() => import("components/color-toggle"), {
|
|||||||
ssr: false,
|
ssr: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
const rightAlignedWidgets = ["weatherapi", "openweathermap", "weather", "search"];
|
const rightAlignedWidgets = ["weatherapi", "openweathermap", "weather", "search", "datetime"];
|
||||||
|
|
||||||
export async function getStaticProps() {
|
export async function getStaticProps() {
|
||||||
const settings = await getSettings();
|
const settings = await getSettings();
|
||||||
@@ -35,6 +35,8 @@ export async function getStaticProps() {
|
|||||||
|
|
||||||
export default function Home({ settings }) {
|
export default function Home({ settings }) {
|
||||||
const { i18n } = useTranslation();
|
const { i18n } = useTranslation();
|
||||||
|
const { theme, setTheme } = useContext(ThemeContext);
|
||||||
|
const { color, setColor } = useContext(ColorContext);
|
||||||
|
|
||||||
const { data: services } = useSWR("/api/services");
|
const { data: services } = useSWR("/api/services");
|
||||||
const { data: bookmarks } = useSWR("/api/bookmarks");
|
const { data: bookmarks } = useSWR("/api/bookmarks");
|
||||||
@@ -50,61 +52,67 @@ export default function Home({ settings }) {
|
|||||||
if (settings.language) {
|
if (settings.language) {
|
||||||
i18n.changeLanguage(settings.language);
|
i18n.changeLanguage(settings.language);
|
||||||
}
|
}
|
||||||
}, [i18n, settings.language]);
|
|
||||||
|
if (settings.theme && theme !== settings.theme) {
|
||||||
|
setTheme(settings.theme);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (settings.color && color !== settings.color) {
|
||||||
|
setColor(settings.color);
|
||||||
|
}
|
||||||
|
}, [i18n, settings, color, setColor, theme, setTheme]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ColorProvider>
|
<>
|
||||||
<ThemeProvider>
|
<Head>
|
||||||
<Head>
|
<title>{settings.title || "Homepage"}</title>
|
||||||
<title>{settings.title || "Homepage"}</title>
|
{settings.base && <base href={settings.base} />}
|
||||||
{settings.base && <base href={settings.base} />}
|
{settings.favicon && <link rel="icon" href={settings.favicon} />}
|
||||||
{settings.favicon && <link rel="icon" href={settings.favicon} />}
|
</Head>
|
||||||
</Head>
|
<div className="fixed w-full h-full m-0 p-0" style={wrappedStyle} />
|
||||||
<div className="fixed w-full h-full m-0 p-0" style={wrappedStyle} />
|
<div className="relative w-full container m-auto flex flex-col h-screen justify-between">
|
||||||
<div className="relative w-full container m-auto flex flex-col h-screen justify-between">
|
<div className="flex flex-row flex-wrap m-8 pb-4 mt-10 border-b-2 border-theme-800 dark:border-theme-200 justify-between">
|
||||||
<div className="flex flex-row flex-wrap m-8 pb-4 mt-10 border-b-2 border-theme-800 dark:border-theme-200 justify-between">
|
{widgets && (
|
||||||
{widgets && (
|
<>
|
||||||
<>
|
{widgets
|
||||||
|
.filter((widget) => !rightAlignedWidgets.includes(widget.type))
|
||||||
|
.map((widget, i) => (
|
||||||
|
<Widget key={i} widget={widget} />
|
||||||
|
))}
|
||||||
|
|
||||||
|
<div className="ml-4 flex flex-wrap basis-full grow sm:basis-auto justify-between md:justify-end mt-2 md:mt-0">
|
||||||
{widgets
|
{widgets
|
||||||
.filter((widget) => !rightAlignedWidgets.includes(widget.type))
|
.filter((widget) => rightAlignedWidgets.includes(widget.type))
|
||||||
.map((widget, i) => (
|
.map((widget, i) => (
|
||||||
<Widget key={i} widget={widget} />
|
<Widget key={i} widget={widget} />
|
||||||
))}
|
))}
|
||||||
|
</div>
|
||||||
<div className="ml-4 flex flex-wrap basis-full grow sm:basis-auto justify-between md:justify-end mt-2 md:mt-0">
|
</>
|
||||||
{widgets
|
|
||||||
.filter((widget) => rightAlignedWidgets.includes(widget.type))
|
|
||||||
.map((widget, i) => (
|
|
||||||
<Widget key={i} widget={widget} />
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{services && (
|
|
||||||
<div className="flex flex-wrap p-8 items-start">
|
|
||||||
{services.map((group) => (
|
|
||||||
<ServicesGroup key={group.name} services={group} />
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{bookmarks && (
|
|
||||||
<div className="grow flex flex-wrap pt-0 p-8">
|
|
||||||
{bookmarks.map((group) => (
|
|
||||||
<BookmarksGroup key={group.name} group={group} />
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div className="rounded-full flex p-8 w-full justify-between">
|
|
||||||
<ColorToggle />
|
|
||||||
<Revalidate />
|
|
||||||
<ThemeToggle />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</ThemeProvider>
|
|
||||||
</ColorProvider>
|
{services && (
|
||||||
|
<div className="flex flex-wrap p-8 items-start">
|
||||||
|
{services.map((group) => (
|
||||||
|
<ServicesGroup key={group.name} services={group} layout={settings.layout?.[group.name]} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{bookmarks && (
|
||||||
|
<div className="grow flex flex-wrap pt-0 p-8">
|
||||||
|
{bookmarks.map((group) => (
|
||||||
|
<BookmarksGroup key={group.name} group={group} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<div className="rounded-full flex p-8 w-full justify-end">
|
||||||
|
{!settings?.color && <ColorToggle />}
|
||||||
|
<Revalidate />
|
||||||
|
{!settings?.theme && <ThemeToggle />}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ const formats = {
|
|||||||
coinmarketcap: `https://pro-api.coinmarketcap.com/{endpoint}`,
|
coinmarketcap: `https://pro-api.coinmarketcap.com/{endpoint}`,
|
||||||
gotify: `{url}/{endpoint}`,
|
gotify: `{url}/{endpoint}`,
|
||||||
prowlarr: `{url}/api/v1/{endpoint}`,
|
prowlarr: `{url}/api/v1/{endpoint}`,
|
||||||
jackett: `{url}/api/v2.0/{endpoint}?apikey={key}&configured=true`
|
jackett: `{url}/api/v2.0/{endpoint}?apikey={key}&configured=true`,
|
||||||
|
adguard: `{url}/control/{endpoint}`,
|
||||||
};
|
};
|
||||||
|
|
||||||
export function formatApiCall(api, args) {
|
export function formatApiCall(api, args) {
|
||||||
|
|||||||
@@ -10,8 +10,17 @@ export default async function genericProxyHandler(req, res) {
|
|||||||
|
|
||||||
if (widget) {
|
if (widget) {
|
||||||
const url = new URL(formatApiCall(widget.type, { endpoint, ...widget }));
|
const url = new URL(formatApiCall(widget.type, { endpoint, ...widget }));
|
||||||
|
|
||||||
|
let headers;
|
||||||
|
if (widget.username && widget.password) {
|
||||||
|
headers = {
|
||||||
|
Authorization: `Basic ${Buffer.from(`${widget.username}:${widget.password}`).toString("base64")}`,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const [status, contentType, data] = await httpProxy(url, {
|
const [status, contentType, data] = await httpProxy(url, {
|
||||||
method: req.method,
|
method: req.method,
|
||||||
|
headers,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (contentType) res.setHeader("Content-Type", contentType);
|
if (contentType) res.setHeader("Content-Type", contentType);
|
||||||
|
|||||||
Reference in New Issue
Block a user