From 6ee3b7b33d72fbef9dbf147772f0285ab7c86d39 Mon Sep 17 00:00:00 2001 From: Kuchenpirat Date: Wed, 18 Jun 2025 11:58:46 +0000 Subject: [PATCH] recipe page linting --- .../Domain/Recipe/RecipePage/RecipePage.vue | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePage.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePage.vue index 53fe006df..0184b1331 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePage.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePage.vue @@ -162,14 +162,11 @@ import RecipePageOrganizers from "./RecipePageParts/RecipePageOrganizers.vue"; import RecipePageScale from "./RecipePageParts/RecipePageScale.vue"; import RecipePageInfoEditor from "./RecipePageParts/RecipePageInfoEditor.vue"; import RecipePageComments from "./RecipePageParts/RecipePageComments.vue"; -import { useLoggedInState } from "~/composables/use-logged-in-state"; import RecipePrintContainer from "~/components/Domain/Recipe/RecipePrintContainer.vue"; import { clearPageState, - EditorMode, PageMode, usePageState, - usePageUser, } from "~/composables/recipe-page/shared-state"; import type { NoUndefinedField } from "~/lib/api/types/non-generated"; import type { Recipe, RecipeCategory, RecipeTag, RecipeTool } from "~/lib/api/types/recipe"; @@ -194,11 +191,10 @@ const $auth = useMealieAuth(); const route = useRoute(); const groupSlug = computed(() => (route.params.groupSlug as string) || $auth.user?.value?.groupSlug || ""); -const { isOwnGroup } = useLoggedInState(); const router = useRouter(); const api = useUserApi(); -const { pageMode, editMode, setMode, isEditForm, isEditJSON, isCookMode, isEditMode, toggleCookMode } +const { setMode, isEditForm, isEditJSON, isCookMode, isEditMode, toggleCookMode } = usePageState(recipe.value.slug); const { deactivateNavigationWarning } = useNavigationWarning(); const notLinkedIngredients = computed(() => { @@ -319,11 +315,6 @@ function addStep(steps: Array | null = null) { } } -/** ============================================================= - * Meta Tags - */ -const { user } = usePageUser(); - /** ============================================================= * RecipeChip Clicked */