mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-24 12:52:33 +01:00
Lint code
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import type { UsesItem } from '#components'
|
||||
import type {PropType} from 'vue'
|
||||
import type { PropType } from 'vue'
|
||||
|
||||
defineProps({
|
||||
item: {
|
||||
|
||||
@@ -9,13 +9,13 @@ useSeoMeta({
|
||||
|
||||
const tagFilter = ref<string | undefined>(undefined)
|
||||
|
||||
const {data: writings, refresh} = await useAsyncData('all-portfolio', () => queryContent('/portfolio')
|
||||
.sort({publishedAt: -1})
|
||||
.where({
|
||||
tags: {$contains: tagFilter.value},
|
||||
})
|
||||
.without('body')
|
||||
.find())
|
||||
const { data: writings, refresh } = await useAsyncData('all-portfolio', () => queryContent('/portfolio')
|
||||
.sort({ publishedAt: -1 })
|
||||
.where({
|
||||
tags: { $contains: tagFilter.value },
|
||||
})
|
||||
.without('body')
|
||||
.find())
|
||||
|
||||
watch(tagFilter, async () => await refresh())
|
||||
|
||||
@@ -52,7 +52,7 @@ function updateTag(index: number) {
|
||||
icon="i-ph-warning-duotone"
|
||||
variant="outline"
|
||||
/>
|
||||
<UTabs :items="tags" @change="updateTag"/>
|
||||
<UTabs :items="tags" @change="updateTag" />
|
||||
<ul class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
||||
<li
|
||||
v-for="(writing, id) in writings"
|
||||
|
||||
Reference in New Issue
Block a user