|
@@ -1,15 +1,15 @@
|
1
|
1
|
webpackJsonp([6],{
|
2
|
2
|
|
3
|
|
-/***/ 149:
|
|
3
|
+/***/ 151:
|
4
|
4
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5
|
5
|
|
6
|
6
|
"use strict";
|
7
|
7
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AddDestinationPage; });
|
8
|
8
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
9
|
9
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
10
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(25);
|
11
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_destination_service_destination_service__ = __webpack_require__(85);
|
12
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__map_map__ = __webpack_require__(86);
|
|
10
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(21);
|
|
11
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_destination_service_destination_service__ = __webpack_require__(86);
|
|
12
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__map_map__ = __webpack_require__(62);
|
13
|
13
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
14
|
14
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
15
|
15
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -24,12 +24,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
24
|
24
|
|
25
|
25
|
|
26
|
26
|
|
27
|
|
-/**
|
28
|
|
- * Generated class for the AddDestinationPage page.
|
29
|
|
- *
|
30
|
|
- * See https://ionicframework.com/docs/components/#navigation for more info on
|
31
|
|
- * Ionic pages and navigation.
|
32
|
|
- */
|
33
|
27
|
var AddDestinationPage = /** @class */ (function () {
|
34
|
28
|
function AddDestinationPage(navCtrl, navParams, formBuilder, destinationService) {
|
35
|
29
|
this.navCtrl = navCtrl;
|
|
@@ -78,7 +72,7 @@ var AddDestinationPage = /** @class */ (function () {
|
78
|
72
|
|
79
|
73
|
/***/ }),
|
80
|
74
|
|
81
|
|
-/***/ 150:
|
|
75
|
+/***/ 152:
|
82
|
76
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
83
|
77
|
|
84
|
78
|
"use strict";
|
|
@@ -124,15 +118,15 @@ var DestinationDetailsPage = /** @class */ (function () {
|
124
|
118
|
|
125
|
119
|
/***/ }),
|
126
|
120
|
|
127
|
|
-/***/ 151:
|
|
121
|
+/***/ 153:
|
128
|
122
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
129
|
123
|
|
130
|
124
|
"use strict";
|
131
|
125
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoginPage; });
|
132
|
126
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
133
|
127
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
134
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__profile_profile__ = __webpack_require__(152);
|
135
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__signup_signup__ = __webpack_require__(153);
|
|
128
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__profile_profile__ = __webpack_require__(154);
|
|
129
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__signup_signup__ = __webpack_require__(155);
|
136
|
130
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
137
|
131
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
138
|
132
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -173,14 +167,14 @@ var LoginPage = /** @class */ (function () {
|
173
|
167
|
|
174
|
168
|
/***/ }),
|
175
|
169
|
|
176
|
|
-/***/ 152:
|
|
170
|
+/***/ 154:
|
177
|
171
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
178
|
172
|
|
179
|
173
|
"use strict";
|
180
|
174
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ProfilePage; });
|
181
|
175
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
182
|
176
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
183
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__map_map__ = __webpack_require__(86);
|
|
177
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__map_map__ = __webpack_require__(62);
|
184
|
178
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
185
|
179
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
186
|
180
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -223,13 +217,16 @@ var ProfilePage = /** @class */ (function () {
|
223
|
217
|
|
224
|
218
|
/***/ }),
|
225
|
219
|
|
226
|
|
-/***/ 153:
|
|
220
|
+/***/ 155:
|
227
|
221
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
228
|
222
|
|
229
|
223
|
"use strict";
|
230
|
224
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SignupPage; });
|
231
|
225
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
232
|
226
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
|
227
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_user_service_signup_service__ = __webpack_require__(156);
|
|
228
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_forms__ = __webpack_require__(21);
|
|
229
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__map_map__ = __webpack_require__(62);
|
233
|
230
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
234
|
231
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
235
|
232
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -241,25 +238,42 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
241
|
238
|
};
|
242
|
239
|
|
243
|
240
|
|
244
|
|
-/**
|
245
|
|
- * Generated class for the SignupPage page.
|
246
|
|
- *
|
247
|
|
- * See https://ionicframework.com/docs/components/#navigation for more info on
|
248
|
|
- * Ionic pages and navigation.
|
249
|
|
- */
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
250
|
244
|
var SignupPage = /** @class */ (function () {
|
251
|
|
- function SignupPage(navCtrl, navParams) {
|
|
245
|
+ function SignupPage(navCtrl, navParams, signupService, formBuilder) {
|
252
|
246
|
this.navCtrl = navCtrl;
|
253
|
247
|
this.navParams = navParams;
|
|
248
|
+ this.signupService = signupService;
|
|
249
|
+ this.formBuilder = formBuilder;
|
|
250
|
+ this.signupForm = this.formBuilder.group({
|
|
251
|
+ userName: ['', __WEBPACK_IMPORTED_MODULE_3__angular_forms__["f" /* Validators */].required],
|
|
252
|
+ firstName: ['', __WEBPACK_IMPORTED_MODULE_3__angular_forms__["f" /* Validators */].required],
|
|
253
|
+ lastName: ['', __WEBPACK_IMPORTED_MODULE_3__angular_forms__["f" /* Validators */].required],
|
|
254
|
+ email: ['', __WEBPACK_IMPORTED_MODULE_3__angular_forms__["f" /* Validators */].required],
|
|
255
|
+ password: ['', __WEBPACK_IMPORTED_MODULE_3__angular_forms__["f" /* Validators */].required],
|
|
256
|
+ passwordReEntry: ['', __WEBPACK_IMPORTED_MODULE_3__angular_forms__["f" /* Validators */].required]
|
|
257
|
+ });
|
254
|
258
|
}
|
255
|
259
|
SignupPage.prototype.ionViewDidLoad = function () {
|
256
|
260
|
console.log('ionViewDidLoad SignupPage');
|
257
|
261
|
};
|
|
262
|
+ SignupPage.prototype.createUser = function () {
|
|
263
|
+ var _this = this;
|
|
264
|
+ this.user.firstName = this.signupForm.controls.firstName.value;
|
|
265
|
+ this.user.lastName = this.signupForm.controls.lastName.value;
|
|
266
|
+ this.signupService.createUser(this.user).subscribe(function (data) { return _this.user = data; }, function (err) {
|
|
267
|
+ console.log(err);
|
|
268
|
+ });
|
|
269
|
+ this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_4__map_map__["a" /* MapPage */]);
|
|
270
|
+ };
|
258
|
271
|
SignupPage = __decorate([
|
259
|
272
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
260
|
|
- selector: 'page-signup',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/signup/signup.html"*/'<ion-header>\n\n <ion-navbar>\n <ion-title>Sign Up</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <form [formGroup]="signupForm">\n <ion-item>\n <ion-label stacked>Username</ion-label>\n <ion-input formControlName="userName" type="text" placeholder="Username" required #userName></ion-input>\n </ion-item>\n \n <ion-item>\n <ion-label stacked>First name</ion-label>\n <ion-input placeholder="First Name" type="text" required #firstName></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label stacked>Last name</ion-label>\n <ion-input placeholder="Last Name" type="text" required #lastName></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label stacked>E-mail</ion-label>\n <ion-input placeholder="Email" type="text" required #email></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label stacked>Password</ion-label>\n <ion-input placeholder="Password" type="text" required #password></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label stacked>Re-enter password</ion-label>\n <ion-input placeholder="Re-enter Password" type="text" required #passwordreentry></ion-input>\n </ion-item>\n\n <button ion-button full color="primary" style="margin-top: 20px;" \n type="submit" [disabled]="!destinationForm.valid" (click)=createDestination()>Add</button>\n </form>\n</ion-content>'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/signup/signup.html"*/,
|
|
273
|
+ selector: 'page-signup',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/signup/signup.html"*/'<ion-header>\n\n <ion-navbar>\n <ion-title>Sign Up</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <form [formGroup]="signupForm">\n <ion-item>\n <ion-label stacked>Username</ion-label>\n <ion-input formControlName="userName" type="text"></ion-input>\n </ion-item>\n \n <ion-item>\n <ion-label stacked>First name</ion-label>\n <ion-input formControlName="firstName" type="text"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label stacked>Last name</ion-label>\n <ion-input formControlName="lastName" type="text"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label stacked>E-mail</ion-label>\n <ion-input formControlName="email" type="text"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label stacked>Password</ion-label>\n <ion-input formControlName="password" type="text"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label stacked>Re-enter password</ion-label>\n <ion-input formControlName="passwordReEntry" type="text"></ion-input>\n </ion-item>\n\n <button ion-button full color="primary" style="margin-top: 20px;" \n type="submit" [disabled]="!signupForm.valid" (click)=createUser()>Add</button>\n </form>\n</ion-content>'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/signup/signup.html"*/,
|
261
|
274
|
}),
|
262
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
|
|
275
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */],
|
|
276
|
+ __WEBPACK_IMPORTED_MODULE_2__services_user_service_signup_service__["a" /* SignupService */], __WEBPACK_IMPORTED_MODULE_3__angular_forms__["a" /* FormBuilder */]])
|
263
|
277
|
], SignupPage);
|
264
|
278
|
return SignupPage;
|
265
|
279
|
}());
|
|
@@ -268,7 +282,53 @@ var SignupPage = /** @class */ (function () {
|
268
|
282
|
|
269
|
283
|
/***/ }),
|
270
|
284
|
|
271
|
|
-/***/ 164:
|
|
285
|
+/***/ 156:
|
|
286
|
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
287
|
+
|
|
288
|
+"use strict";
|
|
289
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SignupService; });
|
|
290
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
|
291
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__(310);
|
|
292
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(213);
|
|
293
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);
|
|
294
|
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
295
|
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
296
|
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297
|
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
298
|
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
299
|
+};
|
|
300
|
+var __metadata = (this && this.__metadata) || function (k, v) {
|
|
301
|
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
302
|
+};
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+var SignupService = /** @class */ (function () {
|
|
307
|
+ function SignupService(httpClient) {
|
|
308
|
+ this.httpClient = httpClient;
|
|
309
|
+ this.userUrl = "http://localhost:9090/api/v1/users";
|
|
310
|
+ }
|
|
311
|
+ //CREATE
|
|
312
|
+ SignupService.prototype.createUser = function (user) {
|
|
313
|
+ return this.httpClient
|
|
314
|
+ .post(this.userUrl, user)
|
|
315
|
+ .catch(function (err) {
|
|
316
|
+ console.error('An error occurred: ', err.error);
|
|
317
|
+ return __WEBPACK_IMPORTED_MODULE_2_rxjs__["Observable"].throw(err.statusText);
|
|
318
|
+ });
|
|
319
|
+ };
|
|
320
|
+ SignupService = __decorate([
|
|
321
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
|
|
322
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_common_http__["a" /* HttpClient */]])
|
|
323
|
+ ], SignupService);
|
|
324
|
+ return SignupService;
|
|
325
|
+}());
|
|
326
|
+
|
|
327
|
+//# sourceMappingURL=signup-service.js.map
|
|
328
|
+
|
|
329
|
+/***/ }),
|
|
330
|
+
|
|
331
|
+/***/ 167:
|
272
|
332
|
/***/ (function(module, exports) {
|
273
|
333
|
|
274
|
334
|
function webpackEmptyAsyncContext(req) {
|
|
@@ -281,36 +341,36 @@ function webpackEmptyAsyncContext(req) {
|
281
|
341
|
webpackEmptyAsyncContext.keys = function() { return []; };
|
282
|
342
|
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
283
|
343
|
module.exports = webpackEmptyAsyncContext;
|
284
|
|
-webpackEmptyAsyncContext.id = 164;
|
|
344
|
+webpackEmptyAsyncContext.id = 167;
|
285
|
345
|
|
286
|
346
|
/***/ }),
|
287
|
347
|
|
288
|
|
-/***/ 209:
|
|
348
|
+/***/ 211:
|
289
|
349
|
/***/ (function(module, exports, __webpack_require__) {
|
290
|
350
|
|
291
|
351
|
var map = {
|
292
|
352
|
"../pages/add-destination/add-destination.module": [
|
293
|
|
- 679,
|
|
353
|
+ 681,
|
294
|
354
|
5
|
295
|
355
|
],
|
296
|
356
|
"../pages/destination-details/destination-details.module": [
|
297
|
|
- 680,
|
|
357
|
+ 682,
|
298
|
358
|
4
|
299
|
359
|
],
|
300
|
360
|
"../pages/login/login.module": [
|
301
|
|
- 681,
|
|
361
|
+ 683,
|
302
|
362
|
3
|
303
|
363
|
],
|
304
|
364
|
"../pages/map/map.module": [
|
305
|
|
- 682,
|
|
365
|
+ 684,
|
306
|
366
|
2
|
307
|
367
|
],
|
308
|
368
|
"../pages/profile/profile.module": [
|
309
|
|
- 684,
|
|
369
|
+ 685,
|
310
|
370
|
1
|
311
|
371
|
],
|
312
|
372
|
"../pages/signup/signup.module": [
|
313
|
|
- 683,
|
|
373
|
+ 686,
|
314
|
374
|
0
|
315
|
375
|
]
|
316
|
376
|
};
|
|
@@ -325,19 +385,19 @@ function webpackAsyncContext(req) {
|
325
|
385
|
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
|
326
|
386
|
return Object.keys(map);
|
327
|
387
|
};
|
328
|
|
-webpackAsyncContext.id = 209;
|
|
388
|
+webpackAsyncContext.id = 211;
|
329
|
389
|
module.exports = webpackAsyncContext;
|
330
|
390
|
|
331
|
391
|
/***/ }),
|
332
|
392
|
|
333
|
|
-/***/ 349:
|
|
393
|
+/***/ 354:
|
334
|
394
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
335
|
395
|
|
336
|
396
|
"use strict";
|
337
|
397
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
|
338
|
398
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
339
|
399
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
340
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__login_login__ = __webpack_require__(151);
|
|
400
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__login_login__ = __webpack_require__(153);
|
341
|
401
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
342
|
402
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
343
|
403
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -370,13 +430,13 @@ var HomePage = /** @class */ (function () {
|
370
|
430
|
|
371
|
431
|
/***/ }),
|
372
|
432
|
|
373
|
|
-/***/ 350:
|
|
433
|
+/***/ 355:
|
374
|
434
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
375
|
435
|
|
376
|
436
|
"use strict";
|
377
|
437
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
378
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(351);
|
379
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(355);
|
|
438
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(356);
|
|
439
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(360);
|
380
|
440
|
|
381
|
441
|
|
382
|
442
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
|
|
@@ -384,7 +444,7 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
|
384
|
444
|
|
385
|
445
|
/***/ }),
|
386
|
446
|
|
387
|
|
-/***/ 355:
|
|
447
|
+/***/ 360:
|
388
|
448
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
389
|
449
|
|
390
|
450
|
"use strict";
|
|
@@ -392,18 +452,20 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
|
392
|
452
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(40);
|
393
|
453
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(1);
|
394
|
454
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(29);
|
395
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(345);
|
396
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(348);
|
397
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_http__ = __webpack_require__(210);
|
398
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__app_component__ = __webpack_require__(678);
|
399
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_home_home__ = __webpack_require__(349);
|
400
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_login_login__ = __webpack_require__(151);
|
401
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_signup_signup__ = __webpack_require__(153);
|
402
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_profile_profile__ = __webpack_require__(152);
|
403
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_map_map__ = __webpack_require__(86);
|
404
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_destination_details_destination_details__ = __webpack_require__(150);
|
405
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__pages_add_destination_add_destination__ = __webpack_require__(149);
|
406
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__services_destination_service_destination_service__ = __webpack_require__(85);
|
|
455
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(350);
|
|
456
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(353);
|
|
457
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_http__ = __webpack_require__(212);
|
|
458
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__app_component__ = __webpack_require__(680);
|
|
459
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_home_home__ = __webpack_require__(354);
|
|
460
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_login_login__ = __webpack_require__(153);
|
|
461
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_signup_signup__ = __webpack_require__(155);
|
|
462
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_profile_profile__ = __webpack_require__(154);
|
|
463
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_map_map__ = __webpack_require__(62);
|
|
464
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_destination_details_destination_details__ = __webpack_require__(152);
|
|
465
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__pages_add_destination_add_destination__ = __webpack_require__(151);
|
|
466
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__services_destination_service_destination_service__ = __webpack_require__(86);
|
|
467
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__services_user_service_signup_service__ = __webpack_require__(156);
|
|
468
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__angular_common_http__ = __webpack_require__(310);
|
407
|
469
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
408
|
470
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
409
|
471
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -425,6 +487,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
425
|
487
|
|
426
|
488
|
|
427
|
489
|
|
|
490
|
+
|
|
491
|
+
|
428
|
492
|
var config = {
|
429
|
493
|
issuer: 'https://dev-270119.oktapreview.com/oauth2/default',
|
430
|
494
|
redirectUri: 'http://localhost:8100/implicit/callback',
|
|
@@ -448,14 +512,15 @@ var AppModule = /** @class */ (function () {
|
448
|
512
|
imports: [
|
449
|
513
|
__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
|
450
|
514
|
__WEBPACK_IMPORTED_MODULE_5__angular_http__["c" /* HttpModule */],
|
|
515
|
+ __WEBPACK_IMPORTED_MODULE_16__angular_common_http__["b" /* HttpClientModule */],
|
451
|
516
|
__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_6__app_component__["a" /* MyApp */], {}, {
|
452
|
517
|
links: [
|
453
|
518
|
{ loadChildren: '../pages/add-destination/add-destination.module#AddDestinationPageModule', name: 'AddDestinationPage', segment: 'add-destination', priority: 'low', defaultHistory: [] },
|
454
|
519
|
{ loadChildren: '../pages/destination-details/destination-details.module#DestinationDetailsPageModule', name: 'DestinationDetailsPage', segment: 'destination-details', priority: 'low', defaultHistory: [] },
|
455
|
520
|
{ loadChildren: '../pages/login/login.module#LoginPageModule', name: 'LoginPage', segment: 'login', priority: 'low', defaultHistory: [] },
|
456
|
521
|
{ loadChildren: '../pages/map/map.module#MapPageModule', name: 'MapPage', segment: 'map', priority: 'low', defaultHistory: [] },
|
457
|
|
- { loadChildren: '../pages/signup/signup.module#SignupPageModule', name: 'SignupPage', segment: 'signup', priority: 'low', defaultHistory: [] },
|
458
|
|
- { loadChildren: '../pages/profile/profile.module#ProfilePageModule', name: 'ProfilePage', segment: 'profile', priority: 'low', defaultHistory: [] }
|
|
522
|
+ { loadChildren: '../pages/profile/profile.module#ProfilePageModule', name: 'ProfilePage', segment: 'profile', priority: 'low', defaultHistory: [] },
|
|
523
|
+ { loadChildren: '../pages/signup/signup.module#SignupPageModule', name: 'SignupPage', segment: 'signup', priority: 'low', defaultHistory: [] }
|
459
|
524
|
]
|
460
|
525
|
})
|
461
|
526
|
],
|
|
@@ -474,6 +539,7 @@ var AppModule = /** @class */ (function () {
|
474
|
539
|
__WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
|
475
|
540
|
__WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
|
476
|
541
|
__WEBPACK_IMPORTED_MODULE_14__services_destination_service_destination_service__["a" /* DestinationService */],
|
|
542
|
+ __WEBPACK_IMPORTED_MODULE_15__services_user_service_signup_service__["a" /* SignupService */],
|
477
|
543
|
{ provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicErrorHandler */] },
|
478
|
544
|
]
|
479
|
545
|
})
|
|
@@ -485,16 +551,99 @@ var AppModule = /** @class */ (function () {
|
485
|
551
|
|
486
|
552
|
/***/ }),
|
487
|
553
|
|
488
|
|
-/***/ 678:
|
|
554
|
+/***/ 62:
|
|
555
|
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
556
|
+
|
|
557
|
+"use strict";
|
|
558
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MapPage; });
|
|
559
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
|
560
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
|
561
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__destination_details_destination_details__ = __webpack_require__(152);
|
|
562
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__add_destination_add_destination__ = __webpack_require__(151);
|
|
563
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_destination_service_destination_service__ = __webpack_require__(86);
|
|
564
|
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
565
|
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
566
|
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
567
|
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
568
|
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
569
|
+};
|
|
570
|
+var __metadata = (this && this.__metadata) || function (k, v) {
|
|
571
|
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
572
|
+};
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+var MapPage = /** @class */ (function () {
|
|
579
|
+ function MapPage(navCtrl, navParams, destinationService, loadingController) {
|
|
580
|
+ this.navCtrl = navCtrl;
|
|
581
|
+ this.navParams = navParams;
|
|
582
|
+ this.destinationService = destinationService;
|
|
583
|
+ this.loadingController = loadingController;
|
|
584
|
+ this.destinations = [];
|
|
585
|
+ this.destination = {};
|
|
586
|
+ }
|
|
587
|
+ MapPage.prototype.ionViewDidLoad = function () {
|
|
588
|
+ var _this = this;
|
|
589
|
+ var loader = this.loadingController.create({
|
|
590
|
+ content: 'Getting destinations...'
|
|
591
|
+ });
|
|
592
|
+ loader.present().then(function () {
|
|
593
|
+ _this.getAllDestinations();
|
|
594
|
+ loader.dismiss();
|
|
595
|
+ });
|
|
596
|
+ this.initMap();
|
|
597
|
+ };
|
|
598
|
+ MapPage.prototype.initMap = function () {
|
|
599
|
+ var latLng = new google.maps.LatLng(-34.9290, 138.6010);
|
|
600
|
+ var mapOptions = {
|
|
601
|
+ center: latLng,
|
|
602
|
+ zoom: 15,
|
|
603
|
+ mapTypeId: google.maps.MapTypeId.ROADMAP
|
|
604
|
+ };
|
|
605
|
+ this.map = new google.maps.Map(this.mapElement.nativeElement, mapOptions);
|
|
606
|
+ };
|
|
607
|
+ MapPage.prototype.goToDestinationDetails = function ($event, destination) {
|
|
608
|
+ this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__destination_details_destination_details__["a" /* DestinationDetailsPage */], destination);
|
|
609
|
+ };
|
|
610
|
+ MapPage.prototype.getAllDestinations = function () {
|
|
611
|
+ var _this = this;
|
|
612
|
+ this.destinationService.getAllDestinations().subscribe(function (destinations) { return _this.destinations = destinations; }, function (err) {
|
|
613
|
+ console.log(err);
|
|
614
|
+ });
|
|
615
|
+ };
|
|
616
|
+ MapPage.prototype.goToAddDestination = function () {
|
|
617
|
+ this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_3__add_destination_add_destination__["a" /* AddDestinationPage */]);
|
|
618
|
+ };
|
|
619
|
+ __decorate([
|
|
620
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_8" /* ViewChild */])('map'),
|
|
621
|
+ __metadata("design:type", Object)
|
|
622
|
+ ], MapPage.prototype, "mapElement", void 0);
|
|
623
|
+ MapPage = __decorate([
|
|
624
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
|
625
|
+ selector: 'page-map',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/map/map.html"*/'<!-- \n Generated template for the MapPage page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n\n <ion-navbar>\n <ion-title>map</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n <div #map id="map"></div>\n\n <ion-list>\n <ion-item-sliding *ngFor = "let destination of destinations">\n <ion-item>\n <div>{{ destination.city }}</div>\n <div>{{ destination.country }}</div>\n <button ion-button (click)="goToDestinationDetails($event, destination)">Details</button>\n </ion-item>\n </ion-item-sliding>\n </ion-list>\n <button ion-button (click)=goToAddDestination()>Add Destination</button>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/map/map.html"*/,
|
|
626
|
+ }),
|
|
627
|
+ __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_4__services_destination_service_destination_service__["a" /* DestinationService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_4__services_destination_service_destination_service__["a" /* DestinationService */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* LoadingController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* LoadingController */]) === "function" && _d || Object])
|
|
628
|
+ ], MapPage);
|
|
629
|
+ return MapPage;
|
|
630
|
+ var _a, _b, _c, _d;
|
|
631
|
+}());
|
|
632
|
+
|
|
633
|
+//# sourceMappingURL=map.js.map
|
|
634
|
+
|
|
635
|
+/***/ }),
|
|
636
|
+
|
|
637
|
+/***/ 680:
|
489
|
638
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
490
|
639
|
|
491
|
640
|
"use strict";
|
492
|
641
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
|
493
|
642
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
494
|
643
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
495
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(348);
|
496
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(345);
|
497
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(349);
|
|
644
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(353);
|
|
645
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(350);
|
|
646
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(354);
|
498
|
647
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
499
|
648
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
500
|
649
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -531,18 +680,18 @@ var MyApp = /** @class */ (function () {
|
531
|
680
|
|
532
|
681
|
/***/ }),
|
533
|
682
|
|
534
|
|
-/***/ 85:
|
|
683
|
+/***/ 86:
|
535
|
684
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
536
|
685
|
|
537
|
686
|
"use strict";
|
538
|
687
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DestinationService; });
|
539
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_http__ = __webpack_require__(210);
|
|
688
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_http__ = __webpack_require__(212);
|
540
|
689
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(1);
|
541
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(375);
|
|
690
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(213);
|
542
|
691
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);
|
543
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__ = __webpack_require__(251);
|
|
692
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__ = __webpack_require__(255);
|
544
|
693
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__);
|
545
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_catch__ = __webpack_require__(224);
|
|
694
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_catch__ = __webpack_require__(226);
|
546
|
695
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_catch___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_catch__);
|
547
|
696
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
548
|
697
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -558,12 +707,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
558
|
707
|
|
559
|
708
|
|
560
|
709
|
|
561
|
|
-/*
|
562
|
|
- Generated class for the DestinationsApiProvider provider.
|
563
|
|
-
|
564
|
|
- See https://angular.io/guide/dependency-injection for more info on providers
|
565
|
|
- and Angular DI.
|
566
|
|
-*/
|
567
|
710
|
var DestinationService = /** @class */ (function () {
|
568
|
711
|
function DestinationService(http) {
|
569
|
712
|
this.http = http;
|
|
@@ -610,78 +753,7 @@ var DestinationService = /** @class */ (function () {
|
610
|
753
|
|
611
|
754
|
//# sourceMappingURL=destination-service.js.map
|
612
|
755
|
|
613
|
|
-/***/ }),
|
614
|
|
-
|
615
|
|
-/***/ 86:
|
616
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
617
|
|
-
|
618
|
|
-"use strict";
|
619
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MapPage; });
|
620
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
621
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
622
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__destination_details_destination_details__ = __webpack_require__(150);
|
623
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__add_destination_add_destination__ = __webpack_require__(149);
|
624
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_destination_service_destination_service__ = __webpack_require__(85);
|
625
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
626
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
627
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
628
|
|
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
629
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
630
|
|
-};
|
631
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
632
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
633
|
|
-};
|
634
|
|
-
|
635
|
|
-
|
636
|
|
-
|
637
|
|
-
|
638
|
|
-
|
639
|
|
-var MapPage = /** @class */ (function () {
|
640
|
|
- function MapPage(navCtrl, navParams, destinationService, loadingController) {
|
641
|
|
- this.navCtrl = navCtrl;
|
642
|
|
- this.navParams = navParams;
|
643
|
|
- this.destinationService = destinationService;
|
644
|
|
- this.loadingController = loadingController;
|
645
|
|
- this.destinations = [];
|
646
|
|
- this.destination = {};
|
647
|
|
- }
|
648
|
|
- MapPage.prototype.ionViewDidLoad = function () {
|
649
|
|
- var _this = this;
|
650
|
|
- var loader = this.loadingController.create({
|
651
|
|
- content: 'Getting destinations...'
|
652
|
|
- });
|
653
|
|
- loader.present().then(function () {
|
654
|
|
- _this.getAllDestinations();
|
655
|
|
- loader.dismiss();
|
656
|
|
- });
|
657
|
|
- };
|
658
|
|
- MapPage.prototype.goToDestinationDetails = function ($event, destination) {
|
659
|
|
- this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__destination_details_destination_details__["a" /* DestinationDetailsPage */], destination);
|
660
|
|
- };
|
661
|
|
- MapPage.prototype.getAllDestinations = function () {
|
662
|
|
- var _this = this;
|
663
|
|
- this.destinationService.getAllDestinations().subscribe(function (destinations) { return _this.destinations = destinations; }, function (err) {
|
664
|
|
- console.log(err);
|
665
|
|
- });
|
666
|
|
- };
|
667
|
|
- MapPage.prototype.goToAddDestination = function () {
|
668
|
|
- this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_3__add_destination_add_destination__["a" /* AddDestinationPage */]);
|
669
|
|
- };
|
670
|
|
- MapPage = __decorate([
|
671
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
672
|
|
- selector: 'page-map',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/map/map.html"*/'<!--\n Generated template for the MapPage page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n\n <ion-navbar>\n <ion-title>map</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <ion-list>\n <ion-item-sliding *ngFor = "let destination of destinations">\n <ion-item>\n <div>{{ destination.city }}</div>\n <div>{{ destination.country }}</div>\n <button ion-button (click)="goToDestinationDetails($event, destination)">Details</button>\n </ion-item>\n </ion-item-sliding>\n </ion-list>\n <button ion-button (click)=goToAddDestination()>Add Destination</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/map/map.html"*/,
|
673
|
|
- }),
|
674
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */],
|
675
|
|
- __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */],
|
676
|
|
- __WEBPACK_IMPORTED_MODULE_4__services_destination_service_destination_service__["a" /* DestinationService */],
|
677
|
|
- __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* LoadingController */]])
|
678
|
|
- ], MapPage);
|
679
|
|
- return MapPage;
|
680
|
|
-}());
|
681
|
|
-
|
682
|
|
-//# sourceMappingURL=map.js.map
|
683
|
|
-
|
684
|
756
|
/***/ })
|
685
|
757
|
|
686
|
|
-},[350]);
|
|
758
|
+},[355]);
|
687
|
759
|
//# sourceMappingURL=main.js.map
|