Compare commits

..

No commits in common. "c7cb0e439de08c439eb335ea84d868e97a0942b3" and "0f88ae324e8e05d9cb89c017eb15c707a9691eb4" have entirely different histories.

6 changed files with 33 additions and 31 deletions

View File

@ -318,14 +318,13 @@
<div class="actor-content"> <div class="actor-content">
<Scroll <Scroll
v-if="actor.avatar || (actor.photos && actor.photos.length > 0)" v-if="actor.avatar || (actor.photos && actor.photos.length > 0)"
v-slot="scroll"
:expanded="photosExpanded" :expanded="photosExpanded"
class="scroll-light"
@expand="(state) => photosExpanded = state" @expand="(state) => photosExpanded = state"
> >
<Photos <Photos
:actor="actor" :actor="actor"
:class="{ expanded: photosExpanded }" :class="{ expanded: photosExpanded }"
@load="scroll.loaded"
/> />
</Scroll> </Scroll>
@ -684,6 +683,10 @@ export default {
margin: 0 0 1rem 0; margin: 0 0 1rem 0;
} }
.photos {
background: var(--background-dim);
}
.profile-social { .profile-social {
display: none; display: none;
} }
@ -693,7 +696,6 @@ export default {
} }
.scroll { .scroll {
background: var(--background-dim);
border-bottom: solid 1px var(--shadow-hint); border-bottom: solid 1px var(--shadow-hint);
} }

View File

@ -19,7 +19,7 @@
:title="actor.avatar.credit && `© ${actor.avatar.credit}`" :title="actor.avatar.credit && `© ${actor.avatar.credit}`"
loading="lazy" loading="lazy"
class="avatar photo" class="avatar photo"
@load="$emit('load', $event)" @load="$parent.$emit('load')"
> >
</a> </a>
@ -37,7 +37,7 @@
:title="`© ${photo.credit || photo.entity.name}`" :title="`© ${photo.credit || photo.entity.name}`"
loading="lazy" loading="lazy"
class="photo" class="photo"
@load="$emit('load', $event)" @load="$parent.$emit('load')"
> >
</a> </a>
</div> </div>
@ -59,7 +59,6 @@ export default {
default: null, default: null,
}, },
}, },
emits: ['load'],
computed: { computed: {
sfw, sfw,
photos, photos,
@ -74,6 +73,7 @@ export default {
display: flex; display: flex;
box-sizing: border-box; box-sizing: border-box;
padding: .5rem 1rem; padding: .5rem 1rem;
margin: 0 1rem 0 0;
font-size: 0; font-size: 0;
&.expanded { &.expanded {
@ -100,11 +100,7 @@ export default {
} }
.photo-link { .photo-link {
padding: 0 .5rem 0 0; margin: 0 .5rem 0 0;
&:last-child {
padding: 0 1rem 0 0;
}
} }
.photo { .photo {

View File

@ -84,7 +84,7 @@ function mounted() {
this.updateScroll(); this.updateScroll();
} }
function beforeUnmount() { function beforeDestroy() {
this.$refs.content.removeEventListener('scroll', this.updateScroll); this.$refs.content.removeEventListener('scroll', this.updateScroll);
window.removeEventListener('resize', this.updateScroll); window.removeEventListener('resize', this.updateScroll);
@ -121,7 +121,7 @@ export default {
}, },
mounted, mounted,
updated, updated,
beforeUnmount, beforeDestroy,
methods: { methods: {
scroll, scroll,
loaded, loaded,
@ -133,13 +133,17 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import 'theme'; @import 'theme';
.scroll.expanded { .scroll {
background: var(--profile);
&.expanded {
padding: 0; padding: 0;
.scroll { .scroll {
display: none; display: none;
} }
} }
}
.scrollable { .scrollable {
position: relative; position: relative;

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.149.6", "version": "1.149.5",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.149.6", "version": "1.149.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": {

View File

@ -348,24 +348,24 @@ async function curateProfile(profile, actor) {
curatedProfile.penisGirth = Number(profile.penisGirth) || profile.penisGirth?.match?.(/\d+/)?.[0] || null; curatedProfile.penisGirth = Number(profile.penisGirth) || profile.penisGirth?.match?.(/\d+/)?.[0] || null;
curatedProfile.circumcised = (typeof profile.circumcised === 'boolean' && profile.circumcised) curatedProfile.circumcised = (typeof profile.circumcised === 'boolean' && profile.circumcised)
?? (/yes/i.test(profile.circumcised) && true) || (/yes/i.test(profile.circumcised) && true)
?? (/no/i.test(profile.circumcised) && false) || (/no/i.test(profile.circumcised) && false)
?? null; || null;
curatedProfile.naturalBoobs = (typeof profile.naturalBoobs === 'boolean' && profile.naturalBoobs) curatedProfile.naturalBoobs = (typeof profile.naturalBoobs === 'boolean' && profile.naturalBoobs)
?? (/yes/i.test(profile.naturalBoobs) && true) || (/yes/i.test(profile.naturalBoobs) && true)
?? (/no/i.test(profile.naturalBoobs) && false) || (/no/i.test(profile.naturalBoobs) && false)
?? null; || null;
curatedProfile.hasTattoos = (typeof profile.hasTattoos === 'boolean' && profile.hasTattoos) curatedProfile.hasTattoos = (typeof profile.hasTattoos === 'boolean' && profile.hasTattoos)
?? (/yes/i.test(profile.hasTattoos) && true) || (/yes/i.test(profile.hasTattoos) && true)
?? (/no/i.test(profile.hasTattoos) && true) || (/no/i.test(profile.hasTattoos) && true)
?? null; || null;
curatedProfile.hasPiercings = (typeof profile.hasPiercings === 'boolean' && profile.hasPiercings) curatedProfile.hasPiercings = (typeof profile.hasPiercings === 'boolean' && profile.hasPiercings)
?? (/yes/i.test(profile.hasPiercings) && true) || (/yes/i.test(profile.hasPiercings) && true)
?? (/no/i.test(profile.hasPiercings) && true) || (/no/i.test(profile.hasPiercings) && true)
?? null; || null;
if (argv.resolvePlace) { if (argv.resolvePlace) {
const [placeOfBirth, placeOfResidence] = await Promise.all([ const [placeOfBirth, placeOfResidence] = await Promise.all([