From 8bdcd94ee9dbd4229e0212569a6390876c668bd4 Mon Sep 17 00:00:00 2001 From: uo264915 Date: Sun, 28 Apr 2024 18:30:11 +0200 Subject: [PATCH 1/2] Warning eliminados --- webapp/src/components/HistoricalData.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/HistoricalData.js b/webapp/src/components/HistoricalData.js index 654b1deb..fc6eaaa3 100644 --- a/webapp/src/components/HistoricalData.js +++ b/webapp/src/components/HistoricalData.js @@ -1,6 +1,6 @@ import axios from 'axios'; import React, { useState, useEffect } from 'react'; -import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Container, TablePagination, Typography, Snackbar } from '@mui/material'; +import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Container, TablePagination, Typography } from '@mui/material'; import './HistoricalData.css'; import Navbar from './Navbar'; @@ -13,6 +13,7 @@ const HistoricalData = () => { useEffect(() => { handleShowHistory(); + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); // No es necesario deshabilitar eslint, ya que no hay dependencias externas const handleShowHistory = async () => { From d3d71344f42bd848e1f214a3f522ea896e1c30e5 Mon Sep 17 00:00:00 2001 From: baraganio Date: Sun, 28 Apr 2024 18:36:31 +0200 Subject: [PATCH 2/2] Arreglando security hotsposts de npm install --- gatewayservice/Dockerfile | 2 +- gatewayservice/gateway-service.js | 2 +- questions/creationservice/Dockerfile | 2 +- questions/retrieveservice/Dockerfile | 2 +- users/authservice/Dockerfile | 2 +- users/userservice/Dockerfile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gatewayservice/Dockerfile b/gatewayservice/Dockerfile index 6c340432..7c030c37 100644 --- a/gatewayservice/Dockerfile +++ b/gatewayservice/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/gatewayservice COPY package*.json ./ # Install app dependencies -RUN npm install +RUN npm install --ignore-scripts # Copy the app source code to the working directory COPY . . diff --git a/gatewayservice/gateway-service.js b/gatewayservice/gateway-service.js index 5f469303..30771bb7 100644 --- a/gatewayservice/gateway-service.js +++ b/gatewayservice/gateway-service.js @@ -9,7 +9,7 @@ const YAML = require('yaml') const app = express(); -app.disable('x-powerde-by'); +app.disable('x-powered-by'); const port = 8000; const originEndpoint = process.env.REACT_APP_API_ORIGIN_ENDPOINT || 'http://localhost:3000'; diff --git a/questions/creationservice/Dockerfile b/questions/creationservice/Dockerfile index af3648d2..8c20d4f8 100644 --- a/questions/creationservice/Dockerfile +++ b/questions/creationservice/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/creationservice COPY package*.json ./ # Install app dependencies -RUN npm install +RUN npm install --ignore-scripts # Copy the app source code to the working directory COPY . . diff --git a/questions/retrieveservice/Dockerfile b/questions/retrieveservice/Dockerfile index 838d0d31..426b235b 100644 --- a/questions/retrieveservice/Dockerfile +++ b/questions/retrieveservice/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/retrieveservice COPY package*.json ./ # Install app dependencies -RUN npm install +RUN npm install --ignore-scripts # Copy the app source code to the working directory COPY . . diff --git a/users/authservice/Dockerfile b/users/authservice/Dockerfile index 70648d70..af171fc5 100644 --- a/users/authservice/Dockerfile +++ b/users/authservice/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/authservice COPY package*.json ./ # Install app dependencies -RUN npm install +RUN npm install --ignore-scripts # Copy the app source code to the working directory COPY . . diff --git a/users/userservice/Dockerfile b/users/userservice/Dockerfile index f43e2df7..f54225c9 100644 --- a/users/userservice/Dockerfile +++ b/users/userservice/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/userservice COPY package*.json ./ # Install app dependencies -RUN npm install +RUN npm install --ignore-scripts # Copy the app source code to the working directory COPY . .