1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-04 02:33:33 +00:00

Fixes for broken build

This commit is contained in:
Jeffrey Holland
2025-09-09 21:44:11 +02:00
parent 41142b8d57
commit 40ce33d6b7
8 changed files with 34 additions and 48 deletions

View File

@@ -233,8 +233,8 @@ export declare namespace chromium_importer {
login?: Login
failure?: LoginImportFailure
}
export function getInstalledBrowsers(): Promise<Array<string>>
export function getAvailableProfiles(browser: string): Promise<Array<ProfileInfo>>
export function getInstalledBrowsers(): Array<string>
export function getAvailableProfiles(browser: string): Array<ProfileInfo>
export function importLogins(browser: string, profileId: string): Promise<Array<LoginImportResult>>
}
export declare namespace autotype {

View File

@@ -1,7 +0,0 @@
import { svgIcon } from "@bitwarden/components";
export const BitwardenShield = svgIcon`
<svg viewBox="0 0 120 132" xmlns="http://www.w3.org/2000/svg">
<path class="tw-fill-marketing-logo" d="M82.2944 69.1899V37.2898H60V93.9624C63.948 91.869 67.4812 89.5927 70.5998 87.1338C78.3962 81.0196 82.2944 75.0383 82.2944 69.1899ZM91.8491 30.9097V69.1899C91.8491 72.0477 91.2934 74.8805 90.182 77.6883C89.0706 80.4962 87.6938 82.9884 86.0516 85.1649C84.4094 87.3415 82.452 89.4598 80.1794 91.5201C77.9068 93.5803 75.8084 95.2916 73.8842 96.654C71.96 98.0164 69.9528 99.304 67.8627 100.517C65.7726 101.73 64.288 102.552 63.4088 102.984C62.5297 103.416 61.8247 103.748 61.2939 103.981C60.8958 104.18 60.4645 104.28 60 104.28C59.5355 104.28 59.1042 104.18 58.7061 103.981C58.1753 103.748 57.4703 103.416 56.5911 102.984C55.712 102.552 54.2273 101.73 52.1372 100.517C50.0471 99.304 48.04 98.0164 46.1158 96.654C44.1916 95.2916 42.0932 93.5803 39.8206 91.5201C37.548 89.4598 35.5906 87.3415 33.9484 85.1649C32.3062 82.9884 30.9294 80.4962 29.818 77.6883C28.7066 74.8805 28.1509 72.0477 28.1509 69.1899V30.9097C28.1509 30.0458 28.4661 29.2981 29.0964 28.6668C29.7267 28.0354 30.4732 27.7197 31.3358 27.7197H88.6642C89.5268 27.7197 90.2732 28.0354 90.9036 28.6668C91.5339 29.2981 91.8491 30.0458 91.8491 30.9097Z" />
</svg>
`;

View File

@@ -28,7 +28,7 @@
<bit-section class="tw-bg-background-alt tw-p-4 tw-flex tw-flex-col">
<div *ngIf="(ciphers$ | async)?.length === 0; else hasCiphers">
<div class="tw-flex tw-items-center tw-flex-col tw-p-12 tw-gap-4">
<bit-icon [icon]="fido2PasskeyExistsIcon" class="tw-text-main"></bit-icon>
<bit-icon [icon]="Icons.NoResults" class="tw-text-main"></bit-icon>
<div class="tw-flex tw-flex-col tw-gap-2">
{{ "noMatchingLoginsForSite" | i18n }}
</div>

View File

@@ -4,6 +4,7 @@ import { RouterModule, Router } from "@angular/router";
import { combineLatest, map, Observable, switchMap } from "rxjs";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import { BitwardenShield, NoResults } from "@bitwarden/assets/svg";
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
import { DomainSettingsService } from "@bitwarden/common/autofill/services/domain-settings.service";
import { Fido2Utils } from "@bitwarden/common/platform/services/fido2/fido2-utils";
@@ -32,9 +33,6 @@ import {
DesktopFido2UserInterfaceSession,
} from "../../services/desktop-fido2-user-interface.service";
import { BitwardenShield } from "./bitwarden-shield.icon";
import { Fido2PasskeyExistsIcon } from "./fido2-passkey-exists-icon";
@Component({
standalone: true,
imports: [
@@ -56,8 +54,7 @@ import { Fido2PasskeyExistsIcon } from "./fido2-passkey-exists-icon";
export class Fido2CreateComponent implements OnInit, OnDestroy {
session?: DesktopFido2UserInterfaceSession = null;
ciphers$: Observable<CipherView[]>;
readonly Icons = { BitwardenShield };
protected fido2PasskeyExistsIcon = Fido2PasskeyExistsIcon;
readonly Icons = { BitwardenShield, NoResults };
private get DIALOG_MESSAGES() {
return {

View File

@@ -30,7 +30,7 @@
class="tw-flex tw-bg-background-alt tw-flex-col tw-justify-start tw-items-center tw-gap-2 tw-h-full tw-px-5"
>
<div class="tw-flex tw-items-center tw-flex-col tw-p-12 tw-gap-4">
<bit-icon [icon]="fido2PasskeyExistsIcon" class="tw-text-main"></bit-icon>
<bit-icon [icon]="Icons.NoResults" class="tw-text-main"></bit-icon>
<div class="tw-flex tw-flex-col tw-gap-2">
<b>{{ "passkeyAlreadyExists" | i18n }}</b>
{{ "applicationDoesNotSupportDuplicates" | i18n }}

View File

@@ -3,6 +3,7 @@ import { Component, OnInit, OnDestroy } from "@angular/core";
import { RouterModule, Router } from "@angular/router";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import { BitwardenShield, NoResults } from "@bitwarden/assets/svg";
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
import {
BadgeModule,
@@ -22,9 +23,6 @@ import {
DesktopFido2UserInterfaceSession,
} from "../../services/desktop-fido2-user-interface.service";
import { BitwardenShield } from "./bitwarden-shield.icon";
import { Fido2PasskeyExistsIcon } from "./fido2-passkey-exists-icon";
@Component({
standalone: true,
imports: [
@@ -45,8 +43,7 @@ import { Fido2PasskeyExistsIcon } from "./fido2-passkey-exists-icon";
})
export class Fido2ExcludedCiphersComponent implements OnInit, OnDestroy {
session?: DesktopFido2UserInterfaceSession = null;
readonly Icons = { BitwardenShield };
protected fido2PasskeyExistsIcon = Fido2PasskeyExistsIcon;
readonly Icons = { BitwardenShield, NoResults };
constructor(
private readonly desktopSettingsService: DesktopSettingsService,

View File

@@ -1,24 +1,24 @@
import { svgIcon } from "@bitwarden/components";
export const Fido2PasskeyExistsIcon = svgIcon`<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
<style>
.outline { fill: #175DDC; }
.handle { fill: #175DDC; }
@media (prefers-color-scheme: light) {
.outline { fill: #020F66; }
.handle { fill: #020F66; }
}
</style>
<path d="M62 12C63.1046 12 64 12.8954 64 14L64 90C64 91.1046 63.1046 92 62 92L6 92C4.89543 92 4 91.1046 4 90L4 14C4 12.8954 4.89544 12 6 12L62 12Z" fill="#99BAF4"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M62 90L62 14L6 14L6 90L62 90ZM64 14C64 12.8954 63.1046 12 62 12L6 12C4.89544 12 4 12.8954 4 14L4 90C4 91.1046 4.89543 92 6 92L62 92C63.1046 92 64 91.1046 64 90L64 14Z" class="outline"/>
<path d="M72 82L72 6C72 4.89543 71.1046 4 70 4L27.3284 4C26.798 4 26.2939 4.2061 25.9188 4.58117L12.5835 17.9165C12.2085 18.2915 12 18.798 12 19.3284L12 82C12 83.1046 12.8954 84 14 84L70 84C71.1046 84 72 83.1046 72 82Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M70 82L70 6L27.3284 6L14 19.3284L14 82L70 82ZM27.333 5.99538C27.333 5.99538 27.3329 5.9955 27.3327 5.99572L27.333 5.99538ZM72 6L72 82C72 83.1046 71.1046 84 70 84L14 84C12.8954 84 12 83.1046 12 82L12 19.3284C12 18.798 12.2085 18.2915 12.5835 17.9165L25.9188 4.58117C26.2939 4.2061 26.798 4 27.3284 4L70 4C71.1046 4 72 4.89543 72 6Z" class="outline"/>
<path d="M84 48C84 59.0457 75.0457 68 64 68C52.9543 68 44 59.0457 44 48C44 36.9543 52.9543 28 64 28C75.0457 28 84 36.9543 84 48Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M64 66C73.9411 66 82 57.9411 82 48C82 38.0589 73.9411 30 64 30C54.0589 30 46 38.0589 46 48C46 57.9411 54.0589 66 64 66ZM64 68C75.0457 68 84 59.0457 84 48C84 36.9543 75.0457 28 64 28C52.9543 28 44 36.9543 44 48C44 59.0457 52.9543 68 64 68Z" class="outline"/>
<path d="M79 48C79 56.2843 72.2843 63 64 63C55.7157 63 49 56.2843 49 48C49 39.7157 55.7157 33 64 33C72.2843 33 79 39.7157 79 48Z" fill="#99BAF4"/>
<path d="M95.0038 77.087L78.5 61.5L76.5 63.5L92.087 80.0038C92.8607 80.8231 94.1583 80.8417 94.9552 80.0448L95.0448 79.9552C95.8417 79.1583 95.8231 77.8607 95.0038 77.087Z" class="handle"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M28 5C28.5523 5 29 5.44772 29 6V21H14C13.4477 21 13 20.5523 13 20C13 19.4477 13.4477 19 14 19H27V6C27 5.44772 27.4477 5 28 5Z" class="outline"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 28C19.4477 28 19 28.4477 19 29C19 29.5523 19.4477 30 20 30H30C30.5523 30 31 29.5523 31 29C31 28.4477 30.5523 28 30 28H20ZM34 28C33.4477 28 33 28.4477 33 29C33 29.5523 33.4477 30 34 30H44C44.5523 30 45 29.5523 45 29C45 28.4477 44.5523 28 44 28H34ZM50.983 32.8154C50.8964 32.3513 50.4892 32 50 32H40C39.4477 32 39 32.4477 39 33C39 33.5523 39.4477 34 40 34H49.7171C50.1218 33.5873 50.5441 33.192 50.983 32.8154ZM44.0246 49C44.0579 49.676 44.1247 50.3432 44.2235 51H40C39.4477 51 39 50.5523 39 50C39 49.4477 39.4477 49 40 49H44.0246ZM44.2235 45C44.1247 45.6568 44.0579 46.324 44.0246 47L37 47C36.4477 47 36 46.5523 36 46C36 45.4477 36.4477 45 37 45L44.2235 45ZM47.9985 36C47.5192 36.6381 47.0772 37.3059 46.6756 38L38 38C37.4477 38 37 37.5523 37 37C37 36.4477 37.4477 36 38 36L47.9985 36ZM64 28C60.8707 28 57.9093 28.7187 55.2717 30L54 30C53.4477 30 53 29.5523 53 29C53 28.4477 53.4477 28 54 28H64ZM48 28C47.4477 28 47 28.4477 47 29C47 29.5523 47.4477 30 48 30H50C50.5523 30 51 29.5523 51 29C51 28.4477 50.5523 28 50 28H48ZM37 33C37 32.4477 36.5523 32 36 32H34C33.4477 32 33 32.4477 33 33C33 33.5523 33.4477 34 34 34H36C36.5523 34 37 33.5523 37 33ZM34 38C34.5523 38 35 37.5523 35 37C35 36.4477 34.5523 36 34 36H30C29.4477 36 29 36.4477 29 37C29 37.5523 29.4477 38 30 38H34ZM34 46C34 46.5523 33.5523 47 33 47H27C26.4477 47 26 46.5523 26 46C26 45.4477 26.4477 45 27 45H33C33.5523 45 34 45.4477 34 46ZM36 51C36.5523 51 37 50.5523 37 50C37 49.4477 36.5523 49 36 49H20C19.4477 49 19 49.4477 19 50C19 50.5523 19.4477 51 20 51H36ZM31 33C31 32.4477 30.5523 32 30 32L20 32C19.4477 32 19 32.4477 19 33C19 33.5523 19.4477 34 20 34L30 34C30.5523 34 31 33.5523 31 33ZM26 38C26.5523 38 27 37.5523 27 37C27 36.4477 26.5523 36 26 36H20C19.4477 36 19 36.4477 19 37C19 37.5523 19.4477 38 20 38H26ZM24 46C24 46.5523 23.5523 47 23 47H20C19.4477 47 19 46.5523 19 46C19 45.4477 19.4477 45 20 45H23C23.5523 45 24 45.4477 24 46Z" fill="#FFBF00"/>
</svg>
`;
// import { svgIcon } from "@bitwarden/components";
//
// export const Fido2PasskeyExistsIcon = svgIcon`<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
// <style>
// .outline { fill: #175DDC; }
// .handle { fill: #175DDC; }
//
// @media (prefers-color-scheme: light) {
// .outline { fill: #020F66; }
// .handle { fill: #020F66; }
// }
// </style>
// <path d="M62 12C63.1046 12 64 12.8954 64 14L64 90C64 91.1046 63.1046 92 62 92L6 92C4.89543 92 4 91.1046 4 90L4 14C4 12.8954 4.89544 12 6 12L62 12Z" fill="#99BAF4"/>
// <path fill-rule="evenodd" clip-rule="evenodd" d="M62 90L62 14L6 14L6 90L62 90ZM64 14C64 12.8954 63.1046 12 62 12L6 12C4.89544 12 4 12.8954 4 14L4 90C4 91.1046 4.89543 92 6 92L62 92C63.1046 92 64 91.1046 64 90L64 14Z" class="outline"/>
// <path d="M72 82L72 6C72 4.89543 71.1046 4 70 4L27.3284 4C26.798 4 26.2939 4.2061 25.9188 4.58117L12.5835 17.9165C12.2085 18.2915 12 18.798 12 19.3284L12 82C12 83.1046 12.8954 84 14 84L70 84C71.1046 84 72 83.1046 72 82Z" fill="white"/>
// <path fill-rule="evenodd" clip-rule="evenodd" d="M70 82L70 6L27.3284 6L14 19.3284L14 82L70 82ZM27.333 5.99538C27.333 5.99538 27.3329 5.9955 27.3327 5.99572L27.333 5.99538ZM72 6L72 82C72 83.1046 71.1046 84 70 84L14 84C12.8954 84 12 83.1046 12 82L12 19.3284C12 18.798 12.2085 18.2915 12.5835 17.9165L25.9188 4.58117C26.2939 4.2061 26.798 4 27.3284 4L70 4C71.1046 4 72 4.89543 72 6Z" class="outline"/>
// <path d="M84 48C84 59.0457 75.0457 68 64 68C52.9543 68 44 59.0457 44 48C44 36.9543 52.9543 28 64 28C75.0457 28 84 36.9543 84 48Z" fill="white"/>
// <path fill-rule="evenodd" clip-rule="evenodd" d="M64 66C73.9411 66 82 57.9411 82 48C82 38.0589 73.9411 30 64 30C54.0589 30 46 38.0589 46 48C46 57.9411 54.0589 66 64 66ZM64 68C75.0457 68 84 59.0457 84 48C84 36.9543 75.0457 28 64 28C52.9543 28 44 36.9543 44 48C44 59.0457 52.9543 68 64 68Z" class="outline"/>
// <path d="M79 48C79 56.2843 72.2843 63 64 63C55.7157 63 49 56.2843 49 48C49 39.7157 55.7157 33 64 33C72.2843 33 79 39.7157 79 48Z" fill="#99BAF4"/>
// <path d="M95.0038 77.087L78.5 61.5L76.5 63.5L92.087 80.0038C92.8607 80.8231 94.1583 80.8417 94.9552 80.0448L95.0448 79.9552C95.8417 79.1583 95.8231 77.8607 95.0038 77.087Z" class="handle"/>
// <path fill-rule="evenodd" clip-rule="evenodd" d="M28 5C28.5523 5 29 5.44772 29 6V21H14C13.4477 21 13 20.5523 13 20C13 19.4477 13.4477 19 14 19H27V6C27 5.44772 27.4477 5 28 5Z" class="outline"/>
// <path fill-rule="evenodd" clip-rule="evenodd" d="M20 28C19.4477 28 19 28.4477 19 29C19 29.5523 19.4477 30 20 30H30C30.5523 30 31 29.5523 31 29C31 28.4477 30.5523 28 30 28H20ZM34 28C33.4477 28 33 28.4477 33 29C33 29.5523 33.4477 30 34 30H44C44.5523 30 45 29.5523 45 29C45 28.4477 44.5523 28 44 28H34ZM50.983 32.8154C50.8964 32.3513 50.4892 32 50 32H40C39.4477 32 39 32.4477 39 33C39 33.5523 39.4477 34 40 34H49.7171C50.1218 33.5873 50.5441 33.192 50.983 32.8154ZM44.0246 49C44.0579 49.676 44.1247 50.3432 44.2235 51H40C39.4477 51 39 50.5523 39 50C39 49.4477 39.4477 49 40 49H44.0246ZM44.2235 45C44.1247 45.6568 44.0579 46.324 44.0246 47L37 47C36.4477 47 36 46.5523 36 46C36 45.4477 36.4477 45 37 45L44.2235 45ZM47.9985 36C47.5192 36.6381 47.0772 37.3059 46.6756 38L38 38C37.4477 38 37 37.5523 37 37C37 36.4477 37.4477 36 38 36L47.9985 36ZM64 28C60.8707 28 57.9093 28.7187 55.2717 30L54 30C53.4477 30 53 29.5523 53 29C53 28.4477 53.4477 28 54 28H64ZM48 28C47.4477 28 47 28.4477 47 29C47 29.5523 47.4477 30 48 30H50C50.5523 30 51 29.5523 51 29C51 28.4477 50.5523 28 50 28H48ZM37 33C37 32.4477 36.5523 32 36 32H34C33.4477 32 33 32.4477 33 33C33 33.5523 33.4477 34 34 34H36C36.5523 34 37 33.5523 37 33ZM34 38C34.5523 38 35 37.5523 35 37C35 36.4477 34.5523 36 34 36H30C29.4477 36 29 36.4477 29 37C29 37.5523 29.4477 38 30 38H34ZM34 46C34 46.5523 33.5523 47 33 47H27C26.4477 47 26 46.5523 26 46C26 45.4477 26.4477 45 27 45H33C33.5523 45 34 45.4477 34 46ZM36 51C36.5523 51 37 50.5523 37 50C37 49.4477 36.5523 49 36 49H20C19.4477 49 19 49.4477 19 50C19 50.5523 19.4477 51 20 51H36ZM31 33C31 32.4477 30.5523 32 30 32L20 32C19.4477 32 19 32.4477 19 33C19 33.5523 19.4477 34 20 34L30 34C30.5523 34 31 33.5523 31 33ZM26 38C26.5523 38 27 37.5523 27 37C27 36.4477 26.5523 36 26 36H20C19.4477 36 19 36.4477 19 37C19 37.5523 19.4477 38 20 38H26ZM24 46C24 46.5523 23.5523 47 23 47H20C19.4477 47 19 46.5523 19 46C19 45.4477 19.4477 45 20 45H23C23.5523 45 24 45.4477 24 46Z" fill="#FFBF00"/>
// </svg>
// `;

View File

@@ -13,6 +13,7 @@ import {
} from "rxjs";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import { BitwardenShield } from "@bitwarden/assets/svg";
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
@@ -38,8 +39,6 @@ import {
DesktopFido2UserInterfaceSession,
} from "../../services/desktop-fido2-user-interface.service";
import { BitwardenShield } from "./bitwarden-shield.icon";
@Component({
standalone: true,
imports: [
@@ -138,7 +137,7 @@ export class Fido2VaultComponent implements OnInit, OnDestroy {
// If specific IDs provided, filter by them
if (cipherIds?.length > 0) {
return activeCiphers.filter((cipher) => cipherIds.includes(cipher.id));
return activeCiphers.filter((cipher) => cipherIds.includes(cipher.id as string));
}
return activeCiphers;