Commit Graph

78 Commits

Author SHA1 Message Date
Oscar Hinton d1c46e6bdc
Update electron to 11.1.1 (#247) 2021-01-26 22:49:47 +01:00
Chad Scharf 12321e53b9
fix lint error, missing semicolon; (#236) 2020-12-21 14:24:04 -05:00
Oscar Hinton 1742228715
Make fingerprint optional for browser integration (#234)
* Make fingerprint optional for browser integration

* Force focus on biometrics

* Add dependency
2020-12-21 13:26:16 -05:00
Matt Gibson acdbc22953
Force update of tray menu if on linux (#233) 2020-12-18 09:20:59 -06:00
Sorin Davidoi 58f5369adc
feat(platform-utils): Get and react to changes to the system theme (#161)
These changes will allow the WebExtension (and later the desktop application) to respect the system theme.

I've added the Electron implementation until I realized that the required API [has been implemented but not released yet](https://www.electronjs.org/docs/api/native-theme/history). Let me know if you I should remove the code.

Part of https://github.com/bitwarden/browser/issues/1256.

https://www.electronjs.org/docs/api/native-theme

Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
2020-12-15 17:22:24 -05:00
Oscar Hinton d7b5f0a26b
Avoid destroying the tray icon in linux (#227) 2020-12-15 15:26:51 -05:00
Matt Gibson 2c414ce27a
Use log service for console messages (#221)
* Use logService for console messages

* Implement a base ConsoleLog service

Use this class as a default for other services that would like to output
to console. This service is overriden in CLI and Desktop to use CLI's
consoleLogService and electronLogService, respectively.

* Use browser-process-hrtime for timing

* test LogService implementations

* Ignore default import of hrtime

* Clean up imports. Require ConsoleLog injection

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-11 10:44:57 -06:00
Oscar Hinton 63fe38b3f4
Fix dock icon not working when minimized to menu bar, fix window listeners not working after closing the main window (#223) 2020-12-11 09:46:20 -05:00
Matt Gibson 2b8c2c2b3e
Revert "Use logService for console messages (#214)" (#219)
This reverts commit 0fed528b6f.
2020-12-04 13:58:32 -06:00
Matt Gibson 0fed528b6f
Use logService for console messages (#214)
* Use logService for console messages

* linter autofixes

* Use full import path

* Implement a base ConsoleLog service

Use this class as a default for other services that would like to output
to console. This service is overriden in CLI and Desktop to use CLI's
consoleLogService and electronLogService, respectively.

* linter fixes

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-04 12:38:26 -06:00
Oscar Hinton c9df039fa9
Desktop fit & finish (#212)
* Add context menu on right click to mac

* Add hide dock setting

* Change "hide dock" to "always show dock"

* Add support on mac for minimize to menu bar on close, minimize or start

* Add "openAtLogin" to ElectronConstants

* Add "restoreFromTray" to TrayMainService
2020-12-04 12:21:34 -05:00
Oscar Hinton 9e4d000b4d
Browser <-> desktop communication (#185)
* Add electron constant for browser integration

* Add constant for browser biometrics. Ensure biometry is locked on lock.

* Avoid saving keys outside desktop

* Fix eslint warning

* Add supportsSecureStorage helper to platformUtils to improve readability
2020-11-18 16:10:57 -05:00
Chad Scharf 9aa3cbf73d
Turned off background throttling for browserWindow (#196) 2020-11-04 12:21:29 -05:00
Chad Scharf 27bcbf4b41
Conditional load of biometrics API on Win10+ (#169)
* Conditional load of biometrics API on Win10+

* consolidate if block

* Return -1 instead of null
2020-09-17 15:36:11 -04:00
Chad Scharf 7c0c06705e
added try-catch around ext module calls (#143) 2020-08-06 12:27:49 -04:00
Kyle Spearrin 1513b25a35
callbacks for argv from window main (#141) 2020-08-05 10:53:26 -04:00
Chad Scharf 8d01ec7e42 removed temporary test code 2020-07-31 19:59:31 -04:00
Chad Scharf c05dbe9743 remove trailing whitespace 2020-07-31 19:54:38 -04:00
Chad Scharf b2fbc475c7 try catch nodeRT module via require 2020-07-31 19:42:13 -04:00
Oscar Hinton c62f5287cd
Desktop biometrics support (#119)
* Initial work on windows hello support

* Switch to use windows.security.credentials.ui UserConsentVerifier

* Fix linting warnings

* Remove unessesary supportsBiometric from lock screen

* Rename biometric.main to windows.biometric.main. Add abstraction for biometric.

* Add support for dynamic biometric text.

* Add untested darwin implementation

* Rename fingerprintUnlock to biometric

* Add new functions to cliPlatformUtils.service.ts.

* Hide login if biometric is not supported

* Export default for biometric.*.main.ts

* Remove @nodert-win10-rs4/windows.security.credentials

* Add build requirements to readme

* Auto prompt biometric when starting the application.

* Ensure we support biometric before trying to auto prompt.

* Fix review comments and linting errors
2020-07-23 13:32:20 -04:00
Elias Papavasileiou 2de8c5ed16
Add minimizeOnCopyToClipboardKey constant (#74)
* Add minimizeOnCopyToClipboardKey constant

* Move minimizeOnCopyToClipboardKey constant to electronConstants.ts

* Add minimizeIfNeeded method to view component

* Revert "Add minimizeIfNeeded method to view component"

This reverts commit 7a5f2a3aa3d418ead5c03ce4c3f0ba00ffd34bb2.

* Make storageService protected in window.main

* Revert "Make storageService protected in window.main"

This reverts commit 0431565c6596f7e4cb8c20b84fcbb56ce5772565.
2020-04-14 16:11:00 -04:00
Kyle Spearrin 36241e9eac bump user agent version for desktop 2020-03-10 15:00:29 -04:00
Kyle Spearrin e1d42f95d9 updates to support electron 6 2020-01-27 09:46:42 -05:00
Kyle Spearrin 77282e7b0f update user agent 2019-12-13 22:48:18 -05:00
Kyle Spearrin 6b82cd0380 workaround for process.windowsStore bug 2019-09-20 23:58:24 -04:00
Kyle Spearrin ae37c2198b isViewOpen returns promise 2019-08-20 13:47:15 -04:00
Kyle Spearrin 393f6c9c20 set 100ms timeout on removing tray to fix crash 2019-08-05 08:37:20 -04:00
Kyle Spearrin e89f295e1d upgrade to electron 5 2019-07-24 14:32:16 -04:00
Kyle Spearrin 6789b8c8a2 also show window if not visible 2019-07-09 08:53:38 -04:00
Tobirexy a631bd990a fixes App freezing when NOT opening from tray (#46) 2019-07-09 08:30:26 -04:00
Kyle Spearrin 740c01c33c anonymize user agent from desktop app 2019-06-19 16:43:08 -04:00
Kyle Spearrin 3d93696fb5 formatting 2019-06-03 08:33:37 -04:00
Tobirexy 697e7ef632 add window option: always on top of other windows (#41)
* add window option: always on Top

* updated import path

* changes requested
2019-06-03 08:29:29 -04:00
Kyle Spearrin 38fc0432c3 dont call clearclipboard in a loop 2019-05-30 09:37:02 -04:00
Kyle Spearrin f76702bb44 optimize if blocks 2019-05-15 22:47:58 -04:00
Michael Honan 1bcd430884 MacOS: Closing with red button won't open window again through tray icon (#40)
* Fixed issue on MacOS where closing BW via the red button then reopening using tray icon wouldn't work

* Added MacOS only condition to the window recreation of the toggleWindow method. Made createWindow public in WindowMain.
2019-05-15 22:44:25 -04:00
Kyle Spearrin 37d9afc58b hideTitleBar param 2019-04-13 21:37:35 -04:00
Antoni Sobkowicz 42771c1a2d prettier ui on macOS (titleBarStyle set to hiddenInset). Requires changes from desktop part of bitwarden client. (#37) 2019-04-13 20:11:32 -04:00
Kyle Spearrin 49e06e77c4 electron storage implementation 2019-03-11 22:36:29 -04:00
Kyle Spearrin b9267c521d copied value to clipboard message 2019-02-27 11:26:35 -05:00
Kyle Spearrin 68f7557e44 implement readFromClipboard for electron utils 2019-02-26 22:40:53 -05:00
Kyle Spearrin 04e6fac5e4 start to tray updates 2019-02-02 12:26:46 -05:00
h44z 9795f02b74 Allow app to start minimized (as tray icon) (#22) 2019-02-02 12:13:30 -05:00
Kyle Spearrin 58ed2ed0a2 update electron 2018-12-26 14:55:21 -05:00
Kyle Spearrin 1da72b9a97 adjustments to close to tray changes 2018-12-03 16:06:28 -05:00
h44z d5308a3bf5 Close to tray (#21)
* Close to Tray implemented

* Enable Tray Icon on Linux

* Remove unnecessary function

* Revert 26a3a98e384cc62a94f2b213af3a6543874b3d95
2018-12-03 15:55:43 -05:00
Kyle Spearrin 6920cf77b9 show project name in update alert titles 2018-11-27 08:31:08 -05:00
Kyle Spearrin ad97afc590 move getDomain to jslib Utils 2018-10-13 22:21:54 -04:00
Kyle Spearrin 6b3dc2344f move toast and event track to messaging for electron 2018-10-03 09:41:41 -04:00
Kyle Spearrin 7ae640e5f8 implement eventTrack for electron 2018-10-03 00:09:07 -04:00