|
|
|
@ -1,24 +1,25 @@ |
|
|
|
import { CoreModule, LazyModuleFactory } from '@abp/ng.core'; |
|
|
|
import { ThemeSharedModule } from '@abp/ng.theme.shared'; |
|
|
|
import { ModuleWithProviders, NgModule, NgModuleFactory } from '@angular/core'; |
|
|
|
import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap'; |
|
|
|
import { NgxValidateCoreModule } from '@ngx-validate/core'; |
|
|
|
import { AccountRoutingModule } from './account-routing.module'; |
|
|
|
import { ChangePasswordComponent } from './components/change-password/change-password.component'; |
|
|
|
import { LoginComponent } from './components/login/login.component'; |
|
|
|
import { ManageProfileComponent } from './components/manage-profile/manage-profile.component'; |
|
|
|
import { PersonalSettingsComponent } from './components/personal-settings/personal-settings.component'; |
|
|
|
import { RegisterComponent } from './components/register/register.component'; |
|
|
|
import { AccountConfigOptions } from './models/config-options'; |
|
|
|
import { ACCOUNT_CONFIG_OPTIONS } from './tokens/config-options.token'; |
|
|
|
import { accountConfigOptionsFactory } from './utils/factory-utils'; |
|
|
|
import { AuthenticationFlowGuard } from './guards/authentication-flow.guard'; |
|
|
|
import { ForgotPasswordComponent } from './components/forgot-password/forgot-password.component'; |
|
|
|
import { ResetPasswordComponent } from './components/reset-password/reset-password.component'; |
|
|
|
import { UiExtensionsModule } from '@abp/ng.theme.shared/extensions'; |
|
|
|
import { ACCOUNT_EDIT_FORM_PROP_CONTRIBUTORS } from './tokens/extensions.token'; |
|
|
|
import { AccountExtensionsGuard } from './guards/extensions.guard'; |
|
|
|
import { HalfRowComponent } from './components/personal-settings/half-row/half-row.component'; |
|
|
|
import {CoreModule, LazyModuleFactory} from '@abp/ng.core'; |
|
|
|
import {ThemeSharedModule} from '@abp/ng.theme.shared'; |
|
|
|
import {ModuleWithProviders, NgModule, NgModuleFactory} from '@angular/core'; |
|
|
|
import {NgbDropdownModule} from '@ng-bootstrap/ng-bootstrap'; |
|
|
|
import {NgxValidateCoreModule} from '@ngx-validate/core'; |
|
|
|
import {AccountRoutingModule} from './account-routing.module'; |
|
|
|
import {ChangePasswordComponent} from './components/change-password/change-password.component'; |
|
|
|
import {LoginComponent} from './components/login/login.component'; |
|
|
|
import {ManageProfileComponent} from './components/manage-profile/manage-profile.component'; |
|
|
|
import {PersonalSettingsComponent} from './components/personal-settings/personal-settings.component'; |
|
|
|
import {RegisterComponent} from './components/register/register.component'; |
|
|
|
import {AccountConfigOptions} from './models/config-options'; |
|
|
|
import {ACCOUNT_CONFIG_OPTIONS} from './tokens/config-options.token'; |
|
|
|
import {accountConfigOptionsFactory} from './utils/factory-utils'; |
|
|
|
import {AuthenticationFlowGuard} from './guards/authentication-flow.guard'; |
|
|
|
import {ForgotPasswordComponent} from './components/forgot-password/forgot-password.component'; |
|
|
|
import {ResetPasswordComponent} from './components/reset-password/reset-password.component'; |
|
|
|
import {UiExtensionsModule} from '@abp/ng.theme.shared/extensions'; |
|
|
|
import {ACCOUNT_EDIT_FORM_PROP_CONTRIBUTORS} from './tokens/extensions.token'; |
|
|
|
import {AccountExtensionsGuard} from './guards/extensions.guard'; |
|
|
|
import {PersonalSettingsHalfRowComponent} from './components/personal-settings/personal-settings-half-row.component'; |
|
|
|
|
|
|
|
const declarations = [ |
|
|
|
LoginComponent, |
|
|
|
RegisterComponent, |
|
|
|
@ -27,7 +28,7 @@ const declarations = [ |
|
|
|
PersonalSettingsComponent, |
|
|
|
ForgotPasswordComponent, |
|
|
|
ResetPasswordComponent, |
|
|
|
HalfRowComponent, |
|
|
|
PersonalSettingsHalfRowComponent, |
|
|
|
]; |
|
|
|
|
|
|
|
@NgModule({ |
|
|
|
@ -48,7 +49,7 @@ export class AccountModule { |
|
|
|
ngModule: AccountModule, |
|
|
|
providers: [ |
|
|
|
AuthenticationFlowGuard, |
|
|
|
{ provide: ACCOUNT_CONFIG_OPTIONS, useValue: options }, |
|
|
|
{provide: ACCOUNT_CONFIG_OPTIONS, useValue: options}, |
|
|
|
{ |
|
|
|
provide: 'ACCOUNT_OPTIONS', |
|
|
|
useFactory: accountConfigOptionsFactory, |
|
|
|
|