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();
return {
title: 'Accueil',
chapters,
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);
return {
title: chapter.name,
chapter,
};
};

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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