-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path0.bundle.map
1 lines (1 loc) · 15.6 KB
/
0.bundle.map
1
{"version":3,"sources":["webpack:///C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/admin/admin.module.ts","webpack:///C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/admin/admin-dashboard.component.ts","webpack:///C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/admin/admin.component.ts","webpack:///C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/admin/manage-crises.component.ts","webpack:///C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/admin/manage-heroes.component.ts","webpack:///C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/admin/admin-routing.module.ts","webpack:///C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/auth-guard.service.ts","webpack:///C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/auth.service.ts","webpack:///C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/selective-preload-strategy.ts","webpack:///C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/~/rxjs/add/operator/map.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAA8C;AACE;AAEY;AACU;AACF;AACA;AAEH;AAcjE;IAAA;IAA0B,CAAC;IAZ3B;QAAC,8EAAQ,CAAC;YACR,OAAO,EAAE;gBACP,qEAAY;gBACZ,iFAAkB;aACnB;YACD,YAAY,EAAE;gBACZ,wEAAc;gBACd,2FAAuB;gBACvB,uFAAqB;gBACrB,uFAAqB;aACtB;SACF,CAAC;;mBAAA;IACwB,kBAAC;AAAD,CAAC;AAG3B;;;;EAIE;;;;;;;;;;;;;;;;;;;;;;;;AC7BkD;AACE;AAEgB;AAExC;AAgB9B;IAKE,iCACU,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IAbC,wCAAO,GAAP,UAAQ,KAAY,EAAE,IAAc;QAClC,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACxC,mDAAmD;YACnD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAEvC,oCAAoC;YACpC,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;YAExC,MAAM,CAAC,IAAI,EAAE,CAAC;QAChB,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,MAAM,CAAC,2DAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;IAhBH;QAAC,gFAAU,EAAE;;8BAAA;IAiBb,6BAAC;AAAD,CAAC;AAGD;;;;EAIE;;;;;;;;;AC7BF;AACA;AACA;AACA;AACA,+B","file":"0.chunk.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { AdminComponent } from './admin.component';\nimport { AdminDashboardComponent } from './admin-dashboard.component';\nimport { ManageCrisesComponent } from './manage-crises.component';\nimport { ManageHeroesComponent } from './manage-heroes.component';\n\nimport { AdminRoutingModule } from './admin-routing.module';\n\n@NgModule({\n imports: [\n CommonModule,\n AdminRoutingModule\n ],\n declarations: [\n AdminComponent,\n AdminDashboardComponent,\n ManageCrisesComponent,\n ManageHeroesComponent\n ]\n})\nexport class AdminModule {}\n\n\n/*\nCopyright 2016 Google Inc. All Rights Reserved.\nUse of this source code is governed by an MIT-style license that\ncan be found in the LICENSE file at http://angular.io/license\n*/\n\n\n// WEBPACK FOOTER //\n// C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/~/angular2-template-loader!C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/admin/admin.module.ts","import { Component, OnInit } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { Observable } from 'rxjs/Observable';\nimport { PreloadSelectedModules } from '../selective-preload-strategy';\n\nimport 'rxjs/add/operator/map';\n\n@Component({\n template: `\n <p>Dashboard</p>\n\n <p>Session ID: {{ sessionId | async }}</p>\n <a id=\"anchor\"></a>\n <p>Token: {{ token | async }}</p>\n\n Preloaded Modules\n <ul>\n <li *ngFor=\"let module of modules\">{{ module }}</li>\n </ul>\n `\n})\nexport class AdminDashboardComponent implements OnInit {\n sessionId: Observable<string>;\n token: Observable<string>;\n modules: string[];\n\n constructor(\n private route: ActivatedRoute,\n private preloadStrategy: PreloadSelectedModules\n ) {\n this.modules = preloadStrategy.preloadedModules;\n }\n\n ngOnInit() {\n // Capture the session ID if available\n this.sessionId = this.route\n .queryParams\n .map(params => params['session_id'] || 'None');\n\n // Capture the fragment if available\n this.token = this.route\n .fragment\n .map(fragment => fragment || 'None');\n }\n}\n\n\n/*\nCopyright 2016 Google Inc. All Rights Reserved.\nUse of this source code is governed by an MIT-style license that\ncan be found in the LICENSE file at http://angular.io/license\n*/\n\n\n// WEBPACK FOOTER //\n// C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/~/angular2-template-loader!C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/admin/admin-dashboard.component.ts","import { Component } from '@angular/core';\n\n@Component({\n template: `\n <h3>ADMIN</h3>\n <nav>\n <a routerLink=\"./\" routerLinkActive=\"active\"\n [routerLinkActiveOptions]=\"{ exact: true }\">Dashboard</a>\n <a routerLink=\"./crises\" routerLinkActive=\"active\">Manage Crises</a>\n <a routerLink=\"./heroes\" routerLinkActive=\"active\">Manage Heroes</a>\n </nav>\n <router-outlet></router-outlet>\n `\n})\nexport class AdminComponent {\n}\n\n\n/*\nCopyright 2016 Google Inc. All Rights Reserved.\nUse of this source code is governed by an MIT-style license that\ncan be found in the LICENSE file at http://angular.io/license\n*/\n\n\n// WEBPACK FOOTER //\n// C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/~/angular2-template-loader!C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/admin/admin.component.ts","import { Component } from '@angular/core';\n\n@Component({\n template: `\n <p>Manage your crises here</p>\n `\n})\nexport class ManageCrisesComponent { }\n\n\n/*\nCopyright 2016 Google Inc. All Rights Reserved.\nUse of this source code is governed by an MIT-style license that\ncan be found in the LICENSE file at http://angular.io/license\n*/\n\n\n// WEBPACK FOOTER //\n// C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/~/angular2-template-loader!C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/admin/manage-crises.component.ts","import { Component } from '@angular/core';\n\n@Component({\n template: `\n <p>Manage your heroes here</p>\n `\n})\nexport class ManageHeroesComponent { }\n\n\n/*\nCopyright 2016 Google Inc. All Rights Reserved.\nUse of this source code is governed by an MIT-style license that\ncan be found in the LICENSE file at http://angular.io/license\n*/\n\n\n// WEBPACK FOOTER //\n// C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/~/angular2-template-loader!C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/admin/manage-heroes.component.ts","import { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\n\nimport { AdminComponent } from './admin.component';\nimport { AdminDashboardComponent } from './admin-dashboard.component';\nimport { ManageCrisesComponent } from './manage-crises.component';\nimport { ManageHeroesComponent } from './manage-heroes.component';\n\nimport { AuthGuard } from '../auth-guard.service';\n\nconst adminRoutes: Routes = [\n {\n path: '',\n component: AdminComponent,\n canActivate: [AuthGuard],\n children: [\n {\n path: '',\n canActivateChild: [AuthGuard],\n children: [\n { path: 'crises', component: ManageCrisesComponent },\n { path: 'heroes', component: ManageHeroesComponent },\n { path: '', component: AdminDashboardComponent }\n ]\n }\n ]\n }\n];\n\n@NgModule({\n imports: [\n RouterModule.forChild(adminRoutes)\n ],\n exports: [\n RouterModule\n ]\n})\nexport class AdminRoutingModule {}\n\n\n/*\nCopyright 2016 Google Inc. All Rights Reserved.\nUse of this source code is governed by an MIT-style license that\ncan be found in the LICENSE file at http://angular.io/license\n*/\n\n\n// WEBPACK FOOTER //\n// C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/~/angular2-template-loader!C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/admin/admin-routing.module.ts","import { Injectable } from '@angular/core';\nimport {\n CanActivate, Router,\n ActivatedRouteSnapshot,\n RouterStateSnapshot,\n CanActivateChild,\n NavigationExtras,\n CanLoad, Route\n} from '@angular/router';\nimport { AuthService } from './auth.service';\n\n@Injectable()\nexport class AuthGuard implements CanActivate, CanActivateChild, CanLoad {\n constructor(private authService: AuthService, private router: Router) {}\n\n canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean {\n let url: string = state.url;\n\n return this.checkLogin(url);\n }\n\n canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean {\n return this.canActivate(route, state);\n }\n\n canLoad(route: Route): boolean {\n let url = `/${route.path}`;\n\n return this.checkLogin(url);\n }\n\n checkLogin(url: string): boolean {\n if (this.authService.isLoggedIn) { return true; }\n\n // Store the attempted URL for redirecting\n this.authService.redirectUrl = url;\n\n // Create a dummy session id\n let sessionId = 123456789;\n\n // Set our navigation extras object\n // that contains our global query params and fragment\n let navigationExtras: NavigationExtras = {\n queryParams: { 'session_id': sessionId },\n fragment: 'anchor'\n };\n\n // Navigate to the login page with extras\n this.router.navigate(['/login'], navigationExtras);\n return false;\n }\n}\n\n\n/*\nCopyright 2016 Google Inc. All Rights Reserved.\nUse of this source code is governed by an MIT-style license that\ncan be found in the LICENSE file at http://angular.io/license\n*/\n\n\n// WEBPACK FOOTER //\n// C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/~/angular2-template-loader!C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/auth-guard.service.ts","import { Injectable } from '@angular/core';\n\nimport { Observable } from 'rxjs/Observable';\nimport 'rxjs/add/observable/of';\nimport 'rxjs/add/operator/do';\nimport 'rxjs/add/operator/delay';\n\n@Injectable()\nexport class AuthService {\n isLoggedIn: boolean = false;\n\n // store the URL so we can redirect after logging in\n redirectUrl: string;\n\n login(): Observable<boolean> {\n return Observable.of(true).delay(1000).do(val => this.isLoggedIn = true);\n }\n\n logout(): void {\n this.isLoggedIn = false;\n }\n}\n\n\n/*\nCopyright 2016 Google Inc. All Rights Reserved.\nUse of this source code is governed by an MIT-style license that\ncan be found in the LICENSE file at http://angular.io/license\n*/\n\n\n// WEBPACK FOOTER //\n// C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/~/angular2-template-loader!C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/auth.service.ts","import 'rxjs/add/observable/of';\nimport { Injectable } from '@angular/core';\nimport { PreloadingStrategy, Route } from '@angular/router';\nimport { Observable } from 'rxjs/Observable';\n\n@Injectable()\nexport class PreloadSelectedModules implements PreloadingStrategy {\n preloadedModules: string[] = [];\n\n preload(route: Route, load: Function): Observable<any> {\n if (route.data && route.data['preload']) {\n // add the route path to our preloaded module array\n this.preloadedModules.push(route.path);\n\n // log the route path to the console\n console.log('Preloaded: ' + route.path);\n\n return load();\n } else {\n return Observable.of(null);\n }\n }\n}\n\n\n/*\nCopyright 2016 Google Inc. All Rights Reserved.\nUse of this source code is governed by an MIT-style license that\ncan be found in the LICENSE file at http://angular.io/license\n*/\n\n\n// WEBPACK FOOTER //\n// C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/~/angular2-template-loader!C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/src/app/selective-preload-strategy.ts","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar map_1 = require('../../operator/map');\nObservable_1.Observable.prototype.map = map_1.map;\n//# sourceMappingURL=map.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// C:/Users/urk7kor/Documents/angular2/angular-cli - Copy/ng2-dashboard/~/rxjs/add/operator/map.js\n// module id = 769\n// module chunks = 0"],"sourceRoot":""}