some basic views

This commit is contained in:
vabene1111
2024-02-21 20:18:54 +01:00
parent 1e6e843e05
commit 5587429475
121 changed files with 23617 additions and 34 deletions

View File

@@ -0,0 +1,35 @@
<template>
<v-img max-height="15vh" :src="recipe.image"></v-img>
<h3>{{ recipe.name }}</h3>
{{ recipe.description }}
{{recipe}}
</template>
<script lang="ts">
import {defineComponent} from 'vue'
import {ApiApi, Recipe} from "@/openapi";
export default defineComponent({
name: "RecipeSearchPage",
components: {},
props: {
id: Number
},
data() {
return {
recipe: {} as Recipe
}
},
mounted() {
const api = new ApiApi()
api.retrieveRecipe({id: this.id}).then(r => {
this.recipe = r
})
}
})
</script>
<style scoped>
</style>