1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00
Commit Graph

11617 Commits

Author SHA1 Message Date
Daniel James Smith
14b8903d9a Fix items not opening when they had a password reprompt set (#1381) 2022-01-10 14:12:35 +01:00
Simon Legner
45284eefb3 Compress images u2fkey/yubikey using avif/webp (#1232)
Co-authored-by: Hinton <oscar@oscarhinton.com>
2022-01-10 12:37:21 +01:00
Daniel James Smith
f26bfb5859 Add ts files to prettier (#433)
* Add ts files to prettier

* Add all filestypes to prettier and ignore via .prettierignore

* Add --ignore-unknown to prettier
2022-01-07 19:14:02 +01:00
Daniel James Smith
d64b00977c Fix menu separators (#1220)
* Fix separators appearing when they shouldn't

* Use const instead of let
2022-01-07 15:54:35 +01:00
Addison Beck
57d60bdfa6 Misc Account Switching Fixes & Refactors (#600)
* [refactor] Restructure EnvironmentUrls in state

* Patch up (add missing fields) and more extensivly use the EnvironmentUrls class instead of passing around an any
* Add environmentUrls to the AccountSettings model in addition to GlobalState for use in both scopes
* Move EnvironmentUrls initialization to the model level and out of StateSerice
* Adjust the StateMigrationService to account for these changes

* [refactor] Improve order of operations for LockGuardService

We currently jump through a bunch of hoops to verify users can access the Lock page, like checking authentication first.
If a user is not authenticated, they are not locked, so we can improve performance for the happy path of this serivice by checking isLocked first and using isAuthenticated to deviate from the normal flow if needed.

* [bug] Subscribe to State.accounts in EnvironmentService and set urls accordingly

The EnvironmentService has no context for account changes currently and does not update actively used urls based on active account.
This commit addresses this issue by subscribing to State.accounts and resetting the service's urls on account change.

* [bug] Clear AccessToken from State on clean

In order for logout flows to function as expected we need to deauthenticate users when cleaning up state before checking for the next active user
Otherwise the service will continue to think the user being logged out is active

* [refactor] Stop pushing accounts when modifying disk state

There is no reason to push new accounts to subscribers when updating disk state.
Subscribers recieve a copy of in memory state, so changes to disk will not be refelected and have to be fetched seperatly from the service.
Pushing when saving disk state is just creating an unecassary performance burden.

* [refactor] Default to in memory active user if availible, even when accessing disk state

Sometimes we need to pull activeUserId from storage to access a bit of data, like on initial boot, but most of the time this isn't necassary.
Since we pull this userId a lot, checking disk each time is a performance burden. Defaulting to the in memory user ID if avaible helps alleviate this.

* [style] Ran prettier

* [style] Change a let to a const
2022-01-07 09:30:54 -05:00
Daniel James Smith
49f6cfab7f Fixed linting issues (ran prettier) (#1379) 2022-01-07 14:28:25 +01:00
Daniel James Smith
c6f20f8142 Fix prettier (#598)
* Add .github/workflows to .prettierignore

* Add all filestypes to prettier and ignore via .prettierignore

* Add --ignore-unknown to prettier for lint-staged
2022-01-07 14:23:42 +01:00
github-actions[bot]
2d271460e3 Autosync the updated translations (#1378)
Co-authored-by: github-actions <>
2022-01-07 13:51:08 +01:00
github-actions[bot]
209eb3e3e2 Autosync the updated translations (#2261)
Co-authored-by: github-actions <>
2022-01-07 13:50:50 +01:00
github-actions[bot]
695e8389d8 Autosync the updated translations (#1222)
Co-authored-by: github-actions <>
2022-01-07 13:50:31 +01:00
github-actions[bot]
241004f13b Bumped version to 2.25.1 (#1376)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-01-06 14:15:35 -08:00
Daniel James Smith
dd73a45f64 Add ts files to prettier (#1219)
* Add ts files to prettier

* Add scss to prettier

* Add all filetypes to prettier and ignore via .prettierignore

* Add --ignore-unknown to prettier
2022-01-06 23:06:58 +01:00
Oscar Hinton
2f5d0201fe [BEEEP] Add script for optimizing images (#1374) 2022-01-06 21:20:35 +01:00
Daniel James Smith
8ffe2c2dca Add --ignore-unknown to prettier (#2259) 2022-01-06 21:07:09 +01:00
Robyn MacCallum
c874d0d1a7 update jslib (#434) 2022-01-06 13:41:18 -05:00
Robyn MacCallum
c27fc39411 Use correct api Keys (#599) 2022-01-06 11:03:44 -05:00
Daniel James Smith
7ffb5db310 Add --ignore-unknown to prettier on lint-staged (#1375) 2022-01-06 16:47:55 +01:00
Daniel James Smith
6603521d88 Add all filetypes to prettier and ignore via .prettierignore (#1373) 2022-01-06 15:13:29 +01:00
Daniel James Smith
ca887c2291 Run prettier on *.ts files (#2257)
* Run prettier on *.ts files

* Add scss to prettier

Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>

* Add all filetypes to prettier and ignore via .prettierignore

Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
2022-01-06 14:57:04 +01:00
Daniel James Smith
a1bbbcf4bf Update year in copyright (#1216) 2022-01-05 19:44:08 +01:00
Daniel James Smith
59ff1a829e Update year in copyright (#432) 2022-01-05 19:44:04 +01:00
Oscar Hinton
27b1ee2ab3 Whitelist rxjs in nodeExternals (#1218) 2022-01-04 20:51:21 +01:00
Addison Beck
d066e0586a [bug] Add defaults for vault timeout (#1365)
* [bug] Add state defaults for vault timeout

* [chore] Update jslib
2022-01-04 11:15:58 -05:00
Daniel James Smith
756464c1e2 Merge pull request #2256 from bitwarden/apply-prettier-on-previously-ignored-files
Apply prettier for previously ignored file
2022-01-04 16:58:45 +01:00
Daniel James Smith
4b2266a7ce Add newline before export class 2022-01-04 16:48:57 +01:00
Daniel James Smith
a3fd33c5ae Apply prettier for previously ignored file 2022-01-04 16:41:07 +01:00
Daniel James Smith
ccd96d5d36 Merge pull request #2255 from bitwarden/Refactor-Autofill-service
Tech-Debt: Refactor autofill service
2022-01-04 15:21:47 +01:00
Daniel James Smith
d0e661b84b Update year in copyright (#1370) 2022-01-03 17:14:50 +01:00
Daniel James Smith
bacbc71dad Merge pull request #2254 from bitwarden/update-copyright
Update year in copyright
2022-01-03 12:00:11 +01:00
Daniel James Smith
bc3de6e115 Move address containsOptions to Identity constants 2022-01-02 16:16:10 +01:00
Daniel James Smith
30f7e29773 Move fullname containsOptions to Identity constants 2022-01-02 16:15:52 +01:00
Daniel James Smith
306b7e38c3 Move cardExpiry containsOptions to CC constants 2022-01-02 16:13:32 +01:00
Daniel James Smith
c0134e2776 Move cardnumber containsOptions to CC constants 2022-01-02 16:13:04 +01:00
Daniel James Smith
3bfddd0043 Move cardholder containsOptions to CC constants 2022-01-02 16:09:28 +01:00
Daniel James Smith
643fc17151 Move pasword field ignore list to AutoFillConstants 2022-01-02 15:49:37 +01:00
Daniel James Smith
4e274c2f44 Move card expiry fieldnames to CC constants 2022-01-02 15:44:57 +01:00
Daniel James Smith
ec60979ee2 Move cardNumber fieldnames to CC constants 2022-01-02 15:44:19 +01:00
Daniel James Smith
37948db899 Move cardholder fieldnames to CC constants 2022-01-02 15:43:29 +01:00
Daniel James Smith
ff6e63a335 Move address fieldnames to Identity constants 2022-01-02 15:42:39 +01:00
Daniel James Smith
9e350e25ce Move fullname fieldnames to Identity constants 2022-01-02 15:41:52 +01:00
Daniel James Smith
8f889310c2 Move company fieldnames to Identity constants 2022-01-02 14:57:12 +01:00
Daniel James Smith
0a1b0f5eb9 Move username fieldnames to Identity constants 2022-01-02 14:56:01 +01:00
Daniel James Smith
aeeb44e8c9 Move phone fieldnames to Identity constants 2022-01-02 14:54:31 +01:00
Daniel James Smith
423ef40aa1 Move country fieldnames to Identity constants 2022-01-02 14:52:52 +01:00
Daniel James Smith
4390989a88 Move state fieldnames to Identity constants 2022-01-02 14:51:34 +01:00
Daniel James Smith
61dbe5421f Move city fieldnames to Identity constants 2022-01-02 14:50:26 +01:00
Daniel James Smith
6304964ad4 Move postalCode fieldnames to Identity constants 2022-01-02 14:49:10 +01:00
Daniel James Smith
a880cf32e6 Move address3 fieldnames to Identity constants 2022-01-02 14:47:12 +01:00
Daniel James Smith
e12b9ffa67 Move address2 fieldnames to Identity constants 2022-01-02 14:46:54 +01:00
Daniel James Smith
b2a3cd7feb Move address1 fieldnames to Identity constants 2022-01-02 14:43:46 +01:00