dependencies updated

This commit is contained in:
or-else
2019-06-11 17:01:11 -07:00
parent f9e78bf280
commit 821ab6a16f
13 changed files with 1659 additions and 640 deletions
+1
View File
@@ -4,6 +4,7 @@
"full_name_prompt": "Full name, e.g. John Doe",
"email_prompt": "Email, e.g. jdoe@example.com",
"button_sign_up": "Sign up",
"validate_credential_action": "confirm",
"label_your_name": "Your name",
"label_password": "Password",
"password_unchanged_prompt": "Unchanged",
+2 -1
View File
@@ -133,5 +133,6 @@
"peers_messaging_disabled": "Чат заблокирован у корреспондента.",
"enable_peers_messaging": "Разблокировать.",
"more_online_members": "+еще {overflow}",
"label_user_contacts": "Конакты:"
"label_user_contacts": "Конакты:",
"validate_credential_action": ":!![MISSING]!!:confirm"
}
+2 -1
View File
@@ -133,5 +133,6 @@
"tags_editor_no_tags": "添加一些标签",
"title_manage_tags": "管理标签",
"more_online_members": "还有{overflow}个",
"label_user_contacts": "往来:"
"label_user_contacts": "往来:",
"validate_credential_action": ":!![MISSING]!!:confirm"
}
+1
View File
@@ -5,6 +5,7 @@
"full_name_prompt": "Full name, e.g. John Doe",
"email_prompt": "Email, e.g. jdoe@example.com",
"button_sign_up": "Sign up",
"validate_credential_action": "confirm",
"label_your_name": "Your name",
"label_password": "Password",
"password_unchanged_prompt": "Unchanged",
+5 -11
View File
@@ -164,21 +164,15 @@ export default class EditAccountView extends React.Component {
}
render() {
/*
let tags = [];
this.state.tags.map((tag) => {
tags.push(<span className="badge" key={tags.length}>{tag}</span>);
});
if (tags.length == 0) {
tags = <i><FormattedMessage id="tags_not_found" /></i>;
}
*/
let credentials = [];
this.state.credentials.map((cred) => {
credentials.push(<div key={cred.meth + ":" + cred.val}>{cred.meth}: <tt>{cred.val}</tt>
<span > {!cred.done ?
<a href="javascript:;"
onClick={this.props.onCredConfirm.bind(this, cred.meth, cred.val)}>confirm</a>
<a href="javascript:;" className="clickable"
onClick={this.props.onCredConfirm.bind(this, cred.meth, cred.val)}>
<FormattedMessage id="validate_credential_action" defaultMessage="confirm"
description="Validate credentail call to action" />
</a>
: null} <a href="javascript:;" onClick={this.props.onCredDelete.bind(this, cred.meth, cred.val)}><i
className="material-icons gray">delete_outline</i></a></span></div>);
});
+1 -2
View File
@@ -954,8 +954,7 @@ class TinodeWeb extends React.Component {
}
handleCredConfirm(method, response) {
// TODO: implement
console.log("confirm credential", method, response);
handleCredentialsRequest({cred: [method]});
}
// User clicked Cancel button in Setting or Sign Up panel.
+12
View File
@@ -26,6 +26,7 @@ class ValidationView extends React.PureComponent {
this.handleChange = this.handleChange.bind(this);
this.handleKeyPress = this.handleKeyPress.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
this.handleCancel = this.handleCancel.bind(this);
}
handleChange(e) {
@@ -35,6 +36,8 @@ class ValidationView extends React.PureComponent {
handleKeyPress(e) {
if (e.key === 'Enter') {
this.handleSubmit(e);
} else if (e.key == 'Escape') {
this.handleCancel(e);
}
}
@@ -45,6 +48,12 @@ class ValidationView extends React.PureComponent {
}
}
handleCancel(e) {
e.preventDefault();
this.props.onCancel();
}
render() {
const { formatMessage } = this.props.intl;
const methods = {'email': formatMessage(messages.email), 'tel': formatMessage(messages.phone)};
@@ -72,6 +81,9 @@ class ValidationView extends React.PureComponent {
<button className="blue" onClick={this.handleSubmit}>
<FormattedMessage id="button_confirm" defaultMessage="Confirm" description="Button [Confirm]" />
</button>
<button className="white" onClick={this.handleCancel}>
<FormattedMessage id="button_cancel" />
</button>
</div>
</div>
);