1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

Add standalone false to all non migrated (#14797)

Adds standalone: false to all components since Angular is changing the default to true and we'd rather not have the angular PR change 300+ files.
This commit is contained in:
Oscar Hinton
2025-05-15 16:44:07 +02:00
committed by GitHub
parent 623deea4fc
commit ac49e594c1
311 changed files with 350 additions and 8 deletions

View File

@@ -24,6 +24,7 @@ export interface DomainAddEditDialogData {
@Component({
templateUrl: "domain-add-edit-dialog.component.html",
standalone: false,
})
export class DomainAddEditDialogComponent implements OnInit, OnDestroy {
private componentDestroyed$: Subject<void> = new Subject();

View File

@@ -35,6 +35,7 @@ import {
@Component({
selector: "app-org-manage-domain-verification",
templateUrl: "domain-verification.component.html",
standalone: false,
})
export class DomainVerificationComponent implements OnInit, OnDestroy {
private componentDestroyed$ = new Subject<void>();

View File

@@ -24,6 +24,7 @@ import { DialogService, ToastService } from "@bitwarden/components";
@Component({
selector: "app-org-manage-scim",
templateUrl: "scim.component.html",
standalone: false,
})
export class ScimComponent implements OnInit {
loading = true;

View File

@@ -21,5 +21,6 @@ export class ActivateAutofillPolicy extends BasePolicy {
@Component({
selector: "policy-activate-autofill",
templateUrl: "activate-autofill.component.html",
standalone: false,
})
export class ActivateAutofillPolicyComponent extends BasePolicyComponent {}

View File

@@ -19,6 +19,7 @@ export class AutomaticAppLoginPolicy extends BasePolicy {
@Component({
selector: "policy-automatic-app-login",
templateUrl: "automatic-app-login.component.html",
standalone: false,
})
export class AutomaticAppLoginPolicyComponent extends BasePolicyComponent {
data = this.formBuilder.group({

View File

@@ -16,5 +16,6 @@ export class DisablePersonalVaultExportPolicy extends BasePolicy {
@Component({
selector: "policy-disable-personal-vault-export",
templateUrl: "disable-personal-vault-export.component.html",
standalone: false,
})
export class DisablePersonalVaultExportPolicyComponent extends BasePolicyComponent {}

View File

@@ -22,6 +22,7 @@ export class MaximumVaultTimeoutPolicy extends BasePolicy {
@Component({
selector: "policy-maximum-timeout",
templateUrl: "maximum-vault-timeout.component.html",
standalone: false,
})
export class MaximumVaultTimeoutPolicyComponent extends BasePolicyComponent {
vaultTimeoutActionOptions: { name: string; value: string }[];

View File

@@ -19,6 +19,7 @@ interface AddOrganizationDialogData {
@Component({
templateUrl: "add-organization.component.html",
standalone: false,
})
export class AddOrganizationComponent implements OnInit {
protected provider: Provider;

View File

@@ -8,6 +8,7 @@ import { OrganizationPlansComponent } from "@bitwarden/web-vault/app/billing";
@Component({
selector: "app-create-organization",
templateUrl: "create-organization.component.html",
standalone: false,
})
export class CreateOrganizationComponent implements OnInit {
@ViewChild(OrganizationPlansComponent, { static: true })

View File

@@ -14,6 +14,7 @@ import { BaseAcceptComponent } from "@bitwarden/web-vault/app/common/base.accept
@Component({
selector: "app-accept-provider",
templateUrl: "accept-provider.component.html",
standalone: false,
})
export class AcceptProviderComponent extends BaseAcceptComponent {
protected logo = BitwardenLogo;

View File

@@ -35,6 +35,7 @@ export enum AddEditMemberDialogResultType {
@Component({
templateUrl: "add-edit-member-dialog.component.html",
standalone: false,
})
export class AddEditMemberDialogComponent {
editing = false;

View File

@@ -29,6 +29,7 @@ type BulkConfirmDialogParams = {
@Component({
templateUrl:
"../../../../../../../../apps/web/src/app/admin-console/organizations/members/components/bulk/bulk-confirm-dialog.component.html",
standalone: false,
})
export class BulkConfirmDialogComponent extends BaseBulkConfirmComponent {
providerId: string;

View File

@@ -19,6 +19,7 @@ type BulkRemoveDialogParams = {
@Component({
templateUrl:
"../../../../../../../../apps/web/src/app/admin-console/organizations/members/components/bulk/bulk-remove-dialog.component.html",
standalone: false,
})
export class BulkRemoveDialogComponent extends BaseBulkRemoveComponent {
providerId: string;

View File

@@ -19,6 +19,7 @@ import { EventExportService } from "@bitwarden/web-vault/app/tools/event-export"
@Component({
selector: "provider-events",
templateUrl: "events.component.html",
standalone: false,
})
export class EventsComponent extends BaseEventsComponent implements OnInit {
exportFileName = "provider-events";

View File

@@ -45,6 +45,7 @@ class MembersTableDataSource extends PeopleTableDataSource<ProviderUser> {
@Component({
templateUrl: "members.component.html",
standalone: false,
})
export class MembersComponent extends BaseMembersComponent<ProviderUser> {
accessEvents = false;

View File

@@ -10,6 +10,7 @@ import { Utils } from "@bitwarden/common/platform/misc/utils";
@Component({
selector: "app-providers",
templateUrl: "providers.component.html",
standalone: false,
})
export class ProvidersComponent implements OnInit {
providers: Provider[];

View File

@@ -20,6 +20,7 @@ import { DialogService, ToastService } from "@bitwarden/components";
@Component({
selector: "provider-account",
templateUrl: "account.component.html",
standalone: false,
})
export class AccountComponent implements OnDestroy, OnInit {
selfHosted = false;

View File

@@ -7,6 +7,7 @@ import { BaseAcceptComponent } from "@bitwarden/web-vault/app/common/base.accept
@Component({
selector: "app-setup-provider",
templateUrl: "setup-provider.component.html",
standalone: false,
})
export class SetupProviderComponent extends BaseAcceptComponent {
protected logo = BitwardenLogo;

View File

@@ -23,6 +23,7 @@ import { PaymentComponent } from "@bitwarden/web-vault/app/billing/shared/paymen
@Component({
selector: "provider-setup",
templateUrl: "setup.component.html",
standalone: false,
})
export class SetupComponent implements OnInit, OnDestroy {
@ViewChild(PaymentComponent) paymentComponent: PaymentComponent;

View File

@@ -13,6 +13,7 @@ import { ToastService } from "@bitwarden/components";
@Component({
selector: "app-verify-recover-delete-provider",
templateUrl: "verify-recover-delete-provider.component.html",
standalone: false,
})
export class VerifyRecoverDeleteProviderComponent implements OnInit {
name: string;

View File

@@ -12,6 +12,7 @@ import { FreeFamiliesSponsorshipPolicy } from "./billing/policies/free-families-
@Component({
selector: "app-root",
templateUrl: "../../../../apps/web/src/app/app.component.html",
standalone: false,
})
export class AppComponent extends BaseAppComponent implements OnInit {
ngOnInit() {

View File

@@ -51,6 +51,7 @@ const defaultSigningAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha2
@Component({
selector: "app-org-manage-sso",
templateUrl: "sso.component.html",
standalone: false,
})
export class SsoComponent implements OnInit, OnDestroy {
readonly ssoType = SsoType;

View File

@@ -16,5 +16,6 @@ export class FreeFamiliesSponsorshipPolicy extends BasePolicy {
@Component({
selector: "policy-personal-ownership",
templateUrl: "free-families-sponsorship.component.html",
standalone: false,
})
export class FreeFamiliesSponsorshipPolicyComponent extends BasePolicyComponent {}

View File

@@ -12,6 +12,7 @@ import { BillingNotificationService } from "@bitwarden/web-vault/app/billing/ser
@Component({
templateUrl: "./provider-billing-history.component.html",
standalone: false,
})
export class ProviderBillingHistoryComponent {
private providerId: string;

View File

@@ -27,6 +27,7 @@ export enum AddExistingOrganizationDialogResultType {
@Component({
templateUrl: "./add-existing-organization-dialog.component.html",
standalone: false,
})
export class AddExistingOrganizationDialogComponent implements OnInit {
protected loading: boolean = true;

View File

@@ -99,6 +99,7 @@ export class PlanCard {
@Component({
templateUrl: "./create-client-dialog.component.html",
standalone: false,
})
export class CreateClientDialogComponent implements OnInit {
protected discountPercentage: number | null | undefined;

View File

@@ -41,6 +41,7 @@ export const openManageClientNameDialog = (
@Component({
templateUrl: "manage-client-name-dialog.component.html",
standalone: false,
})
export class ManageClientNameDialogComponent {
protected ResultType = ManageClientNameDialogResultType;

View File

@@ -36,6 +36,7 @@ export const openManageClientSubscriptionDialog = (
@Component({
templateUrl: "./manage-client-subscription-dialog.component.html",
standalone: false,
})
export class ManageClientSubscriptionDialogComponent implements OnInit {
protected loading = true;

View File

@@ -19,6 +19,7 @@ import { BaseAcceptComponent } from "@bitwarden/web-vault/app/common/base.accept
@Component({
templateUrl: "./setup-business-unit.component.html",
standalone: false,
})
export class SetupBusinessUnitComponent extends BaseAcceptComponent {
protected bitwardenLogo = BitwardenLogo;

View File

@@ -26,6 +26,7 @@ type ComponentData = {
@Component({
selector: "app-provider-subscription-status",
templateUrl: "provider-subscription-status.component.html",
standalone: false,
})
export class ProviderSubscriptionStatusComponent {
@Input({ required: true }) subscription: ProviderSubscriptionResponse;

View File

@@ -26,6 +26,7 @@ import {
@Component({
selector: "app-provider-subscription",
templateUrl: "./provider-subscription.component.html",
standalone: false,
})
export class ProviderSubscriptionComponent implements OnInit, OnDestroy {
private providerId: string;

View File

@@ -19,12 +19,14 @@ import { IntegrationsComponent } from "./integrations.component";
@Component({
selector: "app-header",
template: "<div></div>",
standalone: false,
})
class MockHeaderComponent {}
@Component({
selector: "sm-new-menu",
template: "<div></div>",
standalone: false,
})
class MockNewMenuComponent {}

View File

@@ -6,6 +6,7 @@ import { Integration } from "@bitwarden/web-vault/app/admin-console/organization
@Component({
selector: "sm-integrations",
templateUrl: "./integrations.component.html",
standalone: false,
})
export class IntegrationsComponent {
private integrationsAndSdks: Integration[] = [];

View File

@@ -3,6 +3,7 @@ import { Component, OnInit } from "@angular/core";
@Component({
selector: "sm-layout",
templateUrl: "./layout.component.html",
standalone: false,
})
export class LayoutComponent implements OnInit {
ngOnInit() {

View File

@@ -34,6 +34,7 @@ import { CountService } from "../shared/counts/count.service";
@Component({
selector: "sm-navigation",
templateUrl: "./navigation.component.html",
standalone: false,
})
export class NavigationComponent implements OnInit, OnDestroy {
protected readonly logo = SecretsManagerLogo;

View File

@@ -88,6 +88,7 @@ type OrganizationTasks = {
@Component({
selector: "sm-overview",
templateUrl: "./overview.component.html",
standalone: false,
})
export class OverviewComponent implements OnInit, OnDestroy {
private destroy$: Subject<void> = new Subject<void>();

View File

@@ -3,6 +3,7 @@ import { Component, Input } from "@angular/core";
@Component({
selector: "sm-section",
templateUrl: "./section.component.html",
standalone: false,
})
export class SectionComponent {
@Input() open = true;

View File

@@ -27,6 +27,7 @@ export interface ProjectDeleteOperation {
@Component({
templateUrl: "./project-delete-dialog.component.html",
standalone: false,
})
export class ProjectDeleteDialogComponent implements OnInit {
formGroup = new FormGroup({

View File

@@ -27,6 +27,7 @@ export interface ProjectOperation {
@Component({
templateUrl: "./project-dialog.component.html",
standalone: false,
})
export class ProjectDialogComponent implements OnInit {
protected formGroup = new FormGroup({

View File

@@ -22,11 +22,13 @@ import { projectAccessGuard } from "./project-access.guard";
@Component({
template: "",
standalone: false,
})
export class GuardedRouteTestComponent {}
@Component({
template: "",
standalone: false,
})
export class RedirectTestComponent {}

View File

@@ -27,6 +27,7 @@ import { AccessPolicyService } from "../../shared/access-policies/access-policy.
@Component({
selector: "sm-project-people",
templateUrl: "./project-people.component.html",
standalone: false,
})
export class ProjectPeopleComponent implements OnInit, OnDestroy {
private currentAccessPolicies: ApItemViewType[];

View File

@@ -45,6 +45,7 @@ import { ProjectService } from "../project.service";
@Component({
selector: "sm-project-secrets",
templateUrl: "./project-secrets.component.html",
standalone: false,
})
export class ProjectSecretsComponent implements OnInit {
secrets$: Observable<SecretListView[]>;

View File

@@ -25,6 +25,7 @@ import { AccessPolicyService } from "../../shared/access-policies/access-policy.
@Component({
selector: "sm-project-service-accounts",
templateUrl: "./project-service-accounts.component.html",
standalone: false,
})
export class ProjectServiceAccountsComponent implements OnInit, OnDestroy {
private currentAccessPolicies: ApItemViewType[];

View File

@@ -37,6 +37,7 @@ import { ProjectService } from "../project.service";
@Component({
selector: "sm-project",
templateUrl: "./project.component.html",
standalone: false,
})
export class ProjectComponent implements OnInit, OnDestroy {
protected project$: Observable<ProjectView>;

View File

@@ -40,6 +40,7 @@ import { ProjectService } from "../project.service";
@Component({
selector: "sm-projects",
templateUrl: "./projects.component.html",
standalone: false,
})
export class ProjectsComponent implements OnInit {
protected projects$: Observable<ProjectListView[]>;

View File

@@ -20,6 +20,7 @@ export interface SecretDeleteOperation {
@Component({
templateUrl: "./secret-delete.component.html",
standalone: false,
})
export class SecretDeleteDialogComponent {
constructor(

View File

@@ -69,6 +69,7 @@ export interface SecretOperation {
@Component({
templateUrl: "./secret-dialog.component.html",
standalone: false,
})
export class SecretDialogComponent implements OnInit, OnDestroy {
loading = true;

View File

@@ -12,6 +12,7 @@ export interface SecretViewDialogParams {
@Component({
templateUrl: "./secret-view-dialog.component.html",
standalone: false,
})
export class SecretViewDialogComponent implements OnInit {
protected loading = true;

View File

@@ -36,6 +36,7 @@ import { SecretService } from "./secret.service";
@Component({
selector: "sm-secrets",
templateUrl: "./secrets.component.html",
standalone: false,
})
export class SecretsComponent implements OnInit {
protected secrets$: Observable<SecretListView[]>;

View File

@@ -8,6 +8,7 @@ import { AccessTokenView } from "../models/view/access-token.view";
@Component({
selector: "sm-access-list",
templateUrl: "./access-list.component.html",
standalone: false,
})
export class AccessListComponent {
@Input()

View File

@@ -27,6 +27,7 @@ import { AccessTokenCreateDialogComponent } from "./dialogs/access-token-create-
@Component({
selector: "sm-access-tokens",
templateUrl: "./access-tokens.component.html",
standalone: false,
})
export class AccessTokenComponent implements OnInit, OnDestroy {
accessTokens$: Observable<AccessTokenView[]>;

View File

@@ -17,6 +17,7 @@ export interface AccessTokenOperation {
@Component({
templateUrl: "./access-token-create-dialog.component.html",
standalone: false,
})
export class AccessTokenCreateDialogComponent implements OnInit {
protected formGroup = new FormGroup({

View File

@@ -14,6 +14,7 @@ export interface AccessTokenDetails {
@Component({
templateUrl: "./access-token-dialog.component.html",
standalone: false,
})
export class AccessTokenDialogComponent implements OnInit {
constructor(

View File

@@ -33,6 +33,7 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic
useExisting: ExpirationOptionsComponent,
},
],
standalone: false,
})
export class ExpirationOptionsComponent
implements ControlValueAccessor, Validator, OnInit, OnDestroy

View File

@@ -24,6 +24,7 @@ class ServiceAccountConfig {
@Component({
selector: "sm-service-account-config",
templateUrl: "./config.component.html",
standalone: false,
})
export class ServiceAccountConfigComponent implements OnInit, OnDestroy {
identityUrl: string;

View File

@@ -27,6 +27,7 @@ export interface ServiceAccountDeleteOperation {
@Component({
templateUrl: "./service-account-delete-dialog.component.html",
standalone: false,
})
export class ServiceAccountDeleteDialogComponent {
formGroup = new FormGroup({

View File

@@ -26,6 +26,7 @@ export interface ServiceAccountOperation {
@Component({
templateUrl: "./service-account-dialog.component.html",
standalone: false,
})
export class ServiceAccountDialogComponent implements OnInit {
protected formGroup = new FormGroup(

View File

@@ -18,6 +18,7 @@ import { ServiceAccountEventLogApiService } from "./service-account-event-log-ap
@Component({
selector: "sm-service-accounts-events",
templateUrl: "./service-accounts-events.component.html",
standalone: false,
})
export class ServiceAccountEventsComponent
extends BaseEventsComponent

View File

@@ -22,11 +22,13 @@ import { serviceAccountAccessGuard } from "./service-account-access.guard";
@Component({
template: "",
standalone: false,
})
export class GuardedRouteTestComponent {}
@Component({
template: "",
standalone: false,
})
export class RedirectTestComponent {}

View File

@@ -28,6 +28,7 @@ import { AccessPolicyService } from "../../shared/access-policies/access-policy.
@Component({
selector: "sm-service-account-people",
templateUrl: "./service-account-people.component.html",
standalone: false,
})
export class ServiceAccountPeopleComponent implements OnInit, OnDestroy {
private currentAccessPolicies: ApItemViewType[];

View File

@@ -25,6 +25,7 @@ import { AccessPolicyService } from "../../shared/access-policies/access-policy.
@Component({
selector: "sm-service-account-projects",
templateUrl: "./service-account-projects.component.html",
standalone: false,
})
export class ServiceAccountProjectsComponent implements OnInit, OnDestroy {
private currentAccessPolicies: ApItemViewType[];

View File

@@ -18,6 +18,7 @@ import { ServiceAccountService } from "./service-account.service";
@Component({
selector: "sm-service-account",
templateUrl: "./service-account.component.html",
standalone: false,
})
export class ServiceAccountComponent implements OnInit, OnDestroy {
private destroy$ = new Subject<void>();

View File

@@ -16,6 +16,7 @@ import {
@Component({
selector: "sm-service-accounts-list",
templateUrl: "./service-accounts-list.component.html",
standalone: false,
})
export class ServiceAccountsListComponent implements OnDestroy {
protected dataSource = new TableDataSource<ServiceAccountSecretsDetailsView>();

View File

@@ -31,6 +31,7 @@ import { ServiceAccountService } from "./service-account.service";
@Component({
selector: "sm-service-accounts",
templateUrl: "./service-accounts.component.html",
standalone: false,
})
export class ServiceAccountsComponent implements OnInit {
protected serviceAccounts$: Observable<ServiceAccountSecretsDetailsView[]>;

View File

@@ -12,6 +12,7 @@ export interface SecretsManagerImportErrorDialogOperation {
@Component({
templateUrl: "./sm-import-error-dialog.component.html",
standalone: false,
})
export class SecretsManagerImportErrorDialogComponent {
errorLines: SecretsManagerImportErrorLine[];

View File

@@ -29,6 +29,7 @@ type ExportFormat = {
@Component({
selector: "sm-export",
templateUrl: "./sm-export.component.html",
standalone: false,
})
export class SecretsManagerExportComponent implements OnInit, OnDestroy {
private destroy$ = new Subject<void>();

View File

@@ -21,6 +21,7 @@ import { SecretsManagerPortingApiService } from "../services/sm-porting-api.serv
@Component({
selector: "sm-import",
templateUrl: "./sm-import.component.html",
standalone: false,
})
export class SecretsManagerImportComponent implements OnInit, OnDestroy {
private destroy$ = new Subject<void>();

View File

@@ -30,6 +30,7 @@ import { ApPermissionEnum } from "./models/enums/ap-permission.enum";
multi: true,
},
],
standalone: false,
})
export class AccessPolicySelectorComponent implements ControlValueAccessor, OnInit, OnDestroy {
private destroy$ = new Subject<void>();

View File

@@ -25,6 +25,7 @@ export enum BulkConfirmationResult {
@Component({
selector: "sm-bulk-confirmation-dialog",
templateUrl: "./bulk-confirmation-dialog.component.html",
standalone: false,
})
export class BulkConfirmationDialogComponent implements OnInit {
constructor(

View File

@@ -20,6 +20,7 @@ export class BulkOperationStatus {
@Component({
templateUrl: "./bulk-status-dialog.component.html",
standalone: false,
})
export class BulkStatusDialogComponent implements OnInit {
constructor(

View File

@@ -29,6 +29,7 @@ import {
@Component({
selector: "sm-new-menu",
templateUrl: "./new-menu.component.html",
standalone: false,
})
export class NewMenuComponent implements OnInit, OnDestroy {
private organizationId: string;

View File

@@ -12,6 +12,7 @@ import { Icon, Icons } from "@bitwarden/components";
@Component({
templateUrl: "./org-suspended.component.html",
standalone: false,
})
export class OrgSuspendedComponent {
constructor(

View File

@@ -13,6 +13,7 @@ import { ProjectListView } from "../models/view/project-list.view";
@Component({
selector: "sm-projects-list",
templateUrl: "./projects-list.component.html",
standalone: false,
})
export class ProjectsListComponent {
@Input()

View File

@@ -15,6 +15,7 @@ import { SecretService } from "../secrets/secret.service";
@Component({
selector: "sm-secrets-list",
templateUrl: "./secrets-list.component.html",
standalone: false,
})
export class SecretsListComponent implements OnDestroy {
protected dataSource = new TableDataSource<SecretListView>();

View File

@@ -15,6 +15,7 @@ export interface SecretHardDeleteOperation {
@Component({
templateUrl: "./secret-hard-delete.component.html",
standalone: false,
})
export class SecretHardDeleteDialogComponent {
constructor(

View File

@@ -15,6 +15,7 @@ export interface SecretRestoreOperation {
@Component({
templateUrl: "./secret-restore.component.html",
standalone: false,
})
export class SecretRestoreDialogComponent {
constructor(

View File

@@ -24,6 +24,7 @@ import {
@Component({
selector: "sm-trash",
templateUrl: "./trash.component.html",
standalone: false,
})
export class TrashComponent implements OnInit {
secrets$: Observable<SecretListView[]>;