1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

Remove standalone true from auth (#15035)

Remove standalone: true from every instance since it's the default as of Angular 19.
This commit is contained in:
Oscar Hinton
2025-06-04 15:22:37 +02:00
committed by GitHub
parent 1bd77fec7a
commit 8f74eaea1c
68 changed files with 1 additions and 70 deletions

View File

@@ -34,7 +34,6 @@ import { CurrentAccountComponent } from "./current-account.component";
import { AccountSwitcherService } from "./services/account-switcher.service";
@Component({
standalone: true,
templateUrl: "account-switcher.component.html",
imports: [
CommonModule,

View File

@@ -13,7 +13,6 @@ import { BiometricsService } from "@bitwarden/key-management";
import { AccountSwitcherService, AvailableAccount } from "./services/account-switcher.service";
@Component({
standalone: true,
selector: "auth-account",
templateUrl: "account.component.html",
imports: [CommonModule, JslibModule, AvatarModule, ItemModule],

View File

@@ -24,7 +24,6 @@ export type CurrentAccount = {
@Component({
selector: "app-current-account",
templateUrl: "current-account.component.html",
standalone: true,
imports: [CommonModule, JslibModule, AvatarModule, RouterModule],
})
export class CurrentAccountComponent {

View File

@@ -14,7 +14,6 @@ import {
} from "@bitwarden/components";
@Component({
standalone: true,
templateUrl: "set-pin.component.html",
imports: [
DialogModule,

View File

@@ -31,7 +31,6 @@ export interface ExtensionAnonLayoutWrapperData extends AnonLayoutWrapperData {
}
@Component({
standalone: true,
templateUrl: "extension-anon-layout-wrapper.component.html",
imports: [
AnonLayoutComponent,

View File

@@ -40,7 +40,6 @@ import { PopupRouterCacheService } from "../../../platform/popup/view-cache/popu
import { AccountSecurityComponent } from "./account-security.component";
@Component({
standalone: true,
selector: "app-pop-out",
template: ` <ng-content></ng-content>`,
})

View File

@@ -79,7 +79,6 @@ import { AwaitDesktopDialogComponent } from "./await-desktop-dialog.component";
@Component({
templateUrl: "account-security.component.html",
standalone: true,
imports: [
CardComponent,
CheckboxModule,

View File

@@ -5,7 +5,6 @@ import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components
@Component({
templateUrl: "await-desktop-dialog.component.html",
standalone: true,
imports: [JslibModule, ButtonModule, DialogModule],
})
export class AwaitDesktopDialogComponent {

View File

@@ -13,7 +13,6 @@ import {
IconButtonModule,
} from "@bitwarden/components";
@Component({
standalone: true,
templateUrl: "set-pin.component.html",
imports: [
DialogModule,

View File

@@ -22,7 +22,6 @@ import { UserVerificationComponent } from "../app/components/user-verification.c
@Component({
selector: "app-delete-account",
standalone: true,
templateUrl: "delete-account.component.html",
imports: [
JslibModule,

View File

@@ -13,7 +13,6 @@ import { EmergencyAccessModule } from "../emergency-access.module";
import { EmergencyAccessService } from "../services/emergency-access.service";
@Component({
standalone: true,
imports: [SharedModule, EmergencyAccessModule],
templateUrl: "accept-emergency.component.html",
})

View File

@@ -21,7 +21,6 @@ import { SetAccountVerifyDevicesDialogComponent } from "./set-account-verify-dev
@Component({
templateUrl: "account.component.html",
standalone: true,
imports: [
SharedModule,
HeaderModule,

View File

@@ -35,7 +35,6 @@ type ChangeAvatarDialogData = {
@Component({
templateUrl: "change-avatar-dialog.component.html",
encapsulation: ViewEncapsulation.None,
standalone: true,
imports: [SharedModule, SelectableAvatarComponent],
})
export class ChangeAvatarDialogComponent implements OnInit, OnDestroy {

View File

@@ -19,7 +19,6 @@ import { SharedModule } from "../../../shared";
@Component({
selector: "app-change-email",
templateUrl: "change-email.component.html",
standalone: true,
imports: [SharedModule],
})
export class ChangeEmailComponent implements OnInit {

View File

@@ -12,7 +12,6 @@ import { I18nPipe } from "@bitwarden/ui-common";
@Component({
selector: "app-danger-zone",
templateUrl: "danger-zone.component.html",
standalone: true,
imports: [CommonModule, TypographyModule, I18nPipe],
})
export class DangerZoneComponent {}

View File

@@ -14,7 +14,6 @@ import { SharedModule } from "../../../shared";
@Component({
templateUrl: "deauthorize-sessions.component.html",
standalone: true,
imports: [SharedModule, UserVerificationFormInputComponent],
})
export class DeauthorizeSessionsComponent {

View File

@@ -14,7 +14,6 @@ import { SharedModule } from "../../../shared";
@Component({
templateUrl: "delete-account-dialog.component.html",
standalone: true,
imports: [SharedModule, UserVerificationFormInputComponent],
})
export class DeleteAccountDialogComponent {

View File

@@ -23,7 +23,6 @@ import { ChangeAvatarDialogComponent } from "./change-avatar-dialog.component";
@Component({
selector: "app-profile",
templateUrl: "profile.component.html",
standalone: true,
imports: [SharedModule, DynamicAvatarComponent, AccountFingerprintComponent],
})
export class ProfileComponent implements OnInit, OnDestroy {

View File

@@ -27,7 +27,6 @@ import { AvatarModule } from "@bitwarden/components";
>
</bit-avatar>
</span>`,
standalone: true,
imports: [NgClass, AvatarModule],
})
export class SelectableAvatarComponent {

View File

@@ -29,7 +29,6 @@ import {
@Component({
templateUrl: "./set-account-verify-devices-dialog.component.html",
standalone: true,
imports: [
CommonModule,
ReactiveFormsModule,

View File

@@ -38,7 +38,6 @@ class PremiumUpgradePromptNoop implements PremiumUpgradePromptService {
@Component({
selector: "app-emergency-view-dialog",
templateUrl: "emergency-view-dialog.component.html",
standalone: true,
imports: [ButtonModule, CipherViewComponent, DialogModule, CommonModule, JslibModule],
providers: [
{ provide: ViewPasswordHistoryService, useClass: VaultViewPasswordHistoryService },

View File

@@ -25,7 +25,6 @@ export type ApiKeyDialogData = {
};
@Component({
templateUrl: "api-key.component.html",
standalone: true,
imports: [SharedModule, UserVerificationFormInputComponent],
})
export class ApiKeyComponent {

View File

@@ -46,7 +46,6 @@ interface DeviceTableData {
@Component({
selector: "app-device-management",
templateUrl: "./device-management.component.html",
standalone: true,
imports: [CommonModule, SharedModule, TableModule, PopoverModule],
})
export class DeviceManagementComponent {

View File

@@ -10,7 +10,6 @@ import { I18nPipe } from "@bitwarden/ui-common";
import { WebauthnLoginSettingsModule } from "../../webauthn-login-settings";
@Component({
standalone: true,
selector: "app-password-settings",
templateUrl: "password-settings.component.html",
imports: [CalloutModule, ChangePasswordComponent, I18nPipe, WebauthnLoginSettingsModule],

View File

@@ -15,7 +15,6 @@ import { ChangeKdfModule } from "./change-kdf/change-kdf.module";
@Component({
templateUrl: "security-keys.component.html",
standalone: true,
imports: [SharedModule, ChangeKdfModule],
})
export class SecurityKeysComponent implements OnInit {

View File

@@ -9,7 +9,6 @@ import { SharedModule } from "../../../shared";
@Component({
templateUrl: "security.component.html",
standalone: true,
imports: [SharedModule, HeaderModule],
})
export class SecurityComponent implements OnInit {

View File

@@ -18,7 +18,6 @@ import { I18nPipe } from "@bitwarden/ui-common";
@Component({
selector: "app-two-factor-recovery",
templateUrl: "two-factor-recovery.component.html",
standalone: true,
imports: [CommonModule, DialogModule, ButtonModule, TypographyModule, I18nPipe],
})
export class TwoFactorRecoveryComponent {

View File

@@ -56,7 +56,6 @@ declare global {
@Component({
selector: "app-two-factor-setup-authenticator",
templateUrl: "two-factor-setup-authenticator.component.html",
standalone: true,
imports: [
CommonModule,
ReactiveFormsModule,

View File

@@ -33,7 +33,6 @@ import { TwoFactorSetupMethodBaseComponent } from "./two-factor-setup-method-bas
@Component({
selector: "app-two-factor-setup-duo",
templateUrl: "two-factor-setup-duo.component.html",
standalone: true,
imports: [
CommonModule,
DialogModule,

View File

@@ -36,7 +36,6 @@ import { TwoFactorSetupMethodBaseComponent } from "./two-factor-setup-method-bas
@Component({
selector: "app-two-factor-setup-email",
templateUrl: "two-factor-setup-email.component.html",
standalone: true,
imports: [
AsyncActionsModule,
ButtonModule,

View File

@@ -15,9 +15,7 @@ import { DialogService, ToastService } from "@bitwarden/components";
/**
* Base class for two-factor setup components (ex: email, yubikey, webauthn, duo).
*/
@Directive({
standalone: true,
})
@Directive({})
export abstract class TwoFactorSetupMethodBaseComponent {
@Output() onUpdated = new EventEmitter<boolean>();

View File

@@ -46,7 +46,6 @@ interface Key {
@Component({
selector: "app-two-factor-setup-webauthn",
templateUrl: "two-factor-setup-webauthn.component.html",
standalone: true,
imports: [
AsyncActionsModule,
ButtonModule,

View File

@@ -47,7 +47,6 @@ interface Key {
@Component({
selector: "app-two-factor-setup-yubikey",
templateUrl: "two-factor-setup-yubikey.component.html",
standalone: true,
imports: [
CommonModule,
ReactiveFormsModule,

View File

@@ -47,7 +47,6 @@ import { TwoFactorVerifyComponent } from "./two-factor-verify.component";
@Component({
selector: "app-two-factor-setup",
templateUrl: "two-factor-setup.component.html",
standalone: true,
imports: [ItemModule, LooseComponentsModule, SharedModule],
})
export class TwoFactorSetupComponent implements OnInit, OnDestroy {

View File

@@ -31,7 +31,6 @@ type TwoFactorVerifyDialogData = {
@Component({
selector: "app-two-factor-verify",
templateUrl: "two-factor-verify.component.html",
standalone: true,
imports: [
AsyncActionsModule,
ButtonModule,

View File

@@ -17,7 +17,6 @@ import {
} from "@bitwarden/components";
@Component({
standalone: true,
selector: "app-verify-email",
templateUrl: "verify-email.component.html",
imports: [AsyncActionsModule, BannerModule, ButtonModule, CommonModule, JslibModule, LinkModule],

View File

@@ -11,7 +11,6 @@ import { ButtonModule } from "@bitwarden/components";
*/
@Component({
selector: "app-authentication-timeout",
standalone: true,
imports: [CommonModule, JslibModule, ButtonModule, RouterModule],
template: `
<p class="tw-text-center">

View File

@@ -44,7 +44,6 @@ export interface AnonLayoutWrapperData {
}
@Component({
standalone: true,
templateUrl: "anon-layout-wrapper.component.html",
imports: [AnonLayoutComponent, RouterModule],
})

View File

@@ -21,7 +21,6 @@ import { TypographyModule } from "../../../../components/src/typography";
import { BitwardenLogo, BitwardenShield } from "../icons";
@Component({
standalone: true,
selector: "auth-anon-layout",
templateUrl: "./anon-layout.component.html",
imports: [IconModule, CommonModule, TypographyModule, SharedModule, RouterModule],

View File

@@ -22,7 +22,6 @@ import { PasswordInputResult } from "../input-password/password-input-result";
import { ChangePasswordService } from "./change-password.service.abstraction";
@Component({
standalone: true,
selector: "auth-change-password",
templateUrl: "change-password.component.html",
imports: [InputPasswordComponent, I18nPipe],

View File

@@ -11,7 +11,6 @@ export type FingerprintDialogData = {
@Component({
templateUrl: "fingerprint-dialog.component.html",
standalone: true,
imports: [JslibModule, ButtonModule, DialogModule],
})
export class FingerprintDialogComponent {

View File

@@ -82,7 +82,6 @@ interface InputPasswordForm {
}
@Component({
standalone: true,
selector: "auth-input-password",
templateUrl: "./input-password.component.html",
imports: [

View File

@@ -40,7 +40,6 @@ export interface LoginApprovalDialogParams {
@Component({
selector: "login-approval",
templateUrl: "login-approval.component.html",
standalone: true,
imports: [CommonModule, AsyncActionsModule, ButtonModule, DialogModule, JslibModule],
})
export class LoginApprovalComponent implements OnInit, OnDestroy {

View File

@@ -51,7 +51,6 @@ enum State {
}
@Component({
standalone: true,
templateUrl: "./login-decryption-options.component.html",
imports: [
AsyncActionsModule,

View File

@@ -57,7 +57,6 @@ const matchOptions: IsActiveMatchOptions = {
};
@Component({
standalone: true,
templateUrl: "./login-via-auth-request.component.html",
imports: [ButtonModule, CommonModule, JslibModule, LinkModule, RouterModule],
providers: [{ provide: LoginViaAuthRequestCacheService }],

View File

@@ -9,7 +9,6 @@ import { DefaultServerSettingsService } from "@bitwarden/common/platform/service
import { LinkModule } from "@bitwarden/components";
@Component({
standalone: true,
imports: [CommonModule, JslibModule, LinkModule, RouterModule],
template: `
<div class="tw-text-center" *ngIf="!(isUserRegistrationDisabled$ | async)">

View File

@@ -56,7 +56,6 @@ export enum LoginUiState {
}
@Component({
standalone: true,
templateUrl: "./login.component.html",
imports: [
AsyncActionsModule,

View File

@@ -25,7 +25,6 @@ import { LoginStrategyServiceAbstraction } from "../../common/abstractions/login
* Component for verifying a new device via a one-time password (OTP).
*/
@Component({
standalone: true,
selector: "app-new-device-verification",
templateUrl: "./new-device-verification.component.html",
imports: [

View File

@@ -13,7 +13,6 @@ import { CalloutModule } from "@bitwarden/components";
@Component({
selector: "auth-password-callout",
templateUrl: "password-callout.component.html",
standalone: true,
imports: [CommonModule, JslibModule, CalloutModule],
})
export class PasswordCalloutComponent {

View File

@@ -23,7 +23,6 @@ import {
} from "@bitwarden/components";
@Component({
standalone: true,
templateUrl: "./password-hint.component.html",
imports: [
AsyncActionsModule,

View File

@@ -26,7 +26,6 @@ import { SelfHostedEnvConfigDialogComponent } from "../../self-hosted-env-config
* Outputs the selected region to the parent component so it can respond as necessary.
*/
@Component({
standalone: true,
selector: "auth-registration-env-selector",
templateUrl: "registration-env-selector.component.html",
imports: [CommonModule, JslibModule, ReactiveFormsModule, FormFieldModule, SelectModule],

View File

@@ -33,7 +33,6 @@ import { PasswordInputResult } from "../../input-password/password-input-result"
import { RegistrationFinishService } from "./registration-finish.service";
@Component({
standalone: true,
selector: "auth-registration-finish",
templateUrl: "./registration-finish.component.html",
imports: [CommonModule, JslibModule, RouterModule, InputPasswordComponent],

View File

@@ -21,7 +21,6 @@ export interface RegistrationLinkExpiredComponentData {
}
@Component({
standalone: true,
selector: "auth-registration-link-expired",
templateUrl: "./registration-link-expired.component.html",
imports: [CommonModule, JslibModule, RouterModule, IconModule, ButtonModule],

View File

@@ -19,7 +19,6 @@ export interface RegistrationStartSecondaryComponentData {
}
@Component({
standalone: true,
selector: "auth-registration-start-secondary",
templateUrl: "./registration-start-secondary.component.html",
imports: [CommonModule, JslibModule, RouterModule, LinkModule],

View File

@@ -42,7 +42,6 @@ const DEFAULT_MARKETING_EMAILS_PREF_BY_REGION: Record<Region, boolean> = {
};
@Component({
standalone: true,
selector: "auth-registration-start",
templateUrl: "./registration-start.component.html",
imports: [

View File

@@ -55,7 +55,6 @@ function selfHostedEnvSettingsFormValidator(): ValidatorFn {
* Dialog for configuring self-hosted environment settings.
*/
@Component({
standalone: true,
selector: "self-hosted-env-config-dialog",
templateUrl: "self-hosted-env-config-dialog.component.html",
imports: [

View File

@@ -30,7 +30,6 @@ import {
} from "./set-password-jit.service.abstraction";
@Component({
standalone: true,
selector: "auth-set-password-jit",
templateUrl: "set-password-jit.component.html",
imports: [CommonModule, InputPasswordComponent, JslibModule],

View File

@@ -62,7 +62,6 @@ interface QueryParams {
* This component handles the SSO flow.
*/
@Component({
standalone: true,
templateUrl: "sso.component.html",
imports: [
AsyncActionsModule,

View File

@@ -15,7 +15,6 @@ import {
} from "@bitwarden/components";
@Component({
standalone: true,
selector: "app-two-factor-auth-authenticator",
templateUrl: "two-factor-auth-authenticator.component.html",
imports: [

View File

@@ -26,7 +26,6 @@ import {
} from "./two-factor-auth-duo-component.service";
@Component({
standalone: true,
selector: "app-two-factor-auth-duo",
template: "",
imports: [

View File

@@ -28,7 +28,6 @@ import { TwoFactorAuthEmailComponentCacheService } from "./two-factor-auth-email
import { TwoFactorAuthEmailComponentService } from "./two-factor-auth-email-component.service";
@Component({
standalone: true,
selector: "app-two-factor-auth-email",
templateUrl: "two-factor-auth-email.component.html",
imports: [

View File

@@ -33,7 +33,6 @@ export interface WebAuthnResult {
}
@Component({
standalone: true,
selector: "app-two-factor-auth-webauthn",
templateUrl: "two-factor-auth-webauthn.component.html",
imports: [

View File

@@ -15,7 +15,6 @@ import {
} from "@bitwarden/components";
@Component({
standalone: true,
selector: "app-two-factor-auth-yubikey",
templateUrl: "two-factor-auth-yubikey.component.html",
imports: [

View File

@@ -77,7 +77,6 @@ import {
} from "./two-factor-options.component";
@Component({
standalone: true,
selector: "app-two-factor-auth",
templateUrl: "two-factor-auth.component.html",
imports: [

View File

@@ -32,7 +32,6 @@ export type TwoFactorOptionsDialogResult = {
};
@Component({
standalone: true,
selector: "app-two-factor-options",
templateUrl: "two-factor-options.component.html",
imports: [

View File

@@ -32,7 +32,6 @@ import { UserVerificationFormInputComponent } from "./user-verification-form-inp
@Component({
templateUrl: "user-verification-dialog.component.html",
standalone: true,
imports: [
CommonModule,
ReactiveFormsModule,

View File

@@ -56,7 +56,6 @@ import { ActiveClientVerificationOption } from "./active-client-verification-opt
transition(":enter", [style({ opacity: 0 }), animate("100ms", style({ opacity: 1 }))]),
]),
],
standalone: true,
imports: [
CommonModule,
ReactiveFormsModule,

View File

@@ -47,7 +47,6 @@ type VaultTimeoutFormValue = VaultTimeoutForm["value"];
@Component({
selector: "auth-vault-timeout-input",
templateUrl: "vault-timeout-input.component.html",
standalone: true,
imports: [CommonModule, JslibModule, ReactiveFormsModule, FormFieldModule, SelectModule],
providers: [
{