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:
@@ -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,
|
||||
|
||||
@@ -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],
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -14,7 +14,6 @@ import {
|
||||
} from "@bitwarden/components";
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
templateUrl: "set-pin.component.html",
|
||||
imports: [
|
||||
DialogModule,
|
||||
|
||||
@@ -31,7 +31,6 @@ export interface ExtensionAnonLayoutWrapperData extends AnonLayoutWrapperData {
|
||||
}
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
templateUrl: "extension-anon-layout-wrapper.component.html",
|
||||
imports: [
|
||||
AnonLayoutComponent,
|
||||
|
||||
@@ -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>`,
|
||||
})
|
||||
|
||||
@@ -79,7 +79,6 @@ import { AwaitDesktopDialogComponent } from "./await-desktop-dialog.component";
|
||||
|
||||
@Component({
|
||||
templateUrl: "account-security.component.html",
|
||||
standalone: true,
|
||||
imports: [
|
||||
CardComponent,
|
||||
CheckboxModule,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -13,7 +13,6 @@ import {
|
||||
IconButtonModule,
|
||||
} from "@bitwarden/components";
|
||||
@Component({
|
||||
standalone: true,
|
||||
templateUrl: "set-pin.component.html",
|
||||
imports: [
|
||||
DialogModule,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
})
|
||||
|
||||
@@ -21,7 +21,6 @@ import { SetAccountVerifyDevicesDialogComponent } from "./set-account-verify-dev
|
||||
|
||||
@Component({
|
||||
templateUrl: "account.component.html",
|
||||
standalone: true,
|
||||
imports: [
|
||||
SharedModule,
|
||||
HeaderModule,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
@@ -14,7 +14,6 @@ import { SharedModule } from "../../../shared";
|
||||
|
||||
@Component({
|
||||
templateUrl: "deauthorize-sessions.component.html",
|
||||
standalone: true,
|
||||
imports: [SharedModule, UserVerificationFormInputComponent],
|
||||
})
|
||||
export class DeauthorizeSessionsComponent {
|
||||
|
||||
@@ -14,7 +14,6 @@ import { SharedModule } from "../../../shared";
|
||||
|
||||
@Component({
|
||||
templateUrl: "delete-account-dialog.component.html",
|
||||
standalone: true,
|
||||
imports: [SharedModule, UserVerificationFormInputComponent],
|
||||
})
|
||||
export class DeleteAccountDialogComponent {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -27,7 +27,6 @@ import { AvatarModule } from "@bitwarden/components";
|
||||
>
|
||||
</bit-avatar>
|
||||
</span>`,
|
||||
standalone: true,
|
||||
imports: [NgClass, AvatarModule],
|
||||
})
|
||||
export class SelectableAvatarComponent {
|
||||
|
||||
@@ -29,7 +29,6 @@ import {
|
||||
|
||||
@Component({
|
||||
templateUrl: "./set-account-verify-devices-dialog.component.html",
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
ReactiveFormsModule,
|
||||
|
||||
@@ -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 },
|
||||
|
||||
@@ -25,7 +25,6 @@ export type ApiKeyDialogData = {
|
||||
};
|
||||
@Component({
|
||||
templateUrl: "api-key.component.html",
|
||||
standalone: true,
|
||||
imports: [SharedModule, UserVerificationFormInputComponent],
|
||||
})
|
||||
export class ApiKeyComponent {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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],
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -9,7 +9,6 @@ import { SharedModule } from "../../../shared";
|
||||
|
||||
@Component({
|
||||
templateUrl: "security.component.html",
|
||||
standalone: true,
|
||||
imports: [SharedModule, HeaderModule],
|
||||
})
|
||||
export class SecurityComponent implements OnInit {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>();
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -31,7 +31,6 @@ type TwoFactorVerifyDialogData = {
|
||||
@Component({
|
||||
selector: "app-two-factor-verify",
|
||||
templateUrl: "two-factor-verify.component.html",
|
||||
standalone: true,
|
||||
imports: [
|
||||
AsyncActionsModule,
|
||||
ButtonModule,
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user