Date: Wed, 8 May 2024 11:34:07 -0400
Subject: [PATCH 16/72] Allow selecting of version numbers for copy-pasting in
issues (#9078)
* Allow selecting of version numbers for copy-pasting in issues
* Simplify user-select override
Expands selectable area to labels of versions
---
apps/browser/src/popup/scss/misc.scss | 4 ++++
.../src/tools/popup/settings/about/about.component.html | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/apps/browser/src/popup/scss/misc.scss b/apps/browser/src/popup/scss/misc.scss
index c106931c1fc..61f22be9ef0 100644
--- a/apps/browser/src/popup/scss/misc.scss
+++ b/apps/browser/src/popup/scss/misc.scss
@@ -424,6 +424,10 @@ img,
.modal-title,
.overlay-container {
user-select: none;
+
+ &.user-select {
+ user-select: auto;
+ }
}
app-about .modal-body > *,
diff --git a/apps/browser/src/tools/popup/settings/about/about.component.html b/apps/browser/src/tools/popup/settings/about/about.component.html
index e68a664ba70..bad39a53d31 100644
--- a/apps/browser/src/tools/popup/settings/about/about.component.html
+++ b/apps/browser/src/tools/popup/settings/about/about.component.html
@@ -5,7 +5,7 @@
Bitwarden
© Bitwarden Inc. 2015-{{ year }}
-
{{ "version" | i18n }}: {{ version$ | async }}
+
{{ "version" | i18n }}: {{ version$ | async }}
{{ "serverVersion" | i18n }}: {{ data.serverConfig?.version }}
@@ -16,7 +16,7 @@
-
+
{{ "serverVersion" | i18n }} ({{ "thirdParty" | i18n }}):
{{ data.serverConfig?.version }}
@@ -28,7 +28,7 @@
-
+
{{ "serverVersion" | i18n }} ({{ "selfHostedServer" | i18n }}):
{{ data.serverConfig?.version }}
From 350ad890decc28cdd6a183a1af3e66769d802864 Mon Sep 17 00:00:00 2001
From: Timshel
Date: Wed, 8 May 2024 18:24:18 +0200
Subject: [PATCH 17/72] Check MasterPassword in web app during change (#8293)
---
.../auth/settings/change-password.component.ts | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/apps/web/src/app/auth/settings/change-password.component.ts b/apps/web/src/app/auth/settings/change-password.component.ts
index 454d96f2bde..fb428def9f1 100644
--- a/apps/web/src/app/auth/settings/change-password.component.ts
+++ b/apps/web/src/app/auth/settings/change-password.component.ts
@@ -165,7 +165,22 @@ export class ChangePasswordComponent extends BaseChangePasswordComponent {
newMasterKey: MasterKey,
newUserKey: [UserKey, EncString],
) {
- const masterKey = await this.cryptoService.getOrDeriveMasterKey(this.currentMasterPassword);
+ const masterKey = await this.cryptoService.makeMasterKey(
+ this.currentMasterPassword,
+ await this.stateService.getEmail(),
+ await this.kdfConfigService.getKdfConfig(),
+ );
+
+ const userKey = await this.cryptoService.decryptUserKeyWithMasterKey(masterKey);
+ if (userKey == null) {
+ this.platformUtilsService.showToast(
+ "error",
+ null,
+ this.i18nService.t("invalidMasterPassword"),
+ );
+ return;
+ }
+
const request = new PasswordRequest();
request.masterPasswordHash = await this.cryptoService.hashMasterKey(
this.currentMasterPassword,
From c2812fc21d345783fd0e3c21a50d499d4af8012a Mon Sep 17 00:00:00 2001
From: Daniel James Smith <2670567+djsmith85@users.noreply.github.com>
Date: Wed, 8 May 2024 19:25:24 +0200
Subject: [PATCH 18/72] [PM-7176] Create appearance settings component
(navigational changes) (#8911)
* Move about.component into tools ownership
* Split out account security settings
Move settings.component.ts to auth/popup/settings and rename to account-security.component.ts
Move controls from settings.component.html and create account-security.component.html
Move settings.component.html to tools/popup/settings.component.html
Create settings.component.ts under tools/popup/settings
Fixup module imports and routing
Add new strings to en/message.json
* Move vault-timeout-input.component to auth
* Move await-desktop-dialog.component to auth
* Add transition for account-security
* Create appearance settings component
* Add entry in settings to navigate to the appearance settings page
* Add transition animation for settings to appearance and back
* Remove settings from options that are now under appearance
---------
Co-authored-by: Daniel James Smith
---
apps/browser/src/_locales/en/messages.json | 3 +
.../src/popup/app-routing.animations.ts | 4 ++
apps/browser/src/popup/app-routing.module.ts | 7 ++
apps/browser/src/popup/app.module.ts | 2 +
.../src/popup/settings/options.component.html | 51 --------------
.../src/popup/settings/options.component.ts | 35 ----------
.../popup/settings/settings.component.html | 8 +++
.../popup/settings/appearance.component.html | 67 +++++++++++++++++++
.../popup/settings/appearance.component.ts | 62 +++++++++++++++++
9 files changed, 153 insertions(+), 86 deletions(-)
create mode 100644 apps/browser/src/vault/popup/settings/appearance.component.html
create mode 100644 apps/browser/src/vault/popup/settings/appearance.component.ts
diff --git a/apps/browser/src/_locales/en/messages.json b/apps/browser/src/_locales/en/messages.json
index 493a909f8ac..fcc80e5ff7d 100644
--- a/apps/browser/src/_locales/en/messages.json
+++ b/apps/browser/src/_locales/en/messages.json
@@ -3035,6 +3035,9 @@
"accountSecurity": {
"message": "Account security"
},
+ "appearance": {
+ "message": "Appearance"
+ },
"errorAssigningTargetCollection": {
"message": "Error assigning target collection."
},
diff --git a/apps/browser/src/popup/app-routing.animations.ts b/apps/browser/src/popup/app-routing.animations.ts
index 9bad33f7442..55d2687a436 100644
--- a/apps/browser/src/popup/app-routing.animations.ts
+++ b/apps/browser/src/popup/app-routing.animations.ts
@@ -202,6 +202,10 @@ export const routerTransition = trigger("routerTransition", [
transition("tabs => options", inSlideLeft),
transition("options => tabs", outSlideRight),
+ // Appearance settings
+ transition("tabs => appearance", inSlideLeft),
+ transition("appearance => tabs", outSlideRight),
+
transition("tabs => premium", inSlideLeft),
transition("premium => tabs", outSlideRight),
diff --git a/apps/browser/src/popup/app-routing.module.ts b/apps/browser/src/popup/app-routing.module.ts
index 9e1872f1cef..8fb397fe240 100644
--- a/apps/browser/src/popup/app-routing.module.ts
+++ b/apps/browser/src/popup/app-routing.module.ts
@@ -48,6 +48,7 @@ import { VaultFilterComponent } from "../vault/popup/components/vault/vault-filt
import { VaultItemsComponent } from "../vault/popup/components/vault/vault-items.component";
import { VaultV2Component } from "../vault/popup/components/vault/vault-v2.component";
import { ViewComponent } from "../vault/popup/components/vault/view.component";
+import { AppearanceComponent } from "../vault/popup/settings/appearance.component";
import { FolderAddEditComponent } from "../vault/popup/settings/folder-add-edit.component";
import { FoldersComponent } from "../vault/popup/settings/folders.component";
import { SyncComponent } from "../vault/popup/settings/sync.component";
@@ -303,6 +304,12 @@ const routes: Routes = [
canActivate: [AuthGuard],
data: { state: "options" },
},
+ {
+ path: "appearance",
+ component: AppearanceComponent,
+ canActivate: [AuthGuard],
+ data: { state: "appearance" },
+ },
{
path: "clone-cipher",
component: AddEditComponent,
diff --git a/apps/browser/src/popup/app.module.ts b/apps/browser/src/popup/app.module.ts
index 8ff4f9e4a29..4a310027c1b 100644
--- a/apps/browser/src/popup/app.module.ts
+++ b/apps/browser/src/popup/app.module.ts
@@ -70,6 +70,7 @@ import { VaultSelectComponent } from "../vault/popup/components/vault/vault-sele
import { VaultV2Component } from "../vault/popup/components/vault/vault-v2.component";
import { ViewCustomFieldsComponent } from "../vault/popup/components/vault/view-custom-fields.component";
import { ViewComponent } from "../vault/popup/components/vault/view.component";
+import { AppearanceComponent } from "../vault/popup/settings/appearance.component";
import { FolderAddEditComponent } from "../vault/popup/settings/folder-add-edit.component";
import { FoldersComponent } from "../vault/popup/settings/folders.component";
import { SyncComponent } from "../vault/popup/settings/sync.component";
@@ -148,6 +149,7 @@ import "../platform/popup/locales";
LoginViaAuthRequestComponent,
LoginDecryptionOptionsComponent,
OptionsComponent,
+ AppearanceComponent,
GeneratorComponent,
PasswordGeneratorHistoryComponent,
PasswordHistoryComponent,
diff --git a/apps/browser/src/popup/settings/options.component.html b/apps/browser/src/popup/settings/options.component.html
index 93c018233af..fa2b7514dbf 100644
--- a/apps/browser/src/popup/settings/options.component.html
+++ b/apps/browser/src/popup/settings/options.component.html
@@ -192,56 +192,5 @@
{{ "showIdentitiesCurrentTabDesc" | i18n }}