Added thumb and lazy image scripts. Added FreeOnes and Boobpedia as sites.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user