-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-es2015.js.map
1 lines (1 loc) · 14.1 KB
/
main-es2015.js.map
1
{"version":3,"file":"main-es2015.js","mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,6CAA6C;AAC7C;AACA;AACA;;;;;;;;;;;;;;;;;;ACXuD;AAEW;;;AAElE,MAAM,MAAM,GAAW;IACrB,EAAE,IAAI,EAAE,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE;IACxD,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,2EAAiB,EAAE;CACnD,CAAC;AAMK,MAAM,gBAAgB;;gFAAhB,gBAAgB;6GAAhB,gBAAgB;iHAHlB,CAAE,iEAAoB,CAAC,MAAM,EAAE,EAAE,sBAAsB,EAAE,QAAQ,EAAE,CAAC,CAAE,EACpE,yDAAY;mIAEZ,gBAAgB,oFAFhB,yDAAY;;;;;;;;;;;;;;;;;;;;;;ACLlB,MAAM,YAAY;IALzB;QAME,UAAK,GAAG,iBAAiB,CAAC;KAC3B;;wEAFY,YAAY;0GAAZ,YAAY;QCPzB,2EAAyC;QACzC,2EAA+B;;QADnB,4EAAe;;;;;;;;;;;;;;;;;;;;;;;;ACA+B;AACF;AAGA;AACT;AACa;AACM;;AAgB3D,MAAM,SAAS;;kEAAT,SAAS;sGAAT,SAAS,cAFR,wDAAY;2GADb,EAAE,YALJ;YACP,oEAAa;YACb,kEAAgB;YAChB,iEAAgB;SACjB;mIAIU,SAAS,mBAZlB,wDAAY;QACZ,qEAAe;QACf,2EAAiB,aAGjB,oEAAa;QACb,kEAAgB;QAChB,iEAAgB;;;;;;;;;;;;;;;;;;ACXb,MAAM,eAAe;IAI1B,gBAAgB,CAAC;IAEjB,QAAQ;IACR,CAAC;;8EAPU,eAAe;6GAAf,eAAe;QCP5B,yEAAkI;QACjI,qEAAI;QACH,uEAAM;QAAA,uDAAS;QA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AiB;+GAAjB,iBAAiB;;QCT9B,yEAAuB;QACvB,2EAAuD;QAAC,uDAAqC;QAAA,4DAAQ;QACrG,yEAAyB;QACvB,yEAAiC;QAC/B,4EAAyD;QAAzB,yIAAS,kBAAc,IAAC;QAAE,6EAAuB;QAAA,4DAAS;QAC5F,4DAAM;QAEN,8EAAmH;QAA5E,oRAAS,qBAAuB,IAAC;QAAxE,4DAAmH;QAEnH,yEAAgC;QAC9B,6EAAqD;QAArB,0IAAS,cAAU,IAAC;QAAE,8EAAuB;QAAA,4DAAS;QACxF,4DAAM;QACR,4DAAM;QACN,4DAAM;QAEN,iEAAM;QAEN,0EAAuB;QACrB,0EAAiB;QACf,gHAeM;QACR,4DAAM;QACR,4DAAM;;QAnCkD,0DAAqC;QAArC,sHAAqC;QAkBlC,2DAAoB;QAApB,0FAAoB;;;;;;;;;;;;;;;;;ACpB/E,gFAAgF;AAChF,2EAA2E;AAC3E,gEAAgE;AAEzD,MAAM,WAAW,GAAG;IACzB,UAAU,EAAE,KAAK;CAClB,CAAC;AAEF;;;;;GAKG;AACH,sEAAsE;;;;;;;;;;;;;;;;;;ACdvB;AAGF;AACY;AAEzD,IAAI,6EAAsB,EAAE;IAC1B,6DAAc,EAAE,CAAC;CAClB;AAED,wEAAwB,CAAC,eAAe,CAAC,sDAAS,CAAC;KAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC","sources":["./$_lazy_route_resources|lazy|groupOptions: {}|namespace object","./src/app/app-routing.module.ts","./src/app/app.component.ts","./src/app/app.component.html","./src/app/app.module.ts","./src/app/header/header.component.ts","./src/app/header/header.component.html","./src/app/pokemon.service.ts","./src/app/pokemon.ts","./src/app/pokemons/pokemons.component.ts","./src/app/pokemons/pokemons.component.html","./src/environments/environment.ts","./src/main.ts"],"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;\nwebpackEmptyAsyncContext.id = 8255;\nmodule.exports = webpackEmptyAsyncContext;","import { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\n\nimport { PokemonsComponent } from './pokemons/pokemons.component';\n\nconst routes: Routes = [\n { path: '', redirectTo: '/pokemons', pathMatch: 'full' },\n { path: 'pokemons', component: PokemonsComponent }\n];\n\n@NgModule({\n imports: [ RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' }) ],\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 = 'Pokemon Gallery';\n}\n","<app-header [title]=\"title\"></app-header>\n<router-outlet></router-outlet>\n","import { BrowserModule } from '@angular/platform-browser';\nimport { HttpClientModule } from '@angular/common/http';\nimport { NgModule } from '@angular/core';\n\nimport { AppRoutingModule } from './app-routing.module';\nimport { AppComponent } from './app.component';\nimport { HeaderComponent } from './header/header.component';\nimport { PokemonsComponent } from './pokemons/pokemons.component';\n\n@NgModule({\n declarations: [\n AppComponent,\n HeaderComponent,\n PokemonsComponent\n ],\n imports: [\n BrowserModule,\n HttpClientModule,\n AppRoutingModule\n ],\n providers: [],\n bootstrap: [AppComponent]\n})\nexport class AppModule { }\n","import { Component, Input, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-header',\n templateUrl: './header.component.html',\n styleUrls: ['./header.component.css']\n})\nexport class HeaderComponent implements OnInit {\n\n @Input() title: string;\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","<div class=\"header-container header-container-xs header-container-sm header-container-md header-container-lg header-container-xl\">\n\t<h1>\n\t\t<span>{{title}}</span>\n\t</h1>\n</div>\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\n\nimport { Observable, of } from 'rxjs';\nimport { catchError, map } from 'rxjs/operators';\n\nimport { Pokemon } from './pokemon';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PokemonService {\n\n // ---------- Remote URL\n private pokeapiUrl = 'https://pokeapi.co/api/v2/pokemon/?limit=151';\n // private pokeapiUrl = 'https://pokeapi.co/api/v2/pokemon/?limit=20&offset=20\"'; // paging\n // private pokeapiUrl = 'https://pokeapi.co/api/v2/pokemon/1/'; // Pokemon detail\n\n // ---------- Local URL\n // private pokeapiUrl = 'assets/pokeapi_151.json';\n // private pokeapiUrl = 'assets/pokeapi_949.json';\n\n constructor(private http: HttpClient) { }\n\n\n\n /** GET pokemons from the server */\n getPokemons (): Observable<Pokemon[]> {\n\n const convertToPokemonArray = map((value: Object) => {\n var objList = value['results'];\n var pokemons = objList.map( (pokemon, index) => {\n return new Pokemon( pokemon.url, pokemon.name);\n });\n return pokemons;\n });\n\n return convertToPokemonArray(this.http.get<Object>(this.pokeapiUrl)\n .pipe(\n catchError(this.handleError('getPokemons', []))\n ));\n }\n\n /**\n * Handle Http operation that failed.\n * Let the app continue.\n * @param operation - name of the operation that failed\n * @param result - optional value to return as the observable result\n */\n private handleError<T> (operation = 'operation', result?: T) {\n return (error: any): Observable<T> => {\n\n console.error(operation + ': ' + error); // log to console\n\n // Let the app keep running by returning an empty result.\n return of(result as T);\n };\n }\n}\n","export class Pokemon {\n url: string;\n name: string;\n id: number;\n\n // Capture the last digits of URL as Pokemon ID\n private idFromUrlPattern: RegExp = /^.*\\/(\\d+)\\/$/ ;\n\n /*\n constructor(url: string, name: string, id: number) {\n this.url = url;\n this.name = name;\n this.id = id;\n }\n */\n\n constructor(url: string, name: string) {\n this.url = url;\n this.name = name;\n var parsedValue = url.replace(this.idFromUrlPattern, \"$1\");\n this.id = parseInt(parsedValue);\n }\n}\n","import { Component, OnInit } from '@angular/core';\n\nimport { Pokemon } from '../pokemon';\nimport { PokemonService } from '../pokemon.service';\n\n@Component({\n selector: 'app-pokemons',\n templateUrl: './pokemons.component.html',\n styleUrls: ['./pokemons.component.css']\n})\nexport class PokemonsComponent implements OnInit {\n\n pokemonsFull: Pokemon[];\n pokemonsFiltered: Pokemon[];\n pokemonsDisplayed: Pokemon[];\n\n currentSearch: string;\n currentPage: number;\n totalPages: number;\n ITEMS_PER_PAGE = 20;\n\n constructor(private pokemonService: PokemonService) { }\n\n ngOnInit() {\n this.currentSearch = \"\";\n this.currentPage = 1;\n this.getPokemons();\n }\n\n getPokemons(): void {\n this.pokemonService.getPokemons()\n .subscribe(pokemons => {\n this.pokemonsFull = pokemons;\n this.updateFilteredPokemons();\n });\n }\n\n updateFilteredPokemons(): void {\n this.pokemonsFiltered =\n this.pokemonsFull\n .filter((pokemon) => pokemon.name.match(new RegExp(this.currentSearch, 'i')));\n\n this.updateDisplayedPokemons();\n }\n\n updateDisplayedPokemons(): void {\n this.totalPages = Math.ceil(this.pokemonsFiltered.length / this.ITEMS_PER_PAGE);\n\n if (this.currentPage < 1) this.currentPage = 1;\n if (this.currentPage > this.totalPages) this.currentPage = this.totalPages;\n\n this.pokemonsDisplayed =\n this.pokemonsFiltered\n .slice((this.currentPage-1) * this.ITEMS_PER_PAGE)\n .slice(0, this.ITEMS_PER_PAGE);\n }\n\n nextPage(): void {\n this.currentPage = this.currentPage + 1;\n this.updateDisplayedPokemons();\n }\n\n previousPage(): void {\n this.currentPage = this.currentPage - 1;\n this.updateDisplayedPokemons();\n }\n\n search(keyword: string) {\n this.currentSearch = keyword;\n this.updateFilteredPokemons();\n }\n\n}\n","\n<div class=\"container\">\n<label class=\"form-control\" style=\"text-align: center\"> Page {{currentPage}} / {{totalPages}}</label>\n<div class=\"input-group\">\n <div class=\"input-group-prepend\">\n <button class=\"btn btn-primary\" (click)=\"previousPage()\"> << Prev 20 </button>\n </div>\n\n <input #searchBox class=\"form-control\" (keyup)=\"search(searchBox.value)\" placeholder=\"Enter search term here...\" />\n\n <div class=\"input-group-append\">\n <button class=\"btn btn-primary\" (click)=\"nextPage()\"> Next 20 >> </button>\n </div>\n</div>\n</div>\n\n<br />\n\n<div class=\"container\">\n <div class=\"row\">\n <div class=\"col-12 col-md-6 col-xl-3\" *ngFor=\"let poke of pokemonsDisplayed\">\n <div class=\"container\">\n <div class=\"row pokerow\">\n <div class=\"col-6 col-md-12 col-xl-12\">\n <img src=\"assets/images/{{poke.id}}.png\" />\n </div>\n <div class=\"col-6 col-md-12 col-xl-12\">\n <div>#{{poke.id}}</div>\n <div>{{poke.name}}</div>\n </div>\n <div class=\"col-12\">\n <br/>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\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 * In development mode, to ignore zone related error stack frames such as\n * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can\n * import the following file, but please comment it out in production mode\n * because it will have performance impact when throw error\n */\n// import 'zone.js/plugins/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.log(err));\n"],"names":[],"sourceRoot":"webpack:///"}