Added covers to media module. Fixed 'New' sorting for all pages.

This commit is contained in:
ThePendulum 2020-04-16 22:54:07 +02:00
parent 3b2bf921f3
commit 4b26f8f476
6 changed files with 5 additions and 23 deletions

View File

@ -1,8 +1,6 @@
<template> <template>
<div class="filter-bar noselect"> <div class="filter-bar noselect">
<span class="sort"> <span class="sort">
<Icon icon="sort-time-asc" />
<label class="range"> <label class="range">
<input <input
:id="`${_uid}-range-latest`" :id="`${_uid}-range-latest`"

View File

@ -52,7 +52,6 @@ function initActorActions(store, _router) {
$limit:Int = 1000, $limit:Int = 1000,
$after:Date = "1900-01-01", $after:Date = "1900-01-01",
$before:Date = "2100-01-01", $before:Date = "2100-01-01",
$isNew:[Boolean!] = [true,false]
$orderBy:[ReleasesActorsOrderBy!] $orderBy:[ReleasesActorsOrderBy!]
$exclude: [String!] $exclude: [String!]
) { ) {
@ -138,9 +137,6 @@ function initActorActions(store, _router) {
} }
} }
} }
isNew: {
in: $isNew
}
} }
}, },
first: $limit, first: $limit,
@ -176,8 +172,7 @@ function initActorActions(store, _router) {
limit, limit,
after: store.getters.after, after: store.getters.after,
before: store.getters.before, before: store.getters.before,
isNew: store.getters.isNew, orderBy: store.getters.orderBy,
orderBy: store.state.ui.range === 'upcoming' ? 'RELEASE_BY_RELEASE_ID__DATE_ASC' : 'RELEASE_BY_RELEASE_ID__DATE_DESC',
exclude: store.state.ui.filter, exclude: store.state.ui.filter,
}); });

View File

@ -12,7 +12,6 @@ function initNetworksActions(store, _router) {
$before:Date = "2100-01-01", $before:Date = "2100-01-01",
$afterTime:Datetime = "1900-01-01", $afterTime:Datetime = "1900-01-01",
$beforeTime:Datetime = "2100-01-01", $beforeTime:Datetime = "2100-01-01",
$isNew:[Boolean!] = [true,false]
$orderBy: [ReleasesOrderBy!] $orderBy: [ReleasesOrderBy!]
$exclude: [String!] $exclude: [String!]
) { ) {
@ -99,9 +98,6 @@ function initNetworksActions(store, _router) {
} }
} }
} }
isNew: {
in: $isNew
}
} }
) { ) {
${releaseFields} ${releaseFields}
@ -114,8 +110,7 @@ function initNetworksActions(store, _router) {
before: store.getters.before, before: store.getters.before,
afterTime: store.getters.after, afterTime: store.getters.after,
beforeTime: store.getters.before, beforeTime: store.getters.before,
isNew: store.getters.isNew, orderBy: store.getters.orderBy,
orderBy: store.state.ui.range === 'upcoming' ? 'DATE_ASC' : 'DATE_DESC',
exclude: store.state.ui.filter, exclude: store.state.ui.filter,
}); });

View File

@ -10,7 +10,6 @@ function initSitesActions(store, _router) {
$limit:Int = 100, $limit:Int = 100,
$after:Date = "1900-01-01", $after:Date = "1900-01-01",
$before:Date = "2100-01-01", $before:Date = "2100-01-01",
$isNew:[Boolean!] = [true,false]
$orderBy:[ReleasesOrderBy!] $orderBy:[ReleasesOrderBy!]
$exclude: [String!] $exclude: [String!]
) { ) {
@ -40,7 +39,7 @@ function initSitesActions(store, _router) {
after: store.getters.after, after: store.getters.after,
before: store.getters.before, before: store.getters.before,
isNew: store.getters.isNew, isNew: store.getters.isNew,
orderBy: store.state.ui.range === 'upcoming' ? 'DATE_ASC' : 'DATE_DESC', orderBy: store.getters.orderBy,
exclude: store.state.ui.filter, exclude: store.state.ui.filter,
}); });

View File

@ -12,7 +12,6 @@ function initTagsActions(store, _router) {
$limit:Int = 1000, $limit:Int = 1000,
$after:Date = "1900-01-01", $after:Date = "1900-01-01",
$before:Date = "2100-01-01", $before:Date = "2100-01-01",
$isNew:[Boolean!] = [true,false]
$orderBy: [ReleasesTagsOrderBy!], $orderBy: [ReleasesTagsOrderBy!],
$exclude: [String!] $exclude: [String!]
) { ) {
@ -71,9 +70,6 @@ function initTagsActions(store, _router) {
} }
} }
} }
isNew: {
in: $isNew
}
} }
}, },
first: $limit, first: $limit,
@ -90,8 +86,7 @@ function initTagsActions(store, _router) {
limit, limit,
after: store.getters.after, after: store.getters.after,
before: store.getters.before, before: store.getters.before,
isNew: store.getters.isNew, orderBy: store.getters.isNew,
orderBy: store.state.ui.range === 'upcoming' ? 'RELEASE_BY_RELEASE_ID__DATE_ASC' : 'RELEASE_BY_RELEASE_ID__DATE_DESC',
exclude: store.state.ui.filter, exclude: store.state.ui.filter,
}); });

View File

@ -527,7 +527,7 @@ async function associateReleaseMedia(releases) {
...acc, ...acc,
[release.id]: [ [release.id]: [
...(argv.images && argv.poster ? toBaseMedias([release.poster], 'posters') : []), ...(argv.images && argv.poster ? toBaseMedias([release.poster], 'posters') : []),
...(argv.images && argv.poster ? toBaseMedias([release.poster], 'covers') : []), ...(argv.images && argv.poster ? toBaseMedias(release.covers, 'covers') : []),
...(argv.images && argv.photos ? toBaseMedias(release.photos, 'photos') : []), ...(argv.images && argv.photos ? toBaseMedias(release.photos, 'photos') : []),
...(argv.videos && argv.trailer ? toBaseMedias([release.trailer], 'trailers') : []), ...(argv.videos && argv.trailer ? toBaseMedias([release.trailer], 'trailers') : []),
...(argv.videos && argv.teaser ? toBaseMedias([release.teaser], 'teasers') : []), ...(argv.videos && argv.teaser ? toBaseMedias([release.teaser], 'teasers') : []),