|
@@ -1,6 +1,52 @@
|
1
|
|
-webpackJsonp([1],{
|
|
1
|
+webpackJsonp([2],{
|
2
|
2
|
|
3
|
|
-/***/ 114:
|
|
3
|
+/***/ 103:
|
|
4
|
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+"use strict";
|
|
7
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RegisterPage; });
|
|
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__(29);
|
|
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
|
+var RegisterPage = /** @class */ (function () {
|
|
22
|
+ function RegisterPage(navCtrl, navParams) {
|
|
23
|
+ this.navCtrl = navCtrl;
|
|
24
|
+ this.navParams = navParams;
|
|
25
|
+ }
|
|
26
|
+ RegisterPage.prototype.ionViewDidLoad = function () {
|
|
27
|
+ console.log('ionViewDidLoad RegisterPage');
|
|
28
|
+ };
|
|
29
|
+ RegisterPage.prototype.cancel = function () {
|
|
30
|
+ this.navCtrl.popToRoot();
|
|
31
|
+ };
|
|
32
|
+ RegisterPage.prototype.register = function () {
|
|
33
|
+ this.navCtrl.popToRoot();
|
|
34
|
+ };
|
|
35
|
+ RegisterPage = __decorate([
|
|
36
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
|
37
|
+ selector: 'page-register',template:/*ion-inline-start:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/register/register.html"*/'<ion-header>\n\n <ion-navbar>\n <ion-title>Register</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content text-center class="register">\n <ion-list>\n <ion-item>\n <ion-label fixed>Username</ion-label>\n <ion-input type="text"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label fixed>First Name</ion-label>\n <ion-input type="text"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label fixed>Last Name</ion-label>\n <ion-input type="text"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label fixed>Password</ion-label>\n <ion-input type="text"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label fixed>Email</ion-label>\n <ion-input type="text"></ion-input>\n </ion-item>\n </ion-list>\n <button ion-button color="danger" round (click)="register()">Confirm</button>\n <br>\n <button ion-button color="danger" round (click)="cancel()">Cancel</button>\n</ion-content>'/*ion-inline-end:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/register/register.html"*/,
|
|
38
|
+ }),
|
|
39
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */],
|
|
40
|
+ __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */]])
|
|
41
|
+ ], RegisterPage);
|
|
42
|
+ return RegisterPage;
|
|
43
|
+}());
|
|
44
|
+
|
|
45
|
+//# sourceMappingURL=register.js.map
|
|
46
|
+
|
|
47
|
+/***/ }),
|
|
48
|
+
|
|
49
|
+/***/ 115:
|
4
|
50
|
/***/ (function(module, exports) {
|
5
|
51
|
|
6
|
52
|
function webpackEmptyAsyncContext(req) {
|
|
@@ -13,16 +59,20 @@ function webpackEmptyAsyncContext(req) {
|
13
|
59
|
webpackEmptyAsyncContext.keys = function() { return []; };
|
14
|
60
|
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
15
|
61
|
module.exports = webpackEmptyAsyncContext;
|
16
|
|
-webpackEmptyAsyncContext.id = 114;
|
|
62
|
+webpackEmptyAsyncContext.id = 115;
|
17
|
63
|
|
18
|
64
|
/***/ }),
|
19
|
65
|
|
20
|
|
-/***/ 156:
|
|
66
|
+/***/ 157:
|
21
|
67
|
/***/ (function(module, exports, __webpack_require__) {
|
22
|
68
|
|
23
|
69
|
var map = {
|
24
|
70
|
"../pages/channel/channel.module": [
|
25
|
|
- 281,
|
|
71
|
+ 282,
|
|
72
|
+ 1
|
|
73
|
+ ],
|
|
74
|
+ "../pages/register/register.module": [
|
|
75
|
+ 283,
|
26
|
76
|
0
|
27
|
77
|
]
|
28
|
78
|
};
|
|
@@ -37,12 +87,12 @@ function webpackAsyncContext(req) {
|
37
|
87
|
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
|
38
|
88
|
return Object.keys(map);
|
39
|
89
|
};
|
40
|
|
-webpackAsyncContext.id = 156;
|
|
90
|
+webpackAsyncContext.id = 157;
|
41
|
91
|
module.exports = webpackAsyncContext;
|
42
|
92
|
|
43
|
93
|
/***/ }),
|
44
|
94
|
|
45
|
|
-/***/ 157:
|
|
95
|
+/***/ 158:
|
46
|
96
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
47
|
97
|
|
48
|
98
|
"use strict";
|
|
@@ -143,7 +193,7 @@ var MessageProvider = /** @class */ (function () {
|
143
|
193
|
|
144
|
194
|
/***/ }),
|
145
|
195
|
|
146
|
|
-/***/ 158:
|
|
196
|
+/***/ 159:
|
147
|
197
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
148
|
198
|
|
149
|
199
|
"use strict";
|
|
@@ -190,26 +240,27 @@ var ChannelProvider = /** @class */ (function () {
|
190
|
240
|
};
|
191
|
241
|
ChannelProvider = __decorate([
|
192
|
242
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
|
193
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2__node_modules_angular_http__["b" /* Http */],
|
194
|
|
- __WEBPACK_IMPORTED_MODULE_1__user_user__["a" /* UserProvider */]])
|
|
243
|
+ __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2__node_modules_angular_http__["b" /* Http */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__node_modules_angular_http__["b" /* Http */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1__user_user__["a" /* UserProvider */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__user_user__["a" /* UserProvider */]) === "function" && _b || Object])
|
195
|
244
|
], ChannelProvider);
|
196
|
245
|
return ChannelProvider;
|
|
246
|
+ var _a, _b;
|
197
|
247
|
}());
|
198
|
248
|
|
199
|
249
|
//# sourceMappingURL=channel.js.map
|
200
|
250
|
|
201
|
251
|
/***/ }),
|
202
|
252
|
|
203
|
|
-/***/ 202:
|
|
253
|
+/***/ 203:
|
204
|
254
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
205
|
255
|
|
206
|
256
|
"use strict";
|
207
|
257
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
|
208
|
258
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
209
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(32);
|
|
259
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
210
|
260
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__channel_channel__ = __webpack_require__(52);
|
211
|
261
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_forms__ = __webpack_require__(15);
|
212
|
262
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__providers_user_user__ = __webpack_require__(47);
|
|
263
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__register_register__ = __webpack_require__(103);
|
213
|
264
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
214
|
265
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
215
|
266
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -224,6 +275,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
224
|
275
|
|
225
|
276
|
|
226
|
277
|
|
|
278
|
+
|
227
|
279
|
var HomePage = /** @class */ (function () {
|
228
|
280
|
function HomePage(navCtrl, formbuilder, userprovider) {
|
229
|
281
|
this.navCtrl = navCtrl;
|
|
@@ -252,11 +304,14 @@ var HomePage = /** @class */ (function () {
|
252
|
304
|
}
|
253
|
305
|
});
|
254
|
306
|
};
|
|
307
|
+ HomePage.prototype.registerPage = function () {
|
|
308
|
+ this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_5__register_register__["a" /* RegisterPage */]);
|
|
309
|
+ };
|
255
|
310
|
HomePage.prototype.setLoginForm = function () {
|
256
|
311
|
};
|
257
|
312
|
HomePage = __decorate([
|
258
|
313
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
259
|
|
- selector: 'page-home',template:/*ion-inline-start:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/home/home.html"*/'<ion-header>\n</ion-header>\n\n\n\n<ion-content text-center class = "login">\n\n <br><br><br><br><br>\n <img src="../assets/imgs/fullLogo.png" alt="SLACK" class="rounded-corners">\n\n <br><br><br><br>\n \n\n\n <form [formGroup]="formgroup" (ngSubmit)="sendLogin(formgroup.value)">\n\n<ion-list>\n\n <ion-item text-center>\n\n\n <ion-label fixed>Username</ion-label>\n <ion-input type="text" formControlName="username"></ion-input>\n </ion-item>\n\n <ion-item text-center *ngIf="username.hasError(\'required\') && username.touched">\n <p> *Please enter your username</p>\n </ion-item>\n\n <ion-item text-center>\n <ion-label fixed>Password</ion-label>\n <ion-input type="password" formControlName="password"></ion-input>\n </ion-item>\n\n <ion-item text-center *ngIf="password.hasError(\'required\') && password.touched">\n <p> *Please enter your password</p>\n </ion-item>\n\n\n</ion-list>\n\n\n\n\n<button ion-button color="danger" round type="submit">Login</button>\n\n<!-- line break -->\n<br>\n\n<button ion-button color="danger" round>Sign Up</button>\n\n\n</form>\n\n\n <!-- <form [formGroup]="loginform" (ngSubmit)="sendLogin(loginForm.value)" *ngIf="loginForm">\n\n <ion-label fixed>Username</ion-label>\n <input type="text" name="name" formControlName="username">\n\n <ion-label fixed>Password</ion-label>\n <input type="text" name="name" formControlName="password">\n\n <input type="submit" class="cta-btn filled" value="Submit" [disabled]="!loginForm.valid">\n </form> -->\n\n\n\n\n\n <!-- Toggle menu button -->\n <!-- <br> -->\n <button ion-button secondary menuToggle>Toggle Menu</button> \n \n</ion-content>\n'/*ion-inline-end:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/home/home.html"*/
|
|
314
|
+ selector: 'page-home',template:/*ion-inline-start:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/home/home.html"*/'<ion-header>\n</ion-header>\n\n\n\n<ion-content text-center class = "login">\n\n <br><br><br><br><br>\n <img src="../assets/imgs/fullLogo.png" alt="SLACK" class="rounded-corners">\n\n <br><br><br><br>\n \n\n\n <form [formGroup]="formgroup" (ngSubmit)="sendLogin(formgroup.value)">\n\n<ion-list>\n\n <ion-item text-center>\n\n\n <ion-label fixed>Username</ion-label>\n <ion-input type="text" formControlName="username"></ion-input>\n </ion-item>\n\n <ion-item text-center *ngIf="username.hasError(\'required\') && username.touched">\n <p> *Please enter your username</p>\n </ion-item>\n\n <ion-item text-center>\n <ion-label fixed>Password</ion-label>\n <ion-input type="password" formControlName="password"></ion-input>\n </ion-item>\n\n <ion-item text-center *ngIf="password.hasError(\'required\') && password.touched">\n <p> *Please enter your password</p>\n </ion-item>\n\n\n</ion-list>\n\n\n\n\n<button ion-button color="danger" round type="submit">Login</button>\n\n<!-- line break -->\n<br>\n\n<button ion-button color="danger" (click)="registerPage()" round>Sign Up</button>\n\n\n</form>\n\n\n <form [formGroup]="loginform" (ngSubmit)="sendLogin(loginForm.value)" *ngIf="loginForm">\n\n <ion-label fixed>Username</ion-label>\n <input type="text" name="name" formControlName="username">\n\n <ion-label fixed>Password</ion-label>\n <input type="text" name="name" formControlName="password">\n\n <input type="submit" class="cta-btn filled" value="Submit" [disabled]="!loginForm.valid">\n </form>\n\n\n\n\n\n <!-- Toggle menu button -->\n <!-- <br> -->\n <button ion-button secondary menuToggle>Toggle Menu</button> \n \n</ion-content>\n'/*ion-inline-end:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/home/home.html"*/
|
260
|
315
|
}),
|
261
|
316
|
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */], __WEBPACK_IMPORTED_MODULE_3__angular_forms__["a" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_4__providers_user_user__["a" /* UserProvider */]])
|
262
|
317
|
], HomePage);
|
|
@@ -267,13 +322,13 @@ var HomePage = /** @class */ (function () {
|
267
|
322
|
|
268
|
323
|
/***/ }),
|
269
|
324
|
|
270
|
|
-/***/ 203:
|
|
325
|
+/***/ 204:
|
271
|
326
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
272
|
327
|
|
273
|
328
|
"use strict";
|
274
|
329
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ListPage; });
|
275
|
330
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
276
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(32);
|
|
331
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
277
|
332
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
278
|
333
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
279
|
334
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -324,13 +379,13 @@ var ListPage = /** @class */ (function () {
|
324
|
379
|
|
325
|
380
|
/***/ }),
|
326
|
381
|
|
327
|
|
-/***/ 204:
|
|
382
|
+/***/ 205:
|
328
|
383
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
329
|
384
|
|
330
|
385
|
"use strict";
|
331
|
386
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
332
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(205);
|
333
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(225);
|
|
387
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(206);
|
|
388
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(226);
|
334
|
389
|
|
335
|
390
|
|
336
|
391
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
|
|
@@ -338,26 +393,27 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
|
338
|
393
|
|
339
|
394
|
/***/ }),
|
340
|
395
|
|
341
|
|
-/***/ 225:
|
|
396
|
+/***/ 226:
|
342
|
397
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
343
|
398
|
|
344
|
399
|
"use strict";
|
345
|
400
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
|
346
|
401
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(26);
|
347
|
402
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
348
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(32);
|
349
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app_component__ = __webpack_require__(267);
|
350
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(202);
|
351
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_list_list__ = __webpack_require__(203);
|
|
403
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(29);
|
|
404
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app_component__ = __webpack_require__(268);
|
|
405
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(203);
|
|
406
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_list_list__ = __webpack_require__(204);
|
352
|
407
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_channel_channel__ = __webpack_require__(52);
|
353
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ionic_native_status_bar__ = __webpack_require__(198);
|
354
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ionic_native_splash_screen__ = __webpack_require__(201);
|
|
408
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ionic_native_status_bar__ = __webpack_require__(199);
|
|
409
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ionic_native_splash_screen__ = __webpack_require__(202);
|
355
|
410
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__providers_user_user__ = __webpack_require__(47);
|
356
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__angular_common_http__ = __webpack_require__(275);
|
|
411
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__angular_common_http__ = __webpack_require__(276);
|
357
|
412
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__angular_http__ = __webpack_require__(46);
|
358
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__providers_message_message__ = __webpack_require__(157);
|
359
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__providers_channel_channel__ = __webpack_require__(158);
|
|
413
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__providers_message_message__ = __webpack_require__(158);
|
|
414
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__providers_channel_channel__ = __webpack_require__(159);
|
360
|
415
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__providers_url_url__ = __webpack_require__(80);
|
|
416
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__pages_register_register__ = __webpack_require__(103);
|
361
|
417
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
362
|
418
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
363
|
419
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -379,6 +435,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
379
|
435
|
|
380
|
436
|
|
381
|
437
|
|
|
438
|
+
|
382
|
439
|
var AppModule = /** @class */ (function () {
|
383
|
440
|
function AppModule() {
|
384
|
441
|
}
|
|
@@ -388,13 +445,15 @@ var AppModule = /** @class */ (function () {
|
388
|
445
|
__WEBPACK_IMPORTED_MODULE_3__app_component__["a" /* MyApp */],
|
389
|
446
|
__WEBPACK_IMPORTED_MODULE_4__pages_home_home__["a" /* HomePage */],
|
390
|
447
|
__WEBPACK_IMPORTED_MODULE_5__pages_list_list__["a" /* ListPage */],
|
391
|
|
- __WEBPACK_IMPORTED_MODULE_6__pages_channel_channel__["a" /* ChannelPage */]
|
|
448
|
+ __WEBPACK_IMPORTED_MODULE_6__pages_channel_channel__["a" /* ChannelPage */],
|
|
449
|
+ __WEBPACK_IMPORTED_MODULE_15__pages_register_register__["a" /* RegisterPage */]
|
392
|
450
|
],
|
393
|
451
|
imports: [
|
394
|
452
|
__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
|
395
|
453
|
__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["d" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_3__app_component__["a" /* MyApp */], {}, {
|
396
|
454
|
links: [
|
397
|
|
- { loadChildren: '../pages/channel/channel.module#ChannelPageModule', name: 'ChannelPage', segment: 'channel', priority: 'low', defaultHistory: [] }
|
|
455
|
+ { loadChildren: '../pages/channel/channel.module#ChannelPageModule', name: 'ChannelPage', segment: 'channel', priority: 'low', defaultHistory: [] },
|
|
456
|
+ { loadChildren: '../pages/register/register.module#RegisterPageModule', name: 'RegisterPage', segment: 'register', priority: 'low', defaultHistory: [] }
|
398
|
457
|
]
|
399
|
458
|
}),
|
400
|
459
|
__WEBPACK_IMPORTED_MODULE_10__angular_common_http__["a" /* HttpClientModule */],
|
|
@@ -405,7 +464,8 @@ var AppModule = /** @class */ (function () {
|
405
|
464
|
__WEBPACK_IMPORTED_MODULE_3__app_component__["a" /* MyApp */],
|
406
|
465
|
__WEBPACK_IMPORTED_MODULE_4__pages_home_home__["a" /* HomePage */],
|
407
|
466
|
__WEBPACK_IMPORTED_MODULE_5__pages_list_list__["a" /* ListPage */],
|
408
|
|
- __WEBPACK_IMPORTED_MODULE_6__pages_channel_channel__["a" /* ChannelPage */]
|
|
467
|
+ __WEBPACK_IMPORTED_MODULE_6__pages_channel_channel__["a" /* ChannelPage */],
|
|
468
|
+ __WEBPACK_IMPORTED_MODULE_15__pages_register_register__["a" /* RegisterPage */]
|
409
|
469
|
],
|
410
|
470
|
providers: [
|
411
|
471
|
__WEBPACK_IMPORTED_MODULE_7__ionic_native_status_bar__["a" /* StatusBar */],
|
|
@@ -425,17 +485,17 @@ var AppModule = /** @class */ (function () {
|
425
|
485
|
|
426
|
486
|
/***/ }),
|
427
|
487
|
|
428
|
|
-/***/ 267:
|
|
488
|
+/***/ 268:
|
429
|
489
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
430
|
490
|
|
431
|
491
|
"use strict";
|
432
|
492
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
|
433
|
493
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
434
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(32);
|
435
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(198);
|
436
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(201);
|
437
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(202);
|
438
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_list_list__ = __webpack_require__(203);
|
|
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__(199);
|
|
496
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(202);
|
|
497
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(203);
|
|
498
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_list_list__ = __webpack_require__(204);
|
439
|
499
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_channel_channel__ = __webpack_require__(52);
|
440
|
500
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
441
|
501
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -548,10 +608,10 @@ var UserProvider = /** @class */ (function () {
|
548
|
608
|
};
|
549
|
609
|
UserProvider = __decorate([
|
550
|
610
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
|
551
|
|
- __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_http__["b" /* Http */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_http__["b" /* Http */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_2__url_url__["a" /* UrlProvider */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__url_url__["a" /* UrlProvider */]) === "function" && _b || Object])
|
|
611
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_http__["b" /* Http */],
|
|
612
|
+ __WEBPACK_IMPORTED_MODULE_2__url_url__["a" /* UrlProvider */]])
|
552
|
613
|
], UserProvider);
|
553
|
614
|
return UserProvider;
|
554
|
|
- var _a, _b;
|
555
|
615
|
}());
|
556
|
616
|
|
557
|
617
|
//# sourceMappingURL=user.js.map
|
|
@@ -564,9 +624,9 @@ var UserProvider = /** @class */ (function () {
|
564
|
624
|
"use strict";
|
565
|
625
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChannelPage; });
|
566
|
626
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
567
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(32);
|
568
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_message_message__ = __webpack_require__(157);
|
569
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_channel_channel__ = __webpack_require__(158);
|
|
627
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
|
|
628
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_message_message__ = __webpack_require__(158);
|
|
629
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_channel_channel__ = __webpack_require__(159);
|
570
|
630
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
571
|
631
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
572
|
632
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -607,6 +667,11 @@ var ChannelPage = /** @class */ (function () {
|
607
|
667
|
};
|
608
|
668
|
ChannelPage.prototype.ionViewDidLoad = function () {
|
609
|
669
|
console.log('ionViewDidLoad ChannelPage');
|
|
670
|
+ this.start();
|
|
671
|
+ };
|
|
672
|
+ ChannelPage.prototype.start = function () {
|
|
673
|
+ var _this = this;
|
|
674
|
+ this.timerToken = setInterval(function () { return _this.runningLoopOfMessages(_this.channelProvider); }, 500);
|
610
|
675
|
};
|
611
|
676
|
ChannelPage.prototype.getMessages = function () {
|
612
|
677
|
var _this = this;
|
|
@@ -616,14 +681,19 @@ var ChannelPage = /** @class */ (function () {
|
616
|
681
|
};
|
617
|
682
|
ChannelPage.prototype.getChannels = function () {
|
618
|
683
|
var _this = this;
|
619
|
|
- this.channelProvider.get(function (channels) {
|
|
684
|
+ this.timerToken = setInterval(this.channelProvider.get(function (channels) {
|
620
|
685
|
_this.channels = channels;
|
|
686
|
+ }), 5000);
|
|
687
|
+ };
|
|
688
|
+ ChannelPage.prototype.runningLoopOfMessages = function (channelProvider) {
|
|
689
|
+ var _this = this;
|
|
690
|
+ this.messageProvider.get(1, function (after) {
|
|
691
|
+ _this.messages = after.json();
|
621
|
692
|
});
|
622
|
693
|
};
|
623
|
694
|
ChannelPage.prototype.deleteMessage = function (messageId) {
|
624
|
|
- var _this = this;
|
625
|
695
|
this.messageProvider.delete(messageId, function (after) {
|
626
|
|
- _this.getMessages();
|
|
696
|
+ //this.getMessages();
|
627
|
697
|
});
|
628
|
698
|
};
|
629
|
699
|
ChannelPage.prototype.sendMessage = function () {
|
|
@@ -660,7 +730,7 @@ var ChannelPage = /** @class */ (function () {
|
660
|
730
|
};
|
661
|
731
|
ChannelPage = __decorate([
|
662
|
732
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
663
|
|
- selector: 'page-channel',template:/*ion-inline-start:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/channel/channel.html"*/'\n\n\n<!-- <ion-buttons start>\n\n <button ion-button icon-only menuToggle>\n\n <ion-icon name="menu"></ion-icon>\n\n </button>\n\n</ion-buttons> -->\n\n<ion-header>\n\n <ion-navbar>\n <ion-title>Channel</ion-title>\n\n <ion-buttons start>\n\n <button ion-button icon-only menuToggle>\n <ion-icon name="menu"></ion-icon>\n </button>\n <button ion-button (click)="sendMessage()">\n <ion-icon name="add"></ion-icon>\n </button>\n <button ion-button (click)="getMessages()">\n <ion-icon name="refresh"></ion-icon>\n </button>\n \n </ion-buttons>\n </ion-navbar>\n\n</ion-header>\n\n\n\n<ion-content padding>\n\n\n <ion-list padding>\n <h1>Channels</h1>\n <ion-item-sliding *ngFor="let channel of channels">\n <ion-item>{{channel.name}}</ion-item>\n\n <!-- <ion-item-options side="right">\n <button ion-button>\n <ion-icon name="settings"></ion-icon>\n </button>\n <button color="danger" ion-button (click)="deleteMessage(message.id)">\n <ion-icon name="trash"></ion-icon>\n </button>\n \n </ion-item-options> -->\n </ion-item-sliding>\n\n <button>Create new Channel</button>\n \n <!-- <ion-item>Todo 2</ion-item>\n <ion-item>Todo 3</ion-item> -->\n </ion-list>\n\n <ion-list padding>\n <ion-item-sliding *ngFor="let message of messages">\n <ion-item>{{message.user.username}} - {{message.message}}</ion-item>\n \n <ion-item-options side="right">\n <button ion-button>\n <ion-icon name="settings"></ion-icon>\n </button>\n <button color="danger" ion-button (click)="deleteMessage(message.id)">\n <ion-icon name="trash"></ion-icon>\n </button>\n \n </ion-item-options>\n </ion-item-sliding>\n \n <!-- <ion-item>Todo 2</ion-item>\n <ion-item>Todo 3</ion-item> -->\n </ion-list>\n \n </ion-content>\n\n\n'/*ion-inline-end:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/channel/channel.html"*/,
|
|
733
|
+ selector: 'page-channel',template:/*ion-inline-start:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/channel/channel.html"*/'\n\n\n<!-- <ion-buttons start>\n\n <button ion-button icon-only menuToggle>\n\n <ion-icon name="menu"></ion-icon>\n\n </button>\n\n</ion-buttons> -->\n\n<ion-header>\n\n <ion-navbar>\n <ion-title>Channel</ion-title>\n\n <ion-buttons start>\n\n <button ion-button icon-only menuToggle>\n <ion-icon name="menu"></ion-icon>\n </button>\n <button ion-button (click)="sendMessage()">\n <ion-icon name="add"></ion-icon>\n </button>\n <button ion-button (click)="getMessages()">\n <ion-icon name="refresh"></ion-icon>\n </button>\n \n </ion-buttons>\n </ion-navbar>\n\n</ion-header>\n\n\n\n<ion-content padding>\n\n\n <!-- <ion-list padding>\n <h1>Channels</h1>\n <ion-item-sliding *ngFor="let channel of channels">\n <ion-item>{{channel.name}}</ion-item>\n\n <ion-item-options side="right">\n <button ion-button>\n <ion-icon name="settings"></ion-icon>\n </button>\n <button color="danger" ion-button (click)="deleteMessage(message.id)">\n <ion-icon name="trash"></ion-icon>\n </button>\n \n </ion-item-options>\n </ion-item-sliding>\n\n <button>Create new Channel</button>\n \n <ion-item>Todo 2</ion-item>\n <ion-item>Todo 3</ion-item>\n </ion-list> -->\n\n <ion-list padding>\n <ion-item-sliding *ngFor="let message of messages">\n <ion-item>{{message.user.username}} - {{message.message}}</ion-item>\n \n <ion-item-options side="right">\n <button ion-button>\n <ion-icon name="settings"></ion-icon>\n </button>\n <button color="danger" ion-button (click)="deleteMessage(message.id)">\n <ion-icon name="trash"></ion-icon>\n </button>\n \n </ion-item-options>\n </ion-item-sliding>\n \n <!-- <ion-item>Todo 2</ion-item>\n <ion-item>Todo 3</ion-item> -->\n </ion-list>\n \n </ion-content>\n\n\n'/*ion-inline-end:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/channel/channel.html"*/,
|
664
|
734
|
}),
|
665
|
735
|
__metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_2__providers_message_message__["a" /* MessageProvider */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__providers_message_message__["a" /* MessageProvider */]) === "function" && _d || Object, typeof (_e = typeof __WEBPACK_IMPORTED_MODULE_3__providers_channel_channel__["a" /* ChannelProvider */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__providers_channel_channel__["a" /* ChannelProvider */]) === "function" && _e || Object])
|
666
|
736
|
], ChannelPage);
|
|
@@ -696,9 +766,9 @@ var UrlProvider = /** @class */ (function () {
|
696
|
766
|
// constructor(public http: HttpClient) {
|
697
|
767
|
// console.log('Hello UrlProvider Provider');
|
698
|
768
|
// }
|
699
|
|
- this.baseUrl = "http://localhost:8080";
|
|
769
|
+ //private baseUrl = "http://localhost:8080";
|
|
770
|
+ this.baseUrl = "https://zipteampurple.herokuapp.com";
|
700
|
771
|
}
|
701
|
|
- //private baseUrl = "https://zipteampurple.herokuapp.com";
|
702
|
772
|
UrlProvider.prototype.setBaseUrl = function (baseUrl) {
|
703
|
773
|
this.baseUrl = baseUrl;
|
704
|
774
|
};
|
|
@@ -715,5 +785,5 @@ var UrlProvider = /** @class */ (function () {
|
715
|
785
|
|
716
|
786
|
/***/ })
|
717
|
787
|
|
718
|
|
-},[204]);
|
|
788
|
+},[205]);
|
719
|
789
|
//# sourceMappingURL=main.js.map
|