misc: titles

This commit is contained in:
glazk0 2025-01-28 21:17:41 +01:00
parent 886ad26687
commit 612284f201
No known key found for this signature in database
8 changed files with 15 additions and 0 deletions

View file

@ -26,6 +26,8 @@ export const load: PageServerLoad = async ({ locals, fetch }) => {
const event = chapters?.filter((chapter) => chapter.start && chapter.end).pop(); const event = chapters?.filter((chapter) => chapter.start && chapter.end).pop();
return { return {
title: 'Accueil',
chapters, chapters,
event, event,
}; };

View file

@ -27,6 +27,8 @@ export const load: PageServerLoad = async ({ url, locals, fetch, params: { chapt
chapter.puzzles = chapter.puzzles?.sort((a, b) => a.scoreMax - b.scoreMax); chapter.puzzles = chapter.puzzles?.sort((a, b) => a.scoreMax - b.scoreMax);
return { return {
title: chapter.name,
chapter, chapter,
}; };
}; };

View file

@ -31,6 +31,8 @@ export const load: PageServerLoad = async ({ url, locals, fetch, params: { chapt
const groups: Group[] = await res.json(); const groups: Group[] = await res.json();
return { return {
title: 'Groupes' + ' - ' + chapter.name,
chapter, chapter,
groups groups
}; };

View file

@ -33,6 +33,8 @@ export const load: PageServerLoad = async ({ url, locals, fetch, params: { chapt
} }
return { return {
title: 'Classement' + ' - ' + chapter.name,
chapter, chapter,
leaderboard, leaderboard,
}; };

View file

@ -65,6 +65,8 @@ export const load: PageServerLoad = async ({ url, locals, fetch, cookies, params
.replace(/<\/code>`}<\/pre>/g, '</code></pre>'); .replace(/<\/code>`}<\/pre>/g, '</code></pre>');
return { return {
title: puzzle.name + " - " + chapter.name,
chapter, chapter,
puzzle, puzzle,
session, session,

View file

@ -24,6 +24,7 @@ export const load: PageServerLoad = async ({ url, locals, fetch }) => {
return { return {
title: 'Classement', title: 'Classement',
leaderboard leaderboard
}; };
}; };

View file

@ -18,6 +18,8 @@ export const load: PageServerLoad = async ({ locals }) => {
} }
return { return {
title: 'Connexion',
form: await superValidate(zod(formSchema)) form: await superValidate(zod(formSchema))
} }
}; };

View file

@ -18,6 +18,8 @@ export const load: PageServerLoad = async ({ locals }) => {
} }
return { return {
title: 'Réinitialisation du mot de passe',
form: await superValidate(zod(formSchema)), form: await superValidate(zod(formSchema)),
formConfirmation: await superValidate(zod(formConfirmationSchema)) formConfirmation: await superValidate(zod(formConfirmationSchema))
} }