From ed2107086c741402b240e0de0c1607925143c304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20S=C3=A1nchez=20Pizarro?= Date: Wed, 21 Jan 2026 00:16:26 +0100 Subject: [PATCH] Refactor routing in App.vue and Login.vue to redirect to the home page instead of the dashboard. Remove unused Users.vue component to streamline the codebase. Update Dockerfile to adjust Nginx configuration for landing page deployment. --- web/dashboard/src/App.vue | 4 +- web/dashboard/src/views/Login.vue | 4 +- web/frontend/src/views/Users.vue | 706 ------------------------------ web/landing/Dockerfile | 3 + 4 files changed, 7 insertions(+), 710 deletions(-) delete mode 100644 web/frontend/src/views/Users.vue diff --git a/web/dashboard/src/App.vue b/web/dashboard/src/App.vue index 9dc02b0..594b340 100644 --- a/web/dashboard/src/App.vue +++ b/web/dashboard/src/App.vue @@ -9,7 +9,7 @@ >
- +
Admin Panel

- +
{ // Si ya está autenticado, redirigir al dashboard if (authService.hasCredentials()) { - router.push('/dashboard'); + router.push('/'); return; } diff --git a/web/frontend/src/views/Users.vue b/web/frontend/src/views/Users.vue deleted file mode 100644 index 2a9ccc4..0000000 --- a/web/frontend/src/views/Users.vue +++ /dev/null @@ -1,706 +0,0 @@ - - - - diff --git a/web/landing/Dockerfile b/web/landing/Dockerfile index 0099950..8d13b8b 100644 --- a/web/landing/Dockerfile +++ b/web/landing/Dockerfile @@ -20,6 +20,9 @@ FROM nginx:alpine # Copiar archivos construidos COPY --from=builder /app/dist /usr/share/nginx/html/landing +#change /usr/share/nginx/html to /usr/share/nginx/html/landing +RUN sed -i 's|/usr/share/nginx/html|/usr/share/nginx/html/landing|g' /etc/nginx/conf.d/default.conf + # Exponer puerto EXPOSE 80