1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

[PM-2135] feat: create new user-verification module

This commit is contained in:
Andreas Coroiu
2023-05-05 10:01:36 +02:00
parent 6b26406331
commit db687238c3
10 changed files with 23 additions and 8 deletions

View File

@@ -0,0 +1,3 @@
export * from "./user-verification.module";
export * from "./user-verification.component";
export * from "./user-verification-prompt.component";

View File

@@ -0,0 +1,14 @@
import { NgModule } from "@angular/core";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { SharedModule } from "../../shared/shared.module";
import { UserVerificationPromptComponent } from "./user-verification-prompt.component";
import { UserVerificationComponent } from "./user-verification.component";
@NgModule({
imports: [SharedModule, FormsModule, ReactiveFormsModule],
declarations: [UserVerificationComponent, UserVerificationPromptComponent],
exports: [UserVerificationComponent, UserVerificationPromptComponent],
})
export class UserVerificationModule {}

View File

@@ -64,8 +64,7 @@ import { TaxInfoComponent } from "../billing/settings/tax-info.component";
import { UserSubscriptionComponent } from "../billing/settings/user-subscription.component";
import { DynamicAvatarComponent } from "../components/dynamic-avatar.component";
import { SelectableAvatarComponent } from "../components/selectable-avatar.component";
import { UserVerificationPromptComponent } from "../components/user-verification-prompt.component";
import { UserVerificationComponent } from "../components/user-verification.component";
import { UserVerificationModule } from "../components/user-verification";
import { FooterComponent } from "../layouts/footer.component";
import { FrontendLayoutComponent } from "../layouts/frontend-layout.component";
import { NavbarComponent } from "../layouts/navbar.component";
@@ -122,6 +121,7 @@ import { SharedModule } from "./shared.module";
ProductSwitcherModule,
ChangeKdfModule,
DynamicAvatarComponent,
UserVerificationModule,
],
declarations: [
PremiumBadgeComponent,
@@ -178,7 +178,6 @@ import { SharedModule } from "./shared.module";
GeneratorComponent,
PasswordGeneratorHistoryComponent,
PasswordRepromptComponent,
UserVerificationPromptComponent,
PaymentComponent,
PaymentMethodComponent,
PreferencesComponent,
@@ -224,7 +223,6 @@ import { SharedModule } from "./shared.module";
BillingHistoryViewComponent,
UserLayoutComponent,
UserSubscriptionComponent,
UserVerificationComponent,
VaultTimeoutInputComponent,
VerifyEmailComponent,
VerifyEmailTokenComponent,
@@ -232,6 +230,7 @@ import { SharedModule } from "./shared.module";
LowKdfComponent,
],
exports: [
UserVerificationModule,
PremiumBadgeComponent,
AcceptEmergencyComponent,
AcceptOrganizationComponent,
@@ -330,7 +329,6 @@ import { SharedModule } from "./shared.module";
BillingHistoryViewComponent,
UserLayoutComponent,
UserSubscriptionComponent,
UserVerificationComponent,
VaultTimeoutInputComponent,
VerifyEmailComponent,
VerifyEmailTokenComponent,

View File

@@ -15,7 +15,7 @@ import { PolicyService } from "@bitwarden/common/admin-console/abstractions/poli
import { EncryptedExportType } from "@bitwarden/common/enums";
import { VaultExportServiceAbstraction } from "@bitwarden/exporter/vault-export";
import { UserVerificationPromptComponent } from "../../components/user-verification-prompt.component";
import { UserVerificationPromptComponent } from "../../components/user-verification";
@Component({
selector: "app-export",

View File

@@ -5,7 +5,7 @@ import { combineLatestWith, Observable, startWith, switchMap } from "rxjs";
import { DialogServiceAbstraction } from "@bitwarden/angular/services/dialog";
import { ModalService } from "@bitwarden/angular/services/modal.service";
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
import { UserVerificationPromptComponent } from "@bitwarden/web-vault/app/components/user-verification-prompt.component";
import { UserVerificationPromptComponent } from "@bitwarden/web-vault/app/components/user-verification";
import { AccessTokenView } from "../models/view/access-token.view";

View File

@@ -9,7 +9,7 @@ import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
import { LogService } from "@bitwarden/common/abstractions/log.service";
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
import { UserVerificationPromptComponent } from "@bitwarden/web-vault/app/components/user-verification-prompt.component";
import { UserVerificationPromptComponent } from "@bitwarden/web-vault/app/components/user-verification";
import { SecretsManagerPortingApiService } from "../services/sm-porting-api.service";
import { SecretsManagerPortingService } from "../services/sm-porting.service";