main.js.map 22KB

1
  1. {"version":3,"sources":["../../src/pages/add-destination/add-destination.ts","../../src/pages/destination-details/destination-details.ts","../../src/pages/login/login.ts","../../src/pages/profile/profile.ts","../../src/pages/signup/signup.ts","../../node_modules/@angular/core/esm5 lazy","../../src lazy","../../src/pages/home/home.ts","../../src/app/main.ts","../../src/app/app.module.ts","../../src/app/app.component.ts","../../src/services/destination-service/destination-service.ts","../../src/pages/map/map.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAA0C;AACe;AACW;AACwB;AAEvD;AAGrC;;;;;GAKG;AAOH;IAeE,4BAAmB,OAAsB,EAAS,SAAoB,EAC5D,WAAwB,EAAS,kBAAsC;QAD9D,YAAO,GAAP,OAAO,CAAe;QAAS,cAAS,GAAT,SAAS,CAAW;QAC5D,gBAAW,GAAX,WAAW,CAAa;QAAS,uBAAkB,GAAlB,kBAAkB,CAAoB;QAZjF,YAAO,GAAa;YAClB,EAAE,EAAG,CAAC;YACN,QAAQ,EAAG,SAAS;YACpB,QAAQ,EAAG,EAAE;YACb,WAAW,EAAG,EAAE;YAChB,WAAW,EAAG,EAAE;YAChB,SAAS,EAAG,EAAE;YACd,UAAU,EAAG,IAAI;YACjB,IAAI,EAAG,IAAI;SACZ,CAAC;QAIA,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;YAC5C,gBAAgB,EAAE,CAAC,EAAE,EAAE,kEAAU,CAAC,QAAQ,CAAC;YAC3C,IAAI,EAAE,CAAC,EAAE,EAAE,kEAAU,CAAC,QAAQ,CAAC;YAC/B,OAAO,EAAE,CAAC,EAAE,EAAE,kEAAU,CAAC,QAAQ,CAAC;SACnC,CAAC,CAAC;IACL,CAAC;IAED,2CAAc,GAAd;QACE,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IACnD,CAAC;IAED,8CAAiB,GAAjB;QAAA,iBAQC;QAPC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,eAAe,CA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kB,EAAE,CAAC,SAAS,CAAC,sBAAY,IAAI,YAAI,CAAC,YAAY,GAAG,YAAY,EAAhC,CAAgC,EACrG,aAAG;YACH,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC,CAAC;IACJ,CAAC;IAED,oCAAkB,GAAlB;QACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4FAAkB,CAAC,CAAC;IACxC,CAAC;IArCU,OAAO;QAJnB,wEAAS,CAAC;YACT,QAAQ,EAAE,UAAU;WACG;SACxB,CAAC;6EAMyC;YACrB,6GAAS;YACA,yEAAkB;YACnB,IAAiB;OARlC,OAAO,CAyCnB;IAAD,CAAC;AAAA;SAzCY,OAAO,e","file":"main.js","sourcesContent":["import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { DestinationService } from '../../services/destination-service/destination-service';\nimport { Destination } from '../../model/destination-model';\nimport { MapPage } from '../map/map';\nimport { Profile } from '../../model/profile-model';\n\n/**\n * Generated class for the AddDestinationPage page.\n *\n * See https://ionicframework.com/docs/components/#navigation for more info on\n * Ionic pages and navigation.\n */\n\n@IonicPage()\n@Component({\n selector: 'page-add-destination',\n templateUrl: 'add-destination.html',\n})\nexport class AddDestinationPage {\n\n destinationForm: FormGroup;\n destination: Destination;\n profile : Profile = { \n id : 1,\n userName : \"JohnDoe\",\n homeCity : \"\",\n homeCountry : \"\",\n description : \"\",\n imagePath : \"\",\n friendList : null,\n user : null\n };\n\n constructor(public navCtrl: NavController, public navParams: NavParams, \n private formBuilder: FormBuilder, public destinationService: DestinationService) {\n this.destinationForm = this.formBuilder.group({\n destinationState: ['', Validators.required],\n city: ['', Validators.required],\n country: ['', Validators.required]\n });\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad AddDestinationPage');\n }\n\n createDestination() {\n this.destination = this.destinationForm.value;\n this.destination.profile = this.profile;\n this.destinationService.createDestination(this.destination).subscribe(data => this.destination = data as Destination,\n err => {\n console.log(err);\n })\n this.navCtrl.push(MapPage);\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/add-destination/add-destination.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\n\n/**\n * Generated class for the DestinationDetailsPage page.\n *\n * See https://ionicframework.com/docs/components/#navigation for more info on\n * Ionic pages and navigation.\n */\n\n@IonicPage()\n@Component({\n selector: 'page-destination-details',\n templateUrl: 'destination-details.html',\n})\nexport class DestinationDetailsPage {\n\n public destination: any = {};\n\n constructor(public navCtrl: NavController, public navParams: NavParams) { }\n\n ionViewDidLoad() {\n this.destination = this.navParams.data;\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/destination-details/destination-details.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\nimport { ProfilePage } from '../profile/profile';\nimport { SignupPage } from '../signup/signup';\n\n@IonicPage()\n@Component({\n selector: 'page-login',\n templateUrl: 'login.html',\n})\nexport class LoginPage {\n\n constructor(public navCtrl: NavController, public navParams: NavParams) {\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad LoginPage');\n }\n\n goToProfile() {\n this.navCtrl.push(ProfilePage)\n }\n\n goToSignup() {\n this.navCtrl.push(SignupPage)\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/login/login.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\nimport { MapPage } from '../map/map';\n\n/**\n * Generated class for the ProfilePage page.\n *\n * See https://ionicframework.com/docs/components/#navigation for more info on\n * Ionic pages and navigation.\n */\n\n@IonicPage()\n@Component({\n selector: 'page-profile',\n templateUrl: 'profile.html',\n})\nexport class ProfilePage {\n\n constructor(public navCtrl: NavController, public navParams: NavParams) {\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad ProfilePage');\n }\n\n goToMap() {\n this.navCtrl.push(MapPage)\n }\n \n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/profile/profile.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\n\n/**\n * Generated class for the SignupPage page.\n *\n * See https://ionicframework.com/docs/components/#navigation for more info on\n * Ionic pages and navigation.\n */\n\n@IonicPage()\n@Component({\n selector: 'page-signup',\n templateUrl: 'signup.html',\n})\nexport class SignupPage {\n\n constructor(public navCtrl: NavController, public navParams: NavParams) {\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad SignupPage');\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/signup/signup.ts","function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncatched exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 164;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@angular/core/esm5 lazy\n// module id = 164\n// module chunks = 6","var map = {\n\t\"../pages/add-destination/add-destination.module\": [\n\t\t679,\n\t\t5\n\t],\n\t\"../pages/destination-details/destination-details.module\": [\n\t\t680,\n\t\t4\n\t],\n\t\"../pages/login/login.module\": [\n\t\t682,\n\t\t3\n\t],\n\t\"../pages/map/map.module\": [\n\t\t681,\n\t\t2\n\t],\n\t\"../pages/profile/profile.module\": [\n\t\t683,\n\t\t1\n\t],\n\t\"../pages/signup/signup.module\": [\n\t\t684,\n\t\t0\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tvar ids = map[req];\n\tif(!ids)\n\t\treturn Promise.reject(new Error(\"Cannot find module '\" + req + \"'.\"));\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(ids[0]);\n\t});\n};\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 209;\nmodule.exports = webpackAsyncContext;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src lazy\n// module id = 209\n// module chunks = 6","import { Component } from '@angular/core';\nimport { NavController } from 'ionic-angular';\nimport { LoginPage } from '../login/login';\n\n@Component({\n selector: 'page-home',\n templateUrl: 'home.html'\n})\nexport class HomePage {\n\n constructor(public navCtrl: NavController) {\n\n }\n\n goToLogin(){\n this.navCtrl.push(LoginPage)\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/home/home.ts","import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app.module';\n\nplatformBrowserDynamic().bootstrapModule(AppModule);\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/main.ts","import { BrowserModule } from '@angular/platform-browser';\nimport { ErrorHandler, NgModule } from '@angular/core';\nimport { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';\nimport { SplashScreen } from '@ionic-native/splash-screen';\nimport { StatusBar } from '@ionic-native/status-bar';\nimport { HttpModule } from '@angular/http';\n\nimport { MyApp } from './app.component';\nimport { HomePage } from '../pages/home/home';\n\nimport { LoginPage } from '../pages/login/login';\nimport { SignupPage } from '../pages/signup/signup';\nimport { ProfilePage } from '../pages/profile/profile';\nimport { MapPage } from '../pages/map/map';\nimport { DestinationDetailsPage } from '../pages/destination-details/destination-details';\nimport { AddDestinationPage } from '../pages/add-destination/add-destination';\nimport { DestinationService } from '../services/destination-service/destination-service';\n\nconst config = {\n issuer: 'https://dev-270119.oktapreview.com/oauth2/default',\n redirectUri: 'http://localhost:8100/implicit/callback',\n clientId: '0oafqd6lpsD4ECG5k0h7'\n}\n\n@NgModule({\n declarations: [\n MyApp,\n HomePage,\n LoginPage,\n SignupPage,\n ProfilePage,\n MapPage,\n AddDestinationPage,\n DestinationDetailsPage\n ],\n imports: [\n BrowserModule,\n HttpModule,\n IonicModule.forRoot(MyApp)\n ],\n bootstrap: [IonicApp],\n entryComponents: [\n MyApp,\n HomePage,\n LoginPage,\n SignupPage,\n ProfilePage,\n MapPage,\n AddDestinationPage,\n DestinationDetailsPage\n ],\n providers: [\n StatusBar,\n SplashScreen,\n DestinationService,\n {provide: ErrorHandler, useClass: IonicErrorHandler},\n ]\n})\nexport class AppModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.module.ts","import { Component } from '@angular/core';\nimport { Platform } from 'ionic-angular';\nimport { StatusBar } from '@ionic-native/status-bar';\nimport { SplashScreen } from '@ionic-native/splash-screen';\n\nimport { HomePage } from '../pages/home/home';\n@Component({\n templateUrl: 'app.html'\n})\nexport class MyApp {\n rootPage:any = HomePage;\n\n constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {\n platform.ready().then(() => {\n // Okay, so the platform is ready and our plugins are available.\n // Here you can do any higher level native things you might need.\n statusBar.styleDefault();\n splashScreen.hide();\n });\n }\n}\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.component.ts","import { Http, Response, Headers, RequestOptions } from '@angular/http'\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Destination } from '../../model/destination-model';\n\nimport 'rxjs/add/operator/map';\nimport 'rxjs/add/operator/catch';\n\n/*\n Generated class for the DestinationsApiProvider provider.\n\n See https://angular.io/guide/dependency-injection for more info on providers\n and Angular DI.\n*/\n@Injectable()\nexport class DestinationService {\n \n private destinationUrl = \"http://localhost:9090/api/v1/destinations\"\n\n constructor(private http: Http) {\n }\n\n //CREATE\n createDestination(body: Object): Observable<Destination> {\n let bodyString = JSON.stringify(body);\n let headers = new Headers({ 'Content-Type' : 'application/json' });\n let options = new RequestOptions({ headers: headers });\n return this.http.post(this.destinationUrl, bodyString, options).map((res:Response) => res.json())\n .catch((error:any) => Observable.throw(error.json().error || 'Server error'));\n }\n\n //READ\n getAllDestinations() : Observable<Destination[]> {\n return this.http.get(this.destinationUrl).map((res:Response) => res.json())\n .catch((error:any) => Observable.throw(error.json().error || 'Server error'));\n }\n\n getDestinationById(destinationId) : Observable<Destination> {\n return this.http.get(`this.destinationUrl/${destinationId}`)\n .map(response => {\n return response.json();\n })\n }\n\n //UPDATE\n updateDestination(body: Object): Observable<Destination> {\n let bodyString = JSON.stringify(body);\n let headers = new Headers({ 'Content-Type' : 'application/json' });\n let options = new RequestOptions({ headers: headers });\n return this.http.put(`${this.destinationUrl}/${body['id']}`, body, options).map((res:Response) => res.json())\n .catch((error:any) => Observable.throw(error.json().error || 'Server error'));\n }\n\n //DELETE\n deleteDestination(id:string): Observable<Destination> {\n return this.http.delete(`${this.destinationUrl}/${id}`).map((res:Response) => res.json())\n .catch((error:any) => Observable.throw(error.json().error || 'Server error'));\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/services/destination-service/destination-service.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams, LoadingController } from 'ionic-angular';\nimport { DestinationDetailsPage } from '../destination-details/destination-details';\nimport { AddDestinationPage } from '../add-destination/add-destination';\nimport { DestinationService } from '../../services/destination-service/destination-service';\n\n@IonicPage()\n@Component({\n selector: 'page-map',\n templateUrl: 'map.html',\n})\nexport class MapPage {\n\n public destinations: any = [];\n public destination: any = {};\n\n constructor(public navCtrl: NavController, \n public navParams: NavParams,\n public destinationService: DestinationService,\n public loadingController: LoadingController) {\n }\n\n ionViewDidLoad() {\n\n let loader = this.loadingController.create({\n content: 'Getting destinations...'\n });\n\n loader.present().then(() => {\n this.getAllDestinations();\n loader.dismiss();\n });\n\n }\n\n goToDestinationDetails($event, destination){\n this.navCtrl.push(DestinationDetailsPage, destination);\n }\n\n getAllDestinations() {\n this.destinationService.getAllDestinations().subscribe(destinations => this.destinations = destinations,\n err => {\n console.log(err);\n })\n }\n\n goToAddDestination() {\n this.navCtrl.push(AddDestinationPage);\n }\n\n \n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/map/map.ts"],"sourceRoot":""}