-
Notifications
You must be signed in to change notification settings - Fork 0
/
main-es5.js.map
1 lines (1 loc) · 31 KB
/
main-es5.js.map
1
{"version":3,"sources":["webpack:///$_lazy_route_resource lazy namespace object","webpack:///src/app/app-routing.module.ts","webpack:///src/app/app.component.ts","webpack:///src/app/app.component.html","webpack:///src/app/app.module.ts","webpack:///src/app/components/countries/countries.component.ts","webpack:///src/app/components/countries/countries.component.html","webpack:///src/app/components/dashboard-card/dashboard-card.component.ts","webpack:///src/app/components/dashboard-card/dashboard-card.component.html","webpack:///src/app/components/home/home.component.ts","webpack:///src/app/components/home/home.component.html","webpack:///src/app/components/navbar/navbar.component.ts","webpack:///src/app/components/navbar/navbar.component.html","webpack:///src/app/services/data-service.service.ts","webpack:///src/environments/environment.ts","webpack:///src/main.ts"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","module","exports","id","routes","path","component","AppRoutingModule","forRoot","imports","AppComponent","title","selector","templateUrl","styleUrls","AppModule","declarations","providers","bootstrap","CountriesComponent","service","countries","totalConfirmed","totalActive","totalDeaths","totalRecovered","loading","getDateWiseData","pipe","result","dateWiseData","getGlobalData","data","forEach","cs","push","country","subscribe","complete","updateValues","dataTable","selectedCountryData","date","cases","console","log","active","deaths","recovered","confirmed","updateChart","DashboardCardComponent","HomeComponent","dataService","datatable","chart","PieChart","ColumnChart","LineChart","height","options","animation","duration","easing","is3D","next","globalData","Number","isNaN","initChart","input","value","caseType","NavbarComponent","DataServiceService","http","globalDataUrl","dateWiseDataUrl","get","responseType","rows","split","mainData","header","dates","splice","row","cols","con","index","dw","Date","parse","raw","temp","Object","values","providedIn","environment","production","bootstrapModule","err","error"],"mappings":";;;;;;;;;;;;;;;;;AAAA,aAASA,wBAAT,CAAkCC,GAAlC,EAAuC;AACtC;AACA;AACA,aAAOC,OAAO,CAACC,OAAR,GAAkBC,IAAlB,CAAuB,YAAW;AACxC,YAAIC,CAAC,GAAG,IAAIC,KAAJ,CAAU,yBAAyBL,GAAzB,GAA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B;AAAA;;;AAAA;AAAA;AAAA,O,CAAA;AACA;AACA;;;AAEO,QAAMC,WAAW,GAAG;AACzBC,gBAAU,EAAE;AADa,KAApB;AAIP;;;;;;;AAOA;;;;;;;;;;;;;;;;;ACfA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;;AAMA,QAAI,sEAAYA,UAAhB,EAA4B;AAC1B;AACD;;AAED,gFAAyBC,eAAzB,CAAyC,yDAAzC,WACS,UAAAC,GAAG;AAAA,aAAIzD,OAAO,CAAC0D,KAAR,CAAcD,GAAd,CAAJ;AAAA,KADZ","file":"main-es5.js","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = \"./$$_lazy_route_resource lazy recursive\";","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\nimport { HomeComponent } from './components/home/home.component';\nimport { CountriesComponent } from './components/countries/countries.component';\n\n\nconst routes: Routes = [\n {path : '' , component : HomeComponent},\n {path : 'countries' , component :CountriesComponent } \n \n];\n\n@NgModule({\n imports: [RouterModule.forRoot(routes)],\n exports: [RouterModule]\n})\nexport class AppRoutingModule { }\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n title = 'covid19-tracker';\n}\n","<app-navbar></app-navbar>\n<router-outlet></router-outlet>","import { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppRoutingModule } from './app-routing.module';\nimport { AppComponent } from './app.component';\nimport { NavbarComponent } from './components/navbar/navbar.component';\nimport { HomeComponent } from './components/home/home.component';\nimport { CountriesComponent } from './components/countries/countries.component';\nimport {HttpClientModule} from '@angular/common/http';\nimport { DashboardCardComponent } from './components/dashboard-card/dashboard-card.component'\nimport { GoogleChartsModule } from 'angular-google-charts';\n@NgModule({\n declarations: [\n AppComponent,\n NavbarComponent,\n HomeComponent,\n CountriesComponent,\n DashboardCardComponent\n ],\n imports: [\n BrowserModule,\n AppRoutingModule, \n HttpClientModule, \n GoogleChartsModule\n \n ],\n providers: [],\n bootstrap: [AppComponent]\n})\nexport class AppModule { }\n","import { Component, OnInit } from '@angular/core';\nimport { DataServiceService } from 'src/app/services/data-service.service';\nimport { GlobalDataSummary } from 'src/app/models/gloabl-data';\nimport { DateWiseData } from 'src/app/models/date-wise-data';\nimport { merge } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Component({\n selector: 'app-countries',\n templateUrl: './countries.component.html',\n styleUrls: ['./countries.component.css']\n})\nexport class CountriesComponent implements OnInit {\n\n data : GlobalDataSummary[];\n countries : string[] = [];\n totalConfirmed = 0;\n totalActive = 0;\n totalDeaths = 0;\n totalRecovered = 0;\n selectedCountryData : DateWiseData[]; \n dateWiseData ;\n loading = true;\n options: {\n height : 500, \n animation:{\n duration: 1000,\n easing: 'out',\n },\n }\n \n constructor(private service : DataServiceService) { }\n\n ngOnInit(): void {\n\n merge(\n this.service.getDateWiseData().pipe(\n map(result=>{\n this.dateWiseData = result;\n })\n ), \n this.service.getGlobalData().pipe(map(result=>{\n this.data = result;\n this.data.forEach(cs=>{\n this.countries.push(cs.country)\n })\n }))\n ).subscribe(\n {\n complete : ()=>{\n this.updateValues('India')\n this.loading = false;\n }\n }\n )\n \n \n\n }\n\n updateChart(){\n let dataTable = [];\n dataTable.push([\"Date\" , 'Cases'])\n this.selectedCountryData.forEach(cs=>{\n dataTable.push([cs.date , cs.cases])\n })\n\n \n }\n\n updateValues(country : string){\n console.log(country);\n this.data.forEach(cs=>{\n if(cs.country == country){\n this.totalActive = cs.active\n this.totalDeaths = cs.deaths\n this.totalRecovered = cs.recovered\n this.totalConfirmed = cs.confirmed\n }\n })\n\n this.selectedCountryData = this.dateWiseData[country]\n // console.log(this.selectedCountryData);\n this.updateChart();\n \n }\n\n}\n","<div class=\"ui inverted dimmer\" [class.active]='loading'>\n <div class=\"ui text loader\">Loading</div>\n</div>\n\n<div class=\"jumbotron bg-white text-center p-0 m-0 \">\n <h1 class=\"display-4\">Corona Covid-19 Tracker Country Wise</h1>\n <hr>\n\n <div class=\"mx-auto\">\n <div class=\"form-group col-lg-5 mx-auto\">\n <label for=\"c\">Select Country</label>\n <select name=\"\" class=\"form-control\" id=\"c\" #input (change)='updateValues(input.value)'>\n <option value=\"{{con}}\" *ngFor='let con of countries'>{{con}}</option>\n </select>\n </div>\n </div>\n <app-dashboard-card [totalConfirmed]='totalConfirmed' [totalActive]='totalActive' [totalRecovered]='totalRecovered' [totalDeaths]='totalDeaths'></app-dashboard-card>\n\n\n <div class=\"row\">\n\n <div class=\"col\">\n\n <table class=\"table\">\n <thead>\n <tr>\n <th>Sno.</th>\n <th>Date</th>\n <th>Cases</th>\n </tr>\n </thead>\n\n <tbody>\n <tr *ngFor='let cs of selectedCountryData; index as i '>\n <td>{{i+1}}</td>\n <td>{{cs.date | date}}</td>\n <td>{{cs.cases}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"col\">\n <google-chart></google-chart>\n </div>\n\n\n </div>\n</div>","import { Component, OnInit, Input } from '@angular/core';\n\n@Component({\n selector: 'app-dashboard-card',\n templateUrl: './dashboard-card.component.html',\n styleUrls: ['./dashboard-card.component.css']\n})\nexport class DashboardCardComponent implements OnInit {\n\n @Input('totalConfirmed')\n totalConfirmed;\n @Input('totalDeaths')\n totalDeaths;\n @Input('totalActive')\n totalActive;\n @Input('totalRecovered')\n totalRecovered;\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<div class=\"row\">\n <div class=\"card col p-3 m-3\">\n <div class=\"ui statistic\">\n <div class=\"label\">\n <h3>Confirmed</h3>\n </div>\n <div class=\"value\">\n {{totalConfirmed}}\n </div>\n </div>\n </div>\n <div class=\"card col p-3 m-3\">\n <div class=\"ui statistic\">\n <div class=\"label\">\n <h3>Recovered</h3>\n </div>\n <div class=\"value\">\n {{totalRecovered}}\n </div>\n </div>\n </div>\n <div class=\"card col p-3 m-3\">\n <div class=\"ui statistic\">\n <div class=\"label\">\n <h3>Deaths</h3>\n </div>\n <div class=\"value\">\n {{totalDeaths}}\n </div>\n </div>\n </div>\n <div class=\"card col p-3 m-3\">\n <div class=\"ui statistic\">\n <div class=\"label\">\n <h3>Active</h3>\n </div>\n <div class=\"value\">\n {{totalActive}}\n </div>\n </div>\n </div>\n\n</div>","import { Component, OnInit } from '@angular/core';\nimport { DataServiceService } from 'src/app/services/data-service.service';\nimport { GlobalDataSummary } from 'src/app/models/gloabl-data';\n\n@Component({\n selector: 'app-home',\n templateUrl: './home.component.html',\n styleUrls: ['./home.component.css']\n})\nexport class HomeComponent implements OnInit {\n\n totalConfirmed = 0;\n totalActive = 0;\n totalDeaths = 0;\n totalRecovered = 0;\n loading = true;\n globalData: GlobalDataSummary[];\n datatable = [];\n chart = {\n PieChart : \"PieChart\" ,\n ColumnChart : 'ColumnChart' ,\n LineChart : \"LineChart\", \n height: 500, \n options: {\n animation:{\n duration: 1000,\n easing: 'out',\n },\n is3D: true\n } \n }\n \n \n constructor(private dataService: DataServiceService) { }\n\n\n \n ngOnInit(): void {\n\n this.dataService.getGlobalData()\n .subscribe(\n {\n next: (result) => {\n console.log(result);\n this.globalData = result;\n result.forEach(cs => {\n if (!Number.isNaN(cs.confirmed)) {\n this.totalActive += cs.active\n this.totalConfirmed += cs.confirmed\n this.totalDeaths += cs.deaths\n this.totalRecovered += cs.active\n }\n\n })\n\n this.initChart('c');\n }, \n complete : ()=>{\n this.loading = false;\n }\n }\n )\n }\n\n\n\n updateChart(input: HTMLInputElement) {\n console.log(input.value);\n this.initChart(input.value)\n }\n\n initChart(caseType: string) {\n\n this.datatable = [];\n // this.datatable.push([\"Country\", \"Cases\"])\n \n this.globalData.forEach(cs => {\n let value :number ;\n if (caseType == 'c')\n if (cs.confirmed > 2000)\n value = cs.confirmed\n \n if (caseType == 'a')\n if (cs.active > 2000)\n value = cs.active\n if (caseType == 'd')\n if (cs.deaths > 1000)\n value = cs.deaths\n \n if (caseType == 'r')\n if (cs.recovered > 2000)\n value = cs.recovered\n \n\n this.datatable.push([\n cs.country, value\n ])\n })\n console.log(this.datatable);\n\n }\n\n}\n","<div class=\"ui inverted dimmer\" [class.active]='loading'>\n <div class=\"ui text loader\">Loading</div>\n</div>\n\n<div class=\"jumbotron bg-white text-center p-0 m-0\">\n <h1 class=\"display-4\"> Covid-19 Tracker App</h1>\n <hr>\n\n <app-dashboard-card [totalConfirmed]='totalConfirmed' [totalActive]='totalActive' [totalRecovered]='totalRecovered' [totalDeaths]='totalDeaths'></app-dashboard-card>\n\n</div>\n\n<hr>\n<div class=\"ui form\">\n <div class=\"inline fields\">\n <label for=\"fruit\">Select Case Type : </label>\n <div class=\"field\">\n <div class=\"ui radio checkbox\">\n <input type=\"radio\" id='c' #c (click)='updateChart(c)' value=\"c\" name=\"casetype\" checked=\"\" tabindex=\"0\" class=\"hidden\">\n <label for='c'>Confirmed</label>\n </div>\n </div>\n <div class=\"field\">\n <div class=\"ui radio checkbox\">\n <input type=\"radio\" value='d' #d (click)='updateChart(d)' id='d' name=\"casetype\" tabindex=\"0\" class=\"hidden\">\n <label for='d'>Deaths</label>\n </div>\n </div>\n <div class=\"field\">\n <div class=\"ui radio checkbox\">\n <input type=\"radio\" value='r' #r (click)='updateChart(r)' id='r' name=\"casetype\" tabindex=\"0\" class=\"hidden\">\n <label for='r'>Recovered</label>\n </div>\n </div>\n <div class=\"field\">\n <div class=\"ui radio checkbox\">\n <input id='a' #a type=\"radio\" (click)='updateChart(a)' value='a' name=\"casetype\" tabindex=\"0\" class=\"hidden\">\n <label for='a'>Active</label>\n </div>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col\">\n <google-chart [type]='chart.PieChart' [options]='chart.options' style=\"width: 100%;\" [height]='chart.height' [data]='datatable'></google-chart>\n </div>\n <div class=\"col\">\n <google-chart [type]='chart.ColumnChart' style=\"width: 100%;\" [options]='chart.options' [height]='chart.height' [data]='datatable'></google-chart>\n </div>\n <!-- \n <div class=\"col\">\n <google-chart [type]='chart.LineChart' style=\"width: 100%;\" [options]='chart.options' [height]='chart.height' [data]='datatable'></google-chart>\n </div> -->\n </div>","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-navbar',\n templateUrl: './navbar.component.html',\n styleUrls: ['./navbar.component.css']\n})\nexport class NavbarComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<nav class=\"navbar navbar-expand-lg navbar-light bg-light\">\n <a class=\"navbar-brand\" routerLink='/'>Covid-19 Tracker</a>\n <button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarNav\" aria-controls=\"navbarNav\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <div class=\"collapse navbar-collapse\" id=\"navbarNav\">\n <ul class=\"navbar-nav\">\n <li class=\"nav-item active\">\n <a class=\"nav-link\" routerLink='/'>Home <span class=\"sr-only\">(current)</span></a>\n </li>\n <li class=\"nav-item\">\n <a class=\"nav-link\" routerLink='countries'>Countries</a>\n </li>\n\n </ul>\n </div>\n</nav>","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { map } from 'rxjs/operators'\nimport { GlobalDataSummary } from '../models/gloabl-data';\nimport { DateWiseData } from '../models/date-wise-data';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DataServiceService {\n\n private globalDataUrl = `https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/04-17-2020.csv`;\n private dateWiseDataUrl = `https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv`\n constructor(private http: HttpClient) { }\n\n getDateWiseData() {\n return this.http.get(this.dateWiseDataUrl, { responseType: 'text' })\n .pipe(map(result => {\n let rows = result.split('\\n');\n // console.log(rows);\n let mainData = {};\n let header = rows[0];\n let dates = header.split(/,(?=\\S)/)\n dates.splice(0 , 4);\n rows.splice(0 , 1);\n rows.forEach(row=>{\n let cols = row.split(/,(?=\\S)/)\n let con = cols[1];\n cols.splice(0 , 4);\n // console.log(con , cols);\n mainData[con] = [];\n cols.forEach((value , index)=>{\n let dw : DateWiseData = {\n cases : +value ,\n country : con , \n date : new Date(Date.parse(dates[index])) \n\n }\n mainData[con].push(dw)\n })\n \n })\n\n\n // console.log(mainData);\n return mainData;\n }))\n }\n\n getGlobalData() {\n return this.http.get(this.globalDataUrl, { responseType: 'text' }).pipe(\n map(result => {\n let data: GlobalDataSummary[] = [];\n let raw = {}\n let rows = result.split('\\n');\n rows.splice(0, 1);\n // console.log(rows);\n rows.forEach(row => {\n let cols = row.split(/,(?=\\S)/)\n\n let cs = {\n country: cols[3],\n confirmed: +cols[7],\n deaths: +cols[8],\n recovered: +cols[9],\n active: +cols[10],\n };\n let temp: GlobalDataSummary = raw[cs.country];\n if (temp) {\n temp.active = cs.active + temp.active\n temp.confirmed = cs.confirmed + temp.confirmed\n temp.deaths = cs.deaths + temp.deaths\n temp.recovered = cs.recovered + temp.recovered\n\n raw[cs.country] = temp;\n } else {\n raw[cs.country] = cs;\n }\n })\n return <GlobalDataSummary[]>Object.values(raw);\n })\n )\n }\n}\n","// This file can be replaced during build by using the `fileReplacements` array.\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\n// The list of file replacements can be found in `angular.json`.\n\nexport const environment = {\n production: false\n};\n\n/*\n * For easier debugging in development mode, you can import the following file\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\n *\n * This import should be commented out in production mode because it will have a negative impact\n * on performance if an error is thrown.\n */\n// import 'zone.js/dist/zone-error'; // Included with Angular CLI.\n","import { enableProdMode } from '@angular/core';\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app/app.module';\nimport { environment } from './environments/environment';\n\nif (environment.production) {\n enableProdMode();\n}\n\nplatformBrowserDynamic().bootstrapModule(AppModule)\n .catch(err => console.error(err));\n"]}