diff --git a/Ionic2/src/app/app.component.ts b/Ionic2/src/app/app.component.ts index 20f33b0..053e9b1 100644 --- a/Ionic2/src/app/app.component.ts +++ b/Ionic2/src/app/app.component.ts @@ -1,4 +1,4 @@ -import { Component, ViewChild, provide } from '@angular/core'; +import { Component, ViewChild } from '@angular/core'; //TODO: provide import { Platform, MenuController, Nav } from 'ionic-angular'; import { StatusBar } from 'ionic-native'; @@ -19,21 +19,22 @@ import {UserInfoService} from '../services/userInfo.service'; import {Http} from '@angular/http'; import {AuthHttp, AuthConfig} from 'angular2-jwt'; -import {AuthService} from '../services/auth.service'; +//TODO: import {AuthService} from '../services/auth.service'; import {Secret} from '../secrets/secret'; @Component({ templateUrl: `app.html` }) export class MyApp { - @ViewChild('nav') nav: Nav; + @ViewChild('content') nav: Nav; public primaryPages:any[]; public settingsPages:any[]; public rootPage:any; constructor(public platform: Platform, public menu: MenuController, public preferencesService: PreferencesService, - public auth: AuthService, public userInfoService: UserInfoService) { + //TODO: public auth: AuthService, + public userInfoService: UserInfoService) { this.initializeApp(); @@ -49,7 +50,7 @@ export class MyApp { { title: 'Settings', component: SettingsPage, icon: 'settings' } ]; - this.rootPage = LoginPage; + this.rootPage = ProfilePage;//LoginPage; } initializeApp() { @@ -59,7 +60,7 @@ export class MyApp { StatusBar.styleDefault(); this.userInfoService.initialize(); this.preferencesService.initializePreferences(); - this.auth.startupTokenRefresh(); + //TODO: this.auth.startupTokenRefresh(); }); } diff --git a/Ionic2/src/app/app.html b/Ionic2/src/app/app.html index 125126f..1cfde2e 100644 --- a/Ionic2/src/app/app.html +++ b/Ionic2/src/app/app.html @@ -1,5 +1,5 @@ - + Menu diff --git a/Ionic2/src/app/app.module.ts b/Ionic2/src/app/app.module.ts index 9c1f168..b73553b 100644 --- a/Ionic2/src/app/app.module.ts +++ b/Ionic2/src/app/app.module.ts @@ -1,4 +1,4 @@ -import { NgModule, provide } from '@angular/core'; +import { NgModule } from '@angular/core';//TODO: provide import { IonicApp, IonicModule } from 'ionic-angular'; import { MyApp } from './app.component'; @@ -20,7 +20,7 @@ import {ProfileHeader} from '../components/profileHeader'; import {ChatBubble} from '../components/chatBubble/chatBubble'; //services (providers) -import {AuthService} from '../services/auth.service'; +//TODO: import {AuthService} from '../services/auth.service'; import {ContactsService} from '../services/contacts.service'; import {PreferencesService} from '../services/preferences.service'; import {StorageService} from '../services/storage.service'; @@ -71,13 +71,14 @@ import {AuthHttp, AuthConfig} from 'angular2-jwt'; PreferencesService, StorageService, UserInfoService, - provide(AuthHttp, { - useFactory: (http) => { - return new AuthHttp(new AuthConfig({noJwtError: true}), http); - }, - deps: [Http] - }), - AuthService + //TODO: + // provide(AuthHttp, { + // useFactory: (http) => { + // return new AuthHttp(new AuthConfig({noJwtError: true}), http); + // }, + // deps: [Http] + // }), + // AuthService ] }) export class AppModule {} diff --git a/Ionic2/src/assets/img/hugh.png b/Ionic2/src/assets/img/hugh.png new file mode 100644 index 0000000..94c0857 Binary files /dev/null and b/Ionic2/src/assets/img/hugh.png differ diff --git a/Ionic2/src/components/profileHeader.ts b/Ionic2/src/components/profileHeader.ts index aa0f024..c692672 100644 --- a/Ionic2/src/components/profileHeader.ts +++ b/Ionic2/src/components/profileHeader.ts @@ -17,7 +17,7 @@ export class ProfileHeader { constructor() { this.fullName = 'Dr. House'; - this.profileImage = 'build/img/hugh.png'; + this.profileImage = 'assets/img/hugh.png'; } public setFullName(fullName){ diff --git a/Ionic2/src/pages/chatPage/chatPage.ts b/Ionic2/src/pages/chatPage/chatPage.ts index 987ce2c..aa2a5fa 100644 --- a/Ionic2/src/pages/chatPage/chatPage.ts +++ b/Ionic2/src/pages/chatPage/chatPage.ts @@ -16,63 +16,63 @@ export class ChatPage { this.messages = [ { - img: 'build/img/hugh.png', + img: 'assets/img/hugh.png', position: 'left', content: 'Hello from the other side.', senderName: 'Gregory', time: '28-Jun-2016 21:53' }, { - img: 'build/img/hugh.png', + img: 'assets/img/hugh.png', position: 'right', content: 'Hi! How are?', senderName: 'Me', time: '28-Jun-2016 21:55' }, { - img: 'build/img/hugh.png', + img: 'assets/img/hugh.png', position: 'left', content: "This is some really long test that I'm writing here. Let's see how it wraps.", senderName: 'Gregory', time: '28-Jun-2016 21:57' }, { - img: 'build/img/hugh.png', + img: 'assets/img/hugh.png', position: 'right', content: 'Hi! How are?', senderName: 'Me', time: '28-Jun-2016 21:55' }, { - img: 'build/img/hugh.png', + img: 'assets/img/hugh.png', position: 'left', content: "This is some really long test that I'm writing here. Let's see how it wraps.", senderName: 'Gregory', time: '28-Jun-2016 21:57' }, { - img: 'build/img/hugh.png', + img: 'assets/img/hugh.png', position: 'right', content: 'Hi! How are?', senderName: 'Me', time: '28-Jun-2016 21:55' }, { - img: 'build/img/hugh.png', + img: 'assets/img/hugh.png', position: 'left', content: "This is some really long test that I'm writing here. Let's see how it wraps.", senderName: 'Gregory', time: '28-Jun-2016 21:57' }, { - img: 'build/img/hugh.png', + img: 'assets/img/hugh.png', position: 'right', content: 'Hi! How are?', senderName: 'Me', time: '28-Jun-2016 21:55' }, { - img: 'build/img/hugh.png', + img: 'assets/img/hugh.png', position: 'left', content: "This is some really long test that I'm writing here. Let's see how it wraps.", senderName: 'Gregory', @@ -89,7 +89,7 @@ export class ChatPage { this.txtChat.setFocus(); this.messages.push({ - img: 'build/img/hugh.png', + img: 'assets/img/hugh.png', position: 'right', content: this.txtChat.content, senderName: 'Me', diff --git a/Ionic2/src/pages/contactPage/contactPage.html b/Ionic2/src/pages/contactPage/contactPage.html index 78cfec1..57eeebd 100644 --- a/Ionic2/src/pages/contactPage/contactPage.html +++ b/Ionic2/src/pages/contactPage/contactPage.html @@ -36,7 +36,10 @@ - + + + + diff --git a/Ionic2/src/pages/discoverUsersPage/discoverUsersPage.html b/Ionic2/src/pages/discoverUsersPage/discoverUsersPage.html index 8cfd971..ec36867 100644 --- a/Ionic2/src/pages/discoverUsersPage/discoverUsersPage.html +++ b/Ionic2/src/pages/discoverUsersPage/discoverUsersPage.html @@ -46,14 +46,16 @@ - - + + + + diff --git a/Ionic2/src/pages/loginPage/loginPage.html b/Ionic2/src/pages/loginPage/loginPage.html index 3293184..a952f75 100644 --- a/Ionic2/src/pages/loginPage/loginPage.html +++ b/Ionic2/src/pages/loginPage/loginPage.html @@ -12,7 +12,7 @@

Welcome to Ionic

Please wait while we try to sign you in...

- +
diff --git a/Ionic2/src/pages/loginPage/loginPage.ts b/Ionic2/src/pages/loginPage/loginPage.ts index 2b70b02..3078834 100644 --- a/Ionic2/src/pages/loginPage/loginPage.ts +++ b/Ionic2/src/pages/loginPage/loginPage.ts @@ -1,7 +1,7 @@ -import {Component, ViewChild} from '@angular/core'; +import {Component} from '@angular/core'; import {NavController} from 'ionic-angular'; import {ProfilePage} from '../profilePage/profilePage'; -import {AuthService} from '../../services/auth.service'; +//TODO: import {AuthService} from '../../services/auth.service'; import {UserInfoService} from '../../services/userInfo.service'; @@ -13,33 +13,39 @@ export class LoginPage { public nextPage:any; public showLoginButton:boolean; - constructor(public nav: NavController, public auth: AuthService, public userInfoService: UserInfoService) { + constructor(public nav: NavController, + //TODO: public auth: AuthService, + public userInfoService: UserInfoService) { this.nextPage = ProfilePage; - this.showLoginButton = false; + this.showLoginButton = !false; } public ionViewWillEnter(){ - this.showLoginButton = false; + this.showLoginButton = !false; } public ionViewDidEnter(){ - if(this.auth.authenticated()){ - //give some time for local storage to initialize - setTimeout(() => { - this.nav.setRoot(ProfilePage); - }, 1000) - }else{ - this.showLoginButton = true; - } + this.nav.setRoot(ProfilePage); + //TODO: + // if(this.auth.authenticated()){ + // //give some time for local storage to initialize + // setTimeout(() => { + // this.nav.setRoot(ProfilePage); + // }, 1000) + // }else{ + // this.showLoginButton = true; + // } } public login(){ - this.auth.login(() => - setTimeout(() => { - this.nav.setRoot(ProfilePage) - }, 1000)//I need this delay because otherwise the navigation occurs - //before the InAppBrowser closes, and the content ends up under - //the top bar. - ); + this.nav.setRoot(ProfilePage); + //TODO: + // this.auth.login(() => + // setTimeout(() => { + // this.nav.setRoot(ProfilePage) + // }, 1000)//I need this delay because otherwise the navigation occurs + // //before the InAppBrowser closes, and the content ends up under + // //the top bar. + // ); } } diff --git a/Ionic2/src/pages/pendingInvitesPage/pendingInvitesPage.html b/Ionic2/src/pages/pendingInvitesPage/pendingInvitesPage.html index 6c92d68..dd5380e 100644 --- a/Ionic2/src/pages/pendingInvitesPage/pendingInvitesPage.html +++ b/Ionic2/src/pages/pendingInvitesPage/pendingInvitesPage.html @@ -21,7 +21,7 @@ - + diff --git a/Ionic2/src/pages/profilePage/profilePage.html b/Ionic2/src/pages/profilePage/profilePage.html index d914586..1db26a6 100644 --- a/Ionic2/src/pages/profilePage/profilePage.html +++ b/Ionic2/src/pages/profilePage/profilePage.html @@ -46,8 +46,11 @@ [disabled]="!isEditMode"> - + + + + diff --git a/Ionic2/src/pages/settingsPage/settingsPage.html b/Ionic2/src/pages/settingsPage/settingsPage.html index 88668d5..d5cf786 100644 --- a/Ionic2/src/pages/settingsPage/settingsPage.html +++ b/Ionic2/src/pages/settingsPage/settingsPage.html @@ -32,7 +32,7 @@ [ngModel]='preferences[PREF_NOTIFY_INVITES]' (ionChange)='changePreference($event, PREF_NOTIFY_INVITES)'> - + Account