|
|
@ -8,8 +8,10 @@ function AuthorIndexPosterInfo(props) {
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
qualityProfile,
|
|
|
|
qualityProfile,
|
|
|
|
showQualityProfile,
|
|
|
|
showQualityProfile,
|
|
|
|
previousAiring,
|
|
|
|
metadataProfile,
|
|
|
|
added,
|
|
|
|
added,
|
|
|
|
|
|
|
|
nextBook,
|
|
|
|
|
|
|
|
lastBook,
|
|
|
|
bookCount,
|
|
|
|
bookCount,
|
|
|
|
path,
|
|
|
|
path,
|
|
|
|
sizeOnDisk,
|
|
|
|
sizeOnDisk,
|
|
|
@ -27,27 +29,53 @@ function AuthorIndexPosterInfo(props) {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (sortKey === 'previousAiring' && previousAiring) {
|
|
|
|
if (sortKey === 'metadataProfileId') {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={styles.info}>
|
|
|
|
<div className={styles.info}>
|
|
|
|
{
|
|
|
|
{metadataProfile.name}
|
|
|
|
getRelativeDate(
|
|
|
|
</div>
|
|
|
|
previousAiring,
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (sortKey === 'added' && added) {
|
|
|
|
|
|
|
|
const addedDate = getRelativeDate(
|
|
|
|
|
|
|
|
added,
|
|
|
|
shortDateFormat,
|
|
|
|
shortDateFormat,
|
|
|
|
showRelativeDates,
|
|
|
|
showRelativeDates,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
timeFormat,
|
|
|
|
timeFormat,
|
|
|
|
timeForToday: true
|
|
|
|
timeForToday: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
<div className={styles.info}>
|
|
|
|
|
|
|
|
{`Added ${addedDate}`}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (sortKey === 'nextBook' && nextBook) {
|
|
|
|
|
|
|
|
const date = getRelativeDate(
|
|
|
|
|
|
|
|
nextBook.releaseDate,
|
|
|
|
|
|
|
|
shortDateFormat,
|
|
|
|
|
|
|
|
showRelativeDates,
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
timeFormat,
|
|
|
|
|
|
|
|
timeForToday: false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
<div className={styles.info}>
|
|
|
|
|
|
|
|
{`Next Book ${date}`}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (sortKey === 'added' && added) {
|
|
|
|
if (sortKey === 'lastBook' && lastBook) {
|
|
|
|
const addedDate = getRelativeDate(
|
|
|
|
const date = getRelativeDate(
|
|
|
|
added,
|
|
|
|
lastBook.releaseDate,
|
|
|
|
shortDateFormat,
|
|
|
|
shortDateFormat,
|
|
|
|
showRelativeDates,
|
|
|
|
showRelativeDates,
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -58,7 +86,7 @@ function AuthorIndexPosterInfo(props) {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={styles.info}>
|
|
|
|
<div className={styles.info}>
|
|
|
|
{`Added ${addedDate}`}
|
|
|
|
{`Last Book ${date}`}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -101,8 +129,10 @@ function AuthorIndexPosterInfo(props) {
|
|
|
|
AuthorIndexPosterInfo.propTypes = {
|
|
|
|
AuthorIndexPosterInfo.propTypes = {
|
|
|
|
qualityProfile: PropTypes.object.isRequired,
|
|
|
|
qualityProfile: PropTypes.object.isRequired,
|
|
|
|
showQualityProfile: PropTypes.bool.isRequired,
|
|
|
|
showQualityProfile: PropTypes.bool.isRequired,
|
|
|
|
previousAiring: PropTypes.string,
|
|
|
|
metadataProfile: PropTypes.object.isRequired,
|
|
|
|
added: PropTypes.string,
|
|
|
|
added: PropTypes.string,
|
|
|
|
|
|
|
|
nextBook: PropTypes.object,
|
|
|
|
|
|
|
|
lastBook: PropTypes.object,
|
|
|
|
bookCount: PropTypes.number.isRequired,
|
|
|
|
bookCount: PropTypes.number.isRequired,
|
|
|
|
path: PropTypes.string.isRequired,
|
|
|
|
path: PropTypes.string.isRequired,
|
|
|
|
sizeOnDisk: PropTypes.number,
|
|
|
|
sizeOnDisk: PropTypes.number,
|
|
|
|