index.ts 3.95 KB
Newer Older
1 2 3
import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
David Burke's avatar
David Burke committed
4
import { RouterModule } from "@angular/router";
Natalie Liles's avatar
Natalie Liles committed
5 6
import { EffectsModule } from "@ngrx/effects";
import { StoreModule } from "@ngrx/store";
7
import { InlineSVGModule } from "ng-inline-svg";
David Burke's avatar
David Burke committed
8
import { NgrxFormsModule } from "ngrx-forms";
9 10

import { AccountComponent } from "./account.component";
11 12
import { LoginEffects } from "./account.effects";
import { reducers } from "./account.reducer";
13 14 15 16
import {
  ChangePasswordComponent,
  ChangePasswordContainer
} from "./change-password";
Saul Shanabrook's avatar
Saul Shanabrook committed
17
import { ConfirmEmailComponent, ConfirmEmailContainer } from "./confirm-email";
18
import { ConfirmEmailEffects } from "./confirm-email/confirm-email.effects";
19
import { DeleteComponent, DeleteContainer } from "./delete";
David Burke's avatar
David Burke committed
20
import { LoginContainer } from "./login";
David Burke's avatar
David Burke committed
21
import { RegisterEffects } from "./register/register.effects";
22 23 24 25

import { UserService } from "./user";

import { ProgressIndicatorModule } from "../progress-indicator";
David Burke's avatar
David Burke committed
26 27 28
import { LoginComponent } from "./login/login.component";
import { RegisterComponent } from "./register/register.component";
import { RegisterContainer } from "./register/register.container";
29
import { SharedModule } from "../shared";
30
import { LoginFormEffects } from "./login/login.effects";
31
import { ConfirmEmailGuard } from "./confirm-email/confirm-email.guard";
David Burke's avatar
David Burke committed
32 33
import { ErrorReportingComponent } from "./error-reporting/error-reporting.component";
import { ErrorReportingContainer } from "./error-reporting/error-reporting.container";
34
import { ErrorReportingEffects } from "./error-reporting/error-reporting.effects";
35
import { BackupCodeComponent } from "./backup-code/backup-code.component";
36
import { ResetPasswordComponent } from "./reset-password/reset-password.component";
37
import { MarketingFrameComponent } from "./marketing-frame/marketing-frame.component";
38 39 40 41 42
import { ResetPasswordContainer } from "./reset-password/reset-password.container";
import { ResetPasswordEffects } from "./reset-password/reset-password.effects";
import { ResetPasswordVerifyComponent } from "./reset-password/reset-password-verify/reset-password-verify.component";
import { ResetPasswordVerifyContainer } from "./reset-password/reset-password-verify/reset-password-verify.container";
import { ResetPasswordVerifyEffects } from "./reset-password/reset-password-verify/reset-password-verify.effects";
43
import { PasswordInputComponent } from "./change-password/password-input/password-input.component";
44 45 46
import { SetPasswordComponent } from "./reset-password/set-password/set-password.component";
import { SetPasswordContainer } from "./reset-password/set-password/set-password.container";
import { SetPasswordEffects } from "./reset-password/set-password/set-password.effects";
47 48 49 50 51

export const COMPONENTS = [
  AccountComponent,
  ChangePasswordComponent,
  ChangePasswordContainer,
52
  PasswordInputComponent,
Saul Shanabrook's avatar
Saul Shanabrook committed
53 54
  ConfirmEmailComponent,
  ConfirmEmailContainer,
55 56
  DeleteContainer,
  DeleteComponent,
David Burke's avatar
David Burke committed
57 58
  ErrorReportingComponent,
  ErrorReportingContainer,
59 60 61
  LoginComponent,
  LoginContainer,
  RegisterComponent,
62
  RegisterContainer,
63
  BackupCodeComponent,
64 65
  ResetPasswordComponent,
  ResetPasswordContainer,
David Burke's avatar
David Burke committed
66 67
  ResetPasswordVerifyComponent,
  ResetPasswordVerifyContainer,
68
  SetPasswordComponent,
David Burke's avatar
David Burke committed
69
  SetPasswordContainer,
70
  MarketingFrameComponent
71 72
];

73
export const SERVICES = [UserService, ConfirmEmailGuard];
74 75 76 77 78 79

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    InlineSVGModule,
David Burke's avatar
David Burke committed
80
    SharedModule,
81 82
    RouterModule,
    ReactiveFormsModule,
David Burke's avatar
David Burke committed
83
    NgrxFormsModule,
84
    ProgressIndicatorModule,
Natalie Liles's avatar
Natalie Liles committed
85
    StoreModule.forFeature("account", reducers),
86 87
    EffectsModule.forFeature([
      LoginEffects,
88
      LoginFormEffects,
89
      RegisterEffects,
90
      ConfirmEmailEffects,
91
      ErrorReportingEffects,
92
      ResetPasswordEffects,
David Burke's avatar
David Burke committed
93 94
      ResetPasswordVerifyEffects,
      SetPasswordEffects
95
    ])
96 97 98
  ],
  declarations: COMPONENTS,
  exports: COMPONENTS,
99
  providers: [SERVICES]
100
})
101
export class AccountModule {}