commented out mock data

This commit is contained in:
2026-03-19 01:19:21 +00:00
parent 7e6db0262b
commit ec883ad006

View File

@@ -241,7 +241,7 @@ import { ref, onMounted, computed, watch } from 'vue'
import '@/assets/css/gallery.css' import '@/assets/css/gallery.css'
import '@/assets/css/app-theme.css' import '@/assets/css/app-theme.css'
const mockRecipes = [ /*const mockRecipes = [
{ {
id: 1, id: 1,
title: "Miso-Glazed Smashed Burger", title: "Miso-Glazed Smashed Burger",
@@ -307,11 +307,11 @@ const mockRecipes = [
createdAt: "2026-03-11T07:45:00Z" createdAt: "2026-03-11T07:45:00Z"
} }
] ]
*/
//const recipes = ref([]) const recipes = ref([])
const recipes = ref(mockRecipes) //const recipes = ref(mockRecipes)
const loading = ref(false) //const loading = ref(false)
//const loading = ref(true) const loading = ref(true)
const showDetails = ref(false) const showDetails = ref(false)
const selectedRecipe = ref(null) const selectedRecipe = ref(null)
const isEditing = ref(false) const isEditing = ref(false)
@@ -322,8 +322,8 @@ const isSearching = ref(false)
let debounceTimeout = null let debounceTimeout = null
onMounted(async () => { onMounted(async () => {
//await fetchRecipes() await fetchRecipes()
loading.value = false //loading.value = false
}) })
const fetchRecipes = async () => { const fetchRecipes = async () => {