|
@@ -1,12 +1,90 @@
|
1
|
1
|
webpackJsonp([6],{
|
2
|
2
|
|
3
|
|
-/***/ 100:
|
|
3
|
+/***/ 149:
|
|
4
|
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+"use strict";
|
|
7
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AddDestinationPage; });
|
|
8
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
|
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);
|
|
13
|
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
14
|
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15
|
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16
|
+ 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;
|
|
17
|
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18
|
+};
|
|
19
|
+var __metadata = (this && this.__metadata) || function (k, v) {
|
|
20
|
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
21
|
+};
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
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
|
+var AddDestinationPage = /** @class */ (function () {
|
|
34
|
+ function AddDestinationPage(navCtrl, navParams, formBuilder, destinationService) {
|
|
35
|
+ this.navCtrl = navCtrl;
|
|
36
|
+ this.navParams = navParams;
|
|
37
|
+ this.formBuilder = formBuilder;
|
|
38
|
+ this.destinationService = destinationService;
|
|
39
|
+ this.profile = {
|
|
40
|
+ id: 1,
|
|
41
|
+ userName: "JohnDoe",
|
|
42
|
+ homeCity: "",
|
|
43
|
+ homeCountry: "",
|
|
44
|
+ description: "",
|
|
45
|
+ imagePath: "",
|
|
46
|
+ friendList: null,
|
|
47
|
+ user: null
|
|
48
|
+ };
|
|
49
|
+ this.destinationForm = this.formBuilder.group({
|
|
50
|
+ destinationState: ['', __WEBPACK_IMPORTED_MODULE_2__angular_forms__["f" /* Validators */].required],
|
|
51
|
+ city: ['', __WEBPACK_IMPORTED_MODULE_2__angular_forms__["f" /* Validators */].required],
|
|
52
|
+ country: ['', __WEBPACK_IMPORTED_MODULE_2__angular_forms__["f" /* Validators */].required]
|
|
53
|
+ });
|
|
54
|
+ }
|
|
55
|
+ AddDestinationPage.prototype.ionViewDidLoad = function () {
|
|
56
|
+ console.log('ionViewDidLoad AddDestinationPage');
|
|
57
|
+ };
|
|
58
|
+ AddDestinationPage.prototype.createDestination = function () {
|
|
59
|
+ var _this = this;
|
|
60
|
+ this.destination = this.destinationForm.value;
|
|
61
|
+ this.destination.profile = this.profile;
|
|
62
|
+ this.destinationService.createDestination(this.destination).subscribe(function (data) { return _this.destination = data; }, function (err) {
|
|
63
|
+ console.log(err);
|
|
64
|
+ });
|
|
65
|
+ this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_4__map_map__["a" /* MapPage */]);
|
|
66
|
+ };
|
|
67
|
+ AddDestinationPage = __decorate([
|
|
68
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
|
69
|
+ selector: 'page-add-destination',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/add-destination/add-destination.html"*/'<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-list radio-group formControlName="destinationState">\n <ion-item>\n <ion-label>Want to go</ion-label>\n <ion-radio value="future"></ion-radio>\n </ion-item>\n <ion-item>\n <ion-label>Have been to</ion-label>\n <ion-radio value="past"></ion-radio>\n </ion-item>\n </ion-list>\n\n <ion-item>\n <ion-label stacked>City</ion-label>\n <ion-input formControlName="city" type="text"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label stacked>Country</ion-label>\n <ion-input formControlName="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()>Add</button>\n\n </form>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/add-destination/add-destination.html"*/,
|
|
70
|
+ }),
|
|
71
|
+ __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__services_destination_service_destination_service__["a" /* DestinationService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__services_destination_service_destination_service__["a" /* DestinationService */]) === "function" && _d || Object])
|
|
72
|
+ ], AddDestinationPage);
|
|
73
|
+ return AddDestinationPage;
|
|
74
|
+ var _a, _b, _c, _d;
|
|
75
|
+}());
|
|
76
|
+
|
|
77
|
+//# sourceMappingURL=add-destination.js.map
|
|
78
|
+
|
|
79
|
+/***/ }),
|
|
80
|
+
|
|
81
|
+/***/ 150:
|
4
|
82
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5
|
83
|
|
6
|
84
|
"use strict";
|
7
|
85
|
/* 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);
|
|
86
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
|
87
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
10
|
88
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
11
|
89
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
12
|
90
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -37,25 +115,24 @@ var DestinationDetailsPage = /** @class */ (function () {
|
37
|
115
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
38
|
116
|
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
|
117
|
}),
|
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])
|
|
118
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
|
41
|
119
|
], DestinationDetailsPage);
|
42
|
120
|
return DestinationDetailsPage;
|
43
|
|
- var _a, _b;
|
44
|
121
|
}());
|
45
|
122
|
|
46
|
123
|
//# sourceMappingURL=destination-details.js.map
|
47
|
124
|
|
48
|
125
|
/***/ }),
|
49
|
126
|
|
50
|
|
-/***/ 101:
|
|
127
|
+/***/ 151:
|
51
|
128
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
52
|
129
|
|
53
|
130
|
"use strict";
|
54
|
131
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoginPage; });
|
55
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
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);
|
|
132
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
|
133
|
+/* 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);
|
59
|
136
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
60
|
137
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
61
|
138
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -85,7 +162,7 @@ var LoginPage = /** @class */ (function () {
|
85
|
162
|
};
|
86
|
163
|
LoginPage = __decorate([
|
87
|
164
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
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"*/,
|
|
165
|
+ selector: 'page-login',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/login/login.html"*/'<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"*/,
|
89
|
166
|
}),
|
90
|
167
|
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
|
91
|
168
|
], LoginPage);
|
|
@@ -96,14 +173,14 @@ var LoginPage = /** @class */ (function () {
|
96
|
173
|
|
97
|
174
|
/***/ }),
|
98
|
175
|
|
99
|
|
-/***/ 102:
|
|
176
|
+/***/ 152:
|
100
|
177
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
101
|
178
|
|
102
|
179
|
"use strict";
|
103
|
180
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ProfilePage; });
|
104
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
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);
|
|
181
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
|
182
|
+/* 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);
|
107
|
184
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
108
|
185
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
109
|
186
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -146,145 +223,13 @@ var ProfilePage = /** @class */ (function () {
|
146
|
223
|
|
147
|
224
|
/***/ }),
|
148
|
225
|
|
149
|
|
-/***/ 103:
|
150
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
151
|
|
-
|
152
|
|
-"use strict";
|
153
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MapPage; });
|
154
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
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);
|
159
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
160
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
161
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
162
|
|
- 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;
|
163
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
164
|
|
-};
|
165
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
166
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
167
|
|
-};
|
168
|
|
-
|
169
|
|
-
|
170
|
|
-
|
171
|
|
-
|
172
|
|
-
|
173
|
|
-/**
|
174
|
|
- * Generated class for the MapPage page.
|
175
|
|
- *
|
176
|
|
- * See https://ionicframework.com/docs/components/#navigation for more info on
|
177
|
|
- * Ionic pages and navigation.
|
178
|
|
- */
|
179
|
|
-var MapPage = /** @class */ (function () {
|
180
|
|
- function MapPage(navCtrl, navParams, destinationApiProvider, loadingController) {
|
181
|
|
- this.navCtrl = navCtrl;
|
182
|
|
- this.navParams = navParams;
|
183
|
|
- this.destinationApiProvider = destinationApiProvider;
|
184
|
|
- this.loadingController = loadingController;
|
185
|
|
- this.destinations = [];
|
186
|
|
- this.destination = {};
|
187
|
|
- }
|
188
|
|
- MapPage.prototype.ionViewDidLoad = function () {
|
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
|
|
- });
|
197
|
|
- };
|
198
|
|
- MapPage.prototype.goToDestinationDetails = function ($event, destination) {
|
199
|
|
- this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__destination_details_destination_details__["a" /* DestinationDetailsPage */], destination);
|
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
|
|
- };
|
217
|
|
- MapPage = __decorate([
|
218
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
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"*/,
|
220
|
|
- }),
|
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])
|
222
|
|
- ], MapPage);
|
223
|
|
- return MapPage;
|
224
|
|
- var _a, _b, _c, _d;
|
225
|
|
-}());
|
226
|
|
-
|
227
|
|
-//# sourceMappingURL=map.js.map
|
228
|
|
-
|
229
|
|
-/***/ }),
|
230
|
|
-
|
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:
|
|
226
|
+/***/ 153:
|
282
|
227
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
283
|
228
|
|
284
|
229
|
"use strict";
|
285
|
230
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SignupPage; });
|
286
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
287
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
|
231
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
|
232
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
288
|
233
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
289
|
234
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
290
|
235
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -323,7 +268,7 @@ var SignupPage = /** @class */ (function () {
|
323
|
268
|
|
324
|
269
|
/***/ }),
|
325
|
270
|
|
326
|
|
-/***/ 115:
|
|
271
|
+/***/ 164:
|
327
|
272
|
/***/ (function(module, exports) {
|
328
|
273
|
|
329
|
274
|
function webpackEmptyAsyncContext(req) {
|
|
@@ -336,36 +281,36 @@ function webpackEmptyAsyncContext(req) {
|
336
|
281
|
webpackEmptyAsyncContext.keys = function() { return []; };
|
337
|
282
|
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
338
|
283
|
module.exports = webpackEmptyAsyncContext;
|
339
|
|
-webpackEmptyAsyncContext.id = 115;
|
|
284
|
+webpackEmptyAsyncContext.id = 164;
|
340
|
285
|
|
341
|
286
|
/***/ }),
|
342
|
287
|
|
343
|
|
-/***/ 156:
|
|
288
|
+/***/ 209:
|
344
|
289
|
/***/ (function(module, exports, __webpack_require__) {
|
345
|
290
|
|
346
|
291
|
var map = {
|
347
|
292
|
"../pages/add-destination/add-destination.module": [
|
348
|
|
- 276,
|
|
293
|
+ 679,
|
349
|
294
|
5
|
350
|
295
|
],
|
351
|
296
|
"../pages/destination-details/destination-details.module": [
|
352
|
|
- 277,
|
|
297
|
+ 680,
|
353
|
298
|
4
|
354
|
299
|
],
|
355
|
300
|
"../pages/login/login.module": [
|
356
|
|
- 278,
|
|
301
|
+ 682,
|
357
|
302
|
3
|
358
|
303
|
],
|
359
|
304
|
"../pages/map/map.module": [
|
360
|
|
- 279,
|
|
305
|
+ 681,
|
361
|
306
|
2
|
362
|
307
|
],
|
363
|
308
|
"../pages/profile/profile.module": [
|
364
|
|
- 281,
|
|
309
|
+ 683,
|
365
|
310
|
1
|
366
|
311
|
],
|
367
|
312
|
"../pages/signup/signup.module": [
|
368
|
|
- 280,
|
|
313
|
+ 684,
|
369
|
314
|
0
|
370
|
315
|
]
|
371
|
316
|
};
|
|
@@ -380,19 +325,19 @@ function webpackAsyncContext(req) {
|
380
|
325
|
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
|
381
|
326
|
return Object.keys(map);
|
382
|
327
|
};
|
383
|
|
-webpackAsyncContext.id = 156;
|
|
328
|
+webpackAsyncContext.id = 209;
|
384
|
329
|
module.exports = webpackAsyncContext;
|
385
|
330
|
|
386
|
331
|
/***/ }),
|
387
|
332
|
|
388
|
|
-/***/ 201:
|
|
333
|
+/***/ 349:
|
389
|
334
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
390
|
335
|
|
391
|
336
|
"use strict";
|
392
|
337
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
|
393
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
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);
|
|
338
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
|
339
|
+/* 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);
|
396
|
341
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
397
|
342
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
398
|
343
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -425,13 +370,13 @@ var HomePage = /** @class */ (function () {
|
425
|
370
|
|
426
|
371
|
/***/ }),
|
427
|
372
|
|
428
|
|
-/***/ 202:
|
|
373
|
+/***/ 350:
|
429
|
374
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
430
|
375
|
|
431
|
376
|
"use strict";
|
432
|
377
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
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);
|
|
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);
|
435
|
380
|
|
436
|
381
|
|
437
|
382
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
|
|
@@ -439,26 +384,26 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
|
439
|
384
|
|
440
|
385
|
/***/ }),
|
441
|
386
|
|
442
|
|
-/***/ 225:
|
|
387
|
+/***/ 355:
|
443
|
388
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
444
|
389
|
|
445
|
390
|
"use strict";
|
446
|
391
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
|
447
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(27);
|
448
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
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);
|
|
392
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(40);
|
|
393
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(1);
|
|
394
|
+/* 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);
|
462
|
407
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
463
|
408
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
464
|
409
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -497,20 +442,20 @@ var AppModule = /** @class */ (function () {
|
497
|
442
|
__WEBPACK_IMPORTED_MODULE_9__pages_signup_signup__["a" /* SignupPage */],
|
498
|
443
|
__WEBPACK_IMPORTED_MODULE_10__pages_profile_profile__["a" /* ProfilePage */],
|
499
|
444
|
__WEBPACK_IMPORTED_MODULE_11__pages_map_map__["a" /* MapPage */],
|
500
|
|
- __WEBPACK_IMPORTED_MODULE_14__pages_add_destination_add_destination__["a" /* AddDestinationPage */],
|
|
445
|
+ __WEBPACK_IMPORTED_MODULE_13__pages_add_destination_add_destination__["a" /* AddDestinationPage */],
|
501
|
446
|
__WEBPACK_IMPORTED_MODULE_12__pages_destination_details_destination_details__["a" /* DestinationDetailsPage */]
|
502
|
447
|
],
|
503
|
448
|
imports: [
|
504
|
449
|
__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
|
505
|
|
- __WEBPACK_IMPORTED_MODULE_5__angular_http__["b" /* HttpModule */],
|
|
450
|
+ __WEBPACK_IMPORTED_MODULE_5__angular_http__["c" /* HttpModule */],
|
506
|
451
|
__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_6__app_component__["a" /* MyApp */], {}, {
|
507
|
452
|
links: [
|
508
|
453
|
{ loadChildren: '../pages/add-destination/add-destination.module#AddDestinationPageModule', name: 'AddDestinationPage', segment: 'add-destination', priority: 'low', defaultHistory: [] },
|
509
|
454
|
{ loadChildren: '../pages/destination-details/destination-details.module#DestinationDetailsPageModule', name: 'DestinationDetailsPage', segment: 'destination-details', priority: 'low', defaultHistory: [] },
|
510
|
|
- { loadChildren: '../pages/login/login.module#LoginPageModule', name: 'LoginPage', segment: 'login', priority: 'low', defaultHistory: [] },
|
511
|
455
|
{ loadChildren: '../pages/map/map.module#MapPageModule', name: 'MapPage', segment: 'map', priority: 'low', defaultHistory: [] },
|
512
|
|
- { loadChildren: '../pages/signup/signup.module#SignupPageModule', name: 'SignupPage', segment: 'signup', priority: 'low', defaultHistory: [] },
|
513
|
|
- { loadChildren: '../pages/profile/profile.module#ProfilePageModule', name: 'ProfilePage', segment: 'profile', priority: 'low', defaultHistory: [] }
|
|
456
|
+ { loadChildren: '../pages/login/login.module#LoginPageModule', name: 'LoginPage', segment: 'login', priority: 'low', defaultHistory: [] },
|
|
457
|
+ { loadChildren: '../pages/profile/profile.module#ProfilePageModule', name: 'ProfilePage', segment: 'profile', priority: 'low', defaultHistory: [] },
|
|
458
|
+ { loadChildren: '../pages/signup/signup.module#SignupPageModule', name: 'SignupPage', segment: 'signup', priority: 'low', defaultHistory: [] }
|
514
|
459
|
]
|
515
|
460
|
})
|
516
|
461
|
],
|
|
@@ -522,14 +467,14 @@ var AppModule = /** @class */ (function () {
|
522
|
467
|
__WEBPACK_IMPORTED_MODULE_9__pages_signup_signup__["a" /* SignupPage */],
|
523
|
468
|
__WEBPACK_IMPORTED_MODULE_10__pages_profile_profile__["a" /* ProfilePage */],
|
524
|
469
|
__WEBPACK_IMPORTED_MODULE_11__pages_map_map__["a" /* MapPage */],
|
525
|
|
- __WEBPACK_IMPORTED_MODULE_14__pages_add_destination_add_destination__["a" /* AddDestinationPage */],
|
|
470
|
+ __WEBPACK_IMPORTED_MODULE_13__pages_add_destination_add_destination__["a" /* AddDestinationPage */],
|
526
|
471
|
__WEBPACK_IMPORTED_MODULE_12__pages_destination_details_destination_details__["a" /* DestinationDetailsPage */]
|
527
|
472
|
],
|
528
|
473
|
providers: [
|
529
|
474
|
__WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
|
530
|
475
|
__WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
|
|
476
|
+ __WEBPACK_IMPORTED_MODULE_14__services_destination_service_destination_service__["a" /* DestinationService */],
|
531
|
477
|
{ 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 */]
|
533
|
478
|
]
|
534
|
479
|
})
|
535
|
480
|
], AppModule);
|
|
@@ -540,16 +485,16 @@ var AppModule = /** @class */ (function () {
|
540
|
485
|
|
541
|
486
|
/***/ }),
|
542
|
487
|
|
543
|
|
-/***/ 275:
|
|
488
|
+/***/ 678:
|
544
|
489
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
545
|
490
|
|
546
|
491
|
"use strict";
|
547
|
492
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
|
548
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
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);
|
|
493
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
|
|
494
|
+/* 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);
|
553
|
498
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
554
|
499
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
555
|
500
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -586,15 +531,19 @@ var MyApp = /** @class */ (function () {
|
586
|
531
|
|
587
|
532
|
/***/ }),
|
588
|
533
|
|
589
|
|
-/***/ 99:
|
|
534
|
+/***/ 85:
|
590
|
535
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
591
|
536
|
|
592
|
537
|
"use strict";
|
593
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AddDestinationPage; });
|
594
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
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);
|
|
538
|
+/* 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);
|
|
540
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(1);
|
|
541
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(375);
|
|
542
|
+/* 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);
|
|
544
|
+/* 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);
|
|
546
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_catch___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_catch__);
|
598
|
547
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
599
|
548
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
600
|
549
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -608,41 +557,131 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
608
|
557
|
|
609
|
558
|
|
610
|
559
|
|
611
|
|
-/**
|
612
|
|
- * Generated class for the AddDestinationPage page.
|
613
|
|
- *
|
614
|
|
- * See https://ionicframework.com/docs/components/#navigation for more info on
|
615
|
|
- * Ionic pages and navigation.
|
616
|
|
- */
|
617
|
|
-var AddDestinationPage = /** @class */ (function () {
|
618
|
|
- function AddDestinationPage(navCtrl, navParams, formBuilder, destinationApiProvider) {
|
|
560
|
+
|
|
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
|
+var DestinationService = /** @class */ (function () {
|
|
568
|
+ function DestinationService(http) {
|
|
569
|
+ this.http = http;
|
|
570
|
+ this.destinationUrl = "http://localhost:9090/api/v1/destinations";
|
|
571
|
+ }
|
|
572
|
+ //CREATE
|
|
573
|
+ DestinationService.prototype.createDestination = function (body) {
|
|
574
|
+ var bodyString = JSON.stringify(body);
|
|
575
|
+ var headers = new __WEBPACK_IMPORTED_MODULE_0__angular_http__["a" /* Headers */]({ 'Content-Type': 'application/json' });
|
|
576
|
+ var options = new __WEBPACK_IMPORTED_MODULE_0__angular_http__["d" /* RequestOptions */]({ headers: headers });
|
|
577
|
+ return this.http.post(this.destinationUrl, bodyString, options).map(function (res) { return res.json(); })
|
|
578
|
+ .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_2_rxjs__["Observable"].throw(error.json().error || 'Server error'); });
|
|
579
|
+ };
|
|
580
|
+ //READ
|
|
581
|
+ DestinationService.prototype.getAllDestinations = function () {
|
|
582
|
+ return this.http.get(this.destinationUrl).map(function (res) { return res.json(); })
|
|
583
|
+ .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_2_rxjs__["Observable"].throw(error.json().error || 'Server error'); });
|
|
584
|
+ };
|
|
585
|
+ DestinationService.prototype.getDestinationById = function (destinationId) {
|
|
586
|
+ return this.http.get("this.destinationUrl/" + destinationId)
|
|
587
|
+ .map(function (response) {
|
|
588
|
+ return response.json();
|
|
589
|
+ });
|
|
590
|
+ };
|
|
591
|
+ //UPDATE
|
|
592
|
+ DestinationService.prototype.updateDestination = function (body) {
|
|
593
|
+ var bodyString = JSON.stringify(body);
|
|
594
|
+ var headers = new __WEBPACK_IMPORTED_MODULE_0__angular_http__["a" /* Headers */]({ 'Content-Type': 'application/json' });
|
|
595
|
+ var options = new __WEBPACK_IMPORTED_MODULE_0__angular_http__["d" /* RequestOptions */]({ headers: headers });
|
|
596
|
+ return this.http.put(this.destinationUrl + "/" + body['id'], body, options).map(function (res) { return res.json(); })
|
|
597
|
+ .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_2_rxjs__["Observable"].throw(error.json().error || 'Server error'); });
|
|
598
|
+ };
|
|
599
|
+ //DELETE
|
|
600
|
+ DestinationService.prototype.deleteDestination = function (id) {
|
|
601
|
+ return this.http.delete(this.destinationUrl + "/" + id).map(function (res) { return res.json(); })
|
|
602
|
+ .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_2_rxjs__["Observable"].throw(error.json().error || 'Server error'); });
|
|
603
|
+ };
|
|
604
|
+ DestinationService = __decorate([
|
|
605
|
+ Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
|
|
606
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_http__["b" /* Http */]])
|
|
607
|
+ ], DestinationService);
|
|
608
|
+ return DestinationService;
|
|
609
|
+}());
|
|
610
|
+
|
|
611
|
+//# sourceMappingURL=destination-service.js.map
|
|
612
|
+
|
|
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) {
|
619
|
641
|
this.navCtrl = navCtrl;
|
620
|
642
|
this.navParams = navParams;
|
621
|
|
- this.formBuilder = formBuilder;
|
622
|
|
- this.destinationApiProvider = destinationApiProvider;
|
623
|
|
- this.destinationForm = this.formBuilder.group({
|
624
|
|
- city: [''],
|
625
|
|
- country: ['']
|
626
|
|
- });
|
|
643
|
+ this.destinationService = destinationService;
|
|
644
|
+ this.loadingController = loadingController;
|
|
645
|
+ this.destinations = [];
|
|
646
|
+ this.destination = {};
|
627
|
647
|
}
|
628
|
|
- AddDestinationPage.prototype.ionViewDidLoad = function () {
|
629
|
|
- console.log('ionViewDidLoad AddDestinationPage');
|
|
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
|
+ });
|
630
|
657
|
};
|
631
|
|
- AddDestinationPage.prototype.createDestination = function () {
|
|
658
|
+ MapPage.prototype.goToDestinationDetails = function ($event, destination) {
|
|
659
|
+ this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__destination_details_destination_details__["a" /* DestinationDetailsPage */], destination);
|
632
|
660
|
};
|
633
|
|
- AddDestinationPage = __decorate([
|
|
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([
|
634
|
671
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
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"*/,
|
|
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"*/,
|
636
|
673
|
}),
|
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;
|
|
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;
|
641
|
680
|
}());
|
642
|
681
|
|
643
|
|
-//# sourceMappingURL=add-destination.js.map
|
|
682
|
+//# sourceMappingURL=map.js.map
|
644
|
683
|
|
645
|
684
|
/***/ })
|
646
|
685
|
|
647
|
|
-},[202]);
|
|
686
|
+},[350]);
|
648
|
687
|
//# sourceMappingURL=main.js.map
|