mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-23 06:45:22 -07:00
recipe page linting
This commit is contained in:
parent
5fadd299dd
commit
6ee3b7b33d
1 changed files with 1 additions and 10 deletions
|
@ -162,14 +162,11 @@ import RecipePageOrganizers from "./RecipePageParts/RecipePageOrganizers.vue";
|
||||||
import RecipePageScale from "./RecipePageParts/RecipePageScale.vue";
|
import RecipePageScale from "./RecipePageParts/RecipePageScale.vue";
|
||||||
import RecipePageInfoEditor from "./RecipePageParts/RecipePageInfoEditor.vue";
|
import RecipePageInfoEditor from "./RecipePageParts/RecipePageInfoEditor.vue";
|
||||||
import RecipePageComments from "./RecipePageParts/RecipePageComments.vue";
|
import RecipePageComments from "./RecipePageParts/RecipePageComments.vue";
|
||||||
import { useLoggedInState } from "~/composables/use-logged-in-state";
|
|
||||||
import RecipePrintContainer from "~/components/Domain/Recipe/RecipePrintContainer.vue";
|
import RecipePrintContainer from "~/components/Domain/Recipe/RecipePrintContainer.vue";
|
||||||
import {
|
import {
|
||||||
clearPageState,
|
clearPageState,
|
||||||
EditorMode,
|
|
||||||
PageMode,
|
PageMode,
|
||||||
usePageState,
|
usePageState,
|
||||||
usePageUser,
|
|
||||||
} from "~/composables/recipe-page/shared-state";
|
} from "~/composables/recipe-page/shared-state";
|
||||||
import type { NoUndefinedField } from "~/lib/api/types/non-generated";
|
import type { NoUndefinedField } from "~/lib/api/types/non-generated";
|
||||||
import type { Recipe, RecipeCategory, RecipeTag, RecipeTool } from "~/lib/api/types/recipe";
|
import type { Recipe, RecipeCategory, RecipeTag, RecipeTool } from "~/lib/api/types/recipe";
|
||||||
|
@ -194,11 +191,10 @@ const $auth = useMealieAuth();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
const groupSlug = computed(() => (route.params.groupSlug as string) || $auth.user?.value?.groupSlug || "");
|
const groupSlug = computed(() => (route.params.groupSlug as string) || $auth.user?.value?.groupSlug || "");
|
||||||
const { isOwnGroup } = useLoggedInState();
|
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const api = useUserApi();
|
const api = useUserApi();
|
||||||
const { pageMode, editMode, setMode, isEditForm, isEditJSON, isCookMode, isEditMode, toggleCookMode }
|
const { setMode, isEditForm, isEditJSON, isCookMode, isEditMode, toggleCookMode }
|
||||||
= usePageState(recipe.value.slug);
|
= usePageState(recipe.value.slug);
|
||||||
const { deactivateNavigationWarning } = useNavigationWarning();
|
const { deactivateNavigationWarning } = useNavigationWarning();
|
||||||
const notLinkedIngredients = computed(() => {
|
const notLinkedIngredients = computed(() => {
|
||||||
|
@ -319,11 +315,6 @@ function addStep(steps: Array<string> | null = null) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** =============================================================
|
|
||||||
* Meta Tags
|
|
||||||
*/
|
|
||||||
const { user } = usePageUser();
|
|
||||||
|
|
||||||
/** =============================================================
|
/** =============================================================
|
||||||
* RecipeChip Clicked
|
* RecipeChip Clicked
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue