Added movie tile. Fixed actor header. Larger breakpoint for nav menu.
This commit is contained in:
@@ -180,6 +180,13 @@ function initEntitiesActions(store, _router) {
|
||||
type: {
|
||||
equalTo: "network"
|
||||
}
|
||||
childEntitiesConnection: {
|
||||
some: {
|
||||
type: {
|
||||
equalTo: "channel"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
independent: {
|
||||
@@ -197,7 +204,7 @@ function initEntitiesActions(store, _router) {
|
||||
in: $entitySlugs
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
}
|
||||
) {
|
||||
id
|
||||
|
||||
@@ -243,11 +243,6 @@ const releaseFragment = `
|
||||
${releaseTrailerFragment}
|
||||
${releaseTeaserFragment}
|
||||
${siteFragment}
|
||||
scenes: releasesMoviesByMovieId {
|
||||
scene {
|
||||
${releaseFields}
|
||||
}
|
||||
}
|
||||
studio {
|
||||
id
|
||||
name
|
||||
|
||||
@@ -47,9 +47,48 @@ function initReleasesActions(store, _router) {
|
||||
return curateRelease(release);
|
||||
}
|
||||
|
||||
async function fetchMovies({ _commit }, { limit = 10, pageNumber = 1 }) {
|
||||
const { connection: { movies, totalCount } } = await graphql(`
|
||||
query Movies(
|
||||
$limit:Int = 1000,
|
||||
$offset:Int = 0,
|
||||
) {
|
||||
connection: moviesConnection(
|
||||
first: $limit
|
||||
offset: $offset
|
||||
orderBy: DATE_ASC
|
||||
) {
|
||||
movies: nodes {
|
||||
id
|
||||
title
|
||||
url
|
||||
slug
|
||||
date
|
||||
datePrecision
|
||||
entity {
|
||||
id
|
||||
name
|
||||
slug
|
||||
}
|
||||
}
|
||||
totalCount
|
||||
}
|
||||
}
|
||||
`, {
|
||||
limit,
|
||||
offset: Math.max(0, (pageNumber - 1)) * limit,
|
||||
});
|
||||
|
||||
return {
|
||||
movies: movies.map(release => curateRelease(release)),
|
||||
totalCount,
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
fetchReleases,
|
||||
fetchReleaseById,
|
||||
fetchMovies,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user