mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-03 05:53:40 +01:00
Merge branch 'main' of https://github.com/xicopitz/homepage
This commit is contained in:
commit
0c9c1c599f
@ -19,6 +19,7 @@
|
|||||||
* Service Integration
|
* Service Integration
|
||||||
- Currently supports Sonarr, Radarr, Ombi, Emby, Jellyfin, Tautulli (Plex), Overseerr, Jellyseerr ([ilusi0n](https://github.com/benphelps/homepage/pull/34)), NZBGet, ruTorrent
|
- Currently supports Sonarr, Radarr, Ombi, Emby, Jellyfin, Tautulli (Plex), Overseerr, Jellyseerr ([ilusi0n](https://github.com/benphelps/homepage/pull/34)), NZBGet, ruTorrent
|
||||||
- Portainer, Traefik, Speedtest Tracker, PiHole, Nginx Proxy Manager ([aidenpwnz](https://github.com/benphelps/homepage/pull/45))
|
- Portainer, Traefik, Speedtest Tracker, PiHole, Nginx Proxy Manager ([aidenpwnz](https://github.com/benphelps/homepage/pull/45))
|
||||||
|
- Readarr, SABnzbd ([JazzFisch]())
|
||||||
* Information & Utility Widgets
|
* Information & Utility Widgets
|
||||||
- System Stats (Disk, CPU, Memory)
|
- System Stats (Disk, CPU, Memory)
|
||||||
- Weather via WeatherAPI.com or OpenWeatherMap ([AlexFullmoon](https://github.com/benphelps/homepage/pull/25))
|
- Weather via WeatherAPI.com or OpenWeatherMap ([AlexFullmoon](https://github.com/benphelps/homepage/pull/25))
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
"@headlessui/react": "^1.6.6",
|
"@headlessui/react": "^1.6.6",
|
||||||
"@tailwindcss/forms": "^0.5.3",
|
"@tailwindcss/forms": "^0.5.3",
|
||||||
"classnames": "^2.3.1",
|
"classnames": "^2.3.1",
|
||||||
|
"currency-symbol-map": "^5.1.0",
|
||||||
"dockerode": "^3.3.4",
|
"dockerode": "^3.3.4",
|
||||||
"i18next": "^21.9.1",
|
"i18next": "^21.9.1",
|
||||||
"i18next-browser-languagedetector": "^6.1.5",
|
"i18next-browser-languagedetector": "^6.1.5",
|
||||||
|
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
@ -5,6 +5,7 @@ specifiers:
|
|||||||
'@tailwindcss/forms': ^0.5.3
|
'@tailwindcss/forms': ^0.5.3
|
||||||
autoprefixer: ^10.4.8
|
autoprefixer: ^10.4.8
|
||||||
classnames: ^2.3.1
|
classnames: ^2.3.1
|
||||||
|
currency-symbol-map: ^5.1.0
|
||||||
dockerode: ^3.3.4
|
dockerode: ^3.3.4
|
||||||
eslint: 8.22.0
|
eslint: 8.22.0
|
||||||
eslint-config-airbnb: ^19.0.4
|
eslint-config-airbnb: ^19.0.4
|
||||||
@ -41,6 +42,7 @@ dependencies:
|
|||||||
'@headlessui/react': 1.6.6_biqbaboplfbrettd7655fr4n2y
|
'@headlessui/react': 1.6.6_biqbaboplfbrettd7655fr4n2y
|
||||||
'@tailwindcss/forms': 0.5.3_tailwindcss@3.1.8
|
'@tailwindcss/forms': 0.5.3_tailwindcss@3.1.8
|
||||||
classnames: 2.3.1
|
classnames: 2.3.1
|
||||||
|
currency-symbol-map: 5.1.0
|
||||||
dockerode: 3.3.4
|
dockerode: 3.3.4
|
||||||
i18next: 21.9.1
|
i18next: 21.9.1
|
||||||
i18next-browser-languagedetector: 6.1.5
|
i18next-browser-languagedetector: 6.1.5
|
||||||
@ -699,6 +701,10 @@ packages:
|
|||||||
engines: {node: '>=4'}
|
engines: {node: '>=4'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
|
/currency-symbol-map/5.1.0:
|
||||||
|
resolution: {integrity: sha512-LO/lzYRw134LMDVnLyAf1dHE5tyO6axEFkR3TXjQIOmMkAM9YL6QsiUwuXzZAmFnuDJcs4hayOgyIYtViXFrLw==}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/damerau-levenshtein/1.0.8:
|
/damerau-levenshtein/1.0.8:
|
||||||
resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==}
|
resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==}
|
||||||
dev: true
|
dev: true
|
||||||
|
@ -31,11 +31,6 @@
|
|||||||
"bitrate": "Bitrate",
|
"bitrate": "Bitrate",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "No Active Streams"
|
||||||
},
|
},
|
||||||
"nzbget": {
|
|
||||||
"rate": "Rate",
|
|
||||||
"remaining": "Verblieben",
|
|
||||||
"downloaded": "Heruntergeladen"
|
|
||||||
},
|
|
||||||
"rutorrent": {
|
"rutorrent": {
|
||||||
"active": "Aktiv",
|
"active": "Aktiv",
|
||||||
"upload": "Hochladen",
|
"upload": "Hochladen",
|
||||||
@ -51,6 +46,11 @@
|
|||||||
"queued": "In Warteschlange",
|
"queued": "In Warteschlange",
|
||||||
"movies": "Filme"
|
"movies": "Filme"
|
||||||
},
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Wanted",
|
||||||
|
"queued": "Queued",
|
||||||
|
"books": "Books"
|
||||||
|
},
|
||||||
"ombi": {
|
"ombi": {
|
||||||
"pending": "Ausstehend",
|
"pending": "Ausstehend",
|
||||||
"approved": "Genehmigt",
|
"approved": "Genehmigt",
|
||||||
@ -97,15 +97,22 @@
|
|||||||
"approved": "Approved",
|
"approved": "Approved",
|
||||||
"available": "Available"
|
"available": "Available"
|
||||||
},
|
},
|
||||||
"gotify": {
|
|
||||||
"apps": "Anwendungen",
|
|
||||||
"clients": "Kunden",
|
|
||||||
"messages": "Mitteilungen"
|
|
||||||
},
|
|
||||||
"sabnzbd": {
|
"sabnzbd": {
|
||||||
"status": "Status",
|
"rate": "Rate",
|
||||||
"speed": "Speed",
|
"queue": "Queue",
|
||||||
|
"timeleft": "Time Left"
|
||||||
|
},
|
||||||
|
"nzbget": {
|
||||||
|
"rate": "Rate",
|
||||||
"remaining": "Remaining",
|
"remaining": "Remaining",
|
||||||
"timeleft": "Time left"
|
"downloaded": "Downloaded"
|
||||||
}
|
},
|
||||||
|
"coinmarketcap": {
|
||||||
|
"configure": "Configure one or more crypto currencies to track"
|
||||||
|
},
|
||||||
|
"gotify": {
|
||||||
|
"apps": "Applications",
|
||||||
|
"clients": "Clients",
|
||||||
|
"messages": "Messages"
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@ -53,6 +53,11 @@
|
|||||||
"remaining": "Remaining",
|
"remaining": "Remaining",
|
||||||
"downloaded": "Downloaded"
|
"downloaded": "Downloaded"
|
||||||
},
|
},
|
||||||
|
"sabnzbd": {
|
||||||
|
"rate": "Rate",
|
||||||
|
"queue": "Queue",
|
||||||
|
"timeleft": "Time Left"
|
||||||
|
},
|
||||||
"rutorrent": {
|
"rutorrent": {
|
||||||
"active": "Active",
|
"active": "Active",
|
||||||
"upload": "Upload",
|
"upload": "Upload",
|
||||||
@ -68,6 +73,11 @@
|
|||||||
"queued": "Queued",
|
"queued": "Queued",
|
||||||
"movies": "Movies"
|
"movies": "Movies"
|
||||||
},
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Wanted",
|
||||||
|
"queued": "Queued",
|
||||||
|
"books": "Books"
|
||||||
|
},
|
||||||
"ombi": {
|
"ombi": {
|
||||||
"pending": "Pending",
|
"pending": "Pending",
|
||||||
"approved": "Approved",
|
"approved": "Approved",
|
||||||
@ -108,15 +118,12 @@
|
|||||||
"disabled": "Disabled",
|
"disabled": "Disabled",
|
||||||
"total": "Total"
|
"total": "Total"
|
||||||
},
|
},
|
||||||
|
"coinmarketcap": {
|
||||||
|
"configure": "Configure one or more crypto currencies to track"
|
||||||
|
},
|
||||||
"gotify": {
|
"gotify": {
|
||||||
"apps": "Applications",
|
"apps": "Applications",
|
||||||
"clients": "Clients",
|
"clients": "Clients",
|
||||||
"messages": "Messages"
|
"messages": "Messages"
|
||||||
},
|
},
|
||||||
"sabnzbd": {
|
|
||||||
"status": "Status",
|
|
||||||
"speed": "Speed",
|
|
||||||
"remaining": "Remaining",
|
|
||||||
"timeleft": "Time left"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -23,18 +23,13 @@
|
|||||||
"playing": "En ejecución",
|
"playing": "En ejecución",
|
||||||
"transcoding": "Transcodificando",
|
"transcoding": "Transcodificando",
|
||||||
"bitrate": "Tasa de Bits",
|
"bitrate": "Tasa de Bits",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "No hay streams activos"
|
||||||
},
|
},
|
||||||
"tautulli": {
|
"tautulli": {
|
||||||
"playing": "En ejecución",
|
"playing": "En ejecución",
|
||||||
"transcoding": "Transcodificación",
|
"transcoding": "Transcodificación",
|
||||||
"bitrate": "Tasa de bits",
|
"bitrate": "Tasa de bits",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "No hay streams activos"
|
||||||
},
|
|
||||||
"nzbget": {
|
|
||||||
"rate": "Velocidad",
|
|
||||||
"remaining": "Restante",
|
|
||||||
"downloaded": "Descargado"
|
|
||||||
},
|
},
|
||||||
"rutorrent": {
|
"rutorrent": {
|
||||||
"active": "Activo",
|
"active": "Activo",
|
||||||
@ -51,6 +46,11 @@
|
|||||||
"queued": "Puesto en cola",
|
"queued": "Puesto en cola",
|
||||||
"movies": "Películas"
|
"movies": "Películas"
|
||||||
},
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Wanted",
|
||||||
|
"queued": "Queued",
|
||||||
|
"books": "Books"
|
||||||
|
},
|
||||||
"ombi": {
|
"ombi": {
|
||||||
"pending": "Pendiente",
|
"pending": "Pendiente",
|
||||||
"approved": "Aprobado",
|
"approved": "Aprobado",
|
||||||
@ -93,19 +93,26 @@
|
|||||||
"wait": "Espere, por favor"
|
"wait": "Espere, por favor"
|
||||||
},
|
},
|
||||||
"overseerr": {
|
"overseerr": {
|
||||||
"pending": "Pending",
|
"pending": "Pendiente",
|
||||||
"approved": "Approved",
|
"approved": "Aprobado",
|
||||||
"available": "Available"
|
"available": "Disponible"
|
||||||
},
|
|
||||||
"gotify": {
|
|
||||||
"apps": "Aplicaciones",
|
|
||||||
"clients": "Clientela",
|
|
||||||
"messages": "Mensajes"
|
|
||||||
},
|
},
|
||||||
"sabnzbd": {
|
"sabnzbd": {
|
||||||
"status": "Status",
|
"rate": "Rate",
|
||||||
"speed": "Speed",
|
"queue": "Queue",
|
||||||
|
"timeleft": "Time Left"
|
||||||
|
},
|
||||||
|
"nzbget": {
|
||||||
|
"rate": "Rate",
|
||||||
"remaining": "Remaining",
|
"remaining": "Remaining",
|
||||||
"timeleft": "Time left"
|
"downloaded": "Downloaded"
|
||||||
}
|
},
|
||||||
|
"coinmarketcap": {
|
||||||
|
"configure": "Configure one or more crypto currencies to track"
|
||||||
|
},
|
||||||
|
"gotify": {
|
||||||
|
"apps": "Applications",
|
||||||
|
"clients": "Clients",
|
||||||
|
"messages": "Messages"
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@ -8,33 +8,28 @@
|
|||||||
"placeholder": "Recherche…"
|
"placeholder": "Recherche…"
|
||||||
},
|
},
|
||||||
"resources": {
|
"resources": {
|
||||||
"total": "Totale",
|
"total": "Total",
|
||||||
"free": "Libre",
|
"free": "Libre",
|
||||||
"used": "Utilisée"
|
"used": "Utilisée"
|
||||||
},
|
},
|
||||||
"docker": {
|
"docker": {
|
||||||
"rx": "Rx",
|
"rx": "Rx",
|
||||||
"tx": "TX",
|
"tx": "Tx",
|
||||||
"mem": "Mem",
|
"mem": "Mém",
|
||||||
"cpu": "CPU",
|
"cpu": "Cpu",
|
||||||
"offline": "Hors ligne"
|
"offline": "Hors ligne"
|
||||||
},
|
},
|
||||||
"emby": {
|
"emby": {
|
||||||
"playing": "En jouant",
|
"playing": "En lecture",
|
||||||
"transcoding": "Transcoding",
|
"transcoding": "Transcodage",
|
||||||
"bitrate": "Débiter",
|
"bitrate": "Débit",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "Aucun flux actif"
|
||||||
},
|
},
|
||||||
"tautulli": {
|
"tautulli": {
|
||||||
"playing": "En jouant",
|
"playing": "En lecture",
|
||||||
"transcoding": "Transcoding",
|
"transcoding": "Transcodage",
|
||||||
"bitrate": "Débiter",
|
"bitrate": "Débit",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "Aucun flux actif"
|
||||||
},
|
|
||||||
"nzbget": {
|
|
||||||
"rate": "Évaluer",
|
|
||||||
"remaining": "Restante",
|
|
||||||
"downloaded": "Téléchargé"
|
|
||||||
},
|
},
|
||||||
"rutorrent": {
|
"rutorrent": {
|
||||||
"active": "Active",
|
"active": "Active",
|
||||||
@ -44,13 +39,18 @@
|
|||||||
"sonarr": {
|
"sonarr": {
|
||||||
"wanted": "Recherchée",
|
"wanted": "Recherchée",
|
||||||
"queued": "En queue",
|
"queued": "En queue",
|
||||||
"series": "Série"
|
"series": "Séries"
|
||||||
},
|
},
|
||||||
"radarr": {
|
"radarr": {
|
||||||
"wanted": "Recherchée",
|
"wanted": "Recherchée",
|
||||||
"queued": "En queue",
|
"queued": "En queue",
|
||||||
"movies": "Films"
|
"movies": "Films"
|
||||||
},
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Wanted",
|
||||||
|
"queued": "Queued",
|
||||||
|
"books": "Books"
|
||||||
|
},
|
||||||
"ombi": {
|
"ombi": {
|
||||||
"pending": "En attente",
|
"pending": "En attente",
|
||||||
"approved": "Approuvée",
|
"approved": "Approuvée",
|
||||||
@ -74,7 +74,7 @@
|
|||||||
"portainer": {
|
"portainer": {
|
||||||
"running": "Fonctionnement",
|
"running": "Fonctionnement",
|
||||||
"stopped": "Arrêté",
|
"stopped": "Arrêté",
|
||||||
"total": "Totale"
|
"total": "Total"
|
||||||
},
|
},
|
||||||
"traefik": {
|
"traefik": {
|
||||||
"routers": "Routeurs",
|
"routers": "Routeurs",
|
||||||
@ -83,8 +83,8 @@
|
|||||||
},
|
},
|
||||||
"npm": {
|
"npm": {
|
||||||
"enabled": "Activé",
|
"enabled": "Activé",
|
||||||
"disabled": "Handicapée",
|
"disabled": "Désactivé",
|
||||||
"total": "Totale"
|
"total": "Total"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
"bbytes": "{{value, bytes(binary: true)}}",
|
"bbytes": "{{value, bytes(binary: true)}}",
|
||||||
@ -104,19 +104,26 @@
|
|||||||
"wait": "Veuillez patienter"
|
"wait": "Veuillez patienter"
|
||||||
},
|
},
|
||||||
"overseerr": {
|
"overseerr": {
|
||||||
"pending": "Pending",
|
"pending": "En attente",
|
||||||
"approved": "Approved",
|
"approved": "Approuvée",
|
||||||
"available": "Available"
|
"available": "Disponible"
|
||||||
|
},
|
||||||
|
"sabnzbd": {
|
||||||
|
"rate": "Rate",
|
||||||
|
"queue": "Queue",
|
||||||
|
"timeleft": "Time Left"
|
||||||
|
},
|
||||||
|
"nzbget": {
|
||||||
|
"remaining": "Remaining",
|
||||||
|
"downloaded": "Downloaded",
|
||||||
|
"rate": "Rate"
|
||||||
|
},
|
||||||
|
"coinmarketcap": {
|
||||||
|
"configure": "Configure one or more crypto currencies to track"
|
||||||
},
|
},
|
||||||
"gotify": {
|
"gotify": {
|
||||||
"apps": "Applications",
|
"apps": "Applications",
|
||||||
"clients": "Clients",
|
"clients": "Clients",
|
||||||
"messages": "Messages"
|
"messages": "Messages"
|
||||||
},
|
},
|
||||||
"sabnzbd": {
|
|
||||||
"status": "Status",
|
|
||||||
"speed": "Speed",
|
|
||||||
"remaining": "Remaining",
|
|
||||||
"timeleft": "Time left"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -7,16 +7,16 @@
|
|||||||
"rx": "RX"
|
"rx": "RX"
|
||||||
},
|
},
|
||||||
"emby": {
|
"emby": {
|
||||||
"playing": "Playing",
|
"playing": "In riproduzione",
|
||||||
"transcoding": "Transcoding",
|
"transcoding": "Transcoding",
|
||||||
"bitrate": "Bitrate",
|
"bitrate": "Bitrate",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "Nessuno Stream Attivo"
|
||||||
},
|
},
|
||||||
"tautulli": {
|
"tautulli": {
|
||||||
"playing": "Playing",
|
"playing": "In riproduzione",
|
||||||
"transcoding": "Transcoding",
|
"transcoding": "Transcoding",
|
||||||
"bitrate": "Bitrate",
|
"bitrate": "Bitrate",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "Nessuno Stream Attivo"
|
||||||
},
|
},
|
||||||
"speedtest": {
|
"speedtest": {
|
||||||
"upload": "Upload",
|
"upload": "Upload",
|
||||||
@ -24,88 +24,95 @@
|
|||||||
"ping": "Ping"
|
"ping": "Ping"
|
||||||
},
|
},
|
||||||
"portainer": {
|
"portainer": {
|
||||||
"running": "Running",
|
"running": "In esecuzione",
|
||||||
"stopped": "Stopped",
|
"stopped": "Fermati",
|
||||||
"total": "Total"
|
"total": "Totali"
|
||||||
},
|
},
|
||||||
"traefik": {
|
"traefik": {
|
||||||
"routers": "Routers",
|
"routers": "Routers",
|
||||||
"services": "Services",
|
"services": "Servizi",
|
||||||
"middleware": "Middleware"
|
"middleware": "Middleware"
|
||||||
},
|
},
|
||||||
"widget": {
|
"widget": {
|
||||||
"missing_type": "Missing Widget Type: {{type}}",
|
"missing_type": "Missing Widget Type: {{type}}",
|
||||||
"api_error": "API Error",
|
"api_error": "Errore API",
|
||||||
"status": "Status"
|
"status": "Stato"
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"placeholder": "Search…"
|
"placeholder": "Cerca…"
|
||||||
},
|
},
|
||||||
"resources": {
|
"resources": {
|
||||||
"total": "Total",
|
"total": "Totale",
|
||||||
"free": "Free",
|
"free": "Libero",
|
||||||
"used": "Used"
|
"used": "In utilizzo"
|
||||||
|
},
|
||||||
|
"rutorrent": {
|
||||||
|
"active": "Attivo",
|
||||||
|
"upload": "Upload",
|
||||||
|
"download": "Download"
|
||||||
|
},
|
||||||
|
"sonarr": {
|
||||||
|
"series": "Serie",
|
||||||
|
"wanted": "Rchiesti",
|
||||||
|
"queued": "In coda"
|
||||||
|
},
|
||||||
|
"radarr": {
|
||||||
|
"wanted": "Richiesti",
|
||||||
|
"queued": "In coda",
|
||||||
|
"movies": "Film"
|
||||||
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Wanted",
|
||||||
|
"queued": "Queued",
|
||||||
|
"books": "Books"
|
||||||
|
},
|
||||||
|
"ombi": {
|
||||||
|
"pending": "In attesa",
|
||||||
|
"approved": "Approvati",
|
||||||
|
"available": "Disponibili"
|
||||||
|
},
|
||||||
|
"jellyseerr": {
|
||||||
|
"pending": "In attesa",
|
||||||
|
"approved": "Approvati",
|
||||||
|
"available": "Disponibili"
|
||||||
|
},
|
||||||
|
"pihole": {
|
||||||
|
"queries": "Richieste",
|
||||||
|
"blocked": "Bloccati",
|
||||||
|
"gravity": "Severità"
|
||||||
|
},
|
||||||
|
"npm": {
|
||||||
|
"enabled": "Attivi",
|
||||||
|
"disabled": "Disabilitati",
|
||||||
|
"total": "Totali"
|
||||||
|
},
|
||||||
|
"weather": {
|
||||||
|
"current": "Posizione Attuale",
|
||||||
|
"allow": "Clicca per consentire",
|
||||||
|
"updating": "Aggiornamento in corso",
|
||||||
|
"wait": "Attendi per favore"
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"pending": "In attesa",
|
||||||
|
"approved": "Approvati",
|
||||||
|
"available": "Disponibili"
|
||||||
|
},
|
||||||
|
"sabnzbd": {
|
||||||
|
"rate": "Rate",
|
||||||
|
"queue": "Queue",
|
||||||
|
"timeleft": "Time Left"
|
||||||
},
|
},
|
||||||
"nzbget": {
|
"nzbget": {
|
||||||
"rate": "Rate",
|
"rate": "Rate",
|
||||||
"remaining": "Remaining",
|
"remaining": "Remaining",
|
||||||
"downloaded": "Downloaded"
|
"downloaded": "Downloaded"
|
||||||
},
|
},
|
||||||
"rutorrent": {
|
"coinmarketcap": {
|
||||||
"active": "Active",
|
"configure": "Configure one or more crypto currencies to track"
|
||||||
"upload": "Upload",
|
|
||||||
"download": "Download"
|
|
||||||
},
|
|
||||||
"sonarr": {
|
|
||||||
"series": "Series",
|
|
||||||
"wanted": "Wanted",
|
|
||||||
"queued": "Queued"
|
|
||||||
},
|
|
||||||
"radarr": {
|
|
||||||
"wanted": "Wanted",
|
|
||||||
"queued": "Queued",
|
|
||||||
"movies": "Movies"
|
|
||||||
},
|
|
||||||
"ombi": {
|
|
||||||
"pending": "Pending",
|
|
||||||
"approved": "Approved",
|
|
||||||
"available": "Available"
|
|
||||||
},
|
|
||||||
"jellyseerr": {
|
|
||||||
"pending": "Pending",
|
|
||||||
"approved": "Approved",
|
|
||||||
"available": "Available"
|
|
||||||
},
|
|
||||||
"pihole": {
|
|
||||||
"queries": "Queries",
|
|
||||||
"blocked": "Blocked",
|
|
||||||
"gravity": "Gravity"
|
|
||||||
},
|
|
||||||
"npm": {
|
|
||||||
"enabled": "Enabled",
|
|
||||||
"disabled": "Disabled",
|
|
||||||
"total": "Total"
|
|
||||||
},
|
|
||||||
"weather": {
|
|
||||||
"current": "Current Location",
|
|
||||||
"allow": "Click to allow",
|
|
||||||
"updating": "Updating",
|
|
||||||
"wait": "Please wait"
|
|
||||||
},
|
|
||||||
"overseerr": {
|
|
||||||
"pending": "Pending",
|
|
||||||
"approved": "Approved",
|
|
||||||
"available": "Available"
|
|
||||||
},
|
},
|
||||||
"gotify": {
|
"gotify": {
|
||||||
"apps": "Applications",
|
"apps": "Applications",
|
||||||
"clients": "Clients",
|
"clients": "Clients",
|
||||||
"messages": "Messages"
|
"messages": "Messages"
|
||||||
},
|
},
|
||||||
"sabnzbd": {
|
|
||||||
"status": "Status",
|
|
||||||
"speed": "Speed",
|
|
||||||
"remaining": "Remaining",
|
|
||||||
"timeleft": "Time left"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -31,11 +31,6 @@
|
|||||||
"bitrate": "Bitrate",
|
"bitrate": "Bitrate",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "No Active Streams"
|
||||||
},
|
},
|
||||||
"nzbget": {
|
|
||||||
"rate": "Takt",
|
|
||||||
"remaining": "Gjenstående",
|
|
||||||
"downloaded": "Nedlastet"
|
|
||||||
},
|
|
||||||
"rutorrent": {
|
"rutorrent": {
|
||||||
"active": "Aktiv",
|
"active": "Aktiv",
|
||||||
"upload": "Opplasting",
|
"upload": "Opplasting",
|
||||||
@ -51,6 +46,11 @@
|
|||||||
"queued": "I kø",
|
"queued": "I kø",
|
||||||
"movies": "Filmer"
|
"movies": "Filmer"
|
||||||
},
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Wanted",
|
||||||
|
"queued": "Queued",
|
||||||
|
"books": "Books"
|
||||||
|
},
|
||||||
"ombi": {
|
"ombi": {
|
||||||
"pending": "Venter",
|
"pending": "Venter",
|
||||||
"approved": "Godkjent",
|
"approved": "Godkjent",
|
||||||
@ -97,15 +97,22 @@
|
|||||||
"approved": "Approved",
|
"approved": "Approved",
|
||||||
"available": "Available"
|
"available": "Available"
|
||||||
},
|
},
|
||||||
|
"sabnzbd": {
|
||||||
|
"rate": "Rate",
|
||||||
|
"queue": "Queue",
|
||||||
|
"timeleft": "Time Left"
|
||||||
|
},
|
||||||
|
"nzbget": {
|
||||||
|
"rate": "Rate",
|
||||||
|
"downloaded": "Downloaded",
|
||||||
|
"remaining": "Remaining"
|
||||||
|
},
|
||||||
|
"coinmarketcap": {
|
||||||
|
"configure": "Configure one or more crypto currencies to track"
|
||||||
|
},
|
||||||
"gotify": {
|
"gotify": {
|
||||||
"apps": "Applications",
|
"apps": "Applications",
|
||||||
"clients": "Clients",
|
"clients": "Clients",
|
||||||
"messages": "Messages"
|
"messages": "Messages"
|
||||||
},
|
},
|
||||||
"sabnzbd": {
|
|
||||||
"status": "Status",
|
|
||||||
"speed": "Speed",
|
|
||||||
"remaining": "Remaining",
|
|
||||||
"timeleft": "Time left"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -16,11 +16,6 @@
|
|||||||
"cpu": "CPU",
|
"cpu": "CPU",
|
||||||
"offline": "Offline"
|
"offline": "Offline"
|
||||||
},
|
},
|
||||||
"nzbget": {
|
|
||||||
"rate": "Rate",
|
|
||||||
"remaining": "Overgebleven",
|
|
||||||
"downloaded": "Gedownload"
|
|
||||||
},
|
|
||||||
"speedtest": {
|
"speedtest": {
|
||||||
"upload": "Upload",
|
"upload": "Upload",
|
||||||
"download": "Download",
|
"download": "Download",
|
||||||
@ -67,6 +62,11 @@
|
|||||||
"wanted": "Gezocht",
|
"wanted": "Gezocht",
|
||||||
"queued": "In de wachtrij"
|
"queued": "In de wachtrij"
|
||||||
},
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Wanted",
|
||||||
|
"queued": "Queued",
|
||||||
|
"books": "Books"
|
||||||
|
},
|
||||||
"ombi": {
|
"ombi": {
|
||||||
"pending": "In afwachting",
|
"pending": "In afwachting",
|
||||||
"approved": "Goedgekeurd",
|
"approved": "Goedgekeurd",
|
||||||
@ -97,15 +97,22 @@
|
|||||||
"approved": "Approved",
|
"approved": "Approved",
|
||||||
"available": "Available"
|
"available": "Available"
|
||||||
},
|
},
|
||||||
|
"sabnzbd": {
|
||||||
|
"rate": "Rate",
|
||||||
|
"queue": "Queue",
|
||||||
|
"timeleft": "Time Left"
|
||||||
|
},
|
||||||
|
"nzbget": {
|
||||||
|
"rate": "Rate",
|
||||||
|
"remaining": "Remaining",
|
||||||
|
"downloaded": "Downloaded"
|
||||||
|
},
|
||||||
|
"coinmarketcap": {
|
||||||
|
"configure": "Configure one or more crypto currencies to track"
|
||||||
|
},
|
||||||
"gotify": {
|
"gotify": {
|
||||||
"apps": "Applications",
|
"apps": "Applications",
|
||||||
"clients": "Clients",
|
"clients": "Clients",
|
||||||
"messages": "Messages"
|
"messages": "Messages"
|
||||||
},
|
},
|
||||||
"sabnzbd": {
|
|
||||||
"status": "Status",
|
|
||||||
"speed": "Speed",
|
|
||||||
"remaining": "Remaining",
|
|
||||||
"timeleft": "Time left"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -31,11 +31,6 @@
|
|||||||
"bitrate": "Taxa de bits",
|
"bitrate": "Taxa de bits",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "No Active Streams"
|
||||||
},
|
},
|
||||||
"nzbget": {
|
|
||||||
"rate": "Avaliar",
|
|
||||||
"remaining": "Em falta",
|
|
||||||
"downloaded": "Baixada"
|
|
||||||
},
|
|
||||||
"rutorrent": {
|
"rutorrent": {
|
||||||
"active": "Ativa",
|
"active": "Ativa",
|
||||||
"upload": "Envio",
|
"upload": "Envio",
|
||||||
@ -51,6 +46,11 @@
|
|||||||
"queued": "Enfileiradas",
|
"queued": "Enfileiradas",
|
||||||
"movies": "Filmes"
|
"movies": "Filmes"
|
||||||
},
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Wanted",
|
||||||
|
"queued": "Queued",
|
||||||
|
"books": "Books"
|
||||||
|
},
|
||||||
"ombi": {
|
"ombi": {
|
||||||
"pending": "Pendente",
|
"pending": "Pendente",
|
||||||
"approved": "Aprovada",
|
"approved": "Aprovada",
|
||||||
@ -108,15 +108,22 @@
|
|||||||
"approved": "Approved",
|
"approved": "Approved",
|
||||||
"available": "Available"
|
"available": "Available"
|
||||||
},
|
},
|
||||||
"gotify": {
|
|
||||||
"apps": "Aplicações",
|
|
||||||
"clients": "Clientes",
|
|
||||||
"messages": "Mensagens"
|
|
||||||
},
|
|
||||||
"sabnzbd": {
|
"sabnzbd": {
|
||||||
"status": "Status",
|
"rate": "Rate",
|
||||||
"speed": "Speed",
|
"queue": "Queue",
|
||||||
|
"timeleft": "Time Left"
|
||||||
|
},
|
||||||
|
"nzbget": {
|
||||||
|
"rate": "Rate",
|
||||||
"remaining": "Remaining",
|
"remaining": "Remaining",
|
||||||
"timeleft": "Time left"
|
"downloaded": "Downloaded"
|
||||||
}
|
},
|
||||||
|
"coinmarketcap": {
|
||||||
|
"configure": "Configure one or more crypto currencies to track"
|
||||||
|
},
|
||||||
|
"gotify": {
|
||||||
|
"apps": "Applications",
|
||||||
|
"clients": "Clients",
|
||||||
|
"messages": "Messages"
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@ -31,11 +31,6 @@
|
|||||||
"bitrate": "Битрейт",
|
"bitrate": "Битрейт",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "No Active Streams"
|
||||||
},
|
},
|
||||||
"nzbget": {
|
|
||||||
"rate": "Оценка",
|
|
||||||
"remaining": "Осталось",
|
|
||||||
"downloaded": "Загружено"
|
|
||||||
},
|
|
||||||
"rutorrent": {
|
"rutorrent": {
|
||||||
"active": "Активный",
|
"active": "Активный",
|
||||||
"upload": "Загрузить",
|
"upload": "Загрузить",
|
||||||
@ -51,6 +46,11 @@
|
|||||||
"queued": "В очереди",
|
"queued": "В очереди",
|
||||||
"movies": "Фильмы"
|
"movies": "Фильмы"
|
||||||
},
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Wanted",
|
||||||
|
"queued": "Queued",
|
||||||
|
"books": "Books"
|
||||||
|
},
|
||||||
"ombi": {
|
"ombi": {
|
||||||
"pending": "Ожидание",
|
"pending": "Ожидание",
|
||||||
"approved": "Одобрено",
|
"approved": "Одобрено",
|
||||||
@ -97,15 +97,22 @@
|
|||||||
"approved": "Approved",
|
"approved": "Approved",
|
||||||
"available": "Available"
|
"available": "Available"
|
||||||
},
|
},
|
||||||
"gotify": {
|
|
||||||
"apps": "Aplicações",
|
|
||||||
"clients": "Clientes",
|
|
||||||
"messages": "Mensagens"
|
|
||||||
},
|
|
||||||
"sabnzbd": {
|
"sabnzbd": {
|
||||||
"status": "Status",
|
"rate": "Rate",
|
||||||
"speed": "Speed",
|
"queue": "Queue",
|
||||||
|
"timeleft": "Time Left"
|
||||||
|
},
|
||||||
|
"nzbget": {
|
||||||
|
"rate": "Rate",
|
||||||
"remaining": "Remaining",
|
"remaining": "Remaining",
|
||||||
"timeleft": "Time left"
|
"downloaded": "Downloaded"
|
||||||
}
|
},
|
||||||
|
"coinmarketcap": {
|
||||||
|
"configure": "Configure one or more crypto currencies to track"
|
||||||
|
},
|
||||||
|
"gotify": {
|
||||||
|
"apps": "Applications",
|
||||||
|
"clients": "Clients",
|
||||||
|
"messages": "Messages"
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@ -31,11 +31,6 @@
|
|||||||
"bitrate": "Bitrate",
|
"bitrate": "Bitrate",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "No Active Streams"
|
||||||
},
|
},
|
||||||
"nzbget": {
|
|
||||||
"rate": "Rate",
|
|
||||||
"remaining": "Còn lại",
|
|
||||||
"downloaded": "Đã tải"
|
|
||||||
},
|
|
||||||
"rutorrent": {
|
"rutorrent": {
|
||||||
"active": "Hoạt động",
|
"active": "Hoạt động",
|
||||||
"upload": "Tải lên",
|
"upload": "Tải lên",
|
||||||
@ -51,6 +46,11 @@
|
|||||||
"queued": "Queued",
|
"queued": "Queued",
|
||||||
"movies": "Movies"
|
"movies": "Movies"
|
||||||
},
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Wanted",
|
||||||
|
"queued": "Queued",
|
||||||
|
"books": "Books"
|
||||||
|
},
|
||||||
"ombi": {
|
"ombi": {
|
||||||
"pending": "Pending",
|
"pending": "Pending",
|
||||||
"approved": "Approved",
|
"approved": "Approved",
|
||||||
@ -97,15 +97,22 @@
|
|||||||
"approved": "Approved",
|
"approved": "Approved",
|
||||||
"available": "Available"
|
"available": "Available"
|
||||||
},
|
},
|
||||||
"gotify": {
|
|
||||||
"apps": "Aplicações",
|
|
||||||
"clients": "Clientes",
|
|
||||||
"messages": "Mensagens"
|
|
||||||
},
|
|
||||||
"sabnzbd": {
|
"sabnzbd": {
|
||||||
"status": "Status",
|
"rate": "Rate",
|
||||||
"speed": "Speed",
|
"queue": "Queue",
|
||||||
|
"timeleft": "Time Left"
|
||||||
|
},
|
||||||
|
"nzbget": {
|
||||||
|
"rate": "Rate",
|
||||||
"remaining": "Remaining",
|
"remaining": "Remaining",
|
||||||
"timeleft": "Time left"
|
"downloaded": "Downloaded"
|
||||||
|
},
|
||||||
|
"coinmarketcap": {
|
||||||
|
"configure": "Configure one or more crypto currencies to track"
|
||||||
|
},
|
||||||
|
"gotify": {
|
||||||
|
"apps": "Applications",
|
||||||
|
"clients": "Clients",
|
||||||
|
"messages": "Messages"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,11 +31,6 @@
|
|||||||
"bitrate": "比特率",
|
"bitrate": "比特率",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "No Active Streams"
|
||||||
},
|
},
|
||||||
"nzbget": {
|
|
||||||
"rate": "速度",
|
|
||||||
"remaining": "其余的",
|
|
||||||
"downloaded": "下载"
|
|
||||||
},
|
|
||||||
"rutorrent": {
|
"rutorrent": {
|
||||||
"active": "积极的",
|
"active": "积极的",
|
||||||
"upload": "上传",
|
"upload": "上传",
|
||||||
@ -51,6 +46,11 @@
|
|||||||
"queued": "排队",
|
"queued": "排队",
|
||||||
"movies": "电影"
|
"movies": "电影"
|
||||||
},
|
},
|
||||||
|
"readarr": {
|
||||||
|
"wanted": "Wanted",
|
||||||
|
"queued": "Queued",
|
||||||
|
"books": "Books"
|
||||||
|
},
|
||||||
"ombi": {
|
"ombi": {
|
||||||
"pending": "待办的",
|
"pending": "待办的",
|
||||||
"approved": "得到正式认可的",
|
"approved": "得到正式认可的",
|
||||||
@ -97,15 +97,22 @@
|
|||||||
"approved": "Approved",
|
"approved": "Approved",
|
||||||
"available": "Available"
|
"available": "Available"
|
||||||
},
|
},
|
||||||
|
"sabnzbd": {
|
||||||
|
"rate": "Rate",
|
||||||
|
"queue": "Queue",
|
||||||
|
"timeleft": "Time Left"
|
||||||
|
},
|
||||||
|
"nzbget": {
|
||||||
|
"rate": "Rate",
|
||||||
|
"remaining": "Remaining",
|
||||||
|
"downloaded": "Downloaded"
|
||||||
|
},
|
||||||
|
"coinmarketcap": {
|
||||||
|
"configure": "Configure one or more crypto currencies to track"
|
||||||
|
},
|
||||||
"gotify": {
|
"gotify": {
|
||||||
"apps": "Aplicações",
|
"apps": "Aplicações",
|
||||||
"clients": "Clientes",
|
"clients": "Clientes",
|
||||||
"messages": "Mensagens"
|
"messages": "Mensagens"
|
||||||
},
|
},
|
||||||
"sabnzbd": {
|
|
||||||
"status": "Status",
|
|
||||||
"speed": "Speed",
|
|
||||||
"remaining": "Remaining",
|
|
||||||
"timeleft": "Time left"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -2,10 +2,12 @@ import { useTranslation } from "react-i18next";
|
|||||||
|
|
||||||
import Sonarr from "./widgets/service/sonarr";
|
import Sonarr from "./widgets/service/sonarr";
|
||||||
import Radarr from "./widgets/service/radarr";
|
import Radarr from "./widgets/service/radarr";
|
||||||
|
import Readarr from "./widgets/service/readarr";
|
||||||
import Ombi from "./widgets/service/ombi";
|
import Ombi from "./widgets/service/ombi";
|
||||||
import Portainer from "./widgets/service/portainer";
|
import Portainer from "./widgets/service/portainer";
|
||||||
import Emby from "./widgets/service/emby";
|
import Emby from "./widgets/service/emby";
|
||||||
import Nzbget from "./widgets/service/nzbget";
|
import Nzbget from "./widgets/service/nzbget";
|
||||||
|
import SABnzbd from "./widgets/service/sabnzbd";
|
||||||
import Docker from "./widgets/service/docker";
|
import Docker from "./widgets/service/docker";
|
||||||
import Pihole from "./widgets/service/pihole";
|
import Pihole from "./widgets/service/pihole";
|
||||||
import Rutorrent from "./widgets/service/rutorrent";
|
import Rutorrent from "./widgets/service/rutorrent";
|
||||||
@ -16,24 +18,27 @@ import Jellyseerr from "./widgets/service/jellyseerr";
|
|||||||
import Overseerr from "./widgets/service/overseerr";
|
import Overseerr from "./widgets/service/overseerr";
|
||||||
import Npm from "./widgets/service/npm";
|
import Npm from "./widgets/service/npm";
|
||||||
import Tautulli from "./widgets/service/tautulli";
|
import Tautulli from "./widgets/service/tautulli";
|
||||||
|
import CoinMarketCap from "./widgets/service/coinmarketcap";
|
||||||
import Gotify from "./widgets/service/gotify";
|
import Gotify from "./widgets/service/gotify";
|
||||||
import Sabnzbd from "./widgets/service/sabnzbd";
|
|
||||||
|
|
||||||
const widgetMappings = {
|
const widgetMappings = {
|
||||||
docker: Docker,
|
docker: Docker,
|
||||||
sonarr: Sonarr,
|
sonarr: Sonarr,
|
||||||
radarr: Radarr,
|
radarr: Radarr,
|
||||||
|
readarr: Readarr,
|
||||||
ombi: Ombi,
|
ombi: Ombi,
|
||||||
portainer: Portainer,
|
portainer: Portainer,
|
||||||
emby: Emby,
|
emby: Emby,
|
||||||
jellyfin: Jellyfin,
|
jellyfin: Jellyfin,
|
||||||
nzbget: Nzbget,
|
nzbget: Nzbget,
|
||||||
|
sabnzbd: SABnzbd,
|
||||||
pihole: Pihole,
|
pihole: Pihole,
|
||||||
rutorrent: Rutorrent,
|
rutorrent: Rutorrent,
|
||||||
speedtest: Speedtest,
|
speedtest: Speedtest,
|
||||||
traefik: Traefik,
|
traefik: Traefik,
|
||||||
jellyseerr: Jellyseerr,
|
jellyseerr: Jellyseerr,
|
||||||
overseerr: Overseerr,
|
overseerr: Overseerr,
|
||||||
|
coinmarketcap: CoinMarketCap,
|
||||||
npm: Npm,
|
npm: Npm,
|
||||||
tautulli: Tautulli,
|
tautulli: Tautulli,
|
||||||
gotify: Gotify,
|
gotify: Gotify,
|
||||||
|
64
src/components/services/widgets/service/coinmarketcap.jsx
Normal file
64
src/components/services/widgets/service/coinmarketcap.jsx
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
import useSWR from "swr";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import getSymbolFromCurrency from "currency-symbol-map";
|
||||||
|
|
||||||
|
import Widget from "../widget";
|
||||||
|
import Block from "../block";
|
||||||
|
|
||||||
|
import { formatApiUrl } from "utils/api-helpers";
|
||||||
|
|
||||||
|
export default function CoinMarketCap({ service }) {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
const config = service.widget;
|
||||||
|
const symbols = [...service.symbols];
|
||||||
|
const currencyCode = service.currency ?? "USD";
|
||||||
|
|
||||||
|
const { data: statsData, error: statsError } = useSWR(
|
||||||
|
formatApiUrl(config, `v1/cryptocurrency/quotes/latest?symbol=${symbols.join(",")}&convert=${currencyCode}`)
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!symbols || symbols.length === 0) {
|
||||||
|
return (
|
||||||
|
<Widget>
|
||||||
|
<Block value={t("coinmarketcap.configure")} />
|
||||||
|
</Widget>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (statsError) {
|
||||||
|
return <Widget error={t("widget.api_error")} />;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!statsData) {
|
||||||
|
return (
|
||||||
|
<Widget>
|
||||||
|
<Block value={t("coinmarketcap.configure")} />
|
||||||
|
</Widget>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const { data } = statsData;
|
||||||
|
const currencySymbol = getSymbolFromCurrency(currencyCode);
|
||||||
|
|
||||||
|
return symbols.map((key) => (
|
||||||
|
<Widget key={data[key].symbol}>
|
||||||
|
<div className="bg-theme-200/50 dark:bg-theme-900/20 rounded m-1 flex-1 flex flex-row items-center justify-between p-1">
|
||||||
|
<div className="font-thin text-sm">{data[key].name}</div>
|
||||||
|
<div className="flex flex-col text-right">
|
||||||
|
<div className="font-bold text-xs">
|
||||||
|
{currencySymbol}
|
||||||
|
{data[key].quote[currencyCode].price.toFixed(2)}
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
className={`font-bold text-xs ${
|
||||||
|
data[key].quote[currencyCode].percent_change_1h > 0 ? "text-emerald-300" : "text-rose-300"
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
{data[key].quote[currencyCode].percent_change_1h.toFixed(2)}%
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Widget>
|
||||||
|
));
|
||||||
|
}
|
@ -27,6 +27,7 @@ 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 },
|
||||||
@ -175,7 +176,7 @@ export default function Emby({ service }) {
|
|||||||
|
|
||||||
if (playing.length === 0) {
|
if (playing.length === 0) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col pb-1">
|
<div className="flex flex-col pb-1 mx-1">
|
||||||
<div className="text-theme-700 dark:text-theme-200 text-xs relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1">
|
<div className="text-theme-700 dark:text-theme-200 text-xs relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1">
|
||||||
<span className="absolute left-2 text-xs mt-[2px]">{t("emby.no_active")}</span>
|
<span className="absolute left-2 text-xs mt-[2px]">{t("emby.no_active")}</span>
|
||||||
</div>
|
</div>
|
||||||
@ -189,7 +190,7 @@ export default function Emby({ service }) {
|
|||||||
if (playing.length === 1) {
|
if (playing.length === 1) {
|
||||||
const session = playing[0];
|
const session = playing[0];
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col pb-1">
|
<div className="flex flex-col pb-1 mx-1">
|
||||||
<SingleSessionEntry
|
<SingleSessionEntry
|
||||||
playCommand={(currentSession, command) => handlePlayCommand(currentSession, command)}
|
playCommand={(currentSession, command) => handlePlayCommand(currentSession, command)}
|
||||||
session={session}
|
session={session}
|
||||||
@ -199,7 +200,7 @@ export default function Emby({ service }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col pb-1">
|
<div className="flex flex-col pb-1 mx-1">
|
||||||
{playing.map((session) => (
|
{playing.map((session) => (
|
||||||
<SessionEntry
|
<SessionEntry
|
||||||
key={session.Id}
|
key={session.Id}
|
||||||
|
41
src/components/services/widgets/service/readarr.jsx
Normal file
41
src/components/services/widgets/service/readarr.jsx
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
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 Readarr({ service }) {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
const config = service.widget;
|
||||||
|
|
||||||
|
const { data: booksData, error: booksError } = useSWR(formatApiUrl(config, "book"));
|
||||||
|
const { data: wantedData, error: wantedError } = useSWR(formatApiUrl(config, "wanted/missing"));
|
||||||
|
const { data: queueData, error: queueError } = useSWR(formatApiUrl(config, "queue/status"));
|
||||||
|
|
||||||
|
if (booksError || wantedError || queueError) {
|
||||||
|
return <Widget error={t("widget.api_error")} />;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!booksData || !wantedData || !queueData) {
|
||||||
|
return (
|
||||||
|
<Widget>
|
||||||
|
<Block label={t("readarr.wanted")} />
|
||||||
|
<Block label={t("readarr.queued")} />
|
||||||
|
<Block label={t("readarr.books")} />
|
||||||
|
</Widget>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const have = booksData.filter((book) => book.statistics.bookFileCount > 0);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Widget>
|
||||||
|
<Block label={t("readarr.wanted")} value={wantedData.totalRecords} />
|
||||||
|
<Block label={t("readarr.queued")} value={queueData.totalCount} />
|
||||||
|
<Block label={t("readarr.books")} value={have.length} />
|
||||||
|
</Widget>
|
||||||
|
);
|
||||||
|
}
|
@ -6,22 +6,22 @@ import Block from "../block";
|
|||||||
|
|
||||||
import { formatApiUrl } from "utils/api-helpers";
|
import { formatApiUrl } from "utils/api-helpers";
|
||||||
|
|
||||||
export default function Sabnzbd({ service }) {
|
export default function SABnzbd({ service }) {
|
||||||
const { t } = useTranslation("common");
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const config = service.widget;
|
const config = service.widget;
|
||||||
const { data: statusData, error: statusError } = useSWR(formatApiUrl(config, "mode=queue"));
|
|
||||||
|
|
||||||
if (statusError) {
|
const { data: queueData, error: queueError } = useSWR(formatApiUrl(config, "queue"));
|
||||||
|
|
||||||
|
if (queueError) {
|
||||||
return <Widget error={t("widget.api_error")} />;
|
return <Widget error={t("widget.api_error")} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!statusData) {
|
if (!queueData) {
|
||||||
return (
|
return (
|
||||||
<Widget>
|
<Widget>
|
||||||
<Block label={t("sabnzbd.status")} />
|
<Block label={t("sabnzbd.rate")} />
|
||||||
<Block label={t("sabnzbd.speed")} />
|
<Block label={t("sabnzbd.queue")} />
|
||||||
<Block label={t("sabnzbd.remaining")} />
|
|
||||||
<Block label={t("sabnzbd.timeleft")} />
|
<Block label={t("sabnzbd.timeleft")} />
|
||||||
</Widget>
|
</Widget>
|
||||||
);
|
);
|
||||||
@ -29,13 +29,9 @@ export default function Sabnzbd({ service }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Widget>
|
<Widget>
|
||||||
<Block label={t("sabnzbd.status")} value={statusData?.queue?.status } />
|
<Block label={t("sabnzbd.rate")} value={`${queueData.queue.speed}bps`} />
|
||||||
<Block label={t("sabnzbd.speed")} value={statusData?.queue?.speed } />
|
<Block label={t("sabnzbd.queue")} value={queueData.queue.noofslots} />
|
||||||
<Block
|
<Block label={t("sabnzbd.timeleft")} value={queueData.queue.timeleft} />
|
||||||
label={t("sabnzbd.remaining")}
|
|
||||||
value={t("common.bytes", { value: statusData?.queue?.mbleft * 1024 * 1024 })}
|
|
||||||
/>
|
|
||||||
<Block label={t("sabnzbd.timeleft")} value={statusData?.queue?.timeleft} />
|
|
||||||
</Widget>
|
</Widget>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ export default function Tautulli({ service }) {
|
|||||||
|
|
||||||
if (!activityData) {
|
if (!activityData) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col pb-1">
|
<div className="flex flex-col pb-1 mx-1">
|
||||||
<div className="text-theme-700 dark:text-theme-200 text-xs relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1">
|
<div className="text-theme-700 dark:text-theme-200 text-xs relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1">
|
||||||
<span className="absolute left-2 text-xs mt-[2px]">-</span>
|
<span className="absolute left-2 text-xs mt-[2px]">-</span>
|
||||||
</div>
|
</div>
|
||||||
@ -127,7 +127,7 @@ export default function Tautulli({ service }) {
|
|||||||
|
|
||||||
if (playing.length === 0) {
|
if (playing.length === 0) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col pb-1">
|
<div className="flex flex-col pb-1 mx-1">
|
||||||
<div className="text-theme-700 dark:text-theme-200 text-xs relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1">
|
<div className="text-theme-700 dark:text-theme-200 text-xs relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1">
|
||||||
<span className="absolute left-2 text-xs mt-[2px]">{t("tautulli.no_active")}</span>
|
<span className="absolute left-2 text-xs mt-[2px]">{t("tautulli.no_active")}</span>
|
||||||
</div>
|
</div>
|
||||||
@ -141,14 +141,14 @@ export default function Tautulli({ service }) {
|
|||||||
if (playing.length === 1) {
|
if (playing.length === 1) {
|
||||||
const session = playing[0];
|
const session = playing[0];
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col pb-1">
|
<div className="flex flex-col pb-1 mx-1">
|
||||||
<SingleSessionEntry session={session} />
|
<SingleSessionEntry session={session} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col pb-1">
|
<div className="flex flex-col pb-1 mx-1">
|
||||||
{playing.map((session) => (
|
{playing.map((session) => (
|
||||||
<SessionEntry key={session.Id} session={session} />
|
<SessionEntry key={session.Id} session={session} />
|
||||||
))}
|
))}
|
||||||
|
@ -16,7 +16,7 @@ function Widget({ options }) {
|
|||||||
|
|
||||||
if (error || data?.cod === 401 || data?.error) {
|
if (error || data?.cod === 401 || data?.error) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col justify-center">
|
<div className="flex flex-col justify-center first:ml-0 ml-4">
|
||||||
<div className="flex flex-row items-center justify-end">
|
<div className="flex flex-row items-center justify-end">
|
||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col items-center">
|
||||||
<BiError className="w-8 h-8 text-theme-800 dark:text-theme-200" />
|
<BiError className="w-8 h-8 text-theme-800 dark:text-theme-200" />
|
||||||
@ -32,7 +32,7 @@ function Widget({ options }) {
|
|||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col justify-center">
|
<div className="flex flex-col justify-center first:ml-0 ml-4">
|
||||||
<div className="flex flex-row items-center justify-end">
|
<div className="flex flex-row items-center justify-end">
|
||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col items-center">
|
||||||
<WiCloudDown className="w-8 h-8 text-theme-800 dark:text-theme-200" />
|
<WiCloudDown className="w-8 h-8 text-theme-800 dark:text-theme-200" />
|
||||||
@ -49,7 +49,7 @@ function Widget({ options }) {
|
|||||||
const unit = options.units === "metric" ? "celsius" : "fahrenheit";
|
const unit = options.units === "metric" ? "celsius" : "fahrenheit";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col justify-center">
|
<div className="flex flex-col justify-center first:ml-0 ml-4">
|
||||||
<div className="flex flex-row items-center justify-end">
|
<div className="flex flex-row items-center justify-end">
|
||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col items-center">
|
||||||
<Icon
|
<Icon
|
||||||
@ -100,7 +100,7 @@ export default function OpenWeatherMap({ options }) {
|
|||||||
|
|
||||||
if (!location) {
|
if (!location) {
|
||||||
return (
|
return (
|
||||||
<button type="button" onClick={() => requestLocation()} className="flex flex-col justify-center">
|
<button type="button" onClick={() => requestLocation()} className="flex flex-col justify-center first:ml-0 ml-4">
|
||||||
<div className="flex flex-row items-center justify-end">
|
<div className="flex flex-row items-center justify-end">
|
||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col items-center">
|
||||||
{requesting ? (
|
{requesting ? (
|
||||||
|
@ -51,7 +51,7 @@ export default function Search({ options }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<form className="flex-col relative h-8 my-4 min-w-full md:min-w-fit grow mr-4" onSubmit={handleSubmit}>
|
<form className="flex-col relative h-8 my-4 min-w-full md:min-w-fit grow first:ml-0 ml-4" onSubmit={handleSubmit}>
|
||||||
<div className="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none w-full text-theme-800 dark:text-white" />
|
<div className="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none w-full text-theme-800 dark:text-white" />
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
|
@ -16,7 +16,7 @@ function Widget({ options }) {
|
|||||||
|
|
||||||
if (error || data?.error) {
|
if (error || data?.error) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col justify-center">
|
<div className="flex flex-col justify-center first:ml-0 ml-4">
|
||||||
<div className="flex flex-row items-center justify-end">
|
<div className="flex flex-row items-center justify-end">
|
||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col items-center">
|
||||||
<BiError className="w-8 h-8 text-theme-800 dark:text-theme-200" />
|
<BiError className="w-8 h-8 text-theme-800 dark:text-theme-200" />
|
||||||
@ -32,7 +32,7 @@ function Widget({ options }) {
|
|||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col justify-center">
|
<div className="flex flex-col justify-center first:ml-0 ml-4">
|
||||||
<div className="flex flex-row items-center justify-end">
|
<div className="flex flex-row items-center justify-end">
|
||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col items-center">
|
||||||
<WiCloudDown className="w-8 h-8 text-theme-800 dark:text-theme-200" />
|
<WiCloudDown className="w-8 h-8 text-theme-800 dark:text-theme-200" />
|
||||||
@ -49,7 +49,7 @@ function Widget({ options }) {
|
|||||||
const unit = options.units === "metric" ? "celsius" : "fahrenheit";
|
const unit = options.units === "metric" ? "celsius" : "fahrenheit";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col justify-center">
|
<div className="flex flex-col justify-center first:ml-0 ml-4">
|
||||||
<div className="flex flex-row items-center justify-end">
|
<div className="flex flex-row items-center justify-end">
|
||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col items-center">
|
||||||
<Icon condition={data.current.condition.code} timeOfDay={data.current.is_day ? "day" : "night"} />
|
<Icon condition={data.current.condition.code} timeOfDay={data.current.is_day ? "day" : "night"} />
|
||||||
@ -101,7 +101,7 @@ export default function WeatherApi({ options }) {
|
|||||||
|
|
||||||
if (!location) {
|
if (!location) {
|
||||||
return (
|
return (
|
||||||
<button type="button" onClick={() => requestLocation()} className="flex flex-col justify-center">
|
<button type="button" onClick={() => requestLocation()} className="flex flex-col justify-center first:ml-0 ml-4">
|
||||||
<div className="flex flex-row items-center justify-end">
|
<div className="flex flex-row items-center justify-end">
|
||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col items-center">
|
||||||
{requesting ? (
|
{requesting ? (
|
||||||
|
@ -11,16 +11,18 @@ const serviceProxyHandlers = {
|
|||||||
pihole: genericProxyHandler,
|
pihole: genericProxyHandler,
|
||||||
radarr: genericProxyHandler,
|
radarr: genericProxyHandler,
|
||||||
sonarr: genericProxyHandler,
|
sonarr: genericProxyHandler,
|
||||||
|
readarr: genericProxyHandler,
|
||||||
speedtest: genericProxyHandler,
|
speedtest: genericProxyHandler,
|
||||||
tautulli: genericProxyHandler,
|
tautulli: genericProxyHandler,
|
||||||
traefik: genericProxyHandler,
|
traefik: genericProxyHandler,
|
||||||
sabnzbd: genericProxyHandler,
|
sabnzbd: genericProxyHandler,
|
||||||
// uses X-API-Key header auth
|
// uses X-API-Key (or similar) header auth
|
||||||
gotify: credentialedProxyHandler,
|
gotify: credentialedProxyHandler,
|
||||||
portainer: credentialedProxyHandler,
|
portainer: credentialedProxyHandler,
|
||||||
jellyseerr: credentialedProxyHandler,
|
jellyseerr: credentialedProxyHandler,
|
||||||
overseerr: credentialedProxyHandler,
|
overseerr: credentialedProxyHandler,
|
||||||
ombi: credentialedProxyHandler,
|
ombi: credentialedProxyHandler,
|
||||||
|
coinmarketcap: credentialedProxyHandler,
|
||||||
// super specific handlers
|
// super specific handlers
|
||||||
rutorrent: rutorrentProxyHandler,
|
rutorrent: rutorrentProxyHandler,
|
||||||
nzbget: nzbgetProxyHandler,
|
nzbget: nzbgetProxyHandler,
|
||||||
|
@ -13,8 +13,10 @@ const formats = {
|
|||||||
overseerr: `{url}/api/v1/{endpoint}`,
|
overseerr: `{url}/api/v1/{endpoint}`,
|
||||||
ombi: `{url}/api/v1/{endpoint}`,
|
ombi: `{url}/api/v1/{endpoint}`,
|
||||||
npm: `{url}/api/{endpoint}`,
|
npm: `{url}/api/{endpoint}`,
|
||||||
|
readarr: `{url}/api/v1/{endpoint}?apikey={key}`,
|
||||||
|
sabnzbd: `{url}/api/?apikey={key}&output=json&mode={endpoint}`,
|
||||||
|
coinmarketcap: `{url}/{endpoint}`,
|
||||||
gotify: `{url}/{endpoint}`,
|
gotify: `{url}/{endpoint}`,
|
||||||
sabnzbd: `{url}/api?output=json&apikey={key}&{endpoint}`,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export function formatApiCall(api, args) {
|
export function formatApiCall(api, args) {
|
||||||
|
@ -17,11 +17,22 @@ export default async function credentialedProxyHandler(req, res) {
|
|||||||
|
|
||||||
if (widget) {
|
if (widget) {
|
||||||
const url = new URL(formatApiCall(widget.type, { endpoint, ...widget }));
|
const url = new URL(formatApiCall(widget.type, { endpoint, ...widget }));
|
||||||
|
|
||||||
|
const headers = {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
};
|
||||||
|
|
||||||
|
if (widget.type === "coinmarketcap") {
|
||||||
|
headers["X-CMC_PRO_API_KEY"] = `${widget.key}`;
|
||||||
|
} else {
|
||||||
|
headers["X-API-Key"] = `${widget.key}`;
|
||||||
|
}
|
||||||
|
|
||||||
const [status, contentType, data] = await httpProxy(url, {
|
const [status, contentType, data] = await httpProxy(url, {
|
||||||
method: req.method,
|
method: req.method,
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
credentials: "include",
|
credentials: "include",
|
||||||
headers: headersData,
|
headers,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (status === 204 || status === 304) {
|
if (status === 204 || status === 304) {
|
||||||
|
@ -110,13 +110,18 @@ export function cleanServiceGroups(groups) {
|
|||||||
const cleanedService = { ...service };
|
const cleanedService = { ...service };
|
||||||
|
|
||||||
if (cleanedService.widget) {
|
if (cleanedService.widget) {
|
||||||
const { type } = cleanedService.widget;
|
const { type, server, container } = cleanedService.widget;
|
||||||
|
|
||||||
cleanedService.widget = {
|
cleanedService.widget = {
|
||||||
type,
|
type,
|
||||||
service_name: service.name,
|
service_name: service.name,
|
||||||
service_group: serviceGroup.name,
|
service_group: serviceGroup.name,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (type === "docker") {
|
||||||
|
cleanedService.widget.server = server;
|
||||||
|
cleanedService.widget.container = container;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return cleanedService;
|
return cleanedService;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user