diff --git a/package.json b/package.json index 658bdb1..8bf87e0 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "deploy": "npm run build && firebase deploy" }, "eslintConfig": { "extends": [ diff --git a/src/components/AbsorbanceGraph.js b/src/components/AbsorbanceGraph.js index 94d4cbb..14b25e1 100644 --- a/src/components/AbsorbanceGraph.js +++ b/src/components/AbsorbanceGraph.js @@ -50,10 +50,10 @@ class AbsorbanceGraph extends Component { }) .then(response => response.data.text()) .then((text) => { - const testData = d3.csvParse(text.replaceAll('"', '')).filter(x => { if (x.NM > 390 && x.NM < 650) return x; });; + const testData = d3.csvParse(text.replaceAll('"', '')).filter(x => { if (x.NM > 350 && x.NM < 600) return x; });; const options = { - windowSize: 23, + windowSize: 65, derivative: 0, polynomial: 3, }; diff --git a/src/components/Devices.css b/src/components/Devices.css index d4cd92a..61270bb 100644 --- a/src/components/Devices.css +++ b/src/components/Devices.css @@ -5,7 +5,7 @@ } .day-dropdown { - width: 15vw; + width: 20vw; margin: 5px; font-weight: 600; } @@ -23,9 +23,14 @@ } .person-details { - margin: 15px; + justify-content: center; + align-items: center; + /* display: flex; */ + padding: 15px; + margin: 15px 0 10px 0; font-weight: 600; font-size: larger; + background-color: white; } .graph-person-conatiner { diff --git a/src/firebase.js b/src/firebase.js index aecdba5..4e44467 100644 --- a/src/firebase.js +++ b/src/firebase.js @@ -3,28 +3,28 @@ import { getFirestore, collection, getDocs, doc, onSnapshot, query } from "fireb import { initializeApp } from "firebase/app"; import { getAnalytics } from "firebase/analytics"; -// /* dev and test */ -// const firebaseConfig = { -// apiKey: "AIzaSyBFl_YkJ5PMIvMY3G70313SyrqemjFnUv8", -// authDomain: "hpos-af3cc.firebaseapp.com", -// projectId: "hpos-af3cc", -// storageBucket: "hpos-af3cc.appspot.com", -// messagingSenderId: "650071678820", -// appId: "1:650071678820:web:ce50538bf46632d46c6471", -// measurementId: "G-6JHQ47S9DD" -// }; - - - /* prod */ - const firebaseConfig = { - apiKey: "AIzaSyBF4pLZReAedU4dWX1eRJNFNIaOIz2xk4s", - authDomain: "hpos-prod.firebaseapp.com", - projectId: "hpos-prod", - storageBucket: "hpos-prod.appspot.com", - messagingSenderId: "1012719870714", - appId: "1:1012719870714:web:fcd00acef93f6612de5f43", - measurementId: "G-B0NZ7DEF69" +/* dev and test */ +const firebaseConfig = { + apiKey: "AIzaSyBFl_YkJ5PMIvMY3G70313SyrqemjFnUv8", + authDomain: "hpos-af3cc.firebaseapp.com", + projectId: "hpos-af3cc", + storageBucket: "hpos-af3cc.appspot.com", + messagingSenderId: "650071678820", + appId: "1:650071678820:web:ce50538bf46632d46c6471", + measurementId: "G-6JHQ47S9DD" }; + + + // /* prod */ + // const firebaseConfig = { + // apiKey: "AIzaSyBF4pLZReAedU4dWX1eRJNFNIaOIz2xk4s", + // authDomain: "hpos-prod.firebaseapp.com", + // projectId: "hpos-prod", + // storageBucket: "hpos-prod.appspot.com", + // messagingSenderId: "1012719870714", + // appId: "1:1012719870714:web:fcd00acef93f6612de5f43", + // measurementId: "G-B0NZ7DEF69" + // }; const app = initializeApp(firebaseConfig);