chore: fix lint & upgrade deps
This commit is contained in:
1
src/components.d.ts
vendored
1
src/components.d.ts
vendored
@@ -19,7 +19,6 @@ declare module '@vue/runtime-core' {
|
||||
ReloadPrompt: typeof import('./components/ReloadPrompt.vue')['default']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
Search: typeof import('./components/Search.vue')['default']
|
||||
SearchFood: typeof import('./components/SearchFood.vue')['default']
|
||||
StapleTag: typeof import('./components/tags/StapleTag.vue')['default']
|
||||
Switch: typeof import('./components/Switch.vue')['default']
|
||||
|
||||
@@ -25,10 +25,16 @@ onBeforeMount(() => {
|
||||
<div text="xs" m="x-1" i-ri-cloud-line />
|
||||
<a href="https://www.yunyoujun.cn" target="_blank">云游君</a>
|
||||
</div>
|
||||
<div m="t-2" opacity="80" class="footer-support flex justify-center items-center">
|
||||
<div m="t-2" opacity="80">
|
||||
<a href="https://yunle.fun" target="_blank" title="云乐坊">
|
||||
云乐坊工作室
|
||||
</a>
|
||||
</div>
|
||||
<!-- 欢迎赞助 -->
|
||||
<!-- <div m="t-2" opacity="80" class="footer-support flex justify-center items-center">
|
||||
<span>本网站由</span><a class="footer-support-logo" href="https://www.upyun.com" target="blank" title="又拍云">
|
||||
<img m="x-1" width="50" src="https://cdn.yunyoujun.cn/img/logo/upyun-logo.png" alt="又拍云">
|
||||
</a><span>提供 CDN 加速</span>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import { useRecipeStore } from "~/store/recipe";
|
||||
import { useRecipeStore } from '~/store/recipe'
|
||||
const rStore = useRecipeStore()
|
||||
|
||||
const clearKeyword = () => {
|
||||
|
||||
@@ -17,9 +17,8 @@ export function useRecipe(recipe: Ref<Recipe>) {
|
||||
const displayedRecipe = computed(() => {
|
||||
// if keyword exist, return result directly
|
||||
const keyword = rStore.keyword
|
||||
if (keyword) {
|
||||
if (keyword)
|
||||
return recipe.value.filter(item => item.name.includes(keyword))
|
||||
}
|
||||
|
||||
if (curMode.value === 'strict') {
|
||||
return recipe.value.filter((item) => {
|
||||
|
||||
@@ -2,5 +2,5 @@ export const links = {
|
||||
/**
|
||||
* 菜谱投稿链接
|
||||
*/
|
||||
contribute: 'https://docs.qq.com/form/page/DWk9GWW9oTmlXZU9V'
|
||||
contribute: 'https://docs.qq.com/form/page/DWk9GWW9oTmlXZU9V',
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@ export const install: UserModule = ({ isClient, router }) => {
|
||||
if (to.path !== from.path)
|
||||
NProgress.start()
|
||||
})
|
||||
router.afterEach(() => { NProgress.done() })
|
||||
router.afterEach(() => {
|
||||
NProgress.done()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { links } from '~/constants';
|
||||
import { links } from '~/constants'
|
||||
import { useRecipeStore } from '~/store/recipe'
|
||||
const rStore = useRecipeStore()
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -22,12 +21,13 @@ const rStore = useRecipeStore()
|
||||
</p>
|
||||
<p>
|
||||
<ChooseFood />
|
||||
<a
|
||||
m="t-2"
|
||||
border="b-1 dashed"
|
||||
class="inline-flex text-sm text-blue-600 dark:text-blue-400"
|
||||
:href="links.contribute" target="_blank"
|
||||
title="居家菜谱投稿">
|
||||
<a
|
||||
m="t-2"
|
||||
border="b-1 dashed"
|
||||
class="inline-flex text-sm text-blue-600 dark:text-blue-400"
|
||||
:href="links.contribute" target="_blank"
|
||||
title="居家菜谱投稿"
|
||||
>
|
||||
立即投稿
|
||||
</a>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user