Commit Graph

1600 Commits

Author SHA1 Message Date
Jake Fink ee3c3294f3
Add loading spinner icon to emergency access view (#1235)
* add loading spinner icon to emergency access view

* remove extra space

* Revert changes to package-lock.json
2021-10-14 19:40:35 -04:00
Thomas Rittson 98bd41d4b1
[Refactor] Use rxjs first instead of unsubscribe from queryParams (#1229)
* Use rxjs first instead of unsubscribe

* Use rxjs first instead of unsubscribe

* Update jslib

* Update jslib

* Downgrade jslib to before breaking changes
2021-10-15 08:59:43 +10:00
Oscar Hinton db9ab9f51e
Remove max from minutes in vault timeout input (#1239) 2021-10-14 15:54:50 +02:00
Oscar Hinton 1b8f316066
Move avatar component to jslib (#1233) 2021-10-14 09:11:20 +02:00
Oscar Hinton c3a910e785
Prevent disabling single org when max vault timeout policy is enabled (#1230) 2021-10-14 09:01:23 +02:00
Thomas Rittson c682f460b2
Enforce password reprompt from reports pages (#1225) 2021-10-11 09:32:30 -04:00
Vincent Salucci fa6f33cbc5
[Reset Password] Update jslib (#1222)
* Update jslib

* Updated constructor
2021-10-08 16:55:23 -05:00
Danny Murphy d4b13c461d
Further Dark Theme QA Fixes (#1217)
* Add webAuthn logo for dark theme

* Add alt tags to 2FA logo images
2021-10-08 08:47:32 +10:00
Matt Gibson 37752b566b
Match formatting to other button groups (#1219) 2021-10-07 08:05:17 -05:00
Oscar Hinton 3eda0aa2cd
Remove Business Portal and add SSO configuration (#1213) 2021-10-06 20:45:45 +02:00
Matt Gibson 998d36a5d1
Feature/split manage collections permission (#1211)
* Update guard services and routing

* Add depenent checkbox to handle sub permissions

* Present new collections premissions

* Use new split permissions

* Rename to nested-checkbox.component

* Clarify css class name

* update jslib
2021-10-05 11:12:44 -05:00
Thomas Rittson 7a43510cf5
Various Dark Theme fixes per QA feedback (#1212)
* Fix CORS issue on in-line theming javascript

* Fix date picker icon color

* Add comment

* Fix table theming in dark mode

* Selfhosted navbar fix

* Rename selector to avoid clashing with bootstrap

* Do not set initial theme if default

* Fix .text-danger style in dropdown lists

* Fix toast style, restructure toast and card scss

* Fix table and dropdown list hover color

* Use callout component for Disable Send warning

* Remove unneeded theming for hovering over links

* Undo changes to register enterprise2 layout

* Apply theming to Safari input field icons

e.g. Caps lock, password autofill

* Selectively apply themed logo CSS

* Fix unrelated linting

* Fix webpack config to bundle theme.js

Co-authored-by: Danny Murphy <6512845+dltmurphy@users.noreply.github.com>
2021-10-05 20:03:24 +10:00
Danny Murphy 0c02cfea2f
Dark Theme (#1017)
* Stylesheets

* Theme Configuration

* Options Area

* swal2 style

* Icon styling

* Fix theme not saving

* Update English

* Update messages.json

* dropdown and login logo

* btn-link and totp fix

* Organisation Styling

* Update webauthn-fallback.ts

* Fix contrast issues

* Add Paypal Container and Loading svg file

* Password Generator contrast fix

* Dark Mode Fix buttons and foreground

* Fix button hover

* Fix Styles after rebase

* Add hover on nav dropdown-item

* Disable Theme Preview

* Options Fix for Default Theme Changes

* Updated Colour Scheme

* Toast fix

* Button and Text Styling

* Options Update and Messages Fix

* Added Search Icon and Fixed Callout styling

* Add theme styling to Stripe

* Refactor logic for setting color

* Reorder logic to avoid race condition

* PayPal Loading and Misc Fix

* text-state bug fix

* Badge Colour Fix

* Remove PayPal Tagline

The colour cannot be styled so it's not visible on a dark theme

* Adding the Styling from #1131

* Update to New Design

* Form and Nav restyle

* Modal Opacity and Callout

* Nav Colours

* Missing Borders

* Light theme fix

* Improved border for listgroup

* Change Org Nav Colour

* Save theme to localStorage for persistence

* Undo change to Wired image

* !Important removal and tweaks

* Fix regression with navbar

* Light theme by default

* Refactor to use getEffectiveTheme

* Refactor theme constants to use enum

* Set theme in index.html before app loads

* Use scss selector to set logo image

* Export Sass to TS

* Update jslib

Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2021-09-30 08:06:20 +10:00
Matt Gibson c98a189430
Organization autoscaling (#1193)
* Add seat autoscale component

* Move small description under title

* tweak autoscale terminology

* Linter fixes

* Use single component for org subscription updates

* Delete unused localization string

* Clarify max bill copy

* Remove cancel from org subscription adjustment

* Update jslib

* PR review

* update jslib

* Simplify success toast
2021-09-27 14:23:12 -05:00
Vincent Salucci ce3311a0dc
[Reset Password v1] Refactor ForcePasswordReset flow (#1188)
* [Reset Password v1] Refactor ForcePasswordReset flow

* Update jslib
2021-09-24 08:33:45 -05:00
Thomas Rittson 582ddc041b
Move custom fields to separate components (#1192)
* Move add-edit custom fields to own component

* Update jslib

* Fix import

* Update jslib
2021-09-21 10:48:36 +10:00
Oscar Hinton f1e0f70375
Use explicit import paths (#1195)
* Update imports to not use index files

* Bump jslib
2021-09-17 15:44:34 +02:00
Vincent Salucci eaba23d4ba
[SSO/Auto Enroll] Fixed typo for banner (#1194) 2021-09-16 23:00:57 -05:00
Oscar Hinton 7daba63c56
Add policy for disabling personal vault export (#1189) 2021-09-15 21:05:02 +02:00
Matt Gibson c82d1b3c50
Use api action directive for confirm action (#1153) 2021-09-13 07:46:16 -05:00
Thomas Rittson 8180aaa4cc
Add warning about 2FA when changing account email (#1186)
* Add warning about 2FA when changing account email

* Fix linting

* Fix code style and warning wording
2021-09-13 10:49:24 +10:00
Oscar Hinton a1c1fea976
Vault Timeout Policy (#1171) 2021-09-10 15:27:00 +02:00
Joseph Flinn 7f76084109
Move WebConstants values to environment config files (#1184)
* Moving the web constants to the app config for more flexibility

* removing personal integrations from QA

* changing the PayPal Configuration setup to match the pattern in the services module

* removing the webConstants file after successful test

* renaming the braintree config key to something more understandable
2021-09-09 14:18:46 -07:00
Thomas Rittson dd47eed7c7
Disable personal imports if Personal Ownership policy applies (#1176)
* Disable imports if personal ownership policy set

* Add missing await
2021-09-08 07:19:49 +10:00
Vincent Salucci f584950dda
[SSO/Auto Enroll] Set Password banner (#1169)
* [SSO/Auto Enroll] Set Password banner

* Update jslib
2021-09-03 16:26:38 -05:00
Thomas Rittson 3a25b1fb20
Add event logging for ResetSsoLink (#1173)
* Add event logging for ResetSsoLink

* Updated jslib with new event-type

Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
2021-09-03 10:20:59 -04:00
Vincent Salucci ca00fda023
[Policy] Reset Password data bugfix (#1175) 2021-09-02 11:42:27 -05:00
Thomas Rittson bc73452400
Move policy checks within policyService (#1149)
* Refactor: use new policyService methods

* Update jslib
2021-09-02 07:51:04 +10:00
Oscar Hinton 2235664bed
Fix ModalService refactor bugs (#1168) 2021-08-31 16:42:43 +02:00
Vincent Salucci 2e868c8111
[Callout] Removed redundant code (#1131)
* [Callout] ARemoved redundant code

* Fixed formatting

* Update jslib

* Updated ul styling for policy options callout

* Update jslib
2021-08-30 16:19:31 -05:00
Oscar Hinton 1c3488a8db
Fix Require SSO Policy prerequisite check (#1163) 2021-08-28 16:27:37 +02:00
Oscar Hinton fa4e5250b9
Add show/hide button to password prompt (#1034) 2021-08-27 14:50:58 +02:00
Matt Gibson 66bd8be2c9
Set urls from config file (#1151)
* Set environment URLs in webpack config.

* Provide non NULL dev server

* QA env uses the pq TLD

* Include icons in qa env

* Move base configs to develop.

local configurations should be done in the `./config/local.json` file.

* Fix config override loading to default to development

* Standardize url formatting

* Limit QA settings to those set in production

* Set self hosted in a config

* Specify cloud instead of production

Self hosted and cloud are both production environments.
The ENV setting is used to specify the env type while
NODE_ENV specifies whether development error handling and services.

* Update config instructions

* Remove invalid json

* Change env `production` references to `cloud`

* Fix formatting
2021-08-25 13:15:31 -05:00
Oscar Hinton 2cbe023a38
Refactor orgnaization policy management (#1147) 2021-08-25 16:10:17 +02:00
Oscar Hinton f9e375f5ad
Fix role not being displayed in organization user table (#1141) 2021-08-20 15:36:13 -04:00
Oscar Hinton 361022fc26
Overwrite icon service url for prod (#1137) 2021-08-19 10:13:35 +02:00
Thomas Rittson bbdddcef6e
Fix bug causing duplicate error messages (#1124) 2021-08-16 13:29:48 +10:00
Matt Gibson b47835df68
Set iframe allow on window load (#1125)
* Set webauthn allow on initial page load

* Update jslib
2021-08-13 09:23:51 -05:00
Vincent Salucci 3857ee2370
[Reset Password v1] Update Temp Password (#1111)
* [Reset Password v1] Update Temp Password

* Updated event string

* updated jslib

Co-authored-by: addison <addisonbeck1@gmail.com>
2021-08-10 08:10:54 -04:00
Matt Gibson 9bdda9cc4c
Provider qa feedback (#1118)
* Ensure business plan is selected for providers

* Show add organization button on if user has valid orgs to add

* Correct client owner description

* No drop down options if you can't manage organizations
2021-08-09 12:24:12 -05:00
Matt Gibson 2b0d3f9e0d
Handle vault accessed event types (#1115)
* Handle vault accessed event types

* update jslib
2021-08-05 13:30:47 -05:00
Thomas Rittson 75b0b7a1e1
Move ciphers paging logic from jslib to web (#1094)
* Move cipher paging logic from jslib to web

* Fix missing constructor argument

* Fix protected/private class property

* Install ngx-infinite-scroll (moved from jslib)

* Update jslib
2021-08-05 12:05:15 +10:00
Matt Gibson 44f624e9a6
Instantiate all status map arrays on load (#1107)
* Instantiate all status map arrays on load

* Update jslib

* Linter fixes
2021-08-04 08:30:06 -05:00
Matt Gibson f6df9983a3
Add owner email to provider org creation (#1101)
* Add owner email to provider org creation

* Use Correct request model

* Update jslib

* Remove unused input

* Remove unused input

* Improve client owner email description
2021-08-03 09:33:08 -05:00
Matt Gibson 9fabdbd0a1
Fix setup provider page (#1106)
* Show only business org create form if provider

* Remove business name from provider views
2021-07-30 08:10:00 -05:00
Matt Gibson 18aeeef6fe
Use `!=` for null checks (#1105) 2021-07-29 10:38:35 -05:00
Matt Gibson 4119713ace
Validate permissions before API calls (#1098)
Manage users is required to list provider users. If this permission is
missing the event is listed as done by the provider name
2021-07-28 11:40:01 -05:00
Matt Gibson a73cbbb672
Feature/use hcaptcha if bot (#1089)
* Add captcha to login page

* pull out shared method

* Update parse parameter logic

* Load captcha

* responsive iframe height
* correct i18n
* site key provided by server

* Fix locale parsing

* Add optional success callbackUri

* Make captcha connector responsive

* Handle parameter versions in webauthn

* Move variables to top of script

* Add captcha to registration

* Move captcha above `<hr>` div to be part of input form

* Add styled mobile captcha connector

* Linter Fixes

* Remove duplicate import

* Use listener to load captcha

* PR review
2021-07-23 14:30:04 -05:00
Oscar Hinton 2b5f61cadd
Use the helper methods in EnvironmentService (#1092) 2021-07-23 20:47:43 +02:00
Oscar Hinton 35d6a28c94
Ensure Angular is running as production (#1093) 2021-07-23 20:03:14 +02:00
Oscar Hinton 218259fc7e
[Provider] Add provider link in navbar (#1091) 2021-07-21 19:53:33 +02:00
Oscar Hinton c608a489dd
[Provider] Add events for Provider Organizations (#1090) 2021-07-21 19:53:21 +02:00
Oscar Hinton a94faf06a9
[Provider] Add support for managing providers (#1014) 2021-07-21 11:32:27 +02:00
Thomas Rittson 5e7e035eec
[send.key] Update send.key when rotating account enc key (#1049)
* Update send.key when rotating account enc key

* Update jslib
2021-07-19 20:14:24 +10:00
Oscar Hinton d85ee9780f
Use UserNamePipe (#1085) 2021-07-19 10:47:34 +02:00
Addison Beck ba6d61a510
Resolved Safari Date/Time Issues In Send (#1084)
* cleaned up date and time logic for Send

* updated jslib

* updated jslib
2021-07-16 14:31:35 -04:00
Matt Gibson 623e485641
Remove send info card from web vault (#1081)
* Remove send info card from web vault

* Remove component from oss.module.ts
2021-07-12 16:37:11 -05:00
Trey Greer 86e6c31820
add AZ language (#1079) 2021-07-12 22:19:56 +10:00
Oscar Hinton 731e191011
Add cache-busting query param to dropin script (#1078) 2021-07-12 09:21:30 +02:00
Vincent Salucci cc2b717d6b
[Reset Password v1] Make auto enrollment required when enabled (#1047) 2021-07-09 13:24:59 -05:00
Trey Greer 41ad5aa26d
add Kannada language (#1075) 2021-07-09 08:54:39 +10:00
Oscar Hinton 7c9ebed93f
Add support for emojis in Avatar (#1074) 2021-07-08 16:54:11 +02:00
Shashank S e1e2edf2e9
Refactor password generator type radio buttons to use base class (#1059)
* feat: update jslib version

* refactor: use ngfor for options

* Revert "feat: update jslib version"

This reverts commit 76f1ce38190065a2e9a6be6557b5972c282e31d8.

* chore: rem dead code
2021-07-08 09:06:46 +10:00
Oscar Hinton 324b74d5a6
Fix organization policies not showin up in login/register (#1067) 2021-07-07 17:08:46 +02:00
Thomas Rittson c494cab234
Fix fingerprint phrases (#1071)
* Fix fingerprint phrases in the bulk confirm modal

* Update jslib
2021-07-07 20:15:12 +10:00
Vincent Salucci e7f3d977c4
[Reset Password] BUG Add permission gate to key backfill (#1061) 2021-07-02 15:23:04 -05:00
Vincent Salucci ae091bd738
[Reset Password] BUG Org Keys backfill force sync (#1055)
Merging on Vince's behalf
2021-07-01 10:10:34 -04:00
Oscar Hinton 57f952bc66
Refactor OrganizationPlansComponent (#1045) 2021-06-24 17:37:59 +02:00
Oscar Hinton ef331aba0b
Remove entryComponents (#1044) 2021-06-24 16:01:04 +02:00
Matt Gibson f8a7439675
Redefine cipher "share" to "move to organization" (#1039)
* Redefine cipher "share" to "move to organization"

* Bump jslib

Co-authored-by: = <=>
2021-06-21 18:27:27 -05:00
Oscar Hinton 34cb26416c
Add reprompt help link (#1041) 2021-06-21 20:52:34 +02:00
Oscar Hinton 76210c30a8
Add boilerplate for bitwarden_license (#1032) 2021-06-16 20:28:05 +02:00
Oscar Hinton 14e9784297
Refactor accept-organization and accept-emergency (#1026) 2021-06-15 21:02:04 +02:00
Vincent Salucci 6d54740aaf
[Reset Password] Custom Permission pairing (#1027) 2021-06-14 13:12:15 -05:00
Oscar Hinton 5939d590e3
Ensure we only select all visible users (#1025) 2021-06-10 16:36:30 +02:00
Oscar Hinton fd328eef2a
Refactor bulk delete and confirm (#1013)
* Prevent confirm dialog from showing when autoConfirm is enabled

* Fix bulk confirm not showing if more than 3 confirmed users in org.

* Refactor bulk confirm to show a single dialog with all fingerprints

* Move bulk status dialog to bulk folder

* Refactor bulk delete to use a custom modal

* Update src/locales/en/messages.json

Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>

Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
2021-06-09 17:04:21 +02:00
Oscar Hinton b12d0387f6
Add jslib as a "real" dependency (#951)
* Add jslib as a dependency

* Cleanup tsconfig, webpack, add jslib-angular to package.json

* Update all import paths

* Add back @types/node.

* Lint

* Remove dummy module

* Remove merge conflict

* Group imports

* Bump jslib
2021-06-07 20:13:58 +02:00
Matt Gibson f15e78b91d
Correct appApiAction directive use. (#1015) 2021-06-04 13:10:00 -05:00
Chad Scharf a554c0e660
Revert "Theme Support with a Dark Mode (#974)" (#1011)
This reverts commit cf24113924.
2021-06-03 15:49:14 -04:00
Jens Spanier 2f8a721033
Fix non-unique ids on settings page (#1002) 2021-06-03 08:33:18 +10:00
Danny Murphy cf24113924
Theme Support with a Dark Mode (#974)
* Stylesheets

* Theme Configuration

* Options Area

* swal2 style

Missed the swal2 styling and improved the table theming

* Icon styling

* Fix theme not saving

* Update English

Remove colour to make it more translatable between English and American

* Update messages.json

* Login logo

* dropdown and login logo

* btn-link and totp fix

Added a border for extra readability on the btn-link

* Organisation Styling

* Update messages.json

* Update webauthn-fallback.ts

Add missing semicolon and enable console.error bypass for tslint

* Fix contrast issues

Update the blue to match the browser extension and lighten the grey for text-muted variable

* Add Paypal Container and Loading svg file

* Update jslib

* Password Generator contrast fix
2021-06-02 14:38:04 -04:00
Vincent Salucci 1bacc8b774
[Reset Password] Admin Actions (#935)
* [Reset Password] Admin Actions

* Updated components to pass orgUser.Id and use within password reset apis

* Removed password auto-generation, fixed loading visual bug by chaining promise actions

* Update jslib 97ece68 -> 73ec484

* Updated all classes to new reset password flows

* Update jslib (73ec484 -> 5f1ad85)

* Update jslib (5f1ad85 -> 395ded0)

* Update encryption steps for change-password flow

* Fixed merge conflicts

* Updated based on requested changes
2021-06-02 11:35:49 -05:00
Matt Gibson 945e968e06
Export all events matching dates (#990)
* Export eagerly pulls down all events

Export does not add to rendered elements since that may cause slow down.
Export is tied to the currently rendered list of events though `dirtyDates` bool

* Use manual btn-submit class

* Remove unnecessary method

* Fix ExpressionChangedAfterItHasBeenCheckedError
2021-06-02 07:21:57 -05:00
Joseph Flinn 9b7a1c7760
adding the self host check back in (#997) 2021-05-27 14:28:42 -07:00
Thomas Rittson da0df3a73b
Set baseUrl in QA cloud environment (#994)
* Set baseUrl if not deployed to prod server

* Add env variable TARGET and use to set baseUrl

* remove webPlatformUtilsService.isProdServer

* passing the ENV through to the Angular app

* switching the value of SELF_HOST back to true

* fixing some webpack.config variables

* fixing the selfhost angular process.env

* removing unecessary code

Co-authored-by: Joseph Flinn <joseph.s.flinn@gmail.com>
2021-05-27 09:46:26 -07:00
Vincent Salucci 6586af71f8
[Reset Password] Event updates (#993)
* [Reset Password] Event updates

* Update jslib 395ded0 -> 6fbe330
2021-05-27 11:42:05 -05:00
Oscar Hinton d31130b79f
Bulk confirm (#987)
* Add bulk confirm

* Add confirmation modal to the other bulk actions

* Add spinner to bulk status to let the user know something is going on

* Fix linting

* Add await before reloading users

* Close modal on error

* Bump jslib
2021-05-25 19:24:09 +02:00
Matt Gibson 1c5ce23d35
Set search index for limited collection org users (#983) 2021-05-19 11:11:11 -05:00
Oscar Hinton 45c31aa089
Bulk remove organization users (#970)
* Add support for bulk removal of org users

* Rename to UserBulkDeleteRequest

* Use OrganizationUserBulkRequest

* Bump jslib

* Fix linting
2021-05-18 10:27:52 +02:00
Oscar Hinton 968a255269
Correctly handle errors on remove and reinvite of organization users (#979) 2021-05-17 15:13:26 +02:00
Oscar Hinton a27be135da
Change all remaining modals to be scrollable (#976)
* Change all remaining modals to be scrollable

* Fix password-generator-history and two-factor-options not using modal-body

* Remove modal-dialog-scrollable on two-factor-setup components
2021-05-14 21:03:45 +02:00
Matt Gibson 54cd5a68b3
Add event export (#967)
* Include human readable export message on events

* Add export currently visible events.

* PR feedback
2021-05-13 18:39:53 -05:00
Trey Greer 9abdefa947
Added additional languages (#975) 2021-05-13 17:08:27 -04:00
Kyle Spearrin d9322c1307
use swal titletext to avoid XSS (#966) 2021-05-13 10:08:16 -04:00
Leon-Hikari a8d614628a
Adds folder word-wrap (#880)
Uses spaces and dashes as preferred separator in folder names
(instead of just breaking whereever the max width is encountered)
2021-05-13 14:02:39 +10:00
Thomas Rittson 7f9f6d3d0e
Check encKey when importing encrypted JSON (#968)
* Check encKey when importing encrypted JSON

* bump jslib
2021-05-13 11:22:26 +10:00
Oscar Hinton 51f3fee75d
Bulk re-invite of org users (#961)
* Add support for bulk re-invite of org users

* Add selectAll, resolve review comments
2021-05-12 16:38:17 +02:00
Thomas Rittson 3ac2ce079a
Refactor Send 'copy link' functionality (#960)
* Refactor Send 'copy link' functionality

* bump jslib

* Print debug message if copyToClipboard fails

* fix linting
2021-05-12 10:51:12 +10:00
Oscar Hinton d900d2d3f8
Change modal-dialog for add-edit cipher to be scrollable (#957) 2021-05-07 09:43:41 +02:00
Oscar Hinton 4a61f0ac04
Cleanup tsconfig (#954)
* Cleanup tsconfig

* Removed dummy module
2021-05-05 09:46:14 +02:00