mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-14 12:14:42 +01:00
lint code
This commit is contained in:
@@ -49,7 +49,7 @@ export default defineNuxtConfig({
|
||||
image: {
|
||||
domains: [
|
||||
'avatars0.githubusercontent.com',
|
||||
'pbs.twimg.com'
|
||||
]
|
||||
}
|
||||
'pbs.twimg.com',
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
@@ -5,10 +5,11 @@ const getColor = computed(() => `text-${appConfig.ui.primary}-500`)
|
||||
|
||||
<template>
|
||||
<UButton
|
||||
class="flex items-center"
|
||||
variant="ghost"
|
||||
to="/"
|
||||
:class="getColor">
|
||||
class="flex items-center"
|
||||
variant="ghost"
|
||||
to="/"
|
||||
:class="getColor"
|
||||
>
|
||||
ArthurDanj
|
||||
</UButton>
|
||||
</template>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { Post } from '~~/types';
|
||||
import type { Post } from '~~/types'
|
||||
|
||||
const route = useRoute()
|
||||
const { data: postContent } = await useAsyncData<Post>(`writing:${route.params.slug}`, async () => await queryContent<Post>(`/writing/${route.params.slug}`).findOne())
|
||||
|
||||
@@ -16,9 +16,9 @@ export default router({
|
||||
createdAt: 'desc',
|
||||
},
|
||||
})
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
if (process.env.NODE_ENV === 'development')
|
||||
return false
|
||||
}
|
||||
|
||||
const today = new Date()
|
||||
return !!maintenance
|
||||
&& maintenance.enabled
|
||||
|
||||
Reference in New Issue
Block a user