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();
|
const event = chapters?.filter((chapter) => chapter.start && chapter.end).pop();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
title: 'Accueil',
|
||||||
|
|
||||||
chapters,
|
chapters,
|
||||||
event,
|
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);
|
chapter.puzzles = chapter.puzzles?.sort((a, b) => a.scoreMax - b.scoreMax);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
title: chapter.name,
|
||||||
|
|
||||||
chapter,
|
chapter,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
|
@ -33,6 +33,8 @@ export const load: PageServerLoad = async ({ url, locals, fetch, params: { chapt
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
title: 'Classement' + ' - ' + chapter.name,
|
||||||
|
|
||||||
chapter,
|
chapter,
|
||||||
leaderboard,
|
leaderboard,
|
||||||
};
|
};
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -24,6 +24,7 @@ export const load: PageServerLoad = async ({ url, locals, fetch }) => {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: 'Classement',
|
title: 'Classement',
|
||||||
|
|
||||||
leaderboard
|
leaderboard
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,6 +18,8 @@ export const load: PageServerLoad = async ({ locals }) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
title: 'Connexion',
|
||||||
|
|
||||||
form: await superValidate(zod(formSchema))
|
form: await superValidate(zod(formSchema))
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue