Added movie tile. Fixed actor header. Larger breakpoint for nav menu.
This commit is contained in:
@@ -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