From 83af92eaa3314e3cf1142240bdd5d3f9d25bd93c Mon Sep 17 00:00:00 2001 From: hay-kot Date: Tue, 9 Feb 2021 19:15:17 -0900 Subject: [PATCH] change imports to use @/ for imports --- frontend/src/api.js | 2 +- frontend/src/api/api-utils.js | 2 +- frontend/src/api/upload.js | 2 +- frontend/src/components/MealPlan/MealPlanCard.vue | 2 +- frontend/src/components/MealPlan/MealPlanEditor.vue | 4 ++-- frontend/src/components/MealPlan/MealPlanNew.vue | 4 ++-- frontend/src/components/Recipe/RecipeEditor/index.vue | 4 ++-- frontend/src/components/Recipe/RecipePrint.vue | 2 +- .../src/components/Recipe/RecipeViewer/Ingredients.vue | 4 ++-- .../components/Settings/Backup/AvailableBackupCard.vue | 4 ++-- frontend/src/components/Settings/Backup/BackupCard.vue | 4 ++-- .../src/components/Settings/Backup/NewBackupCard.vue | 5 ++--- frontend/src/components/Settings/Backup/index.vue | 2 +- .../components/Settings/General/HomePageSettings.vue | 2 +- .../components/Settings/Migration/MigrationCard.vue | 4 ++-- frontend/src/components/Settings/Migration/index.vue | 4 ++-- frontend/src/components/Settings/Theme/index.vue | 6 +++--- frontend/src/components/Settings/Webhook/index.vue | 2 +- frontend/src/components/UI/AddRecipeFab.vue | 2 +- frontend/src/components/UI/Login.vue | 6 +++--- frontend/src/components/UI/RecipeCard.vue | 2 +- frontend/src/components/UI/SearchBar.vue | 2 +- frontend/src/components/UI/UploadBtn.vue | 2 +- frontend/src/pages/CategoryPage.vue | 2 +- frontend/src/pages/HomePage.vue | 4 ++-- frontend/src/pages/MealPlanPage.vue | 4 ++-- frontend/src/pages/MealPlanThisWeekPage.vue | 4 ++-- frontend/src/pages/RecipeNewPage.vue | 2 +- frontend/src/pages/RecipePage.vue | 6 +++--- frontend/src/pages/SettingsPage.vue | 2 +- frontend/src/routes.js | 4 ++-- frontend/src/store/modules/homePage.js | 10 +++++----- frontend/src/store/modules/userSettings.js | 8 ++++---- frontend/src/store/store.js | 10 +++++----- frontend/src/utils.js | 2 +- 35 files changed, 65 insertions(+), 66 deletions(-) diff --git a/frontend/src/api.js b/frontend/src/api.js index eafe13005..3c6c04c0c 100644 --- a/frontend/src/api.js +++ b/frontend/src/api.js @@ -8,7 +8,7 @@ import myUtils from "./api/upload"; import category from "./api/category"; import meta from "./api/meta"; -// import api from "../api"; +// import api from "@/api"; export default { recipes: recipe, diff --git a/frontend/src/api/api-utils.js b/frontend/src/api/api-utils.js index bdfc511cf..c1ef8f9a8 100644 --- a/frontend/src/api/api-utils.js +++ b/frontend/src/api/api-utils.js @@ -1,6 +1,6 @@ const baseURL = "/api/"; import axios from "axios"; -import utils from "../utils"; +import utils from "@/utils"; function processResponse(response) { try { diff --git a/frontend/src/api/upload.js b/frontend/src/api/upload.js index 1c7655185..12a1c08c2 100644 --- a/frontend/src/api/upload.js +++ b/frontend/src/api/upload.js @@ -1,7 +1,7 @@ import { apiReq } from "./api-utils"; export default { - // import api from "../api"; + // import api from "@/api"; async uploadFile(url, fileObject) { let response = await apiReq.post(url, fileObject, { headers: { diff --git a/frontend/src/components/MealPlan/MealPlanCard.vue b/frontend/src/components/MealPlan/MealPlanCard.vue index 2eb11a595..b5c176638 100644 --- a/frontend/src/components/MealPlan/MealPlanCard.vue +++ b/frontend/src/components/MealPlan/MealPlanCard.vue @@ -26,7 +26,7 @@