chore: upgrade deps & fix lint

This commit is contained in:
YunYouJun
2023-11-05 21:57:05 +08:00
parent e861c5bd65
commit 203ab27496
21 changed files with 2795 additions and 2938 deletions

View File

@@ -4,7 +4,6 @@ import { isClient, useElementBounding } from '@vueuse/core'
/**
* trigger show invisible element
* @param target
* @returns
*/
export function useInvisibleElement(target: MaybeComputedElementRef<HTMLElement>) {
const { top } = useElementBounding(target)

View File

@@ -1,9 +1,8 @@
import type { DbRecipeItem } from 'utils/db'
import type { DbRecipeItem } from '~/utils/db'
/**
* 随机几道菜
* @param total
* @returns
*/
export function useRandomRecipe(total: Ref<number>) {
const randomRecipes = ref<(DbRecipeItem | undefined)[]>([])

View File

@@ -2,9 +2,8 @@ import { acceptHMRUpdate, defineStore } from 'pinia'
import { useStorage } from '@vueuse/core'
import { computed, onMounted, ref, watch } from 'vue'
import { useGtm } from '@gtm-support/vue-gtm'
import type { RecipeItem } from 'types'
import type { StuffItem } from '../../data/food'
import { db } from '../../utils/db'
import type { RecipeItem, StuffItem } from '~/types'
const namespace = 'cook'
@@ -74,7 +73,6 @@ export const useRecipeStore = defineStore('recipe', () => {
const isSearching = ref(false)
/**
* 搜索菜谱
* @returns
*/
async function searchRecipes() {
isSearching.value = true