{"version":3,"sources":["./ClientApp/app/add/addVehicle.component.ts","./ClientApp/app/add/addVehicle.component.html","./ClientApp/environments/environment.ts","./ClientApp/app/app.component.ts","./ClientApp/app/app.component.html","./ClientApp/app/app.module.ts","./ClientApp/app/edit/edit.component.ts","./ClientApp/app/edit/edit.component.html","./ClientApp/main.ts","./ClientApp/app/shared/modification.ts","./ClientApp/app/garage/vehicleList.component.ts","./ClientApp/app/garage/vehicleList.component.html","./ClientApp/app/garage/garage.component.ts","./ClientApp/app/garage/garage.component.html","./ClientApp/app/edit/manageMods.component.ts","./ClientApp/app/edit/manageMods.component.html","./ClientApp/app/login/login.component.ts","./ClientApp/app/login/login.component.html","./ClientApp/app/shared/dataService.ts","./ClientApp/app/garage/modificationList.component.ts","./ClientApp/app/garage/modificationList.component.html","./ClientApp/app/shared/vehicle.ts","./$_lazy_route_resource lazy namespace object"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwC;AAGE;;;;;;;ICkC1B,6EAAyD;IAAA,uDAAQ;IAAA,4DAAS;;;IAAhC,0EAAc;IAAC,0DAAQ;IAAR,wEAAQ;;ADhCjF;IAOI,oBAAmB,IAAiB,EAAS,MAAc;QAAxC,SAAI,GAAJ,IAAI,CAAa;QAAS,WAAM,GAAN,MAAM,CAAQ;QAG3D,iBAAY,GAAG;YACX,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM;SACnD,CAAC;QAEF,cAAS,GAAG,KAAK,CAAC;QAClB,iBAAY,GAAW,EAAE,CAAC;QAE1B,UAAK,GAAG,IAAI,uDAAO,EAAE,CAAC;IATtB,CAAC;IAWD,iCAAY,GAAZ;QAAA,iBAkCC;QAjCG,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACzB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,O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GACI;YAOR,4DAAM;YACV,4DAAM;YACV,4DAAM;;YArBW,0DAAoC;YAApC,sFAAoC;YAWpC,0DAAuC;YAAvC,8FAAuC;;2BDhBxD;CA0CC;AA9B4B;6FAAhB,gBAAgB;cAN5B,uDAAS;eAAC;gBACP,QAAQ,EAAE,mBAAmB;gBAC7B,WAAW,EAAE,iCAAiC;gBAC9C,SAAS,EAAE,CAAC,gCAAgC,CAAC;aAChD;;;;;;;;;;;;;;AERD;AAAA;AAAA;IAAA;IAWA,CAAC;IAAD,cAAC;AAAD,CAAC;;;;;;;;;;;;;ACbD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,4CAA4C,WAAW;AACvD;AACA;AACA,qC","file":"main.js","sourcesContent":["import {Component} from \"@angular/core\";\r\nimport {DataService} from \"../shared/dataService\";\r\nimport {Router} from \"@angular/router\";\r\nimport {Vehicle} from \"../shared/vehicle\";\r\n\r\n@Component({\r\n selector: \"addVehicle\",\r\n templateUrl: \"addVehicle.component.html\",\r\n\r\n})\r\n\r\nexport class AddVehicle {\r\n constructor(public data: DataService, public router: Router) {\r\n }\r\n\r\n vehicleTypes = [\r\n 'Sedan', 'Truck', 'Crossover', 'Compact', 'Semi'\r\n ];\r\n\r\n submitted = false;\r\n errorMessage: string = \"\";\r\n\r\n model = new Vehicle();\r\n\r\n gotoCheckout() {\r\n this.errorMessage = \"\";\r\n if (this.data.loginRequired) {\r\n this.router.navigate([\"login\"])\r\n } else {\r\n this.model.vehicleId = 0;\r\n for (let i = 0; i < this.data.vehicles.length; i++) {\r\n if (this.data.getExistingVehicle(i)) {\r\n continue;\r\n }\r\n\r\n this.model.vehicleId = i;\r\n break;\r\n }\r\n\r\n this.data.vehicle.vehicleId = this.model.vehicleId;\r\n this.data.vehicle.ownerName = this.model.ownerName;\r\n if (this.model.engineRunning == undefined) {\r\n this.model.engineRunning = false;\r\n }\r\n this.data.vehicle.engineRunning = this.model.engineRunning;\r\n this.data.vehicle.fileName = \"dodgeCharger.jpg\";\r\n this.data.vehicle.vehicleType = this.vehicleTypes.indexOf(this.model.vehicleType.toString());\r\n this.data.vehicle.horsepower = this.model.horsepower;\r\n this.data.vehicle.torque = this.model.torque;\r\n this.data.vehicle.modifications = this.model.modifications;\r\n\r\n this.data.checkoutVehicle()\r\n .subscribe(success => {\r\n if (success) {\r\n this.router.navigate([\"garage\"]);\r\n }\r\n }, err => this.errorMessage = \"Failed to save order.\");\r\n }\r\n }\r\n}","
\r\n

Add a Vehicle

\r\n\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n Owner Name is required.\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n Horsepower value is required.\r\n
\r\n \r\n \r\n
\r\n Torque value is required\r\n
\r\n
\r\n\r\n\r\n
\r\n \r\n \r\n
\r\n Vehicle type is required.\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n Engine running status is required.\r\n
\r\n
\r\n \r\n
\r\n\r\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 {Component} from '@angular/core';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: [ \"./app.component.css\" ]\n})\n\nexport class AppComponent {\n title: \"steinbauer-app\";\n}\n\nexport enum VehicleType {\n Sedan = 0,\n Truck = 1,\n Crossover = 2,\n Compact = 3,\n Semi = 4\n}","","import { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { HttpClientModule} from \"@angular/common/http\";\nimport { AppComponent } from './app.component';\nimport { VehicleList } from \"./garage/vehicleList.component\";\nimport { ModificationList } from \"./garage/modificationList.component\";\nimport { DataService } from \"./shared/dataService\";\nimport { RouterModule } from \"@angular/router\";\nimport { Garage } from \"./garage/garage.component\";\nimport { Login } from \"./login/login.component\";\nimport { Edit } from \"./edit/edit.component\";\nimport { AddVehicle } from \"./add/addVehicle.component\";\nimport { FormsModule } from \"@angular/forms\";\nimport {ManageMods} from \"./edit/manageMods.component\";\n\nlet routes = [\n { path: \"\", component: Garage },\n { path: \"login\", component: Login },\n { path: \"edit\", component: Edit },\n { path: \"addVehicle\", component: AddVehicle },\n { path: \"garage\", component: Garage },\n { path: \"app\", component: AppComponent },\n { path: \"manageMods\", component: ManageMods },\n];\n\n@NgModule({\n declarations: [\n AppComponent,\n VehicleList,\n ModificationList,\n Garage,\n Login,\n Edit,\n AddVehicle,\n ManageMods,\n ],\n imports: [\n BrowserModule,\n HttpClientModule,\n RouterModule.forRoot(routes, {\n useHash: true,\n enableTracing: false // for debugging the routes\n }),\n FormsModule\n ],\n providers: [\n DataService\n ],\n bootstrap: [AppComponent], \n})\n\nexport class AppModule { }","import {Component} from \"@angular/core\";\r\nimport {DataService} from \"../shared/dataService\";\r\nimport {Router} from \"@angular/router\";\r\nimport {Vehicle} from \"../shared/vehicle\";\r\n\r\n@Component({\r\n selector: \"edit\",\r\n templateUrl: \"edit.component.html\",\r\n})\r\n\r\nexport class Edit {\r\n constructor(public data: DataService, public router: Router) {\r\n this.vehicle = data.vehicle;\r\n }\r\n\r\n errorMessage = \"\";\r\n public vehicle: Vehicle = new Vehicle();\r\n model = new Vehicle();\r\n\r\n vehicleTypes = [\r\n {id: 0, name: 'Sedan'},\r\n {id: 1, name: 'Truck'},\r\n {id: 2, name: 'Crossover'},\r\n {id: 3, name: 'Compact'},\r\n {id: 4, name: 'Semi'}\r\n ];\r\n defaultOption = null;\r\n\r\n ngOnInit() {\r\n this.data.loadVehicle(this.vehicle).subscribe(() =>\r\n this.vehicle = this.data.vehicle);\r\n }\r\n\r\n checkout() {\r\n this.router.navigate([\"checkout\"]);\r\n }\r\n\r\n onSubmit() {\r\n this.vehicle.vehicleType = this.vehicleTypes[this.vehicle.vehicleType].id;\r\n //this.vehicle.vehicleType = this.vehicleTypes[this.vehicle.vehicleType].id;\r\n this.data.updateVehicle(this.vehicle)\r\n .subscribe(success => {\r\n if (success) {\r\n this.router.navigate([\"/\"]);\r\n }\r\n }, err => this.errorMessage = \"Failed to add new vehicle.\")\r\n }\r\n}","

Edit Vehicle

\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n Owner Name is required.\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n Horsepower value is required.\r\n
\r\n \r\n \r\n
\r\n Torque value is required.\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n Vehicle type is required.\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n Engine running status is required.\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\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","export class Modification {\r\n modificationId: number;\r\n modificationName: string;\r\n horsepower: number;\r\n torque: number;\r\n}","import {Component, OnInit} from \"@angular/core\";\r\nimport {DataService} from \"../shared/dataService\";\r\nimport {Vehicle} from \"../shared/vehicle\";\r\nimport {NavigationEnd, Router} from \"@angular/router\";\r\nimport {Modification} from \"../shared/modification\";\r\n\r\n@Component({\r\n selector: \"vehicle-list\",\r\n templateUrl: \"vehicleList.component.html\",\r\n styleUrls: [\"vehicleList.component.css\"]\r\n})\r\n\r\n\r\nexport class VehicleList implements OnInit {\r\n constructor(public data: DataService, private router: Router) {\r\n this.vehicles = data.vehicles;\r\n\r\n this.router.routeReuseStrategy.shouldReuseRoute = function () {\r\n return false;\r\n };\r\n\r\n this.mySubscription = this.router.events.subscribe((event) => {\r\n if (event instanceof NavigationEnd) {\r\n this.router.navigated = false;\r\n }\r\n });\r\n }\r\n\r\n mySubscription: any;\r\n\r\n public vehicles: Vehicle[];\r\n\r\n onEdit(vehicle) {\r\n this.data.vehicle = vehicle;\r\n this.router.navigate([\"edit\"]);\r\n }\r\n\r\n onDelete(vehicle) {\r\n this.data.deleteVehicle(vehicle).subscribe(() => {\r\n this.router.navigate([\"garage\"])\r\n });\r\n }\r\n\r\n onManageMods(vehicle) {\r\n this.data.vehicle = vehicle;\r\n this.router.navigate([\"manageMods\"]);\r\n }\r\n\r\n ngOnInit() {\r\n this.data.loadVehicles().subscribe(() =>\r\n this.vehicles = this.data.vehicles);\r\n }\r\n\r\n ngOnDestroy() {\r\n if (this.mySubscription) {\r\n this.mySubscription.unsubscribe();\r\n }\r\n }\r\n\r\n displayEngineStatus(engineStatus) {\r\n if (engineStatus == true)\r\n return \"Running\";\r\n else\r\n return \"Stopped\";\r\n }\r\n\r\n displayVehicleTypeName(vehicleType) {\r\n switch (vehicleType) {\r\n case 0:\r\n return \"Sedan\";\r\n case 1:\r\n return \"Truck\";\r\n case 2:\r\n return \"Crossover\";\r\n case 3:\r\n return \"Compact\";\r\n case 4:\r\n return \"Tractor\";\r\n }\r\n return \"Undefined\";\r\n }\r\n\r\n calcTotalHorsepower(vehicle: Vehicle) {\r\n var total: number = vehicle.horsepower;\r\n for (let i = 0; i < vehicle.modifications.length; i++) {\r\n total += vehicle.modifications[i].horsepower;\r\n }\r\n return total;\r\n }\r\n\r\n calcTotalTorque(vehicle: Vehicle) {\r\n var total: number = vehicle.torque;\r\n for (let i = 0; i < vehicle.modifications.length; i++) {\r\n total += vehicle.modifications[i].torque;\r\n }\r\n return total;\r\n }\r\n}","
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n
Owner's NameVehicle TypeHorsepowerTorqueEngine Status
{{ v.ownerName }}{{displayVehicleTypeName(v.vehicleType)}}{{calcTotalHorsepower(v)}}hp{{calcTotalTorque(v)}}lb/ftRunning\r\n Stopped\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
","import { Component } from \"@angular/core\";\r\nimport {Router} from \"@angular/router\";\r\nimport {DataService} from \"../shared/dataService\";\r\n\r\n@Component( {\r\n selector: \"the-garage\",\r\n templateUrl: \"garage.component.html\"\r\n})\r\n\r\nexport class Garage {\r\n constructor(public data: DataService, public router: Router) {\r\n this.data = data;\r\n }\r\n\r\n title = 'Steinbauer Garage';\r\n}","
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n","import {Component} from \"@angular/core\";\r\nimport {DataService} from \"../shared/dataService\";\r\nimport {Router} from \"@angular/router\";\r\nimport {Vehicle} from \"../shared/vehicle\";\r\nimport {Modification} from \"../shared/modification\";\r\n\r\n@Component({\r\n selector: \"manage-mods\",\r\n templateUrl: \"manageMods.component.html\",\r\n})\r\n\r\nexport class ManageMods {\r\n constructor(public data: DataService, public router: Router) {\r\n this.vehicle = data.vehicle;\r\n this.modifications = data.modifications;\r\n }\r\n\r\n errorMessage = \"\";\r\n public modifications: Modification[] = [];\r\n public modification: Modification = new Modification();\r\n public vehicle: Vehicle = new Vehicle();\r\n public model = new Modification();\r\n\r\n ngOnInit() {\r\n this.data.loadVehicle(this.vehicle).subscribe(() =>\r\n this.vehicle = this.data.vehicle);\r\n\r\n this.data.loadModifications().subscribe(() =>\r\n this.modifications = this.data.modifications);\r\n }\r\n\r\n public addModToVehicle() {\r\n this.errorMessage = \"\";\r\n if (this.data.loginRequired) {\r\n this.router.navigate([\"login\"])\r\n } else {\r\n this.model.modificationId = this.modifications.length + 1;\r\n\r\n for (let i = 0; i < this.data.modifications.length; i++) {\r\n if (this.data.getExistingVehicleMod(this.data.vehicle.vehicleId, i)) {\r\n continue;\r\n }\r\n\r\n this.model.modificationId = i;\r\n break;\r\n }\r\n\r\n this.data.modification.modificationId = this.model.modificationId;\r\n this.data.modification.modificationName = this.model.modificationName;\r\n this.data.modification.horsepower = this.model.horsepower;\r\n this.data.modification.torque = this.model.torque;\r\n\r\n alert(\"Added mod to vehicle: \" + this.data.modification.modificationName);\r\n this.data.addModToVehicle(this.vehicle.vehicleId)\r\n .subscribe(success => {\r\n if (success) {\r\n this.router.navigate([\"garage\"]);\r\n }\r\n }, err => this.errorMessage = \"Failed to save order.\");\r\n }\r\n }\r\n\r\n removeModFromVehicle(id) {\r\n this.data.removeMod(this.vehicle, id).subscribe(success => {\r\n if (success) {\r\n alert(\"Successfully removed modification.\");\r\n this.router.navigate([\"/\"]);\r\n }\r\n }, err => alert(\"Failed to remove modification.\"))\r\n }\r\n\r\n calcHorsepower() {\r\n var total: number = this.vehicle.horsepower;\r\n for (let i = 0; i < this.vehicle.modifications.length; i++) {\r\n total += this.vehicle.modifications[i].horsepower;\r\n }\r\n return total;\r\n }\r\n\r\n calcTorque() {\r\n var total: number = this.vehicle.torque;\r\n for (let i = 0; i < this.vehicle.modifications.length; i++) {\r\n total += this.vehicle.modifications[i].torque;\r\n }\r\n\r\n return total;\r\n }\r\n}","

Manage Modifications

\r\n\r\n
\r\n
\r\n
\r\n

Add A Custom Mod

\r\n
\r\n
\r\n \r\n \r\n
\r\n Modification Name is required.\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n Horsepower value is required.\r\n
\r\n \r\n \r\n
\r\n Torque value is required.\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Installed Mods

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Mod NameHorsepowerTorque
{{i.modificationName}}{{i.horsepower}}{{i.torque}}\r\n \r\n
Total After Mods:{{calcHorsepower()}}{{calcTorque()}}
\r\n
\r\n
\r\n
\r\n","import { Component } from \"@angular/core\";\r\nimport {DataService} from \"../shared/dataService\";\r\nimport {Router} from \"@angular/router\";\r\n\r\n@Component( {\r\n selector: \"login\",\r\n templateUrl: \"login.component.html\"\r\n})\r\n\r\nexport class Login {\r\n constructor( private data: DataService, private router: Router ) { }\r\n \r\n errorMessage: string = \"\";\r\n public creds = {\r\n username: \"\",\r\n password: \"\"\r\n };\r\n \r\n onLogin() {\r\n this.data.login( this.creds )\r\n .subscribe( success => {\r\n this.router.navigate([\"/\"])\r\n }, err => this.errorMessage = \"Failed to login.\")\r\n }\r\n}","
\r\n
\r\n
{{ errorMessage }}
\r\n
\r\n
\r\n \r\n \r\n
Username is required.
\r\n
\r\n
\r\n \r\n \r\n
Password is required.
\r\n\r\n
\r\n
\r\n \r\n Cancel\r\n
\r\n
\r\n
\r\n
","import {HttpClient} from \"@angular/common/http\";\r\nimport { Injectable } from \"@angular/core\";\r\nimport {Observable} from \"rxjs\";\r\nimport { map } from \"rxjs/operators\";\r\nimport { Vehicle } from \"./vehicle\";\r\nimport { Modification } from \"./modification\";\r\n\r\n@Injectable()\r\nexport class DataService {\r\n \r\n constructor( private http: HttpClient ) {\r\n }\r\n\r\n private token: string = \"\";\r\n private tokenExpiration: Date;\r\n public index: number;\r\n public vehicle: Vehicle = new Vehicle();\r\n public vehicles: Vehicle[] = [];\r\n \r\n public modification: Modification = new Modification();\r\n public modifications: Modification[] = [];\r\n \r\n public get loginRequired(): boolean { // We do not need login requirements for this app.\r\n //return this.token.length == 0 || this.tokenExpiration > new Date();\r\n return false;\r\n }\r\n \r\n login( creds ): Observable {\r\n return this.http.post( \"/account/createtoken\", creds )\r\n .pipe( map(( data: any ) => {\r\n this.token = data.token; \r\n this.tokenExpiration = data.expiration;\r\n return true;\r\n }));\r\n }\r\n \r\n checkoutVehicle() {\r\n return this.http.post( \"/api/vehicles\", this.vehicle,{\r\n })\r\n .pipe( map( response => {\r\n this.vehicle = new Vehicle();\r\n return true;\r\n }));\r\n }\r\n\r\n loadVehicles(): Observable {\r\n return this.http.get( \"/api/vehicles\")\r\n .pipe( map( (data: any[]) => {\r\n this.vehicles = data;\r\n return true;\r\n }));\r\n }\r\n\r\n getExistingVehicle( id ) {\r\n var url: string = \"/api/vehicles/\" + id.toString();\r\n return this.http.get( url ).pipe( map( ( response: Vehicle ) => {\r\n if( response.vehicleId == id )\r\n return true;\r\n }));\r\n }\r\n \r\n updateVehicle( vehicle ) {\r\n var url: string = \"/api/vehicles/\" + vehicle.vehicleId.toString();\r\n return this.http.put( url, this.vehicle ) \r\n .pipe( map( ( response: Vehicle ) => {\r\n this.vehicle = new Vehicle();\r\n return true;\r\n }));\r\n }\r\n \r\n loadVehicle( vehicle ) {\r\n var url: string = \"/api/vehicles/\" + vehicle.vehicleId.toString();\r\n return this.http.get( url ).pipe( map( ( response: Vehicle ) => {\r\n this.vehicle = response;\r\n return true;\r\n }));\r\n }\r\n \r\n removeMod( vehicle, id ) {\r\n var url: string = \"/api/vehicles/\" + vehicle.vehicleId.toString() + \"/mods/\" + id;\r\n return this.http.delete( url ).pipe(\r\n map( ( response: Modification ) => {\r\n this.modification = new Modification();\r\n return true;\r\n })\r\n );\r\n }\r\n \r\n addMod( vehicle, id ) {\r\n var url: string = \"/api/vehicles/\" + vehicle.vehicleId.toString() + \"/mods\";\r\n return this.http.post( url, this.modification ).pipe(\r\n map( ( response: Modification ) => {\r\n this.modification = new Modification();\r\n return true;\r\n })\r\n );\r\n }\r\n \r\n deleteVehicle( vehicle ) {\r\n var url: string = \"/api/vehicles/\" + vehicle.vehicleId.toString();\r\n this.http.delete( url );\r\n return this.http.delete( url ).pipe( \r\n map( ( response: Vehicle ) => {\r\n this.vehicle = new Vehicle();\r\n return true;\r\n })\r\n );\r\n }\r\n \r\n loadModifications(): Observable {\r\n return this.http.get( \"/api/mods\")\r\n .pipe( map( (data:any[]) => {\r\n this.modifications = data;\r\n return true;\r\n }));\r\n }\r\n \r\n getExistingVehicleMod( vehicleId : number, i: number ) {\r\n var url: string = \"/api/vehicles/\" + vehicleId.toString() + \"/mods/\" + i.toString();\r\n return this.http.get( url ).pipe( map( ( response ) => {\r\n return true;\r\n }));\r\n }\r\n\r\n getModsForVehicle(vehicleId: number) {\r\n var url: string = \"/api/vehicles/\" + vehicleId.toString() + \"/mods\";\r\n return this.http.get( url ).pipe( map( ( data: any[] ) => {\r\n this.modifications = data;\r\n }));\r\n }\r\n\r\n addModToVehicle( vehicleId: number ) {\r\n var url: string = \"/api/vehicles/\" + vehicleId.toString() + \"/mods\";\r\n return this.http.post( url, this.modification ).pipe( map( ( response: Modification ) => {\r\n this.modification = new Modification();\r\n return true;\r\n }));\r\n }\r\n}","import {Component, OnInit} from \"@angular/core\";\r\nimport {DataService} from \"../shared/dataService\";\r\nimport {Modification} from \"../shared/modification\";\r\nimport {Vehicle} from \"../shared/vehicle\";\r\nimport {Router} from \"@angular/router\";\r\n\r\n@Component({\r\n selector: \"modification-list\",\r\n templateUrl: \"modificationList.component.html\",\r\n styleUrls: [\"modificationList.component.css\"]\r\n})\r\n\r\nexport class ModificationList implements OnInit {\r\n constructor(private data: DataService, public router: Router) {\r\n this.modifications = data.modifications;\r\n this.data = data;\r\n this.vehicle = data.vehicle;\r\n }\r\n\r\n public modifications: Modification[] = [];\r\n public vehicle = new Vehicle();\r\n public errorMessage = \"\";\r\n\r\n ngOnInit() {\r\n this.data.loadModifications().subscribe(() =>\r\n this.modifications = this.data.modifications);\r\n }\r\n\r\n public addModToVehicle(id) {\r\n this.data.addMod(this.vehicle, id).subscribe(success => {\r\n if (success) {\r\n }\r\n }, err => this.errorMessage = \"Failed to add modification to vehicle.\")\r\n }\r\n\r\n public removeModFromVehicle(id) {\r\n this.data.removeMod(this.vehicle, id).subscribe(success => {\r\n if (success) {\r\n }\r\n }, err => this.errorMessage = \"Failed to remove modification from vehicle.\")\r\n }\r\n\r\n}","

Modifications

\r\n
\r\n
\r\n
\r\n

Available

\r\n
\r\n
{{ m.modificationName}}
\r\n
Horsepower Gains: {{m.horsepower}}
\r\n
Torque: {{m.torque}}
\r\n \r\n
\r\n
\r\n
\r\n

Installed

\r\n
\r\n
{{ i.modificationName}}
\r\n
Horsepower Gained: {{i.horsepower}}
\r\n
Torque Gained:{{i.torque}}
\r\n \r\n
\r\n
\r\n
\r\n
","import {Modification} from \"./modification\";\r\n\r\nexport class Vehicle {\r\n \r\n vehicleId: number;\r\n ownerName: string;\r\n engineRunning: boolean;\r\n date: Date;\r\n fileName: string;\r\n vehicleType: number;\r\n horsepower: number;\r\n torque: number;\r\n modifications: Modification[];\r\n}\r\n","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 = \"zn8P\";"],"sourceRoot":"webpack:///"}