This commit is contained in:
Francesco Esposito 2020-03-14 23:45:30 +01:00
commit 0dacaf998b
20 changed files with 182 additions and 0 deletions

25
asset-manifest.json Normal file
View File

@ -0,0 +1,25 @@
{
"files": {
"main.css": "/covid19-campania/static/css/main.562c9271.chunk.css",
"main.js": "/covid19-campania/static/js/main.d7ddf31f.chunk.js",
"main.js.map": "/covid19-campania/static/js/main.d7ddf31f.chunk.js.map",
"runtime-main.js": "/covid19-campania/static/js/runtime-main.92308f37.js",
"runtime-main.js.map": "/covid19-campania/static/js/runtime-main.92308f37.js.map",
"static/css/2.de424728.chunk.css": "/covid19-campania/static/css/2.de424728.chunk.css",
"static/js/2.29f21e72.chunk.js": "/covid19-campania/static/js/2.29f21e72.chunk.js",
"static/js/2.29f21e72.chunk.js.map": "/covid19-campania/static/js/2.29f21e72.chunk.js.map",
"index.html": "/covid19-campania/index.html",
"precache-manifest.cf0ccac65234b7a6a0e44de29d8fd914.js": "/covid19-campania/precache-manifest.cf0ccac65234b7a6a0e44de29d8fd914.js",
"service-worker.js": "/covid19-campania/service-worker.js",
"static/css/2.de424728.chunk.css.map": "/covid19-campania/static/css/2.de424728.chunk.css.map",
"static/css/main.562c9271.chunk.css.map": "/covid19-campania/static/css/main.562c9271.chunk.css.map",
"static/js/2.29f21e72.chunk.js.LICENSE.txt": "/covid19-campania/static/js/2.29f21e72.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.92308f37.js",
"static/css/2.de424728.chunk.css",
"static/js/2.29f21e72.chunk.js",
"static/css/main.562c9271.chunk.css",
"static/js/main.d7ddf31f.chunk.js"
]
}

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

1
index.html Normal file
View File

@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/covid19-campania/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/covid19-campania/logo192.png"/><link rel="manifest" href="/covid19-campania/manifest.json"/><title>covid19-campania</title><link href="/covid19-campania/static/css/2.de424728.chunk.css" rel="stylesheet"><link href="/covid19-campania/static/css/main.562c9271.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,u,i=r[0],c=r[1],l=r[2],f=0,s=[];f<i.length;f++)u=i[f],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(p&&p(r);s.length;)s.shift()();return a.push.apply(a,l||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={1:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="/covid19-campania/";var i=this["webpackJsonpcovid19-campania"]=this["webpackJsonpcovid19-campania"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var p=c;t()}([])</script><script src="/covid19-campania/static/js/2.29f21e72.chunk.js"></script><script src="/covid19-campania/static/js/main.d7ddf31f.chunk.js"></script></body></html>

BIN
logo192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
logo512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

25
manifest.json Normal file
View File

@ -0,0 +1,25 @@
{
"short_name": "covid19-campania",
"name": "covid19-campania",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}

View File

@ -0,0 +1,30 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "048bae6ec6447d247e91133de9b382a6",
"url": "/covid19-campania/index.html"
},
{
"revision": "c1b498bafc5fc155b72f",
"url": "/covid19-campania/static/css/2.de424728.chunk.css"
},
{
"revision": "af10d178fc1dd0e47e84",
"url": "/covid19-campania/static/css/main.562c9271.chunk.css"
},
{
"revision": "c1b498bafc5fc155b72f",
"url": "/covid19-campania/static/js/2.29f21e72.chunk.js"
},
{
"revision": "11a928b57aca5049fe950bf8bcde77c5",
"url": "/covid19-campania/static/js/2.29f21e72.chunk.js.LICENSE.txt"
},
{
"revision": "af10d178fc1dd0e47e84",
"url": "/covid19-campania/static/js/main.d7ddf31f.chunk.js"
},
{
"revision": "98feadb937f5b153d808",
"url": "/covid19-campania/static/js/runtime-main.92308f37.js"
}
]);

3
robots.txt Normal file
View File

@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:

39
service-worker.js Normal file
View File

@ -0,0 +1,39 @@
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"/covid19-campania/precache-manifest.cf0ccac65234b7a6a0e44de29d8fd914.js"
);
self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});
workbox.core.clientsClaim();
/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/covid19-campania/index.html"), {
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace}body{background-color:#242424;color:#fff}
/*# sourceMappingURL=main.562c9271.chunk.css.map */

View File

@ -0,0 +1 @@
{"version":3,"sources":["index.css","App.css"],"names":[],"mappings":"AAAA,KACE,QAAS,CACT,mJAEY,CACZ,kCAAmC,CACnC,iCACF,CAEA,KACE,yEAEF,CCZA,KACE,wBAAiC,CACjC,UACF","file":"main.562c9271.chunk.css","sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n","body {\n background-color: rgb(36, 36, 36);\n color: white\n}\n\n/*\n\n rgb(41, 41, 41); */"]}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,38 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/** @license React v0.19.0
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.13.0
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.13.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
(this["webpackJsonpcovid19-campania"]=this["webpackJsonpcovid19-campania"]||[]).push([[0],{40:function(e,a,t){e.exports=t(70)},45:function(e,a,t){},69:function(e,a,t){},70:function(e,a,t){"use strict";t.r(a);var n=t(0),l=t.n(n),r=t(13),o=t.n(r),i=(t(45),t(74)),c=t(75),m=t(72),s=t(76),u=t(77),E=function(){return l.a.createElement(s.a,{variant:"dark",expand:"lg"},l.a.createElement(s.a.Brand,null,"covid19-campania"),l.a.createElement(s.a.Toggle,{"aria-controls":"basic-navbar-nav"}),l.a.createElement(s.a.Collapse,{id:"basic-navbar-nav"},l.a.createElement(u.a,{className:"mr-auto"},l.a.createElement(u.a.Link,{href:"https://github.com/franjsco/covid19-campania"},"Informazioni sul progetto"))))},d=function(e){var a=e.children;return l.a.createElement("div",null,l.a.createElement(E,null),l.a.createElement(m.a,{style:{marginTop:"10px"}},a))},v=t(34),p=t(35),g=t(38),f=t(36),h=t(39),b=t(37),x=t.n(b),C=t(73),w=t(78),k=function(e){var a=e.title,t=e.bgColor,n=e.textColor,r=e.value;return l.a.createElement(C.a,null,l.a.createElement(w.a,{bg:t,text:n,className:"text-center"},l.a.createElement(w.a.Header,{as:"h6"},a),l.a.createElement(w.a.Body,null,l.a.createElement(w.a.Text,{as:"h1"},r))))};k.defaultProps={bgColor:"light",textColor:"white",value:"-"};var y=k,T=function(e){var a=e.dataAggiornamento;return l.a.createElement("div",null,l.a.createElement("span",{className:"font-weight-bold"},"Ultimo aggiornamento dati: "),a)};T.defaultProps={dataAggiornamento:"n.d."};var j=T,N=function(e){function a(e){var t;return Object(v.a)(this,a),(t=Object(g.a)(this,Object(f.a)(a).call(this,e))).state={},t}return Object(h.a)(a,e),Object(p.a)(a,[{key:"componentDidMount",value:function(){var e=this;x.a.get("https://openpuglia.org/api/?q=getdatapccovid-19&reg=campania").then((function(a){return e.setState(a.data[0])}))}},{key:"render",value:function(){var e=this.state,a={marginTop:"20px"};return l.a.createElement(m.a,null,l.a.createElement(i.a,{className:"text-center"},l.a.createElement(c.a,null,l.a.createElement(j,{dataAggiornamento:e.data}))),l.a.createElement(i.a,{style:a},l.a.createElement(c.a,{xs:12,sm:4},l.a.createElement(y,{bgColor:"warning",title:"Totale casi",value:e["totale casi"]})),l.a.createElement(c.a,{xs:12,sm:4},l.a.createElement(y,{bgColor:"danger",title:"Deceduti",value:e.deceduti})),l.a.createElement(c.a,{xs:12,sm:4},l.a.createElement(y,{bgColor:"success",title:"Guariti",value:e["dimessi guariti"]}))),l.a.createElement(i.a,{style:a},l.a.createElement(c.a,{xs:12,sm:4},l.a.createElement(y,{bgColor:"info",title:"Attualmente positivi",value:e["totale attualmente positivi"]})),l.a.createElement(c.a,{xs:12,sm:4},l.a.createElement(y,{bgColor:"info",title:"Nuovi attualmente positivi",value:e["nuovi attualmente positivi"]})),l.a.createElement(c.a,{xs:12,sm:4},l.a.createElement(y,{bgColor:"info",title:"Tamponi",value:e.tamponi}))),l.a.createElement(i.a,{style:a},l.a.createElement(c.a,{xs:12,sm:4},l.a.createElement(y,{textColor:"dark",title:"Totale ospedalizzati",value:e["totale ospedalizzati"]})),l.a.createElement(c.a,{xs:12,sm:4},l.a.createElement(y,{textColor:"dark",title:"Terapia intensiva",value:e["terapia intensiva"]})),l.a.createElement(c.a,{xs:12,sm:4},l.a.createElement(y,{textColor:"dark",title:"Isolamento domiciliare",value:e["isolamento domiciliare"]}))))}}]),a}(n.Component),z=function(){return l.a.createElement("div",null,l.a.createElement("span",null,"Creato da "),l.a.createElement("span",{className:"font-weight-bold"},"Francesco Esposito "),"(",l.a.createElement("a",{href:"https://franjsco.github.io/"},"@franjsco"),")")};t(68),t(69);var O=function(){return l.a.createElement(d,null,l.a.createElement(i.a,null,l.a.createElement(c.a,null,l.a.createElement(N,null))),l.a.createElement(i.a,{style:{marginTop:"10px"},className:"text-center"},l.a.createElement(c.a,null,l.a.createElement(z,null))))};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));o.a.render(l.a.createElement(O,null),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[40,1,2]]]);
//# sourceMappingURL=main.d7ddf31f.chunk.js.map

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
!function(e){function r(r){for(var n,u,i=r[0],c=r[1],l=r[2],f=0,s=[];f<i.length;f++)u=i[f],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(p&&p(r);s.length;)s.shift()();return a.push.apply(a,l||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={1:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="/covid19-campania/";var i=this["webpackJsonpcovid19-campania"]=this["webpackJsonpcovid19-campania"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var p=c;t()}([]);
//# sourceMappingURL=runtime-main.92308f37.js.map

File diff suppressed because one or more lines are too long