1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PS-1363] Tech debt and small refactorings (#3377)

* Remove cast to any as Utils.gobal got typed with #3131

* BitwardenFileUploadService: Remove unneeded dependency

* Remove allowSoftLock from vaultTimeoutService

* ImportService: Remove dependency on PlatformUtilsSvc
This commit is contained in:
Daniel James Smith
2022-08-25 19:09:27 +02:00
committed by GitHub
parent e0ae1bb738
commit 4c5a46ce13
14 changed files with 9 additions and 23 deletions

View File

@@ -60,7 +60,7 @@ export default class CommandsBackground {
await this.openPopup();
break;
case "lock_vault":
await this.vaultTimeoutService.lock(true);
await this.vaultTimeoutService.lock();
break;
default:
break;

View File

@@ -48,7 +48,7 @@ export default class IdleBackground {
if (action === "logOut") {
await this.vaultTimeoutService.logOut();
} else {
await this.vaultTimeoutService.lock(true);
await this.vaultTimeoutService.lock();
}
}
}

View File

@@ -302,7 +302,7 @@ export class SettingsComponent implements OnInit {
}
async lock() {
await this.vaultTimeoutService.lock(true);
await this.vaultTimeoutService.lock();
}
async logOut() {

View File

@@ -323,7 +323,6 @@ export class Main {
this.apiService,
this.i18nService,
this.collectionService,
this.platformUtilsService,
this.cryptoService
);
this.exportService = new ExportService(

View File

@@ -7,7 +7,6 @@ import { CryptoService } from "@bitwarden/common/abstractions/crypto.service";
import { FolderService } from "@bitwarden/common/abstractions/folder/folder.service.abstraction";
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
import { ImportService as ImportServiceAbstraction } from "@bitwarden/common/abstractions/import.service";
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
import { ImportService } from "@bitwarden/common/services/import.service";
import { LooseComponentsModule, SharedModule } from "../../../shared";
@@ -29,7 +28,6 @@ import { OrganizationImportComponent } from "./org-import.component";
ApiService,
I18nService,
CollectionService,
PlatformUtilsService,
CryptoService,
],
},

View File

@@ -7,7 +7,6 @@ import { CryptoService } from "@bitwarden/common/abstractions/crypto.service";
import { FolderService } from "@bitwarden/common/abstractions/folder/folder.service.abstraction";
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
import { ImportService as ImportServiceAbstraction } from "@bitwarden/common/abstractions/import.service";
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
import { ImportService } from "@bitwarden/common/services/import.service";
import { LooseComponentsModule, SharedModule } from "../../shared";
@@ -29,7 +28,6 @@ import { ImportComponent } from "./import.component";
ApiService,
I18nService,
CollectionService,
PlatformUtilsService,
CryptoService,
],
},