mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
saerch dialogh
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
<template v-slot:prepend>
|
||||
Tandoor Brand Logo
|
||||
</template>
|
||||
|
||||
<div id="id_dialog_anchor"></div>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn density="compact" icon="fas fa-search"></v-btn>
|
||||
<global-search-dialog></global-search-dialog>
|
||||
<v-btn density="compact" icon="fas fa-ellipsis-v"></v-btn>
|
||||
</v-app-bar>
|
||||
|
||||
@@ -51,9 +51,10 @@
|
||||
<script lang="ts">
|
||||
|
||||
import {defineComponent} from 'vue'
|
||||
import GlobalSearchDialog from "@/components/inputs/GlobalSearchDialog.vue";
|
||||
|
||||
export default defineComponent({
|
||||
components: {},
|
||||
components: {GlobalSearchDialog},
|
||||
mixins: [],
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</template>
|
||||
<td>{{ ingredient.amount }}</td>
|
||||
<td><span v-if="ingredient.unit != null">{{ ingredient.unit.name }}</span></td>
|
||||
<td>{{ ingredient.food.name }}</td>
|
||||
<td ><span v-if="ingredient.food != null">{{ ingredient.food.name }}</span></td>
|
||||
<td>
|
||||
<v-icon class="far fa-comment" v-if="ingredient.note != ''" @click="show_tooltip = !show_tooltip">
|
||||
<v-tooltip v-model="show_tooltip" activator="parent" location="start">{{ ingredient.note }}</v-tooltip>
|
||||
|
||||
115
vue3/src/components/inputs/GlobalSearchDialog.vue
Normal file
115
vue3/src/components/inputs/GlobalSearchDialog.vue
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
14
vue3/src/types/SearchTypes.ts
Normal file
14
vue3/src/types/SearchTypes.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export interface SearchResult {
|
||||
name: string,
|
||||
recipe_id?: number,
|
||||
suffix?: string,
|
||||
description?: string,
|
||||
icon?: string,
|
||||
image?: string,
|
||||
}
|
||||
|
||||
export interface FlatRecipe{
|
||||
id: number,
|
||||
name: string,
|
||||
image:string|null,
|
||||
}
|
||||
Reference in New Issue
Block a user