Added covers to media module. Fixed 'New' sorting for all pages.
This commit is contained in:
parent
3b2bf921f3
commit
4b26f8f476
|
@ -1,8 +1,6 @@
|
|||
<template>
|
||||
<div class="filter-bar noselect">
|
||||
<span class="sort">
|
||||
<Icon icon="sort-time-asc" />
|
||||
|
||||
<label class="range">
|
||||
<input
|
||||
:id="`${_uid}-range-latest`"
|
||||
|
|
|
@ -52,7 +52,6 @@ function initActorActions(store, _router) {
|
|||
$limit:Int = 1000,
|
||||
$after:Date = "1900-01-01",
|
||||
$before:Date = "2100-01-01",
|
||||
$isNew:[Boolean!] = [true,false]
|
||||
$orderBy:[ReleasesActorsOrderBy!]
|
||||
$exclude: [String!]
|
||||
) {
|
||||
|
@ -138,9 +137,6 @@ function initActorActions(store, _router) {
|
|||
}
|
||||
}
|
||||
}
|
||||
isNew: {
|
||||
in: $isNew
|
||||
}
|
||||
}
|
||||
},
|
||||
first: $limit,
|
||||
|
@ -176,8 +172,7 @@ function initActorActions(store, _router) {
|
|||
limit,
|
||||
after: store.getters.after,
|
||||
before: store.getters.before,
|
||||
isNew: store.getters.isNew,
|
||||
orderBy: store.state.ui.range === 'upcoming' ? 'RELEASE_BY_RELEASE_ID__DATE_ASC' : 'RELEASE_BY_RELEASE_ID__DATE_DESC',
|
||||
orderBy: store.getters.orderBy,
|
||||
exclude: store.state.ui.filter,
|
||||
});
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ function initNetworksActions(store, _router) {
|
|||
$before:Date = "2100-01-01",
|
||||
$afterTime:Datetime = "1900-01-01",
|
||||
$beforeTime:Datetime = "2100-01-01",
|
||||
$isNew:[Boolean!] = [true,false]
|
||||
$orderBy: [ReleasesOrderBy!]
|
||||
$exclude: [String!]
|
||||
) {
|
||||
|
@ -99,9 +98,6 @@ function initNetworksActions(store, _router) {
|
|||
}
|
||||
}
|
||||
}
|
||||
isNew: {
|
||||
in: $isNew
|
||||
}
|
||||
}
|
||||
) {
|
||||
${releaseFields}
|
||||
|
@ -114,8 +110,7 @@ function initNetworksActions(store, _router) {
|
|||
before: store.getters.before,
|
||||
afterTime: store.getters.after,
|
||||
beforeTime: store.getters.before,
|
||||
isNew: store.getters.isNew,
|
||||
orderBy: store.state.ui.range === 'upcoming' ? 'DATE_ASC' : 'DATE_DESC',
|
||||
orderBy: store.getters.orderBy,
|
||||
exclude: store.state.ui.filter,
|
||||
});
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ function initSitesActions(store, _router) {
|
|||
$limit:Int = 100,
|
||||
$after:Date = "1900-01-01",
|
||||
$before:Date = "2100-01-01",
|
||||
$isNew:[Boolean!] = [true,false]
|
||||
$orderBy:[ReleasesOrderBy!]
|
||||
$exclude: [String!]
|
||||
) {
|
||||
|
@ -40,7 +39,7 @@ function initSitesActions(store, _router) {
|
|||
after: store.getters.after,
|
||||
before: store.getters.before,
|
||||
isNew: store.getters.isNew,
|
||||
orderBy: store.state.ui.range === 'upcoming' ? 'DATE_ASC' : 'DATE_DESC',
|
||||
orderBy: store.getters.orderBy,
|
||||
exclude: store.state.ui.filter,
|
||||
});
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ function initTagsActions(store, _router) {
|
|||
$limit:Int = 1000,
|
||||
$after:Date = "1900-01-01",
|
||||
$before:Date = "2100-01-01",
|
||||
$isNew:[Boolean!] = [true,false]
|
||||
$orderBy: [ReleasesTagsOrderBy!],
|
||||
$exclude: [String!]
|
||||
) {
|
||||
|
@ -71,9 +70,6 @@ function initTagsActions(store, _router) {
|
|||
}
|
||||
}
|
||||
}
|
||||
isNew: {
|
||||
in: $isNew
|
||||
}
|
||||
}
|
||||
},
|
||||
first: $limit,
|
||||
|
@ -90,8 +86,7 @@ function initTagsActions(store, _router) {
|
|||
limit,
|
||||
after: store.getters.after,
|
||||
before: store.getters.before,
|
||||
isNew: store.getters.isNew,
|
||||
orderBy: store.state.ui.range === 'upcoming' ? 'RELEASE_BY_RELEASE_ID__DATE_ASC' : 'RELEASE_BY_RELEASE_ID__DATE_DESC',
|
||||
orderBy: store.getters.isNew,
|
||||
exclude: store.state.ui.filter,
|
||||
});
|
||||
|
||||
|
|
|
@ -527,7 +527,7 @@ async function associateReleaseMedia(releases) {
|
|||
...acc,
|
||||
[release.id]: [
|
||||
...(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.videos && argv.trailer ? toBaseMedias([release.trailer], 'trailers') : []),
|
||||
...(argv.videos && argv.teaser ? toBaseMedias([release.teaser], 'teasers') : []),
|
||||
|
|
Loading…
Reference in New Issue