Commit Graph

49 Commits

Author SHA1 Message Date
Oscar Hinton c27f421d56
Add eslint (#2405) 2022-02-24 18:14:04 +01:00
Daniel James Smith bd770c90ed
[Account Switching] Base changes for account switching (#2250)
* Pull in jslib

* Create new state models

* Create browser specific stateService

* Remove registration deprecated services, register stateService

* Replace usage of deprecated services (user, constants)

* Add missing properties to BrowserGroupingsComponentState

* Remove StorageService from initFactory

* Clear the correct state

* Add null check when restoring send-grouping state

* add remember email

* Initialize stateservice in services.module

* Fix 'lock now' not working

* Comment to remove setting defaults on install

* Pull jslib

* Remove setting defaults on install

* Bump jslib

* Pass the current userId to services when logging out

* Bump jslib

* Override vaultTimeout default on account addition

* Pull latest jslib

* Retrieve vaultTimeout from stateService

* Record activity per Account

* Add userId to logout and add fallback if not present

* Register AccountFactory

* Pass userId in messages

* Base changes for account switching di fixes (#2280)

* [bug] Null checks on Account init

* [bug] Use same stateService instance for all operations

We override the stateService in browser, but currently don't pull the background service into popup and allow jslib to create its own instance of the base StateService for jslib services.
This causes a split in in memory state between the three isntances that results in many errors, namely locking not working.

* [chore] Update jslib

* Pull in jslib

* Pull in jslib

* Pull in latest jslib to multiple stateservice inits

* Check vault states before executing processReload

* Adjust iterator

* Update native messaging to include the userId (#2290)

* Re-Add UserVerificationService

* Fix email not being remembered by base component

* Improve readability of reloadProcess

* Removed unneeded null check

* Fix constructor dependency (stateService)

* Added missing await

* Simplify dependency registration

* Fixed typos

* Reverted back to simple loop

* Use vaultTimeoutService to retrieve Timeout

Co-authored-by: Addison Beck <abeck@bitwarden.com>
Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
2022-01-27 22:22:51 +01:00
Oscar Hinton 8fe821b9a3
Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
Oscar Hinton e4aaf81816
Replace toaster library (#2210) 2021-12-07 20:42:18 +01:00
Oscar Hinton 3eb860f464
BEEEP: Refactor services DI (#2201) 2021-12-06 12:21:07 +01:00
Thomas Rittson 2449534e9e
Fix totp copy not working in Chrome (#2067)
* Fix totp copy not working in Chrome

* Only use fix for Chromium-based browsers
2021-09-22 07:36:28 +10:00
Oscar Hinton 4e1958f417
Add jslib as a "real" dependency (#1876)
* Support split jslib

* Fix tests

* Bump jslib
2021-06-07 19:25:37 +02:00
Oscar Hinton cdc71dd661
Password reprompt (#1784)
* Add support for password reprompt

* Rename passwordPrompt to reprompt.

* Move showPasswordDialog to paltformutils

* Fix swal2 validation error styling

* Group imports

* Update src/_locales/en/messages.json

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2021-05-03 20:56:38 +02:00
Oscar Hinton d252fd1740
Bump dependencies (#1792)
* Bump dependencies
2021-04-23 10:45:20 +02:00
Oscar Hinton 44463e7bc0
Remove dead code (#1787)
* Remove dead analytics code
2021-04-14 23:43:09 +02:00
Chad Scharf ed2837e826
Merge pull request #1617 from lionel-rowe/close-popup-on-esc
Close browser popup on Escape key press
2021-03-22 11:02:25 -04:00
lionel-rowe aee1968436 Close browser popup on Escape key press 2021-03-21 23:02:39 +00:00
Vincent Salucci 61d7fcfc85
Fixed lint warnings (#1655) 2021-03-02 12:31:52 -06:00
Oscar Hinton 3e79dd245b
Safari Web Extension Port from App Extension (#1531) 2021-02-03 20:36:05 +01:00
Chad Scharf 336f8f3117
Revert "Safari Web Extension Port from App Extension" 2021-01-13 17:08:33 -05:00
Hinton 0f2c4b4a59 Remove more old safari app extension logic 2020-12-09 18:23:44 +01:00
Chad Scharf 7f1cc0199b Ensure auto auto-fill ignores new-password 2020-09-21 15:41:06 -04:00
Kyle Spearrin efbed1a9a3 remove safari copy totp clipboard hack 2019-08-19 12:05:13 -04:00
Kyle Spearrin e6d6275daa async fillCipher 2019-08-19 09:38:59 -04:00
Kyle Spearrin 4d261964e5 keep using on init 2019-08-19 09:31:08 -04:00
Kyle Spearrin 05684b3b03 allow reloading of current tab 2019-08-19 09:17:40 -04:00
Kyle Spearrin aa0bfd3b45 no async on params sub 2019-08-16 21:04:03 -04:00
Kyle Spearrin 3719095b18 async fixes 2019-08-16 21:01:08 -04:00
Kyle Spearrin a3f76cfd3a reload when on same page too 2019-08-16 20:59:54 -04:00
Kyle Spearrin 10bb317a67 search input type variable 2019-03-13 22:54:18 -04:00
Kyle Spearrin c903ad7e66 load even if sync didnt complete successfully 2018-11-27 09:28:36 -05:00
Kyle Spearrin f043010067 option to not show cards/identities on current tab list 2018-11-21 14:31:34 -05:00
Kyle Spearrin 1873df7f20 clear page details on load 2018-09-27 10:52:01 -04:00
Kyle Spearrin 4ab36bc8ee implement search service 2018-08-13 11:53:16 -04:00
Kyle Spearrin ada83aae8f use `navigator.clipboard` to copy text if available 2018-08-13 09:44:59 -04:00
Kyle Spearrin c67b63a452 refactor utils service to utils 2018-04-23 13:04:11 -04:00
Kyle Spearrin 97835f7627 detect chages on promise catch 2018-04-23 11:50:14 -04:00
Kyle Spearrin 613dfaafd0 from async for safari bug 2018-04-23 11:40:23 -04:00
Kyle Spearrin b40e51a7d1 safari totp copy workaround 2018-04-23 11:30:12 -04:00
Kyle Spearrin 06e56f0b57 copy totp from each implementation of autofill 2018-04-23 10:02:30 -04:00
Kyle Spearrin 0ddc4c2d41 remove whitespace 2018-04-18 16:38:01 -04:00
Kyle Spearrin 45ffa8fc1e condition show folders and collections 2018-04-18 16:28:25 -04:00
Kyle Spearrin 81200f3ecb only delay 100ms to focus search box 2018-04-18 15:50:26 -04:00
Kyle Spearrin 152fc981a1 manually focus search. only search on 2 characters 2018-04-18 15:49:17 -04:00
Kyle Spearrin e24e992e49 hostname as new login name, remove i18n string 2018-04-14 21:12:04 -04:00
Kyle Spearrin cfcb8653f7 edge browser adjustments 2018-04-14 14:56:30 -04:00
Kyle Spearrin 5958fa1fc4 only wait 5 seconds to load vault 2018-04-14 13:40:25 -04:00
Kyle Spearrin e871d4749b safari fixes 2018-04-14 12:52:46 -04:00
Kyle Spearrin 4a028376e4 init this.loginCiphers 2018-04-14 00:02:55 -04:00
Kyle Spearrin 31ddb97530 sort current tab logins by last used 2018-04-13 21:23:11 -04:00
Kyle Spearrin 1e3a82586a show popout conditionals 2018-04-11 10:48:48 -04:00
Kyle Spearrin 78058c3591 lint fixes 2018-04-10 23:49:46 -04:00
Kyle Spearrin e31d8dd702 load on sync 2018-04-10 22:49:19 -04:00
Kyle Spearrin 67ab9b1d3e move new app into popup folder 2018-04-10 21:54:20 -04:00