|
@@ -183,19 +183,19 @@ webpackEmptyAsyncContext.id = 119;
|
183
|
183
|
|
184
|
184
|
var map = {
|
185
|
185
|
"../pages/all-channels/all-channels.module": [
|
186
|
|
- 284,
|
|
186
|
+ 285,
|
187
|
187
|
3
|
188
|
188
|
],
|
189
|
189
|
"../pages/channel/channel.module": [
|
190
|
|
- 287,
|
|
190
|
+ 284,
|
191
|
191
|
2
|
192
|
192
|
],
|
193
|
193
|
"../pages/create-channel/create-channel.module": [
|
194
|
|
- 285,
|
|
194
|
+ 286,
|
195
|
195
|
1
|
196
|
196
|
],
|
197
|
197
|
"../pages/register/register.module": [
|
198
|
|
- 286,
|
|
198
|
+ 287,
|
199
|
199
|
0
|
200
|
200
|
]
|
201
|
201
|
};
|
|
@@ -224,7 +224,7 @@ module.exports = webpackAsyncContext;
|
224
|
224
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(20);
|
225
|
225
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__channel_channel__ = __webpack_require__(54);
|
226
|
226
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_forms__ = __webpack_require__(15);
|
227
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__providers_user_user__ = __webpack_require__(47);
|
|
227
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__providers_user_user__ = __webpack_require__(48);
|
228
|
228
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__register_register__ = __webpack_require__(107);
|
229
|
229
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__providers_channel_channel__ = __webpack_require__(30);
|
230
|
230
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -380,9 +380,9 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
|
380
|
380
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_channel_channel__ = __webpack_require__(54);
|
381
|
381
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ionic_native_status_bar__ = __webpack_require__(201);
|
382
|
382
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ionic_native_splash_screen__ = __webpack_require__(204);
|
383
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__providers_user_user__ = __webpack_require__(47);
|
|
383
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__providers_user_user__ = __webpack_require__(48);
|
384
|
384
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__angular_common_http__ = __webpack_require__(278);
|
385
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__angular_http__ = __webpack_require__(48);
|
|
385
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__angular_http__ = __webpack_require__(47);
|
386
|
386
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__providers_message_message__ = __webpack_require__(82);
|
387
|
387
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__providers_channel_channel__ = __webpack_require__(30);
|
388
|
388
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__providers_url_url__ = __webpack_require__(49);
|
|
@@ -431,10 +431,10 @@ var AppModule = /** @class */ (function () {
|
431
|
431
|
__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
|
432
|
432
|
__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["d" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_3__app_component__["a" /* MyApp */], {}, {
|
433
|
433
|
links: [
|
|
434
|
+ { loadChildren: '../pages/channel/channel.module#ChannelPageModule', name: 'ChannelPage', segment: 'channel', priority: 'low', defaultHistory: [] },
|
434
|
435
|
{ loadChildren: '../pages/all-channels/all-channels.module#AllChannelsPageModule', name: 'AllChannelsPage', segment: 'all-channels', priority: 'low', defaultHistory: [] },
|
435
|
436
|
{ loadChildren: '../pages/create-channel/create-channel.module#CreateChannelPageModule', name: 'CreateChannelPage', segment: 'create-channel', priority: 'low', defaultHistory: [] },
|
436
|
|
- { loadChildren: '../pages/register/register.module#RegisterPageModule', name: 'RegisterPage', segment: 'register', priority: 'low', defaultHistory: [] },
|
437
|
|
- { loadChildren: '../pages/channel/channel.module#ChannelPageModule', name: 'ChannelPage', segment: 'channel', priority: 'low', defaultHistory: [] }
|
|
437
|
+ { loadChildren: '../pages/register/register.module#RegisterPageModule', name: 'RegisterPage', segment: 'register', priority: 'low', defaultHistory: [] }
|
438
|
438
|
]
|
439
|
439
|
}),
|
440
|
440
|
__WEBPACK_IMPORTED_MODULE_10__angular_common_http__["a" /* HttpClientModule */],
|
|
@@ -579,8 +579,8 @@ var MyApp = /** @class */ (function () {
|
579
|
579
|
"use strict";
|
580
|
580
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChannelProvider; });
|
581
|
581
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
582
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__user_user__ = __webpack_require__(47);
|
583
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_angular_http__ = __webpack_require__(48);
|
|
582
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__user_user__ = __webpack_require__(48);
|
|
583
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_angular_http__ = __webpack_require__(47);
|
584
|
584
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__url_url__ = __webpack_require__(49);
|
585
|
585
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
586
|
586
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -606,7 +606,7 @@ var ChannelProvider = /** @class */ (function () {
|
606
|
606
|
this.http = http;
|
607
|
607
|
this.userProvider = userProvider;
|
608
|
608
|
this.urlProvider = urlProvider;
|
609
|
|
- this.channel = { "id": 1 };
|
|
609
|
+ this.channel = { "id": 1, "name": "General" };
|
610
|
610
|
this.userChannels = [];
|
611
|
611
|
this.allChannels = [];
|
612
|
612
|
//console.log('Hello ChannelProvider Provider');
|
|
@@ -698,24 +698,23 @@ var ChannelProvider = /** @class */ (function () {
|
698
|
698
|
};
|
699
|
699
|
ChannelProvider = __decorate([
|
700
|
700
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
|
701
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2__node_modules_angular_http__["b" /* Http */],
|
702
|
|
- __WEBPACK_IMPORTED_MODULE_1__user_user__["a" /* UserProvider */],
|
703
|
|
- __WEBPACK_IMPORTED_MODULE_3__url_url__["a" /* UrlProvider */]])
|
|
701
|
+ __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, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__url_url__["a" /* UrlProvider */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__url_url__["a" /* UrlProvider */]) === "function" && _c || Object])
|
704
|
702
|
], ChannelProvider);
|
705
|
703
|
return ChannelProvider;
|
|
704
|
+ var _a, _b, _c;
|
706
|
705
|
}());
|
707
|
706
|
|
708
|
707
|
//# sourceMappingURL=channel.js.map
|
709
|
708
|
|
710
|
709
|
/***/ }),
|
711
|
710
|
|
712
|
|
-/***/ 47:
|
|
711
|
+/***/ 48:
|
713
|
712
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
714
|
713
|
|
715
|
714
|
"use strict";
|
716
|
715
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return UserProvider; });
|
717
|
716
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
718
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(48);
|
|
717
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(47);
|
719
|
718
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__url_url__ = __webpack_require__(49);
|
720
|
719
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
721
|
720
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -863,11 +862,11 @@ var ChannelPage = /** @class */ (function () {
|
863
|
862
|
};
|
864
|
863
|
ChannelPage.prototype.ionViewDidLoad = function () {
|
865
|
864
|
console.log('ionViewDidLoad ChannelPage');
|
866
|
|
- //this.start();
|
|
865
|
+ this.start();
|
867
|
866
|
};
|
868
|
867
|
ChannelPage.prototype.start = function () {
|
869
|
868
|
var _this = this;
|
870
|
|
- this.timerToken = setInterval(function () { return _this.runningLoopOfMessages(_this.channelProvider); }, 5000);
|
|
869
|
+ this.timerToken = setInterval(function () { return _this.runningLoopOfMessages(_this.channelProvider); }, 2500);
|
871
|
870
|
};
|
872
|
871
|
ChannelPage.prototype.getMessages = function () {
|
873
|
872
|
this.messageProvider.get(function (result) {
|
|
@@ -934,7 +933,7 @@ var ChannelPage = /** @class */ (function () {
|
934
|
933
|
};
|
935
|
934
|
ChannelPage = __decorate([
|
936
|
935
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
937
|
|
- 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 this.messageProvider.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\n\n\n\n\n <ion-footer>\n\n <ion-item >\n\n <ion-input #chat_input\n type="text"\n placeholder="Text Input"\n [(ngModel)]="message"\n (keyup.enter)="sendMessage()"\n >\n\n </ion-input>\n\n </ion-item>\n\n\n\n <!-- <textarea #chat_input\n placeholder="Text Input"\n [(ngModel)]="message"\n (keyup.enter)="sendMessage()"\n >\n </textarea> -->\n \n\n\n <!-- Do we need to keep this button?\n <button ion-button clear icon-only item-right (click)="sendMessage()">\n <ion-icon name="ios-send" ios="ios-send" md="md-send"></ion-icon>\n </button> -->\n \n </ion-footer>\n\n\n\n\n </ion-list>\n\n\n \n \n </ion-content>\n\n\n'/*ion-inline-end:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/channel/channel.html"*/,
|
|
936
|
+ 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>{{this.channelProvider.channel.name}}</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 this.messageProvider.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\n\n\n\n\n <ion-footer>\n\n <ion-item >\n\n <ion-input #chat_input\n type="text"\n placeholder="Text Input"\n [(ngModel)]="message"\n (keyup.enter)="sendMessage()"\n >\n\n </ion-input>\n\n </ion-item>\n\n\n\n <!-- <textarea #chat_input\n placeholder="Text Input"\n [(ngModel)]="message"\n (keyup.enter)="sendMessage()"\n >\n </textarea> -->\n \n\n\n <!-- Do we need to keep this button?\n <button ion-button clear icon-only item-right (click)="sendMessage()">\n <ion-icon name="ios-send" ios="ios-send" md="md-send"></ion-icon>\n </button> -->\n \n </ion-footer>\n\n\n\n\n </ion-list>\n\n\n \n \n </ion-content>\n\n\n'/*ion-inline-end:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/channel/channel.html"*/,
|
938
|
937
|
}),
|
939
|
938
|
__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])
|
940
|
939
|
], ChannelPage);
|
|
@@ -952,8 +951,8 @@ var ChannelPage = /** @class */ (function () {
|
952
|
951
|
"use strict";
|
953
|
952
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MessageProvider; });
|
954
|
953
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
955
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(48);
|
956
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__user_user__ = __webpack_require__(47);
|
|
954
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(47);
|
|
955
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__user_user__ = __webpack_require__(48);
|
957
|
956
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__url_url__ = __webpack_require__(49);
|
958
|
957
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__channel_channel__ = __webpack_require__(30);
|
959
|
958
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -1043,10 +1042,12 @@ var MessageProvider = /** @class */ (function () {
|
1043
|
1042
|
};
|
1044
|
1043
|
MessageProvider = __decorate([
|
1045
|
1044
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
|
1046
|
|
- __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__user_user__["a" /* UserProvider */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__user_user__["a" /* UserProvider */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__url_url__["a" /* UrlProvider */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__url_url__["a" /* UrlProvider */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_4__channel_channel__["a" /* ChannelProvider */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_4__channel_channel__["a" /* ChannelProvider */]) === "function" && _d || Object])
|
|
1045
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_http__["b" /* Http */],
|
|
1046
|
+ __WEBPACK_IMPORTED_MODULE_2__user_user__["a" /* UserProvider */],
|
|
1047
|
+ __WEBPACK_IMPORTED_MODULE_3__url_url__["a" /* UrlProvider */],
|
|
1048
|
+ __WEBPACK_IMPORTED_MODULE_4__channel_channel__["a" /* ChannelProvider */]])
|
1047
|
1049
|
], MessageProvider);
|
1048
|
1050
|
return MessageProvider;
|
1049
|
|
- var _a, _b, _c, _d;
|
1050
|
1051
|
}());
|
1051
|
1052
|
|
1052
|
1053
|
//# sourceMappingURL=message.js.map
|