diff --git a/package-lock.json b/package-lock.json index 94fc2ef..2c7cb3e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,8 @@ "autoprefixer": "^10.4.20", "postcss": "^8.4.41", "tailwindcss": "^3.4.10", - "vite": "^5.3.1" + "vite": "^5.3.1", + "vite-plugin-remove-console": "^2.2.0" } }, "node_modules/@alloc/quick-lru": { @@ -1967,6 +1968,13 @@ } } }, + "node_modules/vite-plugin-remove-console": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/vite-plugin-remove-console/-/vite-plugin-remove-console-2.2.0.tgz", + "integrity": "sha512-qgjh5pz75MdE9Kzs8J0kBwaCfifHV0ezRbB9rpGsIOxam+ilcGV7WOk91vFJXquzRmiKrFh3Hxlh0JJWAmXTbQ==", + "dev": true, + "license": "MIT" + }, "node_modules/vite/node_modules/@esbuild/aix-ppc64": { "version": "0.21.5", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", diff --git a/package.json b/package.json index 2377fdb..a15385b 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "autoprefixer": "^10.4.20", "postcss": "^8.4.41", "tailwindcss": "^3.4.10", - "vite": "^5.3.1" + "vite": "^5.3.1", + "vite-plugin-remove-console": "^2.2.0" } } diff --git a/src/views/LoginView.vue b/src/views/LoginView.vue index aaa8b1b..e490da5 100644 --- a/src/views/LoginView.vue +++ b/src/views/LoginView.vue @@ -42,7 +42,10 @@ Olvidó la contraseña? @@ -65,7 +68,7 @@ - + Recuperar contraseña @@ -85,7 +88,7 @@ - + Decline @@ -94,6 +97,30 @@ + + + + Error + + Parametros incorrectos + + + + + Aviso + + Correo enviado + + + + + Aviso + + No es un correo válido + \ No newline at end of file + diff --git a/vite.config.js b/vite.config.js index 5c45e1d..6c874de 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,16 +1,18 @@ -import { fileURLToPath, URL } from 'node:url' +import { fileURLToPath, URL } from "node:url"; -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' +import { defineConfig } from "vite"; +import vue from "@vitejs/plugin-vue"; +import removeConsole from "vite-plugin-remove-console"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - vue(), - ], + plugins: [vue(), removeConsole()], resolve: { alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) + "@": fileURLToPath(new URL("./src", import.meta.url)), + }, + }, + esbuild: { // disable logs in production? + drop: ["console", "debugger"], + }, +});