mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 10:39:57 +00:00
Fix whitespace
This commit is contained in:
@@ -67,4 +67,4 @@
|
|||||||
, "options_submit": {
|
, "options_submit": {
|
||||||
"message": "Submit"
|
"message": "Submit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class EditableListItem extends React.Component {
|
|||||||
editing: this.props.editing || false
|
editing: this.props.editing || false
|
||||||
, editValue: ""
|
, editValue: ""
|
||||||
};
|
};
|
||||||
|
|
||||||
this.handleRemove = this.handleRemove.bind(this);
|
this.handleRemove = this.handleRemove.bind(this);
|
||||||
this.handleEditBegin = this.handleEditBegin.bind(this);
|
this.handleEditBegin = this.handleEditBegin.bind(this);
|
||||||
this.handleEditEnd = this.handleEditEnd.bind(this);
|
this.handleEditEnd = this.handleEditEnd.bind(this);
|
||||||
@@ -34,7 +34,7 @@ class EditableListItem extends React.Component {
|
|||||||
, editValue: this.props.text
|
, editValue: this.props.text
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
handleEditEnd (ev) {
|
handleEditEnd (ev) {
|
||||||
if (this.props.editing
|
if (this.props.editing
|
||||||
&& !this.props.itemPattern.test(this.state.editValue)) {
|
&& !this.props.itemPattern.test(this.state.editValue)) {
|
||||||
@@ -51,7 +51,7 @@ class EditableListItem extends React.Component {
|
|||||||
, editValue: ""
|
, editValue: ""
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
handleInputChange (ev) {
|
handleInputChange (ev) {
|
||||||
this.setState({
|
this.setState({
|
||||||
editValue: ev.target.value
|
editValue: ev.target.value
|
||||||
@@ -63,7 +63,7 @@ class EditableListItem extends React.Component {
|
|||||||
ev.target.setCustomValidity("");
|
ev.target.setCustomValidity("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleInputKeyPress (ev) {
|
handleInputKeyPress (ev) {
|
||||||
if (ev.key === "Enter") {
|
if (ev.key === "Enter") {
|
||||||
this.handleEditEnd({ target: ev.target });
|
this.handleEditEnd({ target: ev.target });
|
||||||
@@ -105,7 +105,7 @@ class EditableList extends React.Component {
|
|||||||
, rawView: false
|
, rawView: false
|
||||||
, rawViewValue: ""
|
, rawViewValue: ""
|
||||||
};
|
};
|
||||||
|
|
||||||
this.handleItemRemove = this.handleItemRemove.bind(this);
|
this.handleItemRemove = this.handleItemRemove.bind(this);
|
||||||
this.handleItemEdit = this.handleItemEdit.bind(this);
|
this.handleItemEdit = this.handleItemEdit.bind(this);
|
||||||
this.handleSwitchView = this.handleSwitchView.bind(this);
|
this.handleSwitchView = this.handleSwitchView.bind(this);
|
||||||
@@ -115,7 +115,7 @@ class EditableList extends React.Component {
|
|||||||
this.handleNewItemRemove = this.handleNewItemRemove.bind(this);
|
this.handleNewItemRemove = this.handleNewItemRemove.bind(this);
|
||||||
this.handleNewItemEdit = this.handleNewItemEdit.bind(this);
|
this.handleNewItemEdit = this.handleNewItemEdit.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleItemRemove (item) {
|
handleItemRemove (item) {
|
||||||
this.setState(currentState => {
|
this.setState(currentState => {
|
||||||
const newItems = new Set(currentState.items);
|
const newItems = new Set(currentState.items);
|
||||||
@@ -127,7 +127,7 @@ class EditableList extends React.Component {
|
|||||||
this.props.onListChange(Array.from(this.state.items));
|
this.props.onListChange(Array.from(this.state.items));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
handleItemEdit (item, newValue) {
|
handleItemEdit (item, newValue) {
|
||||||
this.setState(currentState => ({
|
this.setState(currentState => ({
|
||||||
items: new Set([...currentState.items]
|
items: new Set([...currentState.items]
|
||||||
@@ -136,7 +136,7 @@ class EditableList extends React.Component {
|
|||||||
this.props.onListChange(Array.from(this.state.items));
|
this.props.onListChange(Array.from(this.state.items));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSwitchView () {
|
handleSwitchView () {
|
||||||
this.setState(currentState => {
|
this.setState(currentState => {
|
||||||
if (currentState.rawView) {
|
if (currentState.rawView) {
|
||||||
@@ -178,7 +178,7 @@ class EditableList extends React.Component {
|
|||||||
this.props.onListChange(Array.from(this.state.items));
|
this.props.onListChange(Array.from(this.state.items));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
handleRawViewTextAreaChange (ev) {
|
handleRawViewTextAreaChange (ev) {
|
||||||
if (this.rawViewTextArea.scrollHeight > this.rawViewTextArea.clientHeight) {
|
if (this.rawViewTextArea.scrollHeight > this.rawViewTextArea.clientHeight) {
|
||||||
this.rawViewTextArea.style.height = `${this.rawViewTextArea.scrollHeight}px`;
|
this.rawViewTextArea.style.height = `${this.rawViewTextArea.scrollHeight}px`;
|
||||||
@@ -209,7 +209,7 @@ class EditableList extends React.Component {
|
|||||||
this.props.onListChange(Array.from(this.state.items));
|
this.props.onListChange(Array.from(this.state.items));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
const items = Array.from(this.state.items.values());
|
const items = Array.from(this.state.items.values());
|
||||||
|
|
||||||
@@ -326,7 +326,7 @@ class OptionsApp extends Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
handleInputChange (ev) {
|
handleInputChange (ev) {
|
||||||
const val = do {
|
const val = do {
|
||||||
if (ev.target.type === "checkbox") {
|
if (ev.target.type === "checkbox") {
|
||||||
|
|||||||
Reference in New Issue
Block a user