diff --git a/package-lock.json b/package-lock.json index d565be3..e8f1261 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "d3-selection": "^3.0.0", "firebase": "^9.23.0", "lodash": "^4.17.21", + "ml-savitzky-golay-generalized": "^4.0.1", "moment": "^2.29.4", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -6756,6 +6757,11 @@ "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.2.2.tgz", "integrity": "sha512-HBiYvXvn9Z70Z88XKjz3AEKd4HJhBXsa3j7xFnITAzoS8+q6eIGi8qDB8FKPBAjtuxjI/zFpwuiCb8oDtKOYrA==" }, + "node_modules/cheminfo-types": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/cheminfo-types/-/cheminfo-types-1.7.2.tgz", + "integrity": "sha512-Zz7HPnh6wB2beEK7nfsXlNSK1Tpl4O0DpYUod8L6gI/5+INpn/d5UgJLI+3ck6CYY5Qsq34ylyKhERmZ5Wks2A==" + }, "node_modules/chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", @@ -10563,6 +10569,11 @@ "node": ">= 10" } }, + "node_modules/is-any-array": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-any-array/-/is-any-array-2.0.1.tgz", + "integrity": "sha512-UtilS7hLRu++wb/WBAw9bNuP1Eg04Ivn1vERJck8zJthEvXCBEBpGR/33u/xLKWEQf95803oalHrVDptcAvFdQ==" + }, "node_modules/is-arguments": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", @@ -13596,6 +13607,15 @@ "mkdirp": "bin/cmd.js" } }, + "node_modules/ml-savitzky-golay-generalized": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/ml-savitzky-golay-generalized/-/ml-savitzky-golay-generalized-4.0.1.tgz", + "integrity": "sha512-I3z6aEj9f+VaqoqWoTmyXOsIngOCW2JtpcZfoeqnLFFFuIyK4uXOEIRVft3XgQbbtivIvTBJKHpfxyN8sgB5vA==", + "dependencies": { + "cheminfo-types": "^1.0.0", + "is-any-array": "^2.0.0" + } + }, "node_modules/moment": { "version": "2.29.4", "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", @@ -23765,6 +23785,11 @@ "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.2.2.tgz", "integrity": "sha512-HBiYvXvn9Z70Z88XKjz3AEKd4HJhBXsa3j7xFnITAzoS8+q6eIGi8qDB8FKPBAjtuxjI/zFpwuiCb8oDtKOYrA==" }, + "cheminfo-types": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/cheminfo-types/-/cheminfo-types-1.7.2.tgz", + "integrity": "sha512-Zz7HPnh6wB2beEK7nfsXlNSK1Tpl4O0DpYUod8L6gI/5+INpn/d5UgJLI+3ck6CYY5Qsq34ylyKhERmZ5Wks2A==" + }, "chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", @@ -26526,6 +26551,11 @@ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz", "integrity": "sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==" }, + "is-any-array": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-any-array/-/is-any-array-2.0.1.tgz", + "integrity": "sha512-UtilS7hLRu++wb/WBAw9bNuP1Eg04Ivn1vERJck8zJthEvXCBEBpGR/33u/xLKWEQf95803oalHrVDptcAvFdQ==" + }, "is-arguments": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", @@ -28722,6 +28752,15 @@ "minimist": "^1.2.6" } }, + "ml-savitzky-golay-generalized": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/ml-savitzky-golay-generalized/-/ml-savitzky-golay-generalized-4.0.1.tgz", + "integrity": "sha512-I3z6aEj9f+VaqoqWoTmyXOsIngOCW2JtpcZfoeqnLFFFuIyK4uXOEIRVft3XgQbbtivIvTBJKHpfxyN8sgB5vA==", + "requires": { + "cheminfo-types": "^1.0.0", + "is-any-array": "^2.0.0" + } + }, "moment": { "version": "2.29.4", "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", diff --git a/package.json b/package.json index 3c1a27c..658bdb1 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "d3-selection": "^3.0.0", "firebase": "^9.23.0", "lodash": "^4.17.21", + "ml-savitzky-golay-generalized": "^4.0.1", "moment": "^2.29.4", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/src/App.css b/src/App.css index 4031636..fad4f40 100644 --- a/src/App.css +++ b/src/App.css @@ -285,6 +285,8 @@ body { } .cards-container { + height: 80vh; + justify-content: center; align-items: center; display: flex; flex-direction: column; @@ -350,6 +352,8 @@ body { } .cards-container { + height: 80vh; + justify-content: center; align-items: center; display: flex; flex-direction: column; diff --git a/src/App.js b/src/App.js index ab822aa..c005688 100644 --- a/src/App.js +++ b/src/App.js @@ -17,6 +17,7 @@ function App() { const [traits, setTraits] = useState(0); const [diseases, setDiseases] = useState(0); const [lastUpdate, setLastUpdate] = useState(moment()); + const [devMode, setDevMode] = useState(false); useEffect(() => { @@ -116,9 +117,12 @@ function App() { Updated at: {moment(lastUpdate).format("DD-MM-YYYY hh:mm:ss a")} -
ShanMukha