aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-04-12 17:44:20 -0400
committerGalen Guyer <galen@galenguyer.com>2022-04-12 17:44:20 -0400
commit290e1694efacc8bfea62b78538cb9d40003f62f6 (patch)
treeb78ec0f353c144920806e2307c4668329caf6237
parent257fb5d0479c835c72477afe966ae3c81a922c3c (diff)
add mark for removal of mask mandate
-rw-r--r--.tool-versions1
-rw-r--r--Dockerfile2
-rw-r--r--package.json1
-rw-r--r--pnpm-lock.yaml7
-rw-r--r--src/History.js7
5 files changed, 17 insertions, 1 deletions
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 (
<>
<h3 className="text-3xl">{props.name}</h3>
@@ -34,6 +39,8 @@ const History = (props) => {
data={data}
>
<Line type="monotone" dataKey="value" stroke="#CD8508" dot={false} />
+ {/* <ReferenceLine x={1644594525} label={{ value: "Visitor Policy adjusted", angle: -90, position: 'center' }} /> */}
+ <ReferenceLine x={1647550274} label={{ value: "Mask Mandate dropped", angle: -90, position: 'left' }} />
<CartesianGrid strokeDasharray="3 3" />
<XAxis
dataKey="date"