diff --git a/src/app/tools/export.component.html b/src/app/tools/export.component.html index 077885bc..da667f3e 100644 --- a/src/app/tools/export.component.html +++ b/src/app/tools/export.component.html @@ -31,13 +31,12 @@ - - - {{ "exportVault" | i18n }} + + + {{ "exportVault" | i18n }} diff --git a/src/app/tools/generator.component.html b/src/app/tools/generator.component.html index 935e07da..f090a99d 100644 --- a/src/app/tools/generator.component.html +++ b/src/app/tools/generator.component.html @@ -265,23 +265,82 @@ - - - - - {{ o.name }} - + + + {{ "service" | i18n }} + + + + {{ o.name }} + + - + + + {{ "apiKey" | i18n }} + + + + {{ "hostname" | i18n }} + + + + + + {{ "apiAccessToken" | i18n }} + + + + {{ "domainName" | i18n }} + + + + + + {{ "apiAccessToken" | i18n }} + + + + {{ "emailAddress" | i18n }} @@ -333,9 +392,15 @@ - - - {{ "regenerateUsername" | i18n }} + + + + {{ "regenerateUsername" | i18n }} {{ "copyUsername" | i18n }} diff --git a/src/app/tools/generator.component.ts b/src/app/tools/generator.component.ts index daef4fea..5917c8ee 100644 --- a/src/app/tools/generator.component.ts +++ b/src/app/tools/generator.component.ts @@ -26,8 +26,8 @@ export class GeneratorComponent extends BaseGeneratorComponent { stateService: StateService, platformUtilsService: PlatformUtilsService, i18nService: I18nService, - route: ActivatedRoute, logService: LogService, + route: ActivatedRoute, private modalService: ModalService ) { super( @@ -40,6 +40,11 @@ export class GeneratorComponent extends BaseGeneratorComponent { route, window ); + // Cannot use Firefox Relay on the web vault yet due to CORS issues with Firefox Relay API + this.forwardOptions.splice( + this.forwardOptions.findIndex((o) => o.value === "firefoxrelay"), + 1 + ); } async history() { diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index cf7c0d4d..039aae04 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -4894,6 +4894,19 @@ "service": { "message": "Service" }, + "forwardedEmail": { + "message": "Forwarded Email Alias" + }, + "forwardedEmailDesc": { + "message": "Generate an email alias with an external forwarding service." + }, + "hostname": { + "message": "Hostname", + "description": "Part of a URL." + }, + "apiAccessToken": { + "message": "API Access Token" + }, "unknownCipher": { "message": "Unknown Item, you may need to login with another account to access this item." } diff --git a/webpack.config.js b/webpack.config.js index 6332c8f9..fdebe061 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -205,7 +205,7 @@ const devServer = { key: "Content-Security-Policy", value: - "default-src 'self'; script-src 'self' 'sha256-ryoU+5+IUZTuUyTElqkrQGBJXr1brEv6r2CA62WUw8w=' https://js.stripe.com https://js.braintreegateway.com https://www.paypalobjects.com; style-src 'self' https://assets.braintreegateway.com https://*.paypal.com 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' 'sha256-JVRXyYPueLWdwGwY9m/7u4QlZ1xeQdqUj2t8OVIzZE4='; img-src 'self' data: https://icons.bitwarden.net https://*.paypal.com https://www.paypalobjects.com https://q.stripe.com https://haveibeenpwned.com https://www.gravatar.com; child-src 'self' https://js.stripe.com https://assets.braintreegateway.com https://*.paypal.com https://*.duosecurity.com; frame-src 'self' https://js.stripe.com https://assets.braintreegateway.com https://*.paypal.com https://*.duosecurity.com; connect-src 'self' wss://notifications.bitwarden.com https://notifications.bitwarden.com https://cdn.bitwarden.net https://api.pwnedpasswords.com https://2fa.directory/api/v3/totp.json https://api.stripe.com https://www.paypal.com https://api.braintreegateway.com https://client-analytics.braintreegateway.com https://*.braintree-api.com https://*.blob.core.windows.net; object-src 'self' blob:;", + "default-src 'self'; script-src 'self' 'sha256-ryoU+5+IUZTuUyTElqkrQGBJXr1brEv6r2CA62WUw8w=' https://js.stripe.com https://js.braintreegateway.com https://www.paypalobjects.com; style-src 'self' https://assets.braintreegateway.com https://*.paypal.com 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' 'sha256-JVRXyYPueLWdwGwY9m/7u4QlZ1xeQdqUj2t8OVIzZE4='; img-src 'self' data: https://icons.bitwarden.net https://*.paypal.com https://www.paypalobjects.com https://q.stripe.com https://haveibeenpwned.com https://www.gravatar.com; child-src 'self' https://js.stripe.com https://assets.braintreegateway.com https://*.paypal.com https://*.duosecurity.com; frame-src 'self' https://js.stripe.com https://assets.braintreegateway.com https://*.paypal.com https://*.duosecurity.com; connect-src 'self' wss://notifications.bitwarden.com https://notifications.bitwarden.com https://cdn.bitwarden.net https://api.pwnedpasswords.com https://2fa.directory/api/v3/totp.json https://api.stripe.com https://www.paypal.com https://api.braintreegateway.com https://client-analytics.braintreegateway.com https://*.braintree-api.com https://*.blob.core.windows.net https://app.simplelogin.io/api/alias/random/new https://app.anonaddy.com/api/v1/aliases; object-src 'self' blob:;", }, ]; }