├── .all-contributorsrc ├── .jshintrc ├── src ├── react-app-env.d.ts ├── assets │ ├── loading.gif │ ├── noresults.png │ └── profile_back.svg ├── index.css ├── components │ ├── Copyrights.jsx │ ├── Header.jsx │ ├── Logo.jsx │ ├── LoginButton.jsx │ ├── MainHOC.jsx │ ├── CookieDeclaration.jsx │ ├── SearchRoute.jsx │ ├── Map.jsx │ ├── Login.jsx │ └── Footer.jsx ├── setupTests.js ├── auth │ ├── protected-route.js │ └── auth0-provider-with-history.js ├── index.js ├── containers │ ├── Contact.jsx │ ├── Wrapper.jsx │ ├── Home.jsx │ ├── Profile.jsx │ ├── Search.jsx │ └── Nearby.jsx ├── utils │ └── useDeviceDetect.js ├── firebase │ ├── firebase-core.js │ ├── constants.js │ └── fireStore.js ├── __test__ │ ├── SearchRoute.test.js │ ├── Nearby.test.js │ ├── LoginButton.test.js │ ├── Profile.test.js │ └── Login.test.js ├── constants │ └── index.js ├── App.js ├── serviceWorker.js ├── App.css └── Grid.css ├── public ├── robots.txt ├── cookie-icon.png ├── cookie-icon96.png ├── main-nav-logo.png ├── humans.txt └── index.html ├── .dockerignore ├── .gitconfig ├── .whitesource ├── .babelrc ├── .deepsource.toml ├── docker-compose.yml ├── tsconfig.json ├── .env.example ├── .github ├── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md └── workflows │ ├── changelog.yml │ ├── csslint.yml │ └── node.js.yml ├── .gitpod.yml ├── startup.sh ├── Dockerfile ├── package.json ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── README.md └── LICENSE /.all-contributorsrc: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "esversion": 6, 3 | "browser": true 4 | } -------------------------------------------------------------------------------- /src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /public/cookie-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xcov19/mycovidconnect/HEAD/public/cookie-icon.png -------------------------------------------------------------------------------- /src/assets/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xcov19/mycovidconnect/HEAD/src/assets/loading.gif -------------------------------------------------------------------------------- /public/cookie-icon96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xcov19/mycovidconnect/HEAD/public/cookie-icon96.png -------------------------------------------------------------------------------- /public/main-nav-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xcov19/mycovidconnect/HEAD/public/main-nav-logo.png -------------------------------------------------------------------------------- /src/assets/noresults.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xcov19/mycovidconnect/HEAD/src/assets/noresults.png -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | build 4 | .dockerignore 5 | **/.git 6 | **/.DS_Store 7 | **/node_modules 8 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600&display=swap"); 2 | /* test comment */ 3 | -------------------------------------------------------------------------------- /.gitconfig: -------------------------------------------------------------------------------- 1 | git config --local merge.tool vcode 2 | git config --local mergetool.vcode.cmd 'code --wait $MERGED' 3 | git config --local diff.tool vcode 4 | git config --local difftool.vcode.cmd 'code --wait --diff $LOCAL $REMOTE' 5 | -------------------------------------------------------------------------------- /.whitesource: -------------------------------------------------------------------------------- 1 | { 2 | "scanSettings": { 3 | "baseBranches": [] 4 | }, 5 | "checkRunSettings": { 6 | "vulnerableCheckRunConclusionLevel": "failure" 7 | }, 8 | "issueSettings": { 9 | "minSeverityLevel": "LOW" 10 | } 11 | } -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "@babel/env", 4 | "@babel/preset-typescript" 5 | ], 6 | "plugins": [ 7 | "@babel/proposal-class-properties", 8 | "@babel/proposal-object-rest-spread" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /src/components/Copyrights.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const Copyrights = () => { 4 | return ( 5 |
6 |

Copyrights © 2020 Xcov19. All Rights Reserved

7 |
8 | ); 9 | }; 10 | 11 | export default Copyrights; 12 | -------------------------------------------------------------------------------- /.deepsource.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | 3 | [[analyzers]] 4 | name = "docker" 5 | enabled = true 6 | 7 | [[analyzers]] 8 | name = "javascript" 9 | enabled = true 10 | 11 | [analyzers.meta] 12 | plugins = ["react"] 13 | 14 | [[transformers]] 15 | name = "prettier" 16 | enabled = true 17 | 18 | [[transformers]] 19 | name = "standardjs" 20 | enabled = true 21 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3.8" 2 | 3 | services: 4 | client: 5 | image: codecakes/mycovidconnect_client_1:latest 6 | stdin_open: true 7 | build: 8 | context: . 9 | dockerfile: Dockerfile 10 | ports: 11 | - "0.0.0.0:9119:9119" 12 | volumes: 13 | - "./:/app" 14 | - "/app/node_modules" 15 | environment: 16 | - PORT=9119 17 | - CHOKIDAR_USEPOLLING="true" 18 | -------------------------------------------------------------------------------- /src/components/Header.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import Logo from "./Logo"; 3 | import Login from "./Login"; 4 | 5 | const Header = () => { 6 | return ( 7 |
8 |
9 | 10 |
11 | 12 |
13 |
14 |
15 | ); 16 | }; 17 | 18 | export default Header; 19 | -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import "@testing-library/jest-dom/extend-expect"; 6 | import { configure } from "enzyme"; 7 | import Adapter from "enzyme-adapter-react-16"; 8 | 9 | configure({ adapter: new Adapter() }); 10 | -------------------------------------------------------------------------------- /src/auth/protected-route.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { Route } from "react-router-dom"; 3 | import { withAuthenticationRequired } from "@auth0/auth0-react"; 4 | 5 | const ProtectedRoute = ({ component, ...args }) => ( 6 |
Loading
, 9 | })} 10 | {...args} 11 | /> 12 | ); 13 | 14 | export default ProtectedRoute; 15 | -------------------------------------------------------------------------------- /src/components/Logo.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { useHistory } from "react-router-dom"; 3 | 4 | const Logo = () => { 5 | const history = useHistory(); 6 | 7 | return ( 8 | { 10 | return history.push("/"); 11 | }} 12 | className="logo" 13 | alt="logo" 14 | src="https://d2vgampz89jm7o.cloudfront.net/XCOV19+Logo.png" 15 | /> 16 | ); 17 | }; 18 | 19 | export default Logo; 20 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | import App from "./App"; 4 | import * as serviceWorker from "./serviceWorker"; 5 | 6 | ReactDOM.render(, document.getElementById("root")); 7 | 8 | // If you want your app to work offline and load faster, you can change 9 | // unregister() to register() below. Note this comes with some pitfalls. 10 | // Learn more about service workers: https://bit.ly/CRA-PWA 11 | serviceWorker.unregister(); 12 | -------------------------------------------------------------------------------- /src/containers/Contact.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import MaindHOC from "../components/MainHOC"; 3 | 4 | const Contact = () => { 5 | return ( 6 |
7 |