From bb8a3c6f839622f2beac6a772d43e2650224adaf Mon Sep 17 00:00:00 2001 From: Antonio Andre Date: Wed, 29 Apr 2026 23:00:18 -0500 Subject: [PATCH] chore: instala e configura toast com vue-sonner --- app/app.vue | 1 + nuxt.config.ts | 3 ++- package-lock.json | 38 +++++++++++++++++++++++++++++++------- package.json | 4 +++- 4 files changed, 37 insertions(+), 9 deletions(-) diff --git a/app/app.vue b/app/app.vue index f8eacfa..c95783c 100644 --- a/app/app.vue +++ b/app/app.vue @@ -2,4 +2,5 @@ + diff --git a/nuxt.config.ts b/nuxt.config.ts index 09f2889..1dcb75a 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -2,7 +2,7 @@ export default defineNuxtConfig({ compatibilityDate: '2025-07-15', devtools: { enabled: true }, - modules: ['@nuxtjs/tailwindcss', '@pinia/nuxt', '@prisma/nuxt', '@vee-validate/nuxt'], + modules: ['@nuxtjs/tailwindcss', '@pinia/nuxt', '@prisma/nuxt', '@vee-validate/nuxt', 'vue-sonner/nuxt'], runtimeConfig: { databaseUrl: process.env.DATABASE_URL, jwtIssuer: process.env.JWT_ISSUER ?? 'https://auth.local', @@ -24,6 +24,7 @@ export default defineNuxtConfig({ '@prisma/nuxt > @prisma/client', 'zod', '@vee-validate/zod', + 'vue-sonner', ] } } diff --git a/package-lock.json b/package-lock.json index 827c733..e40f033 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,10 +15,12 @@ "@vee-validate/zod": "^4.15.1", "jose": "^6.2.2", "nuxt": "^4.4.2", + "pinia": "^3.0.4", "prisma": "^6.16.2", "vue": "^3.5.32", "vue-router": "^5.0.4", - "zod": "^4.4.1" + "vue-sonner": "^2.0.9", + "zod": "^3.25.76" }, "devDependencies": { "@types/node": "^25.6.0", @@ -11172,9 +11174,9 @@ "license": "MIT" }, "node_modules/typescript": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.2.tgz", - "integrity": "sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "license": "Apache-2.0", "peer": true, "bin": { @@ -12112,6 +12114,28 @@ } } }, + "node_modules/vue-sonner": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/vue-sonner/-/vue-sonner-2.0.9.tgz", + "integrity": "sha512-i6BokNlNDL93fpzNxN/LZSn6D6MzlO+i3qXt6iVZne3x1k7R46d5HlFB4P8tYydhgqOrRbIZEsnRd3kG7qGXyw==", + "license": "MIT", + "peerDependencies": { + "@nuxt/kit": "^4.0.3", + "@nuxt/schema": "^4.0.3", + "nuxt": "^4.0.3" + }, + "peerDependenciesMeta": { + "@nuxt/kit": { + "optional": true + }, + "@nuxt/schema": { + "optional": true + }, + "nuxt": { + "optional": true + } + } + }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -12393,9 +12417,9 @@ } }, "node_modules/zod": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.1.tgz", - "integrity": "sha512-a6ENMBBGZBsnlSebQ/eKCguSBeGKSf4O7BPnqVPmYGtpBYI7VSqoVqw+QcB7kPRjbqPwhYTpFbVj/RqNz/CT0Q==", + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "license": "MIT", "peer": true, "funding": { diff --git a/package.json b/package.json index 97ab820..8a1389b 100644 --- a/package.json +++ b/package.json @@ -27,10 +27,12 @@ "@vee-validate/zod": "^4.15.1", "jose": "^6.2.2", "nuxt": "^4.4.2", + "pinia": "^3.0.4", "prisma": "^6.16.2", "vue": "^3.5.32", "vue-router": "^5.0.4", - "zod": "^4.4.1" + "vue-sonner": "^2.0.9", + "zod": "^3.25.76" }, "devDependencies": { "@types/node": "^25.6.0",