1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-12 01:48:21 +02:00
The browser extension vault (Chrome, Firefox, Opera, Edge, Safari, & more).
Go to file
Addison Beck 17ae5ee57c
[Account Switching] [Refactor] Implement new account centric services (#1220)
* [chore] updated services.module to use account services

* [refactor] sorted services provided by services.module

* [chore] removed references to deleted jslib services

* [chore] used activeAccount over storageService for account level storage items

* [chore] resolved linter warnings

* Refactor activeAccountService to stateService

* [bug] Remove uneeded calls to state service on logout

This was causing console erros on logout. Clearing of data is handled fully in dedicated services, clearing them in state afterwards is essentially a redundant call.

* [bug] Add back null locked callback to VaultTimeoutService

* Move call to get showUpdateKey

* [bug] Ensure HtmlStorageService does not override StateService options and locations

* [bug] Adjust theme logic to pull from the new storage locations

* [bug] Correct theme not sticking on refresh

* [bug] Add enableFullWidth to the account model

* [bug] fix theme option empty when light is selected

* [bug] init state on application start

* [bug] Reinit state when coming back from a lock

* [style] Fix lint complaints

* [bug] Clean state on logout

* [chore] Resolved merge issues

* [bug] Correct default for enableGravitars

* Bump angular to 12.

* Remove angular.json

* Bump rxjs

* Fix build errors, remove file-loader with asset/resource

* Use contenthash

* Bump jslib

* Bump ngx-toastr

* [chore] resolve issues from merge

* [chore] resolve issues from merge

* [bug] Add missing bracket

* Use newer import syntax

* [bug] Correct service orge

* [style] Fix lint complaints

* [chore] update jslib

* [review] Address code review

* [review] Address code review

* [review] Rename providerService to webProviderService

Co-authored-by: Robyn MacCallum <robyntmaccallum@gmail.com>
Co-authored-by: Hinton <oscar@oscarhinton.com>
2021-12-14 11:10:26 -05:00
.github Bump node to v16 (#1336) 2021-12-13 17:16:57 +01:00
bitwarden_license [Account Switching] [Refactor] Implement new account centric services (#1220) 2021-12-14 11:10:26 -05:00
config Fix name for compatibility with config.js (#1334) 2021-12-10 18:10:20 +10:00
jslib@f90b3456d5 [Account Switching] [Refactor] Implement new account centric services (#1220) 2021-12-14 11:10:26 -05:00
src [Account Switching] [Refactor] Implement new account centric services (#1220) 2021-12-14 11:10:26 -05:00
.dockerignore docker build updates 2018-07-18 15:21:51 -04:00
.editorconfig Add support for Emergency Access (#707) 2020-12-22 10:57:44 -05:00
.gitattributes Added .gitattributes file to files requiring LF endings are properly checked out on Windows. (#279) 2018-10-18 12:15:54 -04:00
.gitignore Set urls from config file (#1151) 2021-08-25 13:15:31 -05:00
.gitmodules
config.js Update local web development instructions (#1208) 2021-10-22 07:50:08 -05:00
CONTRIBUTING.md Docs contrib (#696) 2020-11-10 10:52:09 -05:00
crowdin.yml Hotfix Crowdin push (#1276) 2021-11-04 14:47:39 -07:00
dev-server.shared.pem
Dockerfile docker health check 2019-07-26 11:59:59 -04:00
entrypoint.sh Remove assetlinks (#1165) 2021-08-30 21:40:34 -04:00
LICENSE_BITWARDEN.txt add support for bitwarden license 2021-06-15 10:25:45 -04:00
LICENSE_GPL.txt add support for bitwarden license 2021-06-15 10:25:45 -04:00
LICENSE.txt add support for bitwarden license 2021-06-15 10:25:45 -04:00
package-lock.json Bump node to v16 (#1336) 2021-12-13 17:16:57 +01:00
package.json Bump node to v16 (#1336) 2021-12-13 17:16:57 +01:00
README.md Bump node to v16 (#1336) 2021-12-13 17:16:57 +01:00
SECURITY.md
tsconfig.json Bump angular to v12 (#1325) 2021-12-09 22:12:53 +01:00
tslint.json Remove empty catch blocks, and update tslint rule (#1226) 2021-10-20 18:30:04 +02:00
webpack.config.js Bump angular to v12 (#1325) 2021-12-09 22:12:53 +01:00

The Bitwarden web project is an Angular application that powers the web vault (https://vault.bitwarden.com/).

Github Workflow build on master Crowdin DockerHub gitter chat

Build/Run

Requirements

  • Node.js v16.13.1 or greater
  • NPM v8

Run the app

For local development, run the app with:

npm install
npm run build:oss:watch

You can now access the web vault in your browser at https://localhost:8080.

If you want to point the development web vault to the production APIs, you can run using:

npm install
ENV=cloud npm run build:oss:watch

You can also manually adjusting your API endpoint settings by adding config/local.json overriding any of the following values:

{
    "dev": {
        "proxyApi": "http://your-api-url",
        "proxyIdentity": "http://your-identity-url",
        "proxyEvents": "http://your-events-url",
        "proxyNotifications": "http://your-notifications-url",
        "allowedHosts": ["hostnames-to-allow-in-webpack"],
    },
    "urls": {
      
    }
}

Where the urls object is defined by the Urls type in jslib.

Contribute

Code contributions are welcome! Please commit any pull requests against the master branch. Learn more about how to contribute by reading the CONTRIBUTING.md file.

Security audits and feedback are welcome. Please open an issue or email us privately if the report is sensitive in nature. You can read our security policy in the SECURITY.md file.