From 6c370f15c8a490905a7bdae424bbd0ef3b25b27d Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sat, 1 Feb 2025 04:13:35 +0000 Subject: [PATCH] Add first pass of TTS read of steps in cook mode --- .../RecipePageInstructionPlayer.vue | 93 +++++++++++++++++++ .../RecipePageInstructions.vue | 5 +- 2 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue new file mode 100644 index 000000000..d79964f75 --- /dev/null +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue index 171fdaeaa..52a9716de 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue @@ -266,6 +266,7 @@ + @@ -303,6 +304,7 @@ import { useExtractIngredientReferences } from "~/composables/recipe-page/use-ex import { NoUndefinedField } from "~/lib/api/types/non-generated"; import DropZone from "~/components/global/DropZone.vue"; import RecipeIngredients from "~/components/Domain/Recipe/RecipeIngredients.vue"; +import RecipePageInstructionPlayer from "~/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue"; interface MergerHistory { target: number; source: number; @@ -315,7 +317,8 @@ export default defineComponent({ draggable, RecipeIngredientHtml, DropZone, - RecipeIngredients + RecipeIngredients, + RecipePageInstructionPlayer }, props: { value: {