From 290e1694efacc8bfea62b78538cb9d40003f62f6 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Tue, 12 Apr 2022 17:44:20 -0400 Subject: add mark for removal of mask mandate --- .tool-versions | 1 + Dockerfile | 2 +- package.json | 1 + pnpm-lock.yaml | 7 +++++++ src/History.js | 7 +++++++ 5 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .tool-versions diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..96d1ba4 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 12.17.0 diff --git a/Dockerfile b/Dockerfile index c2eea5a..79f34ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,5 +5,5 @@ RUN yarn COPY . ./ RUN yarn build -FROM cr.galenguyer.com/nginx/spa:latest +FROM cr.galenguyer.com/nginx:spa COPY --from=build-deps /usr/src/app/build /usr/share/nginx/html/ diff --git a/package.json b/package.json index 1f3543e..e5cdd58 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "prettier": "^2.1.2", "react": "^17.0.1", "react-dom": "^17.0.1", + "react-refresh": "^0.12.0", "react-router-dom": "^5.2.0", "react-scripts": "4.0.0", "recharts": "^1.8.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ccc55f1..c88f31c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,6 +12,7 @@ specifiers: prettier: ^2.1.2 react: ^17.0.1 react-dom: ^17.0.1 + react-refresh: ^0.12.0 react-router-dom: ^5.2.0 react-scripts: 4.0.0 recharts: ^1.8.5 @@ -30,6 +31,7 @@ dependencies: prettier: 2.4.1 react: 17.0.2 react-dom: 17.0.2_react@17.0.2 + react-refresh: 0.12.0 react-router-dom: 5.3.0_react@17.0.2 react-scripts: 4.0.0 recharts: 1.8.5_react-dom@17.0.2+react@17.0.2 @@ -9787,6 +9789,11 @@ packages: resolution: {integrity: sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==} dev: false + /react-refresh/0.12.0: + resolution: {integrity: sha512-suLIhrU2IHKL5JEKR/fAwJv7bbeq4kJ+pJopf77jHwuR+HmJS/HbrPIGsTBUVfw7tXPOmYv7UJ7PCaN49e8x4A==} + engines: {node: '>=0.10.0'} + dev: false + /react-refresh/0.8.3: resolution: {integrity: sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==} engines: {node: '>=0.10.0'} diff --git a/src/History.js b/src/History.js index 7425b61..58085ac 100644 --- a/src/History.js +++ b/src/History.js @@ -9,6 +9,7 @@ import { XAxis, YAxis, Tooltip, + ReferenceLine, ResponsiveContainer, Label, } from "recharts"; @@ -23,6 +24,10 @@ const History = (props) => { }; }); + if (process.env.NODE_ENV == "development") { + console.log(data); + } + return ( <>

{props.name}

@@ -34,6 +39,8 @@ const History = (props) => { data={data} > + {/* */} +