Linted code

This commit is contained in:
2024-06-21 00:33:07 +02:00
parent a99f3a4396
commit 2dcde6b0d8
12 changed files with 60 additions and 38 deletions

View File

@@ -1,6 +1,6 @@
export default defineAppConfig({ export default defineAppConfig({
ui: { ui: {
primary: 'lime', primary: 'lime',
gray: 'neutral', gray: 'neutral'
} }
}) })

View File

@@ -3,10 +3,10 @@ export default defineAppConfig({
gray: 'neutral', gray: 'neutral',
primary: 'gray', primary: 'gray',
container: { container: {
constrained: 'max-w-3xl', constrained: 'max-w-3xl'
}, },
icons: { icons: {
dynamic: true, dynamic: true
} }
} }
}) })

View File

@@ -3,17 +3,17 @@ const socials = [
{ {
icon: 'i-ph-x-logo-bold', icon: 'i-ph-x-logo-bold',
label: 'Twitter', label: 'Twitter',
link: 'https://twitter.com/ArthurDanj', link: 'https://twitter.com/ArthurDanj'
}, },
{ {
icon: 'i-ph-github-logo-bold', icon: 'i-ph-github-logo-bold',
label: 'GitHub', label: 'GitHub',
link: 'https://github.com/ArthurDanjou', link: 'https://github.com/ArthurDanjou'
}, },
{ {
icon: 'i-ph-linkedin-logo-bold', icon: 'i-ph-linkedin-logo-bold',
label: 'LinkedIn', label: 'LinkedIn',
link: 'https://www.linkedin.com/in/arthurdanjou/', link: 'https://www.linkedin.com/in/arthurdanjou/'
} }
] ]
</script> </script>
@@ -21,7 +21,11 @@ const socials = [
<template> <template>
<footer class="mb-16"> <footer class="mb-16">
<div class="flex justify-center my-8"> <div class="flex justify-center my-8">
<UDivider class="md:w-2/3" size="2xs" type="solid" /> <UDivider
class="md:w-2/3"
size="2xs"
type="solid"
/>
</div> </div>
<div> <div>
<h3>Find me on:</h3> <h3>Find me on:</h3>
@@ -39,7 +43,8 @@ const socials = [
<HomeLink <HomeLink
label="arthurdanjou@outlook.fr" label="arthurdanjou@outlook.fr"
href="mailto:arthurdanjou@outlook.fr" href="mailto:arthurdanjou@outlook.fr"
blanked /> blanked
/>
</div> </div>
</div> </div>
</footer> </footer>

View File

@@ -36,7 +36,10 @@ const navs = [
Logo Logo
</div> </div>
<div class="flex gap-2 items-center"> <div class="flex gap-2 items-center">
<div v-for="nav in navs" :key="nav.label"> <div
v-for="nav in navs"
:key="nav.label"
>
<UTooltip :text="nav.label"> <UTooltip :text="nav.label">
<UButton <UButton
:icon="nav.icon" :icon="nav.icon"

View File

@@ -2,14 +2,18 @@
defineProps({ defineProps({
icon: { icon: {
type: String, type: String,
required: true, required: true
} }
}) })
</script> </script>
<template> <template>
<div class="inline"> <div class="inline">
<UIcon class="mb-1 mr-1" :name="icon" :dynamic="true" /> <UIcon
class="mb-1 mr-1"
:name="icon"
:dynamic="true"
/>
<span class="sofia font-medium"> <span class="sofia font-medium">
<slot /> <slot />
</span> </span>

View File

@@ -9,7 +9,7 @@ defineProps({
required: true required: true
}, },
icon: { icon: {
type: String, type: String
}, },
blanked: { blanked: {
type: Boolean, type: Boolean,
@@ -24,7 +24,11 @@ defineProps({
:target="blanked ? '_blank' : '_self'" :target="blanked ? '_blank' : '_self'"
class="sofia border-b border-gray-200 hover:border-black duration-300 dark:border-neutral-800 dark:hover:border-white flex gap-1 items-center pb-.5" class="sofia border-b border-gray-200 hover:border-black duration-300 dark:border-neutral-800 dark:hover:border-white flex gap-1 items-center pb-.5"
> >
<Icon v-if="icon" :name="icon" size="20"/> <Icon
v-if="icon"
:name="icon"
size="20"
/>
<span class="font-bold text-md text-black dark:text-white">{{ label }}</span> <span class="font-bold text-md text-black dark:text-white">{{ label }}</span>
</NuxtLink> </NuxtLink>
</template> </template>

View File

@@ -2,4 +2,4 @@
<main class="!max-w-none prose dark:prose-invert mt-12"> <main class="!max-w-none prose dark:prose-invert mt-12">
<ContentDoc path="/" /> <ContentDoc path="/" />
</main> </main>
</template> </template>

View File

@@ -10,4 +10,4 @@
<style scoped> <style scoped>
</style> </style>

View File

@@ -10,4 +10,4 @@
<style scoped> <style scoped>
</style> </style>

View File

@@ -2,5 +2,5 @@
import withNuxt from './.nuxt/eslint.config.mjs' import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt( export default withNuxt(
// Your custom configs here // Your custom configs here
) )

View File

@@ -8,36 +8,36 @@ export default defineNuxtConfig({
'@nuxt/ui', '@nuxt/ui',
'@nuxt/content', '@nuxt/content',
'@vueuse/nuxt', '@vueuse/nuxt',
"@nuxtjs/google-fonts" '@nuxtjs/google-fonts'
], ],
hub: { hub: {
cache: true, cache: true
}, },
app: { app: {
pageTransition: { name: "page", mode: "out-in" }, pageTransition: { name: 'page', mode: 'out-in' }
}, },
content: { content: {
highlight: { highlight: {
theme: "github-dark", theme: 'github-dark'
}, }
}, },
colorMode: { colorMode: {
preference: "light", preference: 'light',
fallback: "light", fallback: 'light'
}, },
ui: { ui: {
icons: ["heroicons", "logos", "ph"], icons: ['heroicons', 'logos', 'ph']
}, },
devtools: { devtools: {
enabled: true, enabled: true,
timeline: { enabled: true, } timeline: { enabled: true }
}, },
eslint: { eslint: {
@@ -50,11 +50,17 @@ export default defineNuxtConfig({
}, },
googleFonts: { googleFonts: {
display: "swap", display: 'swap',
families: { families: {
Inter: [400, 500, 600, 700, 800, 900], 'Inter': [400, 500, 600, 700, 800, 900],
'Sofia Sans': [400], 'Sofia Sans': [400],
'DM Sans': [400, 500, 600, 700, 800, 900], 'DM Sans': [400, 500, 600, 700, 800, 900]
}, }
}, },
})
nitro: {
experimental: {
openAPI: true
}
}
})

View File

@@ -1,5 +1,5 @@
import type { Config } from "tailwindcss" import type { Config } from 'tailwindcss'
import typography from "@tailwindcss/typography" import typography from '@tailwindcss/typography'
export default <Partial<Config>>{ export default <Partial<Config>>{
content: [ content: [
@@ -16,5 +16,5 @@ export default <Partial<Config>>{
'./app.config.{js,ts}', './app.config.{js,ts}',
'content/**/*.md' 'content/**/*.md'
], ],
plugins: [typography], plugins: [typography]
} }