From 929899722bf0ea9354a87b207a38ee94df9a08d1 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Thu, 18 Dec 2025 23:18:18 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20corriger=20la=20syntaxe=20et=20ajouter?= =?UTF-8?q?=20des=20retours=20=C3=A0=20la=20ligne=20manquants=20dans=20plu?= =?UTF-8?q?sieurs=20fichiers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app.config.ts | 8 +- app/app.vue | 2 +- app/components/AppFooter.vue | 4 +- app/components/AppHeader.vue | 18 ++- app/components/AppTitle.vue | 6 +- app/components/LangSwitcher.vue | 4 +- app/components/ThemeSwitcher.vue | 12 +- app/components/content/HoverText.vue | 12 +- app/components/content/ProseIcon.vue | 15 ++- app/components/home/Activity.vue | 63 +++++++--- app/components/home/CatchPhrase.vue | 2 +- app/components/home/Link.vue | 8 +- app/components/home/Name.vue | 2 +- app/components/home/Quote.vue | 2 +- app/components/home/Stats.vue | 2 +- app/error.vue | 5 +- app/pages/chat.vue | 2 +- app/pages/index.vue | 12 +- content.config.ts | 4 +- eslint.config.mjs | 2 +- nuxt.config.ts | 169 +++++++++++++-------------- types/index.ts | 16 +-- 22 files changed, 209 insertions(+), 161 deletions(-) diff --git a/app/app.config.ts b/app/app.config.ts index 8a7e195..3b5a54e 100644 --- a/app/app.config.ts +++ b/app/app.config.ts @@ -1,12 +1,12 @@ export default defineAppConfig({ ui: { container: { - base: 'max-w-4xl', + base: 'max-w-4xl' }, colors: { primary: 'neutral', neutral: 'neutral', - red: 'red', - }, - }, + red: 'red' + } + } }) diff --git a/app/app.vue b/app/app.vue index 75aa740..d0af7f8 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,6 +1,6 @@ diff --git a/app/components/AppFooter.vue b/app/components/AppFooter.vue index e8a37c9..311253f 100644 --- a/app/components/AppFooter.vue +++ b/app/components/AppFooter.vue @@ -2,7 +2,7 @@ import { socials } from '~~/types' const { t } = useI18n({ - useScope: 'local', + useScope: 'local' }) @@ -43,7 +43,7 @@ const { t } = useI18n({
{{ t('copyright', { - date: new Date().getFullYear(), + date: new Date().getFullYear() }) }}
diff --git a/app/components/AppHeader.vue b/app/components/AppHeader.vue index 8ea8104..4e6b8ca 100644 --- a/app/components/AppHeader.vue +++ b/app/components/AppHeader.vue @@ -7,16 +7,16 @@ const openContactDrawer = ref(false) const router = useRouter() defineShortcuts({ c: () => openContactDrawer.value = !openContactDrawer.value, - backspace: () => router.back(), + backspace: () => router.back() }) const socialsList = [ { label: 'Email', icon: 'i-ph-envelope-duotone', - to: 'mailto:arthurdanjou@outlook.fr', + to: 'mailto:arthurdanjou@outlook.fr' }, - ...socials, + ...socials ] @@ -58,14 +58,17 @@ const socialsList = [ variant="ghost" /> - + - + diff --git a/app/components/AppTitle.vue b/app/components/AppTitle.vue index 06bf2c1..998c15b 100644 --- a/app/components/AppTitle.vue +++ b/app/components/AppTitle.vue @@ -2,12 +2,12 @@ defineProps({ title: { type: String, - required: true, + required: true }, description: { type: String, - required: true, - }, + required: true + } }) diff --git a/app/components/LangSwitcher.vue b/app/components/LangSwitcher.vue index 3eeaf7d..b04038c 100644 --- a/app/components/LangSwitcher.vue +++ b/app/components/LangSwitcher.vue @@ -18,7 +18,7 @@ async function changeLocale(newLocale: string) { } defineShortcuts({ - l: () => lang.value = currentLocale.value!.code === 'en' ? 'fr' : currentLocale.value!.code === 'fr' ? 'es' : 'en', + l: () => lang.value = currentLocale.value!.code === 'en' ? 'fr' : currentLocale.value!.code === 'fr' ? 'es' : 'en' }) @@ -33,7 +33,7 @@ defineShortcuts({ :content="{ align: 'center', side: 'right', - sideOffset: 8, + sideOffset: 8 }" > { switchTheme() @@ -31,27 +31,27 @@ function toggleDark(event: MouseEvent | { clientX: number, clientY: number }) { .then(() => { const clipPath = [ `circle(0px at ${x}px ${y}px)`, - `circle(${endRadius}px at ${x}px ${y}px)`, + `circle(${endRadius}px at ${x}px ${y}px)` ] document.documentElement.animate( { clipPath: colorMode.value === 'dark' ? [...clipPath].reverse() - : clipPath, + : clipPath }, { duration: 400, easing: 'ease-out', pseudoElement: colorMode.value === 'dark' ? '::view-transition-old(root)' - : '::view-transition-new(root)', - }, + : '::view-transition-new(root)' + } ) }) } defineShortcuts({ - t: () => toggleDark({ clientX: window.innerWidth, clientY: 0 }), + t: () => toggleDark({ clientX: window.innerWidth, clientY: 0 }) }) diff --git a/app/components/content/HoverText.vue b/app/components/content/HoverText.vue index 1019bb1..cf0ee14 100644 --- a/app/components/content/HoverText.vue +++ b/app/components/content/HoverText.vue @@ -4,16 +4,16 @@ import type { PropType } from 'vue' defineProps({ text: { type: [String, Number], - required: true, + required: true }, hover: { type: String, - required: true, + required: true }, position: { type: String as PropType<'top' | 'right' | 'bottom' | 'left'>, - default: 'top', - }, + default: 'top' + } }) @@ -25,11 +25,11 @@ defineProps({ :content="{ align: 'center', side: position, - sideOffset: 8, + sideOffset: 8 }" :text="hover" > {{ text }} - \ No newline at end of file + diff --git a/app/components/content/ProseIcon.vue b/app/components/content/ProseIcon.vue index e5399e1..7067a5c 100644 --- a/app/components/content/ProseIcon.vue +++ b/app/components/content/ProseIcon.vue @@ -2,12 +2,12 @@ defineProps({ icon: { type: String, - required: true, + required: true }, color: { type: String, - default: 'gray', - }, + default: 'gray' + } }) const colorVariants = { @@ -23,13 +23,16 @@ const colorVariants = { zinc: 'text-zinc-500/80 decoration-zinc-400/40', orange: 'text-orange-500/80 decoration-orange-400/40', amber: 'text-amber-500/80 decoration-amber-400/40', - emerald: 'text-emerald-500/80 decoration-emerald-400/40', + emerald: 'text-emerald-500/80 decoration-emerald-400/40' } \ No newline at end of file + diff --git a/app/components/home/Activity.vue b/app/components/home/Activity.vue index fdc7dfd..e925b34 100644 --- a/app/components/home/Activity.vue +++ b/app/components/home/Activity.vue @@ -45,7 +45,7 @@ type FormattedActivity = { state: string start: { ago: string - formatted: { date: string; time: string } + formatted: { date: string, time: string } } } | null @@ -61,7 +61,7 @@ const formattedActivity = computed(() => { const stateWord = (state && state.split(' ').length >= 2 ? state.split(' ')[1] : t('secret')) as string const ago = useTimeAgo(timestamps.start, { - messages: activityMessages[locale.value as keyof typeof activityMessages] as UseTimeAgoMessages, + messages: activityMessages[locale.value as keyof typeof activityMessages] as UseTimeAgoMessages }).value const formatDate = (date: number, format: string) => @@ -75,9 +75,9 @@ const formattedActivity = computed(() => { ago, formatted: { date: formatDate(timestamps.start, 'DD MMM YYYY'), - time: formatDate(timestamps.start, 'HH:mm'), - }, - }, + time: formatDate(timestamps.start, 'HH:mm') + } + } } }) @@ -89,15 +89,28 @@ const editorIcon = computed(() => { @@ -119,24 +135,41 @@ const editorIcon = computed(() => { - + -
+
- - + +
diff --git a/app/components/home/CatchPhrase.vue b/app/components/home/CatchPhrase.vue index fa378e3..b08887c 100644 --- a/app/components/home/CatchPhrase.vue +++ b/app/components/home/CatchPhrase.vue @@ -1,7 +1,7 @@ diff --git a/app/components/home/Link.vue b/app/components/home/Link.vue index 68439cb..b5faf05 100644 --- a/app/components/home/Link.vue +++ b/app/components/home/Link.vue @@ -2,11 +2,11 @@ defineProps({ label: { type: String, - required: true, + required: true }, href: { type: String, - required: true, + required: true }, icon: { type: String, @@ -14,8 +14,8 @@ defineProps({ }, blanked: { type: Boolean, - default: false, - }, + default: false + } }) diff --git a/app/components/home/Name.vue b/app/components/home/Name.vue index d3ebf15..514ad7a 100644 --- a/app/components/home/Name.vue +++ b/app/components/home/Name.vue @@ -1,6 +1,6 @@ diff --git a/app/components/home/Quote.vue b/app/components/home/Quote.vue index 61f3f2d..a6a2e2b 100644 --- a/app/components/home/Quote.vue +++ b/app/components/home/Quote.vue @@ -1,6 +1,6 @@ diff --git a/app/components/home/Stats.vue b/app/components/home/Stats.vue index 1d15163..899d06a 100644 --- a/app/components/home/Stats.vue +++ b/app/components/home/Stats.vue @@ -3,7 +3,7 @@ import type { Stats } from '~~/types' import { usePrecision } from '@vueuse/math' const { locale, locales, t } = useI18n({ - useScope: 'local', + useScope: 'local' }) const currentLocale = computed(() => locales.value.find(l => l.code === locale.value)) diff --git a/app/error.vue b/app/error.vue index 15dcd5c..fad237f 100644 --- a/app/error.vue +++ b/app/error.vue @@ -6,7 +6,10 @@

I think you're lost, let's go back - +

diff --git a/app/pages/chat.vue b/app/pages/chat.vue index edcf87a..e9d8a6a 100644 --- a/app/pages/chat.vue +++ b/app/pages/chat.vue @@ -10,4 +10,4 @@ \ No newline at end of file + diff --git a/app/pages/index.vue b/app/pages/index.vue index a27fa98..c22067c 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -3,21 +3,25 @@ const { locale } = useI18n() useSeoMeta({ title: 'Arthur Danjou - AI enjoyer and Maths student', - description: 'Developer enjoying Artificial Intelligence and Machine Learning. Mathematics Student at Paris Dauphine-PSL University specialised in Statistics', + description: 'Developer enjoying Artificial Intelligence and Machine Learning. Mathematics Student at Paris Dauphine-PSL University specialised in Statistics' }) const { data: page } = await useAsyncData(`/home/${locale.value}`, () => { return queryCollection('main').path(`/home/${locale.value}`).first() }, { - watch: [locale], + watch: [locale] })