From ab537598e9d15310d57fda38d755c7b257e21620 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 1 Jul 2024 13:05:17 +0200 Subject: [PATCH] Revert changes --- app/components/AppFooter.vue | 4 +- app/components/AppHeader.vue | 2 + app/components/uses/List.vue | 20 ++++++++++ app/pages/index.vue | 6 +-- app/pages/uses.vue | 25 +++++-------- app/pages/writings/[slug].vue | 19 ++++++---- app/pages/writings/index.vue | 8 ++-- nuxt.config.ts | 37 ++++++++++++------- .../index.get.ts} | 0 .../api/{stats.get.ts => stats/index.get.ts} | 0 app/tailwind.config.ts => tailwind.config.ts | 0 11 files changed, 75 insertions(+), 46 deletions(-) create mode 100644 app/components/uses/List.vue rename server/api/{activity.get.ts => activity/index.get.ts} (100%) rename server/api/{stats.get.ts => stats/index.get.ts} (100%) rename app/tailwind.config.ts => tailwind.config.ts (100%) diff --git a/app/components/AppFooter.vue b/app/components/AppFooter.vue index 0445b80..5c4a665 100644 --- a/app/components/AppFooter.vue +++ b/app/components/AppFooter.vue @@ -29,7 +29,7 @@ const socials = [
-

Find me on:

+

Find me on:

-

Or send me an email:

+

Or send me an email:

+
+ +
    + +
+
+ + + diff --git a/app/pages/index.vue b/app/pages/index.vue index a7e5c23..78cfc60 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -5,9 +5,9 @@ diff --git a/app/pages/uses.vue b/app/pages/uses.vue index f90a5fa..031e5bd 100644 --- a/app/pages/uses.vue +++ b/app/pages/uses.vue @@ -20,42 +20,35 @@ const ide = items.value!.filter(item => item.category === 'ide') title="Uses" />
-
    - + -
-
    - + + -
+
  • - My IntelliJ IDE -

    - My IntelliJ Idea Ultimate IDE -

    +

    + My IntelliJ Idea Ultimate IDE +

    +
  • - Writing cover + />

- Thanks for reading this post! If you liked it, please consider sharing it with your friends. Don't - forget to leave a like! + Thanks for reading this post! If you liked it, please consider sharing it with your friends. + Don't forget to leave a like!

const description = 'All my thoughts on programming, mathematics, artificial intelligence design, etc., are put together in chronological order. I also write about my projects, my discoveries, and my thoughts.' useSeoMeta({ - title: 'My Shelf | Arthur Danjou', + title: 'My Shelf', description }) @@ -43,13 +43,15 @@ function getDetails(slug: string) {

{{ getDetails(writing.slug) }}

-
+

{{ writing.title }}

-

+

{{ useDateFormat(writing.publishedAt, 'DD MMMM YYYY').value }} · {{ writing.readingTime }}min long

diff --git a/nuxt.config.ts b/nuxt.config.ts index 94d8d34..83d0876 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -2,6 +2,18 @@ export default defineNuxtConfig({ future: { compatibilityVersion: 4 }, + // Nuxt App + app: { + pageTransition: { name: 'page', mode: 'out-in' }, + head: { + htmlAttrs: { lang: 'en' }, + templateParams: { + separator: '•' + } + } + }, + + // Nuxt Modules modules: [ '@nuxthub/core', '@nuxt/eslint', @@ -10,9 +22,10 @@ export default defineNuxtConfig({ '@vueuse/nuxt', '@nuxtjs/google-fonts', '@nuxthq/studio', - "@nuxt/image" + '@nuxt/image' ], + // Nuxt Hub hub: { cache: true, kv: true, @@ -20,33 +33,26 @@ export default defineNuxtConfig({ analytics: true }, - app: { - pageTransition: { name: 'page', mode: 'out-in' }, - head: { - htmlAttrs: { lang: 'en' } - } - }, - + // Nuxt Content content: { highlight: { theme: 'github-dark' } }, + // Nuxt Color Mode colorMode: { - preference: 'light', + preference: 'system', fallback: 'light' }, - ui: { - icons: ['heroicons', 'logos', 'ph'] - }, - + // Nuxt Devtools devtools: { enabled: true, timeline: { enabled: true } }, + // Nuxt Eslint eslint: { config: { stylistic: { @@ -56,6 +62,7 @@ export default defineNuxtConfig({ } }, + // Nuxt Google Fonts googleFonts: { display: 'swap', families: { @@ -66,12 +73,14 @@ export default defineNuxtConfig({ } }, + // Nitro nitro: { experimental: { openAPI: true } }, + // Nuxt Env runtimeConfig: { discord: { userId: '', @@ -91,4 +100,4 @@ export default defineNuxtConfig({ } } } -}) \ No newline at end of file +}) diff --git a/server/api/activity.get.ts b/server/api/activity/index.get.ts similarity index 100% rename from server/api/activity.get.ts rename to server/api/activity/index.get.ts diff --git a/server/api/stats.get.ts b/server/api/stats/index.get.ts similarity index 100% rename from server/api/stats.get.ts rename to server/api/stats/index.get.ts diff --git a/app/tailwind.config.ts b/tailwind.config.ts similarity index 100% rename from app/tailwind.config.ts rename to tailwind.config.ts