Browse Source

standalone structure applied to login component

pull/22816/head
erdemcaygor 9 months ago
parent
commit
4277b62a42
  1. 4
      npm/ng-packs/packages/account/src/lib/account.module.ts
  2. 14
      npm/ng-packs/packages/account/src/lib/components/login/login.component.ts

4
npm/ng-packs/packages/account/src/lib/account.module.ts

@ -5,7 +5,6 @@ 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';
@ -20,10 +19,9 @@ import { RE_LOGIN_CONFIRMATION_TOKEN } from './tokens';
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';
import { ExtensibleModule } from "@abp/ng.components/extensible";
import { ExtensibleModule } from '@abp/ng.components/extensible';
const declarations = [
LoginComponent,
RegisterComponent,
ChangePasswordComponent,
ManageProfileComponent,

14
npm/ng-packs/packages/account/src/lib/components/login/login.component.ts

@ -1,18 +1,24 @@
import { AuthService, ConfigStateService } from '@abp/ng.core';
import { ToasterService } from '@abp/ng.theme.shared';
import { AuthService, ConfigStateService, CoreModule } from '@abp/ng.core';
import { ThemeSharedModule, ToasterService } from '@abp/ng.theme.shared';
import { Component, Injector, OnInit, inject } from '@angular/core';
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
import {
ReactiveFormsModule,
UntypedFormBuilder,
UntypedFormGroup,
Validators,
} from '@angular/forms';
import { throwError } from 'rxjs';
import { catchError, finalize } from 'rxjs/operators';
import { eAccountComponents } from '../../enums/components';
import { getRedirectUrl } from '../../utils/auth-utils';
import { CommonModule } from '@angular/common';
const { maxLength, required } = Validators;
@Component({
standalone: false,
selector: 'abp-login',
templateUrl: './login.component.html',
imports: [CommonModule, ReactiveFormsModule, CoreModule, ThemeSharedModule],
})
export class LoginComponent implements OnInit {
protected injector = inject(Injector);

Loading…
Cancel
Save