1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-06 23:51:28 +01:00
Commit Graph

6312 Commits

Author SHA1 Message Date
Daniel James Smith
abede3e5af
Fix logging out of all accounts instead of one (#1231)
When logOut is triggered and the userId is not provided. Retrieve currentUserId
2022-01-13 15:43:00 +01:00
Daniel James Smith
7818ffc2fb
[Account Switching] Fix menus (#1232)
* Fix enabled/disabling menu items with locked state

* Fix the empty about menu (title)

Moved the items to the help menu
2022-01-13 14:29:49 +01:00
Oscar Hinton
b6117d6801
Re-add native dependencies to src/package.json (#1233) 2022-01-13 10:46:33 +01:00
Addison Beck
653ff8f45f
[Bug] VaultTimeout incorrectly defaults to "Never" (#1230)
* [Bug] VaultTimeout incorrectly defaults to "Never"

The default desktop vault timeout value is "On Restart", but there is no default set for this in the state service and account model.
This commit extends the StateService and Account model to consider the special vault timeout default requirements needed for desktop.

* [style] Lint fixes

* [chore] Update jslib
2022-01-12 11:37:23 -05:00
Daniel James Smith
71c2fee574
Close opened AccountSwitcher dropdown (#1228)
When a user clicks outside of an opened account switching dropdown, it should close automatically when clicking outside of the dropdown.
2022-01-12 17:20:19 +01:00
Daniel James Smith
d885e3296b
Do not switch accounts if it is already the active account (#1229) 2022-01-12 17:20:07 +01:00
Addison Beck
f32b917a9f
[Account Switching] Misc Bug Fixes and Refactors (#1223)
* [bug] Pull serverUrl directly from stateService for the account switcher

Create a small extended Account model for handling the switchers server url, and pull environment urls from disk where they actually live

* [refactor] Add a message handler for switching accounts

* This allows for logic reuse between manually switching accounts and automatically switching accounts on login
* This commit also adds a loading spinner to app root while syncing after a switch

* [bug] Remove vertical scrollbar

* An old styling fix to add extra height and padding seems to be now creating an unecassary scroll bar. It is likely that since making more use of flexbox for our containers that this issue has been resolved without the manually added extra hight & padding

* [refactor] Turn down activity monitoring

Saving last activity is a disk call, and we currently do this a lot more than is necassary. For example:
* We track mousedown & click, which is redundant
* We track every mouse movement regardless of if an action is taken. This seems inappropriate for use in locking behavior.

* [bug] Address potential race condition when locking

Sometimes when swapping between an unlocked account and a locked account a race condition occurs that swaps the user but doesn't redirect to the lock screen
This commit just adds some awaits and restructures lock order of operations to be more in line with other message handlers

* [refactor] Change click event to mousedown event for the account switcher

This is simply a little snappier, and ensures we stay ahead of change detection and don't get stuck not properly interpreting the action

* [chore] Update jslib

* [chore] Linter fixes

* [chore] Linter fixes

* [chore] Update jslib

* [chore] Update jslib
2022-01-12 09:23:00 -05:00
Daniel James Smith
2b64ec5375
Fix null ref when building/updating the MenuBar (#1227) 2022-01-12 15:19:18 +01:00
Danielle Flinn
42d8f99249
aligned dark theme variables to the new WV dark theme (#2241)
* aligned dark theme variables to the new WV dark theme

* Update plugins.scss

updated toast close button color

* Run prettier on plugins.scss

Co-authored-by: Daniel James Smith <djsmith@web.de>
2022-01-12 13:12:30 +01:00
Oscar Hinton
f6f0bd2bfb
Remove webpack-node-externals and use asarUnpack (#1221) 2022-01-12 11:32:02 +01:00
Oscar Hinton
23a7072341
Disable spellchecker (#1225) 2022-01-10 18:27:14 +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
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
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
Daniel James Smith
8ffe2c2dca
Add --ignore-unknown to prettier (#2259) 2022-01-06 21:07:09 +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
Oscar Hinton
27b1ee2ab3
Whitelist rxjs in nodeExternals (#1218) 2022-01-04 20:51:21 +01: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
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
Daniel James Smith
d25d532184
Move email fieldnames to Identity constants 2022-01-02 14:41:50 +01:00
Daniel James Smith
c45d1f8f7e
Move title fieldnames to Identity constants 2022-01-02 14:40:10 +01:00
Daniel James Smith
729150d404
Move middle name fieldnames to Identity constants 2022-01-02 14:37:57 +01:00
Daniel James Smith
5c66dade4a
Move card brand fieldnames to CC constants 2022-01-02 14:18:17 +01:00
Daniel James Smith
7e5b50a6cb
Move CVV fieldnames to CC constants 2022-01-02 14:16:27 +01:00