Compare commits

..

No commits in common. "fc6de643115ba40124478e91cf6f9ddec109b002" and "6742bf7d4857ecf7ee3716639b88bc681eaef48f" have entirely different histories.

4 changed files with 13 additions and 25 deletions

View File

@ -62,10 +62,7 @@
<ul class="nolist"> <ul class="nolist">
<li> <li>
<Tooltip class="filter boobs"> <Tooltip class="filter boobs">
<span <span class="filter-trigger"><Icon icon="boobs" />Boobs</span>
class="filter-trigger"
:class="{ enabled: boobSizeRequired || naturalBoobs !== 1 }"
><Icon icon="boobs" />Boobs</span>
<template v-slot:tooltip> <template v-slot:tooltip>
<div class="filter-section boobsize"> <div class="filter-section boobsize">
@ -120,7 +117,7 @@
><Icon icon="leaf" /></span> ><Icon icon="leaf" /></span>
<input <input
v-model.number="naturalBoobs" v-model="naturalBoobs"
class="toggle" class="toggle"
type="range" type="range"
min="0" min="0"
@ -140,10 +137,7 @@
<li> <li>
<Tooltip class="filter boobs"> <Tooltip class="filter boobs">
<span <span class="filter-trigger"><Icon icon="rulers" />Physique</span>
class="filter-trigger"
:class="{ enabled: heightRequired || weightRequired }"
><Icon icon="rulers" />Physique</span>
<template v-slot:tooltip> <template v-slot:tooltip>
<div class="filter-section"> <div class="filter-section">
@ -243,7 +237,7 @@ import Checkbox from '../form/checkbox.vue';
import Range from '../form/range.vue'; import Range from '../form/range.vue';
import Pagination from '../pagination/pagination.vue'; import Pagination from '../pagination/pagination.vue';
const toggleValues = [true, null, false]; const toggleValues = [true, undefined, false];
const boobSizes = 'ABCDEFGHZ'.split(''); const boobSizes = 'ABCDEFGHZ'.split('');
function updateFilters() { function updateFilters() {
@ -251,7 +245,7 @@ function updateFilters() {
name: 'actors', name: 'actors',
params: this.$route.params, params: this.$route.params,
query: { query: {
nb: this.naturalBoobs !== 1 ? this.naturalBoobs : undefined, naturalBoobs: toggleValues[this.naturalBoobs],
bs: this.boobSizeRequired ? this.boobSize.join(',') : undefined, bs: this.boobSizeRequired ? this.boobSize.join(',') : undefined,
h: this.heightRequired ? this.height.join(',') : undefined, h: this.heightRequired ? this.height.join(',') : undefined,
w: this.weightRequired ? this.weight.join(',') : undefined, w: this.weightRequired ? this.weight.join(',') : undefined,
@ -320,6 +314,8 @@ export default {
Pagination, Pagination,
}, },
data() { data() {
const naturalBoobs = ['true', undefined, 'false'].indexOf(this.$route.query.nb);
return { return {
actors: [], actors: [],
pageTitle: null, pageTitle: null,
@ -329,7 +325,7 @@ export default {
boobSizes, boobSizes,
boobSize: this.$route.query.bs?.split(',') || ['A', 'Z'], boobSize: this.$route.query.bs?.split(',') || ['A', 'Z'],
boobSizeRequired: !!this.$route.query.bs, boobSizeRequired: !!this.$route.query.bs,
naturalBoobs: Number(this.$route.query.nb) || 1, naturalBoobs: naturalBoobs > -1 ? naturalBoobs : 1,
height: this.$route.query.h?.split(',').map(Number) || [50, 220], height: this.$route.query.h?.split(',').map(Number) || [50, 220],
heightRequired: !!this.$route.query.h, heightRequired: !!this.$route.query.h,
weight: this.$route.query.w?.split(',').map(Number) || [30, 200], weight: this.$route.query.w?.split(',').map(Number) || [30, 200],
@ -485,14 +481,6 @@ export default {
fill: var(--shadow-strong); fill: var(--shadow-strong);
} }
} }
&.enabled {
color: var(--primary);
.icon {
fill: var(--primary);
}
}
} }
.filter-section { .filter-section {

View File

@ -15,7 +15,7 @@
@click="setNearest" @click="setNearest"
> >
<input <input
v-model.number="valueA" v-model="valueA"
:min="min" :min="min"
:max="max" :max="max"
:data-value="valueA" :data-value="valueA"
@ -28,7 +28,7 @@
> >
<input <input
v-model.number="valueB" v-model="valueB"
:min="min" :min="min"
:max="max" :max="max"
:data-value="valueB" :data-value="valueB"

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.180.6", "version": "1.180.5",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "1.180.6", "version": "1.180.5",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@graphile-contrib/pg-order-by-related": "^1.0.0-beta.6", "@graphile-contrib/pg-order-by-related": "^1.0.0-beta.6",

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.180.6", "version": "1.180.5",
"description": "All the latest porn releases in one place", "description": "All the latest porn releases in one place",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {