refractor: login module (#283)

* Refractor components.
* Shift language and footer component to shared module.
* Replace mat-icons by font-awesome icons.
* Add comments.

Fixes #284
This commit is contained in:
Abhay Chawla
2018-08-09 22:28:17 +05:30
committed by GitHub
parent 9eead37c8c
commit 2330f70f2c
33 changed files with 629 additions and 313 deletions
+17 -16
View File
@@ -1,30 +1,31 @@
/** Angular Imports */
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { TranslateModule } from '@ngx-translate/core';
/** Custom Modules */
import { SharedModule } from '../shared';
import { LoginRoutingModule } from './login-routing.module';
import { LoginComponent } from './login.component';
import { CoreModule } from '../core/core.module';
import { LoginFormComponent } from './login-form/login-form.component';
import { TwoFactorAuthenticationComponent } from './two-factor-authentication/two-factor-authentication.component';
import { ResetPasswordComponent } from './reset-password/reset-password.component';
/** Custom Components */
import { LoginComponent } from './login.component';
import { LoginFormComponent } from './login-form/login-form.component';
import { ResetPasswordComponent } from './reset-password/reset-password.component';
import { TwoFactorAuthenticationComponent } from './two-factor-authentication/two-factor-authentication.component';
/**
* Login Module
*
* All components related to user authentication should be declared here.
*/
@NgModule({
imports: [
CommonModule,
CoreModule,
FormsModule,
ReactiveFormsModule,
TranslateModule,
SharedModule,
LoginRoutingModule
],
declarations: [
LoginComponent,
LoginFormComponent,
TwoFactorAuthenticationComponent,
ResetPasswordComponent
ResetPasswordComponent,
TwoFactorAuthenticationComponent
]
})
export class LoginModule { }