|
@@ -34,7 +34,7 @@ var RegisterPage = /** @class */ (function () {
|
34
|
34
|
};
|
35
|
35
|
RegisterPage = __decorate([
|
36
|
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"*/,
|
|
37
|
+ selector: 'page-register',template:/*ion-inline-start:"/Users/jaehoonp/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\n <br><br><br><br><br>\n\n <ion-list>\n <ion-item>\n <ion-label fixed>Username</ion-label>\n <ion-input type="text"></ion-input>\n </ion-item>\n\n\n <ion-item>\n <ion-label fixed>First Name</ion-label>\n <ion-input type="text"></ion-input>\n </ion-item>\n\n\n <ion-item>\n <ion-label fixed>Last Name</ion-label>\n <ion-input type="text"></ion-input>\n </ion-item>\n\n\n <ion-item>\n <ion-label fixed>Password</ion-label>\n <ion-input type="text"></ion-input>\n </ion-item>\n\n\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/jaehoonp/ZipTeamPurple-FrontEnd/src/pages/register/register.html"*/,
|
38
|
38
|
}),
|
39
|
39
|
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */],
|
40
|
40
|
__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */]])
|
|
@@ -311,7 +311,7 @@ var HomePage = /** @class */ (function () {
|
311
|
311
|
};
|
312
|
312
|
HomePage = __decorate([
|
313
|
313
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
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"*/
|
|
314
|
+ selector: 'page-home',template:/*ion-inline-start:"/Users/jaehoonp/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/jaehoonp/ZipTeamPurple-FrontEnd/src/pages/home/home.html"*/
|
315
|
315
|
}),
|
316
|
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 */]])
|
317
|
317
|
], HomePage);
|
|
@@ -367,7 +367,7 @@ var ListPage = /** @class */ (function () {
|
367
|
367
|
};
|
368
|
368
|
ListPage = ListPage_1 = __decorate([
|
369
|
369
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
370
|
|
- selector: 'page-list',template:/*ion-inline-start:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/list/list.html"*/'<ion-header>\n <ion-navbar>\n <button ion-button menuToggle>\n <ion-icon name="menu"></ion-icon>\n </button>\n <ion-title>List</ion-title>\n </ion-navbar>\n</ion-header>\n\n<ion-content>\n <ion-list>\n <button ion-item *ngFor="let item of items" (click)="itemTapped($event, item)">\n <ion-icon [name]="item.icon" item-start></ion-icon>\n {{item.title}}\n <div class="item-note" item-end>\n {{item.note}}\n </div>\n </button>\n </ion-list>\n <div *ngIf="selectedItem" padding>\n You navigated here from <b>{{selectedItem.title}}</b>\n </div>\n</ion-content>\n'/*ion-inline-end:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/list/list.html"*/
|
|
370
|
+ selector: 'page-list',template:/*ion-inline-start:"/Users/jaehoonp/ZipTeamPurple-FrontEnd/src/pages/list/list.html"*/'<ion-header>\n <ion-navbar>\n <button ion-button menuToggle>\n <ion-icon name="menu"></ion-icon>\n </button>\n <ion-title>List</ion-title>\n </ion-navbar>\n</ion-header>\n\n<ion-content>\n <ion-list>\n <button ion-item *ngFor="let item of items" (click)="itemTapped($event, item)">\n <ion-icon [name]="item.icon" item-start></ion-icon>\n {{item.title}}\n <div class="item-note" item-end>\n {{item.note}}\n </div>\n </button>\n </ion-list>\n <div *ngIf="selectedItem" padding>\n You navigated here from <b>{{selectedItem.title}}</b>\n </div>\n</ion-content>\n'/*ion-inline-end:"/Users/jaehoonp/ZipTeamPurple-FrontEnd/src/pages/list/list.html"*/
|
371
|
371
|
}),
|
372
|
372
|
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */]])
|
373
|
373
|
], ListPage);
|
|
@@ -546,7 +546,7 @@ var MyApp = /** @class */ (function () {
|
546
|
546
|
__metadata("design:type", __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* Nav */])
|
547
|
547
|
], MyApp.prototype, "nav", void 0);
|
548
|
548
|
MyApp = __decorate([
|
549
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/app/app.html"*/'<ion-menu [content]="content">\n\n <ion-header>\n <ion-toolbar>\n <ion-title>Zip-Slack</ion-title>\n </ion-toolbar>\n </ion-header>\n\n <ion-content>\n <ion-list>\n <button menuClose ion-item *ngFor="let p of pages" (click)="openPage(p)">\n {{p.title}}\n </button>\n </ion-list>\n </ion-content>\n\n</ion-menu>\n\n<!-- Disable swipe-to-go-back because it\'s poor UX to combine STGB with side menus -->\n<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>'/*ion-inline-end:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/app/app.html"*/
|
|
549
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/jaehoonp/ZipTeamPurple-FrontEnd/src/app/app.html"*/'<ion-menu [content]="content">\n\n <ion-header>\n <ion-toolbar>\n <ion-title>Zip-Slack</ion-title>\n </ion-toolbar>\n </ion-header>\n\n <ion-content>\n <ion-list>\n <button menuClose ion-item *ngFor="let p of pages" (click)="openPage(p)">\n {{p.title}}\n </button>\n </ion-list>\n </ion-content>\n\n</ion-menu>\n\n<!-- Disable swipe-to-go-back because it\'s poor UX to combine STGB with side menus -->\n<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>'/*ion-inline-end:"/Users/jaehoonp/ZipTeamPurple-FrontEnd/src/app/app.html"*/
|
550
|
550
|
}),
|
551
|
551
|
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
|
552
|
552
|
], MyApp);
|
|
@@ -739,12 +739,14 @@ var ChannelPage = /** @class */ (function () {
|
739
|
739
|
};
|
740
|
740
|
ChannelPage = __decorate([
|
741
|
741
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
742
|
|
- 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 </ion-list>\n\n\n <ion-footer>\n <textarea #chat_input\n placeholder="Text Input"\n [(ngModel)]="message"\n (keyup.enter)="sendMessage()"\n >\n</textarea>\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 </ion-footer>\n \n </ion-content>\n\n\n'/*ion-inline-end:"/Users/nicholasm/Labs/ZipTeamPurple-FrontEnd/src/pages/channel/channel.html"*/,
|
|
742
|
+ selector: 'page-channel',template:/*ion-inline-start:"/Users/jaehoonp/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 </ion-list>\n\n\n <ion-footer>\n <textarea #chat_input\n placeholder="Text Input"\n [(ngModel)]="message"\n (keyup.enter)="sendMessage()"\n >\n</textarea>\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 </ion-footer>\n \n </ion-content>\n\n\n'/*ion-inline-end:"/Users/jaehoonp/ZipTeamPurple-FrontEnd/src/pages/channel/channel.html"*/,
|
743
|
743
|
}),
|
744
|
|
- __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])
|
|
744
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */],
|
|
745
|
+ __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */],
|
|
746
|
+ __WEBPACK_IMPORTED_MODULE_2__providers_message_message__["a" /* MessageProvider */],
|
|
747
|
+ __WEBPACK_IMPORTED_MODULE_3__providers_channel_channel__["a" /* ChannelProvider */]])
|
745
|
748
|
], ChannelPage);
|
746
|
749
|
return ChannelPage;
|
747
|
|
- var _a, _b, _c, _d, _e;
|
748
|
750
|
}());
|
749
|
751
|
|
750
|
752
|
//# sourceMappingURL=channel.js.map
|