From fef8ad540ae507469680161d2ed7baf795fbc54e Mon Sep 17 00:00:00 2001 From: Hayden Date: Fri, 8 Jan 2021 17:09:03 -0900 Subject: [PATCH] file reorganize --- frontend/src/App.vue | 6 +- frontend/src/components/Admin/SFTP.vue | 12 -- frontend/src/components/Admin/Users.vue | 12 -- .../{EditPlan.vue => MealPlanEditor.vue} | 0 .../MealPlan/{NewMeal.vue => MealPlanNew.vue} | 0 .../{ => Recipe}/RecipeEditor/BulkAdd.vue | 0 .../RecipeEditor/index.vue} | 4 +- .../RecipePrint.vue} | 0 .../RecipeViewer.vue} | 0 .../components/RecipeEditor/DetailsView.vue | 128 ------------------ .../Backup.vue => Settings/Backup/index.vue} | 3 +- .../Migration/index.vue} | 2 +- .../Theme/ColorPickerDialog.vue} | 0 .../Theme/NewThemeDialog.vue} | 0 .../Theme.vue => Settings/Theme/index.vue} | 36 ++--- .../Webhook/TimePickerDialog.vue} | 0 .../Webhook/index.vue} | 8 +- .../{AddRecipe.vue => UI/AddRecipeFab.vue} | 2 +- .../src/components/{ => UI}/RecentRecipes.vue | 2 +- .../Page404.vue => pages/404Page.vue} | 0 .../Home.vue => pages/HomePage.vue} | 2 +- .../MealPlanPage.vue} | 8 +- .../MealPlanThisWeekPage.vue} | 4 +- .../NewRecipe.vue => pages/RecipeNewPage.vue} | 10 +- .../Recipe.vue => pages/RecipePage.vue} | 32 ++--- .../Admin.vue => pages/SettingsPage.vue} | 8 +- frontend/src/routes.js | 30 ++-- mealie/routes/recipe_routes.py | 2 +- 28 files changed, 80 insertions(+), 231 deletions(-) delete mode 100644 frontend/src/components/Admin/SFTP.vue delete mode 100644 frontend/src/components/Admin/Users.vue rename frontend/src/components/MealPlan/{EditPlan.vue => MealPlanEditor.vue} (100%) rename frontend/src/components/MealPlan/{NewMeal.vue => MealPlanNew.vue} (100%) rename frontend/src/components/{ => Recipe}/RecipeEditor/BulkAdd.vue (100%) rename frontend/src/components/{RecipeEditor/EditRecipe.vue => Recipe/RecipeEditor/index.vue} (99%) rename frontend/src/components/{RecipeEditor/PrintRecipe.vue => Recipe/RecipePrint.vue} (100%) rename frontend/src/components/{RecipeEditor/ViewRecipe.vue => Recipe/RecipeViewer.vue} (100%) delete mode 100644 frontend/src/components/RecipeEditor/DetailsView.vue rename frontend/src/components/{Admin/Backup.vue => Settings/Backup/index.vue} (99%) rename frontend/src/components/{Admin/Migration.vue => Settings/Migration/index.vue} (98%) rename frontend/src/components/{Admin/ThemeUI/ColorPicker.vue => Settings/Theme/ColorPickerDialog.vue} (100%) rename frontend/src/components/{Admin/ThemeUI/NewTheme.vue => Settings/Theme/NewThemeDialog.vue} (100%) rename frontend/src/components/{Admin/Theme.vue => Settings/Theme/index.vue} (88%) rename frontend/src/components/{Admin/Webhooks/TimePicker.vue => Settings/Webhook/TimePickerDialog.vue} (100%) rename frontend/src/components/{Admin/Webhooks.vue => Settings/Webhook/index.vue} (94%) rename frontend/src/components/{AddRecipe.vue => UI/AddRecipeFab.vue} (98%) rename frontend/src/components/{ => UI}/RecentRecipes.vue (93%) rename frontend/src/{components/Page404.vue => pages/404Page.vue} (100%) rename frontend/src/{components/Home.vue => pages/HomePage.vue} (72%) rename frontend/src/{components/MealPlan/MealPlanner.vue => pages/MealPlanPage.vue} (94%) rename frontend/src/{components/MealPlan/ThisWeek.vue => pages/MealPlanThisWeekPage.vue} (96%) rename frontend/src/{components/NewRecipe.vue => pages/RecipeNewPage.vue} (91%) rename frontend/src/{components/Recipe.vue => pages/RecipePage.vue} (87%) rename frontend/src/{components/Admin/Admin.vue => pages/SettingsPage.vue} (87%) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 533c394c7c67..0e33a66d5edf 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -20,7 +20,7 @@ - + @@ -35,7 +35,7 @@ - - \ No newline at end of file diff --git a/frontend/src/components/Admin/Users.vue b/frontend/src/components/Admin/Users.vue deleted file mode 100644 index f8d0653fe57a..000000000000 --- a/frontend/src/components/Admin/Users.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - - - \ No newline at end of file diff --git a/frontend/src/components/MealPlan/EditPlan.vue b/frontend/src/components/MealPlan/MealPlanEditor.vue similarity index 100% rename from frontend/src/components/MealPlan/EditPlan.vue rename to frontend/src/components/MealPlan/MealPlanEditor.vue diff --git a/frontend/src/components/MealPlan/NewMeal.vue b/frontend/src/components/MealPlan/MealPlanNew.vue similarity index 100% rename from frontend/src/components/MealPlan/NewMeal.vue rename to frontend/src/components/MealPlan/MealPlanNew.vue diff --git a/frontend/src/components/RecipeEditor/BulkAdd.vue b/frontend/src/components/Recipe/RecipeEditor/BulkAdd.vue similarity index 100% rename from frontend/src/components/RecipeEditor/BulkAdd.vue rename to frontend/src/components/Recipe/RecipeEditor/BulkAdd.vue diff --git a/frontend/src/components/RecipeEditor/EditRecipe.vue b/frontend/src/components/Recipe/RecipeEditor/index.vue similarity index 99% rename from frontend/src/components/RecipeEditor/EditRecipe.vue rename to frontend/src/components/Recipe/RecipeEditor/index.vue index 83c7a00bf8be..de60a558c1fd 100644 --- a/frontend/src/components/RecipeEditor/EditRecipe.vue +++ b/frontend/src/components/Recipe/RecipeEditor/index.vue @@ -175,8 +175,8 @@ - - \ No newline at end of file diff --git a/frontend/src/components/Admin/Backup.vue b/frontend/src/components/Settings/Backup/index.vue similarity index 99% rename from frontend/src/components/Admin/Backup.vue rename to frontend/src/components/Settings/Backup/index.vue index e986a43858c7..1117bfc33adf 100644 --- a/frontend/src/components/Admin/Backup.vue +++ b/frontend/src/components/Settings/Backup/index.vue @@ -62,7 +62,8 @@ diff --git a/frontend/src/components/Admin/Admin.vue b/frontend/src/pages/SettingsPage.vue similarity index 87% rename from frontend/src/components/Admin/Admin.vue rename to frontend/src/pages/SettingsPage.vue index ed6948c14f19..0f33d8c06025 100644 --- a/frontend/src/components/Admin/Admin.vue +++ b/frontend/src/pages/SettingsPage.vue @@ -27,10 +27,10 @@