-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(coronamap): implements coronamap
- Loading branch information
Showing
14 changed files
with
23,595 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# dotenv environment variable files | ||
.env* | ||
|
||
# gatsby files | ||
.cache/ | ||
public | ||
|
||
# Mac files | ||
.DS_Store | ||
|
||
# Yarn | ||
yarn-error.log | ||
.pnp/ | ||
.pnp.js | ||
# Yarn Integrity file | ||
.yarn-integrity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## 🇿🇦 Coronavirus Map | ||
|
||
Thanks to the [Data Science for Social Impact](https://dsfsi.github.io/) group for collecting the data powering [coronamap](https://coronamap.co.za) and for making it publicly available via their [covid19za](https://github.com/dsfsi/covid19za) repository. | ||
|
||
# Installation | ||
|
||
npm install | ||
npm run start | ||
|
||
You may need to install gatsby-cli globally: | ||
|
||
npm install -g gatsby-cli | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
module.exports = { | ||
siteMetadata: { | ||
title: `coronamap`, | ||
description: `Provincial Coronavirus Distribution Map of South Africa`, | ||
author: `@JayWelsh`, | ||
}, | ||
plugins: [ | ||
`gatsby-plugin-react-helmet`, | ||
{ | ||
resolve: `gatsby-source-filesystem`, | ||
options: { | ||
name: `images`, | ||
path: `${__dirname}/src/images`, | ||
}, | ||
}, | ||
`gatsby-transformer-sharp`, | ||
`gatsby-plugin-sharp`, | ||
{ | ||
resolve: `gatsby-plugin-manifest`, | ||
options: { | ||
name: `coronamap`, | ||
short_name: `coronamap`, | ||
start_url: `/`, | ||
background_color: `#232323`, | ||
theme_color: `#0c0715`, | ||
display: `standalone`, | ||
icon: `src/images/favicon.png`, // This path is relative to the root of the site. | ||
}, | ||
}, | ||
{ | ||
resolve: `gatsby-plugin-s3`, | ||
options: { | ||
bucketName: "coronamap.co.za", | ||
}, | ||
}, | ||
// this (optional) plugin enables Progressive Web App + Offline functionality | ||
// To learn more, visit: https://gatsby.dev/offline | ||
// `gatsby-plugin-offline`, | ||
{ | ||
resolve: `gatsby-plugin-offline`, | ||
options: { | ||
precachePages: [`/*`], | ||
}, | ||
}, | ||
{ | ||
resolve: 'gatsby-plugin-react-leaflet', | ||
options: { | ||
linkStyles: true // (default: true) Enable/disable loading stylesheets via CDN | ||
} | ||
} | ||
], | ||
} |
Oops, something went wrong.