Refactor Docker Compose configuration and enhance email management in settings

This commit is contained in:
Sean Morley
2024-12-07 16:15:41 -05:00
parent 64105808b5
commit 6a00a2ed55
8 changed files with 172 additions and 62 deletions

View File

@@ -12,9 +12,28 @@ export const load = (async (event) => {
});
let adventures = (await visitedFetch.json()) as Adventure[];
let dates: Array<{
id: string;
start: string;
end: string;
title: string;
backgroundColor?: string;
}> = [];
adventures.forEach((adventure) => {
adventure.visits.forEach((visit) => {
dates.push({
id: adventure.id,
start: visit.start_date,
end: visit.end_date || visit.start_date,
title: adventure.name + (adventure.category?.icon ? ' ' + adventure.category.icon : '')
});
});
});
return {
props: {
adventures
adventures,
dates
}
};
}) satisfies PageServerLoad;

View File

@@ -11,24 +11,7 @@
export let data: PageData;
let adventures = data.props.adventures;
let dates: Array<{
id: string;
start: string;
end: string;
title: string;
backgroundColor?: string;
}> = [];
adventures.forEach((adventure) => {
adventure.visits.forEach((visit) => {
dates.push({
id: adventure.id,
start: visit.start_date,
end: visit.end_date,
title: adventure.name + ' ' + adventure.category?.icon
});
});
});
let dates = data.props.dates;
let plugins = [TimeGrid, DayGrid];
let options = {