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

@@ -1,6 +1,6 @@
<script lang="ts" setup>
import { storeToRefs } from 'pinia'
import type { StuffItem } from '~/data/food'
import type { StuffItem } from '~/types'
import { meat, staple, tools, vegetable } from '~/data/food'
import { useEmojiAnimation } from '~/composables/animation'

View File

@@ -29,37 +29,35 @@ const showTooltip = computed(() => !selectedStuff.value.length && !curTool.value
<SearchFoodInput v-if="showSearchInput" />
<Transition mode="out-in">
<div class="cook-filter-recipes">
<span v-if="showTooltip" text="sm" p="2">
你要先选食材或工具哦
</span>
<span v-if="showTooltip" text="sm" p="2">
你要先选食材或工具哦
</span>
<div
v-else-if="rStore.isSearching"
relative flex items-center justify-center p-6
text-xl
>
<div class="magnifying-glass" i-ri-search-line inline-flex />
</div>
<div
v-else-if="rStore.isSearching"
relative flex items-center justify-center p-6
text-xl
>
<div class="magnifying-glass" i-ri-search-line inline-flex />
</div>
<div v-else-if="rStore.displayedRecipe.length">
<DishTag v-for="item, i in rStore.displayedRecipe" :key="i" :dish="item" />
</div>
<div v-else-if="rStore.displayedRecipe.length">
<DishTag v-for="item, i in rStore.displayedRecipe" :key="i" :dish="item" />
</div>
<div v-else text="sm">
<span>还没有完美匹配的菜谱呢</span>
<br>
<span>大胆尝试一下或者</span>
<a href="#" @click="rStore.reset()">
<strong>换个组合</strong>
</a>
<span></span>
<br>
<div m="t-1">
<span>欢迎来</span>
<a class="font-bold text-blue-600 dark:text-blue-400" href="https://docs.qq.com/sheet/DQk1vdkhFV0twQVNS?tab=uykkic" target="_blank">这里</a>
<span>反馈新的菜谱</span>
</div>
<div v-else text="sm">
<span>还没有完美匹配的菜谱呢</span>
<br>
<span>大胆尝试一下或者</span>
<a href="#" @click="rStore.reset()">
<strong>换个组合</strong>
</a>
<span></span>
<br>
<div m="t-1">
<span>欢迎来</span>
<a class="font-bold text-blue-600 dark:text-blue-400" href="https://docs.qq.com/sheet/DQk1vdkhFV0twQVNS?tab=uykkic" target="_blank">这里</a>
<span>反馈新的菜谱</span>
</div>
</div>
</Transition>

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { Recipes } from 'types'
import type { Recipes } from '~/types'
defineProps<{
recipes: Recipes

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { RecipeItem } from 'types'
import type { RecipeItem } from '~/types'
defineProps<{
index: number

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { DbRecipeItem } from 'utils/db'
import type { DbRecipeItem } from '~/utils/db'
import { tools } from '~/data/food'
import type { RecipeItem } from '~/types'
import { getEmojisFromStuff } from '~/utils'