refactor: remove deprecated navidrome/audiobookshelf widgets

Consolidate into the unified Audio Stats widget which adapts its UI
based on the linked integration kind — Navidrome shows artists/albums/
songs/now-playing, Audiobookshelf shows libraries/audiobooks/podcasts/
listening-time/sessions.

Removes: widget definitions, components, API routers, and the
deprecatedWidgetKinds mechanism (no longer needed).
This commit is contained in:
Thomas Camlong committed 2026-06-09 20:58:54 +02:00
1 parent 9da8ea1dec
commit 69ed608241
13 files changed
+4 -220

No files matched your search

-6
View File
@@ -40,19 +40,13 @@ export const widgetKinds = [
"speedtestTracker",
"uptimeKuma",
"audioStats",
"audiobookshelf",
"navidrome",
"umami",
"ups",
] as const;
export type WidgetKind = (typeof widgetKinds)[number];
export const deprecatedWidgetKinds = new Set<WidgetKind>(["navidrome", "audiobookshelf"]);
export const widgetDefaultSizes: Partial<Record<WidgetKind, { width: number; height: number }>> = {
uptimeKuma: { width: 2, height: 3 },
audioStats: { width: 2, height: 2 },
audiobookshelf: { width: 2, height: 2 },
paperlessNgx: { width: 2, height: 2 },
navidrome: { width: 2, height: 2 },
};