chore: fix lint & upgrade deps
This commit is contained in:
30
package.json
30
package.json
@@ -18,18 +18,18 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@gtm-support/vue-gtm": "^1.6.0",
|
"@gtm-support/vue-gtm": "^1.6.0",
|
||||||
"@vueuse/core": "^9.4.0",
|
"@vueuse/core": "^9.5.0",
|
||||||
"@vueuse/head": "^0.9.8",
|
"@vueuse/head": "^0.9.8",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"pinia": "^2.0.23",
|
"pinia": "^2.0.24",
|
||||||
"prism-theme-vars": "^0.2.4",
|
"prism-theme-vars": "^0.2.4",
|
||||||
"vue": "^3.2.41",
|
"vue": "^3.2.45",
|
||||||
"vue-about-me": "^1.2.7",
|
"vue-about-me": "^1.2.7",
|
||||||
"vue-demi": "^0.13.11",
|
"vue-demi": "^0.13.11",
|
||||||
"vue-router": "^4.1.6"
|
"vue-router": "^4.1.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^0.29.3",
|
"@antfu/eslint-config": "^0.31.0",
|
||||||
"@iconify-json/fe": "^1.1.2",
|
"@iconify-json/fe": "^1.1.2",
|
||||||
"@iconify-json/gg": "^1.1.2",
|
"@iconify-json/gg": "^1.1.2",
|
||||||
"@iconify-json/ic": "^1.1.9",
|
"@iconify-json/ic": "^1.1.9",
|
||||||
@@ -38,32 +38,32 @@
|
|||||||
"@pinia/testing": "^0.0.14",
|
"@pinia/testing": "^0.0.14",
|
||||||
"@types/markdown-it-link-attributes": "^3.0.1",
|
"@types/markdown-it-link-attributes": "^3.0.1",
|
||||||
"@types/nprogress": "^0.2.0",
|
"@types/nprogress": "^0.2.0",
|
||||||
"@vitejs/plugin-legacy": "^2.3.0",
|
"@vitejs/plugin-legacy": "^2.3.1",
|
||||||
"@vitejs/plugin-vue": "^3.2.0",
|
"@vitejs/plugin-vue": "^3.2.0",
|
||||||
"@vue/test-utils": "^2.2.1",
|
"@vue/test-utils": "^2.2.4",
|
||||||
"consola": "^2.15.3",
|
"consola": "^2.15.3",
|
||||||
"critters": "^0.0.16",
|
"critters": "^0.0.16",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.26.0",
|
"eslint": "^8.28.0",
|
||||||
"https-localhost": "^4.7.1",
|
"https-localhost": "^4.7.1",
|
||||||
"markdown-it-link-attributes": "^4.0.1",
|
"markdown-it-link-attributes": "^4.0.1",
|
||||||
"markdown-it-prism": "^2.3.0",
|
"markdown-it-prism": "^2.3.0",
|
||||||
"pnpm": "^7.14.2",
|
"pnpm": "^7.17.0",
|
||||||
"sass": "^1.56.0",
|
"sass": "^1.56.1",
|
||||||
"star-markdown-css": "^0.4.0",
|
"star-markdown-css": "^0.4.0",
|
||||||
"terser": "^5.15.0",
|
"terser": "^5.15.1",
|
||||||
"tsx": "^3.11.0",
|
"tsx": "^3.12.1",
|
||||||
"typescript": "^4.8.2",
|
"typescript": "^4.9.3",
|
||||||
"unocss": "^0.45.15",
|
"unocss": "^0.46.5",
|
||||||
"unplugin-auto-import": "^0.11.2",
|
"unplugin-auto-import": "^0.11.2",
|
||||||
"unplugin-vue-components": "^0.22.4",
|
"unplugin-vue-components": "^0.22.4",
|
||||||
"vite": "^3.2.2",
|
"vite": "^3.2.4",
|
||||||
"vite-plugin-inspect": "^0.6.1",
|
"vite-plugin-inspect": "^0.6.1",
|
||||||
"vite-plugin-pages": "^0.26.0",
|
"vite-plugin-pages": "^0.26.0",
|
||||||
"vite-plugin-vue-layouts": "^0.7.0",
|
"vite-plugin-vue-layouts": "^0.7.0",
|
||||||
"vite-plugin-vue-markdown": "^0.21.1",
|
"vite-plugin-vue-markdown": "^0.21.1",
|
||||||
"vite-ssg": "0.20.2",
|
"vite-ssg": "0.20.2",
|
||||||
"vite-ssg-sitemap": "^0.4.1",
|
"vite-ssg-sitemap": "^0.4.3",
|
||||||
"vitest": "^0.23.0",
|
"vitest": "^0.23.0",
|
||||||
"vue-toastification": "^2.0.0-rc.5",
|
"vue-toastification": "^2.0.0-rc.5",
|
||||||
"vue-tsc": "^1.0.9"
|
"vue-tsc": "^1.0.9"
|
||||||
|
|||||||
1374
pnpm-lock.yaml
generated
1374
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
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']
|
ReloadPrompt: typeof import('./components/ReloadPrompt.vue')['default']
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
Search: typeof import('./components/Search.vue')['default']
|
|
||||||
SearchFood: typeof import('./components/SearchFood.vue')['default']
|
SearchFood: typeof import('./components/SearchFood.vue')['default']
|
||||||
StapleTag: typeof import('./components/tags/StapleTag.vue')['default']
|
StapleTag: typeof import('./components/tags/StapleTag.vue')['default']
|
||||||
Switch: typeof import('./components/Switch.vue')['default']
|
Switch: typeof import('./components/Switch.vue')['default']
|
||||||
|
|||||||
@@ -25,10 +25,16 @@ onBeforeMount(() => {
|
|||||||
<div text="xs" m="x-1" i-ri-cloud-line />
|
<div text="xs" m="x-1" i-ri-cloud-line />
|
||||||
<a href="https://www.yunyoujun.cn" target="_blank">云游君</a>
|
<a href="https://www.yunyoujun.cn" target="_blank">云游君</a>
|
||||||
</div>
|
</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="又拍云">
|
<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="又拍云">
|
<img m="x-1" width="50" src="https://cdn.yunyoujun.cn/img/logo/upyun-logo.png" alt="又拍云">
|
||||||
</a><span>提供 CDN 加速</span>
|
</a><span>提供 CDN 加速</span>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useRecipeStore } from "~/store/recipe";
|
import { useRecipeStore } from '~/store/recipe'
|
||||||
const rStore = useRecipeStore()
|
const rStore = useRecipeStore()
|
||||||
|
|
||||||
const clearKeyword = () => {
|
const clearKeyword = () => {
|
||||||
|
|||||||
@@ -17,9 +17,8 @@ export function useRecipe(recipe: Ref<Recipe>) {
|
|||||||
const displayedRecipe = computed(() => {
|
const displayedRecipe = computed(() => {
|
||||||
// if keyword exist, return result directly
|
// if keyword exist, return result directly
|
||||||
const keyword = rStore.keyword
|
const keyword = rStore.keyword
|
||||||
if (keyword) {
|
if (keyword)
|
||||||
return recipe.value.filter(item => item.name.includes(keyword))
|
return recipe.value.filter(item => item.name.includes(keyword))
|
||||||
}
|
|
||||||
|
|
||||||
if (curMode.value === 'strict') {
|
if (curMode.value === 'strict') {
|
||||||
return recipe.value.filter((item) => {
|
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)
|
if (to.path !== from.path)
|
||||||
NProgress.start()
|
NProgress.start()
|
||||||
})
|
})
|
||||||
router.afterEach(() => { NProgress.done() })
|
router.afterEach(() => {
|
||||||
|
NProgress.done()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { links } from '~/constants';
|
import { links } from '~/constants'
|
||||||
import { useRecipeStore } from '~/store/recipe'
|
import { useRecipeStore } from '~/store/recipe'
|
||||||
const rStore = useRecipeStore()
|
const rStore = useRecipeStore()
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -27,7 +26,8 @@ const rStore = useRecipeStore()
|
|||||||
border="b-1 dashed"
|
border="b-1 dashed"
|
||||||
class="inline-flex text-sm text-blue-600 dark:text-blue-400"
|
class="inline-flex text-sm text-blue-600 dark:text-blue-400"
|
||||||
:href="links.contribute" target="_blank"
|
:href="links.contribute" target="_blank"
|
||||||
title="居家菜谱投稿">
|
title="居家菜谱投稿"
|
||||||
|
>
|
||||||
立即投稿
|
立即投稿
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user