Added thumb and lazy image scripts. Added FreeOnes and Boobpedia as sites.

This commit is contained in:
2020-05-13 23:17:39 +02:00
parent dac451bb86
commit f1eb29c713
1856 changed files with 128 additions and 29 deletions

View File

@@ -198,13 +198,16 @@ function initActorActions(store, _router) {
async function fetchActors({ _commit }, {
limit = 100,
letter,
genders,
gender,
}) {
const genderFilter = gender === null
? 'isNull: true'
: `equalTo: "${gender}"`;
const { actors } = await graphql(`
query Actors(
$limit: Int,
$letter: String! = "",
$genders: [String!] = ["female"],
) {
actors(
first:$limit,
@@ -213,18 +216,9 @@ function initActorActions(store, _router) {
name: {
startsWith: $letter
},
or: [
{
gender: {
in: $genders
},
},
{
gender: {
isNull: true
},
}
]
gender: {
${genderFilter}
},
},
) {
id
@@ -257,8 +251,6 @@ function initActorActions(store, _router) {
`, {
limit,
letter,
genders: genders.filter(Boolean),
genderNull: genders.some(gender => gender === null),
});
return actors.map(actor => curateActor(actor));