feat: réorganiser la configuration de l'application et améliorer les types dans nuxt.config.ts

This commit is contained in:
2025-12-17 09:57:42 +01:00
parent 803d8a169d
commit fe542c95d3
5 changed files with 34 additions and 12 deletions

View File

@@ -1,3 +0,0 @@
export default defineAppConfig({
})

9
app/app.config.ts Normal file
View File

@@ -0,0 +1,9 @@
export default defineAppConfig({
ui: {
colors: {
primary: 'blue',
secondary: 'purple',
neutral: 'zinc'
}
}
})

View File

@@ -104,7 +104,7 @@ const resources = [
MCP Protocol
</UBadge>
<UBadge
color="secondary"
color="primary"
variant="subtle"
>
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 = [
<UContainer class="py-16">
<UCard
:ui="{
body: 'p-8 sm:p-12',
body: 'p-8 sm:p-12'
}"
variant="outline"
>
@@ -211,8 +211,9 @@ const resources = [
<p class="text-gray-600 dark:text-gray-400 mb-4">
Configure your MCP client to connect to my server:
</p>
<UCard
variant="solid">
<UCard
variant="solid"
>
<pre class="text-sm text-gray-100 overflow-x-auto">
<code>
{

View File

@@ -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: '',

View File

@@ -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<AIGatewayHeaders>;
query: unknown;
@@ -8626,7 +8626,7 @@ declare abstract class AiGateway {
gateway?: UniversalGatewayOptions;
extraHeaders?: object;
}): Promise<Response>;
getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
getUrl(provider?: AIGatewayProviders | string): Promise<string>;
}
interface AutoRAGInternalError extends Error {
}