From fe542c95d3680f9385eea88b74a870196f606a66 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Wed, 17 Dec 2025 09:57:42 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20r=C3=A9organiser=20la=20configuration?= =?UTF-8?q?=20de=20l'application=20et=20am=C3=A9liorer=20les=20types=20dan?= =?UTF-8?q?s=20nuxt.config.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.config.ts | 3 --- app/app.config.ts | 9 +++++++++ app/pages/index.vue | 11 ++++++----- nuxt.config.ts | 19 +++++++++++++++++-- worker-configuration.d.ts | 4 ++-- 5 files changed, 34 insertions(+), 12 deletions(-) delete mode 100644 app.config.ts create mode 100644 app/app.config.ts diff --git a/app.config.ts b/app.config.ts deleted file mode 100644 index 3c9aa7d..0000000 --- a/app.config.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default defineAppConfig({ - -}) \ No newline at end of file diff --git a/app/app.config.ts b/app/app.config.ts new file mode 100644 index 0000000..798023e --- /dev/null +++ b/app/app.config.ts @@ -0,0 +1,9 @@ +export default defineAppConfig({ + ui: { + colors: { + primary: 'blue', + secondary: 'purple', + neutral: 'zinc' + } + } +}) diff --git a/app/pages/index.vue b/app/pages/index.vue index 0910d86..e9f2985 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -104,7 +104,7 @@ const resources = [ MCP Protocol TypeScript @@ -135,7 +135,7 @@ const resources = [ v-for="feature in features" :key="feature.title" :ui="{ - body: 'p-6', + body: 'p-6' }" variant="subtle" > @@ -199,7 +199,7 @@ const resources = [ @@ -211,8 +211,9 @@ const resources = [

Configure your MCP client to connect to my server:

- +
                 
 {
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 0db262d..d09c021 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -3,10 +3,10 @@ export default defineNuxtConfig({
   modules: [
     '@nuxthub/core',
     '@nuxt/eslint',
+    '@nuxt/ui',
     '@nuxt/content',
     '@nuxtjs/mcp-toolkit',
-    'nuxt-studio',
-    '@nuxt/ui'
+    'nuxt-studio'
   ],
 
   devtools: {
@@ -15,6 +15,21 @@ export default defineNuxtConfig({
 
   css: ['~/assets/css/main.css'],
 
+  ui: {
+    theme: {
+      colors: [
+        'primary',
+        'secondary',
+        'tertiary',
+        'info',
+        'success',
+        'warning',
+        'error',
+        'blue'
+      ]
+    }
+  },
+
   runtimeConfig: {
     discord: {
       userId: '',
diff --git a/worker-configuration.d.ts b/worker-configuration.d.ts
index 0eb85bd..d4f91af 100644
--- a/worker-configuration.d.ts
+++ b/worker-configuration.d.ts
@@ -8610,7 +8610,7 @@ type AIGatewayHeaders = {
     [key: string]: string | number | boolean | object;
 };
 type AIGatewayUniversalRequest = {
-    provider: AIGatewayProviders | string; // eslint-disable-line
+    provider: AIGatewayProviders | string;  
     endpoint: string;
     headers: Partial;
     query: unknown;
@@ -8626,7 +8626,7 @@ declare abstract class AiGateway {
         gateway?: UniversalGatewayOptions;
         extraHeaders?: object;
     }): Promise;
-    getUrl(provider?: AIGatewayProviders | string): Promise; // eslint-disable-line
+    getUrl(provider?: AIGatewayProviders | string): Promise;  
 }
 interface AutoRAGInternalError extends Error {
 }