lint fixup

This commit is contained in:
Qstick
2021-11-21 18:57:22 -06:00
parent f19a81990b
commit 520d82ed20
163 changed files with 466 additions and 466 deletions

View File

@@ -68,7 +68,7 @@ class QueryParameterModal extends Component {
onInputSelectionChange = (selectionStart, selectionEnd) => {
this._selectionStart = selectionStart;
this._selectionEnd = selectionEnd;
}
};
onOptionPress = ({ isFullFilename, tokenValue }) => {
const {
@@ -96,12 +96,12 @@ class QueryParameterModal extends Component {
this._selectionStart = newValue.length - 1;
this._selectionEnd = newValue.length - 1;
}
}
};
onInputChange = ({ name, value }) => {
this.props.onSearchInputChange({ value: '' });
this.props.onInputChange({ name, value });
}
};
//
// Render

View File

@@ -24,7 +24,7 @@ class QueryParameterOption extends Component {
tokenValue = tokenValue.replace(/ /g, tokenSeparator);
onPress({ isFullFilename, tokenValue });
}
};
//
// Render

View File

@@ -108,19 +108,19 @@ class SearchFooter extends Component {
},
isQueryParameterModalOpen: true
});
}
};
onQueryParameterModalClose = () => {
this.setState({ isQueryParameterModalOpen: false });
}
};
onSearchPress = () => {
this.props.onSearchPress(this.state.searchQuery, this.state.searchIndexerIds, this.state.searchCategories, this.state.searchType);
}
};
onSearchInputChange = ({ value }) => {
this.setState({ searchQuery: value });
}
};
//
// Render

View File

@@ -37,7 +37,7 @@ class SearchFooterConnector extends Component {
onInputChange = ({ name, value }) => {
this.props.setSearchDefault({ [name]: value });
}
};
//
// Render

View File

@@ -86,14 +86,14 @@ class SearchIndex extends Component {
setScrollerRef = (ref) => {
this.setState({ scroller: ref });
}
};
getSelectedIds = () => {
if (this.state.allUnselected) {
return [];
}
return getSelectedIds(this.state.selectedState, { parseIds: false });
}
};
setSelectedState() {
const {
@@ -179,32 +179,32 @@ class SearchIndex extends Component {
onAddIndexerPress = () => {
this.setState({ isAddIndexerModalOpen: true });
}
};
onAddIndexerModalClose = ({ indexerSelected = false } = {}) => {
this.setState({
isAddIndexerModalOpen: false,
isEditIndexerModalOpen: indexerSelected
});
}
};
onEditIndexerModalClose = () => {
this.setState({ isEditIndexerModalOpen: false });
}
};
onJumpBarItemPress = (jumpToCharacter) => {
this.setState({ jumpToCharacter });
}
};
onSearchPress = (query, indexerIds, categories, type) => {
this.props.onSearchPress({ query, indexerIds, categories, type });
}
};
onBulkGrabPress = () => {
const selectedIds = this.getSelectedIds();
const result = _.filter(this.props.items, (release) => _.indexOf(selectedIds, release.guid) !== -1);
this.props.onBulkGrabPress(result);
}
};
onKeyUp = (event) => {
const jumpBarItems = this.state.jumpBarItems.order;
@@ -216,21 +216,21 @@ class SearchIndex extends Component {
this.setState({ jumpToCharacter: jumpBarItems[jumpBarItems.length - 1] });
}
}
}
};
onSelectAllChange = ({ value }) => {
this.setState(selectAll(this.state.selectedState, value));
}
};
onSelectAllPress = () => {
this.onSelectAllChange({ value: !this.state.allSelected });
}
};
onSelectedChange = ({ id, value, shiftKey = false }) => {
this.setState((state) => {
return toggleSelected(state, this.props.items, id, value, shiftKey);
});
}
};
//
// Render

View File

@@ -69,7 +69,7 @@ class SearchIndexConnector extends Component {
onScroll = ({ scrollTop }) => {
scrollPositions.movieIndex = scrollTop;
}
};
//
// Render

View File

@@ -26,11 +26,11 @@ class SearchIndexHeader extends Component {
onTableOptionsPress = () => {
this.setState({ isTableOptionsModalOpen: true });
}
};
onTableOptionsModalClose = () => {
this.setState({ isTableOptionsModalOpen: false });
}
};
//
// Render

View File

@@ -69,7 +69,7 @@ class SearchIndexRow extends Component {
guid,
indexerId
});
}
};
//
// Render

View File

@@ -74,7 +74,7 @@ class SearchIndexTable extends Component {
/>
</VirtualTableRow>
);
}
};
//
// Render