From ebe0b884ac01f696322f326d83ce41edd1957256 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 2 Feb 2025 19:31:26 +0100 Subject: [PATCH 1/7] Add @nuxthq/studio and enable Nuxt Studio preview API This commit adds the @nuxthq/studio dependency to package.json and configures the Nuxt Studio preview API in nuxt.config.ts. These changes enable preview functionality for better content management in a Nuxt application. --- nuxt.config.ts | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index adf8602..54de88c 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -34,6 +34,9 @@ export default defineNuxtConfig({ // Nuxt Content content: { + preview: { + api: 'https://api.nuxt.studio', + }, build: { markdown: { highlight: { diff --git a/package.json b/package.json index 2464af3..55bfec6 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@nuxt/content": "3.0.1", "@nuxt/image": "^1.9.0", "@nuxt/ui": "3.0.0-alpha.12", + "@nuxthq/studio": "2.2.1", "@nuxthub/core": "^0.8.15", "@nuxtjs/google-fonts": "^3.2.0", "@nuxtjs/i18n": "9.1.5", @@ -36,8 +37,8 @@ "@tailwindcss/typography": "^0.5.16", "@types/node": "^22.12.0", "@vueuse/core": "^12.5.0", - "@vueuse/nuxt": "^12.5.0", "@vueuse/math": "^12.5.0", + "@vueuse/nuxt": "^12.5.0", "drizzle-kit": "^0.30.3", "eslint": "^9.19.0", "typescript": "^5.7.3", From fd2219248f10fea2aa53f87b56bd046b02d06e3e Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 2 Feb 2025 19:32:57 +0100 Subject: [PATCH 2/7] Remove @nuxthq/studio dependency from package.json The @nuxthq/studio package is no longer needed and has been removed to streamline dependencies. This helps reduce unnecessary packages in the project, improving maintainability. --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 55bfec6..75b5b55 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ "@nuxt/content": "3.0.1", "@nuxt/image": "^1.9.0", "@nuxt/ui": "3.0.0-alpha.12", - "@nuxthq/studio": "2.2.1", "@nuxthub/core": "^0.8.15", "@nuxtjs/google-fonts": "^3.2.0", "@nuxtjs/i18n": "9.1.5", From 9ace5f716b9a6238f2775ac2b2475511dc8a0983 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 2 Feb 2025 19:53:17 +0100 Subject: [PATCH 3/7] Normalize code style and logging levels throughout project Fixed minor inconsistencies in syntax, formatting, and logging levels across various files. Updated newline handling, adjusted console log types, and improved code organization for better readability and maintainability. --- app/components/home/Activity.vue | 13 +++++++------ app/composables/visitors.ts | 4 ++-- content/home/en.md | 1 - content/home/es.md | 8 ++++---- content/home/fr.md | 2 +- content/portfolio/artsite.md | 2 +- content/portfolio/monte-carlo-project.md | 4 ++-- content/portfolio/python-data-ml.md | 5 ++--- content/portfolio/schelling-segregation-model.md | 2 +- package.json | 2 +- 10 files changed, 21 insertions(+), 22 deletions(-) diff --git a/app/components/home/Activity.vue b/app/components/home/Activity.vue index 6f3eca0..c3b295d 100644 --- a/app/components/home/Activity.vue +++ b/app/components/home/Activity.vue @@ -1,5 +1,6 @@