lint code

This commit is contained in:
2023-09-05 00:19:35 +02:00
parent 77e3b6975f
commit 8cb6aa97b8
4 changed files with 15 additions and 14 deletions

View File

@@ -49,7 +49,7 @@ export default defineNuxtConfig({
image: { image: {
domains: [ domains: [
'avatars0.githubusercontent.com', 'avatars0.githubusercontent.com',
'pbs.twimg.com' 'pbs.twimg.com',
] ],
} },
}) })

View File

@@ -5,10 +5,11 @@ const getColor = computed(() => `text-${appConfig.ui.primary}-500`)
<template> <template>
<UButton <UButton
class="flex items-center" class="flex items-center"
variant="ghost" variant="ghost"
to="/" to="/"
:class="getColor"> :class="getColor"
>
ArthurDanj ArthurDanj
</UButton> </UButton>
</template> </template>

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { Post } from '~~/types'; import type { Post } from '~~/types'
const route = useRoute() const route = useRoute()
const { data: postContent } = await useAsyncData<Post>(`writing:${route.params.slug}`, async () => await queryContent<Post>(`/writing/${route.params.slug}`).findOne()) const { data: postContent } = await useAsyncData<Post>(`writing:${route.params.slug}`, async () => await queryContent<Post>(`/writing/${route.params.slug}`).findOne())

View File

@@ -16,9 +16,9 @@ export default router({
createdAt: 'desc', createdAt: 'desc',
}, },
}) })
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development')
return false return false
}
const today = new Date() const today = new Date()
return !!maintenance return !!maintenance
&& maintenance.enabled && maintenance.enabled