|
|
|
|
1
|
-webpackJsonp([5],{
|
|
|
|
|
1
|
+webpackJsonp([6],{
|
2
|
|
2
|
|
3
|
/***/ 100:
|
3
|
/***/ 100:
|
4
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5
|
|
5
|
|
6
|
"use strict";
|
6
|
"use strict";
|
|
|
7
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DestinationDetailsPage; });
|
|
|
8
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
|
|
9
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
|
|
10
|
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
|
11
|
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
|
12
|
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
13
|
+ 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;
|
|
|
14
|
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
|
15
|
+};
|
|
|
16
|
+var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
17
|
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
|
18
|
+};
|
|
|
19
|
+
|
|
|
20
|
+
|
|
|
21
|
+/**
|
|
|
22
|
+ * Generated class for the DestinationDetailsPage page.
|
|
|
23
|
+ *
|
|
|
24
|
+ * See https://ionicframework.com/docs/components/#navigation for more info on
|
|
|
25
|
+ * Ionic pages and navigation.
|
|
|
26
|
+ */
|
|
|
27
|
+var DestinationDetailsPage = /** @class */ (function () {
|
|
|
28
|
+ function DestinationDetailsPage(navCtrl, navParams) {
|
|
|
29
|
+ this.navCtrl = navCtrl;
|
|
|
30
|
+ this.navParams = navParams;
|
|
|
31
|
+ this.destination = {};
|
|
|
32
|
+ }
|
|
|
33
|
+ DestinationDetailsPage.prototype.ionViewDidLoad = function () {
|
|
|
34
|
+ this.destination = this.navParams.data;
|
|
|
35
|
+ };
|
|
|
36
|
+ DestinationDetailsPage = __decorate([
|
|
|
37
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
|
|
38
|
+ selector: 'page-destination-details',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/destination-details/destination-details.html"*/'<!--\n Generated template for the DestinationDetailsPage 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>{{ destination.city }}, {{ destination.country }}</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/destination-details/destination-details.html"*/,
|
|
|
39
|
+ }),
|
|
|
40
|
+ __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])
|
|
|
41
|
+ ], DestinationDetailsPage);
|
|
|
42
|
+ return DestinationDetailsPage;
|
|
|
43
|
+ var _a, _b;
|
|
|
44
|
+}());
|
|
|
45
|
+
|
|
|
46
|
+//# sourceMappingURL=destination-details.js.map
|
|
|
47
|
+
|
|
|
48
|
+/***/ }),
|
|
|
49
|
+
|
|
|
50
|
+/***/ 101:
|
|
|
51
|
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
52
|
+
|
|
|
53
|
+"use strict";
|
7
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoginPage; });
|
54
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoginPage; });
|
8
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
55
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
9
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(20);
|
|
|
10
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__profile_profile__ = __webpack_require__(101);
|
|
|
11
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__signup_signup__ = __webpack_require__(103);
|
|
|
|
|
56
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
|
|
57
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__profile_profile__ = __webpack_require__(102);
|
|
|
58
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__signup_signup__ = __webpack_require__(105);
|
12
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
59
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
13
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
60
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
14
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
61
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
|
|
40
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
87
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
41
|
selector: 'page-login',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/login/login.html"*/'<!--\n Generated template for the LoginPage 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>Login</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <ion-input placeholder="Email" type="text" required #email></ion-input>\n <ion-input placeholder="Password" type="text" required #password></ion-input>\n <button ion-button (click)=goToProfile()>Login</button>\n <button ion-button (click)=goToSignup()>Sign up</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/login/login.html"*/,
|
88
|
selector: 'page-login',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/login/login.html"*/'<!--\n Generated template for the LoginPage 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>Login</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <ion-input placeholder="Email" type="text" required #email></ion-input>\n <ion-input placeholder="Password" type="text" required #password></ion-input>\n <button ion-button (click)=goToProfile()>Login</button>\n <button ion-button (click)=goToSignup()>Sign up</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/login/login.html"*/,
|
42
|
}),
|
89
|
}),
|
43
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
|
|
|
|
|
90
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
|
44
|
], LoginPage);
|
91
|
], LoginPage);
|
45
|
return LoginPage;
|
92
|
return LoginPage;
|
46
|
}());
|
93
|
}());
|
|
|
|
|
49
|
|
96
|
|
50
|
/***/ }),
|
97
|
/***/ }),
|
51
|
|
98
|
|
52
|
-/***/ 101:
|
|
|
|
|
99
|
+/***/ 102:
|
53
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
100
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
54
|
|
101
|
|
55
|
"use strict";
|
102
|
"use strict";
|
56
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ProfilePage; });
|
103
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ProfilePage; });
|
57
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
104
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
58
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(20);
|
|
|
59
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__map_map__ = __webpack_require__(102);
|
|
|
|
|
105
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
|
|
106
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__map_map__ = __webpack_require__(103);
|
60
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
107
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
61
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
108
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
62
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
109
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
|
|
90
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
137
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
91
|
selector: 'page-profile',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/profile/profile.html"*/'<!--\n Generated template for the ProfilePage 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>profile</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <button ion-button (click)=goToMap()>Map</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/profile/profile.html"*/,
|
138
|
selector: 'page-profile',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/profile/profile.html"*/'<!--\n Generated template for the ProfilePage 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>profile</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <button ion-button (click)=goToMap()>Map</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/profile/profile.html"*/,
|
92
|
}),
|
139
|
}),
|
93
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
|
|
|
|
|
140
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
|
94
|
], ProfilePage);
|
141
|
], ProfilePage);
|
95
|
return ProfilePage;
|
142
|
return ProfilePage;
|
96
|
}());
|
143
|
}());
|
|
|
|
|
99
|
|
146
|
|
100
|
/***/ }),
|
147
|
/***/ }),
|
101
|
|
148
|
|
102
|
-/***/ 102:
|
|
|
|
|
149
|
+/***/ 103:
|
103
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
150
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
104
|
|
151
|
|
105
|
"use strict";
|
152
|
"use strict";
|
106
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MapPage; });
|
153
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MapPage; });
|
107
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
154
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
108
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(20);
|
|
|
109
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__destination_details_destination_details__ = __webpack_require__(99);
|
|
|
|
|
155
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
|
|
156
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__destination_details_destination_details__ = __webpack_require__(100);
|
|
|
157
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_destinations_api_destinations_api__ = __webpack_require__(104);
|
|
|
158
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__add_destination_add_destination__ = __webpack_require__(99);
|
110
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
159
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
111
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
160
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
112
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
161
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
|
|
119
|
|
168
|
|
120
|
|
169
|
|
121
|
|
170
|
|
|
|
171
|
+
|
|
|
172
|
+
|
122
|
/**
|
173
|
/**
|
123
|
* Generated class for the MapPage page.
|
174
|
* Generated class for the MapPage page.
|
124
|
*
|
175
|
*
|
|
|
|
|
126
|
* Ionic pages and navigation.
|
177
|
* Ionic pages and navigation.
|
127
|
*/
|
178
|
*/
|
128
|
var MapPage = /** @class */ (function () {
|
179
|
var MapPage = /** @class */ (function () {
|
129
|
- function MapPage(navCtrl, navParams) {
|
|
|
|
|
180
|
+ function MapPage(navCtrl, navParams, destinationApiProvider, loadingController) {
|
130
|
this.navCtrl = navCtrl;
|
181
|
this.navCtrl = navCtrl;
|
131
|
this.navParams = navParams;
|
182
|
this.navParams = navParams;
|
132
|
- this.destinations = [
|
|
|
133
|
- { id: 1, destinationType: 'past', city: 'Tokyo', country: 'Japan', month: 'Feb ', year: '2018', travelType: 'personal', favoriteThing: 'cleanliness' },
|
|
|
134
|
- { id: 2, destinationType: 'future', city: 'Cape Town', country: 'South Africa', month: '', year: '', travelType: 'personal', favoriteThing: '' },
|
|
|
135
|
- { id: 3, destinationType: 'future', city: 'London', country: 'United Kingdom', month: '', year: '', travelType: 'personal', favoriteThing: '' },
|
|
|
136
|
- ];
|
|
|
|
|
183
|
+ this.destinationApiProvider = destinationApiProvider;
|
|
|
184
|
+ this.loadingController = loadingController;
|
|
|
185
|
+ this.destinations = [];
|
|
|
186
|
+ this.destination = {};
|
137
|
}
|
187
|
}
|
138
|
MapPage.prototype.ionViewDidLoad = function () {
|
188
|
MapPage.prototype.ionViewDidLoad = function () {
|
139
|
- console.log('ionViewDidLoad MapPage');
|
|
|
|
|
189
|
+ var _this = this;
|
|
|
190
|
+ var loader = this.loadingController.create({
|
|
|
191
|
+ content: 'Getting destinations...'
|
|
|
192
|
+ });
|
|
|
193
|
+ loader.present().then(function () {
|
|
|
194
|
+ _this.getAllDestinations();
|
|
|
195
|
+ loader.dismiss();
|
|
|
196
|
+ });
|
140
|
};
|
197
|
};
|
141
|
MapPage.prototype.goToDestinationDetails = function ($event, destination) {
|
198
|
MapPage.prototype.goToDestinationDetails = function ($event, destination) {
|
142
|
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__destination_details_destination_details__["a" /* DestinationDetailsPage */], destination);
|
199
|
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__destination_details_destination_details__["a" /* DestinationDetailsPage */], destination);
|
143
|
};
|
200
|
};
|
|
|
201
|
+ MapPage.prototype.getAllDestinations = function () {
|
|
|
202
|
+ var _this = this;
|
|
|
203
|
+ this.destinationApiProvider.getAllDestinations().subscribe(function (destinations) {
|
|
|
204
|
+ _this.destinations = destinations.json();
|
|
|
205
|
+ });
|
|
|
206
|
+ };
|
|
|
207
|
+ MapPage.prototype.getDestinationById = function () {
|
|
|
208
|
+ var _this = this;
|
|
|
209
|
+ var selectedDestination = this.navParams.data;
|
|
|
210
|
+ this.destinationApiProvider.getDestinationById(selectedDestination.id).subscribe(function (data) {
|
|
|
211
|
+ _this.destination = data.destination;
|
|
|
212
|
+ });
|
|
|
213
|
+ };
|
|
|
214
|
+ MapPage.prototype.goToAddDestination = function () {
|
|
|
215
|
+ this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_4__add_destination_add_destination__["a" /* AddDestinationPage */]);
|
|
|
216
|
+ };
|
144
|
MapPage = __decorate([
|
217
|
MapPage = __decorate([
|
145
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
218
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
146
|
- 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</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/map/map.html"*/,
|
|
|
|
|
219
|
+ 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"*/,
|
147
|
}),
|
220
|
}),
|
148
|
- __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]) === "function" && _b || Object])
|
|
|
|
|
221
|
+ __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_3__providers_destinations_api_destinations_api__["a" /* DestinationsApiProvider */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__providers_destinations_api_destinations_api__["a" /* DestinationsApiProvider */]) === "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])
|
149
|
], MapPage);
|
222
|
], MapPage);
|
150
|
return MapPage;
|
223
|
return MapPage;
|
151
|
- var _a, _b;
|
|
|
|
|
224
|
+ var _a, _b, _c, _d;
|
152
|
}());
|
225
|
}());
|
153
|
|
226
|
|
154
|
//# sourceMappingURL=map.js.map
|
227
|
//# sourceMappingURL=map.js.map
|
155
|
|
228
|
|
156
|
/***/ }),
|
229
|
/***/ }),
|
157
|
|
230
|
|
158
|
-/***/ 103:
|
|
|
|
|
231
|
+/***/ 104:
|
|
|
232
|
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
233
|
+
|
|
|
234
|
+"use strict";
|
|
|
235
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DestinationsApiProvider; });
|
|
|
236
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_http__ = __webpack_require__(157);
|
|
|
237
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
|
|
238
|
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
|
239
|
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
|
240
|
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
241
|
+ 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;
|
|
|
242
|
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
|
243
|
+};
|
|
|
244
|
+var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
245
|
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
|
246
|
+};
|
|
|
247
|
+
|
|
|
248
|
+
|
|
|
249
|
+/*
|
|
|
250
|
+ Generated class for the DestinationsApiProvider provider.
|
|
|
251
|
+
|
|
|
252
|
+ See https://angular.io/guide/dependency-injection for more info on providers
|
|
|
253
|
+ and Angular DI.
|
|
|
254
|
+*/
|
|
|
255
|
+var DestinationsApiProvider = /** @class */ (function () {
|
|
|
256
|
+ function DestinationsApiProvider(http) {
|
|
|
257
|
+ this.http = http;
|
|
|
258
|
+ this.destinationUrl = "http://localhost:9090/api/v1/destinations";
|
|
|
259
|
+ }
|
|
|
260
|
+ DestinationsApiProvider.prototype.getAllDestinations = function () {
|
|
|
261
|
+ return this.http.get(this.destinationUrl);
|
|
|
262
|
+ };
|
|
|
263
|
+ DestinationsApiProvider.prototype.getDestinationById = function (destinationId) {
|
|
|
264
|
+ return this.http.get("this.destinationUrl/" + destinationId)
|
|
|
265
|
+ .map(function (response) {
|
|
|
266
|
+ return response.json();
|
|
|
267
|
+ });
|
|
|
268
|
+ };
|
|
|
269
|
+ DestinationsApiProvider = __decorate([
|
|
|
270
|
+ Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
|
|
|
271
|
+ __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_0__angular_http__["a" /* Http */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_0__angular_http__["a" /* Http */]) === "function" && _a || Object])
|
|
|
272
|
+ ], DestinationsApiProvider);
|
|
|
273
|
+ return DestinationsApiProvider;
|
|
|
274
|
+ var _a;
|
|
|
275
|
+}());
|
|
|
276
|
+
|
|
|
277
|
+//# sourceMappingURL=destinations-api.js.map
|
|
|
278
|
+
|
|
|
279
|
+/***/ }),
|
|
|
280
|
+
|
|
|
281
|
+/***/ 105:
|
159
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
282
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
160
|
|
283
|
|
161
|
"use strict";
|
284
|
"use strict";
|
162
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SignupPage; });
|
285
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SignupPage; });
|
163
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
286
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
164
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(20);
|
|
|
|
|
287
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
165
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
288
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
166
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
289
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
167
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
290
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
|
|
191
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
314
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
192
|
selector: 'page-signup',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/signup/signup.html"*/'<!--\n Generated template for the SignupPage 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>signup</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <ion-input placeholder="Email" type="text" required #email></ion-input>\n <ion-input placeholder="Password" type="text" required #password></ion-input>\n <ion-input placeholder="First Name" type="text" #firstName></ion-input>\n <ion-input placeholder="Last Name" type="text" #lastName></ion-input>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/signup/signup.html"*/,
|
315
|
selector: 'page-signup',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/signup/signup.html"*/'<!--\n Generated template for the SignupPage 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>signup</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <ion-input placeholder="Email" type="text" required #email></ion-input>\n <ion-input placeholder="Password" type="text" required #password></ion-input>\n <ion-input placeholder="First Name" type="text" #firstName></ion-input>\n <ion-input placeholder="Last Name" type="text" #lastName></ion-input>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/signup/signup.html"*/,
|
193
|
}),
|
316
|
}),
|
194
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
|
|
|
|
|
317
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
|
195
|
], SignupPage);
|
318
|
], SignupPage);
|
196
|
return SignupPage;
|
319
|
return SignupPage;
|
197
|
}());
|
320
|
}());
|
|
|
|
|
200
|
|
323
|
|
201
|
/***/ }),
|
324
|
/***/ }),
|
202
|
|
325
|
|
203
|
-/***/ 113:
|
|
|
|
|
326
|
+/***/ 115:
|
204
|
/***/ (function(module, exports) {
|
327
|
/***/ (function(module, exports) {
|
205
|
|
328
|
|
206
|
function webpackEmptyAsyncContext(req) {
|
329
|
function webpackEmptyAsyncContext(req) {
|
|
|
|
|
213
|
webpackEmptyAsyncContext.keys = function() { return []; };
|
336
|
webpackEmptyAsyncContext.keys = function() { return []; };
|
214
|
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
337
|
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
215
|
module.exports = webpackEmptyAsyncContext;
|
338
|
module.exports = webpackEmptyAsyncContext;
|
216
|
-webpackEmptyAsyncContext.id = 113;
|
|
|
|
|
339
|
+webpackEmptyAsyncContext.id = 115;
|
217
|
|
340
|
|
218
|
/***/ }),
|
341
|
/***/ }),
|
219
|
|
342
|
|
220
|
-/***/ 154:
|
|
|
|
|
343
|
+/***/ 156:
|
221
|
/***/ (function(module, exports, __webpack_require__) {
|
344
|
/***/ (function(module, exports, __webpack_require__) {
|
222
|
|
345
|
|
223
|
var map = {
|
346
|
var map = {
|
|
|
347
|
+ "../pages/add-destination/add-destination.module": [
|
|
|
348
|
+ 276,
|
|
|
349
|
+ 5
|
|
|
350
|
+ ],
|
224
|
"../pages/destination-details/destination-details.module": [
|
351
|
"../pages/destination-details/destination-details.module": [
|
225
|
- 273,
|
|
|
|
|
352
|
+ 277,
|
226
|
4
|
353
|
4
|
227
|
],
|
354
|
],
|
228
|
"../pages/login/login.module": [
|
355
|
"../pages/login/login.module": [
|
229
|
- 274,
|
|
|
|
|
356
|
+ 278,
|
230
|
3
|
357
|
3
|
231
|
],
|
358
|
],
|
232
|
"../pages/map/map.module": [
|
359
|
"../pages/map/map.module": [
|
233
|
- 275,
|
|
|
|
|
360
|
+ 279,
|
234
|
2
|
361
|
2
|
235
|
],
|
362
|
],
|
236
|
"../pages/profile/profile.module": [
|
363
|
"../pages/profile/profile.module": [
|
237
|
- 277,
|
|
|
|
|
364
|
+ 281,
|
238
|
1
|
365
|
1
|
239
|
],
|
366
|
],
|
240
|
"../pages/signup/signup.module": [
|
367
|
"../pages/signup/signup.module": [
|
241
|
- 276,
|
|
|
|
|
368
|
+ 280,
|
242
|
0
|
369
|
0
|
243
|
]
|
370
|
]
|
244
|
};
|
371
|
};
|
|
|
|
|
253
|
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
|
380
|
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
|
254
|
return Object.keys(map);
|
381
|
return Object.keys(map);
|
255
|
};
|
382
|
};
|
256
|
-webpackAsyncContext.id = 154;
|
|
|
|
|
383
|
+webpackAsyncContext.id = 156;
|
257
|
module.exports = webpackAsyncContext;
|
384
|
module.exports = webpackAsyncContext;
|
258
|
|
385
|
|
259
|
/***/ }),
|
386
|
/***/ }),
|
260
|
|
387
|
|
261
|
-/***/ 198:
|
|
|
|
|
388
|
+/***/ 201:
|
262
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
389
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
263
|
|
390
|
|
264
|
"use strict";
|
391
|
"use strict";
|
265
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
|
392
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
|
266
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
393
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
267
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(20);
|
|
|
268
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__login_login__ = __webpack_require__(100);
|
|
|
|
|
394
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
|
|
395
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__login_login__ = __webpack_require__(101);
|
269
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
396
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
270
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
397
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
271
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
398
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
|
|
289
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
416
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
290
|
selector: 'page-home',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/home/home.html"*/'<ion-header>\n <ion-navbar>\n <ion-title>\n Shared Travel Map\n </ion-title>\n </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n <button ion-button (click)=goToLogin()>Login</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/home/home.html"*/
|
417
|
selector: 'page-home',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/home/home.html"*/'<ion-header>\n <ion-navbar>\n <ion-title>\n Shared Travel Map\n </ion-title>\n </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n <button ion-button (click)=goToLogin()>Login</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/home/home.html"*/
|
291
|
}),
|
418
|
}),
|
292
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]])
|
|
|
|
|
419
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */]])
|
293
|
], HomePage);
|
420
|
], HomePage);
|
294
|
return HomePage;
|
421
|
return HomePage;
|
295
|
}());
|
422
|
}());
|
|
|
|
|
298
|
|
425
|
|
299
|
/***/ }),
|
426
|
/***/ }),
|
300
|
|
427
|
|
301
|
-/***/ 199:
|
|
|
|
|
428
|
+/***/ 202:
|
302
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
429
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
303
|
|
430
|
|
304
|
"use strict";
|
431
|
"use strict";
|
305
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
432
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
306
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(200);
|
|
|
307
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(222);
|
|
|
|
|
433
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(203);
|
|
|
434
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(225);
|
308
|
|
435
|
|
309
|
|
436
|
|
310
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
|
437
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
|
|
|
|
|
312
|
|
439
|
|
313
|
/***/ }),
|
440
|
/***/ }),
|
314
|
|
441
|
|
315
|
-/***/ 222:
|
|
|
|
|
442
|
+/***/ 225:
|
316
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
443
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
317
|
|
444
|
|
318
|
"use strict";
|
445
|
"use strict";
|
319
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
|
446
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
|
320
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(31);
|
|
|
|
|
447
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(27);
|
321
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
448
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
322
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(20);
|
|
|
323
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(194);
|
|
|
324
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(197);
|
|
|
325
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(272);
|
|
|
326
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_home_home__ = __webpack_require__(198);
|
|
|
327
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_login_login__ = __webpack_require__(100);
|
|
|
328
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_signup_signup__ = __webpack_require__(103);
|
|
|
329
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_profile_profile__ = __webpack_require__(101);
|
|
|
330
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_map_map__ = __webpack_require__(102);
|
|
|
331
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_destination_details_destination_details__ = __webpack_require__(99);
|
|
|
|
|
449
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(18);
|
|
|
450
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(197);
|
|
|
451
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(200);
|
|
|
452
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_http__ = __webpack_require__(157);
|
|
|
453
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__app_component__ = __webpack_require__(275);
|
|
|
454
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_home_home__ = __webpack_require__(201);
|
|
|
455
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_login_login__ = __webpack_require__(101);
|
|
|
456
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_signup_signup__ = __webpack_require__(105);
|
|
|
457
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_profile_profile__ = __webpack_require__(102);
|
|
|
458
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_map_map__ = __webpack_require__(103);
|
|
|
459
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_destination_details_destination_details__ = __webpack_require__(100);
|
|
|
460
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__providers_destinations_api_destinations_api__ = __webpack_require__(104);
|
|
|
461
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__pages_add_destination_add_destination__ = __webpack_require__(99);
|
332
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
462
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
333
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
463
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
334
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
464
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
|
|
347
|
|
477
|
|
348
|
|
478
|
|
349
|
|
479
|
|
|
|
480
|
+
|
|
|
481
|
+
|
|
|
482
|
+
|
350
|
var config = {
|
483
|
var config = {
|
351
|
issuer: 'https://dev-270119.oktapreview.com/oauth2/default',
|
484
|
issuer: 'https://dev-270119.oktapreview.com/oauth2/default',
|
352
|
redirectUri: 'http://localhost:8100/implicit/callback',
|
485
|
redirectUri: 'http://localhost:8100/implicit/callback',
|
|
|
|
|
358
|
AppModule = __decorate([
|
491
|
AppModule = __decorate([
|
359
|
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["I" /* NgModule */])({
|
492
|
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["I" /* NgModule */])({
|
360
|
declarations: [
|
493
|
declarations: [
|
361
|
- __WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */],
|
|
|
362
|
- __WEBPACK_IMPORTED_MODULE_6__pages_home_home__["a" /* HomePage */],
|
|
|
363
|
- __WEBPACK_IMPORTED_MODULE_7__pages_login_login__["a" /* LoginPage */],
|
|
|
364
|
- __WEBPACK_IMPORTED_MODULE_8__pages_signup_signup__["a" /* SignupPage */],
|
|
|
365
|
- __WEBPACK_IMPORTED_MODULE_9__pages_profile_profile__["a" /* ProfilePage */],
|
|
|
366
|
- __WEBPACK_IMPORTED_MODULE_10__pages_map_map__["a" /* MapPage */],
|
|
|
367
|
- __WEBPACK_IMPORTED_MODULE_11__pages_destination_details_destination_details__["a" /* DestinationDetailsPage */]
|
|
|
|
|
494
|
+ __WEBPACK_IMPORTED_MODULE_6__app_component__["a" /* MyApp */],
|
|
|
495
|
+ __WEBPACK_IMPORTED_MODULE_7__pages_home_home__["a" /* HomePage */],
|
|
|
496
|
+ __WEBPACK_IMPORTED_MODULE_8__pages_login_login__["a" /* LoginPage */],
|
|
|
497
|
+ __WEBPACK_IMPORTED_MODULE_9__pages_signup_signup__["a" /* SignupPage */],
|
|
|
498
|
+ __WEBPACK_IMPORTED_MODULE_10__pages_profile_profile__["a" /* ProfilePage */],
|
|
|
499
|
+ __WEBPACK_IMPORTED_MODULE_11__pages_map_map__["a" /* MapPage */],
|
|
|
500
|
+ __WEBPACK_IMPORTED_MODULE_14__pages_add_destination_add_destination__["a" /* AddDestinationPage */],
|
|
|
501
|
+ __WEBPACK_IMPORTED_MODULE_12__pages_destination_details_destination_details__["a" /* DestinationDetailsPage */]
|
368
|
],
|
502
|
],
|
369
|
imports: [
|
503
|
imports: [
|
370
|
__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
|
504
|
__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
|
371
|
- __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */], {}, {
|
|
|
|
|
505
|
+ __WEBPACK_IMPORTED_MODULE_5__angular_http__["b" /* HttpModule */],
|
|
|
506
|
+ __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_6__app_component__["a" /* MyApp */], {}, {
|
372
|
links: [
|
507
|
links: [
|
|
|
508
|
+ { loadChildren: '../pages/add-destination/add-destination.module#AddDestinationPageModule', name: 'AddDestinationPage', segment: 'add-destination', priority: 'low', defaultHistory: [] },
|
373
|
{ loadChildren: '../pages/destination-details/destination-details.module#DestinationDetailsPageModule', name: 'DestinationDetailsPage', segment: 'destination-details', priority: 'low', defaultHistory: [] },
|
509
|
{ loadChildren: '../pages/destination-details/destination-details.module#DestinationDetailsPageModule', name: 'DestinationDetailsPage', segment: 'destination-details', priority: 'low', defaultHistory: [] },
|
374
|
{ loadChildren: '../pages/login/login.module#LoginPageModule', name: 'LoginPage', segment: 'login', priority: 'low', defaultHistory: [] },
|
510
|
{ loadChildren: '../pages/login/login.module#LoginPageModule', name: 'LoginPage', segment: 'login', priority: 'low', defaultHistory: [] },
|
375
|
{ loadChildren: '../pages/map/map.module#MapPageModule', name: 'MapPage', segment: 'map', priority: 'low', defaultHistory: [] },
|
511
|
{ loadChildren: '../pages/map/map.module#MapPageModule', name: 'MapPage', segment: 'map', priority: 'low', defaultHistory: [] },
|
|
|
|
|
380
|
],
|
516
|
],
|
381
|
bootstrap: [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["a" /* IonicApp */]],
|
517
|
bootstrap: [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["a" /* IonicApp */]],
|
382
|
entryComponents: [
|
518
|
entryComponents: [
|
383
|
- __WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */],
|
|
|
384
|
- __WEBPACK_IMPORTED_MODULE_6__pages_home_home__["a" /* HomePage */],
|
|
|
385
|
- __WEBPACK_IMPORTED_MODULE_7__pages_login_login__["a" /* LoginPage */],
|
|
|
386
|
- __WEBPACK_IMPORTED_MODULE_8__pages_signup_signup__["a" /* SignupPage */],
|
|
|
387
|
- __WEBPACK_IMPORTED_MODULE_9__pages_profile_profile__["a" /* ProfilePage */],
|
|
|
388
|
- __WEBPACK_IMPORTED_MODULE_10__pages_map_map__["a" /* MapPage */],
|
|
|
389
|
- __WEBPACK_IMPORTED_MODULE_11__pages_destination_details_destination_details__["a" /* DestinationDetailsPage */]
|
|
|
|
|
519
|
+ __WEBPACK_IMPORTED_MODULE_6__app_component__["a" /* MyApp */],
|
|
|
520
|
+ __WEBPACK_IMPORTED_MODULE_7__pages_home_home__["a" /* HomePage */],
|
|
|
521
|
+ __WEBPACK_IMPORTED_MODULE_8__pages_login_login__["a" /* LoginPage */],
|
|
|
522
|
+ __WEBPACK_IMPORTED_MODULE_9__pages_signup_signup__["a" /* SignupPage */],
|
|
|
523
|
+ __WEBPACK_IMPORTED_MODULE_10__pages_profile_profile__["a" /* ProfilePage */],
|
|
|
524
|
+ __WEBPACK_IMPORTED_MODULE_11__pages_map_map__["a" /* MapPage */],
|
|
|
525
|
+ __WEBPACK_IMPORTED_MODULE_14__pages_add_destination_add_destination__["a" /* AddDestinationPage */],
|
|
|
526
|
+ __WEBPACK_IMPORTED_MODULE_12__pages_destination_details_destination_details__["a" /* DestinationDetailsPage */]
|
390
|
],
|
527
|
],
|
391
|
providers: [
|
528
|
providers: [
|
392
|
__WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
|
529
|
__WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
|
393
|
__WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
|
530
|
__WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
|
394
|
- { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicErrorHandler */] }
|
|
|
|
|
531
|
+ { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicErrorHandler */] },
|
|
|
532
|
+ __WEBPACK_IMPORTED_MODULE_13__providers_destinations_api_destinations_api__["a" /* DestinationsApiProvider */]
|
395
|
]
|
533
|
]
|
396
|
})
|
534
|
})
|
397
|
], AppModule);
|
535
|
], AppModule);
|
|
|
|
|
402
|
|
540
|
|
403
|
/***/ }),
|
541
|
/***/ }),
|
404
|
|
542
|
|
405
|
-/***/ 272:
|
|
|
|
|
543
|
+/***/ 275:
|
406
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
544
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
407
|
|
545
|
|
408
|
"use strict";
|
546
|
"use strict";
|
409
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
|
547
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
|
410
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
548
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
411
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(20);
|
|
|
412
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(197);
|
|
|
413
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(194);
|
|
|
414
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(198);
|
|
|
|
|
549
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
|
|
550
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(200);
|
|
|
551
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(197);
|
|
|
552
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(201);
|
415
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
553
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
416
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
554
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
417
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
555
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
|
|
439
|
MyApp = __decorate([
|
577
|
MyApp = __decorate([
|
440
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/app/app.html"*/
|
578
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/app/app.html"*/
|
441
|
}),
|
579
|
}),
|
442
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
|
|
|
|
|
580
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
|
443
|
], MyApp);
|
581
|
], MyApp);
|
444
|
return MyApp;
|
582
|
return MyApp;
|
445
|
}());
|
583
|
}());
|
|
|
|
|
452
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
590
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
453
|
|
591
|
|
454
|
"use strict";
|
592
|
"use strict";
|
455
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DestinationDetailsPage; });
|
|
|
|
|
593
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AddDestinationPage; });
|
456
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
594
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
457
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(20);
|
|
|
|
|
595
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
|
|
596
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(15);
|
|
|
597
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_destinations_api_destinations_api__ = __webpack_require__(104);
|
458
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
598
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
459
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
599
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
460
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
600
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
|
|
466
|
};
|
606
|
};
|
467
|
|
607
|
|
468
|
|
608
|
|
|
|
609
|
+
|
|
|
610
|
+
|
469
|
/**
|
611
|
/**
|
470
|
- * Generated class for the DestinationDetailsPage page.
|
|
|
|
|
612
|
+ * Generated class for the AddDestinationPage page.
|
471
|
*
|
613
|
*
|
472
|
* See https://ionicframework.com/docs/components/#navigation for more info on
|
614
|
* See https://ionicframework.com/docs/components/#navigation for more info on
|
473
|
* Ionic pages and navigation.
|
615
|
* Ionic pages and navigation.
|
474
|
*/
|
616
|
*/
|
475
|
-var DestinationDetailsPage = /** @class */ (function () {
|
|
|
476
|
- function DestinationDetailsPage(navCtrl, navParams) {
|
|
|
|
|
617
|
+var AddDestinationPage = /** @class */ (function () {
|
|
|
618
|
+ function AddDestinationPage(navCtrl, navParams, formBuilder, destinationApiProvider) {
|
477
|
this.navCtrl = navCtrl;
|
619
|
this.navCtrl = navCtrl;
|
478
|
this.navParams = navParams;
|
620
|
this.navParams = navParams;
|
479
|
- this.destination = {};
|
|
|
480
|
- this.destination = this.navParams.data;
|
|
|
|
|
621
|
+ this.formBuilder = formBuilder;
|
|
|
622
|
+ this.destinationApiProvider = destinationApiProvider;
|
|
|
623
|
+ this.destinationForm = this.formBuilder.group({
|
|
|
624
|
+ city: [''],
|
|
|
625
|
+ country: ['']
|
|
|
626
|
+ });
|
481
|
}
|
627
|
}
|
482
|
- DestinationDetailsPage.prototype.ionViewDidLoad = function () {
|
|
|
483
|
- console.log('ionViewDidLoad DestinationDetailsPage');
|
|
|
|
|
628
|
+ AddDestinationPage.prototype.ionViewDidLoad = function () {
|
|
|
629
|
+ console.log('ionViewDidLoad AddDestinationPage');
|
484
|
};
|
630
|
};
|
485
|
- DestinationDetailsPage = __decorate([
|
|
|
|
|
631
|
+ AddDestinationPage.prototype.createDestination = function () {
|
|
|
632
|
+ };
|
|
|
633
|
+ AddDestinationPage = __decorate([
|
486
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
634
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
487
|
- selector: 'page-destination-details',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/destination-details/destination-details.html"*/'<!--\n Generated template for the DestinationDetailsPage 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>{{ destination.city }}, {{ destination.country }}</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/destination-details/destination-details.html"*/,
|
|
|
|
|
635
|
+ selector: 'page-add-destination',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/add-destination/add-destination.html"*/'<!--\n Generated template for the AddDestinationPage 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>Add Destination</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <form [formGroup]="destinationForm">\n <ion-item>\n <ion-label floating>City</ion-label>\n <ion-input [formControl]="destinationForm.controls[\'city\']" type="text"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label floating>Country</ion-label>\n <ion-input [formControl]="destinationForm.controls[\'country\']" type="text"></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()>Create</button> \n </form>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/add-destination/add-destination.html"*/,
|
488
|
}),
|
636
|
}),
|
489
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
|
|
|
490
|
- ], DestinationDetailsPage);
|
|
|
491
|
- return DestinationDetailsPage;
|
|
|
|
|
637
|
+ __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_2__angular_forms__["a" /* FormBuilder */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__angular_forms__["a" /* FormBuilder */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_3__providers_destinations_api_destinations_api__["a" /* DestinationsApiProvider */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__providers_destinations_api_destinations_api__["a" /* DestinationsApiProvider */]) === "function" && _d || Object])
|
|
|
638
|
+ ], AddDestinationPage);
|
|
|
639
|
+ return AddDestinationPage;
|
|
|
640
|
+ var _a, _b, _c, _d;
|
492
|
}());
|
641
|
}());
|
493
|
|
642
|
|
494
|
-//# sourceMappingURL=destination-details.js.map
|
|
|
|
|
643
|
+//# sourceMappingURL=add-destination.js.map
|
495
|
|
644
|
|
496
|
/***/ })
|
645
|
/***/ })
|
497
|
|
646
|
|
498
|
-},[199]);
|
|
|
|
|
647
|
+},[202]);
|
499
|
//# sourceMappingURL=main.js.map
|
648
|
//# sourceMappingURL=main.js.map
|