Added double thumb slider for boob size.

This commit is contained in:
DebaucheryLibrarian
2021-03-03 02:18:36 +01:00
parent 4e6f19d620
commit e3b1934653
5 changed files with 276 additions and 69 deletions

View File

@@ -267,20 +267,19 @@ function initActorActions(store, router) {
letter,
gender,
naturalBoobs,
cup,
boobSize,
}) {
const genderFilter = (gender === null && 'gender: { isNull: true }')
|| (gender === 'all' && ' ')
|| `gender: { equalTo: "${gender}" }`;
console.log(cup);
const cupFilter = boobSize ? `cup: { in: [${boobSize.map(size => `"${size}"`)}] }` : '';
const { connection: { actors, totalCount } } = await graphql(`
query Actors(
$limit: Int,
$offset: Int = 0,
$letter: String! = "",
$cup: [String!]
$naturalBoobs: Boolean,
) {
connection: actorsConnection(
@@ -294,13 +293,11 @@ function initActorActions(store, router) {
name: {
startsWith: $letter
}
${genderFilter}
naturalBoobs: {
equalTo: $naturalBoobs
}
cup: {
in: $cup
}
${genderFilter}
${cupFilter}
}
) {
totalCount
@@ -354,7 +351,6 @@ function initActorActions(store, router) {
offset: Math.max(0, (pageNumber - 1)) * limit,
limit,
letter,
cup,
naturalBoobs,
});