Commit Graph

113 Commits

Author SHA1 Message Date
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
Kyle Spearrin 812741219d
Ability to auto-fill span elements (#2095)
* ability to autofill span elements

* add modification comments
2021-09-30 16:02:13 -04:00
Kyle Spearrin 5d8f43ab9a check maxLength 2019-01-14 22:45:12 -05:00
Kyle Spearrin b72105b9e0 detect fields from label-aria 2018-11-24 22:54:30 -05:00
Kyle Spearrin f0189b4f71 move autofill models 2018-01-11 15:59:07 -05:00
Kyle Spearrin e68f7a1141 convert domain models to jslib 2018-01-08 15:23:36 -05:00
Kyle Spearrin 5d39030e05 convert data models to jslib 2018-01-08 15:12:09 -05:00
Kyle Spearrin a78b8ec79c convert request/response models to jslib 2018-01-08 14:45:34 -05:00
Kyle Spearrin fd931c23d1 attach/read container service to window 2018-01-07 00:15:12 -05:00
Kyle Spearrin 03258e50f7 Refactor for barrels. Utils service to jslib 2018-01-06 22:13:48 -05:00
Kyle Spearrin c018f096b4 moved service abstractions to jslib 2018-01-06 15:47:46 -05:00
Kyle Spearrin dc15edcd4d moved all enums to jslib 2018-01-06 14:22:55 -05:00
Kyle Spearrin fcdf473af1 update jslib version 2018-01-06 11:48:26 -05:00
Kyle Spearrin 274c770308 reference jslib module 2018-01-06 09:07:33 -05:00
Kyle Spearrin cbf8b00b33 rename to browser platform utils 2018-01-05 16:38:50 -05:00
Kyle Spearrin 4a08bf6b71 rename browser utils to platform utils 2018-01-05 16:30:15 -05:00
Kyle Spearrin 01cf48bbed rename browserType to deviceType 2018-01-05 11:13:24 -05:00
Kyle Spearrin 0fbbc4a0b9 static ContainerService for edge case dependencies 2018-01-04 14:16:40 -05:00
Kyle Spearrin 0dd711471b separated BrowserUtils from generic Utils 2018-01-04 12:32:10 -05:00
Kyle Spearrin 985c02c5e1 rename bg variables 2017-12-06 20:19:06 -05:00
Oscar Hinton 81fcfb4f6f [TypeScript] Convert background entry script to TypeScript (#419)
* Convert background entry file to typescript. Remove global forge & tldjs variables.

* Minor cleanup.
2017-12-06 13:51:49 -05:00
Kyle Spearrin 97b509e1f6 support fuzzy fill other labels. `hasValue` helper 2017-12-06 11:11:52 -05:00
Kyle Spearrin e90476af2b convert background to main.background.ts 2017-12-05 23:28:31 -05:00
Kyle Spearrin 2b042da237 additional logic for cc month filling 2017-11-24 15:49:13 -05:00
Kyle Spearrin b3d34e86fd preserve collection ids on save 2017-11-23 22:33:08 -05:00
Kyle Spearrin 2d81466d25 add support for syncing collections 2017-11-22 13:17:59 -05:00
Kyle Spearrin a0b9ba4898 map localdata in ctor of cipher 2017-11-21 14:02:02 -05:00
Kyle Spearrin cf9947e47b attachments length check 2017-11-20 11:28:06 -05:00
Kyle Spearrin f9b00c6871 edge hates `for of` loops :( 2017-11-16 12:49:23 -05:00
Kyle Spearrin a166dc65b1 handle server errors for attachment save 2017-11-15 22:36:20 -05:00
Kyle Spearrin 5fa5fbc496 edge hates `for of` loops 2017-11-15 16:07:38 -05:00
Kyle Spearrin f084da6202 no devicePushToken for browser 2017-11-14 09:48:21 -05:00
Kyle Spearrin 4664c783f2 add missing types to models 2017-11-13 16:21:45 -05:00
Kyle Spearrin bed28aebaa interface cryptoservice 2017-11-13 16:12:23 -05:00
Kyle Spearrin 11f392b036 interfaced utilsservice for popup and dependencies 2017-11-13 15:37:38 -05:00
Kyle Spearrin 530ed94d3c autofill service to ts 2017-11-06 14:16:06 -05:00
Kyle Spearrin b05426f953 convert cipher service to ts 2017-11-06 10:58:32 -05:00
Kyle Spearrin bd109f4ed9 fixes and cleanup 2017-11-04 23:18:38 -04:00
Kyle Spearrin bdd40d8755 move domain models to ts 2017-11-04 22:43:07 -04:00
Kyle Spearrin 8e998ff179 lint fixes 2017-11-04 21:37:35 -04:00
Kyle Spearrin 11edb0261b folder service to ts 2017-11-04 21:09:26 -04:00
Kyle Spearrin 6ae7b2e035 convert api service to ts with fetch 2017-11-03 11:59:45 -04:00
Kyle Spearrin 8eeb5821f0 password generation service to ts 2017-11-02 12:33:43 -04:00
Kyle Spearrin 54a909ab24 tslint fixes 2017-11-02 08:45:31 -04:00
Kyle Spearrin e415a659ad migrate crypto service to ts 2017-11-01 23:40:39 -04:00
Kyle Spearrin 53824a02a2 crypto key 2017-11-01 23:39:42 -04:00
Kyle Spearrin 34ae8adf4d promise resolve shorthand 2017-11-01 14:20:18 -04:00
Kyle Spearrin 3f354336ef import models individually 2017-11-01 14:15:48 -04:00
Kyle Spearrin 9ffbd0bb69 lint fixes 2017-11-01 13:40:38 -04:00