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
Addison Beck
92a65b7b36 [bug] Allow for GlobalState to be extended and modified in clients (#646)
Some clients have unique global setting defaults (and unique global settings)
For example: the web vault defaults to light theme, but most clients with theme support default to system theme.

The current way we handle GlobalState is buried in jslib and not easily extendible in clients.

To fix this, we need to treat GlobalState as a generic in the StateService and StateMigration service and allow for its extension in those methods and anywhere GlobalState is inited.
2022-01-31 14:33:31 -05:00
Oscar Hinton
e3b962a779 Apply prettier on help pr (#1423) 2022-01-31 20:31:50 +01:00
addison
f6e274a9a0 [chore] Update jslib 2022-01-31 14:21:06 -05:00
DanHillesheim
cc657eb853 Update help site URLs (#1409) 2022-01-31 20:11:27 +01:00
DanHillesheim
e14a266ee0 Registration page updates (#1390)
Co-authored-by: Hinton <oscar@oscarhinton.com>
2022-01-31 20:10:35 +01:00
Matt Gibson
68548d8db9 Add bot to enforce hold PRs aren't merged (#456)
* Add bot to enforce hold PRs aren't merged

* Use commit hash rather than tag
2022-01-31 12:44:29 -06:00
Micaiah Martin
4118b12cab Merge pull request #2299 from bitwarden/BEEEP-reorg-linting
Reorganizes linting in our CI.
2022-01-31 08:44:14 -07:00
Thomas Rittson
e1732cfa10 Fix various bugs in Options page (#1418)
* Remove duplicate message in toast

* Set starting variables properly
2022-01-31 09:11:25 -05:00
Micaiah Martin
1d2b7c0b42 \n strikes again. 2022-01-28 14:40:51 -07:00
Micaiah Martin
a2c80bf0f9 Moved to ubuntu from windows 2022-01-28 14:29:11 -07:00
Micaiah Martin
f2f6113197 Formatting 2022-01-28 12:11:39 -07:00
Micaiah Martin
236064fbe1 Update actions and set slack job to check for lint errors 2022-01-28 11:48:09 -07:00
Micaiah Martin
99617cf709 added dependancies 2022-01-28 11:29:49 -07:00
Micaiah Martin
4072a8f5d8 moved linting to the front of CI 2022-01-28 11:23:34 -07:00
Addison Beck
ce1ae208d1 [bug] Update theme.js to refelect new storage structure (#1416)
* [bug] Update theme.js to refelect new storage structure

* [bug] Remove unecassary defaults
2022-01-28 11:30:45 -05:00
Addison Beck
c1ba54f646 [bug] Patch the windows menu bar regressions (#1273)
* [bug] Patch the windows menu bar regressions

* [chore] Update jslib
2022-01-28 11:27:30 -05:00
Addison Beck
5731e1e316 [chore] Update jslib (#457) 2022-01-28 10:09:24 -05:00
Addison Beck
32e54eec7f Merge pull request #2298 from bitwarden/Chore/UpdateJslib
[chore] Update jslib
2022-01-28 09:32:48 -05:00
Matt Gibson
210e0502ca Feature/put serve behind feature flag (#455)
* Add build-time feature flag capabilities

* Toggle `bw serve` command with `serve` flag

* Run linter and prettier
2022-01-28 08:29:04 -06:00
addison
5962abb382 [chore] Update jslib 2022-01-28 09:24:04 -05:00
Addison Beck
6996b06fa2 [chore] Update jslib (#1415) 2022-01-28 09:07:33 -05:00
Daniel James Smith
bb597e96a7 Use ThemeType instead of string (#1275) 2022-01-28 14:46:07 +01:00
Addison Beck
e372bf242b [cleanup] Adjust type to match abstraction (#643) 2022-01-28 08:18:39 -05:00
Addison Beck
6c61f53d8b [bug] Always save environmentUrls passed to setUrls (#641)
* [bug] Always save environmentUrls passed to setUrls

* [bug] Remove parameter from abstraction as well

* [bug] Correct type in abstraction
2022-01-28 08:15:02 -05:00
Vincent Salucci
33314869f0 [Icons] Update Font Sheet (#2272)
* [Icons] Update Font Sheet

* Prettier updates

* Updated refresh -> generate

* Updated closed folder icon

* Reverted to using a base class

* Update jslib

* Removed unused import

* Updated eye/eye-slash icon references

* Update jslib

* Updating fallback image for cipher icon

* Update jslib

* Removed duplicate icon base class

* Update jslib

* Prettier

Co-authored-by: Hinton <oscar@oscarhinton.com>
2022-01-28 04:53:06 -06:00
Addison Beck
ca5b057b43 [refactor] Use ThemeType enum instead of string (#642) 2022-01-28 11:28:36 +01:00
github-actions[bot]
1b5f4c99b8 Autosync the updated translations (#2295)
Co-authored-by: github-actions <>
2022-01-28 11:08:11 +01:00
github-actions[bot]
dc503d3461 Autosync the updated translations (#1414)
Co-authored-by: github-actions <>
2022-01-28 11:06:25 +01:00
github-actions[bot]
6aa9e7611a Autosync the updated translations (#1274)
Co-authored-by: github-actions <>
2022-01-28 11:05:05 +01:00
Thomas Rittson
4ca282f701 Run Prettier on #2163 (#2296) 2022-01-28 11:00:48 +01:00
Thomas Rittson
805d387469 Move keyConnectorService call to syncService (#2279) 2022-01-28 07:49:23 +10:00
Linus Aarnio
55e6de691d Add credit card logos to allow displaying icons based on brand (#2163)
* Add credit card logos to allow displaying icons based on brand

* Add light and dark card icons and select based on theme

* Change usage of icon scss to the one in jslib

* Fix typos in scss import code
2022-01-27 22:42:32 +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
Daniel James Smith
d95db8fb74 BEEEP: Add importer for Keeper in json format (#1392)
* Updated instructions to export a csv file from Keeper

* Add instructions to export a json file from Keeper

* Bump jslib to include Keeper json importer

* Revert change to README.md

* Pull in jslib
2022-01-27 21:51:56 +01:00
Justin Baur
1a219daa12 Remove F4E vault card (#1413)
* Remove F4E card from vault page

* Remove unneeded property
2022-01-27 15:47:56 -05:00
Oscar Hinton
3c99920435 Add support for handling multiple accounts with native messaging (#1266) 2022-01-27 20:52:06 +01:00
Oscar Hinton
a7c5f1ad45 Fix webpack using double dots (#1272) 2022-01-27 19:36:50 +01:00
Oscar Hinton
ade2a96239 Fix webpack using double dots (#2293) 2022-01-27 19:18:57 +01:00
Vincent Salucci
2ae98887b7 [Icons] Update Font Sheet (#1343)
* [Icons] Update to new font sheet

* Rebased - updated all icon remaining icon references

* Temporarily Updating gitmodules branch

* Fixed class reference

* Revert temporary gitmodule branch

* Icon updates/changes

* Pull jslib m-icon-updates latest

* Prettier

* Update jslib to master

* Reset jslib to master

* Removed obsolete variable reference, replaced bolt references

* Removed all instances of base class - maps create automatically

* Updated toast icon references

* Imported styles to reference variable/map

* Reverted to using base class

* Update jslib

* Rename eye-2 to eye and eye-slash-2 to eye-slash

* Bump jslib

* Remove duplicate scss

* Remove old fa

* Update fallback image

* Bump jslib

* Rename eye-2 to eye, and eye-slash-2 to eye-slash

* Fix 404

* Fix integrity of bootstrap.min.css

* Fix callout missing bwi

* Add bwi to change-kdf

* Remove bwi from callout again

* Bump jslib

Co-authored-by: Hinton <oscar@oscarhinton.com>
2022-01-27 11:25:58 -06:00
Vincent Salucci
ec3c95d736 [Icons] Update Font Sheet (#1245)
* [Icons] Update Font Sheet

* Added import statement for styles

* updated to clone icon

* Changed save to save changes icon

* Revert to using base bwi class

* Updated import order for bwi icon styles

* Converted new account switcher ui updates

* Bump jslib

* Fix occurances where bwi-eye-slash was used instead of btw-eye-slash-2

* Move settings cog to the left side

* Updated eye/eye-slash icon references

* Update jslib

* Update jslib

* Update fallback image for cipher icon

* Update jslib

Co-authored-by: Hinton <oscar@oscarhinton.com>
2022-01-27 11:21:53 -06:00
Oscar Hinton
6b4ed5fcce Icon fixes for callouts and verify mp (#640) 2022-01-27 17:40:58 +01:00
Oscar Hinton
5249e55522 Update the fallback icon name (#639) 2022-01-27 16:48:50 +01:00
Addison Beck
83305313f9 [bug] Properly define stored window state (#638) 2022-01-27 10:44:09 -05:00
Joseph Flinn
f0c47252e4 Updating the base Docker image for testing purposes (#1411) 2022-01-27 07:25:13 -08:00
Oscar Hinton
0186610ca4 Change the icon baseline to 14% (#637) 2022-01-27 15:31:13 +01:00
Vincent Salucci
0a2ebf6e50 [Icons] Fix source paths (#636)
Co-authored-by: Hinton <oscar@oscarhinton.com>
2022-01-27 11:21:32 +01:00
Daniel James Smith
5353cf03b5 BEEEP: Add importer for Keeper in json format (#608)
* Add testdata, create types for keeperjson import

* Create keeperjson importer and tests

* Register, Create instance of keeperjson importer

* Move keeperCsvImporter to keeperImporters folder

* Fixed import of BaseImporter

* Removed unnecessary check for key

* Move instantiation of importer into beforeEach

* Fixed the second import with a wrong path

* Adjust types based on new test export

* Add test case for empty notes and custom fields

* Implement logic for failed test case

* Removed test expectation
2022-01-26 23:04:55 +01:00
Addison Beck
058be7e895 [bug] Disable the preferences screen if there is no active unlocked vault (#1270) 2022-01-26 12:32:00 -05:00
Matt Gibson
1b409653a2 Fix/bitwarden serve (#454)
* Handle null passedOptions

* Require authentication to use `bs serve`
2022-01-26 10:28:56 -06:00
Addison Beck
ff7dd4ad8f [bug] Don't monitor vault timeout action valueChanges until after init (#1271) 2022-01-26 09:33:37 -05:00