├── LICENSE ├── README.md ├── package-lock.json ├── package.json ├── public ├── covid19delhi.png ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt └── src ├── app ├── App.js ├── App.scss ├── App.test.js ├── dashboard │ ├── Dashboard.js │ ├── chartConfirmed.js │ ├── chartDeath.js │ └── stateChart.js └── shared │ ├── Footer.js │ ├── Navbar.js │ └── Spinner.js ├── assets ├── images │ └── dashboard │ │ └── covid19delhi.png └── styles │ ├── _background.scss │ ├── _dashboard.scss │ ├── _demo.scss │ ├── _fonts.scss │ ├── _footer.scss │ ├── _functions.scss │ ├── _layout.scss │ ├── _misc.scss │ ├── _navbar.scss │ ├── _reset.scss │ ├── _responsive.scss │ ├── _spinner.scss │ ├── _typography.scss │ ├── _utilities.scss │ ├── _variables.scss │ ├── components │ └── _spinner.scss │ └── mixins │ ├── _animation.scss │ ├── _badges.scss │ ├── _blockqoute.scss │ ├── _buttons.scss │ ├── _cards.scss │ ├── _color-functions.scss │ ├── _misc.scss │ ├── _no-ui-slider.scss │ ├── _popovers.scss │ └── _tooltips.scss ├── index.js └── serviceWorker.js /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Gaurav Ghai 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 | 5 |

6 | View live website. 7 |

8 | 9 | ## Setup 10 | 11 | ``` 12 | npm i && npm start 13 | ``` 14 | 15 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "covid19delhi", 3 | "version": "0.1.0", 4 | "homepage": "https://www.covid19delhi.in/", 5 | "private": true, 6 | "dependencies": { 7 | "@mdi/font": "^4.5.95", 8 | "bootstrap": "^4.3.1", 9 | "bosket": "^0.2.3", 10 | "brace": "^0.11.1", 11 | "chart.js": "^2.8.0", 12 | "compass-mixins": "^0.12.10", 13 | "font-awesome": "^4.7.0", 14 | "namor": "^1.1.3", 15 | "node-sass": "^4.12.0", 16 | "react": "^16.9.0", 17 | "react-ace": "^7.0.4", 18 | "react-axios": "^2.0.3", 19 | "react-beautiful-dnd": "^11.0.5", 20 | "react-bootstrap": "^1.0.0-beta.12", 21 | "react-bootstrap-editable": "^0.5.1", 22 | "react-chartjs-2": "^2.8.0", 23 | "react-collapse": "^5.0.0", 24 | "react-datepicker": "^2.9.6", 25 | "react-dom": "^16.9.0", 26 | "react-quill": "^1.3.3", 27 | "react-router-dom": "^5.0.1", 28 | "react-scripts": "3.1.1", 29 | "react-select": "^3.0.8", 30 | "react-sparklines": "^1.7.0", 31 | "react-table": "^6.10.3" 32 | }, 33 | "scripts": { 34 | "start": "react-scripts start", 35 | "build": "react-scripts build", 36 | "test": "react-scripts test", 37 | "eject": "react-scripts eject" 38 | }, 39 | "eslintConfig": { 40 | "extends": "react-app" 41 | }, 42 | "browserslist": { 43 | "production": [ 44 | ">0.2%", 45 | "not dead", 46 | "not op_mini all" 47 | ], 48 | "development": [ 49 | "last 1 chrome version", 50 | "last 1 firefox version", 51 | "last 1 safari version" 52 | ] 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /public/covid19delhi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gauravghai/covid19DelhiAPI-Reactjs/b2d801a85bb11fdaf9cbf80b064c2081950f72d5/public/covid19delhi.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gauravghai/covid19DelhiAPI-Reactjs/b2d801a85bb11fdaf9cbf80b064c2081950f72d5/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | Covid19delhi - #DelhiFightsCrona 28 | 32 | 36 | 37 | 41 | 50 | 51 | 52 | 53 |
54 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gauravghai/covid19DelhiAPI-Reactjs/b2d801a85bb11fdaf9cbf80b064c2081950f72d5/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gauravghai/covid19DelhiAPI-Reactjs/b2d801a85bb11fdaf9cbf80b064c2081950f72d5/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | -------------------------------------------------------------------------------- /src/app/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component, Suspense, lazy } from "react"; 2 | import "./App.scss"; 3 | import Navbar from "./shared/Navbar"; 4 | import Footer from "./shared/Footer"; 5 | 6 | import Spinner from "../app/shared/Spinner"; 7 | 8 | const Dashboard = lazy(() => import("./dashboard/Dashboard")); 9 | 10 | class App extends Component { 11 | state = {}; 12 | render() { 13 | let navbarComponent = ; 14 | let footerComponent =