From ce4315f97159cf88a441d8f2a24be1344c2a3251 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sat, 22 Oct 2022 12:49:59 -0800 Subject: [PATCH] chore: drop legacy editor (#1755) * drop legacy editor * remove unused components --- .../Domain/Admin/AdminBackupImportOptions.vue | 79 -- .../Domain/Admin/AdminEventViewer.vue | 110 --- .../Domain/Recipe/RecipeComments.vue | 117 --- .../Domain/Recipe/RecipeInstructions.vue | 716 -------------- .../RecipeOcrEditorPage.vue | 11 +- .../RecipePageInstructions.vue | 5 +- .../components/Domain/Recipe/RecipeTools.vue | 89 -- frontend/pages/recipe/_slug/old.vue | 903 ------------------ 8 files changed, 9 insertions(+), 2021 deletions(-) delete mode 100644 frontend/components/Domain/Admin/AdminBackupImportOptions.vue delete mode 100644 frontend/components/Domain/Admin/AdminEventViewer.vue delete mode 100644 frontend/components/Domain/Recipe/RecipeComments.vue delete mode 100644 frontend/components/Domain/Recipe/RecipeInstructions.vue delete mode 100644 frontend/components/Domain/Recipe/RecipeTools.vue delete mode 100644 frontend/pages/recipe/_slug/old.vue diff --git a/frontend/components/Domain/Admin/AdminBackupImportOptions.vue b/frontend/components/Domain/Admin/AdminBackupImportOptions.vue deleted file mode 100644 index 30bb16675e5b..000000000000 --- a/frontend/components/Domain/Admin/AdminBackupImportOptions.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - diff --git a/frontend/components/Domain/Admin/AdminEventViewer.vue b/frontend/components/Domain/Admin/AdminEventViewer.vue deleted file mode 100644 index 5e1969d58330..000000000000 --- a/frontend/components/Domain/Admin/AdminEventViewer.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - - - diff --git a/frontend/components/Domain/Recipe/RecipeComments.vue b/frontend/components/Domain/Recipe/RecipeComments.vue deleted file mode 100644 index 9c8977e14d16..000000000000 --- a/frontend/components/Domain/Recipe/RecipeComments.vue +++ /dev/null @@ -1,117 +0,0 @@ - - - diff --git a/frontend/components/Domain/Recipe/RecipeInstructions.vue b/frontend/components/Domain/Recipe/RecipeInstructions.vue deleted file mode 100644 index ae761d65bb91..000000000000 --- a/frontend/components/Domain/Recipe/RecipeInstructions.vue +++ /dev/null @@ -1,716 +0,0 @@ - - - - - diff --git a/frontend/components/Domain/Recipe/RecipeOcrEditorPage/RecipeOcrEditorPage.vue b/frontend/components/Domain/Recipe/RecipeOcrEditorPage/RecipeOcrEditorPage.vue index f980fac9d761..cb50763ad416 100644 --- a/frontend/components/Domain/Recipe/RecipeOcrEditorPage/RecipeOcrEditorPage.vue +++ b/frontend/components/Domain/Recipe/RecipeOcrEditorPage/RecipeOcrEditorPage.vue @@ -123,15 +123,14 @@ {{ $t("general.new") }} - @@ -145,6 +144,7 @@ import { defineComponent, ref, onMounted, reactive, toRefs, useRouter } from "@n import { until } from "@vueuse/core"; import { invoke } from "@vueuse/shared"; import draggable from "vuedraggable"; +import RecipePageInstructions from "~/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue"; import { useUserApi, useStaticRoutes } from "~/composables/api"; import { OcrTsvResponse as NullableOcrTsvResponse } from "~/lib/api/types/ocr"; import { validators } from "~/composables/use-validators"; @@ -152,7 +152,6 @@ import { Recipe, RecipeIngredient, RecipeStep } from "~/lib/api/types/recipe"; import { Paths, Leaves, SelectedRecipeLeaves } from "~/types/ocr-types"; import BannerExperimental from "~/components/global/BannerExperimental.vue"; import RecipeDialogBulkAdd from "~/components/Domain/Recipe/RecipeDialogBulkAdd.vue"; -import RecipeInstructions from "~/components/Domain/Recipe/RecipeInstructions.vue"; import RecipeIngredientEditor from "~/components/Domain/Recipe/RecipeIngredientEditor.vue"; import RecipeOcrEditorPageCanvas from "~/components/Domain/Recipe/RecipeOcrEditorPage/RecipeOcrEditorPageParts/RecipeOcrEditorPageCanvas.vue"; import RecipeOcrEditorPageHelp from "~/components/Domain/Recipe/RecipeOcrEditorPage/RecipeOcrEditorPageParts/RecipeOcrEditorPageHelp.vue"; @@ -169,7 +168,7 @@ export default defineComponent({ draggable, BannerExperimental, RecipeDialogBulkAdd, - RecipeInstructions, + RecipePageInstructions, RecipeOcrEditorPageCanvas, RecipeOcrEditorPageHelp, }, diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue index df640004010d..fbc189315d3d 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue @@ -171,7 +171,10 @@ - + -
- -
- - - - - diff --git a/frontend/pages/recipe/_slug/old.vue b/frontend/pages/recipe/_slug/old.vue deleted file mode 100644 index eeca3406b993..000000000000 --- a/frontend/pages/recipe/_slug/old.vue +++ /dev/null @@ -1,903 +0,0 @@ - - - - -