Compare commits
2 Commits
532a4b679b
...
f38be7a706
Author | SHA1 | Date |
---|---|---|
|
f38be7a706 | |
|
c3de881a2c |
|
@ -285,20 +285,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="actor-content">
|
<div class="actor-content">
|
||||||
<Releases :releases="actor.releases" />
|
|
||||||
|
|
||||||
<div
|
|
||||||
v-if="actor.avatar || (actor.photos && actor.photos.length > 0)"
|
|
||||||
class="photos-container"
|
|
||||||
>
|
|
||||||
<Photos :actor="actor" />
|
|
||||||
|
|
||||||
<Photos
|
<Photos
|
||||||
|
v-if="actor.avatar || (actor.photos && actor.photos.length > 0)"
|
||||||
:actor="actor"
|
:actor="actor"
|
||||||
:class="{ expanded }"
|
|
||||||
class="compact"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
|
<Releases :releases="actor.releases" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -326,10 +318,6 @@ async function route() {
|
||||||
await this.fetchActor();
|
await this.fetchActor();
|
||||||
}
|
}
|
||||||
|
|
||||||
function scrollPhotos(event) {
|
|
||||||
event.currentTarget.scrollLeft += event.deltaY; // eslint-disable-line no-param-reassign
|
|
||||||
}
|
|
||||||
|
|
||||||
async function mounted() {
|
async function mounted() {
|
||||||
await this.fetchActor();
|
await this.fetchActor();
|
||||||
|
|
||||||
|
@ -363,7 +351,6 @@ export default {
|
||||||
mounted,
|
mounted,
|
||||||
methods: {
|
methods: {
|
||||||
fetchActor,
|
fetchActor,
|
||||||
scrollPhotos,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -429,7 +416,6 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar-link {
|
.avatar-link {
|
||||||
font-size: 0;
|
|
||||||
padding: 0 0 1rem 1rem;
|
padding: 0 0 1rem 1rem;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
@ -437,6 +423,7 @@ export default {
|
||||||
.avatar {
|
.avatar {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
border: solid 3px var(--lighten-hint);
|
||||||
margin: 0 .5rem 0 0;
|
margin: 0 .5rem 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -613,7 +600,7 @@ export default {
|
||||||
.actor-content {
|
.actor-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
flex-direction: row;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading {
|
.heading {
|
||||||
|
@ -621,13 +608,6 @@ export default {
|
||||||
margin: 0 0 1rem 0;
|
margin: 0 0 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.photos-container {
|
|
||||||
box-sizing: border-box;
|
|
||||||
border-left: solid 1px $shadow-hint;
|
|
||||||
padding: 1rem 1rem 1rem 1.5rem;
|
|
||||||
margin: 0 0 0 .5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.photos.compact {
|
.photos.compact {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -660,20 +640,6 @@ export default {
|
||||||
.actor-content {
|
.actor-content {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.photos-container {
|
|
||||||
border: none;
|
|
||||||
border-bottom: solid 1px $shadow-hint;
|
|
||||||
margin: 0 0 .5rem 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.photos {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.photos.compact {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(max-width: $breakpoint) {
|
@media(max-width: $breakpoint) {
|
||||||
|
|
|
@ -155,7 +155,7 @@ export default {
|
||||||
|
|
||||||
.tiles {
|
.tiles {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
|
||||||
grid-gap: 0 .5rem;
|
grid-gap: 0 .5rem;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
|
v-lazy-container
|
||||||
class="photos"
|
class="photos"
|
||||||
:class="{ wide: actor.photos.length > 2 }"
|
:class="{
|
||||||
|
avatar: !!actor.avatar,
|
||||||
|
empty: actor.photos.length === 0,
|
||||||
|
wide: actor.photos.length > 2
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
v-if="actor.avatar"
|
v-if="actor.avatar"
|
||||||
|
@ -11,7 +16,8 @@
|
||||||
class="avatar-link photo-link"
|
class="avatar-link photo-link"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
:src="sfw ? `/img/${actor.avatar.sfw.thumbnail}` : `/media/${actor.avatar.thumbnail}`"
|
:data-src="sfw ? `/img/${actor.avatar.sfw.thumbnail}` : `/media/${actor.avatar.thumbnail}`"
|
||||||
|
:data-loading="sfw ? `/img/${actor.avatar.sfw.lazy}` : `/media/${actor.avatar.lazy}`"
|
||||||
:title="actor.avatar.copyright && `© ${actor.avatar.copyright}`"
|
:title="actor.avatar.copyright && `© ${actor.avatar.copyright}`"
|
||||||
class="avatar photo"
|
class="avatar photo"
|
||||||
>
|
>
|
||||||
|
@ -26,7 +32,8 @@
|
||||||
class="photo-link"
|
class="photo-link"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
:src="sfw ? `/img/${photo.sfw.thumbnail}` : `/media/${photo.thumbnail}`"
|
:data-src="sfw ? `/img/${photo.sfw.thumbnail}` : `/media/${photo.thumbnail}`"
|
||||||
|
:data-loading="sfw ? `/img/${photo.sfw.lazy}` : `/media/${photo.lazy}`"
|
||||||
:title="photo.copyright && `© ${photo.copyright}`"
|
:title="photo.copyright && `© ${photo.copyright}`"
|
||||||
class="photo"
|
class="photo"
|
||||||
>
|
>
|
||||||
|
@ -56,59 +63,48 @@ export default {
|
||||||
@import 'theme';
|
@import 'theme';
|
||||||
|
|
||||||
.photos {
|
.photos {
|
||||||
display: inline-grid;
|
|
||||||
grid-template-columns: repeat(auto-fit, 12rem);
|
|
||||||
grid-gap: .5rem;
|
|
||||||
font-size: 0;
|
|
||||||
|
|
||||||
.avatar-link {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.compact {
|
|
||||||
.photo {
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.photo-link {
|
|
||||||
}
|
|
||||||
|
|
||||||
.photo {
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
box-shadow: 0 0 3px $shadow-weak;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media(min-width: $breakpoint3) {
|
|
||||||
.photos.wide {
|
|
||||||
max-width: 30vw;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media(max-width: $breakpoint3) {
|
|
||||||
.photos {
|
|
||||||
width: 100%;
|
|
||||||
max-width: 100%;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 1rem;
|
||||||
|
border-bottom: solid 1px var(--darken-hint);
|
||||||
|
font-size: 0;
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
|
|
||||||
|
&.empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.avatar-link {
|
.avatar-link {
|
||||||
display: inline-block;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.photo-link {
|
.photo-link {
|
||||||
height: 15rem;
|
height: 16rem;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
margin: 0 .5rem 0 0;
|
margin: 0 .5rem 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photo {
|
||||||
|
height: 100%;
|
||||||
|
box-shadow: 0 0 3px $shadow-weak;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media(max-width: $breakpoint3) {
|
||||||
|
.photos {
|
||||||
|
&.empty.avatar {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.avatar-link {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
v-if="release"
|
v-if="release"
|
||||||
class="content"
|
class="content"
|
||||||
>
|
>
|
||||||
<Banner :release="release" />
|
|
||||||
|
|
||||||
<div class="details">
|
<div class="details">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<a
|
<a
|
||||||
|
@ -95,6 +93,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<Banner :release="release" />
|
||||||
|
|
||||||
<div class="info column">
|
<div class="info column">
|
||||||
<h2 class="row title">{{ release.title }}</h2>
|
<h2 class="row title">{{ release.title }}</h2>
|
||||||
|
|
||||||
|
|
|
@ -101,9 +101,15 @@ export default {
|
||||||
|
|
||||||
.tiles {
|
.tiles {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
|
||||||
grid-gap: 0 .5rem;
|
grid-gap: 0 .5rem;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
margin: 0 0 1rem 0;
|
margin: 0 0 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media(max-width: $breakpoint0) {
|
||||||
|
.tiles {
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
|
@ -49,7 +49,7 @@ function scrapePhotos(html, type) {
|
||||||
async function getPhotosLegacy(entryId, site, type = 'highres', page = 1) {
|
async function getPhotosLegacy(entryId, site, type = 'highres', page = 1) {
|
||||||
const albumUrl = `${site.url}/trial/gallery.php?id=${entryId}&type=${type}&page=${page}`;
|
const albumUrl = `${site.url}/trial/gallery.php?id=${entryId}&type=${type}&page=${page}`;
|
||||||
|
|
||||||
logger.warn(`Jules Jordan is using legacy photo scraper for ${albumUrl} (page ${page})`);
|
// logger.warn(`Jules Jordan is using legacy photo scraper for ${albumUrl} (page ${page})`);
|
||||||
|
|
||||||
const html = await fetchPhotos(albumUrl);
|
const html = await fetchPhotos(albumUrl);
|
||||||
const $ = cheerio.load(html, { normalizeWhitespace: true });
|
const $ = cheerio.load(html, { normalizeWhitespace: true });
|
||||||
|
|
Loading…
Reference in New Issue