1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-09-26 03:43:03 +02:00
Commit Graph

91 Commits

Author SHA1 Message Date
Thomas Rittson
659c9ea78d
Update i18n string and id for tray menu Lock item (#1334) 2022-02-14 08:40:06 -05:00
Addison Beck
2b22a39d45
[chore] Update jslib (#1277)
* [chore] Update jslib

* [bug] Correct value for system theme dropdown key

* [chore] Update jslib
2022-01-31 18:00:37 -05:00
Addison Beck
b796fe094f
[Bug] [Account Switching] Improve State Management Performance (#1237)
* [dep] Implement new StateService factory parameter from jslib

* [bug] Ensure setLastActive uses the correct userId

Sometimes, because of how often it fires, setLastActive can cause accounts to override each other. To make sure the correct userId is always used we now subscribe to activeUser in the appComponent and pass that value into any setLastActive calls.

* [bug] Show loader when logging out

When logging out of a large vault the application can appear to hang. This commit turns on the app component loader while logout is doing work.

* [bug] Stop tracking activity without an active user

* [style] Ran prettier

* [chore] Update jslib
2022-01-19 11:00:28 -05:00
Oscar Hinton
521feae535
Apply Prettier (#1202) 2021-12-20 15:47:17 +01:00
Addison Beck
0b306ca1a7
[Account Switching] [Feature] Add the ability to maintain state for up to 5 accounts at once (#1079)
* [refactor] Remove references to deprecated services

* [feature] Implement account switching

* [bug] Fix state handling for authentication dependent system menu items

* [bug] Enable the account switcher to fucntion properly when switching to a locked accounts

* [feature] Enable locking any account from the menu

* [bug] Ensure the avatar instance used in the account switcher updates on account change

* [style] Fix lint complaints

* [bug] Ensure the logout command callback can handle any user in state

* [style] Fix lint complaints

* rollup

* [style] Fix lint complaints

* [bug] Don't clean up state until everything else is done on logout

* [bug] Navigate to vault on a succesful account switch

* [bug] Init the state service on start

* [feature] Limit account switching to 5 account maximum

* [bug] Resolve app lock state with 5 logged out accounts

* [chore] Update account refrences to match recent jslib restructuring

* [bug] Add missing awaits

* [bug] Update app menu on logout

* [bug] Hide the switcher if there are no authed accounts

* [bug] Move authenticationStatus display information out of jslib

* [bug] Remove unused active style from scss

* [refactor] Rewrite the menu bar

* [style] Fix lint complaints

* [bug] Clean state of loggout out user after redirect

* [bug] Redirect on logout if not explicity provided a userId that isn't active

* [bug] Relocated several settings items to persistant storage

* [bug] Correct account switcher styles on all themes

* [chore] Include state migration service in services

* [bug] Swap to next account on logout

* [bug] Correct DI service

* [bug] fix loginGuard deps in services.module

* [chore] update jslib

* [bug] Remove badly merged scss

* [chore] update jslib

* [review] Code review cleanup

* [review] Code review cleanup

Co-authored-by: Hinton <oscar@oscarhinton.com>
2021-12-15 17:32:00 -05:00
Oscar Hinton
b70d2fb3c3
Fix development build not working with bitwarden:// protocol (#1165) 2021-12-07 21:04:52 +01:00
Oscar Hinton
6f69486c36
Remove empty catch blocks and remove allow-empty-catch tslint rule (#1117) 2021-10-21 11:10:36 +02:00
Kyle Spearrin
9201730fe1 remove old code from #351 2021-07-12 10:11:43 -04:00
Matt Gibson
05e9419d65 Request biometrically secured stored key 2021-06-09 16:55:50 -04:00
Oscar Hinton
296340a5be
Add jslib as a "real" dependency (#941)
* Add jslib as a "real" dependency

* Move more packages to jslib

* Remove some unesessary dev dependencies.

* Add back missing preinstall

* Revert jslib bump

* Fix jslib containing wrong types/node.

* Bump jslib

* Remove unessesary alias

* Remove dummy module
2021-06-07 19:26:36 +02:00
Oscar Hinton
b5492e9546
Simplify logic for resolving path to exe for native messaging (#814) 2021-03-25 23:11:31 +01:00
Matt Gibson
e76e56d824 Match linter rules 2021-02-03 12:21:22 -06:00
Hinton
2c93385fce Fix electron error on native messaging 2020-12-29 20:53:29 +01:00
Hinton
535ca260d6 Support forcefocus for biometrics 2020-12-21 11:31:33 +01:00
Hinton
d86225d551 Fix tray window listeners not working after closing the window 2020-12-11 12:57:32 +01:00
Hinton
03a52d4d63 Fix not working on windows 2020-11-25 11:25:28 +01:00
Hinton
d94f441422 Hide dock icon, handle errors occurring on mac 2020-11-25 10:52:01 +01:00
Hinton
efb7cc98ae *Wip* Run proxy app through electron 2020-11-23 18:37:04 +01:00
Hinton
04c8b119e3 Merge branch 'master' of https://github.com/bitwarden/desktop into feature/browser-communication
# Conflicts:
#	src/locales/en/messages.json
2020-11-13 15:34:57 +01:00
Chad Scharf
c001a00f82 Hide hidden fields on hide/minimize 2020-11-04 12:09:21 -05:00
Chad Scharf
5ff545e541 Undo broadcast service refs (not needed) 2020-11-02 17:08:39 -05:00
Chad Scharf
d8d1ee3022 Handle main window hide 2020-10-29 16:35:09 -04:00
Hinton
51b749b1dc Split native messaging into renderer and background service. Encrypt messages and verify timestamp 2020-10-12 21:18:28 +02:00
Hinton
c80b538674 Wire up desktop -> browser communication. Add initial biometry support for browser integration 2020-10-11 20:41:10 +02:00
Hinton
45302e5bd5 Add settings toggle to enable/disable browser integration 2020-10-07 18:25:18 +02:00
Hinton
cb9c0b318e Add untested support for linux and macos 2020-10-05 20:28:00 +02:00
Hinton
830c4a45ee Replace cosole logs with logService 2020-10-05 20:05:48 +02:00
Hinton
24ef7e1ef6 Generate app manifests and add install scripts for windows 2020-10-05 19:48:51 +02:00
Hinton
f09a788103 Initial PoC for browser <-> desktop communication 2020-10-05 15:27:52 +02:00
Kyle Spearrin
0ba2589461
merge sso feature branch (#523)
* Update jslib (101c568 -> 14b01f2) (#506)

* Update jslib (14b01f2 -> 1513b25) (#510)

* [jslib] Update (1513b25 -> 7c3a9d6) (#516)

* update jslib (1513b25 -> 7c3a9d6)

* Updated call to constructor super

* [SSO] Added SSO flows & functionality (#513)

* update jslib

* bump version

* Added sso button (wip)

* Added sso & change password // Added modules/routes // Added strings for localization

* Added password strength comp // reverted login route

* Updated sso component to send client id // added routing for sso // added crypto function to services module provider list

* Added deep linking

* First round of UI updates // Added sso browser launching // Added missing strings

* Updated UI and added missing strings

* Removed extra change password style

* Let constructor for WindowMain handle default width/height

* Prepared for jslib update

* Update jslib (1513b25 -> 7c3a9d6)

* Update login super

* Added params for launchSsoBrowser function

* Update jslib (7c3a9d6 -> 4203937)

* Added missing strings, removed unnecessary class param

* Upgrade TypeScript (#517)

* Updated password score // Update styles

* Removed password-strength component files

* Cleaned up module class // Fixed UL/LI formatting issues

* Use exisiting loading string // removed new string

* Update jslib (4203937 -> 9957125)

* Updated class to perform new submit actions

* Upgrade Angular (#520)

* di resolution for CryptoFunctionServiceAbstraction

* Update jslib (9957125 -> 5d874d0) (#521)

* Updated change password flow to match web

* Updated callout style

Co-authored-by: Kyle Spearrin <kyle.spearrin@gmail.com>
Co-authored-by: Oscar Hinton <hinton.oscar@gmail.com>

Co-authored-by: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com>
Co-authored-by: Oscar Hinton <hinton.oscar@gmail.com>
2020-08-21 09:50:36 -04:00
Oscar Hinton
26b023a3cb
Biometric support (#470)
* Initial work on windows hello support

* Hide login button if not enabled

* Add windows.security.credentials.ui dependency to desktop as well.

* Only enable biometric on windows.

* Add support for dynamic biometric text.

* Add untested darwin implementation

* Ensure we support biometric before showing login with windows hello / touchid.

* Ensure compatability with latest jslib

* Only require module on use.

* Add windows.security.credentials.ui to src/package.json.

* Update requirements

* Update consent messages for biometrics
2020-07-23 13:32:36 -04:00
Kyle Spearrin
848dff7863
tweaks to minimize on copy feature (#432) 2020-04-14 16:52:03 -04:00
Vincent Salucci
c1113852a4
[Auto-Logout] Implement Vault Timeout Options (#424)
* Update jslib (31a2574 -> 28e3fff)

* Initial commit of vault timeout implentation

Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
2020-04-01 10:18:36 -05:00
Kyle Spearrin
0b05a8f44e disable all global shortcuts 2020-03-12 09:50:19 -04:00
Kyle Spearrin
e8c03e30ba temp: remove global shortcut to focusSearch
resolves #402
2020-03-11 09:56:51 -04:00
Marcelo Dominguez
f7bfe40b71 Add two globalShortcuts (#351)
Cmd+Shift+L -> Search Vault
Cmd+Shift+G -> Password Generator
2019-12-16 08:59:19 -05:00
Kyle Spearrin
5f4a5faf3c hideTitleBar true 2019-04-13 21:37:42 -04:00
Kyle Spearrin
8b68fa4ea0 init power monitor at end 2019-03-11 23:18:04 -04:00
Kyle Spearrin
aa971026ec remove lowdb with electron-store 2019-03-11 22:37:13 -04:00
Kyle Spearrin
65845cd909 start to tray updates 2019-02-02 12:27:06 -05:00
h44z
a380188120 Allow app to start minimized (as tray icon) (#169)
* Allow app to start minimized (as tray icon)

* Rever german locale
2019-02-02 12:16:32 -05:00
Kyle Spearrin
d494006aff pass project name to updater 2018-11-27 08:32:04 -05:00
Kyle Spearrin
eb15764395 replace electron store with lowdb 2018-05-31 09:08:09 -04:00
Kyle Spearrin
786549c2c2 move tray to jslib 2018-05-08 12:05:05 -04:00
Kyle Spearrin
9d969929de more tray icon options 2018-05-05 00:29:02 -04:00
Kyle Spearrin
18feb238a7 move updater to jslib 2018-05-04 14:16:28 -04:00
Kyle Spearrin
db0986e95f some fixes for tray icon 2018-05-04 13:16:12 -04:00
tstumm
0f2d1e73b4 Tray icon (#84)
* Implemented configurable tray icon

* Fixed calls to callAnalytics using wrong indicators
2018-05-04 12:45:42 -04:00
Kyle Spearrin
0c0b551f1c move storage defaults out to app 2018-04-26 16:17:14 -04:00
Kyle Spearrin
1f706802f6 main messaging service to jslib 2018-04-26 15:44:07 -04:00