Skip to content

Commit 2a3f476

Browse files
committed
initial commit
1 parent 2d91266 commit 2a3f476

32 files changed

+470
-41
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"@ionic-native/splash-screen": "3.10.2",
2525
"@ionic-native/status-bar": "3.10.2",
2626
"@ionic/storage": "2.0.1",
27+
"angularfire2": "^4.0.0-rc.1",
28+
"firebase": "^4.1.1",
2729
"ionic-angular": "3.3.0",
2830
"ionicons": "3.0.0",
2931
"rxjs": "5.1.1",

src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { Platform } from 'ionic-angular';
33
import { StatusBar } from '@ionic-native/status-bar';
44
import { SplashScreen } from '@ionic-native/splash-screen';
55

6-
import { HomePage } from '../pages/home/home';
6+
77
@Component({
88
templateUrl: 'app.html'
99
})
1010
export class MyApp {
11-
rootPage:any = HomePage;
11+
rootPage: any = 'LoginPage';
1212

1313
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
1414
platform.ready().then(() => {

src/app/app.firebaseconfig.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export var config = {
2+
apiKey: <apiKey>,
3+
authDomain: <yourauthDomain>,
4+
databaseURL: <yourdatabaseURL>,
5+
projectId: <yourprojectId>,
6+
storageBucket: <yourstoragebucket>,
7+
messagingSenderId: <yoursenderIdhere>
8+
};

src/app/app.module.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,34 @@ import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
44
import { SplashScreen } from '@ionic-native/splash-screen';
55
import { StatusBar } from '@ionic-native/status-bar';
66

7+
import { config } from './app.firebaseconfig';
8+
9+
import { AngularFireAuth } from 'angularfire2/auth';
10+
import { AngularFireModule } from 'angularfire2';
11+
712
import { MyApp } from './app.component';
8-
import { HomePage } from '../pages/home/home';
13+
import { AuthProvider } from '../providers/auth/auth';
14+
915

1016
@NgModule({
1117
declarations: [
12-
MyApp,
13-
HomePage
18+
MyApp
1419
],
1520
imports: [
1621
BrowserModule,
17-
IonicModule.forRoot(MyApp)
22+
IonicModule.forRoot(MyApp, {tabsPlacement: 'top'}),
23+
AngularFireModule.initializeApp(config)
1824
],
1925
bootstrap: [IonicApp],
2026
entryComponents: [
21-
MyApp,
22-
HomePage
27+
MyApp
2328
],
2429
providers: [
2530
StatusBar,
2631
SplashScreen,
27-
{provide: ErrorHandler, useClass: IonicErrorHandler}
32+
{provide: ErrorHandler, useClass: IonicErrorHandler},
33+
AuthProvider,
34+
AngularFireAuth
2835
]
2936
})
3037
export class AppModule {}

src/app/app.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,12 @@
1414
// To declare rules for a specific mode, create a child rule
1515
// for the .md, .ios, or .wp mode classes. The mode class is
1616
// automatically applied to the <body> element in the app.
17+
.title.title-md {
18+
position: absolute;
19+
left: 50%;
20+
top: 0;
21+
transform: translateX(-50%);
22+
height: 100%;
23+
width: 70%;
24+
text-align: center;
25+
}

src/assets/bgimage.jpg

78.5 KB
Loading

src/models/interfaces/usercreds.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export interface usercreds {
2+
email: string;
3+
password: string;
4+
}

src/pages/chats/chats.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!--
2+
Generated template for the ChatsPage page.
3+
4+
See http://ionicframework.com/docs/components/#navigation for more info on
5+
Ionic pages and navigation.
6+
-->
7+
<ion-header>
8+
9+
<ion-navbar color="hcolor">
10+
<ion-title>Chats</ion-title>
11+
</ion-navbar>
12+
13+
</ion-header>
14+
15+
16+
<ion-content padding>
17+
18+
</ion-content>

src/pages/chats/chats.module.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { IonicPageModule } from 'ionic-angular';
3+
import { ChatsPage } from './chats';
4+
5+
@NgModule({
6+
declarations: [
7+
ChatsPage,
8+
],
9+
imports: [
10+
IonicPageModule.forChild(ChatsPage),
11+
],
12+
exports: [
13+
ChatsPage
14+
]
15+
})
16+
export class ChatsPageModule {}

src/pages/chats/chats.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
page-chats {
2+
3+
}

0 commit comments

Comments
 (0)