From e229a70360be3774203cf9ac7b55ece859395ec1 Mon Sep 17 00:00:00 2001 From: smilerz Date: Mon, 1 Nov 2021 16:34:53 -0500 Subject: [PATCH] more fixes after rebase --- .../0159_add_shoppinglistentry_fields.py | 5 ++ vue/package.json | 1 - vue/src/apps/MealPlanView/MealPlanView.vue | 2 +- vue/src/apps/RecipeView/RecipeView.vue | 78 +++++++------------ vue/src/components/IngredientsCard.vue | 6 +- vue/src/components/RecipeCard.vue | 23 ++---- vue/src/utils/openapi/api.ts | 6 ++ 7 files changed, 52 insertions(+), 69 deletions(-) diff --git a/cookbook/migrations/0159_add_shoppinglistentry_fields.py b/cookbook/migrations/0159_add_shoppinglistentry_fields.py index 9a1b25f9f..9df880d08 100644 --- a/cookbook/migrations/0159_add_shoppinglistentry_fields.py +++ b/cookbook/migrations/0159_add_shoppinglistentry_fields.py @@ -66,6 +66,11 @@ class Migration(migrations.Migration): name='mealplan', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='cookbook.mealplan'), ), + migrations.AddField( + model_name='shoppinglistrecipe', + name='name', + field=models.CharField(blank=True, default='', max_length=32), + ), migrations.AddField( model_name='shoppinglistentry', name='ingredient', diff --git a/vue/package.json b/vue/package.json index aa7218e46..f0b1f8c29 100644 --- a/vue/package.json +++ b/vue/package.json @@ -84,5 +84,4 @@ "@vue/cli-plugin-pwa/workbox-webpack-plugin": "^5.1.3", "coa": "2.0.2" } - } } diff --git a/vue/src/apps/MealPlanView/MealPlanView.vue b/vue/src/apps/MealPlanView/MealPlanView.vue index 889eff9e4..5df7945d4 100644 --- a/vue/src/apps/MealPlanView/MealPlanView.vue +++ b/vue/src/apps/MealPlanView/MealPlanView.vue @@ -258,7 +258,7 @@ import "bootstrap-vue/dist/bootstrap-vue.css" import ContextMenu from "@/components/ContextMenu/ContextMenu" import ContextMenuItem from "@/components/ContextMenu/ContextMenuItem" import MealPlanCard from "@/components/MealPlanCard" -import MealPlanEditModal from "@/components/MealPlanEditModal" +import MealPlanEditModal from "@/components/Modals/MealPlanEditModal" import MealPlanCalenderHeader from "@/components/MealPlanCalenderHeader" import EmojiInput from "@/components/Modals/EmojiInput" diff --git a/vue/src/apps/RecipeView/RecipeView.vue b/vue/src/apps/RecipeView/RecipeView.vue index ad0f217ff..44596edce 100644 --- a/vue/src/apps/RecipeView/RecipeView.vue +++ b/vue/src/apps/RecipeView/RecipeView.vue @@ -25,34 +25,8 @@
- -
- -
-
-
-
-
- +
-
- {{ $t('Preparation') }}
- {{ recipe.working_time }} {{ $t('min') }} -
- -
-
- - -
-
- -
-
- {{ recipe.description }} -
-
-
@@ -118,32 +92,38 @@
+
+
+ +
+
+
+
+ -
-
- +
+
- - - - -
- -
-
- - -
{{ $t("Report Abuse") }} @@ -159,7 +139,7 @@ import "bootstrap-vue/dist/bootstrap-vue.css" import { apiLoadRecipe } from "@/utils/api" -import StepComponent from "@/components/StepComponent"; +import StepComponent from "@/components/StepComponent" import RecipeContextMenu from "@/components/ContextMenu/RecipeContextMenu" import { ResolveUrlMixin, ToastMixin } from "@/utils/utils" @@ -168,8 +148,8 @@ import ImageViewer from "@/components/ImageViewer" import IngredientsCard from "@/components/IngredientsCard" import moment from "moment" -import KeywordsComponent from "@/components/KeywordsComponent"; -import NutritionComponent from "@/components/NutritionComponent"; +import KeywordsComponent from "@/components/KeywordsComponent" +import NutritionComponent from "@/components/NutritionComponent" import LoadingSpinner from "@/components/LoadingSpinner" import AddRecipeToBook from "@/components/Modals/AddRecipeToBook" import RecipeRating from "@/components/RecipeRating" diff --git a/vue/src/components/IngredientsCard.vue b/vue/src/components/IngredientsCard.vue index 8dc2c272b..a0ee4fba4 100644 --- a/vue/src/components/IngredientsCard.vue +++ b/vue/src/components/IngredientsCard.vue @@ -25,7 +25,7 @@