Преглед изворни кода

sidemenuFunctionalityTweak

jpsp91 пре 6 година
родитељ
комит
1d5d60c97b

+ 1
- 1
.sourcemaps/0.js.map Прегледај датотеку

@@ -1 +1 @@
1
-{"version":3,"sources":["../../src/pages/register/register.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACN;AAU1C;IAAA;IAAiC,CAAC;IAArB,kBAAkB;QAR9B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,+DAAY;aACb;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,+DAAY,CAAC;aACvC;SACF,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAA;AAAH","file":"0.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { RegisterPage } from './register';\n\n@NgModule({\n  declarations: [\n    RegisterPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(RegisterPage),\n  ],\n})\nexport class RegisterPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/register/register.module.ts"],"sourceRoot":""}
1
+{"version":3,"sources":["../../src/pages/create-channel/create-channel.module.ts","../../src/pages/create-channel/create-channel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACK;AAUrD;IAAA;IAAsC,CAAC;IAA1B,uBAAuB;QARnC,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,0EAAiB;aAClB;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,0EAAiB,CAAC;aAC5C;SACF,CAAC;OACW,uBAAuB,CAAG;IAAD,8BAAC;CAAA;AAAH;;;;;;;;;;;;;;;;;;;;;ACZM;AACe;AAEzD;;;;;GAKG;AAOH;IAEE,2BAAmB,OAAsB,EAAS,SAAoB;QAAnD,YAAO,GAAP,OAAO,CAAe;QAAS,cAAS,GAAT,SAAS,CAAW;IACtE,CAAC;IAED,0CAAc,GAAd;QACE,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IAClD,CAAC;IAPU,iBAAiB;QAJ7B,wEAAS,CAAC;YACT,QAAQ,EAAE,qBAAqB;WACG;SACnC,CAAC;0BAGsE;OAF3D,iBAAiB,CAS7B;IAAD,CAAC;AAAA;SATY,iBAAiB,gB","file":"0.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { CreateChannelPage } from './create-channel';\n\n@NgModule({\n  declarations: [\n    CreateChannelPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(CreateChannelPage),\n  ],\n})\nexport class CreateChannelPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/create-channel/create-channel.module.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\n\n/**\n * Generated class for the CreateChannelPage page.\n *\n * See https://ionicframework.com/docs/components/#navigation for more info on\n * Ionic pages and navigation.\n */\n\n@IonicPage()\n@Component({\n  selector: 'page-create-channel',\n  templateUrl: 'create-channel.html',\n})\nexport class CreateChannelPage {\n\n  constructor(public navCtrl: NavController, public navParams: NavParams) {\n  }\n\n  ionViewDidLoad() {\n    console.log('ionViewDidLoad CreateChannelPage');\n  }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/create-channel/create-channel.ts"],"sourceRoot":""}

+ 1
- 1
.sourcemaps/1.js.map Прегледај датотеку

@@ -1 +1 @@
1
-{"version":3,"sources":["../../src/pages/channel/channel.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACR;AAUxC;IAAA;IAAgC,CAAC;IAApB,iBAAiB;QAR7B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,6DAAW;aACZ;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,6DAAW,CAAC;aACtC;SACF,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAA;AAAH","file":"1.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { ChannelPage } from './channel';\n\n@NgModule({\n  declarations: [\n    ChannelPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(ChannelPage),\n  ],\n})\nexport class ChannelPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/channel/channel.module.ts"],"sourceRoot":""}
1
+{"version":3,"sources":["../../src/pages/register/register.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACN;AAU1C;IAAA;IAAiC,CAAC;IAArB,kBAAkB;QAR9B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,+DAAY;aACb;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,+DAAY,CAAC;aACvC;SACF,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAA;AAAH","file":"1.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { RegisterPage } from './register';\n\n@NgModule({\n  declarations: [\n    RegisterPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(RegisterPage),\n  ],\n})\nexport class RegisterPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/register/register.module.ts"],"sourceRoot":""}

+ 1
- 0
.sourcemaps/2.js.map Прегледај датотеку

@@ -0,0 +1 @@
1
+{"version":3,"sources":["../../src/pages/channel/channel.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACR;AAUxC;IAAA;IAAgC,CAAC;IAApB,iBAAiB;QAR7B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,6DAAW;aACZ;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,6DAAW,CAAC;aACtC;SACF,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAA;AAAH","file":"2.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { ChannelPage } from './channel';\n\n@NgModule({\n  declarations: [\n    ChannelPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(ChannelPage),\n  ],\n})\nexport class ChannelPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/channel/channel.module.ts"],"sourceRoot":""}

+ 1
- 1
.sourcemaps/main.js.map
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 14
- 1
src/app/app.component.ts Прегледај датотеку

@@ -22,7 +22,9 @@ export class MyApp {
22 22
 
23 23
     // used for an example of ngFor and navigation
24 24
     this.pages = [
25
-      { title: 'General Channel', component: ChannelPage }
25
+      { title: 'Home', component: HomePage },
26
+      { title: 'List', component: ListPage },
27
+      { title: 'Channel', component: ChannelPage }
26 28
     ];
27 29
 
28 30
   }
@@ -41,4 +43,15 @@ export class MyApp {
41 43
     // we wouldn't want the back button to show in this scenario
42 44
     this.nav.setRoot(page.component);
43 45
   }
46
+
47
+  openChannelPage(){
48
+    this.nav.setRoot(ChannelPage);
49
+  }
50
+
51
+
52
+  backToLoginPage(){
53
+    this.nav.setRoot(HomePage);
54
+  }
55
+
56
+    
44 57
 }

+ 6
- 5
src/app/app.html Прегледај датотеку

@@ -15,14 +15,15 @@
15 15
         
16 16
       </button>
17 17
 
18
-
18
+      
19 19
 
20 20
       <ion-list-header>
21 21
           <h2>Channels</h2>
22 22
         </ion-list-header>
23
-        <ion-item (click)="openPage(ChannelPage)">General Channel</ion-item>
23
+        <!-- <ion-item (click)="openPage(ChannelPage)">General Channel</ion-item> -->
24
+        <ion-item menuClose (click)="openChannelPage()">General Channel</ion-item>
24 25
 
25
-        <button ion-button color="light" type="button"(click)="openPage(ChannelPage)">+ New Channel</button>
26
+        <button ion-button color="light" type="button"(click)="openPage(ChannelPage)" round>+ New Channel</button>
26 27
         
27 28
 
28 29
         <ion-list-header>
@@ -38,7 +39,7 @@
38 39
 
39 40
           <ion-footer text-center>
40 41
 
41
-              <button ion-button color="danger" type="submit" (click)="openPage(ChannelPage)">Logout</button>
42
+              <button menuClose ion-button color="danger" type="submit" (click)="backToLoginPage()" round>Logout</button>
42 43
 
43 44
           </ion-footer>
44 45
 
@@ -54,4 +55,4 @@
54 55
 </ion-menu>
55 56
 
56 57
 <!-- Disable swipe-to-go-back because it's poor UX to combine STGB with side menus -->
57
-<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>
58
+<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>

+ 37
- 0
src/pages/create-channel/create-channel.html Прегледај датотеку

@@ -0,0 +1,37 @@
1
+
2
+
3
+
4
+<ion-header>
5
+
6
+  <ion-navbar>
7
+    <ion-title>createChannel</ion-title>
8
+  </ion-navbar>
9
+
10
+</ion-header>
11
+
12
+
13
+<ion-content text-center>
14
+
15
+    <br><br><br><br>
16
+
17
+    <h1>Create a channel</h1>
18
+    <br>
19
+    <h3>Channels are where your members communicate.</h3>
20
+
21
+    <br><br><br>
22
+    <h2>Name</h2>
23
+    <ion-item >
24
+
25
+        <ion-input
26
+        type="text"
27
+        placeholder="# e.g. ZipTeam Study Room"
28
+        [(ngModel)]="message"
29
+        (keyup.enter)="sendMessage()"
30
+        >
31
+        </ion-input>
32
+        
33
+
34
+      </ion-item>
35
+
36
+
37
+</ion-content>

+ 13
- 0
src/pages/create-channel/create-channel.module.ts Прегледај датотеку

@@ -0,0 +1,13 @@
1
+import { NgModule } from '@angular/core';
2
+import { IonicPageModule } from 'ionic-angular';
3
+import { CreateChannelPage } from './create-channel';
4
+
5
+@NgModule({
6
+  declarations: [
7
+    CreateChannelPage,
8
+  ],
9
+  imports: [
10
+    IonicPageModule.forChild(CreateChannelPage),
11
+  ],
12
+})
13
+export class CreateChannelPageModule {}

+ 3
- 0
src/pages/create-channel/create-channel.scss Прегледај датотеку

@@ -0,0 +1,3 @@
1
+page-create-channel {
2
+
3
+}

+ 25
- 0
src/pages/create-channel/create-channel.ts Прегледај датотеку

@@ -0,0 +1,25 @@
1
+import { Component } from '@angular/core';
2
+import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
+
4
+/**
5
+ * Generated class for the CreateChannelPage page.
6
+ *
7
+ * See https://ionicframework.com/docs/components/#navigation for more info on
8
+ * Ionic pages and navigation.
9
+ */
10
+
11
+@IonicPage()
12
+@Component({
13
+  selector: 'page-create-channel',
14
+  templateUrl: 'create-channel.html',
15
+})
16
+export class CreateChannelPage {
17
+
18
+  constructor(public navCtrl: NavController, public navParams: NavParams) {
19
+  }
20
+
21
+  ionViewDidLoad() {
22
+    console.log('ionViewDidLoad CreateChannelPage');
23
+  }
24
+
25
+}

+ 55
- 10
www/build/0.js Прегледај датотеку

@@ -5,10 +5,10 @@ webpackJsonp([0],{
5 5
 
6 6
 "use strict";
7 7
 Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterPageModule", function() { return RegisterPageModule; });
8
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateChannelPageModule", function() { return CreateChannelPageModule; });
9 9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
10 10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
11
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__register__ = __webpack_require__(103);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__create_channel__ = __webpack_require__(285);
12 12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13 13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14 14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -18,23 +18,68 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18 18
 
19 19
 
20 20
 
21
-var RegisterPageModule = /** @class */ (function () {
22
-    function RegisterPageModule() {
21
+var CreateChannelPageModule = /** @class */ (function () {
22
+    function CreateChannelPageModule() {
23 23
     }
24
-    RegisterPageModule = __decorate([
24
+    CreateChannelPageModule = __decorate([
25 25
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
26 26
             declarations: [
27
-                __WEBPACK_IMPORTED_MODULE_2__register__["a" /* RegisterPage */],
27
+                __WEBPACK_IMPORTED_MODULE_2__create_channel__["a" /* CreateChannelPage */],
28 28
             ],
29 29
             imports: [
30
-                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__register__["a" /* RegisterPage */]),
30
+                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__create_channel__["a" /* CreateChannelPage */]),
31 31
             ],
32 32
         })
33
-    ], RegisterPageModule);
34
-    return RegisterPageModule;
33
+    ], CreateChannelPageModule);
34
+    return CreateChannelPageModule;
35 35
 }());
36 36
 
37
-//# sourceMappingURL=register.module.js.map
37
+//# sourceMappingURL=create-channel.module.js.map
38
+
39
+/***/ }),
40
+
41
+/***/ 285:
42
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
43
+
44
+"use strict";
45
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CreateChannelPage; });
46
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
47
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
48
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
49
+    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
50
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
51
+    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;
52
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
53
+};
54
+var __metadata = (this && this.__metadata) || function (k, v) {
55
+    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
56
+};
57
+
58
+
59
+/**
60
+ * Generated class for the CreateChannelPage page.
61
+ *
62
+ * See https://ionicframework.com/docs/components/#navigation for more info on
63
+ * Ionic pages and navigation.
64
+ */
65
+var CreateChannelPage = /** @class */ (function () {
66
+    function CreateChannelPage(navCtrl, navParams) {
67
+        this.navCtrl = navCtrl;
68
+        this.navParams = navParams;
69
+    }
70
+    CreateChannelPage.prototype.ionViewDidLoad = function () {
71
+        console.log('ionViewDidLoad CreateChannelPage');
72
+    };
73
+    CreateChannelPage = __decorate([
74
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
75
+            selector: 'page-create-channel',template:/*ion-inline-start:"/Users/jaehoonp/ZipTeamPurple-FrontEnd/src/pages/create-channel/create-channel.html"*/'\n\n\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>createChannel</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content text-center>\n\n    <br><br><br><br>\n\n    <h1>Create a channel</h1>\n    <br>\n    <h3>Channels are where your members communicate.</h3>\n\n    <br><br><br>\n    <h2>Name</h2>\n    <ion-item >\n\n        <ion-input\n        type="text"\n        placeholder="# e.g. ZipTeam Study Room"\n        [(ngModel)]="message"\n        (keyup.enter)="sendMessage()"\n        >\n        </ion-input>\n        \n\n      </ion-item>\n\n\n</ion-content>\n'/*ion-inline-end:"/Users/jaehoonp/ZipTeamPurple-FrontEnd/src/pages/create-channel/create-channel.html"*/,
76
+        }),
77
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */]])
78
+    ], CreateChannelPage);
79
+    return CreateChannelPage;
80
+}());
81
+
82
+//# sourceMappingURL=create-channel.js.map
38 83
 
39 84
 /***/ })
40 85
 

+ 1
- 1
www/build/0.js.map Прегледај датотеку

@@ -1 +1 @@
1
-{"version":3,"sources":["../../src/pages/register/register.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACN;AAU1C;IAAA;IAAiC,CAAC;IAArB,kBAAkB;QAR9B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,+DAAY;aACb;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,+DAAY,CAAC;aACvC;SACF,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAA;AAAH","file":"0.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { RegisterPage } from './register';\n\n@NgModule({\n  declarations: [\n    RegisterPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(RegisterPage),\n  ],\n})\nexport class RegisterPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/register/register.module.ts"],"sourceRoot":""}
1
+{"version":3,"sources":["../../src/pages/create-channel/create-channel.module.ts","../../src/pages/create-channel/create-channel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACK;AAUrD;IAAA;IAAsC,CAAC;IAA1B,uBAAuB;QARnC,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,0EAAiB;aAClB;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,0EAAiB,CAAC;aAC5C;SACF,CAAC;OACW,uBAAuB,CAAG;IAAD,8BAAC;CAAA;AAAH;;;;;;;;;;;;;;;;;;;;;ACZM;AACe;AAEzD;;;;;GAKG;AAOH;IAEE,2BAAmB,OAAsB,EAAS,SAAoB;QAAnD,YAAO,GAAP,OAAO,CAAe;QAAS,cAAS,GAAT,SAAS,CAAW;IACtE,CAAC;IAED,0CAAc,GAAd;QACE,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IAClD,CAAC;IAPU,iBAAiB;QAJ7B,wEAAS,CAAC;YACT,QAAQ,EAAE,qBAAqB;WACG;SACnC,CAAC;0BAGsE;OAF3D,iBAAiB,CAS7B;IAAD,CAAC;AAAA;SATY,iBAAiB,gB","file":"0.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { CreateChannelPage } from './create-channel';\n\n@NgModule({\n  declarations: [\n    CreateChannelPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(CreateChannelPage),\n  ],\n})\nexport class CreateChannelPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/create-channel/create-channel.module.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\n\n/**\n * Generated class for the CreateChannelPage page.\n *\n * See https://ionicframework.com/docs/components/#navigation for more info on\n * Ionic pages and navigation.\n */\n\n@IonicPage()\n@Component({\n  selector: 'page-create-channel',\n  templateUrl: 'create-channel.html',\n})\nexport class CreateChannelPage {\n\n  constructor(public navCtrl: NavController, public navParams: NavParams) {\n  }\n\n  ionViewDidLoad() {\n    console.log('ionViewDidLoad CreateChannelPage');\n  }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/create-channel/create-channel.ts"],"sourceRoot":""}

+ 11
- 11
www/build/1.js Прегледај датотеку

@@ -1,14 +1,14 @@
1 1
 webpackJsonp([1],{
2 2
 
3
-/***/ 282:
3
+/***/ 284:
4 4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
5 5
 
6 6
 "use strict";
7 7
 Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelPageModule", function() { return ChannelPageModule; });
8
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterPageModule", function() { return RegisterPageModule; });
9 9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
10 10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
11
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__channel__ = __webpack_require__(52);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__register__ = __webpack_require__(103);
12 12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13 13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14 14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -18,23 +18,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18 18
 
19 19
 
20 20
 
21
-var ChannelPageModule = /** @class */ (function () {
22
-    function ChannelPageModule() {
21
+var RegisterPageModule = /** @class */ (function () {
22
+    function RegisterPageModule() {
23 23
     }
24
-    ChannelPageModule = __decorate([
24
+    RegisterPageModule = __decorate([
25 25
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
26 26
             declarations: [
27
-                __WEBPACK_IMPORTED_MODULE_2__channel__["a" /* ChannelPage */],
27
+                __WEBPACK_IMPORTED_MODULE_2__register__["a" /* RegisterPage */],
28 28
             ],
29 29
             imports: [
30
-                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__channel__["a" /* ChannelPage */]),
30
+                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__register__["a" /* RegisterPage */]),
31 31
             ],
32 32
         })
33
-    ], ChannelPageModule);
34
-    return ChannelPageModule;
33
+    ], RegisterPageModule);
34
+    return RegisterPageModule;
35 35
 }());
36 36
 
37
-//# sourceMappingURL=channel.module.js.map
37
+//# sourceMappingURL=register.module.js.map
38 38
 
39 39
 /***/ })
40 40
 

+ 1
- 1
www/build/1.js.map Прегледај датотеку

@@ -1 +1 @@
1
-{"version":3,"sources":["../../src/pages/channel/channel.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACR;AAUxC;IAAA;IAAgC,CAAC;IAApB,iBAAiB;QAR7B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,6DAAW;aACZ;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,6DAAW,CAAC;aACtC;SACF,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAA;AAAH","file":"1.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { ChannelPage } from './channel';\n\n@NgModule({\n  declarations: [\n    ChannelPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(ChannelPage),\n  ],\n})\nexport class ChannelPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/channel/channel.module.ts"],"sourceRoot":""}
1
+{"version":3,"sources":["../../src/pages/register/register.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACN;AAU1C;IAAA;IAAiC,CAAC;IAArB,kBAAkB;QAR9B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,+DAAY;aACb;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,+DAAY,CAAC;aACvC;SACF,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAA;AAAH","file":"1.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { RegisterPage } from './register';\n\n@NgModule({\n  declarations: [\n    RegisterPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(RegisterPage),\n  ],\n})\nexport class RegisterPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/register/register.module.ts"],"sourceRoot":""}

+ 42
- 0
www/build/2.js Прегледај датотеку

@@ -0,0 +1,42 @@
1
+webpackJsonp([2],{
2
+
3
+/***/ 282:
4
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
5
+
6
+"use strict";
7
+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelPageModule", function() { return ChannelPageModule; });
9
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
10
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__channel__ = __webpack_require__(52);
12
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
+    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15
+    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;
16
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
17
+};
18
+
19
+
20
+
21
+var ChannelPageModule = /** @class */ (function () {
22
+    function ChannelPageModule() {
23
+    }
24
+    ChannelPageModule = __decorate([
25
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
26
+            declarations: [
27
+                __WEBPACK_IMPORTED_MODULE_2__channel__["a" /* ChannelPage */],
28
+            ],
29
+            imports: [
30
+                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__channel__["a" /* ChannelPage */]),
31
+            ],
32
+        })
33
+    ], ChannelPageModule);
34
+    return ChannelPageModule;
35
+}());
36
+
37
+//# sourceMappingURL=channel.module.js.map
38
+
39
+/***/ })
40
+
41
+});
42
+//# sourceMappingURL=2.js.map

+ 1
- 0
www/build/2.js.map Прегледај датотеку

@@ -0,0 +1 @@
1
+{"version":3,"sources":["../../src/pages/channel/channel.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACR;AAUxC;IAAA;IAAgC,CAAC;IAApB,iBAAiB;QAR7B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,6DAAW;aACZ;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,6DAAW,CAAC;aACtC;SACF,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAA;AAAH","file":"2.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { ChannelPage } from './channel';\n\n@NgModule({\n  declarations: [\n    ChannelPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(ChannelPage),\n  ],\n})\nexport class ChannelPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/channel/channel.module.ts"],"sourceRoot":""}

+ 15
- 4
www/build/main.js Прегледај датотеку

@@ -1,4 +1,4 @@
1
-webpackJsonp([2],{
1
+webpackJsonp([3],{
2 2
 
3 3
 /***/ 103:
4 4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -69,11 +69,15 @@ webpackEmptyAsyncContext.id = 115;
69 69
 var map = {
70 70
 	"../pages/channel/channel.module": [
71 71
 		282,
72
-		1
72
+		2
73 73
 	],
74
-	"../pages/register/register.module": [
74
+	"../pages/create-channel/create-channel.module": [
75 75
 		283,
76 76
 		0
77
+	],
78
+	"../pages/register/register.module": [
79
+		284,
80
+		1
77 81
 	]
78 82
 };
79 83
 function webpackAsyncContext(req) {
@@ -454,6 +458,7 @@ var AppModule = /** @class */ (function () {
454 458
                 __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["d" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_3__app_component__["a" /* MyApp */], {}, {
455 459
                     links: [
456 460
                         { loadChildren: '../pages/channel/channel.module#ChannelPageModule', name: 'ChannelPage', segment: 'channel', priority: 'low', defaultHistory: [] },
461
+                        { loadChildren: '../pages/create-channel/create-channel.module#CreateChannelPageModule', name: 'CreateChannelPage', segment: 'create-channel', priority: 'low', defaultHistory: [] },
457 462
                         { loadChildren: '../pages/register/register.module#RegisterPageModule', name: 'RegisterPage', segment: 'register', priority: 'low', defaultHistory: [] }
458 463
                     ]
459 464
                 }),
@@ -542,12 +547,18 @@ var MyApp = /** @class */ (function () {
542 547
         // we wouldn't want the back button to show in this scenario
543 548
         this.nav.setRoot(page.component);
544 549
     };
550
+    MyApp.prototype.openChannelPage = function () {
551
+        this.nav.setRoot(__WEBPACK_IMPORTED_MODULE_6__pages_channel_channel__["a" /* ChannelPage */]);
552
+    };
553
+    MyApp.prototype.backToLoginPage = function () {
554
+        this.nav.setRoot(__WEBPACK_IMPORTED_MODULE_4__pages_home_home__["a" /* HomePage */]);
555
+    };
545 556
     __decorate([
546 557
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_8" /* ViewChild */])(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* Nav */]),
547 558
         __metadata("design:type", __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* Nav */])
548 559
     ], MyApp.prototype, "nav", void 0);
549 560
     MyApp = __decorate([
550
-        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\n      \n\n      <button menuClose ion-item *ngFor="" (click)="openPage(p)">\n        \n      </button>\n\n\n\n      <ion-list-header>\n          <h2>Channels</h2>\n        </ion-list-header>\n        <ion-item (click)="openPage(ChannelPage)">General Channel</ion-item>\n\n        <button ion-button color="light" type="button"(click)="openPage(ChannelPage)">+ New Channel</button>\n        \n\n        <ion-list-header>\n            Direct messages\n          </ion-list-header>\n          <ion-item (click)="openPage(ChannelPage)">nmaidanos</ion-item>\n          <ion-item (click)="openPage(ChannelPage)">Small_Wrld</ion-item>\n\n          <button ion-button color="light" type="button" (click)="openPage(Channel)">+ New Direcet Message</button>\n          \n\n\n\n          <ion-footer text-center>\n\n              <button ion-button color="danger" type="submit" (click)="openPage(ChannelPage)">Logout</button>\n\n          </ion-footer>\n\n    </ion-list>\n\n\n\n\n\n\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"*/
561
+        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\n      \n\n      <button menuClose ion-item *ngFor="" (click)="openPage(p)">\n        \n      </button>\n\n      \n\n      <ion-list-header>\n          <h2>Channels</h2>\n        </ion-list-header>\n        <!-- <ion-item (click)="openPage(ChannelPage)">General Channel</ion-item> -->\n        <ion-item menuClose (click)="openChannelPage()">General Channel</ion-item>\n\n        <button ion-button color="light" type="button"(click)="openPage(ChannelPage)" round>+ New Channel</button>\n        \n\n        <ion-list-header>\n            Direct messages\n          </ion-list-header>\n          <ion-item (click)="openPage(ChannelPage)">nmaidanos</ion-item>\n          <ion-item (click)="openPage(ChannelPage)">Small_Wrld</ion-item>\n\n          <button ion-button color="light" type="button" (click)="openPage(Channel)">+ New Direcet Message</button>\n          \n\n\n\n          <ion-footer text-center>\n\n              <button menuClose ion-button color="danger" type="submit" (click)="backToLoginPage()" round>Logout</button>\n\n          </ion-footer>\n\n    </ion-list>\n\n\n\n\n\n\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>\n'/*ion-inline-end:"/Users/jaehoonp/ZipTeamPurple-FrontEnd/src/app/app.html"*/
551 562
         }),
552 563
         __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 */]])
553 564
     ], MyApp);

+ 1
- 1
www/build/main.js.map
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 1
- 1
www/build/vendor.js Прегледај датотеку

@@ -34,7 +34,7 @@
34 34
 /******/
35 35
 /******/ 	// objects to store loaded and loading chunks
36 36
 /******/ 	var installedChunks = {
37
-/******/ 		3: 0
37
+/******/ 		4: 0
38 38
 /******/ 	};
39 39
 /******/
40 40
 /******/ 	// The require function

+ 1
- 1
www/build/vendor.js.map
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку