Phase 2: Docker and OIDC auth

This commit is contained in:
2026-05-04 13:50:53 +02:00
parent 47baee854b
commit 4226628d5a
71 changed files with 9722 additions and 1347 deletions
+7 -4
View File
@@ -1,5 +1,5 @@
import { useQuery } from "@tanstack/react-query";
import { fetchCounts, fetchLibraries, fetchNowPlaying } from "../api/client";
import { fetchCounts, fetchLibraries, fetchActivity } from "../api/client";
export function useCounts() {
return useQuery({
@@ -17,10 +17,13 @@ export function useLibraries() {
});
}
export function useNowPlaying() {
export function useActivity() {
return useQuery({
queryKey: ["dashboard", "now-playing"],
queryFn: fetchNowPlaying,
queryKey: ["dashboard", "activity"],
queryFn: fetchActivity,
refetchInterval: 15_000,
});
}
// Backward-compatible alias used by older code.
export const useNowPlaying = useActivity;