Skip to content

Commit ac16299

Browse files
author
Digamber Singh
committed
Updated angular and npm dependencies
1 parent a746fc1 commit ac16299

11 files changed

+10858
-8304
lines changed

.angulardoc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"repoId": "4af0475e-31ed-45b2-a985-c39dfa002933",
3+
"lastSync": 0
4+
}

angular.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build": {
1414
"builder": "@angular-devkit/build-angular:browser",
1515
"options": {
16+
"aot": true,
1617
"outputPath": "dist/angularfirebase-authentication",
1718
"index": "src/index.html",
1819
"main": "src/main.ts",
@@ -50,6 +51,10 @@
5051
"type": "initial",
5152
"maximumWarning": "2mb",
5253
"maximumError": "5mb"
54+
},
55+
{
56+
"type": "anyComponentStyle",
57+
"maximumWarning": "6kb"
5358
}
5459
]
5560
}
@@ -132,5 +137,8 @@
132137
}
133138
}
134139
},
135-
"defaultProject": "angularfirebase-authentication"
140+
"defaultProject": "angularfirebase-authentication",
141+
"cli": {
142+
"analytics": false
143+
}
136144
}

package-lock.json

+10,790-8,224
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+19-18
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,32 @@
1111
},
1212
"private": true,
1313
"dependencies": {
14-
"@angular/animations": "~8.2.13",
15-
"@angular/common": "~8.2.13",
16-
"@angular/compiler": "~8.2.13",
17-
"@angular/core": "~8.2.13",
14+
"@angular/animations": "~9.1.2",
15+
"@angular/common": "~9.1.2",
16+
"@angular/compiler": "~9.1.2",
17+
"@angular/core": "~9.1.2",
1818
"@angular/fire": "^5.1.1",
19-
"@angular/forms": "~8.2.13",
20-
"@angular/platform-browser": "~8.2.13",
21-
"@angular/platform-browser-dynamic": "~8.2.13",
22-
"@angular/router": "~8.2.13",
19+
"@angular/forms": "~9.1.2",
20+
"@angular/platform-browser": "~9.1.2",
21+
"@angular/platform-browser-dynamic": "~9.1.2",
22+
"@angular/router": "~9.1.2",
2323
"bootstrap": "^4.1.3",
2424
"core-js": "^2.5.4",
25-
"firebase": "^5.7.0",
26-
"rxjs": "~6.5.3",
25+
"firebase": "^7.14.1",
26+
"fsevents": "^2.1.2",
27+
"rxjs": "~6.5.5",
2728
"tslib": "^1.10.0",
28-
"zone.js": "~0.9.1"
29+
"zone.js": "~0.10.2"
2930
},
3031
"devDependencies": {
31-
"@angular-devkit/build-angular": "~0.803.17",
32-
"@angular/cli": "~8.3.17",
33-
"@angular/compiler-cli": "~8.2.13",
34-
"@angular/language-service": "~8.2.13",
35-
"@types/node": "~8.9.4",
32+
"@angular-devkit/build-angular": "~0.901.1",
33+
"@angular/cli": "~9.1.1",
34+
"@angular/compiler-cli": "~9.1.2",
35+
"@angular/language-service": "~9.1.2",
36+
"@types/node": "^12.11.1",
3637
"@types/jasmine": "~2.8.8",
3738
"@types/jasminewd2": "~2.0.3",
38-
"codelyzer": "^5.0.1",
39+
"codelyzer": "^5.1.2",
3940
"jasmine-core": "~2.99.1",
4041
"jasmine-spec-reporter": "~4.2.1",
4142
"karma": "~3.0.0",
@@ -46,6 +47,6 @@
4647
"protractor": "~5.4.0",
4748
"ts-node": "~7.0.0",
4849
"tslint": "~5.11.0",
49-
"typescript": "~3.5.3"
50+
"typescript": "~3.8.3"
5051
}
5152
}

src/app/components/dashboard/dashboard.component.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<!-- Top navigation -->
22
<nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow">
3-
<a class="navbar-brand col-sm-3 col-md-2 mr-0" routerLink="/register-student">
3+
<a class="navbar-brand col-sm-3 col-md-2 mr-0">
44
<img class="brand-logo" src="assets/logo-positronx-white.svg" alt="positronX.io Logo">
5-
<span class="dasboard-text">Dashboard</span>
65
</a>
76
</nav>
87

src/app/shared/guard/secure-inner-pages.guard.ts

-27
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
11
import { NgModule } from '@angular/core';
22
import { Routes, RouterModule } from '@angular/router';
33

4-
// Required components for which route services to be activated
54
import { SignInComponent } from '../../components/sign-in/sign-in.component';
65
import { SignUpComponent } from '../../components/sign-up/sign-up.component';
76
import { DashboardComponent } from '../../components/dashboard/dashboard.component';
87
import { ForgotPasswordComponent } from '../../components/forgot-password/forgot-password.component';
98
import { VerifyEmailComponent } from '../../components/verify-email/verify-email.component';
109

11-
// Import canActivate guard services
1210
import { AuthGuard } from "../../shared/guard/auth.guard";
13-
import { SecureInnerPagesGuard } from "../../shared/guard/secure-inner-pages.guard";
1411

15-
// Include route guard in routes array
1612
const routes: Routes = [
1713
{ path: '', redirectTo: '/sign-in', pathMatch: 'full'},
18-
{ path: 'sign-in', component: SignInComponent, canActivate: [SecureInnerPagesGuard]},
19-
{ path: 'register-user', component: SignUpComponent, canActivate: [SecureInnerPagesGuard]},
14+
{ path: 'sign-in', component: SignInComponent},
15+
{ path: 'register-user', component: SignUpComponent},
2016
{ path: 'dashboard', component: DashboardComponent, canActivate: [AuthGuard] },
21-
{ path: 'forgot-password', component: ForgotPasswordComponent, canActivate: [SecureInnerPagesGuard] },
22-
{ path: 'verify-email-address', component: VerifyEmailComponent, canActivate: [SecureInnerPagesGuard] }
17+
{ path: 'forgot-password', component: ForgotPasswordComponent },
18+
{ path: 'verify-email-address', component: VerifyEmailComponent }
2319
];
2420

2521
@NgModule({
2622
imports: [RouterModule.forRoot(routes)],
2723
exports: [RouterModule]
2824
})
2925

30-
export class AppRoutingModule { }
26+
export class AppRoutingModule { }

src/app/shared/services/auth.service.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ export class AuthService {
1515
constructor(
1616
public afs: AngularFirestore, // Inject Firestore service
1717
public afAuth: AngularFireAuth, // Inject Firebase auth service
18-
public router: Router,
18+
public router: Router,
1919
public ngZone: NgZone // NgZone service to remove outside scope warning
20-
) {
21-
/* Saving user data in localstorage when
20+
) {
21+
/* Saving user data in localstorage when
2222
logged in and setting up null when logged out */
2323
this.afAuth.authState.subscribe(user => {
2424
if (user) {
@@ -49,7 +49,7 @@ export class AuthService {
4949
SignUp(email, password) {
5050
return this.afAuth.auth.createUserWithEmailAndPassword(email, password)
5151
.then((result) => {
52-
/* Call the SendVerificaitonMail() function when new user sign
52+
/* Call the SendVerificaitonMail() function when new user sign
5353
up and returns promise */
5454
this.SendVerificationMail();
5555
this.SetUserData(result.user);
@@ -100,8 +100,8 @@ export class AuthService {
100100
})
101101
}
102102

103-
/* Setting up user data when sign in with username/password,
104-
sign up with username/password and sign in with social auth
103+
/* Setting up user data when sign in with username/password,
104+
sign up with username/password and sign in with social auth
105105
provider in Firestore database using AngularFirestore + AngularFirestoreDocument service */
106106
SetUserData(user) {
107107
const userRef: AngularFirestoreDocument<any> = this.afs.doc(`users/${user.uid}`);
@@ -117,12 +117,12 @@ export class AuthService {
117117
})
118118
}
119119

120-
// Sign out
120+
// Sign out
121121
SignOut() {
122122
return this.afAuth.auth.signOut().then(() => {
123123
localStorage.removeItem('user');
124124
this.router.navigate(['sign-in']);
125125
})
126126
}
127127

128-
}
128+
}

src/environments/environment.prod.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
export const environment = {
22
production: true,
33
firebase: {
4-
apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
5-
authDomain: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
6-
databaseURL: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
7-
projectId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
8-
storageBucket: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
9-
messagingSenderId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
4+
apiKey: "api-key",
5+
authDomain: "project-id.firebaseapp.com",
6+
databaseURL: "https://project-id.firebaseio.com",
7+
projectId: "project-id",
8+
storageBucket: "project-id.appspot.com",
9+
messagingSenderId: "sender-id",
10+
appId: "app-id",
11+
measurementId: "G-measurement-id"
1012
}
1113
};

src/environments/environment.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
export const environment = {
66
production: false,
77
firebase: {
8-
apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
9-
authDomain: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
10-
databaseURL: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
11-
projectId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
12-
storageBucket: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
13-
messagingSenderId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
8+
apiKey: "api-key",
9+
authDomain: "project-id.firebaseapp.com",
10+
databaseURL: "https://project-id.firebaseio.com",
11+
projectId: "project-id",
12+
storageBucket: "project-id.appspot.com",
13+
messagingSenderId: "sender-id",
14+
appId: "app-id",
15+
measurementId: "G-measurement-id"
1416
}
1517
};
1618

src/tsconfig.app.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
"outDir": "../out-tsc/app",
55
"types": []
66
},
7-
"exclude": [
8-
"test.ts",
9-
"**/*.spec.ts"
7+
"files": [
8+
"main.ts",
9+
"polyfills.ts"
10+
],
11+
"include": [
12+
"src/**/*.d.ts"
1013
]
1114
}

0 commit comments

Comments
 (0)