From 697fa16010174cf94cbd060ee27b1dc8afcce113 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Wed, 5 May 2021 10:42:11 -0800 Subject: [PATCH] add toolbars tools to recipe sections --- frontend/src/api/api-utils.js | 2 +- .../components/MealPlan/MealPlanEditor.vue | 2 +- .../src/components/MealPlan/MealPlanNew.vue | 2 +- .../components/Recipe/Parts/Ingredients.vue | 2 +- .../components/Recipe/Parts/Instructions.vue | 2 +- .../src/components/Recipe/Parts/Notes.vue | 2 +- .../src/components/Recipe/RecipePrint.vue | 2 +- .../components/Recipe/RecipeViewer/index.vue | 2 +- frontend/src/components/UI/CardSection.vue | 61 ++++++++++++++++--- frontend/src/locales/messages/en-US.json | 3 + frontend/src/pages/MealPlan/Planner.vue | 2 +- frontend/src/pages/MealPlan/ThisWeek.vue | 2 +- frontend/src/pages/Recipes/AllRecipes.vue | 20 +++--- frontend/src/pages/SearchPage/index.vue | 37 ++++++----- frontend/src/routes/meal.js | 2 +- frontend/src/utils/index.js | 4 +- frontend/src/utils/recipe.js | 31 ++++++++++ 17 files changed, 132 insertions(+), 46 deletions(-) create mode 100644 frontend/src/utils/recipe.js diff --git a/frontend/src/api/api-utils.js b/frontend/src/api/api-utils.js index a143f8452..597423f2e 100644 --- a/frontend/src/api/api-utils.js +++ b/frontend/src/api/api-utils.js @@ -1,7 +1,7 @@ const baseURL = "/api/"; import axios from "axios"; import { store } from "../store"; -import utils from "@/utils"; +import { utils } from "@/utils"; axios.defaults.headers.common["Authorization"] = `Bearer ${store.getters.getToken}`; diff --git a/frontend/src/components/MealPlan/MealPlanEditor.vue b/frontend/src/components/MealPlan/MealPlanEditor.vue index 76d489aca..f38cdedd9 100644 --- a/frontend/src/components/MealPlan/MealPlanEditor.vue +++ b/frontend/src/components/MealPlan/MealPlanEditor.vue @@ -21,7 +21,7 @@ diff --git a/frontend/src/locales/messages/en-US.json b/frontend/src/locales/messages/en-US.json index 5aab6900f..0122916c1 100644 --- a/frontend/src/locales/messages/en-US.json +++ b/frontend/src/locales/messages/en-US.json @@ -36,6 +36,7 @@ "close": "Close", "confirm": "Confirm", "create": "Create", + "created": "Created", "current-parenthesis": "(Current)", "dashboard": "Dashboard", "delete": "Delete", @@ -63,6 +64,7 @@ "no": "No", "ok": "OK", "options": "Options:", + "rating": "Rating", "random": "Random", "recent": "Recent", "recipes": "Recipes", @@ -83,6 +85,7 @@ "token": "Token", "tuesday": "Tuesday", "update": "Update", + "updated": "Updated", "upload": "Upload", "url": "URL", "users": "Users", diff --git a/frontend/src/pages/MealPlan/Planner.vue b/frontend/src/pages/MealPlan/Planner.vue index 3c9903939..648c26361 100644 --- a/frontend/src/pages/MealPlan/Planner.vue +++ b/frontend/src/pages/MealPlan/Planner.vue @@ -54,7 +54,7 @@