misc: titles
This commit is contained in:
parent
886ad26687
commit
612284f201
8 changed files with 15 additions and 0 deletions
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
|
@ -33,6 +33,8 @@ export const load: PageServerLoad = async ({ url, locals, fetch, params: { chapt
|
|||
}
|
||||
|
||||
return {
|
||||
title: 'Classement' + ' - ' + chapter.name,
|
||||
|
||||
chapter,
|
||||
leaderboard,
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -24,6 +24,7 @@ export const load: PageServerLoad = async ({ url, locals, fetch }) => {
|
|||
|
||||
return {
|
||||
title: 'Classement',
|
||||
|
||||
leaderboard
|
||||
};
|
||||
};
|
||||
|
|
|
@ -18,6 +18,8 @@ export const load: PageServerLoad = async ({ locals }) => {
|
|||
}
|
||||
|
||||
return {
|
||||
title: 'Connexion',
|
||||
|
||||
form: await superValidate(zod(formSchema))
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue