mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
Fixed eslint errors and re-enabled build.sh check (#150)
* Fixed eslint errors and re-enabled build.sh check * Corrected typo * Corrected typo * Disabled max-params on files with warnings * Fixes for PR comments * Fixes for PR comments * Fixes for PR comments * Fixes for PR comments * Fixes for PR comments * Fixes for PR comments
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import moment from 'moment';
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import formatTime from 'Utilities/Date/formatTime';
|
||||
import isInNextWeek from 'Utilities/Date/isInNextWeek';
|
||||
import isToday from 'Utilities/Date/isToday';
|
||||
import isTomorrow from 'Utilities/Date/isTomorrow';
|
||||
@@ -13,8 +12,7 @@ function EpisodeAiring(props) {
|
||||
releaseDate,
|
||||
albumLabel,
|
||||
shortDateFormat,
|
||||
showRelativeDates,
|
||||
timeFormat
|
||||
showRelativeDates
|
||||
} = props;
|
||||
|
||||
const networkLabel = (
|
||||
@@ -77,8 +75,7 @@ EpisodeAiring.propTypes = {
|
||||
releaseDate: PropTypes.string.isRequired,
|
||||
albumLabel: PropTypes.arrayOf(PropTypes.string).isRequired,
|
||||
shortDateFormat: PropTypes.string.isRequired,
|
||||
showRelativeDates: PropTypes.bool.isRequired,
|
||||
timeFormat: PropTypes.string.isRequired
|
||||
showRelativeDates: PropTypes.bool.isRequired
|
||||
};
|
||||
|
||||
export default EpisodeAiring;
|
||||
|
||||
@@ -10,8 +10,7 @@ function createMapStateToProps() {
|
||||
(uiSettings) => {
|
||||
return _.pick(uiSettings, [
|
||||
'shortDateFormat',
|
||||
'showRelativeDates',
|
||||
'timeFormat'
|
||||
'showRelativeDates'
|
||||
]);
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import React, { Component } from 'react';
|
||||
import formatBytes from 'Utilities/Number/formatBytes';
|
||||
import { icons, kinds, sizes } from 'Helpers/Props';
|
||||
import IconButton from 'Components/Link/IconButton';
|
||||
import { kinds, sizes } from 'Helpers/Props';
|
||||
import ConfirmModal from 'Components/Modal/ConfirmModal';
|
||||
import Label from 'Components/Label';
|
||||
import QualityProfileNameConnector from 'Settings/Profiles/Quality/QualityProfileNameConnector';
|
||||
import EpisodeQuality from 'Album/EpisodeQuality';
|
||||
import Table from 'Components/Table/Table';
|
||||
import TableBody from 'Components/Table/TableBody';
|
||||
import EpisodeAiringConnector from './EpisodeAiringConnector';
|
||||
|
||||
@@ -14,14 +14,15 @@ function createMapStateToProps() {
|
||||
createEpisodeSelector(),
|
||||
createCommandsSelector(),
|
||||
createDimensionsSelector(),
|
||||
(tracks, episode, commands, dimensions) => {
|
||||
createArtistSelector(),
|
||||
(tracks, episode, commands, dimensions, artist) => {
|
||||
const filteredItems = _.filter(tracks.items, { albumId: episode.id });
|
||||
const mediumSortedItems = _.orderBy(filteredItems, 'absoluteTrackNumber');
|
||||
const items = _.orderBy(mediumSortedItems, 'mediumNumber');
|
||||
|
||||
return {
|
||||
network: episode.label,
|
||||
qualityProfileId: episode.profileId,
|
||||
qualityProfileId: artist.qualityProfileId,
|
||||
releaseDate: episode.releaseDate,
|
||||
overview: episode.overview,
|
||||
items,
|
||||
|
||||
Reference in New Issue
Block a user