1
0
mirror of https://github.com/bitwarden/browser synced 2025-01-02 05:10:27 +01:00
bitwarden-estensione-browser/libs/common/src
Daniel James Smith e9d0f75b8a
[PM-469] [PM-1325] [PS-1165] [PS-1257] Small refactorings/improvements on the desktop app main (#4704)
* Only pass necessary service to power-monitor

PowerMonitorMain only requires the messagingService instead of a full reference to Main

* Remove never changing constructor params

Window.main has a defaultWidth and defaultHeight that never change, so they do not need to get passed in from outside

hideTitleBar is always true, so there is no need to make it a param

* Remove projectName from updater

This is likely another relict from sharing this previously with dircetory-connector and is not needed anymore

* Only pass necessary service to MenuMain

MenuMain only needs service references instead of a full reference to Main

* Refactor biometrics service

Create BiometricsService that takes care of loading the platformspecifc services, hiding the implementation details
Make it clearer which dependencies are needed by a specific biometrics-service (compile-error vs runtime-error)
Add unit tests
Isolate biometrics import/exports with a barrel file

* Fix #3148

recordActivity was only getting called when user-activity in the main window is recognized
When using biometrics to unlock, the Windows Hello/TouchID prompt would be focused and no input would be recognised. LastActive would have an old value and the vault would get locked

* Improve reloading with biometrics

* Mock import of desktop-native

* Add mock for "@bitwarden/desktop-native-linux-x64-musl"

* Revert "Add mock for "@bitwarden/desktop-native-linux-x64-musl""

This reverts commit 69771b94bf.

* mock the exports of desktop-native

* Pass process.platform inot BiometricsService
2023-03-10 21:32:26 +01:00
..
abstractions [AC-1046] activate autofill on page load policy (#4860) 2023-03-10 12:52:43 -05:00
auth Defect/SG-1083 - Fix SSO Form Validation (#4791) 2023-02-17 16:55:57 -05:00
email-forwarders [TDL-192] Rename email forwarders per ADR #12 (#4107) 2022-11-24 14:55:24 +01:00
enums [AC-1046] activate autofill on page load policy (#4860) 2023-03-10 12:52:43 -05:00
factories [SM-288] Rename models to follow naming convention (#3795) 2022-10-14 18:25:50 +02:00
importers Fix subfolders not being created (#4653) 2023-02-17 21:01:21 +01:00
interfaces [EC-272] Web workers using EncryptionService (#3532) 2022-10-28 07:38:54 +10:00
misc [EC-775] [Technical Dependency] Refactor Vault Filters to be routable (#4733) 2023-03-06 08:34:13 +01:00
models [AC-1046] activate autofill on page load policy (#4860) 2023-03-10 12:52:43 -05:00
services [PM-469] [PM-1325] [PS-1165] [PS-1257] Small refactorings/improvements on the desktop app main (#4704) 2023-03-10 21:32:26 +01:00
types Auth/ps 2298 reorg auth (#4564) 2023-02-06 15:53:37 -06:00
vault [EC-475] Auto-save password prompt enhancements (#4808) 2023-03-09 08:12:43 +10:00
globals.d.ts