diff --git a/frontend/src/Components/FileBrowser/FileBrowserModalContent.js b/frontend/src/Components/FileBrowser/FileBrowserModalContent.js index 6cf4103cd..3c8aa81a6 100644 --- a/frontend/src/Components/FileBrowser/FileBrowserModalContent.js +++ b/frontend/src/Components/FileBrowser/FileBrowserModalContent.js @@ -70,18 +70,18 @@ class FileBrowserModalContent extends Component { } else { this._scrollerNode = null; } - } + }; // // Listeners onPathInputChange = ({ value }) => { this.setState({ currentPath: value }); - } + }; onRowPress = (path) => { this.props.onFetchPaths(path); - } + }; onOkPress = () => { this.props.onChange({ @@ -91,7 +91,7 @@ class FileBrowserModalContent extends Component { this.props.onClearPaths(); this.props.onModalClose(); - } + }; // // Render diff --git a/frontend/src/Components/FileBrowser/FileBrowserModalContentConnector.js b/frontend/src/Components/FileBrowser/FileBrowserModalContentConnector.js index 1cff6cbc0..1a3a41ef0 100644 --- a/frontend/src/Components/FileBrowser/FileBrowserModalContentConnector.js +++ b/frontend/src/Components/FileBrowser/FileBrowserModalContentConnector.js @@ -78,16 +78,16 @@ class FileBrowserModalContentConnector extends Component { allowFoldersWithoutTrailingSlashes: true, includeFiles }); - } + }; onClearPaths = () => { // this.props.dispatchClearPaths(); - } + }; onModalClose = () => { this.props.dispatchClearPaths(); this.props.onModalClose(); - } + }; // // Render diff --git a/frontend/src/Components/FileBrowser/FileBrowserRow.js b/frontend/src/Components/FileBrowser/FileBrowserRow.js index 067e9a1e7..06bb3029d 100644 --- a/frontend/src/Components/FileBrowser/FileBrowserRow.js +++ b/frontend/src/Components/FileBrowser/FileBrowserRow.js @@ -28,7 +28,7 @@ class FileBrowserRow extends Component { onPress = () => { this.props.onPress(this.props.path); - } + }; // // Render diff --git a/frontend/src/Components/Filter/Builder/DateFilterBuilderRowValue.js b/frontend/src/Components/Filter/Builder/DateFilterBuilderRowValue.js index 26d879dff..6300dd917 100644 --- a/frontend/src/Components/Filter/Builder/DateFilterBuilderRowValue.js +++ b/frontend/src/Components/Filter/Builder/DateFilterBuilderRowValue.js @@ -102,7 +102,7 @@ class DateFilterBuilderRowValue extends Component { name: NAME, value: newValue }); - } + }; onTimeChange = ({ value }) => { const { @@ -117,7 +117,7 @@ class DateFilterBuilderRowValue extends Component { value: filterValue.value } }); - } + }; // // Render diff --git a/frontend/src/Components/Filter/Builder/FilterBuilderModalContent.js b/frontend/src/Components/Filter/Builder/FilterBuilderModalContent.js index 10250e2dd..d5a8c65b8 100644 --- a/frontend/src/Components/Filter/Builder/FilterBuilderModalContent.js +++ b/frontend/src/Components/Filter/Builder/FilterBuilderModalContent.js @@ -63,7 +63,7 @@ class FilterBuilderModalContent extends Component { onLabelChange = ({ value }) => { this.setState({ label: value }); - } + }; onFilterChange = (index, filter) => { const filters = [...this.state.filters]; @@ -72,7 +72,7 @@ class FilterBuilderModalContent extends Component { this.setState({ filters }); - } + }; onAddFilterPress = () => { const filters = [...this.state.filters]; @@ -81,7 +81,7 @@ class FilterBuilderModalContent extends Component { this.setState({ filters }); - } + }; onRemoveFilterPress = (index) => { const filters = [...this.state.filters]; @@ -90,7 +90,7 @@ class FilterBuilderModalContent extends Component { this.setState({ filters }); - } + }; onSaveFilterPress = () => { const { @@ -122,7 +122,7 @@ class FilterBuilderModalContent extends Component { label, filters }); - } + }; // // Render diff --git a/frontend/src/Components/Filter/Builder/FilterBuilderRow.js b/frontend/src/Components/Filter/Builder/FilterBuilderRow.js index 9add7fb3b..9365ee04c 100644 --- a/frontend/src/Components/Filter/Builder/FilterBuilderRow.js +++ b/frontend/src/Components/Filter/Builder/FilterBuilderRow.js @@ -138,7 +138,7 @@ class FilterBuilderRow extends Component { this.selectedFilterBuilderProp = selectedFilterBuilderProp; onFilterChange(index, filter); - } + }; onFilterChange = ({ name, value }) => { const { @@ -158,7 +158,7 @@ class FilterBuilderRow extends Component { filter[name] = value; onFilterChange(index, filter); - } + }; onAddPress = () => { const { @@ -167,7 +167,7 @@ class FilterBuilderRow extends Component { } = this.props; onAddPress(index); - } + }; onRemovePress = () => { const { @@ -176,7 +176,7 @@ class FilterBuilderRow extends Component { } = this.props; onRemovePress(index); - } + }; // // Render diff --git a/frontend/src/Components/Filter/Builder/FilterBuilderRowValue.js b/frontend/src/Components/Filter/Builder/FilterBuilderRowValue.js index 0c36e1810..68fa5c557 100644 --- a/frontend/src/Components/Filter/Builder/FilterBuilderRowValue.js +++ b/frontend/src/Components/Filter/Builder/FilterBuilderRowValue.js @@ -84,7 +84,7 @@ class FilterBuilderRowValue extends Component { name: NAME, value: [...filterValue, value] }); - } + }; onTagDelete = ({ index }) => { const { @@ -98,7 +98,7 @@ class FilterBuilderRowValue extends Component { name: NAME, value }); - } + }; // // Render diff --git a/frontend/src/Components/Filter/Builder/IndexerFilterBuilderRowValueConnector.js b/frontend/src/Components/Filter/Builder/IndexerFilterBuilderRowValueConnector.js index f9b7b7e95..bb4e594cc 100644 --- a/frontend/src/Components/Filter/Builder/IndexerFilterBuilderRowValueConnector.js +++ b/frontend/src/Components/Filter/Builder/IndexerFilterBuilderRowValueConnector.js @@ -47,7 +47,7 @@ class IndexerFilterBuilderRowValueConnector extends Component { if (!this.props.isPopulated) { this.props.dispatchFetchIndexers(); } - } + }; // // Render diff --git a/frontend/src/Components/Filter/CustomFilters/CustomFilter.js b/frontend/src/Components/Filter/CustomFilters/CustomFilter.js index 8c0ae2170..7407f729a 100644 --- a/frontend/src/Components/Filter/CustomFilters/CustomFilter.js +++ b/frontend/src/Components/Filter/CustomFilters/CustomFilter.js @@ -55,7 +55,7 @@ class CustomFilter extends Component { } = this.props; onEditPress(id); - } + }; onRemovePress = () => { const { @@ -67,7 +67,7 @@ class CustomFilter extends Component { dispatchDeleteCustomFilter({ id }); }); - } + }; // // Render diff --git a/frontend/src/Components/Filter/FilterModal.js b/frontend/src/Components/Filter/FilterModal.js index 729f380e7..d52362d7b 100644 --- a/frontend/src/Components/Filter/FilterModal.js +++ b/frontend/src/Components/Filter/FilterModal.js @@ -25,14 +25,14 @@ class FilterModal extends Component { this.setState({ filterBuilder: true }); - } + }; onEditCustomFilter = (id) => { this.setState({ filterBuilder: true, id }); - } + }; onCancelPress = () => { if (this.state.filterBuilder) { @@ -43,7 +43,7 @@ class FilterModal extends Component { } else { this.onModalClose(); } - } + }; onModalClose = () => { this.setState({ @@ -52,7 +52,7 @@ class FilterModal extends Component { }, () => { this.props.onModalClose(); }); - } + }; // // Render diff --git a/frontend/src/Components/Form/AppProfileSelectInputConnector.js b/frontend/src/Components/Form/AppProfileSelectInputConnector.js index 44a81aaca..fc40e9d3c 100644 --- a/frontend/src/Components/Form/AppProfileSelectInputConnector.js +++ b/frontend/src/Components/Form/AppProfileSelectInputConnector.js @@ -69,7 +69,7 @@ class AppProfileSelectInputConnector extends Component { onChange = ({ name, value }) => { this.props.onChange({ name, value: parseInt(value) }); - } + }; // // Render diff --git a/frontend/src/Components/Form/AutoCompleteInput.js b/frontend/src/Components/Form/AutoCompleteInput.js index b12017f8a..d35969c4c 100644 --- a/frontend/src/Components/Form/AutoCompleteInput.js +++ b/frontend/src/Components/Form/AutoCompleteInput.js @@ -35,11 +35,11 @@ class AutoCompleteInput extends Component { name: this.props.name, value: newValue }); - } + }; onInputBlur = () => { this.setState({ suggestions: [] }); - } + }; onSuggestionsFetchRequested = ({ value }) => { const { values } = this.props; @@ -50,11 +50,11 @@ class AutoCompleteInput extends Component { }); this.setState({ suggestions: filteredValues }); - } + }; onSuggestionsClearRequested = () => { this.setState({ suggestions: [] }); - } + }; // // Render diff --git a/frontend/src/Components/Form/AutoSuggestInput.js b/frontend/src/Components/Form/AutoSuggestInput.js index f6e6c28fd..34ec7530b 100644 --- a/frontend/src/Components/Form/AutoSuggestInput.js +++ b/frontend/src/Components/Form/AutoSuggestInput.js @@ -49,7 +49,7 @@ class AutoSuggestInput extends Component { }} ); - } + }; renderSuggestionsContainer = ({ containerProps, children }) => { return ( @@ -90,7 +90,7 @@ class AutoSuggestInput extends Component { ); - } + }; // // Listeners @@ -113,14 +113,14 @@ class AutoSuggestInput extends Component { data.styles.width = width; return data; - } + }; onInputChange = (event, { newValue }) => { this.props.onChange({ name: this.props.name, value: newValue }); - } + }; onInputKeyDown = (event) => { const { @@ -144,7 +144,7 @@ class AutoSuggestInput extends Component { }); } } - } + }; // // Render diff --git a/frontend/src/Components/Form/CaptchaInputConnector.js b/frontend/src/Components/Form/CaptchaInputConnector.js index d29c33757..ad83bf02f 100644 --- a/frontend/src/Components/Form/CaptchaInputConnector.js +++ b/frontend/src/Components/Form/CaptchaInputConnector.js @@ -39,7 +39,7 @@ class CaptchaInputConnector extends Component { componentWillUnmount = () => { this.props.resetCaptcha(); - } + }; // // Listeners @@ -51,7 +51,7 @@ class CaptchaInputConnector extends Component { } = this.props; this.props.refreshCaptcha({ provider, providerData }); - } + }; onCaptchaChange = (captchaResponse) => { // If the captcha has expired `captchaResponse` will be null. @@ -68,7 +68,7 @@ class CaptchaInputConnector extends Component { } = this.props; this.props.getCaptchaCookie({ provider, providerData, captchaResponse }); - } + }; // // Render diff --git a/frontend/src/Components/Form/CardigannCaptchaInputConnector.js b/frontend/src/Components/Form/CardigannCaptchaInputConnector.js index 728755bd9..f77a17de6 100644 --- a/frontend/src/Components/Form/CardigannCaptchaInputConnector.js +++ b/frontend/src/Components/Form/CardigannCaptchaInputConnector.js @@ -31,7 +31,7 @@ class CardigannCaptchaInputConnector extends Component { componentWillUnmount = () => { this.props.resetCaptcha(); - } + }; // // Listeners @@ -48,7 +48,7 @@ class CardigannCaptchaInputConnector extends Component { this.props.resetCaptcha(); this.props.refreshCaptcha({ provider, providerData }); - } + }; // // Render diff --git a/frontend/src/Components/Form/CheckInput.js b/frontend/src/Components/Form/CheckInput.js index f3769a420..26d915880 100644 --- a/frontend/src/Components/Form/CheckInput.js +++ b/frontend/src/Components/Form/CheckInput.js @@ -59,14 +59,14 @@ class CheckInput extends Component { shiftKey }); } - } + }; // // Listeners setRef = (ref) => { this._checkbox = ref; - } + }; onClick = (event) => { if (this.props.isDisabled) { @@ -78,14 +78,14 @@ class CheckInput extends Component { event.preventDefault(); this.toggleChecked(checked, shiftKey); - } + }; onChange = (event) => { const checked = event.target.checked; const shiftKey = event.nativeEvent.shiftKey; this.toggleChecked(checked, shiftKey); - } + }; // // Render diff --git a/frontend/src/Components/Form/DeviceInput.js b/frontend/src/Components/Form/DeviceInput.js index cb250c3d1..55c239cb8 100644 --- a/frontend/src/Components/Form/DeviceInput.js +++ b/frontend/src/Components/Form/DeviceInput.js @@ -23,7 +23,7 @@ class DeviceInput extends Component { name, value: [...value, deviceId] }); - } + }; onTagDelete = ({ index }) => { const { @@ -39,7 +39,7 @@ class DeviceInput extends Component { name, value: newValue }); - } + }; // // Render diff --git a/frontend/src/Components/Form/DeviceInputConnector.js b/frontend/src/Components/Form/DeviceInputConnector.js index 4e3281169..2af9a79f6 100644 --- a/frontend/src/Components/Form/DeviceInputConnector.js +++ b/frontend/src/Components/Form/DeviceInputConnector.js @@ -48,11 +48,11 @@ class DeviceInputConnector extends Component { componentDidMount = () => { this._populate(); - } + }; componentWillUnmount = () => { this.props.dispatchClearOptions({ section: 'devices' }); - } + }; // // Control @@ -77,7 +77,7 @@ class DeviceInputConnector extends Component { onRefreshPress = () => { this._populate(); - } + }; // // Render diff --git a/frontend/src/Components/Form/EnhancedSelectInput.js b/frontend/src/Components/Form/EnhancedSelectInput.js index 8de415dba..fd8e48b9b 100644 --- a/frontend/src/Components/Form/EnhancedSelectInput.js +++ b/frontend/src/Components/Form/EnhancedSelectInput.js @@ -149,7 +149,7 @@ class EnhancedSelectInput extends Component { } return data; - } + }; onWindowClick = (event) => { const button = document.getElementById(this._buttonId); @@ -168,14 +168,14 @@ class EnhancedSelectInput extends Component { this.setState({ isOpen: false }); this._removeListener(); } - } + }; onFocus = () => { if (this.state.isOpen) { this._removeListener(); this.setState({ isOpen: false }); } - } + }; onBlur = () => { if (!this.props.isEditable) { @@ -186,7 +186,7 @@ class EnhancedSelectInput extends Component { this.setState({ selectedIndex: origIndex }); } } - } + }; onKeyDown = (event) => { const { @@ -253,7 +253,7 @@ class EnhancedSelectInput extends Component { if (!_.isEmpty(newState)) { this.setState(newState); } - } + }; onPress = () => { if (this.state.isOpen) { @@ -267,7 +267,7 @@ class EnhancedSelectInput extends Component { } this.setState({ isOpen: !this.state.isOpen }); - } + }; onSelect = (value) => { if (Array.isArray(this.props.value)) { @@ -291,15 +291,15 @@ class EnhancedSelectInput extends Component { value }); } - } + }; onMeasure = ({ width }) => { this.setState({ width }); - } + }; onOptionsModalClose = () => { this.setState({ isOpen: false }); - } + }; // // Render diff --git a/frontend/src/Components/Form/EnhancedSelectInputConnector.js b/frontend/src/Components/Form/EnhancedSelectInputConnector.js index 0311a920c..81f792083 100644 --- a/frontend/src/Components/Form/EnhancedSelectInputConnector.js +++ b/frontend/src/Components/Form/EnhancedSelectInputConnector.js @@ -73,7 +73,7 @@ class EnhancedSelectInputConnector extends Component { componentDidMount = () => { this._populate(); - } + }; componentDidUpdate = (prevProps) => { const prevKey = getProviderDataKey(prevProps.providerData); @@ -82,11 +82,11 @@ class EnhancedSelectInputConnector extends Component { if (!_.isEqual(prevKey, nextKey)) { this.setState({ refetchRequired: true }); } - } + }; componentWillUnmount = () => { this._cleanup(); - } + }; // // Listeners @@ -95,7 +95,7 @@ class EnhancedSelectInputConnector extends Component { if (this.state.refetchRequired) { this._populate(); } - } + }; // // Control diff --git a/frontend/src/Components/Form/EnhancedSelectInputOption.js b/frontend/src/Components/Form/EnhancedSelectInputOption.js index 04d448aa7..b2783dbaa 100644 --- a/frontend/src/Components/Form/EnhancedSelectInputOption.js +++ b/frontend/src/Components/Form/EnhancedSelectInputOption.js @@ -21,11 +21,11 @@ class EnhancedSelectInputOption extends Component { } = this.props; onSelect(id); - } + }; onCheckPress = () => { // CheckInput requires a handler. Swallow the change event because onPress will already handle it via event propagation. - } + }; // // Render diff --git a/frontend/src/Components/Form/IndexerFlagsSelectInputConnector.js b/frontend/src/Components/Form/IndexerFlagsSelectInputConnector.js index 588488c29..8d5c44193 100644 --- a/frontend/src/Components/Form/IndexerFlagsSelectInputConnector.js +++ b/frontend/src/Components/Form/IndexerFlagsSelectInputConnector.js @@ -43,7 +43,7 @@ class IndexerFlagsSelectInputConnector extends Component { }); this.props.onChange({ name, value: indexerFlags }); - } + }; // // Render diff --git a/frontend/src/Components/Form/IndexersSelectInputConnector.js b/frontend/src/Components/Form/IndexersSelectInputConnector.js index 8e596650f..bc411d5cc 100644 --- a/frontend/src/Components/Form/IndexersSelectInputConnector.js +++ b/frontend/src/Components/Form/IndexersSelectInputConnector.js @@ -43,7 +43,7 @@ class IndexersSelectInputConnector extends Component { onChange = ({ name, value }) => { this.props.onChange({ name, value }); - } + }; // // Render diff --git a/frontend/src/Components/Form/KeyValueListInput.js b/frontend/src/Components/Form/KeyValueListInput.js index 1b7f06049..36f25c508 100644 --- a/frontend/src/Components/Form/KeyValueListInput.js +++ b/frontend/src/Components/Form/KeyValueListInput.js @@ -39,7 +39,7 @@ class KeyValueListInput extends Component { name, value: newValue }); - } + }; onRemoveItem = (index) => { const { @@ -55,13 +55,13 @@ class KeyValueListInput extends Component { name, value: newValue }); - } + }; onFocus = () => { this.setState({ isFocused: true }); - } + }; onBlur = () => { this.setState({ @@ -88,7 +88,7 @@ class KeyValueListInput extends Component { value: newValue }); } - } + }; // // Render diff --git a/frontend/src/Components/Form/KeyValueListInputItem.js b/frontend/src/Components/Form/KeyValueListInputItem.js index cf20bb547..5379c2129 100644 --- a/frontend/src/Components/Form/KeyValueListInputItem.js +++ b/frontend/src/Components/Form/KeyValueListInputItem.js @@ -18,7 +18,7 @@ class KeyValueListInputItem extends Component { } = this.props; onChange(index, { key: keyValue, value }); - } + }; onValueChange = ({ value }) => { // TODO: Validate here or validate at a lower level component @@ -30,7 +30,7 @@ class KeyValueListInputItem extends Component { } = this.props; onChange(index, { key: keyValue, value }); - } + }; onRemovePress = () => { const { @@ -39,15 +39,15 @@ class KeyValueListInputItem extends Component { } = this.props; onRemove(index); - } + }; onFocus = () => { this.props.onFocus(); - } + }; onBlur = () => { this.props.onBlur(); - } + }; // // Render diff --git a/frontend/src/Components/Form/NewznabCategorySelectInputConnector.js b/frontend/src/Components/Form/NewznabCategorySelectInputConnector.js index 2c1ac58b9..d9cd3d178 100644 --- a/frontend/src/Components/Form/NewznabCategorySelectInputConnector.js +++ b/frontend/src/Components/Form/NewznabCategorySelectInputConnector.js @@ -42,7 +42,7 @@ class IndexersSelectInputConnector extends Component { onChange = ({ name, value }) => { this.props.onChange({ name, value }); - } + }; // // Render diff --git a/frontend/src/Components/Form/NumberInput.js b/frontend/src/Components/Form/NumberInput.js index c4ecc7e86..8db1cd7b6 100644 --- a/frontend/src/Components/Form/NumberInput.js +++ b/frontend/src/Components/Form/NumberInput.js @@ -59,11 +59,11 @@ class NumberInput extends Component { value: parseValue(this.props, value) }); - } + }; onFocus = () => { this.setState({ isFocused: true }); - } + }; onBlur = () => { const { @@ -88,7 +88,7 @@ class NumberInput extends Component { name, value: parsedValue }); - } + }; // // Render diff --git a/frontend/src/Components/Form/OAuthInputConnector.js b/frontend/src/Components/Form/OAuthInputConnector.js index ff9edfa7d..1567c7e6c 100644 --- a/frontend/src/Components/Form/OAuthInputConnector.js +++ b/frontend/src/Components/Form/OAuthInputConnector.js @@ -41,7 +41,7 @@ class OAuthInputConnector extends Component { componentWillUnmount = () => { this.props.resetOAuth(); - } + }; // // Listeners @@ -60,7 +60,7 @@ class OAuthInputConnector extends Component { providerData, section }); - } + }; // // Render diff --git a/frontend/src/Components/Form/PathInput.js b/frontend/src/Components/Form/PathInput.js index 5e4e61879..972d8f99f 100644 --- a/frontend/src/Components/Form/PathInput.js +++ b/frontend/src/Components/Form/PathInput.js @@ -62,7 +62,7 @@ class PathInput extends Component { onInputChange = ({ value }) => { this.setState({ value }); - } + }; onInputKeyDown = (event) => { if (event.key === 'Tab') { @@ -80,7 +80,7 @@ class PathInput extends Component { } } } - } + }; onInputBlur = () => { this.props.onChange({ @@ -89,28 +89,28 @@ class PathInput extends Component { }); this.props.onClearPaths(); - } + }; onSuggestionsFetchRequested = ({ value }) => { this.props.onFetchPaths(value); - } + }; onSuggestionsClearRequested = () => { // Required because props aren't always rendered, but no-op // because we don't want to reset the paths after a path is selected. - } + }; onSuggestionSelected = (event, { suggestionValue }) => { this.props.onFetchPaths(suggestionValue); - } + }; onFileBrowserOpenPress = () => { this.setState({ isFileBrowserModalOpen: true }); - } + }; onFileBrowserModalClose = () => { this.setState({ isFileBrowserModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Components/Form/PathInputConnector.js b/frontend/src/Components/Form/PathInputConnector.js index 9e72f5c70..3917a8d3f 100644 --- a/frontend/src/Components/Form/PathInputConnector.js +++ b/frontend/src/Components/Form/PathInputConnector.js @@ -47,11 +47,11 @@ class PathInputConnector extends Component { path, includeFiles }); - } + }; onClearPaths = () => { this.props.dispatchClearPaths(); - } + }; // // Render diff --git a/frontend/src/Components/Form/SelectInput.js b/frontend/src/Components/Form/SelectInput.js index 8cd0fcee3..0a60ffe1e 100644 --- a/frontend/src/Components/Form/SelectInput.js +++ b/frontend/src/Components/Form/SelectInput.js @@ -13,7 +13,7 @@ class SelectInput extends Component { name: this.props.name, value: event.target.value }); - } + }; // // Render diff --git a/frontend/src/Components/Form/TagInput.js b/frontend/src/Components/Form/TagInput.js index 7c0e9ae73..0dd21e0ee 100644 --- a/frontend/src/Components/Form/TagInput.js +++ b/frontend/src/Components/Form/TagInput.js @@ -49,7 +49,7 @@ class TagInput extends Component { _setAutosuggestRef = (ref) => { this._autosuggestRef = ref; - } + }; getSuggestionValue({ name }) { return name; @@ -57,7 +57,7 @@ class TagInput extends Component { shouldRenderSuggestions = (value) => { return value.length >= this.props.minQueryLength; - } + }; renderSuggestion({ name }) { return name; @@ -70,14 +70,14 @@ class TagInput extends Component { value: '', suggestions: [] }); - }, 250, { leading: true, trailing: false }) + }, 250, { leading: true, trailing: false }); // // Listeners onInputContainerPress = () => { this._autosuggestRef.input.focus(); - } + }; onInputChange = (event, { newValue, method }) => { const value = _.isObject(newValue) ? newValue.name : newValue; @@ -85,7 +85,7 @@ class TagInput extends Component { if (method === 'type') { this.setState({ value }); } - } + }; onInputKeyDown = (event) => { const { @@ -125,11 +125,11 @@ class TagInput extends Component { event.preventDefault(); } } - } + }; onInputFocus = () => { this.setState({ isFocused: true }); - } + }; onInputBlur = () => { this.setState({ isFocused: false }); @@ -153,7 +153,7 @@ class TagInput extends Component { if (tag) { this.addTag(tag); } - } + }; onSuggestionsFetchRequested = ({ value }) => { const lowerCaseValue = value.toLowerCase(); @@ -170,16 +170,16 @@ class TagInput extends Component { }); this.setState({ suggestions }); - } + }; onSuggestionsClearRequested = () => { // Required because props aren't always rendered, but no-op // because we don't want to reset the paths after a path is selected. - } + }; onSuggestionSelected = (event, { suggestion }) => { this.addTag(suggestion); - } + }; // // Render @@ -204,7 +204,7 @@ class TagInput extends Component { onInputContainerPress={this.onInputContainerPress} /> ); - } + }; render() { const { diff --git a/frontend/src/Components/Form/TagInputConnector.js b/frontend/src/Components/Form/TagInputConnector.js index 5265e9e4f..9504a2d73 100644 --- a/frontend/src/Components/Form/TagInputConnector.js +++ b/frontend/src/Components/Form/TagInputConnector.js @@ -101,7 +101,7 @@ class TagInputConnector extends Component { newValue.push(tag.id); this.props.onChange({ name, value: newValue }); - } + }; onTagDelete = ({ index }) => { const { @@ -116,7 +116,7 @@ class TagInputConnector extends Component { name, value: newValue }); - } + }; onTagCreated = (tag) => { const { @@ -128,7 +128,7 @@ class TagInputConnector extends Component { newValue.push(tag.id); this.props.onChange({ name, value: newValue }); - } + }; // // Render diff --git a/frontend/src/Components/Form/TagInputInput.js b/frontend/src/Components/Form/TagInputInput.js index 3e28830e9..e28eb3c40 100644 --- a/frontend/src/Components/Form/TagInputInput.js +++ b/frontend/src/Components/Form/TagInputInput.js @@ -19,7 +19,7 @@ class TagInputInput extends Component { } onInputContainerPress(); - } + }; render() { const { diff --git a/frontend/src/Components/Form/TagInputTag.js b/frontend/src/Components/Form/TagInputTag.js index d7b906ce3..1a012eabe 100644 --- a/frontend/src/Components/Form/TagInputTag.js +++ b/frontend/src/Components/Form/TagInputTag.js @@ -22,7 +22,7 @@ class TagInputTag extends Component { index, id: tag.id }); - } + }; // // Render diff --git a/frontend/src/Components/Form/TagSelectInputConnector.js b/frontend/src/Components/Form/TagSelectInputConnector.js index 71d7c4f06..23afe6da1 100644 --- a/frontend/src/Components/Form/TagSelectInputConnector.js +++ b/frontend/src/Components/Form/TagSelectInputConnector.js @@ -60,7 +60,7 @@ class TagSelectInputConnector extends Component { } this.props.onChange({ name, value: newValue }); - } + }; onTagDelete = ({ index }) => { const { @@ -75,7 +75,7 @@ class TagSelectInputConnector extends Component { name, value: newValue }); - } + }; // // Render diff --git a/frontend/src/Components/Form/TextArea.js b/frontend/src/Components/Form/TextArea.js index 5da04dc78..44fd3a249 100644 --- a/frontend/src/Components/Form/TextArea.js +++ b/frontend/src/Components/Form/TextArea.js @@ -35,7 +35,7 @@ class TextArea extends Component { setInputRef = (ref) => { this._input = ref; - } + }; selectionChange() { if (this._selectionTimeout) { @@ -75,7 +75,7 @@ class TextArea extends Component { }; onChange(payload); - } + }; onFocus = (event) => { if (this.props.onFocus) { @@ -83,19 +83,19 @@ class TextArea extends Component { } this.selectionChange(); - } + }; onKeyUp = () => { this.selectionChange(); - } + }; onMouseDown = () => { this._isMouseTarget = true; - } + }; onMouseUp = () => { this.selectionChange(); - } + }; onDocumentMouseUp = () => { if (this._isMouseTarget) { @@ -103,7 +103,7 @@ class TextArea extends Component { } this._isMouseTarget = false; - } + }; // // Render diff --git a/frontend/src/Components/Form/TextInput.js b/frontend/src/Components/Form/TextInput.js index a1831ed33..e2808ce54 100644 --- a/frontend/src/Components/Form/TextInput.js +++ b/frontend/src/Components/Form/TextInput.js @@ -35,7 +35,7 @@ class TextInput extends Component { setInputRef = (ref) => { this._input = ref; - } + }; selectionChange() { if (this._selectionTimeout) { @@ -82,7 +82,7 @@ class TextInput extends Component { } onChange(payload); - } + }; onFocus = (event) => { if (this.props.onFocus) { @@ -90,19 +90,19 @@ class TextInput extends Component { } this.selectionChange(); - } + }; onKeyUp = () => { this.selectionChange(); - } + }; onMouseDown = () => { this._isMouseTarget = true; - } + }; onMouseUp = () => { this.selectionChange(); - } + }; onDocumentMouseUp = () => { if (this._isMouseTarget) { @@ -110,7 +110,7 @@ class TextInput extends Component { } this._isMouseTarget = false; - } + }; // // Render diff --git a/frontend/src/Components/Form/TextTagInputConnector.js b/frontend/src/Components/Form/TextTagInputConnector.js index 587066610..cba307e26 100644 --- a/frontend/src/Components/Form/TextTagInputConnector.js +++ b/frontend/src/Components/Form/TextTagInputConnector.js @@ -53,7 +53,7 @@ class TextTagInputConnector extends Component { }); onChange({ name, value: newValue.join(',') }); - } + }; onTagDelete = ({ index }) => { const { @@ -69,7 +69,7 @@ class TextTagInputConnector extends Component { name, value: newValue.join(',') }); - } + }; // // Render diff --git a/frontend/src/Components/Link/ClipboardButton.js b/frontend/src/Components/Link/ClipboardButton.js index c2d2ef3a1..55843f05f 100644 --- a/frontend/src/Components/Link/ClipboardButton.js +++ b/frontend/src/Components/Link/ClipboardButton.js @@ -63,7 +63,7 @@ class ClipboardButton extends Component { showSuccess: false, showError: false }); - } + }; // // Listeners @@ -72,13 +72,13 @@ class ClipboardButton extends Component { this.setState({ showSuccess: true }); - } + }; onError = () => { this.setState({ showError: true }); - } + }; // // Render diff --git a/frontend/src/Components/Link/Link.js b/frontend/src/Components/Link/Link.js index 1ad8fabf6..3a582e217 100644 --- a/frontend/src/Components/Link/Link.js +++ b/frontend/src/Components/Link/Link.js @@ -18,7 +18,7 @@ class Link extends Component { if (!isDisabled && onPress) { onPress(event); } - } + }; // // Render diff --git a/frontend/src/Components/Link/SpinnerErrorButton.js b/frontend/src/Components/Link/SpinnerErrorButton.js index b83210c76..81d34f7c2 100644 --- a/frontend/src/Components/Link/SpinnerErrorButton.js +++ b/frontend/src/Components/Link/SpinnerErrorButton.js @@ -90,7 +90,7 @@ class SpinnerErrorButton extends Component { hasWarning: false, hasError: false }); - } + }; // // Render diff --git a/frontend/src/Components/Measure.js b/frontend/src/Components/Measure.js index a2f113de7..c41187fbf 100644 --- a/frontend/src/Components/Measure.js +++ b/frontend/src/Components/Measure.js @@ -17,7 +17,7 @@ class Measure extends Component { onMeasure = _.debounce((payload) => { this.props.onMeasure(payload); - }, 250, { leading: true, trailing: false }) + }, 250, { leading: true, trailing: false }); // // Render diff --git a/frontend/src/Components/Menu/FilterMenu.js b/frontend/src/Components/Menu/FilterMenu.js index 5238fd6c6..f1be6a7cd 100644 --- a/frontend/src/Components/Menu/FilterMenu.js +++ b/frontend/src/Components/Menu/FilterMenu.js @@ -25,11 +25,11 @@ class FilterMenu extends Component { onCustomFiltersPress = () => { this.setState({ isFilterModalOpen: true }); - } + }; onFiltersModalClose = () => { this.setState({ isFilterModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Components/Menu/FilterMenuItem.js b/frontend/src/Components/Menu/FilterMenuItem.js index d2c495187..85ac48c78 100644 --- a/frontend/src/Components/Menu/FilterMenuItem.js +++ b/frontend/src/Components/Menu/FilterMenuItem.js @@ -14,7 +14,7 @@ class FilterMenuItem extends Component { } = this.props; onPress(filterKey); - } + }; // // Render diff --git a/frontend/src/Components/Menu/Menu.js b/frontend/src/Components/Menu/Menu.js index 4cf21f0d9..7e5e0b672 100644 --- a/frontend/src/Components/Menu/Menu.js +++ b/frontend/src/Components/Menu/Menu.js @@ -124,7 +124,7 @@ class Menu extends Component { this.setState({ isMenuOpen: false }); this._removeListener(); } - } + }; onTouchStart = (event) => { const menuButton = document.getElementById(this._menuButtonId); @@ -148,17 +148,17 @@ class Menu extends Component { this.setState({ isMenuOpen: false }); this._removeListener(); } - } + }; onWindowResize = () => { this.setMaxHeight(); - } + }; onWindowScroll = (event) => { if (this.state.isMenuOpen) { this.setMaxHeight(); } - } + }; onMenuButtonPress = () => { const state = { @@ -173,7 +173,7 @@ class Menu extends Component { } this.setState(state); - } + }; // // Render diff --git a/frontend/src/Components/Menu/SearchMenuItem.js b/frontend/src/Components/Menu/SearchMenuItem.js index e9a75c9b2..151fbcd14 100644 --- a/frontend/src/Components/Menu/SearchMenuItem.js +++ b/frontend/src/Components/Menu/SearchMenuItem.js @@ -14,7 +14,7 @@ class SearchMenuItem extends Component { } = this.props; onPress(name); - } + }; // // Render diff --git a/frontend/src/Components/Menu/SelectedMenuItem.js b/frontend/src/Components/Menu/SelectedMenuItem.js index 325b4a134..b80f4f305 100644 --- a/frontend/src/Components/Menu/SelectedMenuItem.js +++ b/frontend/src/Components/Menu/SelectedMenuItem.js @@ -17,7 +17,7 @@ class SelectedMenuItem extends Component { } = this.props; onPress(name); - } + }; // // Render diff --git a/frontend/src/Components/Modal/Modal.js b/frontend/src/Components/Modal/Modal.js index 0ba1690ff..6868d70b3 100644 --- a/frontend/src/Components/Modal/Modal.js +++ b/frontend/src/Components/Modal/Modal.js @@ -66,7 +66,7 @@ class Modal extends Component { _setBackgroundRef = (ref) => { this._backgroundRef = ref; - } + }; _openModal() { openModals.push(this._modalId); @@ -131,7 +131,7 @@ class Modal extends Component { onBackdropBeginPress = (event) => { this._isBackdropPressed = this._isBackdropTarget(event); - } + }; onBackdropEndPress = (event) => { const { @@ -148,7 +148,7 @@ class Modal extends Component { } this._isBackdropPressed = false; - } + }; onKeyDown = (event) => { const keyCode = event.keyCode; @@ -161,7 +161,7 @@ class Modal extends Component { this.props.onModalClose(); } } - } + }; // // Render diff --git a/frontend/src/Components/Page/Header/IndexerSearchInput.js b/frontend/src/Components/Page/Header/IndexerSearchInput.js index b869ddc14..4293788ab 100644 --- a/frontend/src/Components/Page/Header/IndexerSearchInput.js +++ b/frontend/src/Components/Page/Header/IndexerSearchInput.js @@ -36,12 +36,12 @@ class IndexerSearchInput extends Component { setAutosuggestRef = (ref) => { this._autosuggest = ref; - } + }; focusInput = (event) => { event.preventDefault(); this._autosuggest.input.focus(); - } + }; getSectionSuggestions(section) { return section.suggestions; @@ -102,7 +102,7 @@ class IndexerSearchInput extends Component { } this.setState({ value: newValue }); - } + }; onKeyDown = (event) => { if (event.shiftKey || event.altKey || event.ctrlKey) { @@ -137,31 +137,31 @@ class IndexerSearchInput extends Component { this._autosuggest.input.blur(); this.reset(); - } + }; onBlur = () => { this.reset(); - } + }; onSuggestionsClearRequested = () => { this.setState({ suggestions: [], loading: false }); - } + }; onSuggestionsFetchRequested = () => { this.setState({ suggestions: [], loading: false }); - } + }; onSuggestionSelected = (event, { suggestion }) => { if (suggestion.type === ADD_NEW_TYPE) { this.props.onGoToAddNewMovie(this.state.value); } - } + }; // // Render diff --git a/frontend/src/Components/Page/Header/PageHeader.js b/frontend/src/Components/Page/Header/PageHeader.js index e3865fae9..22e71ca4c 100644 --- a/frontend/src/Components/Page/Header/PageHeader.js +++ b/frontend/src/Components/Page/Header/PageHeader.js @@ -32,14 +32,14 @@ class PageHeader extends Component { onOpenKeyboardShortcutsModal = () => { this.setState({ isKeyboardShortcutsModalOpen: true }); - } + }; // // Listeners onKeyboardShortcutsModalClose = () => { this.setState({ isKeyboardShortcutsModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Components/Page/Header/PageHeaderActionsMenuConnector.js b/frontend/src/Components/Page/Header/PageHeaderActionsMenuConnector.js index 66d131521..3aba95065 100644 --- a/frontend/src/Components/Page/Header/PageHeaderActionsMenuConnector.js +++ b/frontend/src/Components/Page/Header/PageHeaderActionsMenuConnector.js @@ -28,11 +28,11 @@ class PageHeaderActionsMenuConnector extends Component { onRestartPress = () => { this.props.restart(); - } + }; onShutdownPress = () => { this.props.shutdown(); - } + }; // // Render diff --git a/frontend/src/Components/Page/Page.js b/frontend/src/Components/Page/Page.js index e0ad15203..dce638e4a 100644 --- a/frontend/src/Components/Page/Page.js +++ b/frontend/src/Components/Page/Page.js @@ -54,15 +54,15 @@ class Page extends Component { width: window.innerWidth, height: window.innerHeight }); - } + }; onUpdatedModalClose = () => { this.setState({ isUpdatedModalOpen: false }); - } + }; onConnectionLostModalClose = () => { this.setState({ isConnectionLostModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Components/Page/PageConnector.js b/frontend/src/Components/Page/PageConnector.js index b2f026801..0f826fd68 100644 --- a/frontend/src/Components/Page/PageConnector.js +++ b/frontend/src/Components/Page/PageConnector.js @@ -232,7 +232,7 @@ class PageConnector extends Component { onSidebarToggle = () => { this.props.onSidebarVisibleChange(!this.props.isSidebarVisible); - } + }; // // Render diff --git a/frontend/src/Components/Page/PageContentBody.js b/frontend/src/Components/Page/PageContentBody.js index 5e238ae79..69b6c79d5 100644 --- a/frontend/src/Components/Page/PageContentBody.js +++ b/frontend/src/Components/Page/PageContentBody.js @@ -27,7 +27,7 @@ class PageContentBody extends Component { if (this.props.onScroll && !isLocked()) { onScroll(props); } - } + }; // // Render diff --git a/frontend/src/Components/Page/PageJumpBar.js b/frontend/src/Components/Page/PageJumpBar.js index bdf7dc28f..d6bf8516c 100644 --- a/frontend/src/Components/Page/PageJumpBar.js +++ b/frontend/src/Components/Page/PageJumpBar.js @@ -101,7 +101,7 @@ class PageJumpBar extends Component { onMeasure = ({ height }) => { this.setState({ height }); - } + }; // // Render diff --git a/frontend/src/Components/Page/PageJumpBarItem.js b/frontend/src/Components/Page/PageJumpBarItem.js index aeffe4ddd..daee9837a 100644 --- a/frontend/src/Components/Page/PageJumpBarItem.js +++ b/frontend/src/Components/Page/PageJumpBarItem.js @@ -15,7 +15,7 @@ class PageJumpBarItem extends Component { } = this.props; onItemPress(label); - } + }; // // Render diff --git a/frontend/src/Components/Page/Sidebar/Messages/MessageConnector.js b/frontend/src/Components/Page/Sidebar/Messages/MessageConnector.js index 06c545c27..e92722343 100644 --- a/frontend/src/Components/Page/Sidebar/Messages/MessageConnector.js +++ b/frontend/src/Components/Page/Sidebar/Messages/MessageConnector.js @@ -35,11 +35,11 @@ class MessageConnector extends Component { if (hideAfter) { this._hideTimeoutId = setTimeout(this.hideMessage, hideAfter * 1000); } - } + }; hideMessage = () => { this.props.hideMessage({ id: this.props.id }); - } + }; // // Render diff --git a/frontend/src/Components/Page/Sidebar/PageSidebar.js b/frontend/src/Components/Page/Sidebar/PageSidebar.js index 9de449f95..16657f59e 100644 --- a/frontend/src/Components/Page/Sidebar/PageSidebar.js +++ b/frontend/src/Components/Page/Sidebar/PageSidebar.js @@ -234,7 +234,7 @@ class PageSidebar extends Component { _setSidebarRef = (ref) => { this._sidebarRef = ref; - } + }; _setSidebarTransform(isSidebarVisible, transition, callback) { this.setState({ @@ -263,11 +263,11 @@ class PageSidebar extends Component { event.stopPropagation(); this.props.onSidebarVisibleChange(false); } - } + }; onWindowScroll = () => { this.setState(getPositioning()); - } + }; onTouchStart = (event) => { const touches = event.touches; @@ -287,7 +287,7 @@ class PageSidebar extends Component { this._touchStartX = touchStartX; this._touchStartY = touchStartY; - } + }; onTouchMove = (event) => { const touches = event.touches; @@ -324,7 +324,7 @@ class PageSidebar extends Component { transition: 'none', transform }); - } + }; onTouchEnd = (event) => { const touches = event.changedTouches; @@ -344,16 +344,16 @@ class PageSidebar extends Component { this._touchStartX = null; this._touchStartY = null; - } + }; onTouchCancel = (event) => { this._touchStartX = null; this._touchStartY = null; - } + }; onItemPress = () => { this.props.onSidebarVisibleChange(false); - } + }; // // Render diff --git a/frontend/src/Components/Page/Sidebar/PageSidebarItem.js b/frontend/src/Components/Page/Sidebar/PageSidebarItem.js index 59b95e524..9ad78db6b 100644 --- a/frontend/src/Components/Page/Sidebar/PageSidebarItem.js +++ b/frontend/src/Components/Page/Sidebar/PageSidebarItem.js @@ -21,7 +21,7 @@ class PageSidebarItem extends Component { if (isChildItem || !isParentItem) { onPress(); } - } + }; // // Render diff --git a/frontend/src/Components/Page/Toolbar/PageToolbarSection.js b/frontend/src/Components/Page/Toolbar/PageToolbarSection.js index c35383c9d..d64d11435 100644 --- a/frontend/src/Components/Page/Toolbar/PageToolbarSection.js +++ b/frontend/src/Components/Page/Toolbar/PageToolbarSection.js @@ -108,7 +108,7 @@ class PageToolbarSection extends Component { isMeasured: true, width }); - } + }; // // Render diff --git a/frontend/src/Components/Scroller/OverlayScroller.js b/frontend/src/Components/Scroller/OverlayScroller.js index 7f4272f61..6a7fa1701 100644 --- a/frontend/src/Components/Scroller/OverlayScroller.js +++ b/frontend/src/Components/Scroller/OverlayScroller.js @@ -41,7 +41,7 @@ class OverlayScroller extends Component { if (ref) { this.props.registerScroller(ref.view); } - } + }; _renderThumb = (props) => { return ( @@ -50,7 +50,7 @@ class OverlayScroller extends Component { {...props} /> ); - } + }; _renderTrackHorizontal = ({ style, props }) => { const finalStyle = { @@ -69,7 +69,7 @@ class OverlayScroller extends Component { {...props} /> ); - } + }; _renderTrackVertical = ({ style, props }) => { const finalStyle = { @@ -88,7 +88,7 @@ class OverlayScroller extends Component { {...props} /> ); - } + }; _renderView = (props) => { return ( @@ -97,18 +97,18 @@ class OverlayScroller extends Component { {...props} /> ); - } + }; // // Listers onScrollStart = () => { this._isScrolling = true; - } + }; onScrollStop = () => { this._isScrolling = false; - } + }; onScroll = (event) => { const { @@ -122,7 +122,7 @@ class OverlayScroller extends Component { if (onScroll) { onScroll({ scrollTop, scrollLeft }); } - } + }; // // Render diff --git a/frontend/src/Components/Scroller/Scroller.js b/frontend/src/Components/Scroller/Scroller.js index 454163b7e..0deff8808 100644 --- a/frontend/src/Components/Scroller/Scroller.js +++ b/frontend/src/Components/Scroller/Scroller.js @@ -38,7 +38,7 @@ class Scroller extends Component { this._scroller = ref; this.props.registerScroller(ref); - } + }; // // Render diff --git a/frontend/src/Components/SignalRConnector.js b/frontend/src/Components/SignalRConnector.js index 5e3265cdf..3c10c2754 100644 --- a/frontend/src/Components/SignalRConnector.js +++ b/frontend/src/Components/SignalRConnector.js @@ -139,7 +139,7 @@ class SignalRConnector extends Component { } console.error(`signalR: Unable to find handler for ${name}`); - } + }; handleCommand = (body) => { if (body.action === 'sync') { @@ -158,15 +158,15 @@ class SignalRConnector extends Component { } else { this.props.dispatchUpdateCommand(resource); } - } + }; handleHealth = () => { this.props.dispatchFetchHealth(); - } + }; handleIndexerstatus = () => { this.props.dispatchFetchIndexerStatus(); - } + }; handleIndexer = (body) => { const action = body.action; @@ -177,17 +177,17 @@ class SignalRConnector extends Component { } else if (action === 'deleted') { this.props.dispatchRemoveItem({ section, id: body.resource.id }); } - } + }; handleVersion = (body) => { const version = body.version; this.props.dispatchSetVersion({ version }); - } + }; handleSystemTask = () => { this.props.dispatchFetchCommands(); - } + }; handleTag = (body) => { if (body.action === 'sync') { @@ -195,7 +195,7 @@ class SignalRConnector extends Component { this.props.dispatchFetchTagDetails(); return; } - } + }; // // Listeners @@ -210,7 +210,7 @@ class SignalRConnector extends Component { isDisconnected: false, isRestarting: false }); - } + }; onStart = () => { console.debug('[signalR] connected'); @@ -221,11 +221,11 @@ class SignalRConnector extends Component { isDisconnected: false, isRestarting: false }); - } + }; onReconnecting = () => { this.props.dispatchSetAppValue({ isReconnecting: true }); - } + }; onReconnected = () => { @@ -247,17 +247,17 @@ class SignalRConnector extends Component { dispatchFetchIndexers(); dispatchFetchCommands(); repopulatePage(); - } + }; onClose = () => { console.debug('[signalR] connection closed'); - } + }; onReceiveMessage = (message) => { console.debug('[signalR] received', message.name, message.body); this.handleMessage(message); - } + }; // // Render diff --git a/frontend/src/Components/Table/Cells/TableSelectCell.js b/frontend/src/Components/Table/Cells/TableSelectCell.js index 9c10f4444..a2a297f2e 100644 --- a/frontend/src/Components/Table/Cells/TableSelectCell.js +++ b/frontend/src/Components/Table/Cells/TableSelectCell.js @@ -38,7 +38,7 @@ class TableSelectCell extends Component { } = this.props; onSelectedChange({ id, value, shiftKey }); - } + }; // // Render diff --git a/frontend/src/Components/Table/Cells/VirtualTableSelectCell.js b/frontend/src/Components/Table/Cells/VirtualTableSelectCell.js index a773aab58..66817d21b 100644 --- a/frontend/src/Components/Table/Cells/VirtualTableSelectCell.js +++ b/frontend/src/Components/Table/Cells/VirtualTableSelectCell.js @@ -35,7 +35,7 @@ class VirtualTableSelectCell extends Component { } = this.props; onSelectedChange({ id, value, shiftKey }); - } + }; // // Render diff --git a/frontend/src/Components/Table/TableHeaderCell.js b/frontend/src/Components/Table/TableHeaderCell.js index 78c9535e3..21766978b 100644 --- a/frontend/src/Components/Table/TableHeaderCell.js +++ b/frontend/src/Components/Table/TableHeaderCell.js @@ -21,7 +21,7 @@ class TableHeaderCell extends Component { } else { this.props.onSortPress(name); } - } + }; // // Render diff --git a/frontend/src/Components/Table/TableOptions/TableOptionsModal.js b/frontend/src/Components/Table/TableOptions/TableOptionsModal.js index 8c285ad68..7d6f4f2c1 100644 --- a/frontend/src/Components/Table/TableOptions/TableOptionsModal.js +++ b/frontend/src/Components/Table/TableOptions/TableOptionsModal.js @@ -62,7 +62,7 @@ class TableOptionsModal extends Component { pageSize: value, pageSizeError }); - } + }; onVisibleChange = ({ name, value }) => { const columns = _.cloneDeep(this.props.columns); @@ -71,7 +71,7 @@ class TableOptionsModal extends Component { column.isVisible = value; this.props.onTableOptionChange({ columns }); - } + }; onColumnDragMove = (dragIndex, dropIndex) => { if (this.state.dragIndex !== dragIndex || this.state.dropIndex !== dropIndex) { @@ -80,7 +80,7 @@ class TableOptionsModal extends Component { dropIndex }); } - } + }; onColumnDragEnd = ({ id }, didDrop) => { const { @@ -100,7 +100,7 @@ class TableOptionsModal extends Component { dragIndex: null, dropIndex: null }); - } + }; // // Render diff --git a/frontend/src/Components/Table/TableOptions/TableOptionsModalWrapper.js b/frontend/src/Components/Table/TableOptions/TableOptionsModalWrapper.js index ff2b8538b..6bc18bb82 100644 --- a/frontend/src/Components/Table/TableOptions/TableOptionsModalWrapper.js +++ b/frontend/src/Components/Table/TableOptions/TableOptionsModalWrapper.js @@ -20,11 +20,11 @@ class TableOptionsModalWrapper extends Component { onTableOptionsPress = () => { this.setState({ isTableOptionsModalOpen: true }); - } + }; onTableOptionsModalClose = () => { this.setState({ isTableOptionsModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Components/Table/TablePager.js b/frontend/src/Components/Table/TablePager.js index df1090b0e..6f71ee5d2 100644 --- a/frontend/src/Components/Table/TablePager.js +++ b/frontend/src/Components/Table/TablePager.js @@ -26,16 +26,16 @@ class TablePager extends Component { onOpenPageSelectClick = () => { this.setState({ isShowingPageSelect: true }); - } + }; onPageSelect = ({ value: page }) => { this.setState({ isShowingPageSelect: false }); this.props.onPageSelect(parseInt(page)); - } + }; onPageSelectBlur = () => { this.setState({ isShowingPageSelect: false }); - } + }; // // Render diff --git a/frontend/src/Components/Table/VirtualTable.js b/frontend/src/Components/Table/VirtualTable.js index 7b70179c7..d877b8208 100644 --- a/frontend/src/Components/Table/VirtualTable.js +++ b/frontend/src/Components/Table/VirtualTable.js @@ -75,7 +75,7 @@ class VirtualTable extends Component { setGridRef = (ref) => { this._grid = ref; - } + }; // // Listeners @@ -84,7 +84,7 @@ class VirtualTable extends Component { this.setState({ width }); - } + }; // // Render diff --git a/frontend/src/Components/Table/VirtualTableHeaderCell.js b/frontend/src/Components/Table/VirtualTableHeaderCell.js index 727d6469d..b944014aa 100644 --- a/frontend/src/Components/Table/VirtualTableHeaderCell.js +++ b/frontend/src/Components/Table/VirtualTableHeaderCell.js @@ -38,7 +38,7 @@ class VirtualTableHeaderCell extends Component { } else { this.props.onSortPress(name); } - } + }; // // Render diff --git a/frontend/src/Components/Tooltip/Tooltip.js b/frontend/src/Components/Tooltip/Tooltip.js index 6a7cb9e3d..43a7b8b77 100644 --- a/frontend/src/Components/Tooltip/Tooltip.js +++ b/frontend/src/Components/Tooltip/Tooltip.js @@ -80,20 +80,20 @@ class Tooltip extends Component { } return data; - } + }; // // Listeners onMeasure = ({ width }) => { this.setState({ width }); - } + }; onClick = () => { if (isMobileUtil()) { this.setState({ isOpen: !this.state.isOpen }); } - } + }; onMouseEnter = () => { if (this._closeTimeout) { @@ -101,13 +101,13 @@ class Tooltip extends Component { } this.setState({ isOpen: true }); - } + }; onMouseLeave = () => { this._closeTimeout = setTimeout(() => { this.setState({ isOpen: false }); }, 100); - } + }; // // Render diff --git a/frontend/src/Components/keyboardShortcuts.js b/frontend/src/Components/keyboardShortcuts.js index 74d8cdf80..713f2bff4 100644 --- a/frontend/src/Components/keyboardShortcuts.js +++ b/frontend/src/Components/keyboardShortcuts.js @@ -64,12 +64,12 @@ function keyboardShortcuts(WrappedComponent) { bindShortcut = (key, callback, options = {}) => { this._mousetrap.bind(key, callback); this._mousetrapBindings[key] = options; - } + }; unbindShortcut = (key) => { delete this._mousetrapBindings[key]; this._mousetrap.unbind(key); - } + }; unbindAllShortcuts = () => { const keys = Object.keys(this._mousetrapBindings); @@ -83,7 +83,7 @@ function keyboardShortcuts(WrappedComponent) { }); this._mousetrapBindings = {}; - } + }; stopCallback = (event, element, combo) => { const binding = this._mousetrapBindings[combo]; @@ -98,7 +98,7 @@ function keyboardShortcuts(WrappedComponent) { element.tagName === 'TEXTAREA' || (element.contentEditable && element.contentEditable === 'true') ); - } + }; // // Render diff --git a/frontend/src/History/History.js b/frontend/src/History/History.js index c4fb34fe4..fa33beffc 100644 --- a/frontend/src/History/History.js +++ b/frontend/src/History/History.js @@ -35,16 +35,16 @@ class History extends Component { onClearHistoryPress = () => { this.setState({ isClearHistoryModalOpen: true }); - } + }; onClearHistoryModalClose = () => { this.setState({ isClearHistoryModalOpen: false }); - } + }; onConfirmClearHistory = () => { this.setState({ isClearHistoryModalOpen: false }); this.props.onClearHistoryPress(); - } + }; // // Render diff --git a/frontend/src/History/HistoryConnector.js b/frontend/src/History/HistoryConnector.js index cede42e57..cd634ca11 100644 --- a/frontend/src/History/HistoryConnector.js +++ b/frontend/src/History/HistoryConnector.js @@ -69,42 +69,42 @@ class HistoryConnector extends Component { repopulate = () => { this.props.fetchHistory(); - } + }; // // Listeners onFirstPagePress = () => { this.props.gotoHistoryFirstPage(); - } + }; onPreviousPagePress = () => { this.props.gotoHistoryPreviousPage(); - } + }; onNextPagePress = () => { this.props.gotoHistoryNextPage(); - } + }; onLastPagePress = () => { this.props.gotoHistoryLastPage(); - } + }; onPageSelect = (page) => { this.props.gotoHistoryPage({ page }); - } + }; onSortPress = (sortKey) => { this.props.setHistorySort({ sortKey }); - } + }; onFilterSelect = (selectedFilterKey) => { this.props.setHistoryFilter({ selectedFilterKey }); - } + }; onClearHistoryPress = () => { this.props.executeCommand({ name: commandNames.CLEAR_HISTORY }); - } + }; onTableOptionChange = (payload) => { this.props.setHistoryTableOption(payload); @@ -112,7 +112,7 @@ class HistoryConnector extends Component { if (payload.pageSize) { this.props.gotoHistoryFirstPage(); } - } + }; // // Render diff --git a/frontend/src/History/HistoryOptions.js b/frontend/src/History/HistoryOptions.js index 228e13678..1459320ee 100644 --- a/frontend/src/History/HistoryOptions.js +++ b/frontend/src/History/HistoryOptions.js @@ -43,7 +43,7 @@ class HistoryOptions extends Component { this.setState(setting, () => { dispatchSaveGeneralSettings(setting); }); - } + }; // // Render diff --git a/frontend/src/History/HistoryRow.js b/frontend/src/History/HistoryRow.js index 6da11287e..8b59a1152 100644 --- a/frontend/src/History/HistoryRow.js +++ b/frontend/src/History/HistoryRow.js @@ -52,15 +52,15 @@ class HistoryRow extends Component { } this.props.onSearchPress(data.query, indexer.id, categories); - } + }; onDetailsPress = () => { this.setState({ isDetailsModalOpen: true }); - } + }; onDetailsModalClose = () => { this.setState({ isDetailsModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/History/HistoryRowConnector.js b/frontend/src/History/HistoryRowConnector.js index 7dea5a730..2d01a2d19 100644 --- a/frontend/src/History/HistoryRowConnector.js +++ b/frontend/src/History/HistoryRowConnector.js @@ -51,11 +51,11 @@ class HistoryRowConnector extends Component { onSearchPress = (term, indexerId, categories) => { this.props.setSearchDefault({ searchQuery: term, searchIndexerIds: [indexerId], searchCategories: categories }); this.props.push(`${window.Prowlarr.urlBase}/search`); - } + }; onMarkAsFailedPress = () => { this.props.markAsFailed({ id: this.props.id }); - } + }; // // Render diff --git a/frontend/src/Indexer/Add/AddIndexerModalContent.js b/frontend/src/Indexer/Add/AddIndexerModalContent.js index 1c5e0f28a..78b0469c0 100644 --- a/frontend/src/Indexer/Add/AddIndexerModalContent.js +++ b/frontend/src/Indexer/Add/AddIndexerModalContent.js @@ -77,7 +77,7 @@ class AddIndexerModalContent extends Component { onFilterChange = ({ value }) => { this.setState({ filter: value }); - } + }; // // Render diff --git a/frontend/src/Indexer/Add/AddIndexerModalContentConnector.js b/frontend/src/Indexer/Add/AddIndexerModalContentConnector.js index 354c3a5c0..2d6ac9fef 100644 --- a/frontend/src/Indexer/Add/AddIndexerModalContentConnector.js +++ b/frontend/src/Indexer/Add/AddIndexerModalContentConnector.js @@ -52,11 +52,11 @@ class AddIndexerModalContentConnector extends Component { onIndexerSelect = ({ implementation, name }) => { this.props.selectIndexerSchema({ implementation, name }); this.props.onModalClose({ indexerSelected: true }); - } + }; onSortPress = (sortKey, sortDirection) => { this.props.setIndexerSchemaSort({ sortKey, sortDirection }); - } + }; // // Render diff --git a/frontend/src/Indexer/Add/AddIndexerPresetMenuItem.js b/frontend/src/Indexer/Add/AddIndexerPresetMenuItem.js index ddea8b043..03196e526 100644 --- a/frontend/src/Indexer/Add/AddIndexerPresetMenuItem.js +++ b/frontend/src/Indexer/Add/AddIndexerPresetMenuItem.js @@ -17,7 +17,7 @@ class AddIndexerPresetMenuItem extends Component { name, implementation }); - } + }; // // Render diff --git a/frontend/src/Indexer/Add/SelectIndexerRow.js b/frontend/src/Indexer/Add/SelectIndexerRow.js index 1526caf58..24acb2650 100644 --- a/frontend/src/Indexer/Add/SelectIndexerRow.js +++ b/frontend/src/Indexer/Add/SelectIndexerRow.js @@ -17,7 +17,7 @@ class SelectIndexerRow extends Component { } = this.props; this.props.onIndexerSelect({ implementation, name }); - } + }; // // Render diff --git a/frontend/src/Indexer/Delete/DeleteIndexerModalContent.js b/frontend/src/Indexer/Delete/DeleteIndexerModalContent.js index 5b4efe2b1..e3d46e108 100644 --- a/frontend/src/Indexer/Delete/DeleteIndexerModalContent.js +++ b/frontend/src/Indexer/Delete/DeleteIndexerModalContent.js @@ -27,11 +27,11 @@ class DeleteIndexerModalContent extends Component { onDeleteFilesChange = ({ value }) => { this.setState({ deleteFiles: value }); - } + }; onAddImportExclusionChange = ({ value }) => { this.setState({ addImportExclusion: value }); - } + }; onDeleteMovieConfirmed = () => { const deleteFiles = this.state.deleteFiles; @@ -39,7 +39,7 @@ class DeleteIndexerModalContent extends Component { this.setState({ deleteFiles: false, addImportExclusion: false }); this.props.onDeletePress(deleteFiles, addImportExclusion); - } + }; // // Render diff --git a/frontend/src/Indexer/Delete/DeleteIndexerModalContentConnector.js b/frontend/src/Indexer/Delete/DeleteIndexerModalContentConnector.js index be9d2b0a1..1e92eb845 100644 --- a/frontend/src/Indexer/Delete/DeleteIndexerModalContentConnector.js +++ b/frontend/src/Indexer/Delete/DeleteIndexerModalContentConnector.js @@ -32,7 +32,7 @@ class DeleteIndexerModalContentConnector extends Component { }); this.props.onModalClose(true); - } + }; // // Render diff --git a/frontend/src/Indexer/Edit/EditIndexerModalConnector.js b/frontend/src/Indexer/Edit/EditIndexerModalConnector.js index 27fc2d0fa..13cd47ae6 100644 --- a/frontend/src/Indexer/Edit/EditIndexerModalConnector.js +++ b/frontend/src/Indexer/Edit/EditIndexerModalConnector.js @@ -33,7 +33,7 @@ class EditIndexerModalConnector extends Component { this.props.dispatchCancelTestIndexer(); this.props.dispatchCancelSaveIndexer(); this.props.onModalClose(); - } + }; // // Render diff --git a/frontend/src/Indexer/Edit/EditIndexerModalContentConnector.js b/frontend/src/Indexer/Edit/EditIndexerModalContentConnector.js index 676457a12..c76dd5ce4 100644 --- a/frontend/src/Indexer/Edit/EditIndexerModalContentConnector.js +++ b/frontend/src/Indexer/Edit/EditIndexerModalContentConnector.js @@ -44,23 +44,23 @@ class EditIndexerModalContentConnector extends Component { onInputChange = ({ name, value }) => { this.props.setIndexerValue({ name, value }); - } + }; onFieldChange = ({ name, value }) => { this.props.setIndexerFieldValue({ name, value }); - } + }; onSavePress = () => { this.props.saveIndexer({ id: this.props.id }); - } + }; onTestPress = () => { this.props.testIndexer({ id: this.props.id }); - } + }; onAdvancedSettingsPress = () => { this.props.toggleAdvancedSettings(); - } + }; // // Render diff --git a/frontend/src/Indexer/Editor/Delete/DeleteIndexerModalContent.js b/frontend/src/Indexer/Editor/Delete/DeleteIndexerModalContent.js index dff05e52d..b4035a35c 100644 --- a/frontend/src/Indexer/Editor/Delete/DeleteIndexerModalContent.js +++ b/frontend/src/Indexer/Editor/Delete/DeleteIndexerModalContent.js @@ -12,7 +12,7 @@ import styles from './DeleteIndexerModalContent.css'; class DeleteIndexerModalContent extends Component { onDeleteMovieConfirmed = () => { this.props.onDeleteSelectedPress(); - } + }; // // Render diff --git a/frontend/src/Indexer/Editor/IndexerEditorFooter.js b/frontend/src/Indexer/Editor/IndexerEditorFooter.js index 5c59a1591..1818eae72 100644 --- a/frontend/src/Indexer/Editor/IndexerEditorFooter.js +++ b/frontend/src/Indexer/Editor/IndexerEditorFooter.js @@ -59,7 +59,7 @@ class IndexerEditorFooter extends Component { default: this.props.onSaveSelected({ [name]: value }); } - } + }; onApplyTagsPress = (tags, applyTags) => { this.setState({ @@ -71,23 +71,23 @@ class IndexerEditorFooter extends Component { tags, applyTags }); - } + }; onDeleteSelectedPress = () => { this.setState({ isDeleteMovieModalOpen: true }); - } + }; onDeleteMovieModalClose = () => { this.setState({ isDeleteMovieModalOpen: false }); - } + }; onTagsPress = () => { this.setState({ isTagsModalOpen: true }); - } + }; onTagsModalClose = () => { this.setState({ isTagsModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Indexer/Editor/Tags/TagsModalContent.js b/frontend/src/Indexer/Editor/Tags/TagsModalContent.js index 0ea26e968..eaa9c5b6a 100644 --- a/frontend/src/Indexer/Editor/Tags/TagsModalContent.js +++ b/frontend/src/Indexer/Editor/Tags/TagsModalContent.js @@ -34,7 +34,7 @@ class TagsModalContent extends Component { onInputChange = ({ name, value }) => { this.setState({ [name]: value }); - } + }; onApplyTagsPress = () => { const { @@ -43,7 +43,7 @@ class TagsModalContent extends Component { } = this.state; this.props.onApplyTagsPress(tags, applyTags); - } + }; // // Render diff --git a/frontend/src/Indexer/Index/IndexerIndex.js b/frontend/src/Indexer/Index/IndexerIndex.js index 883a34f55..e895f3357 100644 --- a/frontend/src/Indexer/Index/IndexerIndex.js +++ b/frontend/src/Indexer/Index/IndexerIndex.js @@ -98,14 +98,14 @@ class IndexerIndex extends Component { setScrollerRef = (ref) => { this.setState({ scroller: ref }); - } + }; getSelectedIds = () => { if (this.state.allUnselected) { return []; } return getSelectedIds(this.state.selectedState); - } + }; setSelectedState() { const { @@ -191,18 +191,18 @@ class IndexerIndex extends Component { onAddIndexerPress = () => { this.setState({ isAddIndexerModalOpen: true }); - } + }; onAddIndexerModalClose = ({ indexerSelected = false } = {}) => { this.setState({ isAddIndexerModalOpen: false, isEditIndexerModalOpen: indexerSelected }); - } + }; onEditIndexerModalClose = () => { this.setState({ isEditIndexerModalOpen: false }); - } + }; onMovieEditorTogglePress = () => { if (this.state.isMovieEditorActive) { @@ -212,11 +212,11 @@ class IndexerIndex extends Component { newState.isMovieEditorActive = true; this.setState(newState); } - } + }; onJumpBarItemPress = (jumpToCharacter) => { this.setState({ jumpToCharacter }); - } + }; onKeyUp = (event) => { const jumpBarItems = this.state.jumpBarItems.order; @@ -228,28 +228,28 @@ class IndexerIndex 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); }); - } + }; onSaveSelected = (changes) => { this.props.onSaveSelected({ indexerIds: this.getSelectedIds(), ...changes }); - } + }; // // Render diff --git a/frontend/src/Indexer/Index/IndexerIndexConnector.js b/frontend/src/Indexer/Index/IndexerIndexConnector.js index ef3f0f091..e31041c66 100644 --- a/frontend/src/Indexer/Index/IndexerIndexConnector.js +++ b/frontend/src/Indexer/Index/IndexerIndexConnector.js @@ -57,11 +57,11 @@ class IndexerIndexConnector extends Component { onSaveSelected = (payload) => { this.props.dispatchSaveIndexerEditor(payload); - } + }; onScroll = ({ scrollTop }) => { scrollPositions.movieIndex = scrollTop; - } + }; // // Render diff --git a/frontend/src/Indexer/Index/Table/IndexerIndexActionsCell.js b/frontend/src/Indexer/Index/Table/IndexerIndexActionsCell.js index 1a649235f..3450b74a0 100644 --- a/frontend/src/Indexer/Index/Table/IndexerIndexActionsCell.js +++ b/frontend/src/Indexer/Index/Table/IndexerIndexActionsCell.js @@ -27,22 +27,22 @@ class IndexerIndexActionsCell extends Component { onEditMoviePress = () => { this.setState({ isEditMovieModalOpen: true }); - } + }; onEditMovieModalClose = () => { this.setState({ isEditMovieModalOpen: false }); - } + }; onDeleteMoviePress = () => { this.setState({ isEditMovieModalOpen: false, isDeleteMovieModalOpen: true }); - } + }; onDeleteMovieModalClose = () => { this.setState({ isDeleteMovieModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Indexer/Index/Table/IndexerIndexHeader.js b/frontend/src/Indexer/Index/Table/IndexerIndexHeader.js index 5dacee870..557f1c4ca 100644 --- a/frontend/src/Indexer/Index/Table/IndexerIndexHeader.js +++ b/frontend/src/Indexer/Index/Table/IndexerIndexHeader.js @@ -27,11 +27,11 @@ class IndexerIndexHeader extends Component { onTableOptionsPress = () => { this.setState({ isTableOptionsModalOpen: true }); - } + }; onTableOptionsModalClose = () => { this.setState({ isTableOptionsModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Indexer/Index/Table/IndexerIndexRow.js b/frontend/src/Indexer/Index/Table/IndexerIndexRow.js index 972289214..9233a10fa 100644 --- a/frontend/src/Indexer/Index/Table/IndexerIndexRow.js +++ b/frontend/src/Indexer/Index/Table/IndexerIndexRow.js @@ -34,35 +34,35 @@ class IndexerIndexRow extends Component { onEditIndexerPress = () => { this.setState({ isEditIndexerModalOpen: true }); - } + }; onIndexerInfoPress = () => { this.setState({ isIndexerInfoModalOpen: true }); - } + }; onEditIndexerModalClose = () => { this.setState({ isEditIndexerModalOpen: false }); - } + }; onIndexerInfoModalClose = () => { this.setState({ isIndexerInfoModalOpen: false }); - } + }; onDeleteMoviePress = () => { this.setState({ isEditIndexerModalOpen: false, isDeleteMovieModalOpen: true }); - } + }; onDeleteMovieModalClose = () => { this.setState({ isDeleteMovieModalOpen: false }); - } + }; onUseSceneNumberingChange = () => { // Mock handler to satisfy `onChange` being required for `CheckInput`. // - } + }; // // Render diff --git a/frontend/src/Indexer/Index/Table/IndexerIndexTable.js b/frontend/src/Indexer/Index/Table/IndexerIndexTable.js index 79e733b65..51701a8f3 100644 --- a/frontend/src/Indexer/Index/Table/IndexerIndexTable.js +++ b/frontend/src/Indexer/Index/Table/IndexerIndexTable.js @@ -70,7 +70,7 @@ class IndexerIndexTable extends Component { /> ); - } + }; // // Render diff --git a/frontend/src/Indexer/Index/Table/IndexerIndexTableOptions.js b/frontend/src/Indexer/Index/Table/IndexerIndexTableOptions.js index ee52f454f..ce75eeb86 100644 --- a/frontend/src/Indexer/Index/Table/IndexerIndexTableOptions.js +++ b/frontend/src/Indexer/Index/Table/IndexerIndexTableOptions.js @@ -43,7 +43,7 @@ class IndexerIndexTableOptions extends Component { } }); }); - } + }; // // Render diff --git a/frontend/src/Search/QueryParameterModal.js b/frontend/src/Search/QueryParameterModal.js index 237d5a6e6..aede4a251 100644 --- a/frontend/src/Search/QueryParameterModal.js +++ b/frontend/src/Search/QueryParameterModal.js @@ -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 diff --git a/frontend/src/Search/QueryParameterOption.js b/frontend/src/Search/QueryParameterOption.js index 6a31a1efa..a0b4724a9 100644 --- a/frontend/src/Search/QueryParameterOption.js +++ b/frontend/src/Search/QueryParameterOption.js @@ -24,7 +24,7 @@ class QueryParameterOption extends Component { tokenValue = tokenValue.replace(/ /g, tokenSeparator); onPress({ isFullFilename, tokenValue }); - } + }; // // Render diff --git a/frontend/src/Search/SearchFooter.js b/frontend/src/Search/SearchFooter.js index f17fc8dca..cd3897f33 100644 --- a/frontend/src/Search/SearchFooter.js +++ b/frontend/src/Search/SearchFooter.js @@ -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 diff --git a/frontend/src/Search/SearchFooterConnector.js b/frontend/src/Search/SearchFooterConnector.js index 0478ec329..efbe6b3c4 100644 --- a/frontend/src/Search/SearchFooterConnector.js +++ b/frontend/src/Search/SearchFooterConnector.js @@ -37,7 +37,7 @@ class SearchFooterConnector extends Component { onInputChange = ({ name, value }) => { this.props.setSearchDefault({ [name]: value }); - } + }; // // Render diff --git a/frontend/src/Search/SearchIndex.js b/frontend/src/Search/SearchIndex.js index d629224de..06479972b 100644 --- a/frontend/src/Search/SearchIndex.js +++ b/frontend/src/Search/SearchIndex.js @@ -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 diff --git a/frontend/src/Search/SearchIndexConnector.js b/frontend/src/Search/SearchIndexConnector.js index a32dd47c0..efa0dc563 100644 --- a/frontend/src/Search/SearchIndexConnector.js +++ b/frontend/src/Search/SearchIndexConnector.js @@ -69,7 +69,7 @@ class SearchIndexConnector extends Component { onScroll = ({ scrollTop }) => { scrollPositions.movieIndex = scrollTop; - } + }; // // Render diff --git a/frontend/src/Search/Table/SearchIndexHeader.js b/frontend/src/Search/Table/SearchIndexHeader.js index f69cd5a48..6b91adb45 100644 --- a/frontend/src/Search/Table/SearchIndexHeader.js +++ b/frontend/src/Search/Table/SearchIndexHeader.js @@ -26,11 +26,11 @@ class SearchIndexHeader extends Component { onTableOptionsPress = () => { this.setState({ isTableOptionsModalOpen: true }); - } + }; onTableOptionsModalClose = () => { this.setState({ isTableOptionsModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Search/Table/SearchIndexRow.js b/frontend/src/Search/Table/SearchIndexRow.js index bd508d2e5..f562bf8f3 100644 --- a/frontend/src/Search/Table/SearchIndexRow.js +++ b/frontend/src/Search/Table/SearchIndexRow.js @@ -69,7 +69,7 @@ class SearchIndexRow extends Component { guid, indexerId }); - } + }; // // Render diff --git a/frontend/src/Search/Table/SearchIndexTable.js b/frontend/src/Search/Table/SearchIndexTable.js index b2a6973fd..7f1f44118 100644 --- a/frontend/src/Search/Table/SearchIndexTable.js +++ b/frontend/src/Search/Table/SearchIndexTable.js @@ -74,7 +74,7 @@ class SearchIndexTable extends Component { /> ); - } + }; // // Render diff --git a/frontend/src/Settings/Applications/Applications/AddApplicationItem.js b/frontend/src/Settings/Applications/Applications/AddApplicationItem.js index ec4512f51..bb0053824 100644 --- a/frontend/src/Settings/Applications/Applications/AddApplicationItem.js +++ b/frontend/src/Settings/Applications/Applications/AddApplicationItem.js @@ -20,7 +20,7 @@ class AddApplicationItem extends Component { } = this.props; this.props.onApplicationSelect({ implementation }); - } + }; // // Render diff --git a/frontend/src/Settings/Applications/Applications/AddApplicationModalContentConnector.js b/frontend/src/Settings/Applications/Applications/AddApplicationModalContentConnector.js index a48ba8ac4..41076d4fe 100644 --- a/frontend/src/Settings/Applications/Applications/AddApplicationModalContentConnector.js +++ b/frontend/src/Settings/Applications/Applications/AddApplicationModalContentConnector.js @@ -46,7 +46,7 @@ class AddApplicationModalContentConnector extends Component { onApplicationSelect = ({ implementation, name }) => { this.props.selectApplicationSchema({ implementation, presetName: name }); this.props.onModalClose({ applicationSelected: true }); - } + }; // // Render diff --git a/frontend/src/Settings/Applications/Applications/AddApplicationPresetMenuItem.js b/frontend/src/Settings/Applications/Applications/AddApplicationPresetMenuItem.js index b4bad3014..9974f7132 100644 --- a/frontend/src/Settings/Applications/Applications/AddApplicationPresetMenuItem.js +++ b/frontend/src/Settings/Applications/Applications/AddApplicationPresetMenuItem.js @@ -17,7 +17,7 @@ class AddApplicationPresetMenuItem extends Component { name, implementation }); - } + }; // // Render diff --git a/frontend/src/Settings/Applications/Applications/Application.js b/frontend/src/Settings/Applications/Applications/Application.js index 2d8280617..d7ebd56e1 100644 --- a/frontend/src/Settings/Applications/Applications/Application.js +++ b/frontend/src/Settings/Applications/Applications/Application.js @@ -27,26 +27,26 @@ class Application extends Component { onEditApplicationPress = () => { this.setState({ isEditApplicationModalOpen: true }); - } + }; onEditApplicationModalClose = () => { this.setState({ isEditApplicationModalOpen: false }); - } + }; onDeleteApplicationPress = () => { this.setState({ isEditApplicationModalOpen: false, isDeleteApplicationModalOpen: true }); - } + }; onDeleteApplicationModalClose= () => { this.setState({ isDeleteApplicationModalOpen: false }); - } + }; onConfirmDeleteApplication = () => { this.props.onConfirmDeleteApplication(this.props.id); - } + }; // // Render diff --git a/frontend/src/Settings/Applications/Applications/Applications.js b/frontend/src/Settings/Applications/Applications/Applications.js index a4fc7d68e..83047f602 100644 --- a/frontend/src/Settings/Applications/Applications/Applications.js +++ b/frontend/src/Settings/Applications/Applications/Applications.js @@ -30,18 +30,18 @@ class Applications extends Component { onAddApplicationPress = () => { this.setState({ isAddApplicationModalOpen: true }); - } + }; onAddApplicationModalClose = ({ applicationSelected = false } = {}) => { this.setState({ isAddApplicationModalOpen: false, isEditApplicationModalOpen: applicationSelected }); - } + }; onEditApplicationModalClose = () => { this.setState({ isEditApplicationModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Settings/Applications/Applications/ApplicationsConnector.js b/frontend/src/Settings/Applications/Applications/ApplicationsConnector.js index 062a7f8e8..a984299f0 100644 --- a/frontend/src/Settings/Applications/Applications/ApplicationsConnector.js +++ b/frontend/src/Settings/Applications/Applications/ApplicationsConnector.js @@ -33,7 +33,7 @@ class ApplicationsConnector extends Component { onConfirmDeleteApplication = (id) => { this.props.deleteApplication({ id }); - } + }; // // Render diff --git a/frontend/src/Settings/Applications/Applications/EditApplicationModalConnector.js b/frontend/src/Settings/Applications/Applications/EditApplicationModalConnector.js index 2a217398f..8858ba00b 100644 --- a/frontend/src/Settings/Applications/Applications/EditApplicationModalConnector.js +++ b/frontend/src/Settings/Applications/Applications/EditApplicationModalConnector.js @@ -33,7 +33,7 @@ class EditApplicationModalConnector extends Component { this.props.dispatchCancelTestApplication(); this.props.dispatchCancelSaveApplication(); this.props.onModalClose(); - } + }; // // Render diff --git a/frontend/src/Settings/Applications/Applications/EditApplicationModalContentConnector.js b/frontend/src/Settings/Applications/Applications/EditApplicationModalContentConnector.js index a3b3e6560..859afc1de 100644 --- a/frontend/src/Settings/Applications/Applications/EditApplicationModalContentConnector.js +++ b/frontend/src/Settings/Applications/Applications/EditApplicationModalContentConnector.js @@ -42,19 +42,19 @@ class EditApplicationModalContentConnector extends Component { onInputChange = ({ name, value }) => { this.props.setApplicationValue({ name, value }); - } + }; onFieldChange = ({ name, value }) => { this.props.setApplicationFieldValue({ name, value }); - } + }; onSavePress = () => { this.props.saveApplication({ id: this.props.id }); - } + }; onTestPress = () => { this.props.testApplication({ id: this.props.id }); - } + }; // // Render diff --git a/frontend/src/Settings/Development/DevelopmentSettingsConnector.js b/frontend/src/Settings/Development/DevelopmentSettingsConnector.js index 974cd446a..f93701e49 100644 --- a/frontend/src/Settings/Development/DevelopmentSettingsConnector.js +++ b/frontend/src/Settings/Development/DevelopmentSettingsConnector.js @@ -47,11 +47,11 @@ class DevelopmentSettingsConnector extends Component { onInputChange = ({ name, value }) => { this.props.setDevelopmentSettingsValue({ name, value }); - } + }; onSavePress = () => { this.props.saveDevelopmentSettings(); - } + }; // // Render diff --git a/frontend/src/Settings/DownloadClients/DownloadClientSettings.js b/frontend/src/Settings/DownloadClients/DownloadClientSettings.js index 8de472a6a..3e060aa5d 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClientSettings.js +++ b/frontend/src/Settings/DownloadClients/DownloadClientSettings.js @@ -30,17 +30,17 @@ class DownloadClientSettings extends Component { onChildMounted = (saveCallback) => { this._saveCallback = saveCallback; - } + }; onChildStateChange = (payload) => { this.setState(payload); - } + }; onSavePress = () => { if (this._saveCallback) { this._saveCallback(); } - } + }; // // Render diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientItem.js b/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientItem.js index 235356a5f..0b1113022 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientItem.js +++ b/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientItem.js @@ -20,7 +20,7 @@ class AddDownloadClientItem extends Component { } = this.props; this.props.onDownloadClientSelect({ implementation }); - } + }; // // Render diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContentConnector.js b/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContentConnector.js index 99d5c4f19..ffae3eee9 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContentConnector.js +++ b/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContentConnector.js @@ -51,7 +51,7 @@ class AddDownloadClientModalContentConnector extends Component { onDownloadClientSelect = ({ implementation }) => { this.props.selectDownloadClientSchema({ implementation }); this.props.onModalClose({ downloadClientSelected: true }); - } + }; // // Render diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientPresetMenuItem.js b/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientPresetMenuItem.js index f356f8140..309c817b0 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientPresetMenuItem.js +++ b/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientPresetMenuItem.js @@ -17,7 +17,7 @@ class AddDownloadClientPresetMenuItem extends Component { name, implementation }); - } + }; // // Render diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClient.js b/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClient.js index 98fce6319..8cea557a9 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClient.js +++ b/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClient.js @@ -27,26 +27,26 @@ class DownloadClient extends Component { onEditDownloadClientPress = () => { this.setState({ isEditDownloadClientModalOpen: true }); - } + }; onEditDownloadClientModalClose = () => { this.setState({ isEditDownloadClientModalOpen: false }); - } + }; onDeleteDownloadClientPress = () => { this.setState({ isEditDownloadClientModalOpen: false, isDeleteDownloadClientModalOpen: true }); - } + }; onDeleteDownloadClientModalClose= () => { this.setState({ isDeleteDownloadClientModalOpen: false }); - } + }; onConfirmDeleteDownloadClient = () => { this.props.onConfirmDeleteDownloadClient(this.props.id); - } + }; // // Render diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClients.js b/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClients.js index 52f211f4a..640d56a89 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClients.js +++ b/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClients.js @@ -30,18 +30,18 @@ class DownloadClients extends Component { onAddDownloadClientPress = () => { this.setState({ isAddDownloadClientModalOpen: true }); - } + }; onAddDownloadClientModalClose = ({ downloadClientSelected = false } = {}) => { this.setState({ isAddDownloadClientModalOpen: false, isEditDownloadClientModalOpen: downloadClientSelected }); - } + }; onEditDownloadClientModalClose = () => { this.setState({ isEditDownloadClientModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClientsConnector.js b/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClientsConnector.js index ed8ddffc9..9cba9c1cc 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClientsConnector.js +++ b/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClientsConnector.js @@ -33,7 +33,7 @@ class DownloadClientsConnector extends Component { onConfirmDeleteDownloadClient = (id) => { this.props.deleteDownloadClient({ id }); - } + }; // // Render diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalConnector.js b/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalConnector.js index e6b06974d..7948ef120 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalConnector.js +++ b/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalConnector.js @@ -33,7 +33,7 @@ class EditDownloadClientModalConnector extends Component { this.props.dispatchCancelTestDownloadClient(); this.props.dispatchCancelSaveDownloadClient(); this.props.onModalClose(); - } + }; // // Render diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalContentConnector.js b/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalContentConnector.js index 864d83cfe..f2d4ad6ff 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalContentConnector.js +++ b/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalContentConnector.js @@ -42,19 +42,19 @@ class EditDownloadClientModalContentConnector extends Component { onInputChange = ({ name, value }) => { this.props.setDownloadClientValue({ name, value }); - } + }; onFieldChange = ({ name, value }) => { this.props.setDownloadClientFieldValue({ name, value }); - } + }; onSavePress = () => { this.props.saveDownloadClient({ id: this.props.id }); - } + }; onTestPress = () => { this.props.testDownloadClient({ id: this.props.id }); - } + }; // // Render diff --git a/frontend/src/Settings/General/GeneralSettings.js b/frontend/src/Settings/General/GeneralSettings.js index 546af3ac7..38bb08f75 100644 --- a/frontend/src/Settings/General/GeneralSettings.js +++ b/frontend/src/Settings/General/GeneralSettings.js @@ -82,11 +82,11 @@ class GeneralSettings extends Component { onConfirmRestart = () => { this.setState({ isRestartRequiredModalOpen: false }); this.props.onConfirmRestart(); - } + }; onCloseRestartRequiredModalOpen = () => { this.setState({ isRestartRequiredModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Settings/General/GeneralSettingsConnector.js b/frontend/src/Settings/General/GeneralSettingsConnector.js index f1a688175..18b23a950 100644 --- a/frontend/src/Settings/General/GeneralSettingsConnector.js +++ b/frontend/src/Settings/General/GeneralSettingsConnector.js @@ -67,19 +67,19 @@ class GeneralSettingsConnector extends Component { onInputChange = ({ name, value }) => { this.props.setGeneralSettingsValue({ name, value }); - } + }; onSavePress = () => { this.props.saveGeneralSettings(); - } + }; onConfirmResetApiKey = () => { this.props.executeCommand({ name: commandNames.RESET_API_KEY }); - } + }; onConfirmRestart = () => { this.props.restart(); - } + }; // // Render diff --git a/frontend/src/Settings/General/SecuritySettings.js b/frontend/src/Settings/General/SecuritySettings.js index ecb4c9671..d2589b6b1 100644 --- a/frontend/src/Settings/General/SecuritySettings.js +++ b/frontend/src/Settings/General/SecuritySettings.js @@ -41,20 +41,20 @@ class SecuritySettings extends Component { onApikeyFocus = (event) => { event.target.select(); - } + }; onResetApiKeyPress = () => { this.setState({ isConfirmApiKeyResetModalOpen: true }); - } + }; onConfirmResetApiKey = () => { this.setState({ isConfirmApiKeyResetModalOpen: false }); this.props.onConfirmResetApiKey(); - } + }; onCloseResetApiKeyModal = () => { this.setState({ isConfirmApiKeyResetModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Settings/Indexers/IndexerProxies/AddIndexerProxyItem.js b/frontend/src/Settings/Indexers/IndexerProxies/AddIndexerProxyItem.js index 73e6454a9..ff238c915 100644 --- a/frontend/src/Settings/Indexers/IndexerProxies/AddIndexerProxyItem.js +++ b/frontend/src/Settings/Indexers/IndexerProxies/AddIndexerProxyItem.js @@ -20,7 +20,7 @@ class AddIndexerProxyItem extends Component { } = this.props; this.props.onIndexerProxySelect({ implementation }); - } + }; // // Render diff --git a/frontend/src/Settings/Indexers/IndexerProxies/AddIndexerProxyModalContentConnector.js b/frontend/src/Settings/Indexers/IndexerProxies/AddIndexerProxyModalContentConnector.js index cccafe922..1fac45c1d 100644 --- a/frontend/src/Settings/Indexers/IndexerProxies/AddIndexerProxyModalContentConnector.js +++ b/frontend/src/Settings/Indexers/IndexerProxies/AddIndexerProxyModalContentConnector.js @@ -46,7 +46,7 @@ class AddIndexerProxyModalContentConnector extends Component { onIndexerProxySelect = ({ implementation, name }) => { this.props.selectIndexerProxySchema({ implementation, presetName: name }); this.props.onModalClose({ indexerProxySelected: true }); - } + }; // // Render diff --git a/frontend/src/Settings/Indexers/IndexerProxies/AddIndexerProxyPresetMenuItem.js b/frontend/src/Settings/Indexers/IndexerProxies/AddIndexerProxyPresetMenuItem.js index 52ee40c10..166457873 100644 --- a/frontend/src/Settings/Indexers/IndexerProxies/AddIndexerProxyPresetMenuItem.js +++ b/frontend/src/Settings/Indexers/IndexerProxies/AddIndexerProxyPresetMenuItem.js @@ -17,7 +17,7 @@ class AddIndexerProxyPresetMenuItem extends Component { name, implementation }); - } + }; // // Render diff --git a/frontend/src/Settings/Indexers/IndexerProxies/EditIndexerProxyModalConnector.js b/frontend/src/Settings/Indexers/IndexerProxies/EditIndexerProxyModalConnector.js index a1a6563e7..0df91cb83 100644 --- a/frontend/src/Settings/Indexers/IndexerProxies/EditIndexerProxyModalConnector.js +++ b/frontend/src/Settings/Indexers/IndexerProxies/EditIndexerProxyModalConnector.js @@ -33,7 +33,7 @@ class EditIndexerProxyModalConnector extends Component { this.props.dispatchCancelTestIndexerProxy(); this.props.dispatchCancelSaveIndexerProxy(); this.props.onModalClose(); - } + }; // // Render diff --git a/frontend/src/Settings/Indexers/IndexerProxies/EditIndexerProxyModalContentConnector.js b/frontend/src/Settings/Indexers/IndexerProxies/EditIndexerProxyModalContentConnector.js index 01db7709b..ca5bfd43f 100644 --- a/frontend/src/Settings/Indexers/IndexerProxies/EditIndexerProxyModalContentConnector.js +++ b/frontend/src/Settings/Indexers/IndexerProxies/EditIndexerProxyModalContentConnector.js @@ -42,19 +42,19 @@ class EditIndexerProxyModalContentConnector extends Component { onInputChange = ({ name, value }) => { this.props.setIndexerProxyValue({ name, value }); - } + }; onFieldChange = ({ name, value }) => { this.props.setIndexerProxyFieldValue({ name, value }); - } + }; onSavePress = () => { this.props.saveIndexerProxy({ id: this.props.id }); - } + }; onTestPress = () => { this.props.testIndexerProxy({ id: this.props.id }); - } + }; // // Render diff --git a/frontend/src/Settings/Indexers/IndexerProxies/IndexerProxies.js b/frontend/src/Settings/Indexers/IndexerProxies/IndexerProxies.js index b51b8116f..7ae537da1 100644 --- a/frontend/src/Settings/Indexers/IndexerProxies/IndexerProxies.js +++ b/frontend/src/Settings/Indexers/IndexerProxies/IndexerProxies.js @@ -30,18 +30,18 @@ class IndexerProxies extends Component { onAddIndexerProxyPress = () => { this.setState({ isAddIndexerProxyModalOpen: true }); - } + }; onAddIndexerProxyModalClose = ({ indexerProxySelected = false } = {}) => { this.setState({ isAddIndexerProxyModalOpen: false, isEditIndexerProxyModalOpen: indexerProxySelected }); - } + }; onEditIndexerProxyModalClose = () => { this.setState({ isEditIndexerProxyModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Settings/Indexers/IndexerProxies/IndexerProxiesConnector.js b/frontend/src/Settings/Indexers/IndexerProxies/IndexerProxiesConnector.js index 94258079a..9d2188a7c 100644 --- a/frontend/src/Settings/Indexers/IndexerProxies/IndexerProxiesConnector.js +++ b/frontend/src/Settings/Indexers/IndexerProxies/IndexerProxiesConnector.js @@ -42,7 +42,7 @@ class IndexerProxiesConnector extends Component { onConfirmDeleteIndexerProxy = (id) => { this.props.deleteIndexerProxy({ id }); - } + }; // // Render diff --git a/frontend/src/Settings/Indexers/IndexerProxies/IndexerProxy.js b/frontend/src/Settings/Indexers/IndexerProxies/IndexerProxy.js index 18c96144a..4ac3cfc61 100644 --- a/frontend/src/Settings/Indexers/IndexerProxies/IndexerProxy.js +++ b/frontend/src/Settings/Indexers/IndexerProxies/IndexerProxy.js @@ -29,26 +29,26 @@ class IndexerProxy extends Component { onEditIndexerProxyPress = () => { this.setState({ isEditIndexerProxyModalOpen: true }); - } + }; onEditIndexerProxyModalClose = () => { this.setState({ isEditIndexerProxyModalOpen: false }); - } + }; onDeleteIndexerProxyPress = () => { this.setState({ isEditIndexerProxyModalOpen: false, isDeleteIndexerProxyModalOpen: true }); - } + }; onDeleteIndexerProxyModalClose= () => { this.setState({ isDeleteIndexerProxyModalOpen: false }); - } + }; onConfirmDeleteIndexerProxy = () => { this.props.onConfirmDeleteIndexerProxy(this.props.id); - } + }; // // Render diff --git a/frontend/src/Settings/Notifications/Notifications/AddNotificationItem.js b/frontend/src/Settings/Notifications/Notifications/AddNotificationItem.js index 0ac3d6634..f6e6affc0 100644 --- a/frontend/src/Settings/Notifications/Notifications/AddNotificationItem.js +++ b/frontend/src/Settings/Notifications/Notifications/AddNotificationItem.js @@ -20,7 +20,7 @@ class AddNotificationItem extends Component { } = this.props; this.props.onNotificationSelect({ implementation }); - } + }; // // Render diff --git a/frontend/src/Settings/Notifications/Notifications/AddNotificationModalContentConnector.js b/frontend/src/Settings/Notifications/Notifications/AddNotificationModalContentConnector.js index abeb5e2ac..749038688 100644 --- a/frontend/src/Settings/Notifications/Notifications/AddNotificationModalContentConnector.js +++ b/frontend/src/Settings/Notifications/Notifications/AddNotificationModalContentConnector.js @@ -46,7 +46,7 @@ class AddNotificationModalContentConnector extends Component { onNotificationSelect = ({ implementation, name }) => { this.props.selectNotificationSchema({ implementation, presetName: name }); this.props.onModalClose({ notificationSelected: true }); - } + }; // // Render diff --git a/frontend/src/Settings/Notifications/Notifications/AddNotificationPresetMenuItem.js b/frontend/src/Settings/Notifications/Notifications/AddNotificationPresetMenuItem.js index e4df85b8a..dd325906f 100644 --- a/frontend/src/Settings/Notifications/Notifications/AddNotificationPresetMenuItem.js +++ b/frontend/src/Settings/Notifications/Notifications/AddNotificationPresetMenuItem.js @@ -17,7 +17,7 @@ class AddNotificationPresetMenuItem extends Component { name, implementation }); - } + }; // // Render diff --git a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalConnector.js b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalConnector.js index 7a9042946..91070a979 100644 --- a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalConnector.js +++ b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalConnector.js @@ -33,7 +33,7 @@ class EditNotificationModalConnector extends Component { this.props.dispatchCancelTestNotification(); this.props.dispatchCancelSaveNotification(); this.props.onModalClose(); - } + }; // // Render diff --git a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContentConnector.js b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContentConnector.js index 504f18663..3d6e9378e 100644 --- a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContentConnector.js +++ b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContentConnector.js @@ -42,19 +42,19 @@ class EditNotificationModalContentConnector extends Component { onInputChange = ({ name, value }) => { this.props.setNotificationValue({ name, value }); - } + }; onFieldChange = ({ name, value }) => { this.props.setNotificationFieldValue({ name, value }); - } + }; onSavePress = () => { this.props.saveNotification({ id: this.props.id }); - } + }; onTestPress = () => { this.props.testNotification({ id: this.props.id }); - } + }; // // Render diff --git a/frontend/src/Settings/Notifications/Notifications/Notification.js b/frontend/src/Settings/Notifications/Notifications/Notification.js index eaca8b834..e356024c4 100644 --- a/frontend/src/Settings/Notifications/Notifications/Notification.js +++ b/frontend/src/Settings/Notifications/Notifications/Notification.js @@ -27,26 +27,26 @@ class Notification extends Component { onEditNotificationPress = () => { this.setState({ isEditNotificationModalOpen: true }); - } + }; onEditNotificationModalClose = () => { this.setState({ isEditNotificationModalOpen: false }); - } + }; onDeleteNotificationPress = () => { this.setState({ isEditNotificationModalOpen: false, isDeleteNotificationModalOpen: true }); - } + }; onDeleteNotificationModalClose= () => { this.setState({ isDeleteNotificationModalOpen: false }); - } + }; onConfirmDeleteNotification = () => { this.props.onConfirmDeleteNotification(this.props.id); - } + }; // // Render diff --git a/frontend/src/Settings/Notifications/Notifications/Notifications.js b/frontend/src/Settings/Notifications/Notifications/Notifications.js index d740cb647..8b3bfbb36 100644 --- a/frontend/src/Settings/Notifications/Notifications/Notifications.js +++ b/frontend/src/Settings/Notifications/Notifications/Notifications.js @@ -30,18 +30,18 @@ class Notifications extends Component { onAddNotificationPress = () => { this.setState({ isAddNotificationModalOpen: true }); - } + }; onAddNotificationModalClose = ({ notificationSelected = false } = {}) => { this.setState({ isAddNotificationModalOpen: false, isEditNotificationModalOpen: notificationSelected }); - } + }; onEditNotificationModalClose = () => { this.setState({ isEditNotificationModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Settings/Notifications/Notifications/NotificationsConnector.js b/frontend/src/Settings/Notifications/Notifications/NotificationsConnector.js index 6191d76f8..83ee6c697 100644 --- a/frontend/src/Settings/Notifications/Notifications/NotificationsConnector.js +++ b/frontend/src/Settings/Notifications/Notifications/NotificationsConnector.js @@ -33,7 +33,7 @@ class NotificationsConnector extends Component { onConfirmDeleteNotification = (id) => { this.props.deleteNotification({ id }); - } + }; // // Render diff --git a/frontend/src/Settings/Profiles/App/AppProfile.js b/frontend/src/Settings/Profiles/App/AppProfile.js index e1146986d..546006ff5 100644 --- a/frontend/src/Settings/Profiles/App/AppProfile.js +++ b/frontend/src/Settings/Profiles/App/AppProfile.js @@ -28,26 +28,26 @@ class AppProfile extends Component { onEditAppProfilePress = () => { this.setState({ isEditAppProfileModalOpen: true }); - } + }; onEditAppProfileModalClose = () => { this.setState({ isEditAppProfileModalOpen: false }); - } + }; onDeleteAppProfilePress = () => { this.setState({ isEditAppProfileModalOpen: false, isDeleteAppProfileModalOpen: true }); - } + }; onDeleteAppProfileModalClose = () => { this.setState({ isDeleteAppProfileModalOpen: false }); - } + }; onConfirmDeleteAppProfile = () => { this.props.onConfirmDeleteAppProfile(this.props.id); - } + }; onCloneAppProfilePress = () => { const { @@ -56,7 +56,7 @@ class AppProfile extends Component { } = this.props; onCloneAppProfilePress(id); - } + }; // // Render diff --git a/frontend/src/Settings/Profiles/App/AppProfiles.js b/frontend/src/Settings/Profiles/App/AppProfiles.js index c4d46a96e..b93b0fe51 100644 --- a/frontend/src/Settings/Profiles/App/AppProfiles.js +++ b/frontend/src/Settings/Profiles/App/AppProfiles.js @@ -29,15 +29,15 @@ class AppProfiles extends Component { onCloneAppProfilePress = (id) => { this.props.onCloneAppProfilePress(id); this.setState({ isAppProfileModalOpen: true }); - } + }; onEditAppProfilePress = () => { this.setState({ isAppProfileModalOpen: true }); - } + }; onModalClose = () => { this.setState({ isAppProfileModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/Settings/Profiles/App/AppProfilesConnector.js b/frontend/src/Settings/Profiles/App/AppProfilesConnector.js index 3948fcdb7..a150655a6 100644 --- a/frontend/src/Settings/Profiles/App/AppProfilesConnector.js +++ b/frontend/src/Settings/Profiles/App/AppProfilesConnector.js @@ -34,11 +34,11 @@ class AppProfilesConnector extends Component { onConfirmDeleteAppProfile = (id) => { this.props.dispatchDeleteAppProfile({ id }); - } + }; onCloneAppProfilePress = (id) => { this.props.dispatchCloneAppProfile({ id }); - } + }; // // Render diff --git a/frontend/src/Settings/Profiles/App/EditAppProfileModalConnector.js b/frontend/src/Settings/Profiles/App/EditAppProfileModalConnector.js index c6e1f849e..de61a9b86 100644 --- a/frontend/src/Settings/Profiles/App/EditAppProfileModalConnector.js +++ b/frontend/src/Settings/Profiles/App/EditAppProfileModalConnector.js @@ -20,7 +20,7 @@ class EditAppProfileModalConnector extends Component { onModalClose = () => { this.props.clearPendingChanges({ section: 'settings.appProfiles' }); this.props.onModalClose(); - } + }; // // Render diff --git a/frontend/src/Settings/Profiles/App/EditAppProfileModalContentConnector.js b/frontend/src/Settings/Profiles/App/EditAppProfileModalContentConnector.js index 8e92f8204..80a1f9dfc 100644 --- a/frontend/src/Settings/Profiles/App/EditAppProfileModalContentConnector.js +++ b/frontend/src/Settings/Profiles/App/EditAppProfileModalContentConnector.js @@ -45,11 +45,11 @@ class EditAppProfileModalContentConnector extends Component { onInputChange = ({ name, value }) => { this.props.setAppProfileValue({ name, value }); - } + }; onSavePress = () => { this.props.saveAppProfile({ id: this.props.id }); - } + }; // // Render diff --git a/frontend/src/Settings/SettingsToolbar.js b/frontend/src/Settings/SettingsToolbar.js index 62692ca76..048dcc66e 100644 --- a/frontend/src/Settings/SettingsToolbar.js +++ b/frontend/src/Settings/SettingsToolbar.js @@ -32,7 +32,7 @@ class SettingsToolbar extends Component { if (hasPendingChanges) { onSavePress(); } - } + }; // // Render diff --git a/frontend/src/Settings/SettingsToolbarConnector.js b/frontend/src/Settings/SettingsToolbarConnector.js index 8bfb3dad5..1e6f7a589 100644 --- a/frontend/src/Settings/SettingsToolbarConnector.js +++ b/frontend/src/Settings/SettingsToolbarConnector.js @@ -66,14 +66,14 @@ class SettingsToolbarConnector extends Component { } return true; - } + }; // // Listeners onAdvancedSettingsPress = () => { this.props.toggleAdvancedSettings(); - } + }; onConfirmNavigation = () => { const { @@ -98,7 +98,7 @@ class SettingsToolbarConnector extends Component { history.goBack(); } }); - } + }; onCancelNavigation = () => { this.setState({ @@ -106,7 +106,7 @@ class SettingsToolbarConnector extends Component { nextLocationAction: null, confirmed: false }); - } + }; // // Render diff --git a/frontend/src/Settings/Tags/Tag.js b/frontend/src/Settings/Tags/Tag.js index 7842b878f..7e9aa0991 100644 --- a/frontend/src/Settings/Tags/Tag.js +++ b/frontend/src/Settings/Tags/Tag.js @@ -26,26 +26,26 @@ class Tag extends Component { onShowDetailsPress = () => { this.setState({ isDetailsModalOpen: true }); - } + }; onDetailsModalClose = () => { this.setState({ isDetailsModalOpen: false }); - } + }; onDeleteTagPress = () => { this.setState({ isDetailsModalOpen: false, isDeleteTagModalOpen: true }); - } + }; onDeleteTagModalClose= () => { this.setState({ isDeleteTagModalOpen: false }); - } + }; onConfirmDeleteTag = () => { this.props.onConfirmDeleteTag({ id: this.props.id }); - } + }; // // Render diff --git a/frontend/src/Settings/UI/UISettingsConnector.js b/frontend/src/Settings/UI/UISettingsConnector.js index 31d41f9e0..ea9194f8c 100644 --- a/frontend/src/Settings/UI/UISettingsConnector.js +++ b/frontend/src/Settings/UI/UISettingsConnector.js @@ -72,11 +72,11 @@ class UISettingsConnector extends Component { onInputChange = ({ name, value }) => { this.props.setUISettingsValue({ name, value }); - } + }; onSavePress = () => { this.props.saveUISettings(); - } + }; // // Render diff --git a/frontend/src/System/Backup/BackupRow.js b/frontend/src/System/Backup/BackupRow.js index 1e57c2f7b..8bbfaf172 100644 --- a/frontend/src/System/Backup/BackupRow.js +++ b/frontend/src/System/Backup/BackupRow.js @@ -31,19 +31,19 @@ class BackupRow extends Component { onRestorePress = () => { this.setState({ isRestoreModalOpen: true }); - } + }; onRestoreModalClose = () => { this.setState({ isRestoreModalOpen: false }); - } + }; onDeletePress = () => { this.setState({ isConfirmDeleteModalOpen: true }); - } + }; onConfirmDeleteModalClose = () => { this.setState({ isConfirmDeleteModalOpen: false }); - } + }; onConfirmDeletePress = () => { const { @@ -54,7 +54,7 @@ class BackupRow extends Component { this.setState({ isConfirmDeleteModalOpen: false }, () => { onDeleteBackupPress(id); }); - } + }; // // Render diff --git a/frontend/src/System/Backup/Backups.js b/frontend/src/System/Backup/Backups.js index f65010875..541c09253 100644 --- a/frontend/src/System/Backup/Backups.js +++ b/frontend/src/System/Backup/Backups.js @@ -52,11 +52,11 @@ class Backups extends Component { onRestorePress = () => { this.setState({ isRestoreModalOpen: true }); - } + }; onRestoreModalClose = () => { this.setState({ isRestoreModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/System/Backup/RestoreBackupModalContent.js b/frontend/src/System/Backup/RestoreBackupModalContent.js index 3c86ae0d4..150c46ad6 100644 --- a/frontend/src/System/Backup/RestoreBackupModalContent.js +++ b/frontend/src/System/Backup/RestoreBackupModalContent.js @@ -97,7 +97,7 @@ class RestoreBackupModalContent extends Component { file: files[0], path: value }); - } + }; onRestorePress = () => { const { @@ -109,7 +109,7 @@ class RestoreBackupModalContent extends Component { id, file: this.state.file }); - } + }; // // Render diff --git a/frontend/src/System/Events/LogsTableConnector.js b/frontend/src/System/Events/LogsTableConnector.js index 957e2a5e1..20e6eafbf 100644 --- a/frontend/src/System/Events/LogsTableConnector.js +++ b/frontend/src/System/Events/LogsTableConnector.js @@ -57,31 +57,31 @@ class LogsTableConnector extends Component { onFirstPagePress = () => { this.props.gotoLogsFirstPage(); - } + }; onPreviousPagePress = () => { this.props.gotoLogsPreviousPage(); - } + }; onNextPagePress = () => { this.props.gotoLogsNextPage(); - } + }; onLastPagePress = () => { this.props.gotoLogsLastPage(); - } + }; onPageSelect = (page) => { this.props.gotoLogsPage({ page }); - } + }; onSortPress = (sortKey) => { this.props.setLogsSort({ sortKey }); - } + }; onFilterSelect = (selectedFilterKey) => { this.props.setLogsFilter({ selectedFilterKey }); - } + }; onTableOptionChange = (payload) => { this.props.setLogsTableOption(payload); @@ -89,15 +89,15 @@ class LogsTableConnector extends Component { if (payload.pageSize) { this.props.gotoLogsFirstPage(); } - } + }; onRefreshPress = () => { this.props.gotoLogsFirstPage(); - } + }; onClearLogsPress = () => { this.props.executeCommand({ name: commandNames.CLEAR_LOGS }); - } + }; // // Render diff --git a/frontend/src/System/Events/LogsTableRow.js b/frontend/src/System/Events/LogsTableRow.js index bebf80184..2de54a189 100644 --- a/frontend/src/System/Events/LogsTableRow.js +++ b/frontend/src/System/Events/LogsTableRow.js @@ -46,11 +46,11 @@ class LogsTableRow extends Component { if (!this.state.isDetailsModalOpen) { this.setState({ isDetailsModalOpen: true }); } - } + }; onModalClose = () => { this.setState({ isDetailsModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/System/Logs/Files/LogFilesConnector.js b/frontend/src/System/Logs/Files/LogFilesConnector.js index b6d443f6a..03d958b33 100644 --- a/frontend/src/System/Logs/Files/LogFilesConnector.js +++ b/frontend/src/System/Logs/Files/LogFilesConnector.js @@ -61,11 +61,11 @@ class LogFilesConnector extends Component { onRefreshPress = () => { this.props.fetchLogFiles(); - } + }; onDeleteFilesPress = () => { this.props.executeCommand({ name: commandNames.DELETE_LOG_FILES }); - } + }; // // Render diff --git a/frontend/src/System/Logs/LogsNavMenu.js b/frontend/src/System/Logs/LogsNavMenu.js index b69630248..cc485f270 100644 --- a/frontend/src/System/Logs/LogsNavMenu.js +++ b/frontend/src/System/Logs/LogsNavMenu.js @@ -23,11 +23,11 @@ class LogsNavMenu extends Component { onMenuButtonPress = () => { this.setState({ isMenuOpen: !this.state.isMenuOpen }); - } + }; onMenuItemPress = () => { this.setState({ isMenuOpen: false }); - } + }; // // Render diff --git a/frontend/src/System/Logs/Updates/UpdateLogFilesConnector.js b/frontend/src/System/Logs/Updates/UpdateLogFilesConnector.js index 3563d58d8..537816014 100644 --- a/frontend/src/System/Logs/Updates/UpdateLogFilesConnector.js +++ b/frontend/src/System/Logs/Updates/UpdateLogFilesConnector.js @@ -61,11 +61,11 @@ class UpdateLogFilesConnector extends Component { onRefreshPress = () => { this.props.fetchUpdateLogFiles(); - } + }; onDeleteFilesPress = () => { this.props.executeCommand({ name: commandNames.DELETE_UPDATE_LOG_FILES }); - } + }; // // Render diff --git a/frontend/src/System/Status/About/StartTime.js b/frontend/src/System/Status/About/StartTime.js index 94b4322d5..08c820add 100644 --- a/frontend/src/System/Status/About/StartTime.js +++ b/frontend/src/System/Status/About/StartTime.js @@ -65,7 +65,7 @@ class StartTime extends Component { onTimeout = () => { this.setState({ uptime: getUptime(this.props.startTime) }); this._timeoutId = setTimeout(this.onTimeout, 1000); - } + }; // // Render diff --git a/frontend/src/System/Tasks/Queued/QueuedTaskRow.js b/frontend/src/System/Tasks/Queued/QueuedTaskRow.js index b19525326..5ccf0e5b8 100644 --- a/frontend/src/System/Tasks/Queued/QueuedTaskRow.js +++ b/frontend/src/System/Tasks/Queued/QueuedTaskRow.js @@ -136,13 +136,13 @@ class QueuedTaskRow extends Component { this.setState({ isCancelConfirmModalOpen: true }); - } + }; onAbortCancel = () => { this.setState({ isCancelConfirmModalOpen: false }); - } + }; // // Render diff --git a/frontend/src/System/Updates/UpdatesConnector.js b/frontend/src/System/Updates/UpdatesConnector.js index 343106d24..38873a990 100644 --- a/frontend/src/System/Updates/UpdatesConnector.js +++ b/frontend/src/System/Updates/UpdatesConnector.js @@ -77,7 +77,7 @@ class UpdatesConnector extends Component { onInstallLatestPress = () => { this.props.dispatchExecuteCommand({ name: commandNames.APPLICATION_UPDATE }); - } + }; // // Render