Skip to content

Commit 323bfa6

Browse files
committed
chore(): Minor tweaks
1 parent b244f83 commit 323bfa6

File tree

7 files changed

+27
-17
lines changed

7 files changed

+27
-17
lines changed

src/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en" dir="ltr">
3+
34
<head>
45
<meta charset="UTF-8">
56
<title>Ionic App</title>
@@ -10,7 +11,7 @@
1011
<link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico">
1112
<link rel="manifest" href="manifest.json">
1213
<meta name="theme-color" content="#4e8ef7">
13-
14+
1415
<!-- cordova.js required for cordova apps -->
1516
<script src="cordova.js"></script>
1617

@@ -42,4 +43,5 @@
4243
<script src="build/main.js"></script>
4344

4445
</body>
46+
4547
</html>

src/pages/login/login-background-slider/login-background-slider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from '@angular/core';
22
import { FormBuilder, Validators } from '@angular/forms';
3-
import { NavController, IonicPage } from 'ionic-angular';
3+
import { IonicPage } from 'ionic-angular';
44

55
@IonicPage()
66
@Component({
@@ -17,7 +17,7 @@ export class LoginBackgroundSliderPage {
1717
]
1818
public loginForm: any;
1919

20-
constructor(public navCtrl: NavController, public formBuilder: FormBuilder) {
20+
constructor(public formBuilder: FormBuilder) {
2121
this.loginForm = formBuilder.group({
2222
email: ['', Validators.required],
2323
password: ['', Validators.compose([Validators.minLength(6),

src/pages/login/login-instagram/login-instagram.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// import { FormBuilder, FormControl, Validator } from '@angular/forms';
22
import { Component } from '@angular/core';
3-
import { AlertController, App, LoadingController, NavController, IonicPage } from 'ionic-angular';
3+
import { AlertController, App, LoadingController, IonicPage } from 'ionic-angular';
44

55
@IonicPage()
66
@Component({
@@ -12,7 +12,11 @@ export class LoginInstagramPage {
1212
public loginForm: any;
1313
public backgroundImage = "assets/img/background/background-5.jpg";
1414

15-
constructor(private navCtrl: NavController, public loadingCtrl: LoadingController, public alertCtrl: AlertController, public app: App) {
15+
constructor(
16+
public loadingCtrl: LoadingController,
17+
public alertCtrl: AlertController,
18+
public app: App
19+
) {
1620

1721
}
1822

src/pages/login/login-one/login-one.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// import { FormBuilder, FormControl, Validator } from '@angular/forms';
22
import { Component } from '@angular/core';
3-
import { AlertController, App, LoadingController, NavController, IonicPage } from 'ionic-angular';
3+
import { AlertController, App, LoadingController, IonicPage } from 'ionic-angular';
44

55
@IonicPage()
66
@Component({
@@ -12,7 +12,11 @@ export class LoginOnePage {
1212
public loginForm: any;
1313
public backgroundImage = "assets/img/background/background-5.jpg";
1414

15-
constructor(private navCtrl: NavController, public loadingCtrl: LoadingController, public alertCtrl: AlertController, public app: App) { }
15+
constructor(
16+
public loadingCtrl: LoadingController,
17+
public alertCtrl: AlertController,
18+
public app: App
19+
) { }
1620

1721
login() {
1822
let loading = this.loadingCtrl.create({

src/pages/miscellaneous/chat/messages/messages.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,4 @@ export class MessagesPage {
128128
}, 100);
129129
}
130130

131-
ngOnInit() {
132-
}
133-
134131
}

src/pages/profile/profile-settings/profile-settings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<ion-list>
88
<ion-list-header>
99
<ion-avatar item-start (click)="updateProfileImage()">
10-
<img [src]="user.imageUrl ? user.imageUrl : placeholder_picture">
10+
<img [src]="user.imageUrl ? user.imageUrl : placeholderPicture">
1111
</ion-avatar>
1212
<p class="username">{{user.name}}</p>
1313
<p>Owner</p>

src/pages/profile/profile-settings/profile-settings.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ToastService } from '../../../providers/util/toast.service';
22
import { AlertService } from '../../../providers/util/alert.service';
33
import { Component } from '@angular/core';
44
import { Camera } from '@ionic-native/camera';
5-
import { NavController, IonicPage } from 'ionic-angular';
5+
import { IonicPage } from 'ionic-angular';
66

77
@IonicPage()
88
@Component({
@@ -11,10 +11,10 @@ import { NavController, IonicPage } from 'ionic-angular';
1111
})
1212

1313
export class ProfileSettingsPage {
14-
profile_picture: string;
14+
profilePicture: string;
1515
profileRef: any;
1616
errorMessage: any;
17-
placeholder_picture = "http://api.adorable.io/avatar/200/bob";
17+
placeholderPicture = "http://api.adorable.io/avatar/200/bob";
1818

1919
enableNotifications = true;
2020
language: any;
@@ -30,8 +30,11 @@ export class ProfileSettingsPage {
3030
imageUrl: 'assets/img/avatar/marty-avatar.png'
3131
}
3232

33-
constructor(private navCtrl: NavController, public alertService: AlertService,
34-
public toastCtrl: ToastService, public camera: Camera) {
33+
constructor(
34+
public alertService: AlertService,
35+
public toastCtrl: ToastService,
36+
public camera: Camera
37+
) {
3538

3639
}
3740

@@ -44,7 +47,7 @@ export class ProfileSettingsPage {
4447
}
4548

4649
updateImage(value) {
47-
this.profile_picture = 'data:image/jpeg;base64,' + value.val();
50+
this.profilePicture = 'data:image/jpeg;base64,' + value.val();
4851
}
4952

5053
updateProfileImage() {

0 commit comments

Comments
 (0)