mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[PM-28231] Enable component-class-suffix (#17384)
* Enable component-class-suffix * Rename file
This commit is contained in:
@@ -47,6 +47,8 @@ import {
|
||||
TypographyModule,
|
||||
],
|
||||
})
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/PM-28231): Use Component suffix
|
||||
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
||||
export class PhishingWarning {
|
||||
private activatedRoute = inject(ActivatedRoute);
|
||||
private messageSender = inject(MessageSender);
|
||||
|
||||
@@ -61,6 +61,8 @@ class MockPopupPageComponent {
|
||||
template: `<ng-content></ng-content>`,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/PM-28231): Use Component suffix
|
||||
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
||||
class MockAppIcon {
|
||||
readonly cipher = input<CipherView | undefined>(undefined);
|
||||
}
|
||||
|
||||
@@ -49,6 +49,8 @@ import { PopupPageComponent } from "../../../../../platform/popup/layout/popup-p
|
||||
PopOutComponent,
|
||||
],
|
||||
})
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/PM-28231): Use Component suffix
|
||||
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
||||
export class AssignCollections {
|
||||
/** Params needed to populate the assign collections component */
|
||||
params: CollectionAssignmentParams;
|
||||
|
||||
@@ -30,6 +30,8 @@ const blockedURISettingsRoute = "/blocked-domains";
|
||||
selector: "blocked-injection-banner",
|
||||
templateUrl: "blocked-injection-banner.component.html",
|
||||
})
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/PM-28231): Use Component suffix
|
||||
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
||||
export class BlockedInjectionBanner implements OnInit {
|
||||
/**
|
||||
* Flag indicating that the banner should be shown
|
||||
|
||||
@@ -24,6 +24,8 @@ import {
|
||||
selector: "vault-cipher-form-generator",
|
||||
template: "",
|
||||
})
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/PM-28231): Use Component suffix
|
||||
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
||||
class MockCipherFormGenerator {
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||
|
||||
@@ -23,6 +23,8 @@ import { ToastService } from "@bitwarden/components";
|
||||
templateUrl: "adjust-subscription.component.html",
|
||||
standalone: false,
|
||||
})
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/PM-28231): Use Component suffix
|
||||
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
||||
export class AdjustSubscription implements OnInit, OnDestroy {
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||
|
||||
@@ -9,6 +9,8 @@ import { Component, Input } from "@angular/core";
|
||||
providers: [{ provide: CdkStep, useExisting: VerticalStep }],
|
||||
standalone: false,
|
||||
})
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/PM-28231): Use Component suffix
|
||||
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
||||
export class VerticalStep extends CdkStep {
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||
|
||||
@@ -53,7 +53,7 @@ class MockStateService {
|
||||
template: `<button type="button" bitIconButton="bwi-filter" label="Switch products"></button>`,
|
||||
standalone: false,
|
||||
})
|
||||
class MockProductSwitcher {}
|
||||
class MockProductSwitcherComponent {}
|
||||
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||
@@ -62,7 +62,7 @@ class MockProductSwitcher {}
|
||||
template: `<bit-avatar [text]="name$ | async"></bit-avatar>`,
|
||||
imports: [CommonModule, AvatarModule],
|
||||
})
|
||||
class MockDynamicAvatar implements Partial<DynamicAvatarComponent> {
|
||||
class MockDynamicAvatarComponent implements Partial<DynamicAvatarComponent> {
|
||||
protected name$ = combineLatest([
|
||||
this.stateService.accounts$,
|
||||
this.stateService.activeAccount$,
|
||||
@@ -100,9 +100,9 @@ export default {
|
||||
TabsModule,
|
||||
TypographyModule,
|
||||
NavigationModule,
|
||||
MockDynamicAvatar,
|
||||
MockDynamicAvatarComponent,
|
||||
],
|
||||
declarations: [WebHeaderComponent, MockProductSwitcher],
|
||||
declarations: [WebHeaderComponent, MockProductSwitcherComponent],
|
||||
providers: [
|
||||
{ provide: StateService, useClass: MockStateService },
|
||||
{
|
||||
|
||||
@@ -22,6 +22,8 @@ import {
|
||||
selector: "vault-cipher-form-generator",
|
||||
template: "",
|
||||
})
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/PM-28231): Use Component suffix
|
||||
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
||||
class MockCipherFormGenerator {
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||
|
||||
@@ -78,6 +78,8 @@ export interface AddEditCipherDialogCloseResult {
|
||||
],
|
||||
providers: [{ provide: CipherFormGenerationService, useClass: WebCipherFormGenerationService }],
|
||||
})
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/PM-28231): Use Component suffix
|
||||
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
||||
export class AddEditComponentV2 implements OnInit {
|
||||
config: CipherFormConfig;
|
||||
headerText: string;
|
||||
|
||||
Reference in New Issue
Block a user