Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
694093c775
6 changed files with 73 additions and 67 deletions
|
@ -33,7 +33,6 @@
|
||||||
@import "./views/dialogs/_ChatInviteDialog.scss";
|
@import "./views/dialogs/_ChatInviteDialog.scss";
|
||||||
@import "./views/dialogs/_ConfirmUserActionDialog.scss";
|
@import "./views/dialogs/_ConfirmUserActionDialog.scss";
|
||||||
@import "./views/dialogs/_CreateGroupDialog.scss";
|
@import "./views/dialogs/_CreateGroupDialog.scss";
|
||||||
@import "./views/dialogs/_CreateKeyBackupDialog.scss";
|
|
||||||
@import "./views/dialogs/_CreateRoomDialog.scss";
|
@import "./views/dialogs/_CreateRoomDialog.scss";
|
||||||
@import "./views/dialogs/_DeactivateAccountDialog.scss";
|
@import "./views/dialogs/_DeactivateAccountDialog.scss";
|
||||||
@import "./views/dialogs/_DevtoolsDialog.scss";
|
@import "./views/dialogs/_DevtoolsDialog.scss";
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
/*
|
|
||||||
Copyright 2018 New Vector Ltd
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.mx_CreateKeyBackupDialog {
|
|
||||||
padding-right: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mx_CreateKeyBackupDialog_recoveryKey {
|
|
||||||
padding: 20px;
|
|
||||||
color: $info-plinth-fg-color;
|
|
||||||
background-color: $info-plinth-bg-color;
|
|
||||||
}
|
|
|
@ -14,6 +14,10 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
.mx_CreateKeyBackupDialog {
|
||||||
|
padding-right: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
.mx_CreateKeyBackupDialog_primaryContainer {
|
.mx_CreateKeyBackupDialog_primaryContainer {
|
||||||
/*FIXME: plinth colour in new theme(s). background-color: $accent-color;*/
|
/*FIXME: plinth colour in new theme(s). background-color: $accent-color;*/
|
||||||
padding: 20px
|
padding: 20px
|
||||||
|
@ -25,9 +29,13 @@ limitations under the License.
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_CreateKeyBackupDialog_passPhraseContainer {
|
||||||
|
display: flex;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
.mx_CreateKeyBackupDialog_passPhraseHelp {
|
.mx_CreateKeyBackupDialog_passPhraseHelp {
|
||||||
float: right;
|
flex: 1;
|
||||||
width: 230px;
|
|
||||||
height: 85px;
|
height: 85px;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
|
@ -38,20 +46,36 @@ limitations under the License.
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_CreateKeyBackupDialog_passPhraseInput {
|
.mx_CreateKeyBackupDialog_passPhraseInput {
|
||||||
|
flex: none;
|
||||||
width: 250px;
|
width: 250px;
|
||||||
border: 1px solid $accent-color;
|
border: 1px solid $accent-color;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_CreateKeyBackupDialog_passPhraseMatch {
|
.mx_CreateKeyBackupDialog_passPhraseMatch {
|
||||||
float: right;
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_CreateKeyBackupDialog_recoveryKeyButtons {
|
.mx_CreateKeyBackupDialog_recoveryKeyHeader {
|
||||||
float: right;
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_CreateKeyBackupDialog_recoveryKeyContainer {
|
||||||
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_CreateKeyBackupDialog_recoveryKey {
|
.mx_CreateKeyBackupDialog_recoveryKey {
|
||||||
width: 300px;
|
width: 262px;
|
||||||
|
padding: 20px;
|
||||||
|
color: $info-plinth-fg-color;
|
||||||
|
background-color: $info-plinth-bg-color;
|
||||||
|
margin-right: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_CreateKeyBackupDialog_recoveryKeyButtons {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
|
@ -239,10 +239,7 @@ export default React.createClass({
|
||||||
<p>{_t("You'll need it if you log out or lose access to this device.")}</p>
|
<p>{_t("You'll need it if you log out or lose access to this device.")}</p>
|
||||||
|
|
||||||
<div className="mx_CreateKeyBackupDialog_primaryContainer">
|
<div className="mx_CreateKeyBackupDialog_primaryContainer">
|
||||||
<div className="mx_CreateKeyBackupDialog_passPhraseHelp">
|
<div className="mx_CreateKeyBackupDialog_passPhraseContainer">
|
||||||
{strengthMeter}
|
|
||||||
{helpText}
|
|
||||||
</div>
|
|
||||||
<input type="password"
|
<input type="password"
|
||||||
onChange={this._onPassPhraseChange}
|
onChange={this._onPassPhraseChange}
|
||||||
onKeyPress={this._onPassPhraseKeyPress}
|
onKeyPress={this._onPassPhraseKeyPress}
|
||||||
|
@ -250,6 +247,11 @@ export default React.createClass({
|
||||||
className="mx_CreateKeyBackupDialog_passPhraseInput"
|
className="mx_CreateKeyBackupDialog_passPhraseInput"
|
||||||
placeholder={_t("Enter a passphrase...")}
|
placeholder={_t("Enter a passphrase...")}
|
||||||
/>
|
/>
|
||||||
|
<div className="mx_CreateKeyBackupDialog_passPhraseHelp">
|
||||||
|
{strengthMeter}
|
||||||
|
{helpText}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<DialogButtons primaryButton={_t('Next')}
|
<DialogButtons primaryButton={_t('Next')}
|
||||||
|
@ -317,7 +319,7 @@ export default React.createClass({
|
||||||
"somewhere safe.",
|
"somewhere safe.",
|
||||||
)}</p>
|
)}</p>
|
||||||
<div className="mx_CreateKeyBackupDialog_primaryContainer">
|
<div className="mx_CreateKeyBackupDialog_primaryContainer">
|
||||||
{passPhraseMatch}
|
<div className="mx_CreateKeyBackupDialog_passPhraseContainer">
|
||||||
<div>
|
<div>
|
||||||
<input type="password"
|
<input type="password"
|
||||||
onChange={this._onPassPhraseConfirmChange}
|
onChange={this._onPassPhraseConfirmChange}
|
||||||
|
@ -328,6 +330,8 @@ export default React.createClass({
|
||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
{passPhraseMatch}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<DialogButtons primaryButton={_t('Next')}
|
<DialogButtons primaryButton={_t('Next')}
|
||||||
onPrimaryButtonClick={this._onPassPhraseConfirmNextClick}
|
onPrimaryButtonClick={this._onPassPhraseConfirmNextClick}
|
||||||
|
@ -351,21 +355,21 @@ export default React.createClass({
|
||||||
<p>{_t("Make a copy of this Recovery Key and keep it safe.")}</p>
|
<p>{_t("Make a copy of this Recovery Key and keep it safe.")}</p>
|
||||||
<p>{bodyText}</p>
|
<p>{bodyText}</p>
|
||||||
<p className="mx_CreateKeyBackupDialog_primaryContainer">
|
<p className="mx_CreateKeyBackupDialog_primaryContainer">
|
||||||
<div>{_t("Your Recovery Key")}</div>
|
<div className="mx_CreateKeyBackupDialog_recoveryKeyHeader">
|
||||||
|
{_t("Your Recovery Key")}
|
||||||
|
</div>
|
||||||
|
<div className="mx_CreateKeyBackupDialog_recoveryKeyContainer">
|
||||||
|
<div className="mx_CreateKeyBackupDialog_recoveryKey">
|
||||||
|
<code ref={this._collectRecoveryKeyNode}>{this._keyBackupInfo.recovery_key}</code>
|
||||||
|
</div>
|
||||||
<div className="mx_CreateKeyBackupDialog_recoveryKeyButtons">
|
<div className="mx_CreateKeyBackupDialog_recoveryKeyButtons">
|
||||||
<button onClick={this._onCopyClick}>
|
<button className="mx_Dialog_primary" onClick={this._onCopyClick}>
|
||||||
{_t("Copy to clipboard")}
|
{_t("Copy to clipboard")}
|
||||||
</button>
|
</button>
|
||||||
{
|
<button className="mx_Dialog_primary" onClick={this._onDownloadClick}>
|
||||||
// FIXME REDESIGN: buttons should be adjacent but insufficient room in current design
|
|
||||||
}
|
|
||||||
<br /><br />
|
|
||||||
<button onClick={this._onDownloadClick}>
|
|
||||||
{_t("Download")}
|
{_t("Download")}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="mx_CreateKeyBackupDialog_recoveryKey">
|
|
||||||
<code ref={this._collectRecoveryKeyNode}>{this._keyBackupInfo.recovery_key}</code>
|
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
<br />
|
<br />
|
||||||
|
|
|
@ -250,6 +250,8 @@
|
||||||
"A word by itself is easy to guess": "A word by itself is easy to guess",
|
"A word by itself is easy to guess": "A word by itself is easy to guess",
|
||||||
"Names and surnames by themselves are easy to guess": "Names and surnames by themselves are easy to guess",
|
"Names and surnames by themselves are easy to guess": "Names and surnames by themselves are easy to guess",
|
||||||
"Common names and surnames are easy to guess": "Common names and surnames are easy to guess",
|
"Common names and surnames are easy to guess": "Common names and surnames are easy to guess",
|
||||||
|
"Straight rows of keys are easy to guess": "Straight rows of keys are easy to guess",
|
||||||
|
"Short keyboard patterns are easy to guess": "Short keyboard patterns are easy to guess",
|
||||||
"There was an error joining the room": "There was an error joining the room",
|
"There was an error joining the room": "There was an error joining the room",
|
||||||
"Sorry, your homeserver is too old to participate in this room.": "Sorry, your homeserver is too old to participate in this room.",
|
"Sorry, your homeserver is too old to participate in this room.": "Sorry, your homeserver is too old to participate in this room.",
|
||||||
"Please contact your homeserver administrator.": "Please contact your homeserver administrator.",
|
"Please contact your homeserver administrator.": "Please contact your homeserver administrator.",
|
||||||
|
|
|
@ -52,6 +52,8 @@ _td("This is similar to a commonly used password");
|
||||||
_td("A word by itself is easy to guess");
|
_td("A word by itself is easy to guess");
|
||||||
_td("Names and surnames by themselves are easy to guess");
|
_td("Names and surnames by themselves are easy to guess");
|
||||||
_td("Common names and surnames are easy to guess");
|
_td("Common names and surnames are easy to guess");
|
||||||
|
_td("Straight rows of keys are easy to guess");
|
||||||
|
_td("Short keyboard patterns are easy to guess");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper around zxcvbn password strength estimation
|
* Wrapper around zxcvbn password strength estimation
|
||||||
|
|
Loading…
Reference in a new issue