summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2022-01-12 14:48:30 +0530
committerSunil Shetye2022-01-13 13:38:27 +0530
commitca368b0e98b521dc74ba739e573ef36a72068ef1 (patch)
treeeb0b21b20ab783f7e28f3c18d41e84bbcaeb0fe8
parentdd766808062d8fb86e3767ca47c3022cc5af503a (diff)
downloadCommon-Interface-Project-ca368b0e98b521dc74ba739e573ef36a72068ef1.tar.gz
Common-Interface-Project-ca368b0e98b521dc74ba739e573ef36a72068ef1.tar.bz2
Common-Interface-Project-ca368b0e98b521dc74ba739e573ef36a72068ef1.zip
use @babel/eslint-parser instead of babel-eslint
-rw-r--r--blocks/eda-frontend/.eslintrc.json4
-rw-r--r--blocks/eda-frontend/package-lock.json340
-rw-r--r--blocks/eda-frontend/package.json4
-rw-r--r--blocks/eda-frontend/src/App.js6
-rw-r--r--blocks/eda-frontend/src/components/Dashboard/DashboardHome.js1
-rw-r--r--blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js4
-rw-r--r--blocks/eda-frontend/src/components/Dashboard/SchematicsList.js4
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/ComponentProperties.js4
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/RightSidebar.js1
-rw-r--r--blocks/eda-frontend/src/components/Shared/Graph2.js8
-rw-r--r--blocks/eda-frontend/src/components/Shared/LayoutMain.js1
-rw-r--r--blocks/eda-frontend/src/components/Shared/LayoutSidebar.js1
-rw-r--r--blocks/eda-frontend/src/components/Simulator/Editor.js1
-rw-r--r--blocks/eda-frontend/src/index.js1
-rw-r--r--blocks/eda-frontend/src/pages/Dashboard.js4
-rw-r--r--blocks/eda-frontend/src/pages/Gallery.js4
-rw-r--r--blocks/eda-frontend/src/pages/Home.js4
-rw-r--r--blocks/eda-frontend/src/pages/Login.js4
-rw-r--r--blocks/eda-frontend/src/pages/NotFound.js4
-rw-r--r--blocks/eda-frontend/src/pages/signUp.js4
-rw-r--r--blocks/simulationAPI/views.py2
21 files changed, 329 insertions, 77 deletions
diff --git a/blocks/eda-frontend/.eslintrc.json b/blocks/eda-frontend/.eslintrc.json
index 06d9b2e2..94e63641 100644
--- a/blocks/eda-frontend/.eslintrc.json
+++ b/blocks/eda-frontend/.eslintrc.json
@@ -7,8 +7,7 @@
},
"extends": [
"plugin:react/recommended",
- "standard",
- "plugin:react/jsx-runtime"
+ "standard"
],
"globals": {
"Atomics": "readonly",
@@ -30,6 +29,7 @@
"rules": {
"new-cap": "warn",
"no-new": "warn",
+ "no-unused-vars": "warn",
"react/prop-types": "warn"
},
"settings": {
diff --git a/blocks/eda-frontend/package-lock.json b/blocks/eda-frontend/package-lock.json
index c041721b..f68d1322 100644
--- a/blocks/eda-frontend/package-lock.json
+++ b/blocks/eda-frontend/package-lock.json
@@ -57,7 +57,8 @@
"eslint-plugin-react": "^7.28.0",
"react-dev-utils": "^12.0.0",
"react-scripts": "^5.0.0",
- "react-test-renderer": "^16.13.1"
+ "react-test-renderer": "^16.13.1",
+ "source-map-explorer": "^2.5.2"
}
},
"node_modules/@babel/code-frame": {
@@ -5810,6 +5811,18 @@
"node-int64": "^0.4.0"
}
},
+ "node_modules/btoa": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz",
+ "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==",
+ "dev": true,
+ "bin": {
+ "btoa": "bin/btoa.js"
+ },
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
"node_modules/buffer-from": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
@@ -8186,9 +8199,6 @@
"dependencies": {
"type-fest": "^0.20.2"
},
- "engines": {
- "node": ">=8"
- },
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
@@ -10404,6 +10414,17 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/is-wsl": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
+ "dependencies": {
+ "is-docker": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/isarray": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
@@ -14727,17 +14748,6 @@
"which": "^2.0.2"
}
},
- "node_modules/node-notifier/node_modules/is-wsl": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
- "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
- "dependencies": {
- "is-docker": "^2.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/node-notifier/node_modules/semver": {
"version": "7.3.5",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",
@@ -15041,18 +15051,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/open/node_modules/is-wsl": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
- "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
- "dev": true,
- "dependencies": {
- "is-docker": "^2.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/optionator": {
"version": "0.8.3",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz",
@@ -18834,6 +18832,128 @@
"node": ">=0.10.0"
}
},
+ "node_modules/source-map-explorer": {
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/source-map-explorer/-/source-map-explorer-2.5.2.tgz",
+ "integrity": "sha512-gBwOyCcHPHcdLbgw6Y6kgoH1uLKL6hN3zz0xJcNI2lpnElZliIlmSYAjUVwAWnc7+HscoTyh1ScR7ITtFuEnxg==",
+ "dev": true,
+ "dependencies": {
+ "btoa": "^1.2.1",
+ "chalk": "^4.1.0",
+ "convert-source-map": "^1.7.0",
+ "ejs": "^3.1.5",
+ "escape-html": "^1.0.3",
+ "glob": "^7.1.6",
+ "gzip-size": "^6.0.0",
+ "lodash": "^4.17.20",
+ "open": "^7.3.1",
+ "source-map": "^0.7.3",
+ "temp": "^0.9.4",
+ "yargs": "^16.2.0"
+ },
+ "bin": {
+ "sme": "bin/cli.js",
+ "source-map-explorer": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/source-map-explorer/node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/source-map-explorer/node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/source-map-explorer/node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/source-map-explorer/node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "node_modules/source-map-explorer/node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/source-map-explorer/node_modules/open": {
+ "version": "7.4.2",
+ "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz",
+ "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==",
+ "dev": true,
+ "dependencies": {
+ "is-docker": "^2.0.0",
+ "is-wsl": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/source-map-explorer/node_modules/source-map": {
+ "version": "0.7.3",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz",
+ "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==",
+ "dev": true,
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/source-map-explorer/node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/source-map-js": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.1.tgz",
@@ -19566,6 +19686,19 @@
"node": ">=6"
}
},
+ "node_modules/temp": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz",
+ "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==",
+ "dev": true,
+ "dependencies": {
+ "mkdirp": "^0.5.1",
+ "rimraf": "~2.6.2"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
"node_modules/temp-dir": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz",
@@ -19575,6 +19708,18 @@
"node": ">=8"
}
},
+ "node_modules/temp/node_modules/rimraf": {
+ "version": "2.6.3",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
+ "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
+ "dev": true,
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ }
+ },
"node_modules/tempy": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/tempy/-/tempy-0.6.0.tgz",
@@ -25585,6 +25730,12 @@
"node-int64": "^0.4.0"
}
},
+ "btoa": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz",
+ "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==",
+ "dev": true
+ },
"buffer-from": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
@@ -29049,6 +29200,14 @@
"call-bind": "^1.0.2"
}
},
+ "is-wsl": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
+ "requires": {
+ "is-docker": "^2.0.0"
+ }
+ },
"isarray": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
@@ -32444,14 +32603,6 @@
"which": "^2.0.2"
},
"dependencies": {
- "is-wsl": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
- "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
- "requires": {
- "is-docker": "^2.0.0"
- }
- },
"semver": {
"version": "7.3.5",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",
@@ -32659,17 +32810,6 @@
"define-lazy-prop": "^2.0.0",
"is-docker": "^2.1.1",
"is-wsl": "^2.2.0"
- },
- "dependencies": {
- "is-wsl": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
- "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
- "dev": true,
- "requires": {
- "is-docker": "^2.0.0"
- }
- }
}
},
"optionator": {
@@ -35380,6 +35520,93 @@
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="
},
+ "source-map-explorer": {
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/source-map-explorer/-/source-map-explorer-2.5.2.tgz",
+ "integrity": "sha512-gBwOyCcHPHcdLbgw6Y6kgoH1uLKL6hN3zz0xJcNI2lpnElZliIlmSYAjUVwAWnc7+HscoTyh1ScR7ITtFuEnxg==",
+ "dev": true,
+ "requires": {
+ "btoa": "^1.2.1",
+ "chalk": "^4.1.0",
+ "convert-source-map": "^1.7.0",
+ "ejs": "^3.1.5",
+ "escape-html": "^1.0.3",
+ "glob": "^7.1.6",
+ "gzip-size": "^6.0.0",
+ "lodash": "^4.17.20",
+ "open": "^7.3.1",
+ "source-map": "^0.7.3",
+ "temp": "^0.9.4",
+ "yargs": "^16.2.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "requires": {
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "open": {
+ "version": "7.4.2",
+ "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz",
+ "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==",
+ "dev": true,
+ "requires": {
+ "is-docker": "^2.0.0",
+ "is-wsl": "^2.1.1"
+ }
+ },
+ "source-map": {
+ "version": "0.7.3",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz",
+ "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
"source-map-js": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.1.tgz",
@@ -35943,6 +36170,27 @@
"integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==",
"dev": true
},
+ "temp": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz",
+ "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==",
+ "dev": true,
+ "requires": {
+ "mkdirp": "^0.5.1",
+ "rimraf": "~2.6.2"
+ },
+ "dependencies": {
+ "rimraf": {
+ "version": "2.6.3",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
+ "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ }
+ }
+ },
"temp-dir": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz",
diff --git a/blocks/eda-frontend/package.json b/blocks/eda-frontend/package.json
index 92904fd7..4dd6e9a1 100644
--- a/blocks/eda-frontend/package.json
+++ b/blocks/eda-frontend/package.json
@@ -44,6 +44,7 @@
"xml-beautifier": "^0.4.3"
},
"scripts": {
+ "analyze": "source-map-explorer 'build/static/js/*.js' --only-mapped --html result.html",
"start": "BROWSER=none PORT=3500 react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
@@ -74,6 +75,7 @@
"eslint-plugin-react": "^7.28.0",
"react-dev-utils": "^12.0.0",
"react-scripts": "^5.0.0",
- "react-test-renderer": "^16.13.1"
+ "react-test-renderer": "^16.13.1",
+ "source-map-explorer": "^2.5.2"
}
}
diff --git a/blocks/eda-frontend/src/App.js b/blocks/eda-frontend/src/App.js
index 61d1046d..892b78c7 100644
--- a/blocks/eda-frontend/src/App.js
+++ b/blocks/eda-frontend/src/App.js
@@ -1,4 +1,4 @@
-import { useEffect } from 'react'
+import React from 'react'
import { HashRouter, Switch, Route, Redirect } from 'react-router-dom'
import CircularProgress from '@material-ui/core/CircularProgress'
@@ -22,7 +22,7 @@ function PrivateRoute ({ component: Component, ...rest }) {
const auth = useSelector(state => state.authReducer)
const dispatch = useDispatch()
- useEffect(() => dispatch(loadUser()), [dispatch])
+ React.useEffect(() => dispatch(loadUser()), [dispatch])
return (
<Route
@@ -44,7 +44,7 @@ function PublicRoute ({ component: Component, restricted, nav, ...rest }) {
const auth = useSelector(state => state.authReducer)
const dispatch = useDispatch()
- useEffect(() => dispatch(loadUser()), [dispatch])
+ React.useEffect(() => dispatch(loadUser()), [dispatch])
return (
<Route
diff --git a/blocks/eda-frontend/src/components/Dashboard/DashboardHome.js b/blocks/eda-frontend/src/components/Dashboard/DashboardHome.js
index 1b1bf483..d1e56c4e 100644
--- a/blocks/eda-frontend/src/components/Dashboard/DashboardHome.js
+++ b/blocks/eda-frontend/src/components/Dashboard/DashboardHome.js
@@ -1,3 +1,4 @@
+import React from 'react'
import {
Card,
Grid,
diff --git a/blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js b/blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js
index ec2d7add..157cc257 100644
--- a/blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js
+++ b/blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js
@@ -1,4 +1,4 @@
-import { useEffect } from 'react'
+import React from 'react'
import {
Hidden,
Divider,
@@ -54,7 +54,7 @@ export default function DashSidebar (props) {
const dispatch = useDispatch()
// For Fetching Saved Schematics
- useEffect(() => {
+ React.useEffect(() => {
dispatch(fetchSchematics())
}, [dispatch])
diff --git a/blocks/eda-frontend/src/components/Dashboard/SchematicsList.js b/blocks/eda-frontend/src/components/Dashboard/SchematicsList.js
index 6500c5b1..b88cfb5c 100644
--- a/blocks/eda-frontend/src/components/Dashboard/SchematicsList.js
+++ b/blocks/eda-frontend/src/components/Dashboard/SchematicsList.js
@@ -1,4 +1,4 @@
-import { useEffect } from 'react'
+import React from 'react'
import {
Card,
Grid,
@@ -68,7 +68,7 @@ export default function SchematicsList () {
const dispatch = useDispatch()
// For Fetching Saved Schematics
- useEffect(() => {
+ React.useEffect(() => {
dispatch(fetchSchematics())
}, [dispatch])
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/ComponentProperties.js b/blocks/eda-frontend/src/components/SchematicEditor/ComponentProperties.js
index fe029466..5771fb31 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/ComponentProperties.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/ComponentProperties.js
@@ -1,4 +1,4 @@
-import { useState, useEffect } from 'react'
+import React, { useState } from 'react'
import { useSelector, useDispatch } from 'react-redux'
import { setCompProperties } from '../../redux/actions/index'
import { ListItem, ListItemText, Button, TextField } from '@material-ui/core'
@@ -15,7 +15,7 @@ export default function ComponentProperties () {
const dispatch = useDispatch()
- useEffect(() => {
+ React.useEffect(() => {
setVal(parameterValues)
}, [parameterValues])
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/RightSidebar.js b/blocks/eda-frontend/src/components/SchematicEditor/RightSidebar.js
index fea06f10..4dfa0f69 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/RightSidebar.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/RightSidebar.js
@@ -1,3 +1,4 @@
+import React from 'react'
import PropTypes from 'prop-types'
import { Drawer, Hidden, IconButton } from '@material-ui/core'
import HighlightOffIcon from '@material-ui/icons/HighlightOff'
diff --git a/blocks/eda-frontend/src/components/Shared/Graph2.js b/blocks/eda-frontend/src/components/Shared/Graph2.js
index 4b9636bc..06c41042 100644
--- a/blocks/eda-frontend/src/components/Shared/Graph2.js
+++ b/blocks/eda-frontend/src/components/Shared/Graph2.js
@@ -1,20 +1,16 @@
-import { Component } from 'react'
+import React from 'react'
import Highcharts from 'highcharts'
import HighchartsReact from 'highcharts-react-official'
-import Chart from 'chart.js'
import 'chartjs-plugin-colorschemes'
import { Queue } from '../../utils/Queue'
-// Chart Style Options
-Chart.defaults.global.defaultFontColor = '#e6e6e6'
-
let statusDone = false
export function setStatusDone () {
statusDone = true
}
-class Graph2 extends Component {
+class Graph2 extends React.Component {
pointList = new Queue();
addPointToQueue = (id, point) => {
diff --git a/blocks/eda-frontend/src/components/Shared/LayoutMain.js b/blocks/eda-frontend/src/components/Shared/LayoutMain.js
index 5db03e97..59aee670 100644
--- a/blocks/eda-frontend/src/components/Shared/LayoutMain.js
+++ b/blocks/eda-frontend/src/components/Shared/LayoutMain.js
@@ -1,3 +1,4 @@
+import React from 'react'
import PropTypes from 'prop-types'
import { makeStyles } from '@material-ui/core/styles'
diff --git a/blocks/eda-frontend/src/components/Shared/LayoutSidebar.js b/blocks/eda-frontend/src/components/Shared/LayoutSidebar.js
index aaf94d19..0f2c3f9e 100644
--- a/blocks/eda-frontend/src/components/Shared/LayoutSidebar.js
+++ b/blocks/eda-frontend/src/components/Shared/LayoutSidebar.js
@@ -1,3 +1,4 @@
+import React from 'react'
import PropTypes from 'prop-types'
import { Drawer, Hidden, IconButton } from '@material-ui/core'
import HighlightOffIcon from '@material-ui/icons/HighlightOff'
diff --git a/blocks/eda-frontend/src/components/Simulator/Editor.js b/blocks/eda-frontend/src/components/Simulator/Editor.js
index 1d62ab42..b1c5fedc 100644
--- a/blocks/eda-frontend/src/components/Simulator/Editor.js
+++ b/blocks/eda-frontend/src/components/Simulator/Editor.js
@@ -1,3 +1,4 @@
+import React from 'react'
import AceEditor from 'react-ace'
import PropTypes from 'prop-types'
import 'brace/theme/monokai'
diff --git a/blocks/eda-frontend/src/index.js b/blocks/eda-frontend/src/index.js
index eeeb3940..fa81cbe9 100644
--- a/blocks/eda-frontend/src/index.js
+++ b/blocks/eda-frontend/src/index.js
@@ -1,4 +1,5 @@
// This is the JavaScript entry point of react application.
+import React from 'react'
import ReactDOM from 'react-dom'
import * as serviceWorker from './serviceWorker'
import CssBaseline from '@material-ui/core/CssBaseline'
diff --git a/blocks/eda-frontend/src/pages/Dashboard.js b/blocks/eda-frontend/src/pages/Dashboard.js
index 7f9eab72..f1c327ee 100644
--- a/blocks/eda-frontend/src/pages/Dashboard.js
+++ b/blocks/eda-frontend/src/pages/Dashboard.js
@@ -1,5 +1,5 @@
// Main Layout for user dashboard.
-import { useEffect } from 'react'
+import React from 'react'
import { Switch, Route } from 'react-router-dom'
import { CssBaseline } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
@@ -24,7 +24,7 @@ const useStyles = makeStyles((theme) => ({
export default function Dashboard () {
const classes = useStyles()
- useEffect(() => {
+ React.useEffect(() => {
document.title = 'Dashboard - ' + process.env.REACT_APP_NAME
})
diff --git a/blocks/eda-frontend/src/pages/Gallery.js b/blocks/eda-frontend/src/pages/Gallery.js
index 32b8307a..eb785b11 100644
--- a/blocks/eda-frontend/src/pages/Gallery.js
+++ b/blocks/eda-frontend/src/pages/Gallery.js
@@ -1,5 +1,5 @@
// Main layout for gallery page.
-import { useEffect } from 'react'
+import React from 'react'
import PropTypes from 'prop-types'
import {
Card,
@@ -47,7 +47,7 @@ const images = require.context('../static/gallery', true)
function SchematicCard ({ sch }) {
const classes = useStyles()
- useEffect(() => {
+ React.useEffect(() => {
document.title = 'Gallery - ' + process.env.REACT_APP_NAME
})
diff --git a/blocks/eda-frontend/src/pages/Home.js b/blocks/eda-frontend/src/pages/Home.js
index 89ec383a..31d286be 100644
--- a/blocks/eda-frontend/src/pages/Home.js
+++ b/blocks/eda-frontend/src/pages/Home.js
@@ -1,5 +1,5 @@
// Main layout for home page.
-import { useEffect } from 'react'
+import React from 'react'
import Button from '@material-ui/core/Button'
import Typography from '@material-ui/core/Typography'
@@ -17,7 +17,7 @@ const useStyles = makeStyles((theme) => ({
export default function Home () {
const classes = useStyles()
- useEffect(() => {
+ React.useEffect(() => {
document.title = process.env.REACT_APP_NAME
})
diff --git a/blocks/eda-frontend/src/pages/Login.js b/blocks/eda-frontend/src/pages/Login.js
index bbff61f5..8bbe901d 100644
--- a/blocks/eda-frontend/src/pages/Login.js
+++ b/blocks/eda-frontend/src/pages/Login.js
@@ -1,5 +1,5 @@
// User Login / Sign In page.
-import { useState, useEffect } from 'react'
+import React, { useState } from 'react'
import {
Container,
@@ -54,7 +54,7 @@ export default function SignIn (props) {
const dispatch = useDispatch()
const homeURL = `${window.location.protocol}\\\\${window.location.host}/`
- useEffect(() => {
+ React.useEffect(() => {
dispatch(authDefault())
document.title = 'Login - ' + process.env.REACT_APP_NAME
if (props.location.search !== '') {
diff --git a/blocks/eda-frontend/src/pages/NotFound.js b/blocks/eda-frontend/src/pages/NotFound.js
index 802d250a..2e1f4a68 100644
--- a/blocks/eda-frontend/src/pages/NotFound.js
+++ b/blocks/eda-frontend/src/pages/NotFound.js
@@ -1,5 +1,5 @@
// Page to display Page Not Found (i.e. 404) error.
-import { useEffect } from 'react'
+import React from 'react'
import { Container, Typography } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
@@ -13,7 +13,7 @@ const useStyles = makeStyles((theme) => ({
export default function NotFound () {
const classes = useStyles()
- useEffect(() => {
+ React.useEffect(() => {
document.title = 'Not Found - EDA '
})
diff --git a/blocks/eda-frontend/src/pages/signUp.js b/blocks/eda-frontend/src/pages/signUp.js
index 1d526256..0bb85365 100644
--- a/blocks/eda-frontend/src/pages/signUp.js
+++ b/blocks/eda-frontend/src/pages/signUp.js
@@ -1,5 +1,5 @@
// User Sign Up / Register page.
-import { useState, useEffect } from 'react'
+import React, { useState } from 'react'
import {
Container,
Grid,
@@ -52,7 +52,7 @@ export default function SignUp () {
const dispatch = useDispatch()
const homeURL = `${window.location.protocol}\\\\${window.location.host}/`
- useEffect(() => {
+ React.useEffect(() => {
dispatch(authDefault())
document.title = 'Sign Up - ' + process.env.REACT_APP_NAME
}, [dispatch])
diff --git a/blocks/simulationAPI/views.py b/blocks/simulationAPI/views.py
index 7113f70a..0b1afdf4 100644
--- a/blocks/simulationAPI/views.py
+++ b/blocks/simulationAPI/views.py
@@ -226,7 +226,7 @@ class StreamView(APIView):
lineno, line)
# if incomplete line, wait for the complete line
if state == NOLINE:
- gevent.sleep(LOOK_DELAY)
+ time.sleep(LOOK_DELAY)
continue
if not figure_list: