add deploy command in npm and css align person details
This commit is contained in:
@@ -25,7 +25,8 @@
|
|||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject"
|
"eject": "react-scripts eject",
|
||||||
|
"deploy": "npm run build && firebase deploy"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": [
|
"extends": [
|
||||||
|
|||||||
@@ -50,10 +50,10 @@ class AbsorbanceGraph extends Component {
|
|||||||
})
|
})
|
||||||
.then(response => response.data.text())
|
.then(response => response.data.text())
|
||||||
.then((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 = {
|
const options = {
|
||||||
windowSize: 23,
|
windowSize: 65,
|
||||||
derivative: 0,
|
derivative: 0,
|
||||||
polynomial: 3,
|
polynomial: 3,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.day-dropdown {
|
.day-dropdown {
|
||||||
width: 15vw;
|
width: 20vw;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
@@ -23,9 +23,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.person-details {
|
.person-details {
|
||||||
margin: 15px;
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
/* display: flex; */
|
||||||
|
padding: 15px;
|
||||||
|
margin: 15px 0 10px 0;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: larger;
|
font-size: larger;
|
||||||
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.graph-person-conatiner {
|
.graph-person-conatiner {
|
||||||
|
|||||||
@@ -3,30 +3,30 @@ import { getFirestore, collection, getDocs, doc, onSnapshot, query } from "fireb
|
|||||||
import { initializeApp } from "firebase/app";
|
import { initializeApp } from "firebase/app";
|
||||||
import { getAnalytics } from "firebase/analytics";
|
import { getAnalytics } from "firebase/analytics";
|
||||||
|
|
||||||
// /* dev and test */
|
/* 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 = {
|
const firebaseConfig = {
|
||||||
apiKey: "AIzaSyBF4pLZReAedU4dWX1eRJNFNIaOIz2xk4s",
|
apiKey: "AIzaSyBFl_YkJ5PMIvMY3G70313SyrqemjFnUv8",
|
||||||
authDomain: "hpos-prod.firebaseapp.com",
|
authDomain: "hpos-af3cc.firebaseapp.com",
|
||||||
projectId: "hpos-prod",
|
projectId: "hpos-af3cc",
|
||||||
storageBucket: "hpos-prod.appspot.com",
|
storageBucket: "hpos-af3cc.appspot.com",
|
||||||
messagingSenderId: "1012719870714",
|
messagingSenderId: "650071678820",
|
||||||
appId: "1:1012719870714:web:fcd00acef93f6612de5f43",
|
appId: "1:650071678820:web:ce50538bf46632d46c6471",
|
||||||
measurementId: "G-B0NZ7DEF69"
|
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);
|
const app = initializeApp(firebaseConfig);
|
||||||
const analytics = getAnalytics(app);
|
const analytics = getAnalytics(app);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user