Renames in Frontend

This commit is contained in:
Qstick
2020-05-15 23:32:52 -04:00
committed by ta264
parent ee4e44b81a
commit ee43ccf620
387 changed files with 4036 additions and 4364 deletions
@@ -0,0 +1,29 @@
function getNewAuthor(author, payload) {
const {
rootFolderPath,
monitor,
qualityProfileId,
metadataProfileId,
authorType,
tags,
searchForMissingBooks = false
} = payload;
const addOptions = {
monitor,
searchForMissingBooks
};
author.addOptions = addOptions;
author.monitored = true;
author.qualityProfileId = qualityProfileId;
author.metadataProfileId = metadataProfileId;
author.rootFolderPath = rootFolderPath;
author.authorType = authorType;
author.tags = tags;
return author;
}
export default getNewAuthor;
@@ -0,0 +1,15 @@
import { kinds } from 'Helpers/Props';
function getProgressBarKind(status, monitored, progress) {
if (progress === 100) {
return status === 'ended' ? kinds.SUCCESS : kinds.PRIMARY;
}
if (monitored) {
return kinds.DANGER;
}
return kinds.WARNING;
}
export default getProgressBarKind;
@@ -0,0 +1,11 @@
const monitorOptions = [
{ key: 'all', value: 'All Books' },
{ key: 'future', value: 'Future Books' },
{ key: 'missing', value: 'Missing Books' },
{ key: 'existing', value: 'Existing Books' },
{ key: 'first', value: 'Only First Book' },
{ key: 'latest', value: 'Only Latest Book' },
{ key: 'none', value: 'None' }
];
export default monitorOptions;