mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-06 05:28:51 +02:00
Merge branch 'master' of https://github.com/bitwarden/web into feature/hide-passwords
This commit is contained in:
commit
51b482f57d
@ -1,103 +1,149 @@
|
|||||||
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" class="container" ngNativeValidate>
|
<div class="layout" [ngClass]="['layout', layout]">
|
||||||
<div class="row justify-content-md-center mt-5">
|
<header class="header" *ngIf="layout === 'enterprise2'">
|
||||||
<div class="col-5">
|
<div class="container">
|
||||||
<p class="lead text-center mb-4">{{'createAccount' | i18n}}</p>
|
<div class="row">
|
||||||
<div class="card d-block">
|
<div class="col-7">
|
||||||
<div class="card-body">
|
<img alt="Bitwarden" class="logo mb-2" src="../../images/register-layout/logo-horizontal-white.png">
|
||||||
<app-callout title="{{'createOrganizationStep1' | i18n}}" type="info" icon="fa-thumb-tack"
|
|
||||||
*ngIf="showCreateOrgMessage">
|
|
||||||
{{'createOrganizationCreatePersonalAccount' | i18n}}
|
|
||||||
</app-callout>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="email">{{'emailAddress' | i18n}}</label>
|
|
||||||
<input id="email" class="form-control" type="text" name="Email" [(ngModel)]="email" required
|
|
||||||
[appAutofocus]="email === ''" inputmode="email" appInputVerbatim="false">
|
|
||||||
<small class="form-text text-muted">{{'emailAddressDesc' | i18n}}</small>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="name">{{'yourName' | i18n}}</label>
|
|
||||||
<input id="name" class="form-control" type="text" name="Name" [(ngModel)]="name"
|
|
||||||
[appAutofocus]="email !== ''">
|
|
||||||
<small class="form-text text-muted">{{'yourNameDesc' | i18n}}</small>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<app-callout type="info" *ngIf="enforcedPolicyOptions">
|
|
||||||
{{'masterPasswordPolicyInEffect' | i18n}}
|
|
||||||
<ul class="mb-0">
|
|
||||||
<li *ngIf="enforcedPolicyOptions?.minComplexity > 0">
|
|
||||||
{{'policyInEffectMinComplexity' | i18n : getPasswordScoreAlertDisplay()}}
|
|
||||||
</li>
|
|
||||||
<li *ngIf="enforcedPolicyOptions?.minLength > 0">
|
|
||||||
{{'policyInEffectMinLength' | i18n : enforcedPolicyOptions?.minLength.toString()}}
|
|
||||||
</li>
|
|
||||||
<li *ngIf="enforcedPolicyOptions?.requireUpper">
|
|
||||||
{{'policyInEffectUppercase' | i18n}}</li>
|
|
||||||
<li *ngIf="enforcedPolicyOptions?.requireLower">
|
|
||||||
{{'policyInEffectLowercase' | i18n}}</li>
|
|
||||||
<li *ngIf="enforcedPolicyOptions?.requireNumbers">
|
|
||||||
{{'policyInEffectNumbers' | i18n}}</li>
|
|
||||||
<li *ngIf="enforcedPolicyOptions?.requireSpecial">
|
|
||||||
{{'policyInEffectSpecial' | i18n : '!@#$%^&*'}}</li>
|
|
||||||
</ul>
|
|
||||||
</app-callout>
|
|
||||||
<label for="masterPassword">{{'masterPass' | i18n}}</label>
|
|
||||||
<div class="d-flex">
|
|
||||||
<div class="w-100">
|
|
||||||
<input id="masterPassword" type="{{showPassword ? 'text' : 'password'}}"
|
|
||||||
name="MasterPassword" class="text-monospace form-control mb-1"
|
|
||||||
[(ngModel)]="masterPassword" (input)="updatePasswordStrength()" required
|
|
||||||
appInputVerbatim>
|
|
||||||
<app-password-strength [score]="masterPasswordScore" [showText]="true">
|
|
||||||
</app-password-strength>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<button type="button" class="ml-1 btn btn-link"
|
|
||||||
appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="togglePassword(false)">
|
|
||||||
<i class="fa fa-lg" aria-hidden="true"
|
|
||||||
[ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
|
|
||||||
</button>
|
|
||||||
<div class="progress-bar invisible"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<small class="form-text text-muted">{{'masterPassDesc' | i18n}}</small>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="masterPasswordRetype">{{'reTypeMasterPass' | i18n}}</label>
|
|
||||||
<div class="d-flex">
|
|
||||||
<input id="masterPasswordRetype" type="{{showPassword ? 'text' : 'password'}}"
|
|
||||||
name="MasterPasswordRetype" class="text-monospace form-control"
|
|
||||||
[(ngModel)]="confirmMasterPassword" required appInputVerbatim>
|
|
||||||
<button type="button" class="ml-1 btn btn-link" appA11yTitle="{{'toggleVisibility' | i18n}}"
|
|
||||||
(click)="togglePassword(true)">
|
|
||||||
<i class="fa fa-lg" aria-hidden="true"
|
|
||||||
[ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="hint">{{'masterPassHint' | i18n}}</label>
|
|
||||||
<input id="hint" class="form-control" type="text" name="Hint" [(ngModel)]="hint">
|
|
||||||
<small class="form-text text-muted">{{'masterPassHintDesc' | i18n}}</small>
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
<div class="d-flex mb-2">
|
|
||||||
<button type="submit" class="btn btn-primary btn-block btn-submit" [disabled]="form.loading">
|
|
||||||
<span>{{'submit' | i18n}}</span>
|
|
||||||
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}" aria-hidden="true"></i>
|
|
||||||
</button>
|
|
||||||
<a routerLink="/" class="btn btn-outline-secondary btn-block ml-2 mt-0">
|
|
||||||
{{'cancel' | i18n}}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<small class="text-muted" *ngIf="showTerms">
|
|
||||||
{{'submitAgreePolicies' | i18n}}
|
|
||||||
<a href="https://bitwarden.com/terms/" target="_blank"
|
|
||||||
rel="noopener">{{'termsOfService' | i18n}}</a>,
|
|
||||||
<a href="https://bitwarden.com/privacy/" target="_blank"
|
|
||||||
rel="noopener">{{'privacyPolicy' | i18n}}</a>
|
|
||||||
</small>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</header>
|
||||||
</form>
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" class="container" ngNativeValidate>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-7" *ngIf="layout">
|
||||||
|
<div class="mt-5">
|
||||||
|
<div *ngIf="layout === 'enterprise2'">
|
||||||
|
<h2>Companies globally trust Bitwarden for password management.</h2>
|
||||||
|
<p>Start your 7-day free trial!</p>
|
||||||
|
<p class="highlight">Quickly deploy your <b>organization</b></p>
|
||||||
|
<p>Use Bitwarden across all platforms</p>
|
||||||
|
<p>Collaborate and share securely</p>
|
||||||
|
<figure>
|
||||||
|
<figcaption>
|
||||||
|
<cite>
|
||||||
|
<img src="../../images/register-layout/wired-logo.png" alt="Wired">
|
||||||
|
</cite>
|
||||||
|
</figcaption>
|
||||||
|
<blockquote>
|
||||||
|
"Bitwarden has become a popular choice among open-source software advocates. After using it for a
|
||||||
|
few months, I can see why." - February 2020
|
||||||
|
</blockquote>
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="layout === 'enterprise3'">
|
||||||
|
<p>Enterprise 3 layout</p>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="layout === 'enterprise4'">
|
||||||
|
<p>Enterprise 4 layout</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div [ngClass]="{'col-5': layout, 'col-12': !layout}">
|
||||||
|
<div class="row justify-content-md-center mt-5">
|
||||||
|
<div [ngClass]="{'col-5': !layout, 'col-12': layout}">
|
||||||
|
<p class="lead text-center mb-4" *ngIf="!layout">{{'createAccount' | i18n}}</p>
|
||||||
|
<div class="card d-block">
|
||||||
|
<div class="card-body">
|
||||||
|
<app-callout title="{{'createOrganizationStep1' | i18n}}" type="info" icon="fa-thumb-tack"
|
||||||
|
*ngIf="showCreateOrgMessage">
|
||||||
|
{{'createOrganizationCreatePersonalAccount' | i18n}}
|
||||||
|
</app-callout>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="email">{{'emailAddress' | i18n}}</label>
|
||||||
|
<input id="email" class="form-control" type="text" name="Email" [(ngModel)]="email"
|
||||||
|
required [appAutofocus]="email === ''" inputmode="email" appInputVerbatim="false">
|
||||||
|
<small class="form-text text-muted">{{'emailAddressDesc' | i18n}}</small>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">{{'yourName' | i18n}}</label>
|
||||||
|
<input id="name" class="form-control" type="text" name="Name" [(ngModel)]="name"
|
||||||
|
[appAutofocus]="email !== ''">
|
||||||
|
<small class="form-text text-muted">{{'yourNameDesc' | i18n}}</small>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<app-callout type="info" *ngIf="enforcedPolicyOptions">
|
||||||
|
{{'masterPasswordPolicyInEffect' | i18n}}
|
||||||
|
<ul class="mb-0">
|
||||||
|
<li *ngIf="enforcedPolicyOptions?.minComplexity > 0">
|
||||||
|
{{'policyInEffectMinComplexity' | i18n : getPasswordScoreAlertDisplay()}}
|
||||||
|
</li>
|
||||||
|
<li *ngIf="enforcedPolicyOptions?.minLength > 0">
|
||||||
|
{{'policyInEffectMinLength' | i18n : enforcedPolicyOptions?.minLength.toString()}}
|
||||||
|
</li>
|
||||||
|
<li *ngIf="enforcedPolicyOptions?.requireUpper">
|
||||||
|
{{'policyInEffectUppercase' | i18n}}</li>
|
||||||
|
<li *ngIf="enforcedPolicyOptions?.requireLower">
|
||||||
|
{{'policyInEffectLowercase' | i18n}}</li>
|
||||||
|
<li *ngIf="enforcedPolicyOptions?.requireNumbers">
|
||||||
|
{{'policyInEffectNumbers' | i18n}}</li>
|
||||||
|
<li *ngIf="enforcedPolicyOptions?.requireSpecial">
|
||||||
|
{{'policyInEffectSpecial' | i18n : '!@#$%^&*'}}</li>
|
||||||
|
</ul>
|
||||||
|
</app-callout>
|
||||||
|
<label for="masterPassword">{{'masterPass' | i18n}}</label>
|
||||||
|
<div class="d-flex">
|
||||||
|
<div class="w-100">
|
||||||
|
<input id="masterPassword" type="{{showPassword ? 'text' : 'password'}}"
|
||||||
|
name="MasterPassword" class="text-monospace form-control mb-1"
|
||||||
|
[(ngModel)]="masterPassword" (input)="updatePasswordStrength()" required
|
||||||
|
appInputVerbatim>
|
||||||
|
<app-password-strength [score]="masterPasswordScore" [showText]="true">
|
||||||
|
</app-password-strength>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<button type="button" class="ml-1 btn btn-link"
|
||||||
|
appA11yTitle="{{'toggleVisibility' | i18n}}"
|
||||||
|
(click)="togglePassword(false)">
|
||||||
|
<i class="fa fa-lg" aria-hidden="true"
|
||||||
|
[ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
|
||||||
|
</button>
|
||||||
|
<div class="progress-bar invisible"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<small class="form-text text-muted">{{'masterPassDesc' | i18n}}</small>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="masterPasswordRetype">{{'reTypeMasterPass' | i18n}}</label>
|
||||||
|
<div class="d-flex">
|
||||||
|
<input id="masterPasswordRetype" type="{{showPassword ? 'text' : 'password'}}"
|
||||||
|
name="MasterPasswordRetype" class="text-monospace form-control"
|
||||||
|
[(ngModel)]="confirmMasterPassword" required appInputVerbatim>
|
||||||
|
<button type="button" class="ml-1 btn btn-link"
|
||||||
|
appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="togglePassword(true)">
|
||||||
|
<i class="fa fa-lg" aria-hidden="true"
|
||||||
|
[ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="hint">{{'masterPassHint' | i18n}}</label>
|
||||||
|
<input id="hint" class="form-control" type="text" name="Hint" [(ngModel)]="hint">
|
||||||
|
<small class="form-text text-muted">{{'masterPassHintDesc' | i18n}}</small>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="d-flex mb-2">
|
||||||
|
<button type="submit" class="btn btn-primary btn-block btn-submit"
|
||||||
|
[disabled]="form.loading">
|
||||||
|
<span>{{'submit' | i18n}}</span>
|
||||||
|
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}"
|
||||||
|
aria-hidden="true"></i>
|
||||||
|
</button>
|
||||||
|
<a routerLink="/" class="btn btn-outline-secondary btn-block ml-2 mt-0">
|
||||||
|
{{'cancel' | i18n}}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<small class="text-muted" *ngIf="showTerms">
|
||||||
|
{{'submitAgreePolicies' | i18n}}
|
||||||
|
<a href="https://bitwarden.com/terms/" target="_blank"
|
||||||
|
rel="noopener">{{'termsOfService' | i18n}}</a>,
|
||||||
|
<a href="https://bitwarden.com/privacy/" target="_blank"
|
||||||
|
rel="noopener">{{'privacyPolicy' | i18n}}</a>
|
||||||
|
</small>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
@ -27,6 +27,7 @@ import { PolicyData } from 'jslib/models/data/policyData';
|
|||||||
export class RegisterComponent extends BaseRegisterComponent {
|
export class RegisterComponent extends BaseRegisterComponent {
|
||||||
showCreateOrgMessage = false;
|
showCreateOrgMessage = false;
|
||||||
showTerms = true;
|
showTerms = true;
|
||||||
|
layout = '';
|
||||||
enforcedPolicyOptions: MasterPasswordPolicyOptions;
|
enforcedPolicyOptions: MasterPasswordPolicyOptions;
|
||||||
|
|
||||||
private policies: Policy[];
|
private policies: Policy[];
|
||||||
@ -73,6 +74,9 @@ export class RegisterComponent extends BaseRegisterComponent {
|
|||||||
this.stateService.save('loginRedirect',
|
this.stateService.save('loginRedirect',
|
||||||
{ route: '/settings/create-organization', qParams: { plan: qParams.org } });
|
{ route: '/settings/create-organization', qParams: { plan: qParams.org } });
|
||||||
}
|
}
|
||||||
|
if (qParams.layout != null) {
|
||||||
|
this.layout = qParams.layout;
|
||||||
|
}
|
||||||
if (queryParamsSub != null) {
|
if (queryParamsSub != null) {
|
||||||
queryParamsSub.unsubscribe();
|
queryParamsSub.unsubscribe();
|
||||||
}
|
}
|
||||||
|
@ -148,6 +148,9 @@ export class AppComponent implements OnDestroy, OnInit {
|
|||||||
properties: { label: message.label },
|
properties: { label: message.label },
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 'setFullWidth':
|
||||||
|
this.setFullWidth();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -166,6 +169,8 @@ export class AppComponent implements OnDestroy, OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.setFullWidth();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
@ -262,4 +267,13 @@ export class AppComponent implements OnDestroy, OnInit {
|
|||||||
this.notificationsService.reconnectFromActivity();
|
this.notificationsService.reconnectFromActivity();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async setFullWidth() {
|
||||||
|
const enableFullWidth = await this.storageService.get<boolean>('enableFullWidth');
|
||||||
|
if (enableFullWidth) {
|
||||||
|
document.body.classList.add('full-width');
|
||||||
|
} else {
|
||||||
|
document.body.classList.remove('full-width');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,6 +76,16 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<small class="form-text text-muted">{{'enableGravatarsDesc' | i18n}}</small>
|
<small class="form-text text-muted">{{'enableGravatarsDesc' | i18n}}</small>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="form-check">
|
||||||
|
<input class="form-check-input" type="checkbox" id="enableFullWidth" name="enableFullWidth"
|
||||||
|
[(ngModel)]="enableFullWidth">
|
||||||
|
<label class="form-check-label" for="enableFullWidth">
|
||||||
|
{{'enableFullWidth' | i18n}}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<small class="form-text text-muted">{{'enableFullWidthDesc' | i18n}}</small>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary">
|
<button type="submit" class="btn btn-primary">
|
||||||
{{'save' | i18n}}
|
{{'save' | i18n}}
|
||||||
|
@ -7,6 +7,7 @@ import { ToasterService } from 'angular2-toaster';
|
|||||||
import { Angulartics2 } from 'angulartics2';
|
import { Angulartics2 } from 'angulartics2';
|
||||||
|
|
||||||
import { I18nService } from 'jslib/abstractions/i18n.service';
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
||||||
|
import { MessagingService } from 'jslib/abstractions/messaging.service';
|
||||||
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||||||
import { StateService } from 'jslib/abstractions/state.service';
|
import { StateService } from 'jslib/abstractions/state.service';
|
||||||
import { StorageService } from 'jslib/abstractions/storage.service';
|
import { StorageService } from 'jslib/abstractions/storage.service';
|
||||||
@ -25,6 +26,7 @@ export class OptionsComponent implements OnInit {
|
|||||||
vaultTimeoutAction: string = 'lock';
|
vaultTimeoutAction: string = 'lock';
|
||||||
disableIcons: boolean;
|
disableIcons: boolean;
|
||||||
enableGravatars: boolean;
|
enableGravatars: boolean;
|
||||||
|
enableFullWidth: boolean;
|
||||||
locale: string;
|
locale: string;
|
||||||
vaultTimeouts: any[];
|
vaultTimeouts: any[];
|
||||||
localeOptions: any[];
|
localeOptions: any[];
|
||||||
@ -34,7 +36,7 @@ export class OptionsComponent implements OnInit {
|
|||||||
constructor(private storageService: StorageService, private stateService: StateService,
|
constructor(private storageService: StorageService, private stateService: StateService,
|
||||||
private analytics: Angulartics2, private i18nService: I18nService,
|
private analytics: Angulartics2, private i18nService: I18nService,
|
||||||
private toasterService: ToasterService, private vaultTimeoutService: VaultTimeoutService,
|
private toasterService: ToasterService, private vaultTimeoutService: VaultTimeoutService,
|
||||||
private platformUtilsService: PlatformUtilsService) {
|
private platformUtilsService: PlatformUtilsService, private messagingService: MessagingService) {
|
||||||
this.vaultTimeouts = [
|
this.vaultTimeouts = [
|
||||||
{ name: i18nService.t('oneMinute'), value: 1 },
|
{ name: i18nService.t('oneMinute'), value: 1 },
|
||||||
{ name: i18nService.t('fiveMinutes'), value: 5 },
|
{ name: i18nService.t('fiveMinutes'), value: 5 },
|
||||||
@ -66,6 +68,7 @@ export class OptionsComponent implements OnInit {
|
|||||||
this.vaultTimeoutAction = await this.storageService.get<string>(ConstantsService.vaultTimeoutActionKey);
|
this.vaultTimeoutAction = await this.storageService.get<string>(ConstantsService.vaultTimeoutActionKey);
|
||||||
this.disableIcons = await this.storageService.get<boolean>(ConstantsService.disableFaviconKey);
|
this.disableIcons = await this.storageService.get<boolean>(ConstantsService.disableFaviconKey);
|
||||||
this.enableGravatars = await this.storageService.get<boolean>('enableGravatars');
|
this.enableGravatars = await this.storageService.get<boolean>('enableGravatars');
|
||||||
|
this.enableFullWidth = await this.storageService.get<boolean>('enableFullWidth');
|
||||||
this.locale = this.startingLocale = await this.storageService.get<string>(ConstantsService.localeKey);
|
this.locale = this.startingLocale = await this.storageService.get<string>(ConstantsService.localeKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,6 +79,8 @@ export class OptionsComponent implements OnInit {
|
|||||||
await this.stateService.save(ConstantsService.disableFaviconKey, this.disableIcons);
|
await this.stateService.save(ConstantsService.disableFaviconKey, this.disableIcons);
|
||||||
await this.storageService.save('enableGravatars', this.enableGravatars);
|
await this.storageService.save('enableGravatars', this.enableGravatars);
|
||||||
await this.stateService.save('enableGravatars', this.enableGravatars);
|
await this.stateService.save('enableGravatars', this.enableGravatars);
|
||||||
|
await this.storageService.save('enableFullWidth', this.enableFullWidth);
|
||||||
|
this.messagingService.send('setFullWidth');
|
||||||
await this.storageService.save(ConstantsService.localeKey, this.locale);
|
await this.storageService.save(ConstantsService.localeKey, this.locale);
|
||||||
this.analytics.eventTrack.next({ action: 'Saved Options' });
|
this.analytics.eventTrack.next({ action: 'Saved Options' });
|
||||||
if (this.locale !== this.startingLocale) {
|
if (this.locale !== this.startingLocale) {
|
||||||
|
BIN
src/images/register-layout/logo-horizontal-white.png
Normal file
BIN
src/images/register-layout/logo-horizontal-white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
src/images/register-layout/wired-logo.png
Normal file
BIN
src/images/register-layout/wired-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
@ -1044,6 +1044,13 @@
|
|||||||
"enableGravatarsDesc": {
|
"enableGravatarsDesc": {
|
||||||
"message": "Use avatar images loaded from gravatar.com."
|
"message": "Use avatar images loaded from gravatar.com."
|
||||||
},
|
},
|
||||||
|
"enableFullWidth": {
|
||||||
|
"message": "Enable Full Width Layout",
|
||||||
|
"description": "Allows scaling the web vault UI's width"
|
||||||
|
},
|
||||||
|
"enableFullWidthDesc": {
|
||||||
|
"message": "Allow the web vault to expand the full width of the browser window."
|
||||||
|
},
|
||||||
"default": {
|
"default": {
|
||||||
"message": "Default"
|
"message": "Default"
|
||||||
},
|
},
|
||||||
|
63
src/scss/register-layout.scss
Normal file
63
src/scss/register-layout.scss
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
.layout {
|
||||||
|
&.enterprise2 {
|
||||||
|
|
||||||
|
header {
|
||||||
|
color: $secondary;
|
||||||
|
background-color: $primary;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
z-index: -1;
|
||||||
|
width: 100%;
|
||||||
|
height: 340px;
|
||||||
|
left: 0;
|
||||||
|
transform: skewY(-3deg);
|
||||||
|
background: $primary;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.logo {
|
||||||
|
|
||||||
|
margin: 12px 0 0;
|
||||||
|
width: 284px;
|
||||||
|
max-width: 284px;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: 1.8rem;
|
||||||
|
margin: 100px 0 150px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 20px 0 40px 0;
|
||||||
|
font-size: 1.4rem;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
content: "/";
|
||||||
|
padding-right: 12px;
|
||||||
|
}
|
||||||
|
&:not(.highlight) {
|
||||||
|
&:before {
|
||||||
|
color: $primary-accent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
b {
|
||||||
|
&:after {
|
||||||
|
content: "⟶";
|
||||||
|
font-size: 2rem;
|
||||||
|
padding-left: 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
margin: 20px 0 0 0;
|
||||||
|
font-size: 1.4rem;
|
||||||
|
padding-right: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -123,6 +123,13 @@ body {
|
|||||||
&.layout_frontend {
|
&.layout_frontend {
|
||||||
background-color: #ecf0f5;
|
background-color: #ecf0f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.full-width:not(.layout_frontend) {
|
||||||
|
.container {
|
||||||
|
min-width: 980px;
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-header, .secondary-header {
|
.page-header, .secondary-header {
|
||||||
@ -832,3 +839,5 @@ img.logo {
|
|||||||
.cursor-move {
|
.cursor-move {
|
||||||
cursor: move !important;
|
cursor: move !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@import "./register-layout";
|
||||||
|
@ -4,9 +4,9 @@ import { ConstantsService } from 'jslib/services';
|
|||||||
|
|
||||||
export class HtmlStorageService implements StorageService {
|
export class HtmlStorageService implements StorageService {
|
||||||
private localStorageKeys = new Set(['appId', 'anonymousAppId', 'rememberedEmail', 'passwordGenerationOptions',
|
private localStorageKeys = new Set(['appId', 'anonymousAppId', 'rememberedEmail', 'passwordGenerationOptions',
|
||||||
ConstantsService.disableFaviconKey, 'rememberEmail', 'enableGravatars', ConstantsService.localeKey,
|
ConstantsService.disableFaviconKey, 'rememberEmail', 'enableGravatars', 'enableFullWidth',
|
||||||
ConstantsService.autoConfirmFingerprints, ConstantsService.vaultTimeoutKey,
|
ConstantsService.localeKey, ConstantsService.autoConfirmFingerprints,
|
||||||
ConstantsService.vaultTimeoutActionKey]);
|
ConstantsService.vaultTimeoutKey, ConstantsService.vaultTimeoutActionKey]);
|
||||||
private localStorageStartsWithKeys = ['twoFactorToken_', ConstantsService.collapsedGroupingsKey + '_'];
|
private localStorageStartsWithKeys = ['twoFactorToken_', ConstantsService.collapsedGroupingsKey + '_'];
|
||||||
|
|
||||||
constructor(private platformUtilsService: PlatformUtilsService) { }
|
constructor(private platformUtilsService: PlatformUtilsService) { }
|
||||||
|
Loading…
Reference in New Issue
Block a user