From dcfb269909dffada90b123c45dec408cd44fdcbb Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 30 Aug 2023 10:30:12 +0200 Subject: [PATCH] meal plan stuff --- vue/src/apps/MealPlanView/MealPlanView.vue | 249 ++++++++++-------- vue/src/components/MealPlanCard.vue | 10 +- vue/src/components/MealPlanEditModal.vue | 7 +- vue/src/components/Modals/ColorInput.vue | 46 ++++ .../components/Modals/GenericModalForm.vue | 1 + vue/src/utils/models.js | 108 ++++---- vue/src/utils/openapi/api.ts | 104 ++++---- vue/src/utils/openapi/common.ts | 2 +- vue/src/utils/openapi/configuration.ts | 2 +- 9 files changed, 304 insertions(+), 225 deletions(-) create mode 100644 vue/src/components/Modals/ColorInput.vue diff --git a/vue/src/apps/MealPlanView/MealPlanView.vue b/vue/src/apps/MealPlanView/MealPlanView.vue index b555d0d37..1473d7089 100644 --- a/vue/src/apps/MealPlanView/MealPlanView.vue +++ b/vue/src/apps/MealPlanView/MealPlanView.vue @@ -2,122 +2,153 @@
-
-
- - - - -
-
-
-
-
-
- - - - - - - - - - - - +
+
+
+

{{ $t('Meal_Types') }}

+ + + + {{ mt.name }} + + +
+ + + + {{ $t("Export_To_ICal") }} + + + +
+
+
+
+ + + + +
-
-
- - -
-
{{ day.date_label }}
- -
- -
+
+
+
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+ + +
+
{{ day.date_label }}
- - -
-
- - -
-
+
+ +
+
+ + + +
+
+ + +
+
{{ plan.entry.recipe.name }} {{ plan.entry.title }}
- + {{ plan.entry.note }}
- - - {{ plan.entry.meal_type_name }} - + + + {{ plan.entry.meal_type_name }} + - {{ plan.entry.recipe.working_time + plan.entry.recipe.waiting_time }} {{ $t('min') }} - -
-
- -
-
-
+ +
+
+ +
+
+
-
+ +
+
+ +
-
@@ -139,7 +170,7 @@
- {{ meal_type.name }} -
-
- - - - {{ $t("Export_To_ICal") }} - -
-
-