refactor: reduce verbosity and dead code across new integrations

- Remove dead widget.audiobookshelf/navidrome i18n blocks (76 lines)
- Simplify audio-stats router (remove duplicated kind casts)
- Remove redundant defaultDisplayOptions in audio-stats component
- Dedup fetch helpers in uptime-kuma (fetchOkAsync) and
  paperless-ngx (fetchAuthenticatedAsync)
- Simplify navidrome asArray helper and getArtistCountAsync
- Simplify uptime-kuma averageUptimePercent and status derivation
This commit is contained in:
Thomas Camlong committed 2026-06-09 21:28:02 +02:00
1 parent ad76ce9cdc
commit fe35a9cf68
6 files changed
+34 -173

No files matched your search

-76
View File
@@ -3220,82 +3220,6 @@
"internalServerError": "Failed to fetch audio stats data"
}
},
"audiobookshelf": {
"name": "Audiobookshelf",
"description": "Statistics from your Audiobookshelf instance",
"option": {
"showLibraryCount": {
"label": "Show library count",
"description": "Show the number of libraries on your instance"
},
"showAudiobooks": {
"label": "Show audiobooks",
"description": "Show the total number of audiobooks across all libraries"
},
"showPodcasts": {
"label": "Show podcasts",
"description": "Show the total number of podcasts across all libraries"
},
"showListeningTime": {
"label": "Show listening time",
"description": "Show your total listening time"
},
"showActiveSessions": {
"label": "Show active sessions",
"description": "Show the number of currently active playback sessions"
},
"compactMode": {
"label": "Compact mode",
"description": "Use a denser layout with smaller tiles, ideal for small widget sizes"
}
},
"libraryCount": "Libraries",
"audiobooks": "Audiobooks",
"podcasts": "Podcasts",
"listeningTime": "Listening Time",
"activeSessions": "Active Sessions",
"error": {
"internalServerError": "Failed to fetch Audiobookshelf data"
}
},
"navidrome": {
"name": "Navidrome",
"description": "Statistics from your Navidrome music server",
"option": {
"showArtists": {
"label": "Show artists",
"description": "Show the total number of artists in your library"
},
"showAlbums": {
"label": "Show albums",
"description": "Show the total number of albums in your library"
},
"showSongs": {
"label": "Show songs",
"description": "Show the total number of songs in your library"
},
"showNowPlaying": {
"label": "Show now playing",
"description": "Show tracks currently being played"
},
"showNowPlayingList": {
"label": "Show now playing list",
"description": "Show individual tracks instead of only the active stream count"
},
"maxNowPlayingItems": {
"label": "Max now playing items",
"description": "Maximum number of tracks to show in the now playing list"
}
},
"artists": "Artists",
"albums": "Albums",
"songs": "Songs",
"nowPlaying": "Now Playing",
"nowPlayingCount": "{count, plural, one {# stream} other {# streams}}",
"error": {
"internalServerError": "Failed to fetch Navidrome data"
}
},
"systemResources": {
"name": "System resources",
"description": "CPU, Memory, Disk and other hardware usage of your system",