feat: Add snack, drink, and dessert (#6149)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
Co-authored-by: Michael Genson <genson.michael@gmail.com>
This commit is contained in:
Cash Prokop-Weaver
2025-12-05 09:54:00 -08:00
committed by GitHub
parent c115e6d83f
commit 6695314588
10 changed files with 54 additions and 8 deletions

View File

@@ -83,6 +83,9 @@ const plan = computed<Days[]>(() => {
{ title: i18n.t("meal-plan.lunch"), meals: [] },
{ title: i18n.t("meal-plan.dinner"), meals: [] },
{ title: i18n.t("meal-plan.side"), meals: [] },
{ title: i18n.t("meal-plan.snack"), meals: [] },
{ title: i18n.t("meal-plan.drink"), meals: [] },
{ title: i18n.t("meal-plan.dessert"), meals: [] },
],
recipes: [],
};
@@ -100,6 +103,15 @@ const plan = computed<Days[]>(() => {
else if (meal.entryType === "side") {
out.sections[3].meals.push(meal);
}
else if (meal.entryType === "snack") {
out.sections[4].meals.push(meal);
}
else if (meal.entryType === "drink") {
out.sections[5].meals.push(meal);
}
else if (meal.entryType === "dessert") {
out.sections[6].meals.push(meal);
}
if (meal.recipe) {
out.recipes.push(meal.recipe);