mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
markdown support in ingredients
This commit is contained in:
parent
910611326c
commit
21045f1c5d
3 changed files with 36 additions and 22 deletions
|
@ -26,8 +26,6 @@
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
|
|
||||||
<v-card-actions class="">
|
<v-card-actions class="">
|
||||||
<v-row dense align="center">
|
|
||||||
<v-col>
|
|
||||||
<v-rating
|
<v-rating
|
||||||
class="mr-2"
|
class="mr-2"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
|
@ -37,10 +35,7 @@
|
||||||
size="15"
|
size="15"
|
||||||
:value="rating"
|
:value="rating"
|
||||||
></v-rating>
|
></v-rating>
|
||||||
</v-col>
|
<v-spacer></v-spacer>
|
||||||
<v-col></v-col>
|
|
||||||
<v-col align="end"> </v-col>
|
|
||||||
</v-row>
|
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-hover>
|
</v-hover>
|
||||||
|
@ -55,6 +50,7 @@ export default {
|
||||||
description: String,
|
description: String,
|
||||||
rating: Number,
|
rating: Number,
|
||||||
image: String,
|
image: String,
|
||||||
|
|
||||||
route: {
|
route: {
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,20 +5,30 @@
|
||||||
v-for="(ingredient, index) in ingredients"
|
v-for="(ingredient, index) in ingredients"
|
||||||
:key="generateKey('ingredient', index)"
|
:key="generateKey('ingredient', index)"
|
||||||
>
|
>
|
||||||
|
<v-card flat>
|
||||||
|
<v-card-text class="text-subtitle-1">
|
||||||
|
<v-row class="flex row ">
|
||||||
<v-checkbox
|
<v-checkbox
|
||||||
hide-details
|
hide-details
|
||||||
class="ingredients"
|
class=" pt-0 ingredients my-auto py-auto"
|
||||||
:label="ingredient"
|
|
||||||
color="secondary"
|
color="secondary"
|
||||||
>
|
>
|
||||||
</v-checkbox>
|
</v-checkbox>
|
||||||
|
<vue-markdown class="my-auto" :source="ingredient"> </vue-markdown>
|
||||||
|
</v-row>
|
||||||
|
</v-card-text>
|
||||||
|
</v-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import VueMarkdown from "@adapttive/vue-markdown";
|
||||||
import utils from "@/utils";
|
import utils from "@/utils";
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
VueMarkdown,
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
ingredients: Array,
|
ingredients: Array,
|
||||||
},
|
},
|
||||||
|
@ -31,4 +41,7 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
p {
|
||||||
|
margin-bottom: auto !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
|
@ -99,6 +99,11 @@ export default {
|
||||||
default: 999,
|
default: 999,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
recipes() {
|
||||||
|
console.log(this.recipes);
|
||||||
|
},
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
viewScale() {
|
viewScale() {
|
||||||
switch (this.$vuetify.breakpoint.name) {
|
switch (this.$vuetify.breakpoint.name) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue