Add challenges background preference support: Extend site preferences and related components to include challengesBackground, update API and UI to handle new background image settings for challenges.
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 2m23s

This commit is contained in:
Julien Froidefond
2025-12-15 21:26:30 +01:00
parent 83446759fe
commit d3a4fa7cf5
25 changed files with 8373 additions and 12328 deletions

View File

@@ -12,6 +12,7 @@ export async function GET() {
homeBackground: null,
eventsBackground: null,
leaderboardBackground: null,
challengesBackground: null,
});
}
@@ -19,6 +20,7 @@ export async function GET() {
homeBackground: sitePreferences.homeBackground,
eventsBackground: sitePreferences.eventsBackground,
leaderboardBackground: sitePreferences.leaderboardBackground,
challengesBackground: sitePreferences.challengesBackground,
});
} catch (error) {
console.error("Error fetching preferences:", error);
@@ -27,6 +29,7 @@ export async function GET() {
homeBackground: null,
eventsBackground: null,
leaderboardBackground: null,
challengesBackground: null,
},
{ status: 200 }
);