1
0
mirror of https://github.com/TandoorRecipes/recipes.git synced 2026-01-11 17:16:59 -05:00

improve search/start page

This commit is contained in:
vabene1111
2025-03-12 20:12:02 +01:00
parent 40ee21a613
commit 752e98275d
34 changed files with 88 additions and 30 deletions

View File

@@ -70,9 +70,11 @@ import {useDisplay} from "vuetify";
import VClosableCardTitle from "@/components/dialogs/VClosableCardTitle.vue";
import {useDebounceFn} from "@vueuse/core";
import {ErrorMessageType, useMessageStore} from "@/stores/MessageStore";
import {useI18n} from "vue-i18n";
const router = useRouter()
const {mobile} = useDisplay()
const {t} = useI18n()
const dialog = ref(false)
const recipes = ref([] as Recipe[])
@@ -114,6 +116,8 @@ const searchResults = computed(() => {
// searchResults.push({name: 'Recent 2', icon: 'fas fa-history',} as SearchResult)
// searchResults.push({name: 'Recent 3', icon: 'fas fa-history',} as SearchResult)
searchResults.push({name: t('AllRecipes'), icon: 'fas fa-search', type: "link_advanced_search"} as SearchResult)
flatRecipes.value.slice(0, 5).forEach(r => {
searchResults.push({name: r.name, image: r.image, recipeId: r.id} as SearchResult)
})