mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +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:
@@ -7,7 +7,10 @@ import { ColorPasswordPipe } from "./color-password.pipe";
|
||||
/*
|
||||
An updated pipe that extends ColourPasswordPipe to include a character count
|
||||
*/
|
||||
@Pipe({ name: "colorPasswordCount" })
|
||||
@Pipe({
|
||||
name: "colorPasswordCount",
|
||||
standalone: false,
|
||||
})
|
||||
export class ColorPasswordCountPipe extends ColorPasswordPipe {
|
||||
transform(password: string) {
|
||||
const template = (character: string, type: string, index: number) =>
|
||||
|
||||
@@ -6,7 +6,10 @@ import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||
An updated pipe that sanitizes HTML, highlights numbers and special characters (in different colors each)
|
||||
and handles Unicode / Emoji characters correctly.
|
||||
*/
|
||||
@Pipe({ name: "colorPassword" })
|
||||
@Pipe({
|
||||
name: "colorPassword",
|
||||
standalone: false,
|
||||
})
|
||||
export class ColorPasswordPipe implements PipeTransform {
|
||||
transform(password: string) {
|
||||
const template = (character: string, type: string) =>
|
||||
|
||||
@@ -28,7 +28,10 @@ const numberFormats: Record<string, CardRuleEntry[]> = {
|
||||
Other: [{ cardLength: 16, blocks: [4, 4, 4, 4] }],
|
||||
};
|
||||
|
||||
@Pipe({ name: "creditCardNumber" })
|
||||
@Pipe({
|
||||
name: "creditCardNumber",
|
||||
standalone: false,
|
||||
})
|
||||
export class CreditCardNumberPipe implements PipeTransform {
|
||||
transform(creditCardNumber: string, brand: string): string {
|
||||
let rules = numberFormats[brand];
|
||||
|
||||
@@ -4,6 +4,7 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||
|
||||
@Pipe({
|
||||
name: "searchCiphers",
|
||||
standalone: false,
|
||||
})
|
||||
export class SearchCiphersPipe implements PipeTransform {
|
||||
transform(ciphers: CipherView[], searchText: string, deleted = false): CipherView[] {
|
||||
|
||||
@@ -6,6 +6,7 @@ type PropertyValueFunction<T> = (item: T) => { toString: () => string };
|
||||
|
||||
@Pipe({
|
||||
name: "search",
|
||||
standalone: false,
|
||||
})
|
||||
export class SearchPipe implements PipeTransform {
|
||||
transform<T>(
|
||||
|
||||
@@ -9,6 +9,7 @@ export interface User {
|
||||
|
||||
@Pipe({
|
||||
name: "userName",
|
||||
standalone: false,
|
||||
})
|
||||
export class UserNamePipe implements PipeTransform {
|
||||
transform(user?: User): string {
|
||||
|
||||
@@ -5,6 +5,7 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic
|
||||
|
||||
@Pipe({
|
||||
name: "userType",
|
||||
standalone: false,
|
||||
})
|
||||
export class UserTypePipe implements PipeTransform {
|
||||
constructor(private i18nService: I18nService) {}
|
||||
|
||||
Reference in New Issue
Block a user